@gluip/chart-canvas-mcp 0.3.3 → 0.3.4
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/dist/api.js +1 -1
- package/dist/frontend/assets/_baseUniq-BAITmsY0.js +1 -0
- package/dist/frontend/assets/arc-BZcJkm8M.js +1 -0
- package/dist/frontend/assets/architectureDiagram-VXUJARFQ-DBYzmJgu.js +36 -0
- package/dist/frontend/assets/blockDiagram-VD42YOAC-E5jgMviV.js +122 -0
- package/dist/frontend/assets/c4Diagram-YG6GDRKO-DUwnd3jD.js +10 -0
- package/dist/frontend/assets/channel-DcuCuVZN.js +1 -0
- package/dist/frontend/assets/chunk-4BX2VUAB-D6pQbc5n.js +1 -0
- package/dist/frontend/assets/chunk-55IACEB6-rooaLeiW.js +1 -0
- package/dist/frontend/assets/chunk-B4BG7PRW-DnfJg3BT.js +165 -0
- package/dist/frontend/assets/chunk-DI55MBZ5-tk0cxzUB.js +220 -0
- package/dist/frontend/assets/chunk-FMBD7UC4-Bk8jUsFa.js +15 -0
- package/dist/frontend/assets/chunk-QN33PNHL-DH_BTiMu.js +1 -0
- package/dist/frontend/assets/chunk-QZHKN3VN-Dq3K5RXB.js +1 -0
- package/dist/frontend/assets/chunk-TZMSLE5B-HdF904Wn.js +1 -0
- package/dist/frontend/assets/classDiagram-2ON5EDUG-CNFEETn7.js +1 -0
- package/dist/frontend/assets/classDiagram-v2-WZHVMYZB-CNFEETn7.js +1 -0
- package/dist/frontend/assets/clone-BBKO-YiJ.js +1 -0
- package/dist/frontend/assets/cose-bilkent-S5V4N54A-Cg-WYzWz.js +1 -0
- package/dist/frontend/assets/cytoscape.esm-5J0xJHOV.js +321 -0
- package/dist/frontend/assets/dagre-6UL2VRFP-ryegzlWf.js +4 -0
- package/dist/frontend/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/frontend/assets/diagram-PSM6KHXK-DKp3q0bY.js +24 -0
- package/dist/frontend/assets/diagram-QEK2KX5R-DACNhaAL.js +43 -0
- package/dist/frontend/assets/diagram-S2PKOQOG-DRYZkLxk.js +24 -0
- package/dist/frontend/assets/erDiagram-Q2GNP2WA-Z3HZ6EKl.js +60 -0
- package/dist/frontend/assets/flowDiagram-NV44I4VS-8CuyVkRJ.js +162 -0
- package/dist/frontend/assets/ganttDiagram-JELNMOA3-CZw7vEef.js +267 -0
- package/dist/frontend/assets/gitGraphDiagram-NY62KEGX-Bfi_XmQW.js +65 -0
- package/dist/frontend/assets/graph-em0nOU3f.js +1 -0
- package/dist/frontend/assets/index-B77n-cbQ.js +271 -0
- package/dist/frontend/assets/index-DYeB_f0E.css +1 -0
- package/dist/frontend/assets/infoDiagram-WHAUD3N6-CXMtEjay.js +2 -0
- package/dist/frontend/assets/init-Gi6I4Gst.js +1 -0
- package/dist/frontend/assets/journeyDiagram-XKPGCS4Q-BSMlJlRu.js +139 -0
- package/dist/frontend/assets/kanban-definition-3W4ZIXB7-BfJahWKP.js +89 -0
- package/dist/frontend/assets/katex-XbL3y5x-.js +261 -0
- package/dist/frontend/assets/layout-BKL7XIuI.js +1 -0
- package/dist/frontend/assets/linear-XeCfeo67.js +1 -0
- package/dist/frontend/assets/min-Ba52ICFg.js +1 -0
- package/dist/frontend/assets/mindmap-definition-VGOIOE7T-D8Zg3vpp.js +68 -0
- package/dist/frontend/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/frontend/assets/pieDiagram-ADFJNKIX-DlpXzEqD.js +30 -0
- package/dist/frontend/assets/quadrantDiagram-AYHSOK5B-CEoKUUSd.js +7 -0
- package/dist/frontend/assets/requirementDiagram-UZGBJVZJ-Css5Z6IH.js +64 -0
- package/dist/frontend/assets/sankeyDiagram-TZEHDZUN-C4ArkKL4.js +10 -0
- package/dist/frontend/assets/sequenceDiagram-WL72ISMW-DUIyU01m.js +145 -0
- package/dist/frontend/assets/stateDiagram-FKZM4ZOC-ep1kWxe5.js +1 -0
- package/dist/frontend/assets/stateDiagram-v2-4FDKWEC3-OA08CMr0.js +1 -0
- package/dist/frontend/assets/timeline-definition-IT6M3QCI-DJcHBcqL.js +61 -0
- package/dist/frontend/assets/treemap-KMMF4GRG-D3zRDkrP.js +128 -0
- package/dist/frontend/assets/xychartDiagram-PRI3JC2R-M-OrKD3V.js +7 -0
- package/dist/frontend/chart-canvas.png +0 -0
- package/dist/frontend/favicon.ico +0 -0
- package/dist/frontend/index.html +14 -0
- package/dist/index.js +0 -0
- package/package.json +3 -3
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-ryegzlWf.js","assets/graph-em0nOU3f.js","assets/_baseUniq-BAITmsY0.js","assets/layout-BKL7XIuI.js","assets/min-Ba52ICFg.js","assets/clone-BBKO-YiJ.js","assets/cose-bilkent-S5V4N54A-Cg-WYzWz.js","assets/cytoscape.esm-5J0xJHOV.js","assets/c4Diagram-YG6GDRKO-DUwnd3jD.js","assets/chunk-TZMSLE5B-HdF904Wn.js","assets/flowDiagram-NV44I4VS-8CuyVkRJ.js","assets/chunk-FMBD7UC4-Bk8jUsFa.js","assets/chunk-55IACEB6-rooaLeiW.js","assets/chunk-QN33PNHL-DH_BTiMu.js","assets/channel-DcuCuVZN.js","assets/erDiagram-Q2GNP2WA-Z3HZ6EKl.js","assets/gitGraphDiagram-NY62KEGX-Bfi_XmQW.js","assets/chunk-4BX2VUAB-D6pQbc5n.js","assets/chunk-QZHKN3VN-Dq3K5RXB.js","assets/treemap-KMMF4GRG-D3zRDkrP.js","assets/ganttDiagram-JELNMOA3-CZw7vEef.js","assets/linear-XeCfeo67.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-WHAUD3N6-CXMtEjay.js","assets/pieDiagram-ADFJNKIX-DlpXzEqD.js","assets/arc-BZcJkm8M.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-CEoKUUSd.js","assets/xychartDiagram-PRI3JC2R-M-OrKD3V.js","assets/requirementDiagram-UZGBJVZJ-Css5Z6IH.js","assets/sequenceDiagram-WL72ISMW-DUIyU01m.js","assets/classDiagram-2ON5EDUG-CNFEETn7.js","assets/chunk-B4BG7PRW-DnfJg3BT.js","assets/classDiagram-v2-WZHVMYZB-CNFEETn7.js","assets/stateDiagram-FKZM4ZOC-ep1kWxe5.js","assets/chunk-DI55MBZ5-tk0cxzUB.js","assets/stateDiagram-v2-4FDKWEC3-OA08CMr0.js","assets/journeyDiagram-XKPGCS4Q-BSMlJlRu.js","assets/timeline-definition-IT6M3QCI-DJcHBcqL.js","assets/mindmap-definition-VGOIOE7T-D8Zg3vpp.js","assets/kanban-definition-3W4ZIXB7-BfJahWKP.js","assets/sankeyDiagram-TZEHDZUN-C4ArkKL4.js","assets/diagram-S2PKOQOG-DRYZkLxk.js","assets/diagram-QEK2KX5R-DACNhaAL.js","assets/blockDiagram-VD42YOAC-E5jgMviV.js","assets/architectureDiagram-VXUJARFQ-DBYzmJgu.js","assets/diagram-PSM6KHXK-DKp3q0bY.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function a1(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const qe={},uc=[],ta=()=>{},HL=()=>!1,Hv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o1=e=>e.startsWith("onUpdate:"),Nr=Object.assign,s1=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Uz=Object.prototype.hasOwnProperty,Pe=(e,t)=>Uz.call(e,t),le=Array.isArray,hc=e=>Wv(e)==="[object Map]",WL=e=>Wv(e)==="[object Set]",fe=e=>typeof e=="function",pr=e=>typeof e=="string",Xa=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",GL=e=>(je(e)||fe(e))&&fe(e.then)&&fe(e.catch),qL=Object.prototype.toString,Wv=e=>qL.call(e),Yz=e=>Wv(e).slice(8,-1),VL=e=>Wv(e)==="[object Object]",Gv=e=>pr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gh=a1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qv=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},jz=/-\w/g,Bo=qv(e=>e.replace(jz,t=>t.slice(1).toUpperCase())),Xz=/\B([A-Z])/g,_l=qv(e=>e.replace(Xz,"-$1").toLowerCase()),UL=qv(e=>e.charAt(0).toUpperCase()+e.slice(1)),dy=qv(e=>e?`on${UL(e)}`:""),Ao=(e,t)=>!Object.is(e,t),py=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},YL=(e,t,r,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:r})},Zz=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let cC;const Vv=()=>cC||(cC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function If(e){if(le(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],n=pr(i)?t4(i):If(i);if(n)for(const a in n)t[a]=n[a]}return t}else if(pr(e)||je(e))return e}const Kz=/;(?![^(]*\))/g,Qz=/:([^]+)/,Jz=/\/\*[^]*?\*\//g;function t4(e){const t={};return e.replace(Jz,"").split(Kz).forEach(r=>{if(r){const i=r.split(Qz);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Uh(e){let t="";if(pr(e))t=e;else if(le(e))for(let r=0;r<e.length;r++){const i=Uh(e[r]);i&&(t+=i+" ")}else if(je(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const e4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",r4=a1(e4);function jL(e){return!!e||e===""}const XL=e=>!!(e&&e.__v_isRef===!0),Ea=e=>pr(e)?e:e==null?"":le(e)||je(e)&&(e.toString===qL||!fe(e.toString))?XL(e)?Ea(e.value):JSON.stringify(e,ZL,2):String(e),ZL=(e,t)=>XL(t)?ZL(e,t.value):hc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,n],a)=>(r[gy(i,a)+" =>"]=n,r),{})}:WL(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>gy(r))}:Xa(t)?gy(t):je(t)&&!le(t)&&!VL(t)?String(t):t,gy=(e,t="")=>{var r;return Xa(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let Ur;class i4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ur,!t&&Ur&&(this.index=(Ur.scopes||(Ur.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=Ur;try{return Ur=this,t()}finally{Ur=r}}}on(){++this._on===1&&(this.prevScope=Ur,Ur=this)}off(){this._on>0&&--this._on===0&&(Ur=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(this.effects.length=0,r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function KL(){return Ur}function n4(e,t=!1){Ur&&Ur.cleanups.push(e)}let Ye;const vy=new WeakSet;class QL{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,Ur&&Ur.active&&Ur.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vy.has(this)&&(vy.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tD(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uC(this),eD(this);const t=Ye,r=Cn;Ye=this,Cn=!0;try{return this.fn()}finally{rD(this),Ye=t,Cn=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)u1(t);this.deps=this.depsTail=void 0,uC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vy.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){m_(this)&&this.run()}get dirty(){return m_(this)}}let JL=0,vh,mh;function tD(e,t=!1){if(e.flags|=8,t){e.next=mh,mh=e;return}e.next=vh,vh=e}function l1(){JL++}function c1(){if(--JL>0)return;if(mh){let t=mh;for(mh=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;vh;){let t=vh;for(vh=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=r}}if(e)throw e}function eD(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function rD(e){let t,r=e.depsTail,i=r;for(;i;){const n=i.prevDep;i.version===-1?(i===r&&(r=n),u1(i),a4(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=r}function m_(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(iD(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function iD(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yh)||(e.globalVersion=Yh,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!m_(e))))return;e.flags|=2;const t=e.dep,r=Ye,i=Cn;Ye=e,Cn=!0;try{eD(e);const n=e.fn(e._value);(t.version===0||Ao(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Ye=r,Cn=i,rD(e),e.flags&=-3}}function u1(e,t=!1){const{dep:r,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),r.subs===e&&(r.subs=i,!i&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)u1(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function a4(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Cn=!0;const nD=[];function Na(){nD.push(Cn),Cn=!1}function za(){const e=nD.pop();Cn=e===void 0?!0:e}function uC(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ye;Ye=void 0;try{t()}finally{Ye=r}}}let Yh=0;class o4{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class h1{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ye||!Cn||Ye===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ye)r=this.activeLink=new o4(Ye,this),Ye.deps?(r.prevDep=Ye.depsTail,Ye.depsTail.nextDep=r,Ye.depsTail=r):Ye.deps=Ye.depsTail=r,aD(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const i=r.nextDep;i.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=i),r.prevDep=Ye.depsTail,r.nextDep=void 0,Ye.depsTail.nextDep=r,Ye.depsTail=r,Ye.deps===r&&(Ye.deps=i)}return r}trigger(t){this.version++,Yh++,this.notify(t)}notify(t){l1();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{c1()}}}function aD(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)aD(i)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ug=new WeakMap,Ys=Symbol(""),y_=Symbol(""),jh=Symbol("");function jr(e,t,r){if(Cn&&Ye){let i=ug.get(e);i||ug.set(e,i=new Map);let n=i.get(r);n||(i.set(r,n=new h1),n.map=i,n.key=r),n.track()}}function Ma(e,t,r,i,n,a){const o=ug.get(e);if(!o){Yh++;return}const s=l=>{l&&l.trigger()};if(l1(),t==="clear")o.forEach(s);else{const l=le(e),c=l&&Gv(r);if(l&&r==="length"){const u=Number(i);o.forEach((h,d)=>{(d==="length"||d===jh||!Xa(d)&&d>=u)&&s(h)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),c&&s(o.get(jh)),t){case"add":l?c&&s(o.get("length")):(s(o.get(Ys)),hc(e)&&s(o.get(y_)));break;case"delete":l||(s(o.get(Ys)),hc(e)&&s(o.get(y_)));break;case"set":hc(e)&&s(o.get(Ys));break}}c1()}function s4(e,t){const r=ug.get(e);return r&&r.get(t)}function Il(e){const t=Le(e);return t===e?t:(jr(t,"iterate",jh),Ni(e)?t:t.map(Mn))}function Uv(e){return jr(e=Le(e),"iterate",jh),e}function mo(e,t){return Ha(e)?Dc(js(e)?Mn(t):t):Mn(t)}const l4={__proto__:null,[Symbol.iterator](){return my(this,Symbol.iterator,e=>mo(this,e))},concat(...e){return Il(this).concat(...e.map(t=>le(t)?Il(t):t))},entries(){return my(this,"entries",e=>(e[1]=mo(this,e[1]),e))},every(e,t){return ma(this,"every",e,t,void 0,arguments)},filter(e,t){return ma(this,"filter",e,t,r=>r.map(i=>mo(this,i)),arguments)},find(e,t){return ma(this,"find",e,t,r=>mo(this,r),arguments)},findIndex(e,t){return ma(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ma(this,"findLast",e,t,r=>mo(this,r),arguments)},findLastIndex(e,t){return ma(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ma(this,"forEach",e,t,void 0,arguments)},includes(...e){return yy(this,"includes",e)},indexOf(...e){return yy(this,"indexOf",e)},join(e){return Il(this).join(e)},lastIndexOf(...e){return yy(this,"lastIndexOf",e)},map(e,t){return ma(this,"map",e,t,void 0,arguments)},pop(){return vu(this,"pop")},push(...e){return vu(this,"push",e)},reduce(e,...t){return hC(this,"reduce",e,t)},reduceRight(e,...t){return hC(this,"reduceRight",e,t)},shift(){return vu(this,"shift")},some(e,t){return ma(this,"some",e,t,void 0,arguments)},splice(...e){return vu(this,"splice",e)},toReversed(){return Il(this).toReversed()},toSorted(e){return Il(this).toSorted(e)},toSpliced(...e){return Il(this).toSpliced(...e)},unshift(...e){return vu(this,"unshift",e)},values(){return my(this,"values",e=>mo(this,e))}};function my(e,t,r){const i=Uv(e),n=i[t]();return i!==e&&!Ni(e)&&(n._next=n.next,n.next=()=>{const a=n._next();return a.done||(a.value=r(a.value)),a}),n}const c4=Array.prototype;function ma(e,t,r,i,n,a){const o=Uv(e),s=o!==e&&!Ni(e),l=o[t];if(l!==c4[t]){const h=l.apply(e,a);return s?Mn(h):h}let c=r;o!==e&&(s?c=function(h,d){return r.call(this,mo(e,h),d,e)}:r.length>2&&(c=function(h,d){return r.call(this,h,d,e)}));const u=l.call(o,c,i);return s&&n?n(u):u}function hC(e,t,r,i){const n=Uv(e);let a=r;return n!==e&&(Ni(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,mo(e,s),l,e)}),n[t](a,...i)}function yy(e,t,r){const i=Le(e);jr(i,"iterate",jh);const n=i[t](...r);return(n===-1||n===!1)&&Yv(r[0])?(r[0]=Le(r[0]),i[t](...r)):n}function vu(e,t,r=[]){Na(),l1();const i=Le(e)[t].apply(e,r);return c1(),za(),i}const u4=a1("__proto__,__v_isRef,__isVue"),oD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xa));function h4(e){Xa(e)||(e=String(e));const t=Le(this);return jr(t,"has",e),t.hasOwnProperty(e)}class sD{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,i){if(r==="__v_skip")return t.__v_skip;const n=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return a;if(r==="__v_raw")return i===(n?a?x4:hD:a?uD:cD).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=le(t);if(!n){let l;if(o&&(l=l4[r]))return l;if(r==="hasOwnProperty")return h4}const s=Reflect.get(t,r,Sr(t)?t:i);if((Xa(r)?oD.has(r):u4(r))||(n||jr(t,"get",r),a))return s;if(Sr(s)){const l=o&&Gv(r)?s:s.value;return n&&je(l)?b_(l):l}return je(s)?n?b_(s):Oo(s):s}}class lD extends sD{constructor(t=!1){super(!1,t)}set(t,r,i,n){let a=t[r];const o=le(t)&&Gv(r);if(!this._isShallow){const c=Ha(a);if(!Ni(i)&&!Ha(i)&&(a=Le(a),i=Le(i)),!o&&Sr(a)&&!Sr(i))return c||(a.value=i),!0}const s=o?Number(r)<t.length:Pe(t,r),l=Reflect.set(t,r,i,Sr(t)?t:n);return t===Le(n)&&(s?Ao(i,a)&&Ma(t,"set",r,i):Ma(t,"add",r,i)),l}deleteProperty(t,r){const i=Pe(t,r);t[r];const n=Reflect.deleteProperty(t,r);return n&&i&&Ma(t,"delete",r,void 0),n}has(t,r){const i=Reflect.has(t,r);return(!Xa(r)||!oD.has(r))&&jr(t,"has",r),i}ownKeys(t){return jr(t,"iterate",le(t)?"length":Ys),Reflect.ownKeys(t)}}class f4 extends sD{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const d4=new lD,p4=new f4,g4=new lD(!0);const __=e=>e,md=e=>Reflect.getPrototypeOf(e);function v4(e,t,r){return function(...i){const n=this.__v_raw,a=Le(n),o=hc(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=n[e](...i),u=r?__:t?Dc:Mn;return!t&&jr(a,"iterate",l?y_:Ys),Nr(Object.create(c),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:s?[u(h[0]),u(h[1])]:u(h),done:d}}})}}function yd(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function m4(e,t){const r={get(n){const a=this.__v_raw,o=Le(a),s=Le(n);e||(Ao(n,s)&&jr(o,"get",n),jr(o,"get",s));const{has:l}=md(o),c=t?__:e?Dc:Mn;if(l.call(o,n))return c(a.get(n));if(l.call(o,s))return c(a.get(s));a!==o&&a.get(n)},get size(){const n=this.__v_raw;return!e&&jr(Le(n),"iterate",Ys),n.size},has(n){const a=this.__v_raw,o=Le(a),s=Le(n);return e||(Ao(n,s)&&jr(o,"has",n),jr(o,"has",s)),n===s?a.has(n):a.has(n)||a.has(s)},forEach(n,a){const o=this,s=o.__v_raw,l=Le(s),c=t?__:e?Dc:Mn;return!e&&jr(l,"iterate",Ys),s.forEach((u,h)=>n.call(a,c(u),c(h),o))}};return Nr(r,e?{add:yd("add"),set:yd("set"),delete:yd("delete"),clear:yd("clear")}:{add(n){!t&&!Ni(n)&&!Ha(n)&&(n=Le(n));const a=Le(this);return md(a).has.call(a,n)||(a.add(n),Ma(a,"add",n,n)),this},set(n,a){!t&&!Ni(a)&&!Ha(a)&&(a=Le(a));const o=Le(this),{has:s,get:l}=md(o);let c=s.call(o,n);c||(n=Le(n),c=s.call(o,n));const u=l.call(o,n);return o.set(n,a),c?Ao(a,u)&&Ma(o,"set",n,a):Ma(o,"add",n,a),this},delete(n){const a=Le(this),{has:o,get:s}=md(a);let l=o.call(a,n);l||(n=Le(n),l=o.call(a,n)),s&&s.call(a,n);const c=a.delete(n);return l&&Ma(a,"delete",n,void 0),c},clear(){const n=Le(this),a=n.size!==0,o=n.clear();return a&&Ma(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=v4(n,e,t)}),r}function f1(e,t){const r=m4(e,t);return(i,n,a)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(Pe(r,n)&&n in i?r:i,n,a)}const y4={get:f1(!1,!1)},_4={get:f1(!1,!0)},b4={get:f1(!0,!1)};const cD=new WeakMap,uD=new WeakMap,hD=new WeakMap,x4=new WeakMap;function w4(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function S4(e){return e.__v_skip||!Object.isExtensible(e)?0:w4(Yz(e))}function Oo(e){return Ha(e)?e:d1(e,!1,d4,y4,cD)}function Mp(e){return d1(e,!1,g4,_4,uD)}function b_(e){return d1(e,!0,p4,b4,hD)}function d1(e,t,r,i,n){if(!je(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=S4(e);if(a===0)return e;const o=n.get(e);if(o)return o;const s=new Proxy(e,a===2?i:r);return n.set(e,s),s}function js(e){return Ha(e)?js(e.__v_raw):!!(e&&e.__v_isReactive)}function Ha(e){return!!(e&&e.__v_isReadonly)}function Ni(e){return!!(e&&e.__v_isShallow)}function Yv(e){return e?!!e.__v_raw:!1}function Le(e){const t=e&&e.__v_raw;return t?Le(t):e}function C4(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&YL(e,"__v_skip",!0),e}const Mn=e=>je(e)?Oo(e):e,Dc=e=>je(e)?b_(e):e;function Sr(e){return e?e.__v_isRef===!0:!1}function ol(e){return fD(e,!1)}function hg(e){return fD(e,!0)}function fD(e,t){return Sr(e)?e:new T4(e,t)}class T4{constructor(t,r){this.dep=new h1,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Le(t),this._value=r?t:Mn(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,i=this.__v_isShallow||Ni(t)||Ha(t);t=i?t:Le(t),Ao(t,r)&&(this._rawValue=t,this._value=i?t:Mn(t),this.dep.trigger())}}function sl(e){return Sr(e)?e.value:e}function Lp(e){return fe(e)?e():sl(e)}const k4={get:(e,t,r)=>t==="__v_raw"?e:sl(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const n=e[t];return Sr(n)&&!Sr(r)?(n.value=r,!0):Reflect.set(e,t,r,i)}};function dD(e){return js(e)?e:new Proxy(e,k4)}function x_(e){const t=le(e)?new Array(e.length):{};for(const r in e)t[r]=pD(e,r);return t}class A4{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=Le(t);let n=!0,a=t;if(!le(t)||!Gv(String(r)))do n=!Yv(a)||Ni(a);while(n&&(a=a.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=sl(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Sr(this._raw[this._key])){const r=this._object[this._key];if(Sr(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return s4(this._raw,this._key)}}class M4{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 L4(e,t,r){return Sr(e)?e:fe(e)?new M4(e):je(e)&&arguments.length>1?pD(e,t,r):ol(e)}function pD(e,t,r){return new A4(e,t,r)}class D4{constructor(t,r,i){this.fn=t,this.setter=r,this._value=void 0,this.dep=new h1(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yh-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ye!==this)return tD(this,!0),!0}get value(){const t=this.dep.track();return iD(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function E4(e,t,r=!1){let i,n;return fe(e)?i=e:(i=e.get,n=e.set),new D4(i,n,r)}const _d={},fg=new WeakMap;let Ps;function I4(e,t=!1,r=Ps){if(r){let i=fg.get(r);i||fg.set(r,i=[]),i.push(e)}}function P4(e,t,r=qe){const{immediate:i,deep:n,once:a,scheduler:o,augmentJob:s,call:l}=r,c=S=>n?S:Ni(S)||n===!1||n===0?La(S,1):La(S);let u,h,d,f,p=!1,g=!1;if(Sr(e)?(h=()=>e.value,p=Ni(e)):js(e)?(h=()=>c(e),p=!0):le(e)?(g=!0,p=e.some(S=>js(S)||Ni(S)),h=()=>e.map(S=>{if(Sr(S))return S.value;if(js(S))return c(S);if(fe(S))return l?l(S,2):S()})):fe(e)?t?h=l?()=>l(e,2):e:h=()=>{if(d){Na();try{d()}finally{za()}}const S=Ps;Ps=u;try{return l?l(e,3,[f]):e(f)}finally{Ps=S}}:h=ta,t&&n){const S=h,k=n===!0?1/0:n;h=()=>La(S(),k)}const v=KL(),m=()=>{u.stop(),v&&v.active&&s1(v.effects,u)};if(a&&t){const S=t;t=(...k)=>{S(...k),m()}}let b=g?new Array(e.length).fill(_d):_d;const w=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const k=u.run();if(n||p||(g?k.some((M,T)=>Ao(M,b[T])):Ao(k,b))){d&&d();const M=Ps;Ps=u;try{const T=[k,b===_d?void 0:g&&b[0]===_d?[]:b,f];b=k,l?l(t,3,T):t(...T)}finally{Ps=M}}}else u.run()};return s&&s(w),u=new QL(h),u.scheduler=o?()=>o(w,!1):w,f=S=>I4(S,!1,u),d=u.onStop=()=>{const S=fg.get(u);if(S){if(l)l(S,4);else for(const k of S)k();fg.delete(u)}},t?i?w(!0):b=u.run():o?o(w.bind(null,!0),!0):u.run(),m.pause=u.pause.bind(u),m.resume=u.resume.bind(u),m.stop=m,m}function La(e,t=1/0,r){if(t<=0||!je(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Sr(e))La(e.value,t,r);else if(le(e))for(let i=0;i<e.length;i++)La(e[i],t,r);else if(WL(e)||hc(e))e.forEach(i=>{La(i,t,r)});else if(VL(e)){for(const i in e)La(e[i],t,r);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&La(e[i],t,r)}return e}function Pf(e,t,r,i){try{return i?e(...i):e()}catch(n){jv(n,t,r)}}function la(e,t,r,i){if(fe(e)){const n=Pf(e,t,r,i);return n&&GL(n)&&n.catch(a=>{jv(a,t,r)}),n}if(le(e)){const n=[];for(let a=0;a<e.length;a++)n.push(la(e[a],t,r,i));return n}}function jv(e,t,r,i=!0){const n=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||qe;if(t){let s=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const u=s.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}s=s.parent}if(a){Na(),Pf(a,null,10,[e,l,c]),za();return}}B4(e,r,n,i,o)}function B4(e,t,r,i=!0,n=!1){if(n)throw e;console.error(e)}const ui=[];let Vn=-1;const fc=[];let yo=null,Ql=0;const gD=Promise.resolve();let dg=null;function Un(e){const t=dg||gD;return e?t.then(this?e.bind(this):e):t}function O4(e){let t=Vn+1,r=ui.length;for(;t<r;){const i=t+r>>>1,n=ui[i],a=Xh(n);a<e||a===e&&n.flags&2?t=i+1:r=i}return t}function p1(e){if(!(e.flags&1)){const t=Xh(e),r=ui[ui.length-1];!r||!(e.flags&2)&&t>=Xh(r)?ui.push(e):ui.splice(O4(t),0,e),e.flags|=1,vD()}}function vD(){dg||(dg=gD.then(yD))}function R4(e){le(e)?fc.push(...e):yo&&e.id===-1?yo.splice(Ql+1,0,e):e.flags&1||(fc.push(e),e.flags|=1),vD()}function fC(e,t,r=Vn+1){for(;r<ui.length;r++){const i=ui[r];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;ui.splice(r,1),r--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function mD(e){if(fc.length){const t=[...new Set(fc)].sort((r,i)=>Xh(r)-Xh(i));if(fc.length=0,yo){yo.push(...t);return}for(yo=t,Ql=0;Ql<yo.length;Ql++){const r=yo[Ql];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}yo=null,Ql=0}}const Xh=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yD(e){try{for(Vn=0;Vn<ui.length;Vn++){const t=ui[Vn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pf(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vn<ui.length;Vn++){const t=ui[Vn];t&&(t.flags&=-2)}Vn=-1,ui.length=0,mD(),dg=null,(ui.length||fc.length)&&yD()}}let Xr=null,_D=null;function pg(e){const t=Xr;return Xr=e,_D=e&&e.type.__scopeId||null,t}function gg(e,t=Xr,r){if(!t||e._n)return e;const i=(...n)=>{i._d&&yg(-1);const a=pg(t);let o;try{o=e(...n)}finally{pg(a),i._d&&yg(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function F4(e,t){if(Xr===null)return e;const r=tm(Xr),i=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[a,o,s,l=qe]=t[n];a&&(fe(a)&&(a={mounted:a,updated:a}),a.deep&&La(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return e}function os(e,t,r,i){const n=e.dirs,a=t&&t.dirs;for(let o=0;o<n.length;o++){const s=n[o];a&&(s.oldValue=a[o].value);let l=s.dir[i];l&&(Na(),la(l,r,8,[e.el,s,e,t]),za())}}function w_(e,t){if(hi){let r=hi.provides;const i=hi.parent&&hi.parent.provides;i===r&&(r=hi.provides=Object.create(i)),r[e]=t}}function ea(e,t,r=!1){const i=P6();if(i||pc){let n=pc?pc._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return r&&fe(t)?t.call(i&&i.proxy):t}}const $4=Symbol.for("v-scx"),N4=()=>ea($4);function g1(e,t){return v1(e,null,t)}function Se(e,t,r){return v1(e,t,r)}function v1(e,t,r=qe){const{immediate:i,deep:n,flush:a,once:o}=r,s=Nr({},r),l=t&&i||!t&&a!=="post";let c;if(Qh){if(a==="sync"){const f=N4();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=ta,f.resume=ta,f.pause=ta,f}}const u=hi;s.call=(f,p,g)=>la(f,u,p,g);let h=!1;a==="post"?s.scheduler=f=>{si(f,u&&u.suspense)}:a!=="sync"&&(h=!0,s.scheduler=(f,p)=>{p?f():p1(f)}),s.augmentJob=f=>{t&&(f.flags|=4),h&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const d=P4(e,t,s);return Qh&&(c?c.push(d):l&&d()),d}function z4(e,t,r){const i=this.proxy,n=pr(e)?e.includes(".")?bD(i,e):()=>i[e]:e.bind(i,i);let a;fe(t)?a=t:(a=t.handler,r=t);const o=Bf(this),s=v1(n,a.bind(i),r);return o(),s}function bD(e,t){const r=t.split(".");return()=>{let i=e;for(let n=0;n<r.length&&i;n++)i=i[r[n]];return i}}const xD=Symbol("_vte"),H4=e=>e.__isTeleport,yh=e=>e&&(e.disabled||e.disabled===""),dC=e=>e&&(e.defer||e.defer===""),pC=e=>typeof SVGElement<"u"&&e instanceof SVGElement,gC=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,S_=(e,t)=>{const r=e&&e.to;return pr(r)?t?t(r):null:r},wD={name:"Teleport",__isTeleport:!0,process(e,t,r,i,n,a,o,s,l,c){const{mc:u,pc:h,pbc:d,o:{insert:f,querySelector:p,createText:g,createComment:v}}=c,m=yh(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const k=t.el=g(""),M=t.anchor=g("");f(k,r,i),f(M,r,i);const T=(B,R)=>{b&16&&u(w,B,R,n,a,o,s,l)},I=()=>{const B=t.target=S_(t.props,p),R=SD(B,t,g,f);B&&(o!=="svg"&&pC(B)?o="svg":o!=="mathml"&&gC(B)&&(o="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(B),m||(T(B,R),Dp(t,!1)))};m&&(T(r,M),Dp(t,!0)),dC(t.props)?(t.el.__isMounted=!1,si(()=>{I(),delete t.el.__isMounted},a)):I()}else{if(dC(t.props)&&e.el.__isMounted===!1){si(()=>{wD.process(e,t,r,i,n,a,o,s,l,c)},a);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,M=t.target=e.target,T=t.targetAnchor=e.targetAnchor,I=yh(e.props),B=I?r:M,R=I?k:T;if(o==="svg"||pC(M)?o="svg":(o==="mathml"||gC(M))&&(o="mathml"),S?(d(e.dynamicChildren,S,B,n,a,o,s),x1(e,t,!0)):l||h(e,t,B,R,n,a,o,s,!1),m)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):bd(t,r,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=S_(t.props,p);D&&bd(t,D,null,c,0)}else I&&bd(t,M,T,c,1);Dp(t,m)}},remove(e,t,r,{um:i,o:{remove:n}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:c,targetAnchor:u,target:h,props:d}=e;if(h&&(n(c),n(u)),a&&n(l),o&16){const f=a||!yh(d);for(let p=0;p<s.length;p++){const g=s[p];i(g,t,r,f,!!g.dynamicChildren)}}},move:bd,hydrate:W4};function bd(e,t,r,{o:{insert:i},m:n},a=2){a===0&&i(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:c,props:u}=e,h=a===2;if(h&&i(o,t,r),(!h||yh(u))&&l&16)for(let d=0;d<c.length;d++)n(c[d],t,r,2);h&&i(s,t,r)}function W4(e,t,r,i,n,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:c,createText:u}},h){function d(g,v,m,b){v.anchor=h(o(g),v,s(g),r,i,n,a),v.targetStart=m,v.targetAnchor=b}const f=t.target=S_(t.props,l),p=yh(t.props);if(f){const g=f._lpa||f.firstChild;if(t.shapeFlag&16)if(p)d(e,t,g,g&&o(g));else{t.anchor=o(e);let v=g;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,f._lpa=t.targetAnchor&&o(t.targetAnchor);break}}v=o(v)}t.targetAnchor||SD(f,t,u,c),h(g&&o(g),t,f,r,i,n,a)}Dp(t,p)}else p&&t.shapeFlag&16&&d(e,t,e,o(e));return t.anchor&&o(t.anchor)}const G4=wD;function Dp(e,t){const r=e.ctx;if(r&&r.ut){let i,n;for(t?(i=e.el,n=e.anchor):(i=e.targetStart,n=e.targetAnchor);i&&i!==n;)i.nodeType===1&&i.setAttribute("data-v-owner",r.uid),i=i.nextSibling;r.ut()}}function SD(e,t,r,i){const n=t.targetStart=r(""),a=t.targetAnchor=r("");return n[xD]=a,e&&(i(n,e),i(a,e)),a}const q4=Symbol("_leaveCb");function m1(e,t){e.shapeFlag&6&&e.component?(e.transition=t,m1(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 jo(e,t){return fe(e)?Nr({name:e.name},t,{setup:e}):e}function CD(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const vg=new WeakMap;function _h(e,t,r,i,n=!1){if(le(e)){e.forEach((p,g)=>_h(p,t&&(le(t)?t[g]:t),r,i,n));return}if(dc(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_h(e,t,r,i.component.subTree);return}const a=i.shapeFlag&4?tm(i.component):i.el,o=n?null:a,{i:s,r:l}=e,c=t&&t.r,u=s.refs===qe?s.refs={}:s.refs,h=s.setupState,d=Le(h),f=h===qe?HL:p=>Pe(d,p);if(c!=null&&c!==l){if(vC(t),pr(c))u[c]=null,f(c)&&(h[c]=null);else if(Sr(c)){c.value=null;const p=t;p.k&&(u[p.k]=null)}}if(fe(l))Pf(l,s,12,[o,u]);else{const p=pr(l),g=Sr(l);if(p||g){const v=()=>{if(e.f){const m=p?f(l)?h[l]:u[l]:l.value;if(n)le(m)&&s1(m,a);else if(le(m))m.includes(a)||m.push(a);else if(p)u[l]=[a],f(l)&&(h[l]=u[l]);else{const b=[a];l.value=b,e.k&&(u[e.k]=b)}}else p?(u[l]=o,f(l)&&(h[l]=o)):g&&(l.value=o,e.k&&(u[e.k]=o))};if(o){const m=()=>{v(),vg.delete(e)};m.id=-1,vg.set(e,m),si(m,r)}else vC(e),v()}}}function vC(e){const t=vg.get(e);t&&(t.flags|=8,vg.delete(e))}Vv().requestIdleCallback;Vv().cancelIdleCallback;const dc=e=>!!e.type.__asyncLoader,TD=e=>e.type.__isKeepAlive;function V4(e,t){kD(e,"a",t)}function U4(e,t){kD(e,"da",t)}function kD(e,t,r=hi){const i=e.__wdc||(e.__wdc=()=>{let n=r;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Xv(t,i,r),r){let n=r.parent;for(;n&&n.parent;)TD(n.parent.vnode)&&Y4(i,t,r,n),n=n.parent}}function Y4(e,t,r,i){const n=Xv(t,e,i,!0);Kv(()=>{s1(i[t],n)},r)}function Xv(e,t,r=hi,i=!1){if(r){const n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Na();const s=Bf(r),l=la(t,r,e,o);return s(),za(),l});return i?n.unshift(a):n.push(a),a}}const Za=e=>(t,r=hi)=>{(!Qh||e==="sp")&&Xv(e,(...i)=>t(...i),r)},y1=Za("bm"),bl=Za("m"),j4=Za("bu"),AD=Za("u"),Zv=Za("bum"),Kv=Za("um"),X4=Za("sp"),Z4=Za("rtg"),K4=Za("rtc");function Q4(e,t=hi){Xv("ec",e,t)}const J4=Symbol.for("v-ndc");function bh(e,t,r,i){let n;const a=r,o=le(e);if(o||pr(e)){const s=o&&js(e);let l=!1,c=!1;s&&(l=!Ni(e),c=Ha(e),e=Uv(e)),n=new Array(e.length);for(let u=0,h=e.length;u<h;u++)n[u]=t(l?c?Dc(Mn(e[u])):Mn(e[u]):e[u],u,void 0,a)}else if(typeof e=="number"){n=new Array(e);for(let s=0;s<e;s++)n[s]=t(s+1,s,void 0,a)}else if(je(e))if(e[Symbol.iterator])n=Array.from(e,(s,l)=>t(s,l,void 0,a));else{const s=Object.keys(e);n=new Array(s.length);for(let l=0,c=s.length;l<c;l++){const u=s[l];n[l]=t(e[u],u,l,a)}}else n=[];return n}function C_(e,t,r={},i,n){if(Xr.ce||Xr.parent&&dc(Xr.parent)&&Xr.parent.ce){const c=Object.keys(r).length>0;return t!=="default"&&(r.name=t),Ae(),Ia(Lr,null,[Fr("slot",r,i)],c?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Ae();const o=a&&MD(a(r)),s=r.key||o&&o.key,l=Ia(Lr,{key:(s&&!Xa(s)?s:`_${t}`)+(!o&&i?"_fb":"")},o||[],o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function MD(e){return e.some(t=>Kh(t)?!(t.type===Wa||t.type===Lr&&!MD(t.children)):!0)?e:null}const T_=e=>e?YD(e)?tm(e):T_(e.parent):null,xh=Nr(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=>T_(e.parent),$root:e=>T_(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>DD(e),$forceUpdate:e=>e.f||(e.f=()=>{p1(e.update)}),$nextTick:e=>e.n||(e.n=Un.bind(e.proxy)),$watch:e=>z4.bind(e)}),_y=(e,t)=>e!==qe&&!e.__isScriptSetup&&Pe(e,t),t6={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:i,data:n,props:a,accessCache:o,type:s,appContext:l}=e;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return i[t];case 2:return n[t];case 4:return r[t];case 3:return a[t]}else{if(_y(i,t))return o[t]=1,i[t];if(n!==qe&&Pe(n,t))return o[t]=2,n[t];if(Pe(a,t))return o[t]=3,a[t];if(r!==qe&&Pe(r,t))return o[t]=4,r[t];k_&&(o[t]=0)}}const c=xh[t];let u,h;if(c)return t==="$attrs"&&jr(e.attrs,"get",""),c(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(r!==qe&&Pe(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,Pe(h,t))return h[t]},set({_:e},t,r){const{data:i,setupState:n,ctx:a}=e;return _y(n,t)?(n[t]=r,!0):i!==qe&&Pe(i,t)?(i[t]=r,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:n,props:a,type:o}},s){let l;return!!(r[s]||e!==qe&&s[0]!=="$"&&Pe(e,s)||_y(t,s)||Pe(a,s)||Pe(i,s)||Pe(xh,s)||Pe(n.config.globalProperties,s)||(l=o.__cssModules)&&l[s])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Pe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function mC(e){return le(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let k_=!0;function e6(e){const t=DD(e),r=e.proxy,i=e.ctx;k_=!1,t.beforeCreate&&yC(t.beforeCreate,e,"bc");const{data:n,computed:a,methods:o,watch:s,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:p,activated:g,deactivated:v,beforeDestroy:m,beforeUnmount:b,destroyed:w,unmounted:S,render:k,renderTracked:M,renderTriggered:T,errorCaptured:I,serverPrefetch:B,expose:R,inheritAttrs:D,components:$,directives:O,filters:F}=t;if(c&&r6(c,i,null),o)for(const U in o){const q=o[U];fe(q)&&(i[U]=q.bind(r))}if(n){const U=n.call(r,r);je(U)&&(e.data=Oo(U))}if(k_=!0,a)for(const U in a){const q=a[U],K=fe(q)?q.bind(r,r):fe(q.get)?q.get.bind(r,r):ta,et=!fe(q)&&fe(q.set)?q.set.bind(r):ta,Q=tn({get:K,set:et});Object.defineProperty(i,U,{enumerable:!0,configurable:!0,get:()=>Q.value,set:it=>Q.value=it})}if(s)for(const U in s)LD(s[U],i,r,U);if(l){const U=fe(l)?l.call(r):l;Reflect.ownKeys(U).forEach(q=>{w_(q,U[q])})}u&&yC(u,e,"c");function H(U,q){le(q)?q.forEach(K=>U(K.bind(r))):q&&U(q.bind(r))}if(H(y1,h),H(bl,d),H(j4,f),H(AD,p),H(V4,g),H(U4,v),H(Q4,I),H(K4,M),H(Z4,T),H(Zv,b),H(Kv,S),H(X4,B),le(R))if(R.length){const U=e.exposed||(e.exposed={});R.forEach(q=>{Object.defineProperty(U,q,{get:()=>r[q],set:K=>r[q]=K,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ta&&(e.render=k),D!=null&&(e.inheritAttrs=D),$&&(e.components=$),O&&(e.directives=O),B&&CD(e)}function r6(e,t,r=ta){le(e)&&(e=A_(e));for(const i in e){const n=e[i];let a;je(n)?"default"in n?a=ea(n.from||i,n.default,!0):a=ea(n.from||i):a=ea(n),Sr(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[i]=a}}function yC(e,t,r){la(le(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function LD(e,t,r,i){let n=i.includes(".")?bD(r,i):()=>r[i];if(pr(e)){const a=t[e];fe(a)&&Se(n,a)}else if(fe(e))Se(n,e.bind(r));else if(je(e))if(le(e))e.forEach(a=>LD(a,t,r,i));else{const a=fe(e.handler)?e.handler.bind(r):t[e.handler];fe(a)&&Se(n,a,e)}}function DD(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!n.length&&!r&&!i?l=t:(l={},n.length&&n.forEach(c=>mg(l,c,o,!0)),mg(l,t,o)),je(t)&&a.set(t,l),l}function mg(e,t,r,i=!1){const{mixins:n,extends:a}=t;a&&mg(e,a,r,!0),n&&n.forEach(o=>mg(e,o,r,!0));for(const o in t)if(!(i&&o==="expose")){const s=i6[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const i6={data:_C,props:bC,emits:bC,methods:Xu,computed:Xu,beforeCreate:oi,created:oi,beforeMount:oi,mounted:oi,beforeUpdate:oi,updated:oi,beforeDestroy:oi,beforeUnmount:oi,destroyed:oi,unmounted:oi,activated:oi,deactivated:oi,errorCaptured:oi,serverPrefetch:oi,components:Xu,directives:Xu,watch:a6,provide:_C,inject:n6};function _C(e,t){return t?e?function(){return Nr(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function n6(e,t){return Xu(A_(e),A_(t))}function A_(e){if(le(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function oi(e,t){return e?[...new Set([].concat(e,t))]:t}function Xu(e,t){return e?Nr(Object.create(null),e,t):t}function bC(e,t){return e?le(e)&&le(t)?[...new Set([...e,...t])]:Nr(Object.create(null),mC(e),mC(t??{})):t}function a6(e,t){if(!e)return t;if(!t)return e;const r=Nr(Object.create(null),e);for(const i in t)r[i]=oi(e[i],t[i]);return r}function ED(){return{app:null,config:{isNativeTag:HL,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 o6=0;function s6(e,t){return function(i,n=null){fe(i)||(i=Nr({},i)),n!=null&&!je(n)&&(n=null);const a=ED(),o=new WeakSet,s=[];let l=!1;const c=a.app={_uid:o6++,_component:i,_props:n,_container:null,_context:a,_instance:null,version:N6,get config(){return a.config},set config(u){},use(u,...h){return o.has(u)||(u&&fe(u.install)?(o.add(u),u.install(c,...h)):fe(u)&&(o.add(u),u(c,...h))),c},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),c},component(u,h){return h?(a.components[u]=h,c):a.components[u]},directive(u,h){return h?(a.directives[u]=h,c):a.directives[u]},mount(u,h,d){if(!l){const f=c._ceVNode||Fr(i,n);return f.appContext=a,d===!0?d="svg":d===!1&&(d=void 0),e(f,u,d),l=!0,c._container=u,u.__vue_app__=c,tm(f.component)}},onUnmount(u){s.push(u)},unmount(){l&&(la(s,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return a.provides[u]=h,c},runWithContext(u){const h=pc;pc=c;try{return u()}finally{pc=h}}};return c}}let pc=null;const l6=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Bo(t)}Modifiers`]||e[`${_l(t)}Modifiers`];function c6(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||qe;let n=r;const a=t.startsWith("update:"),o=a&&l6(i,t.slice(7));o&&(o.trim&&(n=r.map(u=>pr(u)?u.trim():u)),o.number&&(n=r.map(Zz)));let s,l=i[s=dy(t)]||i[s=dy(Bo(t))];!l&&a&&(l=i[s=dy(_l(t))]),l&&la(l,e,6,n);const c=i[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,la(c,e,6,n)}}const u6=new WeakMap;function ID(e,t,r=!1){const i=r?u6:t.emitsCache,n=i.get(e);if(n!==void 0)return n;const a=e.emits;let o={},s=!1;if(!fe(e)){const l=c=>{const u=ID(c,t,!0);u&&(s=!0,Nr(o,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(je(e)&&i.set(e,null),null):(le(a)?a.forEach(l=>o[l]=null):Nr(o,a),je(e)&&i.set(e,o),o)}function Qv(e,t){return!e||!Hv(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,_l(t))||Pe(e,t))}function xC(e){const{type:t,vnode:r,proxy:i,withProxy:n,propsOptions:[a],slots:o,attrs:s,emit:l,render:c,renderCache:u,props:h,data:d,setupState:f,ctx:p,inheritAttrs:g}=e,v=pg(e);let m,b;try{if(r.shapeFlag&4){const S=n||i,k=S;m=jn(c.call(k,S,u,h,f,d,p)),b=s}else{const S=t;m=jn(S.length>1?S(h,{attrs:s,slots:o,emit:l}):S(h,null)),b=t.props?s:h6(s)}}catch(S){wh.length=0,jv(S,e,1),m=Fr(Wa)}let w=m;if(b&&g!==!1){const S=Object.keys(b),{shapeFlag:k}=w;S.length&&k&7&&(a&&S.some(o1)&&(b=f6(b,a)),w=Ec(w,b,!1,!0))}return r.dirs&&(w=Ec(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&m1(w,r.transition),m=w,pg(v),m}const h6=e=>{let t;for(const r in e)(r==="class"||r==="style"||Hv(r))&&((t||(t={}))[r]=e[r]);return t},f6=(e,t)=>{const r={};for(const i in e)(!o1(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r};function d6(e,t,r){const{props:i,children:n,component:a}=e,{props:o,children:s,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return i?wC(i,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(o[d]!==i[d]&&!Qv(c,d))return!0}}}else return(n||s)&&(!s||!s.$stable)?!0:i===o?!1:i?o?wC(i,o,c):!0:!!o;return!1}function wC(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let n=0;n<i.length;n++){const a=i[n];if(t[a]!==e[a]&&!Qv(r,a))return!0}return!1}function p6({vnode:e,parent:t},r){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=r,t=t.parent;else break}}const PD={},BD=()=>Object.create(PD),OD=e=>Object.getPrototypeOf(e)===PD;function g6(e,t,r,i=!1){const n={},a=BD();e.propsDefaults=Object.create(null),RD(e,t,n,a);for(const o in e.propsOptions[0])o in n||(n[o]=void 0);r?e.props=i?n:Mp(n):e.type.props?e.props=n:e.props=a,e.attrs=a}function v6(e,t,r,i){const{props:n,attrs:a,vnode:{patchFlag:o}}=e,s=Le(n),[l]=e.propsOptions;let c=!1;if((i||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Qv(e.emitsOptions,d))continue;const f=t[d];if(l)if(Pe(a,d))f!==a[d]&&(a[d]=f,c=!0);else{const p=Bo(d);n[p]=M_(l,s,p,f,e,!1)}else f!==a[d]&&(a[d]=f,c=!0)}}}else{RD(e,t,n,a)&&(c=!0);let u;for(const h in s)(!t||!Pe(t,h)&&((u=_l(h))===h||!Pe(t,u)))&&(l?r&&(r[h]!==void 0||r[u]!==void 0)&&(n[h]=M_(l,s,h,void 0,e,!0)):delete n[h]);if(a!==s)for(const h in a)(!t||!Pe(t,h))&&(delete a[h],c=!0)}c&&Ma(e.attrs,"set","")}function RD(e,t,r,i){const[n,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(gh(l))continue;const c=t[l];let u;n&&Pe(n,u=Bo(l))?!a||!a.includes(u)?r[u]=c:(s||(s={}))[u]=c:Qv(e.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,o=!0)}if(a){const l=Le(r),c=s||qe;for(let u=0;u<a.length;u++){const h=a[u];r[h]=M_(n,l,h,c[h],e,!Pe(c,h))}}return o}function M_(e,t,r,i,n,a){const o=e[r];if(o!=null){const s=Pe(o,"default");if(s&&i===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&fe(l)){const{propsDefaults:c}=n;if(r in c)i=c[r];else{const u=Bf(n);i=c[r]=l.call(null,t),u()}}else i=l;n.ce&&n.ce._setProp(r,i)}o[0]&&(a&&!s?i=!1:o[1]&&(i===""||i===_l(r))&&(i=!0))}return i}const m6=new WeakMap;function FD(e,t,r=!1){const i=r?m6:t.propsCache,n=i.get(e);if(n)return n;const a=e.props,o={},s=[];let l=!1;if(!fe(e)){const u=h=>{l=!0;const[d,f]=FD(h,t,!0);Nr(o,d),f&&s.push(...f)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return je(e)&&i.set(e,uc),uc;if(le(a))for(let u=0;u<a.length;u++){const h=Bo(a[u]);SC(h)&&(o[h]=qe)}else if(a)for(const u in a){const h=Bo(u);if(SC(h)){const d=a[u],f=o[h]=le(d)||fe(d)?{type:d}:Nr({},d),p=f.type;let g=!1,v=!0;if(le(p))for(let m=0;m<p.length;++m){const b=p[m],w=fe(b)&&b.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(v=!1)}else g=fe(p)&&p.name==="Boolean";f[0]=g,f[1]=v,(g||Pe(f,"default"))&&s.push(h)}}const c=[o,s];return je(e)&&i.set(e,c),c}function SC(e){return e[0]!=="$"&&!gh(e)}const _1=e=>e==="_"||e==="_ctx"||e==="$stable",b1=e=>le(e)?e.map(jn):[jn(e)],y6=(e,t,r)=>{if(t._n)return t;const i=gg((...n)=>b1(t(...n)),r);return i._c=!1,i},$D=(e,t,r)=>{const i=e._ctx;for(const n in e){if(_1(n))continue;const a=e[n];if(fe(a))t[n]=y6(n,a,i);else if(a!=null){const o=b1(a);t[n]=()=>o}}},ND=(e,t)=>{const r=b1(t);e.slots.default=()=>r},zD=(e,t,r)=>{for(const i in t)(r||!_1(i))&&(e[i]=t[i])},_6=(e,t,r)=>{const i=e.slots=BD();if(e.vnode.shapeFlag&32){const n=t._;n?(zD(i,t,r),r&&YL(i,"_",n,!0)):$D(t,i)}else t&&ND(e,t)},b6=(e,t,r)=>{const{vnode:i,slots:n}=e;let a=!0,o=qe;if(i.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:zD(n,t,r):(a=!t.$stable,$D(t,n)),o=t}else t&&(ND(e,t),o={default:1});if(a)for(const s in n)!_1(s)&&o[s]==null&&delete n[s]},si=T6;function x6(e){return w6(e)}function w6(e,t){const r=Vv();r.__VUE__=!0;const{insert:i,remove:n,patchProp:a,createElement:o,createText:s,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:f=ta,insertStaticContent:p}=e,g=(W,X,nt,lt=null,st=null,ct=null,yt=void 0,vt=null,gt=!!X.dynamicChildren)=>{if(W===X)return;W&&!mu(W,X)&&(lt=ae(W),it(W,st,ct,!0),W=null),X.patchFlag===-2&&(gt=!1,X.dynamicChildren=null);const{type:ut,ref:Bt,shapeFlag:rt}=X;switch(ut){case Jv:v(W,X,nt,lt);break;case Wa:m(W,X,nt,lt);break;case xy:W==null&&b(X,nt,lt,yt);break;case Lr:$(W,X,nt,lt,st,ct,yt,vt,gt);break;default:rt&1?k(W,X,nt,lt,st,ct,yt,vt,gt):rt&6?O(W,X,nt,lt,st,ct,yt,vt,gt):(rt&64||rt&128)&&ut.process(W,X,nt,lt,st,ct,yt,vt,gt,qt)}Bt!=null&&st?_h(Bt,W&&W.ref,ct,X||W,!X):Bt==null&&W&&W.ref!=null&&_h(W.ref,null,ct,W,!0)},v=(W,X,nt,lt)=>{if(W==null)i(X.el=s(X.children),nt,lt);else{const st=X.el=W.el;X.children!==W.children&&c(st,X.children)}},m=(W,X,nt,lt)=>{W==null?i(X.el=l(X.children||""),nt,lt):X.el=W.el},b=(W,X,nt,lt)=>{[W.el,W.anchor]=p(W.children,X,nt,lt,W.el,W.anchor)},w=({el:W,anchor:X},nt,lt)=>{let st;for(;W&&W!==X;)st=d(W),i(W,nt,lt),W=st;i(X,nt,lt)},S=({el:W,anchor:X})=>{let nt;for(;W&&W!==X;)nt=d(W),n(W),W=nt;n(X)},k=(W,X,nt,lt,st,ct,yt,vt,gt)=>{if(X.type==="svg"?yt="svg":X.type==="math"&&(yt="mathml"),W==null)M(X,nt,lt,st,ct,yt,vt,gt);else{const ut=W.el&&W.el._isVueCE?W.el:null;try{ut&&ut._beginPatch(),B(W,X,st,ct,yt,vt,gt)}finally{ut&&ut._endPatch()}}},M=(W,X,nt,lt,st,ct,yt,vt)=>{let gt,ut;const{props:Bt,shapeFlag:rt,transition:ft,dirs:St}=W;if(gt=W.el=o(W.type,ct,Bt&&Bt.is,Bt),rt&8?u(gt,W.children):rt&16&&I(W.children,gt,null,lt,st,by(W,ct),yt,vt),St&&os(W,null,lt,"created"),T(gt,W,W.scopeId,yt,lt),Bt){for(const Vt in Bt)Vt!=="value"&&!gh(Vt)&&a(gt,Vt,null,Bt[Vt],ct,lt);"value"in Bt&&a(gt,"value",null,Bt.value,ct),(ut=Bt.onVnodeBeforeMount)&&Bn(ut,lt,W)}St&&os(W,null,lt,"beforeMount");const At=S6(st,ft);At&&ft.beforeEnter(gt),i(gt,X,nt),((ut=Bt&&Bt.onVnodeMounted)||At||St)&&si(()=>{ut&&Bn(ut,lt,W),At&&ft.enter(gt),St&&os(W,null,lt,"mounted")},st)},T=(W,X,nt,lt,st)=>{if(nt&&f(W,nt),lt)for(let ct=0;ct<lt.length;ct++)f(W,lt[ct]);if(st){let ct=st.subTree;if(X===ct||GD(ct.type)&&(ct.ssContent===X||ct.ssFallback===X)){const yt=st.vnode;T(W,yt,yt.scopeId,yt.slotScopeIds,st.parent)}}},I=(W,X,nt,lt,st,ct,yt,vt,gt=0)=>{for(let ut=gt;ut<W.length;ut++){const Bt=W[ut]=vt?_o(W[ut]):jn(W[ut]);g(null,Bt,X,nt,lt,st,ct,yt,vt)}},B=(W,X,nt,lt,st,ct,yt)=>{const vt=X.el=W.el;let{patchFlag:gt,dynamicChildren:ut,dirs:Bt}=X;gt|=W.patchFlag&16;const rt=W.props||qe,ft=X.props||qe;let St;if(nt&&ss(nt,!1),(St=ft.onVnodeBeforeUpdate)&&Bn(St,nt,X,W),Bt&&os(X,W,nt,"beforeUpdate"),nt&&ss(nt,!0),(rt.innerHTML&&ft.innerHTML==null||rt.textContent&&ft.textContent==null)&&u(vt,""),ut?R(W.dynamicChildren,ut,vt,nt,lt,by(X,st),ct):yt||q(W,X,vt,null,nt,lt,by(X,st),ct,!1),gt>0){if(gt&16)D(vt,rt,ft,nt,st);else if(gt&2&&rt.class!==ft.class&&a(vt,"class",null,ft.class,st),gt&4&&a(vt,"style",rt.style,ft.style,st),gt&8){const At=X.dynamicProps;for(let Vt=0;Vt<At.length;Vt++){const Et=At[Vt],Rt=rt[Et],we=ft[Et];(we!==Rt||Et==="value")&&a(vt,Et,Rt,we,st,nt)}}gt&1&&W.children!==X.children&&u(vt,X.children)}else!yt&&ut==null&&D(vt,rt,ft,nt,st);((St=ft.onVnodeUpdated)||Bt)&&si(()=>{St&&Bn(St,nt,X,W),Bt&&os(X,W,nt,"updated")},lt)},R=(W,X,nt,lt,st,ct,yt)=>{for(let vt=0;vt<X.length;vt++){const gt=W[vt],ut=X[vt],Bt=gt.el&&(gt.type===Lr||!mu(gt,ut)||gt.shapeFlag&198)?h(gt.el):nt;g(gt,ut,Bt,null,lt,st,ct,yt,!0)}},D=(W,X,nt,lt,st)=>{if(X!==nt){if(X!==qe)for(const ct in X)!gh(ct)&&!(ct in nt)&&a(W,ct,X[ct],null,st,lt);for(const ct in nt){if(gh(ct))continue;const yt=nt[ct],vt=X[ct];yt!==vt&&ct!=="value"&&a(W,ct,vt,yt,st,lt)}"value"in nt&&a(W,"value",X.value,nt.value,st)}},$=(W,X,nt,lt,st,ct,yt,vt,gt)=>{const ut=X.el=W?W.el:s(""),Bt=X.anchor=W?W.anchor:s("");let{patchFlag:rt,dynamicChildren:ft,slotScopeIds:St}=X;St&&(vt=vt?vt.concat(St):St),W==null?(i(ut,nt,lt),i(Bt,nt,lt),I(X.children||[],nt,Bt,st,ct,yt,vt,gt)):rt>0&&rt&64&&ft&&W.dynamicChildren&&W.dynamicChildren.length===ft.length?(R(W.dynamicChildren,ft,nt,st,ct,yt,vt),(X.key!=null||st&&X===st.subTree)&&x1(W,X,!0)):q(W,X,nt,Bt,st,ct,yt,vt,gt)},O=(W,X,nt,lt,st,ct,yt,vt,gt)=>{X.slotScopeIds=vt,W==null?X.shapeFlag&512?st.ctx.activate(X,nt,lt,yt,gt):F(X,nt,lt,st,ct,yt,gt):z(W,X,gt)},F=(W,X,nt,lt,st,ct,yt)=>{const vt=W.component=I6(W,lt,st);if(TD(W)&&(vt.ctx.renderer=qt),B6(vt,!1,yt),vt.asyncDep){if(st&&st.registerDep(vt,H,yt),!W.el){const gt=vt.subTree=Fr(Wa);m(null,gt,X,nt),W.placeholder=gt.el}}else H(vt,W,X,nt,st,ct,yt)},z=(W,X,nt)=>{const lt=X.component=W.component;if(d6(W,X,nt))if(lt.asyncDep&&!lt.asyncResolved){U(lt,X,nt);return}else lt.next=X,lt.update();else X.el=W.el,lt.vnode=X},H=(W,X,nt,lt,st,ct,yt)=>{const vt=()=>{if(W.isMounted){let{next:rt,bu:ft,u:St,parent:At,vnode:Vt}=W;{const Ge=HD(W);if(Ge){rt&&(rt.el=Vt.el,U(W,rt,yt)),Ge.asyncDep.then(()=>{W.isUnmounted||vt()});return}}let Et=rt,Rt;ss(W,!1),rt?(rt.el=Vt.el,U(W,rt,yt)):rt=Vt,ft&&py(ft),(Rt=rt.props&&rt.props.onVnodeBeforeUpdate)&&Bn(Rt,At,rt,Vt),ss(W,!0);const we=xC(W),Ee=W.subTree;W.subTree=we,g(Ee,we,h(Ee.el),ae(Ee),W,st,ct),rt.el=we.el,Et===null&&p6(W,we.el),St&&si(St,st),(Rt=rt.props&&rt.props.onVnodeUpdated)&&si(()=>Bn(Rt,At,rt,Vt),st)}else{let rt;const{el:ft,props:St}=X,{bm:At,m:Vt,parent:Et,root:Rt,type:we}=W,Ee=dc(X);ss(W,!1),At&&py(At),!Ee&&(rt=St&&St.onVnodeBeforeMount)&&Bn(rt,Et,X),ss(W,!0);{Rt.ce&&Rt.ce._def.shadowRoot!==!1&&Rt.ce._injectChildStyle(we);const Ge=W.subTree=xC(W);g(null,Ge,nt,lt,W,st,ct),X.el=Ge.el}if(Vt&&si(Vt,st),!Ee&&(rt=St&&St.onVnodeMounted)){const Ge=X;si(()=>Bn(rt,Et,Ge),st)}(X.shapeFlag&256||Et&&dc(Et.vnode)&&Et.vnode.shapeFlag&256)&&W.a&&si(W.a,st),W.isMounted=!0,X=nt=lt=null}};W.scope.on();const gt=W.effect=new QL(vt);W.scope.off();const ut=W.update=gt.run.bind(gt),Bt=W.job=gt.runIfDirty.bind(gt);Bt.i=W,Bt.id=W.uid,gt.scheduler=()=>p1(Bt),ss(W,!0),ut()},U=(W,X,nt)=>{X.component=W;const lt=W.vnode.props;W.vnode=X,W.next=null,v6(W,X.props,lt,nt),b6(W,X.children,nt),Na(),fC(W),za()},q=(W,X,nt,lt,st,ct,yt,vt,gt=!1)=>{const ut=W&&W.children,Bt=W?W.shapeFlag:0,rt=X.children,{patchFlag:ft,shapeFlag:St}=X;if(ft>0){if(ft&128){et(ut,rt,nt,lt,st,ct,yt,vt,gt);return}else if(ft&256){K(ut,rt,nt,lt,st,ct,yt,vt,gt);return}}St&8?(Bt&16&&Zt(ut,st,ct),rt!==ut&&u(nt,rt)):Bt&16?St&16?et(ut,rt,nt,lt,st,ct,yt,vt,gt):Zt(ut,st,ct,!0):(Bt&8&&u(nt,""),St&16&&I(rt,nt,lt,st,ct,yt,vt,gt))},K=(W,X,nt,lt,st,ct,yt,vt,gt)=>{W=W||uc,X=X||uc;const ut=W.length,Bt=X.length,rt=Math.min(ut,Bt);let ft;for(ft=0;ft<rt;ft++){const St=X[ft]=gt?_o(X[ft]):jn(X[ft]);g(W[ft],St,nt,null,st,ct,yt,vt,gt)}ut>Bt?Zt(W,st,ct,!0,!1,rt):I(X,nt,lt,st,ct,yt,vt,gt,rt)},et=(W,X,nt,lt,st,ct,yt,vt,gt)=>{let ut=0;const Bt=X.length;let rt=W.length-1,ft=Bt-1;for(;ut<=rt&&ut<=ft;){const St=W[ut],At=X[ut]=gt?_o(X[ut]):jn(X[ut]);if(mu(St,At))g(St,At,nt,null,st,ct,yt,vt,gt);else break;ut++}for(;ut<=rt&&ut<=ft;){const St=W[rt],At=X[ft]=gt?_o(X[ft]):jn(X[ft]);if(mu(St,At))g(St,At,nt,null,st,ct,yt,vt,gt);else break;rt--,ft--}if(ut>rt){if(ut<=ft){const St=ft+1,At=St<Bt?X[St].el:lt;for(;ut<=ft;)g(null,X[ut]=gt?_o(X[ut]):jn(X[ut]),nt,At,st,ct,yt,vt,gt),ut++}}else if(ut>ft)for(;ut<=rt;)it(W[ut],st,ct,!0),ut++;else{const St=ut,At=ut,Vt=new Map;for(ut=At;ut<=ft;ut++){const ke=X[ut]=gt?_o(X[ut]):jn(X[ut]);ke.key!=null&&Vt.set(ke.key,ut)}let Et,Rt=0;const we=ft-At+1;let Ee=!1,Ge=0;const yr=new Array(we);for(ut=0;ut<we;ut++)yr[ut]=0;for(ut=St;ut<=rt;ut++){const ke=W[ut];if(Rt>=we){it(ke,st,ct,!0);continue}let Ke;if(ke.key!=null)Ke=Vt.get(ke.key);else for(Et=At;Et<=ft;Et++)if(yr[Et-At]===0&&mu(ke,X[Et])){Ke=Et;break}Ke===void 0?it(ke,st,ct,!0):(yr[Ke-At]=ut+1,Ke>=Ge?Ge=Ke:Ee=!0,g(ke,X[Ke],nt,null,st,ct,yt,vt,gt),Rt++)}const Hr=Ee?C6(yr):uc;for(Et=Hr.length-1,ut=we-1;ut>=0;ut--){const ke=At+ut,Ke=X[ke],Ei=X[ke+1],Wr=ke+1<Bt?Ei.el||WD(Ei):lt;yr[ut]===0?g(null,Ke,nt,Wr,st,ct,yt,vt,gt):Ee&&(Et<0||ut!==Hr[Et]?Q(Ke,nt,Wr,2):Et--)}}},Q=(W,X,nt,lt,st=null)=>{const{el:ct,type:yt,transition:vt,children:gt,shapeFlag:ut}=W;if(ut&6){Q(W.component.subTree,X,nt,lt);return}if(ut&128){W.suspense.move(X,nt,lt);return}if(ut&64){yt.move(W,X,nt,qt);return}if(yt===Lr){i(ct,X,nt);for(let rt=0;rt<gt.length;rt++)Q(gt[rt],X,nt,lt);i(W.anchor,X,nt);return}if(yt===xy){w(W,X,nt);return}if(lt!==2&&ut&1&&vt)if(lt===0)vt.beforeEnter(ct),i(ct,X,nt),si(()=>vt.enter(ct),st);else{const{leave:rt,delayLeave:ft,afterLeave:St}=vt,At=()=>{W.ctx.isUnmounted?n(ct):i(ct,X,nt)},Vt=()=>{ct._isLeaving&&ct[q4](!0),rt(ct,()=>{At(),St&&St()})};ft?ft(ct,At,Vt):Vt()}else i(ct,X,nt)},it=(W,X,nt,lt=!1,st=!1)=>{const{type:ct,props:yt,ref:vt,children:gt,dynamicChildren:ut,shapeFlag:Bt,patchFlag:rt,dirs:ft,cacheIndex:St}=W;if(rt===-2&&(st=!1),vt!=null&&(Na(),_h(vt,null,nt,W,!0),za()),St!=null&&(X.renderCache[St]=void 0),Bt&256){X.ctx.deactivate(W);return}const At=Bt&1&&ft,Vt=!dc(W);let Et;if(Vt&&(Et=yt&&yt.onVnodeBeforeUnmount)&&Bn(Et,X,W),Bt&6)xt(W.component,nt,lt);else{if(Bt&128){W.suspense.unmount(nt,lt);return}At&&os(W,null,X,"beforeUnmount"),Bt&64?W.type.remove(W,X,nt,qt,lt):ut&&!ut.hasOnce&&(ct!==Lr||rt>0&&rt&64)?Zt(ut,X,nt,!1,!0):(ct===Lr&&rt&384||!st&&Bt&16)&&Zt(gt,X,nt),lt&&at(W)}(Vt&&(Et=yt&&yt.onVnodeUnmounted)||At)&&si(()=>{Et&&Bn(Et,X,W),At&&os(W,null,X,"unmounted")},nt)},at=W=>{const{type:X,el:nt,anchor:lt,transition:st}=W;if(X===Lr){Ct(nt,lt);return}if(X===xy){S(W);return}const ct=()=>{n(nt),st&&!st.persisted&&st.afterLeave&&st.afterLeave()};if(W.shapeFlag&1&&st&&!st.persisted){const{leave:yt,delayLeave:vt}=st,gt=()=>yt(nt,ct);vt?vt(W.el,ct,gt):gt()}else ct()},Ct=(W,X)=>{let nt;for(;W!==X;)nt=d(W),n(W),W=nt;n(X)},xt=(W,X,nt)=>{const{bum:lt,scope:st,job:ct,subTree:yt,um:vt,m:gt,a:ut}=W;CC(gt),CC(ut),lt&&py(lt),st.stop(),ct&&(ct.flags|=8,it(yt,W,X,nt)),vt&&si(vt,X),si(()=>{W.isUnmounted=!0},X)},Zt=(W,X,nt,lt=!1,st=!1,ct=0)=>{for(let yt=ct;yt<W.length;yt++)it(W[yt],X,nt,lt,st)},ae=W=>{if(W.shapeFlag&6)return ae(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const X=d(W.anchor||W.el),nt=X&&X[xD];return nt?d(nt):X};let de=!1;const bt=(W,X,nt)=>{let lt;W==null?X._vnode&&(it(X._vnode,null,null,!0),lt=X._vnode.component):g(X._vnode||null,W,X,null,null,null,nt),X._vnode=W,de||(de=!0,fC(lt),mD(),de=!1)},qt={p:g,um:it,m:Q,r:at,mt:F,mc:I,pc:q,pbc:R,n:ae,o:e};return{render:bt,hydrate:void 0,createApp:s6(bt)}}function by({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function ss({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function S6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function x1(e,t,r=!1){const i=e.children,n=t.children;if(le(i)&&le(n))for(let a=0;a<i.length;a++){const o=i[a];let s=n[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=n[a]=_o(n[a]),s.el=o.el),!r&&s.patchFlag!==-2&&x1(o,s)),s.type===Jv&&(s.patchFlag!==-1?s.el=o.el:s.__elIndex=a+(e.type===Lr?1:0)),s.type===Wa&&!s.el&&(s.el=o.el)}}function C6(e){const t=e.slice(),r=[0];let i,n,a,o,s;const l=e.length;for(i=0;i<l;i++){const c=e[i];if(c!==0){if(n=r[r.length-1],e[n]<c){t[i]=n,r.push(i);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<c?a=s+1:o=s;c<e[r[a]]&&(a>0&&(t[i]=r[a-1]),r[a]=i)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function HD(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:HD(t)}function CC(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function WD(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?WD(t.subTree):null}const GD=e=>e.__isSuspense;function T6(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):R4(e)}const Lr=Symbol.for("v-fgt"),Jv=Symbol.for("v-txt"),Wa=Symbol.for("v-cmt"),xy=Symbol.for("v-stc"),wh=[];let Fi=null;function Ae(e=!1){wh.push(Fi=e?null:[])}function k6(){wh.pop(),Fi=wh[wh.length-1]||null}let Zh=1;function yg(e,t=!1){Zh+=e,e<0&&Fi&&t&&(Fi.hasOnce=!0)}function qD(e){return e.dynamicChildren=Zh>0?Fi||uc:null,k6(),Zh>0&&Fi&&Fi.push(e),e}function ir(e,t,r,i,n,a){return qD(Ze(e,t,r,i,n,a,!0))}function Ia(e,t,r,i,n){return qD(Fr(e,t,r,i,n,!0))}function Kh(e){return e?e.__v_isVNode===!0:!1}function mu(e,t){return e.type===t.type&&e.key===t.key}const VD=({key:e})=>e??null,Ep=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?pr(e)||Sr(e)||fe(e)?{i:Xr,r:e,k:t,f:!!r}:e:null);function Ze(e,t=null,r=null,i=0,n=null,a=e===Lr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&VD(t),ref:t&&Ep(t),scopeId:_D,slotScopeIds:null,children:r,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:a,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Xr};return s?(w1(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=pr(r)?8:16),Zh>0&&!o&&Fi&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Fi.push(l),l}const Fr=A6;function A6(e,t=null,r=null,i=0,n=null,a=!1){if((!e||e===J4)&&(e=Wa),Kh(e)){const s=Ec(e,t,!0);return r&&w1(s,r),Zh>0&&!a&&Fi&&(s.shapeFlag&6?Fi[Fi.indexOf(e)]=s:Fi.push(s)),s.patchFlag=-2,s}if($6(e)&&(e=e.__vccOpts),t){t=M6(t);let{class:s,style:l}=t;s&&!pr(s)&&(t.class=Uh(s)),je(l)&&(Yv(l)&&!le(l)&&(l=Nr({},l)),t.style=If(l))}const o=pr(e)?1:GD(e)?128:H4(e)?64:je(e)?4:fe(e)?2:0;return Ze(e,t,r,i,n,o,a,!0)}function M6(e){return e?Yv(e)||OD(e)?Nr({},e):e:null}function Ec(e,t,r=!1,i=!1){const{props:n,ref:a,patchFlag:o,children:s,transition:l}=e,c=t?UD(n||{},t):n,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&VD(c),ref:t&&t.ref?r&&a?le(a)?a.concat(Ep(t)):[a,Ep(t)]:Ep(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lr?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ec(e.ssContent),ssFallback:e.ssFallback&&Ec(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&m1(u,l.clone(u)),u}function L6(e=" ",t=0){return Fr(Jv,null,e,t)}function Mo(e="",t=!1){return t?(Ae(),Ia(Wa,null,e)):Fr(Wa,null,e)}function jn(e){return e==null||typeof e=="boolean"?Fr(Wa):le(e)?Fr(Lr,null,e.slice()):Kh(e)?_o(e):Fr(Jv,null,String(e))}function _o(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ec(e)}function w1(e,t){let r=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(le(t))r=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),w1(e,n()),n._c&&(n._d=!0));return}else{r=32;const n=t._;!n&&!OD(t)?t._ctx=Xr:n===3&&Xr&&(Xr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:Xr},r=32):(t=String(t),i&64?(r=16,t=[L6(t)]):r=8);e.children=t,e.shapeFlag|=r}function UD(...e){const t={};for(let r=0;r<e.length;r++){const i=e[r];for(const n in i)if(n==="class")t.class!==i.class&&(t.class=Uh([t.class,i.class]));else if(n==="style")t.style=If([t.style,i.style]);else if(Hv(n)){const a=t[n],o=i[n];o&&a!==o&&!(le(a)&&a.includes(o))&&(t[n]=a?[].concat(a,o):o)}else n!==""&&(t[n]=i[n])}return t}function Bn(e,t,r,i=null){la(e,t,7,[r,i])}const D6=ED();let E6=0;function I6(e,t,r){const i=e.type,n=(t?t.appContext:e.appContext)||D6,a={uid:E6++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new i4(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:FD(i,n),emitsOptions:ID(i,n),emit:null,emitted:null,propsDefaults:qe,inheritAttrs:i.inheritAttrs,ctx:qe,data:qe,props:qe,attrs:qe,slots:qe,refs:qe,setupState:qe,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=c6.bind(null,a),e.ce&&e.ce(a),a}let hi=null;const P6=()=>hi||Xr;let _g,L_;{const e=Vv(),t=(r,i)=>{let n;return(n=e[r])||(n=e[r]=[]),n.push(i),a=>{n.length>1?n.forEach(o=>o(a)):n[0](a)}};_g=t("__VUE_INSTANCE_SETTERS__",r=>hi=r),L_=t("__VUE_SSR_SETTERS__",r=>Qh=r)}const Bf=e=>{const t=hi;return _g(e),e.scope.on(),()=>{e.scope.off(),_g(t)}},TC=()=>{hi&&hi.scope.off(),_g(null)};function YD(e){return e.vnode.shapeFlag&4}let Qh=!1;function B6(e,t=!1,r=!1){t&&L_(t);const{props:i,children:n}=e.vnode,a=YD(e);g6(e,i,a,t),_6(e,n,r||t);const o=a?O6(e,t):void 0;return t&&L_(!1),o}function O6(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,t6);const{setup:i}=r;if(i){Na();const n=e.setupContext=i.length>1?F6(e):null,a=Bf(e),o=Pf(i,e,0,[e.props,n]),s=GL(o);if(za(),a(),(s||e.sp)&&!dc(e)&&CD(e),s){if(o.then(TC,TC),t)return o.then(l=>{kC(e,l)}).catch(l=>{jv(l,e,0)});e.asyncDep=o}else kC(e,o)}else jD(e)}function kC(e,t,r){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:je(t)&&(e.setupState=dD(t)),jD(e)}function jD(e,t,r){const i=e.type;e.render||(e.render=i.render||ta);{const n=Bf(e);Na();try{e6(e)}finally{za(),n()}}}const R6={get(e,t){return jr(e,"get",""),e[t]}};function F6(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,R6),slots:e.slots,emit:e.emit,expose:t}}function tm(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(dD(C4(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in xh)return xh[r](e)},has(t,r){return r in t||r in xh}})):e.proxy}function $6(e){return fe(e)&&"__vccOpts"in e}const tn=(e,t)=>E4(e,t,Qh);function D_(e,t,r){try{yg(-1);const i=arguments.length;return i===2?je(t)&&!le(t)?Kh(t)?Fr(e,null,[t]):Fr(e,t):Fr(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Kh(r)&&(r=[r]),Fr(e,t,r))}finally{yg(1)}}const N6="3.5.27";let E_;const AC=typeof window<"u"&&window.trustedTypes;if(AC)try{E_=AC.createPolicy("vue",{createHTML:e=>e})}catch{}const XD=E_?e=>E_.createHTML(e):e=>e,z6="http://www.w3.org/2000/svg",H6="http://www.w3.org/1998/Math/MathML",ka=typeof document<"u"?document:null,MC=ka&&ka.createElement("template"),W6={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const n=t==="svg"?ka.createElementNS(z6,e):t==="mathml"?ka.createElementNS(H6,e):r?ka.createElement(e,{is:r}):ka.createElement(e);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>ka.createTextNode(e),createComment:e=>ka.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ka.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,i,n,a){const o=r?r.previousSibling:t.lastChild;if(n&&(n===a||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),!(n===a||!(n=n.nextSibling)););else{MC.innerHTML=XD(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const s=MC.content;if(i==="svg"||i==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},G6=Symbol("_vtc");function q6(e,t,r){const i=e[G6];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const bg=Symbol("_vod"),ZD=Symbol("_vsh"),V6={name:"show",beforeMount(e,{value:t},{transition:r}){e[bg]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):yu(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),yu(e,!0),i.enter(e)):i.leave(e,()=>{yu(e,!1)}):yu(e,t))},beforeUnmount(e,{value:t}){yu(e,t)}};function yu(e,t){e.style.display=t?e[bg]:"none",e[ZD]=!t}const U6=Symbol(""),Y6=/(?:^|;)\s*display\s*:/;function j6(e,t,r){const i=e.style,n=pr(r);let a=!1;if(r&&!n){if(t)if(pr(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&Ip(i,s,"")}else for(const o in t)r[o]==null&&Ip(i,o,"");for(const o in r)o==="display"&&(a=!0),Ip(i,o,r[o])}else if(n){if(t!==r){const o=i[U6];o&&(r+=";"+o),i.cssText=r,a=Y6.test(r)}}else t&&e.removeAttribute("style");bg in e&&(e[bg]=a?i.display:"",e[ZD]&&(i.display="none"))}const LC=/\s*!important$/;function Ip(e,t,r){if(le(r))r.forEach(i=>Ip(e,t,i));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const i=X6(e,t);LC.test(r)?e.setProperty(_l(i),r.replace(LC,""),"important"):e[i]=r}}const DC=["Webkit","Moz","ms"],wy={};function X6(e,t){const r=wy[t];if(r)return r;let i=Bo(t);if(i!=="filter"&&i in e)return wy[t]=i;i=UL(i);for(let n=0;n<DC.length;n++){const a=DC[n]+i;if(a in e)return wy[t]=a}return t}const EC="http://www.w3.org/1999/xlink";function IC(e,t,r,i,n,a=r4(t)){i&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(EC,t.slice(6,t.length)):e.setAttributeNS(EC,t,r):r==null||a&&!jL(r)?e.removeAttribute(t):e.setAttribute(t,a?"":Xa(r)?String(r):r)}function PC(e,t,r,i,n){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?XD(r):r);return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?e.getAttribute("value")||"":e.value,l=r==null?e.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in e))&&(e.value=l),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const s=typeof e[t];s==="boolean"?r=jL(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(n||t)}function Z6(e,t,r,i){e.addEventListener(t,r,i)}function K6(e,t,r,i){e.removeEventListener(t,r,i)}const BC=Symbol("_vei");function Q6(e,t,r,i,n=null){const a=e[BC]||(e[BC]={}),o=a[t];if(i&&o)o.value=i;else{const[s,l]=J6(t);if(i){const c=a[t]=r8(i,n);Z6(e,s,c,l)}else o&&(K6(e,s,o,l),a[t]=void 0)}}const OC=/(?:Once|Passive|Capture)$/;function J6(e){let t;if(OC.test(e)){t={};let i;for(;i=e.match(OC);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_l(e.slice(2)),t]}let Sy=0;const t8=Promise.resolve(),e8=()=>Sy||(t8.then(()=>Sy=0),Sy=Date.now());function r8(e,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;la(i8(i,r.value),t,5,[i])};return r.value=e,r.attached=e8(),r}function i8(e,t){if(le(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>n=>!n._stopped&&i&&i(n))}else return t}const RC=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,n8=(e,t,r,i,n,a)=>{const o=n==="svg";t==="class"?q6(e,i,o):t==="style"?j6(e,r,i):Hv(t)?o1(t)||Q6(e,t,r,i,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):a8(e,t,i,o))?(PC(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&IC(e,t,i,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pr(i))?PC(e,Bo(t),i,a,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),IC(e,t,i,o))};function a8(e,t,r,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&RC(t)&&fe(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return RC(t)&&pr(r)?!1:t in e}const o8=Nr({patchProp:n8},W6);let FC;function s8(){return FC||(FC=x6(o8))}const l8=((...e)=>{const t=s8().createApp(...e),{mount:r}=t;return t.mount=i=>{const n=u8(i);if(!n)return;const a=t._component;!fe(a)&&!a.render&&!a.template&&(a.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=r(n,!1,c8(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},t});function c8(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function u8(e){return pr(e)?document.querySelector(e):e}const h8=typeof window<"u";var $C;h8&&(($C=window?.navigator)!=null&&$C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Bi(e){return e==null}function KD(){}const f8=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(f8)));function d8(){const e=new Map;return{on(t,r){const i=e.get(t);i?.add(r)||e.set(t,new Set([r]))},off(t,r){const i=e.get(t);i&&i.delete(r)},clear(t){const r=e.get(t);r&&r.clear()},clearAll(){e.clear()},emit(t,...r){const i=e.get(t);i&&i.forEach(n=>{n(...r)})}}}function NC(e,t=16){if(typeof e!="function")return KD;const r=(...a)=>{e(...a)};if(t<=0)return QD(r);let i=0,n;return function(...a){const o=Date.now(),s=o-i;clearTimeout(n),s>=t?(i=o,r(...a)):n=setTimeout(()=>{i=Date.now(),r(...a)},Math.max(0,t-s))}}function p8(e,t=100){if(typeof e!="function")return KD;const r=(...n)=>{e(...n)};if(t<=0)return QD(r);let i;return function(...n){clearTimeout(i),i=setTimeout(()=>{r(...n)},t)}}function QD(e){if(typeof e!="function")return e;let t=!1,r,i;return function(...n){return r=n,t||(t=!0,i=Promise.resolve().then(()=>(t=!1,i=void 0,e(...r)))),i}}const Sh=new Set,JD=new WeakMap;function g8(){Sh.forEach(e=>{e(...JD.get(e))}),Sh.clear()}function ni(e,...t){if(typeof e!="function")return e;JD.set(e,t),!Sh.has(e)&&(Sh.add(e),Sh.size===1&&Promise.resolve().then(g8))}const tE=Symbol("LAYOUT_KEY"),eE=Symbol("EMITTER_KEY");function v8(e){let t=0,r;for(let i=0,n=e.length;i<n;i++)r=e[i].y+e[i].h,r>t&&(t=r);return t}function I_(e){const t=Array(e.length);for(let r=0,i=e.length;r<i;r++)t[r]=m8(e[r]);return t}function m8(e){return{...e}}function rE(e,t){return!(e===t||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Jl(e,t,r){const i=nE(e),n=aE(e),a=Array(e.length);for(let o=0,s=n.length;o<s;o++){let l=n[o];l.static||(l=y8(i,l,t,r),i.push(l)),a[e.findIndex(c=>c.i===l.i)]=l,l.moved=!1}return a}function y8(e,t,r,i){if(r)for(;t.y>0&&!Ch(e,t);)t.y--;else if(i){const a=i[t.i].y;for(;t.y>a&&!Ch(e,t);)t.y--}let n;for(;n=Ch(e,t);)t.y=n.y+n.h;return t}function _8(e,t){const r=nE(e);for(let i=0,n=e.length;i<n;i++){const a=e[i];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)r.push(a);else for(;Ch(r,a);)a.y++}return e}function zC(e,t){for(let r=0,i=e.length;r<i;r++)if(e[r].i===t)return e[r]}function Ch(e,t){for(let r=0,i=e.length;r<i;r++)if(rE(e[r],t))return e[r]}function iE(e,t){return e.filter(r=>rE(r,t))}function nE(e){return e.filter(t=>t.static)}function P_(e,t,r,i,n=!1,a=!1){if(t.static)return e;const o=t.x,s=t.y,l=i&&t.y>i;typeof r=="number"&&(t.x=r),typeof i=="number"&&(t.y=i),t.moved=!0;let c=aE(e);l&&(c=c.reverse());const u=iE(c,t);if(a&&u.length)return t.x=o,t.y=s,t.moved=!1,e;for(let h=0,d=u.length;h<d;h++){const f=u[h];f.moved||t.y>f.y&&t.y-f.y>f.h/4||(f.static?e=HC(e,f,t,n):e=HC(e,t,f,n))}return e}function HC(e,t,r,i){if(i){const n={x:r.x,y:r.y,w:r.w,h:r.h};if(n.y=Math.max(t.y-r.h,0),!Ch(e,n))return P_(e,r,void 0,n.y,!1)}return P_(e,r,void 0,r.y+1,!1)}function b8(e,t,r,i){const n="translate3d("+t+"px,"+e+"px, 0)";return{transform:n,WebkitTransform:n,MozTransform:n,msTransform:n,OTransform:n,width:r+"px",height:i+"px",position:"absolute"}}function x8(e,t,r,i){const n="translate3d("+t*-1+"px,"+e+"px, 0)";return{transform:n,WebkitTransform:n,MozTransform:n,msTransform:n,OTransform:n,width:r+"px",height:i+"px",position:"absolute"}}function w8(e,t,r,i){return{top:e+"px",left:t+"px",width:r+"px",height:i+"px",position:"absolute"}}function S8(e,t,r,i){return{top:e+"px",right:t+"px",width:r+"px",height:i+"px",position:"absolute"}}function aE(e){return Array.from(e).sort(function(t,r){return t.y===r.y&&t.x===r.x?0:t.y>r.y||t.y===r.y&&t.x>r.x?1:-1})}function C8(e,t){t=t||"Layout";const r=["x","y","w","h"],i=[];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let n=0,a=e.length;n<a;n++){const o=e[n];for(let s=0;s<r.length;s++)if(typeof o[r[s]]!="number")throw new Error("VueGridLayout: "+t+"["+n+"]."+r[s]+" must be a number!");if(o.i===void 0||o.i===null)throw new Error("VueGridLayout: "+t+"["+n+"].i cannot be null!");if(typeof o.i!="number"&&typeof o.i!="string")throw new Error("VueGridLayout: "+t+"["+n+"].i must be a string or number!");if(i.indexOf(o.i)>=0)throw new Error("VueGridLayout: "+t+"["+n+"].i must be unique!");if(i.push(o.i),o.static!==void 0&&typeof o.static!="boolean")throw new Error("VueGridLayout: "+t+"["+n+"].static must be a boolean!")}}function T8(e,t="vgl"){const r=()=>`${t}-${e}`;return{b:r,be:i=>`${r()}__${i}`,bm:i=>`${r()}--${i}`,bem:(i,n)=>`${r()}__${i}--${n}`}}function WC(e){return k8(e)}function k8(e){var t;const r=((t=e.target)==null?void 0:t.offsetParent)||document.body,i=e.offsetParent===document.body?{left:0,top:0}:r.getBoundingClientRect(),n=e.clientX+r.scrollLeft-i.left,a=e.clientY+r.scrollTop-i.top;return{x:n,y:a}}function GC(e,t,r,i){return A8(e)?{deltaX:r-e,deltaY:i-t,lastX:e,lastY:t,x:r,y:i}:{deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}}function A8(e){return typeof e=="number"&&!Number.isNaN(e)}function M8(e,t){const r=sE(e);let i=r[0];for(let n=1,a=r.length;n<a;n++){const o=r[n];t>e[o]&&(i=o)}return i}function oE(e,t){if(!t[e])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function L8(e,t,r,i,n,a,o){if(t[i])return I_(t[i]);let s=e;const l=sE(r),c=l.slice(l.indexOf(i));for(let u=0,h=c.length;u<h;u++){const d=c[u];if(t[d]){s=t[d];break}}return s=I_(s||[]),Jl(_8(s,{cols:a}),o)}function sE(e){return Object.keys(e).sort((t,r)=>e[t]-e[r])}let D8="auto";function E8(){return typeof document<"u"}function qC(){return E8()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):D8}function lE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},I8=Zu.exports,VC;function P8(){return VC||(VC=1,(function(e,t){(function(r,i){e.exports=i()})(I8,(function(){function r(_,y){var x=Object.keys(_);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(_);y&&(C=C.filter((function(L){return Object.getOwnPropertyDescriptor(_,L).enumerable}))),x.push.apply(x,C)}return x}function i(_){for(var y=1;y<arguments.length;y++){var x=arguments[y]!=null?arguments[y]:{};y%2?r(Object(x),!0).forEach((function(C){l(_,C,x[C])})):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(x)):r(Object(x)).forEach((function(C){Object.defineProperty(_,C,Object.getOwnPropertyDescriptor(x,C))}))}return _}function n(_){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},n(_)}function a(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function o(_,y){for(var x=0;x<y.length;x++){var C=y[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,g(C.key),C)}}function s(_,y,x){return y&&o(_.prototype,y),Object.defineProperty(_,"prototype",{writable:!1}),_}function l(_,y,x){return(y=g(y))in _?Object.defineProperty(_,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):_[y]=x,_}function c(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),y&&h(_,y)}function u(_){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},u(_)}function h(_,y){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,C){return x.__proto__=C,x},h(_,y)}function d(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function f(_){var y=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var x,C=u(_);if(y){var L=u(this).constructor;x=Reflect.construct(C,arguments,L)}else x=C.apply(this,arguments);return(function(E,P){if(P&&(typeof P=="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(E)})(this,x)}}function p(){return p=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(_,y,x){var C=(function(E,P){for(;!Object.prototype.hasOwnProperty.call(E,P)&&(E=u(E))!==null;);return E})(_,y);if(C){var L=Object.getOwnPropertyDescriptor(C,y);return L.get?L.get.call(arguments.length<3?_:x):L.value}},p.apply(this,arguments)}function g(_){var y=(function(x,C){if(typeof x!="object"||x===null)return x;var L=x[Symbol.toPrimitive];if(L!==void 0){var E=L.call(x,C);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)})(_,"string");return typeof y=="symbol"?y:y+""}var v=function(_){return!(!_||!_.Window)&&_ instanceof _.Window},m=void 0,b=void 0;function w(_){m=_;var y=_.document.createTextNode("");y.ownerDocument!==_.document&&typeof _.wrap=="function"&&_.wrap(y)===y&&(_=_.wrap(_)),b=_}function S(_){return v(_)?_:(_.ownerDocument||_).defaultView||b.window}typeof window<"u"&&window&&w(window);var k=function(_){return!!_&&n(_)==="object"},M=function(_){return typeof _=="function"},T={window:function(_){return _===b||v(_)},docFrag:function(_){return k(_)&&_.nodeType===11},object:k,func:M,number:function(_){return typeof _=="number"},bool:function(_){return typeof _=="boolean"},string:function(_){return typeof _=="string"},element:function(_){if(!_||n(_)!=="object")return!1;var y=S(_)||b;return/object|function/.test(typeof Element>"u"?"undefined":n(Element))?_ instanceof Element||_ instanceof y.Element:_.nodeType===1&&typeof _.nodeName=="string"},plainObject:function(_){return k(_)&&!!_.constructor&&/function Object\b/.test(_.constructor.toString())},array:function(_){return k(_)&&_.length!==void 0&&M(_.splice)}};function I(_){var y=_.interaction;if(y.prepared.name==="drag"){var x=y.prepared.axis;x==="x"?(y.coords.cur.page.y=y.coords.start.page.y,y.coords.cur.client.y=y.coords.start.client.y,y.coords.velocity.client.y=0,y.coords.velocity.page.y=0):x==="y"&&(y.coords.cur.page.x=y.coords.start.page.x,y.coords.cur.client.x=y.coords.start.client.x,y.coords.velocity.client.x=0,y.coords.velocity.page.x=0)}}function B(_){var y=_.iEvent,x=_.interaction;if(x.prepared.name==="drag"){var C=x.prepared.axis;if(C==="x"||C==="y"){var L=C==="x"?"y":"x";y.page[L]=x.coords.start.page[L],y.client[L]=x.coords.start.client[L],y.delta[L]=0}}}var R={id:"actions/drag",install:function(_){var y=_.actions,x=_.Interactable,C=_.defaults;x.prototype.draggable=R.draggable,y.map.drag=R,y.methodDict.drag="draggable",C.actions.drag=R.defaults},listeners:{"interactions:before-action-move":I,"interactions:action-resume":I,"interactions:action-move":B,"auto-start:check":function(_){var y=_.interaction,x=_.interactable,C=_.buttons,L=x.options.drag;if(L&&L.enabled&&(!y.pointerIsDown||!/mouse|pointer/.test(y.pointerType)||(C&x.options.drag.mouseButtons)!=0))return _.action={name:"drag",axis:L.lockAxis==="start"?L.startAxis:L.lockAxis},!1}},draggable:function(_){return T.object(_)?(this.options.drag.enabled=_.enabled!==!1,this.setPerAction("drag",_),this.setOnEvents("drag",_),/^(xy|x|y|start)$/.test(_.lockAxis)&&(this.options.drag.lockAxis=_.lockAxis),/^(xy|x|y)$/.test(_.startAxis)&&(this.options.drag.startAxis=_.startAxis),this):T.bool(_)?(this.options.drag.enabled=_,this):this.options.drag},beforeMove:I,move:B,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(_){return _.search("drag")===0}},D=R,$={init:function(_){var y=_;$.document=y.document,$.DocumentFragment=y.DocumentFragment||O,$.SVGElement=y.SVGElement||O,$.SVGSVGElement=y.SVGSVGElement||O,$.SVGElementInstance=y.SVGElementInstance||O,$.Element=y.Element||O,$.HTMLElement=y.HTMLElement||$.Element,$.Event=y.Event,$.Touch=y.Touch||O,$.PointerEvent=y.PointerEvent||y.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function O(){}var F=$,z={init:function(_){var y=F.Element,x=_.navigator||{};z.supportsTouch="ontouchstart"in _||T.func(_.DocumentTouch)&&F.document instanceof _.DocumentTouch,z.supportsPointerEvent=x.pointerEnabled!==!1&&!!F.PointerEvent,z.isIOS=/iP(hone|od|ad)/.test(x.platform),z.isIOS7=/iP(hone|od|ad)/.test(x.platform)&&/OS 7[^\d]/.test(x.appVersion),z.isIe9=/MSIE 9/.test(x.userAgent),z.isOperaMobile=x.appName==="Opera"&&z.supportsTouch&&/Presto/.test(x.userAgent),z.prefixedMatchesSelector="matches"in y.prototype?"matches":"webkitMatchesSelector"in y.prototype?"webkitMatchesSelector":"mozMatchesSelector"in y.prototype?"mozMatchesSelector":"oMatchesSelector"in y.prototype?"oMatchesSelector":"msMatchesSelector",z.pEventTypes=z.supportsPointerEvent?F.PointerEvent===_.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,z.wheelEvent=F.document&&"onmousewheel"in F.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},H=z;function U(_,y){if(_.contains)return _.contains(y);for(;y;){if(y===_)return!0;y=y.parentNode}return!1}function q(_,y){for(;T.element(_);){if(et(_,y))return _;_=K(_)}return null}function K(_){var y=_.parentNode;if(T.docFrag(y)){for(;(y=y.host)&&T.docFrag(y););return y}return y}function et(_,y){return b!==m&&(y=y.replace(/\/deep\//g," ")),_[H.prefixedMatchesSelector](y)}var Q=function(_){return _.parentNode||_.host};function it(_,y){for(var x,C=[],L=_;(x=Q(L))&&L!==y&&x!==L.ownerDocument;)C.unshift(L),L=x;return C}function at(_,y,x){for(;T.element(_);){if(et(_,y))return!0;if((_=K(_))===x)return et(_,y)}return!1}function Ct(_){return _.correspondingUseElement||_}function xt(_){var y=_ instanceof F.SVGElement?_.getBoundingClientRect():_.getClientRects()[0];return y&&{left:y.left,right:y.right,top:y.top,bottom:y.bottom,width:y.width||y.right-y.left,height:y.height||y.bottom-y.top}}function Zt(_){var y,x=xt(_);if(!H.isIOS7&&x){var C={x:(y=(y=S(_))||b).scrollX||y.document.documentElement.scrollLeft,y:y.scrollY||y.document.documentElement.scrollTop};x.left+=C.x,x.right+=C.x,x.top+=C.y,x.bottom+=C.y}return x}function ae(_){for(var y=[];_;)y.push(_),_=K(_);return y}function de(_){return!!T.string(_)&&(F.document.querySelector(_),!0)}function bt(_,y){for(var x in y)_[x]=y[x];return _}function qt(_,y,x){return _==="parent"?K(x):_==="self"?y.getRect(x):q(x,_)}function Pt(_,y,x,C){var L=_;return T.string(L)?L=qt(L,y,x):T.func(L)&&(L=L.apply(void 0,C)),T.element(L)&&(L=Zt(L)),L}function W(_){return _&&{x:"x"in _?_.x:_.left,y:"y"in _?_.y:_.top}}function X(_){return!_||"x"in _&&"y"in _||((_=bt({},_)).x=_.left||0,_.y=_.top||0,_.width=_.width||(_.right||0)-_.x,_.height=_.height||(_.bottom||0)-_.y),_}function nt(_,y,x){_.left&&(y.left+=x.x),_.right&&(y.right+=x.x),_.top&&(y.top+=x.y),_.bottom&&(y.bottom+=x.y),y.width=y.right-y.left,y.height=y.bottom-y.top}function lt(_,y,x){var C=x&&_.options[x];return W(Pt(C&&C.origin||_.options.origin,_,y,[_&&y]))||{x:0,y:0}}function st(_,y){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(G){return!0},C=arguments.length>3?arguments[3]:void 0;if(C=C||{},T.string(_)&&_.search(" ")!==-1&&(_=ct(_)),T.array(_))return _.forEach((function(G){return st(G,y,x,C)})),C;if(T.object(_)&&(y=_,_=""),T.func(y)&&x(_))C[_]=C[_]||[],C[_].push(y);else if(T.array(y))for(var L=0,E=y;L<E.length;L++){var P=E[L];st(_,P,x,C)}else if(T.object(y))for(var N in y)st(ct(N).map((function(G){return"".concat(_).concat(G)})),y[N],x,C);return C}function ct(_){return _.trim().split(/ +/)}var yt=function(_,y){return Math.sqrt(_*_+y*y)},vt=["webkit","moz"];function gt(_,y){_.__set||(_.__set={});var x=function(L){if(vt.some((function(E){return L.indexOf(E)===0})))return 1;typeof _[L]!="function"&&L!=="__set"&&Object.defineProperty(_,L,{get:function(){return L in _.__set?_.__set[L]:_.__set[L]=y[L]},set:function(E){_.__set[L]=E},configurable:!0})};for(var C in y)x(C);return _}function ut(_,y){_.page=_.page||{},_.page.x=y.page.x,_.page.y=y.page.y,_.client=_.client||{},_.client.x=y.client.x,_.client.y=y.client.y,_.timeStamp=y.timeStamp}function Bt(_){_.page.x=0,_.page.y=0,_.client.x=0,_.client.y=0}function rt(_){return _ instanceof F.Event||_ instanceof F.Touch}function ft(_,y,x){return _=_||"page",(x=x||{}).x=y[_+"X"],x.y=y[_+"Y"],x}function St(_,y){return y=y||{x:0,y:0},H.isOperaMobile&&rt(_)?(ft("screen",_,y),y.x+=window.scrollX,y.y+=window.scrollY):ft("page",_,y),y}function At(_){return T.number(_.pointerId)?_.pointerId:_.identifier}function Vt(_,y,x){var C=y.length>1?Rt(y):y[0];St(C,_.page),(function(L,E){E=E||{},H.isOperaMobile&&rt(L)?ft("screen",L,E):ft("client",L,E)})(C,_.client),_.timeStamp=x}function Et(_){var y=[];return T.array(_)?(y[0]=_[0],y[1]=_[1]):_.type==="touchend"?_.touches.length===1?(y[0]=_.touches[0],y[1]=_.changedTouches[0]):_.touches.length===0&&(y[0]=_.changedTouches[0],y[1]=_.changedTouches[1]):(y[0]=_.touches[0],y[1]=_.touches[1]),y}function Rt(_){for(var y={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},x=0;x<_.length;x++){var C=_[x];for(var L in y)y[L]+=C[L]}for(var E in y)y[E]/=_.length;return y}function we(_){if(!_.length)return null;var y=Et(_),x=Math.min(y[0].pageX,y[1].pageX),C=Math.min(y[0].pageY,y[1].pageY),L=Math.max(y[0].pageX,y[1].pageX),E=Math.max(y[0].pageY,y[1].pageY);return{x,y:C,left:x,top:C,right:L,bottom:E,width:L-x,height:E-C}}function Ee(_,y){var x=y+"X",C=y+"Y",L=Et(_),E=L[0][x]-L[1][x],P=L[0][C]-L[1][C];return yt(E,P)}function Ge(_,y){var x=y+"X",C=y+"Y",L=Et(_),E=L[1][x]-L[0][x],P=L[1][C]-L[0][C];return 180*Math.atan2(P,E)/Math.PI}function yr(_){return T.string(_.pointerType)?_.pointerType:T.number(_.pointerType)?[void 0,void 0,"touch","pen","mouse"][_.pointerType]:/touch/.test(_.type||"")||_ instanceof F.Touch?"touch":"mouse"}function Hr(_){var y=T.func(_.composedPath)?_.composedPath():_.path;return[Ct(y?y[0]:_.target),Ct(_.currentTarget)]}var ke=(function(){function _(y){a(this,_),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=y}return s(_,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),_})();Object.defineProperty(ke.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Ke=function(_,y){for(var x=0;x<y.length;x++){var C=y[x];_.push(C)}return _},Ei=function(_){return Ke([],_)},Wr=function(_,y){for(var x=0;x<_.length;x++)if(y(_[x],x,_))return x;return-1},rs=function(_,y){return _[Wr(_,y)]},fn=(function(_){c(x,_);var y=f(x);function x(C,L,E){var P;a(this,x),(P=y.call(this,L._interaction)).dropzone=void 0,P.dragEvent=void 0,P.relatedTarget=void 0,P.draggable=void 0,P.propagationStopped=!1,P.immediatePropagationStopped=!1;var N=E==="dragleave"?C.prev:C.cur,G=N.element,j=N.dropzone;return P.type=E,P.target=G,P.currentTarget=G,P.dropzone=j,P.dragEvent=L,P.relatedTarget=L.target,P.draggable=L.interactable,P.timeStamp=L.timeStamp,P}return s(x,[{key:"reject",value:function(){var C=this,L=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&L.cur.dropzone===this.dropzone&&L.cur.element===this.target)if(L.prev.dropzone=this.dropzone,L.prev.element=this.target,L.rejected=!0,L.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var E=L.activeDrops,P=Wr(E,(function(G){var j=G.dropzone,V=G.element;return j===C.dropzone&&V===C.target}));L.activeDrops.splice(P,1);var N=new x(L,this.dragEvent,"dropdeactivate");N.dropzone=this.dropzone,N.target=this.target,this.dropzone.fire(N)}else this.dropzone.fire(new x(L,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),x})(ke);function is(_,y){for(var x=0,C=_.slice();x<C.length;x++){var L=C[x],E=L.dropzone,P=L.element;y.dropzone=E,y.target=P,E.fire(y),y.propagationStopped=y.immediatePropagationStopped=!1}}function iu(_,y){for(var x=(function(E,P){for(var N=[],G=0,j=E.interactables.list;G<j.length;G++){var V=j[G];if(V.options.drop.enabled){var J=V.options.drop.accept;if(!(T.element(J)&&J!==P||T.string(J)&&!et(P,J)||T.func(J)&&!J({dropzone:V,draggableElement:P})))for(var ot=0,pt=V.getAllElements();ot<pt.length;ot++){var dt=pt[ot];dt!==P&&N.push({dropzone:V,element:dt,rect:V.getRect(dt)})}}}return N})(_,y),C=0;C<x.length;C++){var L=x[C];L.rect=L.dropzone.getRect(L.element)}return x}function Ja(_,y,x){for(var C=_.dropState,L=_.interactable,E=_.element,P=[],N=0,G=C.activeDrops;N<G.length;N++){var j=G[N],V=j.dropzone,J=j.element,ot=j.rect,pt=V.dropCheck(y,x,L,E,J,ot);P.push(pt?J:null)}var dt=(function(_t){for(var Ot,Lt,Yt,pe=[],be=0;be<_t.length;be++){var oe=_t[be],ve=_t[Ot];if(oe&&be!==Ot)if(ve){var ii=Q(oe),Qe=Q(ve);if(ii!==oe.ownerDocument)if(Qe!==oe.ownerDocument)if(ii!==Qe){pe=pe.length?pe:it(ve);var Ii=void 0;if(ve instanceof F.HTMLElement&&oe instanceof F.SVGElement&&!(oe instanceof F.SVGSVGElement)){if(oe===Qe)continue;Ii=oe.ownerSVGElement}else Ii=oe;for(var pn=it(Ii,ve.ownerDocument),va=0;pn[va]&&pn[va]===pe[va];)va++;var vd=[pn[va-1],pn[va],pe[va]];if(vd[0])for(var gu=vd[0].lastChild;gu;){if(gu===vd[1]){Ot=be,pe=pn;break}if(gu===vd[2])break;gu=gu.previousSibling}}else Yt=ve,(parseInt(S(Lt=oe).getComputedStyle(Lt).zIndex,10)||0)>=(parseInt(S(Yt).getComputedStyle(Yt).zIndex,10)||0)&&(Ot=be);else Ot=be}else Ot=be}return Ot})(P);return C.activeDrops[dt]||null}function nu(_,y,x){var C=_.dropState,L={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return x.type==="dragstart"&&(L.activate=new fn(C,x,"dropactivate"),L.activate.target=null,L.activate.dropzone=null),x.type==="dragend"&&(L.deactivate=new fn(C,x,"dropdeactivate"),L.deactivate.target=null,L.deactivate.dropzone=null),C.rejected||(C.cur.element!==C.prev.element&&(C.prev.dropzone&&(L.leave=new fn(C,x,"dragleave"),x.dragLeave=L.leave.target=C.prev.element,x.prevDropzone=L.leave.dropzone=C.prev.dropzone),C.cur.dropzone&&(L.enter=new fn(C,x,"dragenter"),x.dragEnter=C.cur.element,x.dropzone=C.cur.dropzone)),x.type==="dragend"&&C.cur.dropzone&&(L.drop=new fn(C,x,"drop"),x.dropzone=C.cur.dropzone,x.relatedTarget=C.cur.element),x.type==="dragmove"&&C.cur.dropzone&&(L.move=new fn(C,x,"dropmove"),x.dropzone=C.cur.dropzone)),L}function au(_,y){var x=_.dropState,C=x.activeDrops,L=x.cur,E=x.prev;y.leave&&E.dropzone.fire(y.leave),y.enter&&L.dropzone.fire(y.enter),y.move&&L.dropzone.fire(y.move),y.drop&&L.dropzone.fire(y.drop),y.deactivate&&is(C,y.deactivate),x.prev.dropzone=L.dropzone,x.prev.element=L.element}function ar(_,y){var x=_.interaction,C=_.iEvent,L=_.event;if(C.type==="dragmove"||C.type==="dragend"){var E=x.dropState;y.dynamicDrop&&(E.activeDrops=iu(y,x.element));var P=C,N=Ja(x,P,L);E.rejected=E.rejected&&!!N&&N.dropzone===E.cur.dropzone&&N.element===E.cur.element,E.cur.dropzone=N&&N.dropzone,E.cur.element=N&&N.element,E.events=nu(x,0,P)}}var ga={id:"actions/drop",install:function(_){var y=_.actions,x=_.interactStatic,C=_.Interactable,L=_.defaults;_.usePlugin(D),C.prototype.dropzone=function(E){return(function(P,N){if(T.object(N)){if(P.options.drop.enabled=N.enabled!==!1,N.listeners){var G=st(N.listeners),j=Object.keys(G).reduce((function(J,ot){return J[/^(enter|leave)/.test(ot)?"drag".concat(ot):/^(activate|deactivate|move)/.test(ot)?"drop".concat(ot):ot]=G[ot],J}),{}),V=P.options.drop.listeners;V&&P.off(V),P.on(j),P.options.drop.listeners=j}return T.func(N.ondrop)&&P.on("drop",N.ondrop),T.func(N.ondropactivate)&&P.on("dropactivate",N.ondropactivate),T.func(N.ondropdeactivate)&&P.on("dropdeactivate",N.ondropdeactivate),T.func(N.ondragenter)&&P.on("dragenter",N.ondragenter),T.func(N.ondragleave)&&P.on("dragleave",N.ondragleave),T.func(N.ondropmove)&&P.on("dropmove",N.ondropmove),/^(pointer|center)$/.test(N.overlap)?P.options.drop.overlap=N.overlap:T.number(N.overlap)&&(P.options.drop.overlap=Math.max(Math.min(1,N.overlap),0)),"accept"in N&&(P.options.drop.accept=N.accept),"checker"in N&&(P.options.drop.checker=N.checker),P}return T.bool(N)?(P.options.drop.enabled=N,P):P.options.drop})(this,E)},C.prototype.dropCheck=function(E,P,N,G,j,V){return(function(J,ot,pt,dt,_t,Ot,Lt){var Yt=!1;if(!(Lt=Lt||J.getRect(Ot)))return!!J.options.drop.checker&&J.options.drop.checker(ot,pt,Yt,J,Ot,dt,_t);var pe=J.options.drop.overlap;if(pe==="pointer"){var be=lt(dt,_t,"drag"),oe=St(ot);oe.x+=be.x,oe.y+=be.y;var ve=oe.x>Lt.left&&oe.x<Lt.right,ii=oe.y>Lt.top&&oe.y<Lt.bottom;Yt=ve&&ii}var Qe=dt.getRect(_t);if(Qe&&pe==="center"){var Ii=Qe.left+Qe.width/2,pn=Qe.top+Qe.height/2;Yt=Ii>=Lt.left&&Ii<=Lt.right&&pn>=Lt.top&&pn<=Lt.bottom}return Qe&&T.number(pe)&&(Yt=Math.max(0,Math.min(Lt.right,Qe.right)-Math.max(Lt.left,Qe.left))*Math.max(0,Math.min(Lt.bottom,Qe.bottom)-Math.max(Lt.top,Qe.top))/(Qe.width*Qe.height)>=pe),J.options.drop.checker&&(Yt=J.options.drop.checker(ot,pt,Yt,J,Ot,dt,_t)),Yt})(this,E,P,N,G,j,V)},x.dynamicDrop=function(E){return T.bool(E)?(_.dynamicDrop=E,x):_.dynamicDrop},bt(y.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),y.methodDict.drop="dropzone",_.dynamicDrop=!1,L.actions.drop=ga.defaults},listeners:{"interactions:before-action-start":function(_){var y=_.interaction;y.prepared.name==="drag"&&(y.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(_,y){var x=_.interaction,C=(_.event,_.iEvent);if(x.prepared.name==="drag"){var L=x.dropState;L.activeDrops=[],L.events={},L.activeDrops=iu(y,x.element),L.events=nu(x,0,C),L.events.activate&&(is(L.activeDrops,L.events.activate),y.fire("actions/drop:start",{interaction:x,dragEvent:C}))}},"interactions:action-move":ar,"interactions:after-action-move":function(_,y){var x=_.interaction,C=_.iEvent;if(x.prepared.name==="drag"){var L=x.dropState;au(x,L.events),y.fire("actions/drop:move",{interaction:x,dragEvent:C}),L.events={}}},"interactions:action-end":function(_,y){if(_.interaction.prepared.name==="drag"){var x=_.interaction,C=_.iEvent;ar(_,y),au(x,x.dropState.events),y.fire("actions/drop:end",{interaction:x,dragEvent:C})}},"interactions:stop":function(_){var y=_.interaction;if(y.prepared.name==="drag"){var x=y.dropState;x&&(x.activeDrops=null,x.events=null,x.cur.dropzone=null,x.cur.element=null,x.prev.dropzone=null,x.prev.element=null,x.rejected=!1)}}},getActiveDrops:iu,getDrop:Ja,getDropEvents:nu,fireDropEvents:au,filterEventType:function(_){return _.search("drag")===0||_.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},ty=ga;function Ll(_){var y=_.interaction,x=_.iEvent,C=_.phase;if(y.prepared.name==="gesture"){var L=y.pointers.map((function(j){return j.pointer})),E=C==="start",P=C==="end",N=y.interactable.options.deltaSource;if(x.touches=[L[0],L[1]],E)x.distance=Ee(L,N),x.box=we(L),x.scale=1,x.ds=0,x.angle=Ge(L,N),x.da=0,y.gesture.startDistance=x.distance,y.gesture.startAngle=x.angle;else if(P||y.pointers.length<2){var G=y.prevEvent;x.distance=G.distance,x.box=G.box,x.scale=G.scale,x.ds=0,x.angle=G.angle,x.da=0}else x.distance=Ee(L,N),x.box=we(L),x.scale=x.distance/y.gesture.startDistance,x.angle=Ge(L,N),x.ds=x.scale-y.gesture.scale,x.da=x.angle-y.gesture.angle;y.gesture.distance=x.distance,y.gesture.angle=x.angle,T.number(x.scale)&&x.scale!==1/0&&!isNaN(x.scale)&&(y.gesture.scale=x.scale)}}var ns={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(_){var y=_.actions,x=_.Interactable,C=_.defaults;x.prototype.gesturable=function(L){return T.object(L)?(this.options.gesture.enabled=L.enabled!==!1,this.setPerAction("gesture",L),this.setOnEvents("gesture",L),this):T.bool(L)?(this.options.gesture.enabled=L,this):this.options.gesture},y.map.gesture=ns,y.methodDict.gesture="gesturable",C.actions.gesture=ns.defaults},listeners:{"interactions:action-start":Ll,"interactions:action-move":Ll,"interactions:action-end":Ll,"interactions:new":function(_){_.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(_){if(!(_.interaction.pointers.length<2)){var y=_.interactable.options.gesture;if(y&&y.enabled)return _.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(_){return _.search("gesture")===0}},id=ns;function nd(_,y,x,C,L,E,P){if(!y)return!1;if(y===!0){var N=T.number(E.width)?E.width:E.right-E.left,G=T.number(E.height)?E.height:E.bottom-E.top;if(P=Math.min(P,Math.abs((_==="left"||_==="right"?N:G)/2)),N<0&&(_==="left"?_="right":_==="right"&&(_="left")),G<0&&(_==="top"?_="bottom":_==="bottom"&&(_="top")),_==="left"){var j=N>=0?E.left:E.right;return x.x<j+P}if(_==="top"){var V=G>=0?E.top:E.bottom;return x.y<V+P}if(_==="right")return x.x>(N>=0?E.right:E.left)-P;if(_==="bottom")return x.y>(G>=0?E.bottom:E.top)-P}return!!T.element(C)&&(T.element(y)?y===C:at(C,y,L))}function ad(_){var y=_.iEvent,x=_.interaction;if(x.prepared.name==="resize"&&x.resizeAxes){var C=y;x.interactable.options.resize.square?(x.resizeAxes==="y"?C.delta.x=C.delta.y:C.delta.y=C.delta.x,C.axes="xy"):(C.axes=x.resizeAxes,x.resizeAxes==="x"?C.delta.y=0:x.resizeAxes==="y"&&(C.delta.x=0))}}var gr,ei,Gi={id:"actions/resize",before:["actions/drag"],install:function(_){var y=_.actions,x=_.browser,C=_.Interactable,L=_.defaults;Gi.cursors=(function(E){return E.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}})(x),Gi.defaultMargin=x.supportsTouch||x.supportsPointerEvent?20:10,C.prototype.resizable=function(E){return(function(P,N,G){return T.object(N)?(P.options.resize.enabled=N.enabled!==!1,P.setPerAction("resize",N),P.setOnEvents("resize",N),T.string(N.axis)&&/^x$|^y$|^xy$/.test(N.axis)?P.options.resize.axis=N.axis:N.axis===null&&(P.options.resize.axis=G.defaults.actions.resize.axis),T.bool(N.preserveAspectRatio)?P.options.resize.preserveAspectRatio=N.preserveAspectRatio:T.bool(N.square)&&(P.options.resize.square=N.square),P):T.bool(N)?(P.options.resize.enabled=N,P):P.options.resize})(this,E,_)},y.map.resize=Gi,y.methodDict.resize="resizable",L.actions.resize=Gi.defaults},listeners:{"interactions:new":function(_){_.interaction.resizeAxes="xy"},"interactions:action-start":function(_){(function(y){var x=y.iEvent,C=y.interaction;if(C.prepared.name==="resize"&&C.prepared.edges){var L=x,E=C.rect;C._rects={start:bt({},E),corrected:bt({},E),previous:bt({},E),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},L.edges=C.prepared.edges,L.rect=C._rects.corrected,L.deltaRect=C._rects.delta}})(_),ad(_)},"interactions:action-move":function(_){(function(y){var x=y.iEvent,C=y.interaction;if(C.prepared.name==="resize"&&C.prepared.edges){var L=x,E=C.interactable.options.resize.invert,P=E==="reposition"||E==="negate",N=C.rect,G=C._rects,j=G.start,V=G.corrected,J=G.delta,ot=G.previous;if(bt(ot,V),P){if(bt(V,N),E==="reposition"){if(V.top>V.bottom){var pt=V.top;V.top=V.bottom,V.bottom=pt}if(V.left>V.right){var dt=V.left;V.left=V.right,V.right=dt}}}else V.top=Math.min(N.top,j.bottom),V.bottom=Math.max(N.bottom,j.top),V.left=Math.min(N.left,j.right),V.right=Math.max(N.right,j.left);for(var _t in V.width=V.right-V.left,V.height=V.bottom-V.top,V)J[_t]=V[_t]-ot[_t];L.edges=C.prepared.edges,L.rect=V,L.deltaRect=J}})(_),ad(_)},"interactions:action-end":function(_){var y=_.iEvent,x=_.interaction;if(x.prepared.name==="resize"&&x.prepared.edges){var C=y;C.edges=x.prepared.edges,C.rect=x._rects.corrected,C.deltaRect=x._rects.delta}},"auto-start:check":function(_){var y=_.interaction,x=_.interactable,C=_.element,L=_.rect,E=_.buttons;if(L){var P=bt({},y.coords.cur.page),N=x.options.resize;if(N&&N.enabled&&(!y.pointerIsDown||!/mouse|pointer/.test(y.pointerType)||(E&N.mouseButtons)!=0)){if(T.object(N.edges)){var G={left:!1,right:!1,top:!1,bottom:!1};for(var j in G)G[j]=nd(j,N.edges[j],P,y._latestPointer.eventTarget,C,L,N.margin||Gi.defaultMargin);G.left=G.left&&!G.right,G.top=G.top&&!G.bottom,(G.left||G.right||G.top||G.bottom)&&(_.action={name:"resize",edges:G})}else{var V=N.axis!=="y"&&P.x>L.right-Gi.defaultMargin,J=N.axis!=="x"&&P.y>L.bottom-Gi.defaultMargin;(V||J)&&(_.action={name:"resize",axes:(V?"x":"")+(J?"y":"")})}return!_.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(_){var y=_.edges,x=_.axis,C=_.name,L=Gi.cursors,E=null;if(x)E=L[C+x];else if(y){for(var P="",N=0,G=["top","bottom","left","right"];N<G.length;N++){var j=G[N];y[j]&&(P+=j)}E=L[P]}return E},filterEventType:function(_){return _.search("resize")===0},defaultMargin:null},od=Gi,ou={id:"actions",install:function(_){_.usePlugin(id),_.usePlugin(od),_.usePlugin(D),_.usePlugin(ty)}},su=0,kr={request:function(_){return gr(_)},cancel:function(_){return ei(_)},init:function(_){if(gr=_.requestAnimationFrame,ei=_.cancelAnimationFrame,!gr)for(var y=["ms","moz","webkit","o"],x=0;x<y.length;x++){var C=y[x];gr=_["".concat(C,"RequestAnimationFrame")],ei=_["".concat(C,"CancelAnimationFrame")]||_["".concat(C,"CancelRequestAnimationFrame")]}gr=gr&&gr.bind(_),ei=ei&&ei.bind(_),gr||(gr=function(L){var E=Date.now(),P=Math.max(0,16-(E-su)),N=_.setTimeout((function(){L(E+P)}),P);return su=E+P,N},ei=function(L){return clearTimeout(L)})}},re={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(_){re.isScrolling=!0,kr.cancel(re.i),_.autoScroll=re,re.interaction=_,re.prevTime=re.now(),re.i=kr.request(re.scroll)},stop:function(){re.isScrolling=!1,re.interaction&&(re.interaction.autoScroll=null),kr.cancel(re.i)},scroll:function(){var _=re.interaction,y=_.interactable,x=_.element,C=_.prepared.name,L=y.options[C].autoScroll,E=lu(L.container,y,x),P=re.now(),N=(P-re.prevTime)/1e3,G=L.speed*N;if(G>=1){var j={x:re.x*G,y:re.y*G};if(j.x||j.y){var V=cu(E);T.window(E)?E.scrollBy(j.x,j.y):E&&(E.scrollLeft+=j.x,E.scrollTop+=j.y);var J=cu(E),ot={x:J.x-V.x,y:J.y-V.y};(ot.x||ot.y)&&y.fire({type:"autoscroll",target:x,interactable:y,delta:ot,interaction:_,container:E})}re.prevTime=P}re.isScrolling&&(kr.cancel(re.i),re.i=kr.request(re.scroll))},check:function(_,y){var x;return(x=_.options[y].autoScroll)==null?void 0:x.enabled},onInteractionMove:function(_){var y=_.interaction,x=_.pointer;if(y.interacting()&&re.check(y.interactable,y.prepared.name))if(y.simulation)re.x=re.y=0;else{var C,L,E,P,N=y.interactable,G=y.element,j=y.prepared.name,V=N.options[j].autoScroll,J=lu(V.container,N,G);if(T.window(J))P=x.clientX<re.margin,C=x.clientY<re.margin,L=x.clientX>J.innerWidth-re.margin,E=x.clientY>J.innerHeight-re.margin;else{var ot=xt(J);P=x.clientX<ot.left+re.margin,C=x.clientY<ot.top+re.margin,L=x.clientX>ot.right-re.margin,E=x.clientY>ot.bottom-re.margin}re.x=L?1:P?-1:0,re.y=E?1:C?-1:0,re.isScrolling||(re.margin=V.margin,re.speed=V.speed,re.start(y))}}};function lu(_,y,x){return(T.string(_)?qt(_,y,x):_)||S(x)}function cu(_){return T.window(_)&&(_=window.document.body),{x:_.scrollLeft,y:_.scrollTop}}var sd={id:"auto-scroll",install:function(_){var y=_.defaults,x=_.actions;_.autoScroll=re,re.now=function(){return _.now()},x.phaselessTypes.autoscroll=!0,y.perAction.autoScroll=re.defaults},listeners:{"interactions:new":function(_){_.interaction.autoScroll=null},"interactions:destroy":function(_){_.interaction.autoScroll=null,re.stop(),re.interaction&&(re.interaction=null)},"interactions:stop":re.stop,"interactions:action-move":function(_){return re.onInteractionMove(_)}}},ey=sd;function Gt(_,y){var x=!1;return function(){return x||(b.console.warn(y),x=!0),_.apply(this,arguments)}}function Z(_,y){return _.name=y.name,_.axis=y.axis,_.edges=y.edges,_}function mt(_){return T.bool(_)?(this.options.styleCursor=_,this):_===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Nt(_){return T.func(_)?(this.options.actionChecker=_,this):_===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Ve={id:"auto-start/interactableMethods",install:function(_){var y=_.Interactable;y.prototype.getAction=function(x,C,L,E){var P=(function(N,G,j,V,J){var ot=N.getRect(V),pt=G.buttons||{0:1,1:4,3:8,4:16}[G.button],dt={action:null,interactable:N,interaction:j,element:V,rect:ot,buttons:pt};return J.fire("auto-start:check",dt),dt.action})(this,C,L,E,_);return this.options.actionChecker?this.options.actionChecker(x,C,P,this,E,L):P},y.prototype.ignoreFrom=Gt((function(x){return this._backCompatOption("ignoreFrom",x)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),y.prototype.allowFrom=Gt((function(x){return this._backCompatOption("allowFrom",x)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),y.prototype.actionChecker=Nt,y.prototype.styleCursor=mt}};function _r(_,y,x,C,L){return y.testIgnoreAllow(y.options[_.name],x,C)&&y.options[_.name].enabled&&dn(y,x,_,L)?_:null}function or(_,y,x,C,L,E,P){for(var N=0,G=C.length;N<G;N++){var j=C[N],V=L[N],J=j.getAction(y,x,_,V);if(J){var ot=_r(J,j,V,E,P);if(ot)return{action:ot,interactable:j,element:V}}}return{action:null,interactable:null,element:null}}function Er(_,y,x,C,L){var E=[],P=[],N=C;function G(V){E.push(V),P.push(N)}for(;T.element(N);){E=[],P=[],L.interactables.forEachMatch(N,G);var j=or(_,y,x,E,P,C,L);if(j.action&&!j.interactable.options[j.action.name].manualStart)return j;N=K(N)}return{action:null,interactable:null,element:null}}function qi(_,y,x){var C=y.action,L=y.interactable,E=y.element;C=C||{name:null},_.interactable=L,_.element=E,Z(_.prepared,C),_.rect=L&&C.name?L.getRect(E):null,uu(_,x),x.fire("autoStart:prepared",{interaction:_})}function dn(_,y,x,C){var L=_.options,E=L[x.name].max,P=L[x.name].maxPerElement,N=C.autoStart.maxInteractions,G=0,j=0,V=0;if(!(E&&P&&N))return!1;for(var J=0,ot=C.interactions.list;J<ot.length;J++){var pt=ot[J],dt=pt.prepared.name;if(pt.interacting()&&(++G>=N||pt.interactable===_&&((j+=dt===x.name?1:0)>=E||pt.element===y&&(V++,dt===x.name&&V>=P))))return!1}return N>0}function Dl(_,y){return T.number(_)?(y.autoStart.maxInteractions=_,this):y.autoStart.maxInteractions}function ur(_,y,x){var C=x.autoStart.cursorElement;C&&C!==_&&(C.style.cursor=""),_.ownerDocument.documentElement.style.cursor=y,_.style.cursor=y,x.autoStart.cursorElement=y?_:null}function uu(_,y){var x=_.interactable,C=_.element,L=_.prepared;if(_.pointerType==="mouse"&&x&&x.options.styleCursor){var E="";if(L.name){var P=x.options[L.name].cursorChecker;E=T.func(P)?P(L,x,C,_._interacting):y.actions.map[L.name].getCursor(L)}ur(_.element,E||"",y)}else y.autoStart.cursorElement&&ur(y.autoStart.cursorElement,"",y)}var ld={id:"auto-start/base",before:["actions"],install:function(_){var y=_.interactStatic,x=_.defaults;_.usePlugin(Ve),x.base.actionChecker=null,x.base.styleCursor=!0,bt(x.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),y.maxInteractions=function(C){return Dl(C,_)},_.autoStart={maxInteractions:1/0,withinInteractionLimit:dn,cursorElement:null}},listeners:{"interactions:down":function(_,y){var x=_.interaction,C=_.pointer,L=_.event,E=_.eventTarget;x.interacting()||qi(x,Er(x,C,L,E,y),y)},"interactions:move":function(_,y){(function(x,C){var L=x.interaction,E=x.pointer,P=x.event,N=x.eventTarget;L.pointerType!=="mouse"||L.pointerIsDown||L.interacting()||qi(L,Er(L,E,P,N,C),C)})(_,y),(function(x,C){var L=x.interaction;if(L.pointerIsDown&&!L.interacting()&&L.pointerWasMoved&&L.prepared.name){C.fire("autoStart:before-start",x);var E=L.interactable,P=L.prepared.name;P&&E&&(E.options[P].manualStart||!dn(E,L.element,L.prepared,C)?L.stop():(L.start(L.prepared,E,L.element),uu(L,C)))}})(_,y)},"interactions:stop":function(_,y){var x=_.interaction,C=x.interactable;C&&C.options.styleCursor&&ur(x.element,"",y)}},maxInteractions:Dl,withinInteractionLimit:dn,validateAction:_r},ry=ld,Y3={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(_,y){var x=_.interaction,C=_.eventTarget,L=_.dx,E=_.dy;if(x.prepared.name==="drag"){var P=Math.abs(L),N=Math.abs(E),G=x.interactable.options.drag,j=G.startAxis,V=P>N?"x":P<N?"y":"xy";if(x.prepared.axis=G.lockAxis==="start"?V[0]:G.lockAxis,V!=="xy"&&j!=="xy"&&j!==V){x.prepared.name=null;for(var J=C,ot=function(dt){if(dt!==x.interactable){var _t=x.interactable.options.drag;if(!_t.manualStart&&dt.testIgnoreAllow(_t,J,C)){var Ot=dt.getAction(x.downPointer,x.downEvent,x,J);if(Ot&&Ot.name==="drag"&&(function(Lt,Yt){if(!Yt)return!1;var pe=Yt.options.drag.startAxis;return Lt==="xy"||pe==="xy"||pe===Lt})(V,dt)&&ry.validateAction(Ot,dt,J,C,y))return dt}}};T.element(J);){var pt=y.interactables.forEachMatch(J,ot);if(pt){x.prepared.name="drag",x.interactable=pt,x.element=J;break}J=K(J)}}}}}};function iy(_){var y=_.prepared&&_.prepared.name;if(!y)return null;var x=_.interactable.options;return x[y].hold||x[y].delay}var j3={id:"auto-start/hold",install:function(_){var y=_.defaults;_.usePlugin(ry),y.perAction.hold=0,y.perAction.delay=0},listeners:{"interactions:new":function(_){_.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(_){var y=_.interaction,x=iy(y);x>0&&(y.autoStartHoldTimer=setTimeout((function(){y.start(y.prepared,y.interactable,y.element)}),x))},"interactions:move":function(_){var y=_.interaction,x=_.duplicate;y.autoStartHoldTimer&&y.pointerWasMoved&&!x&&(clearTimeout(y.autoStartHoldTimer),y.autoStartHoldTimer=null)},"autoStart:before-start":function(_){var y=_.interaction;iy(y)>0&&(y.prepared.name=null)}},getHoldDuration:iy},X3=j3,Z3={id:"auto-start",install:function(_){_.usePlugin(ry),_.usePlugin(X3),_.usePlugin(Y3)}},K3=function(_){return/^(always|never|auto)$/.test(_)?(this.options.preventDefault=_,this):T.bool(_)?(this.options.preventDefault=_?"always":"never",this):this.options.preventDefault};function Q3(_){var y=_.interaction,x=_.event;y.interactable&&y.interactable.checkAndPreventDefault(x)}var HS={id:"core/interactablePreventDefault",install:function(_){var y=_.Interactable;y.prototype.preventDefault=K3,y.prototype.checkAndPreventDefault=function(x){return(function(C,L,E){var P=C.options.preventDefault;if(P!=="never")if(P!=="always"){if(L.events.supportsPassive&&/^touch(start|move)$/.test(E.type)){var N=S(E.target).document,G=L.getDocOptions(N);if(!G||!G.events||G.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(E.type)||T.element(E.target)&&et(E.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||E.preventDefault()}else E.preventDefault()})(this,_,x)},_.interactions.docEvents.push({type:"dragstart",listener:function(x){for(var C=0,L=_.interactions.list;C<L.length;C++){var E=L[C];if(E.element&&(E.element===x.target||U(E.element,x.target)))return void E.interactable.checkAndPreventDefault(x)}}})},listeners:["down","move","up","cancel"].reduce((function(_,y){return _["interactions:".concat(y)]=Q3,_}),{})};function cd(_,y){if(y.phaselessTypes[_])return!0;for(var x in y.map)if(_.indexOf(x)===0&&_.substr(x.length)in y.phases)return!0;return!1}function El(_){var y={};for(var x in _){var C=_[x];T.plainObject(C)?y[x]=El(C):T.array(C)?y[x]=Ei(C):y[x]=C}return y}var ny=(function(){function _(y){a(this,_),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=y,this.result=ud(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(_,[{key:"start",value:function(y,x){var C,L,E=y.phase,P=this.interaction,N=(function(j){var V=j.interactable.options[j.prepared.name],J=V.modifiers;return J&&J.length?J:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(ot){var pt=V[ot];return pt&&pt.enabled&&{options:pt,methods:pt._methods}})).filter((function(ot){return!!ot}))})(P);this.prepareStates(N),this.startEdges=bt({},P.edges),this.edges=bt({},this.startEdges),this.startOffset=(C=P.rect,L=x,C?{left:L.x-C.left,top:L.y-C.top,right:C.right-L.x,bottom:C.bottom-L.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var G=this.fillArg({phase:E,pageCoords:x,preEnd:!1});return this.result=ud(),this.startAll(G),this.result=this.setAll(G)}},{key:"fillArg",value:function(y){var x=this.interaction;return y.interaction=x,y.interactable=x.interactable,y.element=x.element,y.rect||(y.rect=x.rect),y.edges||(y.edges=this.startEdges),y.startOffset=this.startOffset,y}},{key:"startAll",value:function(y){for(var x=0,C=this.states;x<C.length;x++){var L=C[x];L.methods.start&&(y.state=L,L.methods.start(y))}}},{key:"setAll",value:function(y){var x=y.phase,C=y.preEnd,L=y.skipModifiers,E=y.rect,P=y.edges;y.coords=bt({},y.pageCoords),y.rect=bt({},E),y.edges=bt({},P);for(var N=L?this.states.slice(L):this.states,G=ud(y.coords,y.rect),j=0;j<N.length;j++){var V,J=N[j],ot=J.options,pt=bt({},y.coords),dt=null;(V=J.methods)!=null&&V.set&&this.shouldDo(ot,C,x)&&(y.state=J,dt=J.methods.set(y),nt(y.edges,y.rect,{x:y.coords.x-pt.x,y:y.coords.y-pt.y})),G.eventProps.push(dt)}bt(this.edges,y.edges),G.delta.x=y.coords.x-y.pageCoords.x,G.delta.y=y.coords.y-y.pageCoords.y,G.rectDelta.left=y.rect.left-E.left,G.rectDelta.right=y.rect.right-E.right,G.rectDelta.top=y.rect.top-E.top,G.rectDelta.bottom=y.rect.bottom-E.bottom;var _t=this.result.coords,Ot=this.result.rect;if(_t&&Ot){var Lt=G.rect.left!==Ot.left||G.rect.right!==Ot.right||G.rect.top!==Ot.top||G.rect.bottom!==Ot.bottom;G.changed=Lt||_t.x!==G.coords.x||_t.y!==G.coords.y}return G}},{key:"applyToInteraction",value:function(y){var x=this.interaction,C=y.phase,L=x.coords.cur,E=x.coords.start,P=this.result,N=this.startDelta,G=P.delta;C==="start"&&bt(this.startDelta,P.delta);for(var j=0,V=[[E,N],[L,G]];j<V.length;j++){var J=V[j],ot=J[0],pt=J[1];ot.page.x+=pt.x,ot.page.y+=pt.y,ot.client.x+=pt.x,ot.client.y+=pt.y}var dt=this.result.rectDelta,_t=y.rect||x.rect;_t.left+=dt.left,_t.right+=dt.right,_t.top+=dt.top,_t.bottom+=dt.bottom,_t.width=_t.right-_t.left,_t.height=_t.bottom-_t.top}},{key:"setAndApply",value:function(y){var x=this.interaction,C=y.phase,L=y.preEnd,E=y.skipModifiers,P=this.setAll(this.fillArg({preEnd:L,phase:C,pageCoords:y.modifiedCoords||x.coords.cur.page}));if(this.result=P,!P.changed&&(!E||E<this.states.length)&&x.interacting())return!1;if(y.modifiedCoords){var N=x.coords.cur.page,G={x:y.modifiedCoords.x-N.x,y:y.modifiedCoords.y-N.y};P.coords.x+=G.x,P.coords.y+=G.y,P.delta.x+=G.x,P.delta.y+=G.y}this.applyToInteraction(y)}},{key:"beforeEnd",value:function(y){var x=y.interaction,C=y.event,L=this.states;if(L&&L.length){for(var E=!1,P=0;P<L.length;P++){var N=L[P];y.state=N;var G=N.options,j=N.methods,V=j.beforeEnd&&j.beforeEnd(y);if(V)return this.endResult=V,!1;E=E||!E&&this.shouldDo(G,!0,y.phase,!0)}E&&x.move({event:C,preEnd:!0})}}},{key:"stop",value:function(y){var x=y.interaction;if(this.states&&this.states.length){var C=bt({states:this.states,interactable:x.interactable,element:x.element,rect:null},y);this.fillArg(C);for(var L=0,E=this.states;L<E.length;L++){var P=E[L];C.state=P,P.methods.stop&&P.methods.stop(C)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(y){this.states=[];for(var x=0;x<y.length;x++){var C=y[x],L=C.options,E=C.methods,P=C.name;this.states.push({options:L,methods:E,index:x,name:P})}return this.states}},{key:"restoreInteractionCoords",value:function(y){var x=y.interaction,C=x.coords,L=x.rect,E=x.modification;if(E.result){for(var P=E.startDelta,N=E.result,G=N.delta,j=N.rectDelta,V=0,J=[[C.start,P],[C.cur,G]];V<J.length;V++){var ot=J[V],pt=ot[0],dt=ot[1];pt.page.x-=dt.x,pt.page.y-=dt.y,pt.client.x-=dt.x,pt.client.y-=dt.y}L.left-=j.left,L.right-=j.right,L.top-=j.top,L.bottom-=j.bottom}}},{key:"shouldDo",value:function(y,x,C,L){return!(!y||y.enabled===!1||L&&!y.endOnly||y.endOnly&&!x||C==="start"&&!y.setStart)}},{key:"copyFrom",value:function(y){this.startOffset=y.startOffset,this.startDelta=y.startDelta,this.startEdges=y.startEdges,this.edges=y.edges,this.states=y.states.map((function(x){return El(x)})),this.result=ud(bt({},y.result.coords),bt({},y.result.rect))}},{key:"destroy",value:function(){for(var y in this)this[y]=null}}]),_})();function ud(_,y){return{rect:y,coords:_,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function to(_,y){var x=_.defaults,C={start:_.start,set:_.set,beforeEnd:_.beforeEnd,stop:_.stop},L=function(E){var P=E||{};for(var N in P.enabled=P.enabled!==!1,x)N in P||(P[N]=x[N]);var G={options:P,methods:C,name:y,enable:function(){return P.enabled=!0,G},disable:function(){return P.enabled=!1,G}};return G};return y&&typeof y=="string"&&(L._defaults=x,L._methods=C),L}function hu(_){var y=_.iEvent,x=_.interaction.modification.result;x&&(y.modifiers=x.eventProps)}var J3={id:"modifiers/base",before:["actions"],install:function(_){_.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(_){var y=_.interaction;y.modification=new ny(y)},"interactions:before-action-start":function(_){var y=_.interaction,x=_.interaction.modification;x.start(_,y.coords.start.page),y.edges=x.edges,x.applyToInteraction(_)},"interactions:before-action-move":function(_){var y=_.interaction,x=y.modification,C=x.setAndApply(_);return y.edges=x.edges,C},"interactions:before-action-end":function(_){var y=_.interaction,x=y.modification,C=x.beforeEnd(_);return y.edges=x.startEdges,C},"interactions:action-start":hu,"interactions:action-move":hu,"interactions:action-end":hu,"interactions:after-action-start":function(_){return _.interaction.modification.restoreInteractionCoords(_)},"interactions:after-action-move":function(_){return _.interaction.modification.restoreInteractionCoords(_)},"interactions:stop":function(_){return _.interaction.modification.stop(_)}}},WS=J3,GS={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},ay=(function(_){c(x,_);var y=f(x);function x(C,L,E,P,N,G,j){var V;a(this,x),(V=y.call(this,C)).relatedTarget=null,V.screenX=void 0,V.screenY=void 0,V.button=void 0,V.buttons=void 0,V.ctrlKey=void 0,V.shiftKey=void 0,V.altKey=void 0,V.metaKey=void 0,V.page=void 0,V.client=void 0,V.delta=void 0,V.rect=void 0,V.x0=void 0,V.y0=void 0,V.t0=void 0,V.dt=void 0,V.duration=void 0,V.clientX0=void 0,V.clientY0=void 0,V.velocity=void 0,V.speed=void 0,V.swipe=void 0,V.axes=void 0,V.preEnd=void 0,N=N||C.element;var J=C.interactable,ot=(J&&J.options||GS).deltaSource,pt=lt(J,N,E),dt=P==="start",_t=P==="end",Ot=dt?d(V):C.prevEvent,Lt=dt?C.coords.start:_t?{page:Ot.page,client:Ot.client,timeStamp:C.coords.cur.timeStamp}:C.coords.cur;return V.page=bt({},Lt.page),V.client=bt({},Lt.client),V.rect=bt({},C.rect),V.timeStamp=Lt.timeStamp,_t||(V.page.x-=pt.x,V.page.y-=pt.y,V.client.x-=pt.x,V.client.y-=pt.y),V.ctrlKey=L.ctrlKey,V.altKey=L.altKey,V.shiftKey=L.shiftKey,V.metaKey=L.metaKey,V.button=L.button,V.buttons=L.buttons,V.target=N,V.currentTarget=N,V.preEnd=G,V.type=j||E+(P||""),V.interactable=J,V.t0=dt?C.pointers[C.pointers.length-1].downTime:Ot.t0,V.x0=C.coords.start.page.x-pt.x,V.y0=C.coords.start.page.y-pt.y,V.clientX0=C.coords.start.client.x-pt.x,V.clientY0=C.coords.start.client.y-pt.y,V.delta=dt||_t?{x:0,y:0}:{x:V[ot].x-Ot[ot].x,y:V[ot].y-Ot[ot].y},V.dt=C.coords.delta.timeStamp,V.duration=V.timeStamp-V.t0,V.velocity=bt({},C.coords.velocity[ot]),V.speed=yt(V.velocity.x,V.velocity.y),V.swipe=_t||P==="inertiastart"?V.getSwipe():null,V}return s(x,[{key:"getSwipe",value:function(){var C=this._interaction;if(C.prevEvent.speed<600||this.timeStamp-C.prevEvent.timeStamp>150)return null;var L=180*Math.atan2(C.prevEvent.velocityY,C.prevEvent.velocityX)/Math.PI;L<0&&(L+=360);var E=112.5<=L&&L<247.5,P=202.5<=L&&L<337.5;return{up:P,down:!P&&22.5<=L&&L<157.5,left:E,right:!E&&(292.5<=L||L<67.5),angle:L,speed:C.prevEvent.speed,velocity:{x:C.prevEvent.velocityX,y:C.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),x})(ke);Object.defineProperties(ay.prototype,{pageX:{get:function(){return this.page.x},set:function(_){this.page.x=_}},pageY:{get:function(){return this.page.y},set:function(_){this.page.y=_}},clientX:{get:function(){return this.client.x},set:function(_){this.client.x=_}},clientY:{get:function(){return this.client.y},set:function(_){this.client.y=_}},dx:{get:function(){return this.delta.x},set:function(_){this.delta.x=_}},dy:{get:function(){return this.delta.y},set:function(_){this.delta.y=_}},velocityX:{get:function(){return this.velocity.x},set:function(_){this.velocity.x=_}},velocityY:{get:function(){return this.velocity.y},set:function(_){this.velocity.y=_}}});var tz=s((function _(y,x,C,L,E){a(this,_),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=y,this.pointer=x,this.event=C,this.downTime=L,this.downTarget=E})),ez=(function(_){return _.interactable="",_.element="",_.prepared="",_.pointerIsDown="",_.pointerWasMoved="",_._proxy="",_})({}),qS=(function(_){return _.start="",_.move="",_.end="",_.stop="",_.interacting="",_})({}),rz=0,iz=(function(){function _(y){var x=this,C=y.pointerType,L=y.scopeFire;a(this,_),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=Gt((function(V){this.move(V)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=rz++,this._scopeFire=L,this.pointerType=C;var E=this;this._proxy={};var P=function(V){Object.defineProperty(x._proxy,V,{get:function(){return E[V]}})};for(var N in ez)P(N);var G=function(V){Object.defineProperty(x._proxy,V,{value:function(){return E[V].apply(E,arguments)}})};for(var j in qS)G(j);this._scopeFire("interactions:new",{interaction:this})}return s(_,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(y,x,C){var L=this.updatePointer(y,x,C,!0),E=this.pointers[L];this._scopeFire("interactions:down",{pointer:y,event:x,eventTarget:C,pointerIndex:L,pointerInfo:E,type:"down",interaction:this})}},{key:"start",value:function(y,x,C){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(y.name==="gesture"?2:1)||!x.options[y.name].enabled)&&(Z(this.prepared,y),this.interactable=x,this.element=C,this.rect=x.getRect(C),this.edges=this.prepared.edges?bt({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(y,x,C){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(y,x,C,!1);var L,E,P=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(L=this.coords.cur.client.x-this.coords.start.client.x,E=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=yt(L,E)>this.pointerMoveTolerance);var N,G,j,V=this.getPointerIndex(y),J={pointer:y,pointerIndex:V,pointerInfo:this.pointers[V],event:x,type:"move",eventTarget:C,dx:L,dy:E,duplicate:P,interaction:this};P||(N=this.coords.velocity,G=this.coords.delta,j=Math.max(G.timeStamp/1e3,.001),N.page.x=G.page.x/j,N.page.y=G.page.y/j,N.client.x=G.client.x/j,N.client.y=G.client.y/j,N.timeStamp=j),this._scopeFire("interactions:move",J),P||this.simulation||(this.interacting()&&(J.type=null,this.move(J)),this.pointerWasMoved&&ut(this.coords.prev,this.coords.cur))}},{key:"move",value:function(y){y&&y.event||Bt(this.coords.delta),(y=bt({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},y||{})).phase="move",this._doPhase(y)}},{key:"pointerUp",value:function(y,x,C,L){var E=this.getPointerIndex(y);E===-1&&(E=this.updatePointer(y,x,C,!1));var P=/cancel$/i.test(x.type)?"cancel":"up";this._scopeFire("interactions:".concat(P),{pointer:y,pointerIndex:E,pointerInfo:this.pointers[E],event:x,eventTarget:C,type:P,curEventTarget:L,interaction:this}),this.simulation||this.end(x),this.removePointer(y,x)}},{key:"documentBlur",value:function(y){this.end(y),this._scopeFire("interactions:blur",{event:y,type:"blur",interaction:this})}},{key:"end",value:function(y){var x;this._ending=!0,y=y||this._latestPointer.event,this.interacting()&&(x=this._doPhase({event:y,interaction:this,phase:"end"})),this._ending=!1,x===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(y){var x=At(y);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Wr(this.pointers,(function(C){return C.id===x}))}},{key:"getPointerInfo",value:function(y){return this.pointers[this.getPointerIndex(y)]}},{key:"updatePointer",value:function(y,x,C,L){var E,P,N,G=At(y),j=this.getPointerIndex(y),V=this.pointers[j];return L=L!==!1&&(L||/(down|start)$/i.test(x.type)),V?V.pointer=y:(V=new tz(G,y,x,null,null),j=this.pointers.length,this.pointers.push(V)),Vt(this.coords.cur,this.pointers.map((function(J){return J.pointer})),this._now()),E=this.coords.delta,P=this.coords.prev,N=this.coords.cur,E.page.x=N.page.x-P.page.x,E.page.y=N.page.y-P.page.y,E.client.x=N.client.x-P.client.x,E.client.y=N.client.y-P.client.y,E.timeStamp=N.timeStamp-P.timeStamp,L&&(this.pointerIsDown=!0,V.downTime=this.coords.cur.timeStamp,V.downTarget=C,gt(this.downPointer,y),this.interacting()||(ut(this.coords.start,this.coords.cur),ut(this.coords.prev,this.coords.cur),this.downEvent=x,this.pointerWasMoved=!1)),this._updateLatestPointer(y,x,C),this._scopeFire("interactions:update-pointer",{pointer:y,event:x,eventTarget:C,down:L,pointerInfo:V,pointerIndex:j,interaction:this}),j}},{key:"removePointer",value:function(y,x){var C=this.getPointerIndex(y);if(C!==-1){var L=this.pointers[C];this._scopeFire("interactions:remove-pointer",{pointer:y,event:x,eventTarget:null,pointerIndex:C,pointerInfo:L,interaction:this}),this.pointers.splice(C,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(y,x,C){this._latestPointer.pointer=y,this._latestPointer.event=x,this._latestPointer.eventTarget=C}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(y,x,C,L){return new ay(this,y,this.prepared.name,x,this.element,C,L)}},{key:"_fireEvent",value:function(y){var x;(x=this.interactable)==null||x.fire(y),(!this.prevEvent||y.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=y)}},{key:"_doPhase",value:function(y){var x=y.event,C=y.phase,L=y.preEnd,E=y.type,P=this.rect;if(P&&C==="move"&&(nt(this.edges,P,this.coords.delta[this.interactable.options.deltaSource]),P.width=P.right-P.left,P.height=P.bottom-P.top),this._scopeFire("interactions:before-action-".concat(C),y)===!1)return!1;var N=y.iEvent=this._createPreparedEvent(x,C,L,E);return this._scopeFire("interactions:action-".concat(C),y),C==="start"&&(this.prevEvent=N),this._fireEvent(N),this._scopeFire("interactions:after-action-".concat(C),y),!0}},{key:"_now",value:function(){return Date.now()}}]),_})();function VS(_){US(_.interaction)}function US(_){if(!(function(x){return!(!x.offset.pending.x&&!x.offset.pending.y)})(_))return!1;var y=_.offset.pending;return oy(_.coords.cur,y),oy(_.coords.delta,y),nt(_.edges,_.rect,y),y.x=0,y.y=0,!0}function nz(_){var y=_.x,x=_.y;this.offset.pending.x+=y,this.offset.pending.y+=x,this.offset.total.x+=y,this.offset.total.y+=x}function oy(_,y){var x=_.page,C=_.client,L=y.x,E=y.y;x.x+=L,x.y+=E,C.x+=L,C.y+=E}qS.offsetBy="";var az={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(_){_.Interaction.prototype.offsetBy=nz},listeners:{"interactions:new":function(_){_.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(_){return(function(y){y.pointerIsDown&&(oy(y.coords.cur,y.offset.total),y.offset.pending.x=0,y.offset.pending.y=0)})(_.interaction)},"interactions:before-action-start":VS,"interactions:before-action-move":VS,"interactions:before-action-end":function(_){var y=_.interaction;if(US(y))return y.move({offset:!0}),y.end(),!1},"interactions:stop":function(_){var y=_.interaction;y.offset.total.x=0,y.offset.total.y=0,y.offset.pending.x=0,y.offset.pending.y=0}}},YS=az,oz=(function(){function _(y){a(this,_),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=y}return s(_,[{key:"start",value:function(y){var x=this.interaction,C=hd(x);if(!C||!C.enabled)return!1;var L=x.coords.velocity.client,E=yt(L.x,L.y),P=this.modification||(this.modification=new ny(x));if(P.copyFrom(x.modification),this.t0=x._now(),this.allowResume=C.allowResume,this.v0=E,this.currentOffset={x:0,y:0},this.startCoords=x.coords.cur.page,this.modifierArg=P.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-x.coords.cur.timeStamp<50&&E>C.minSpeed&&E>C.endSpeed)this.startInertia();else{if(P.result=P.setAll(this.modifierArg),!P.result.changed)return!1;this.startSmoothEnd()}return x.modification.result.rect=null,x.offsetBy(this.targetOffset),x._doPhase({interaction:x,event:y,phase:"inertiastart"}),x.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),x.modification.result.rect=null,this.active=!0,x.simulation=this,!0}},{key:"startInertia",value:function(){var y=this,x=this.interaction.coords.velocity.client,C=hd(this.interaction),L=C.resistance,E=-Math.log(C.endSpeed/this.v0)/L;this.targetOffset={x:(x.x-E)/L,y:(x.y-E)/L},this.te=E,this.lambda_v0=L/this.v0,this.one_ve_v0=1-C.endSpeed/this.v0;var P=this.modification,N=this.modifierArg;N.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},P.result=P.setAll(N),P.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+P.result.delta.x,y:this.targetOffset.y+P.result.delta.y}),this.onNextFrame((function(){return y.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var y=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return y.smoothEndTick()}))}},{key:"onNextFrame",value:function(y){var x=this;this.timeout=kr.request((function(){x.active&&y()}))}},{key:"inertiaTick",value:function(){var y,x,C,L,E,P,N,G=this,j=this.interaction,V=hd(j).resistance,J=(j._now()-this.t0)/1e3;if(J<this.te){var ot,pt=1-(Math.exp(-V*J)-this.lambda_v0)/this.one_ve_v0;this.isModified?(y=0,x=0,C=this.targetOffset.x,L=this.targetOffset.y,E=this.modifiedOffset.x,P=this.modifiedOffset.y,ot={x:jS(N=pt,y,C,E),y:jS(N,x,L,P)}):ot={x:this.targetOffset.x*pt,y:this.targetOffset.y*pt};var dt={x:ot.x-this.currentOffset.x,y:ot.y-this.currentOffset.y};this.currentOffset.x+=dt.x,this.currentOffset.y+=dt.y,j.offsetBy(dt),j.move(),this.onNextFrame((function(){return G.inertiaTick()}))}else j.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var y=this,x=this.interaction,C=x._now()-this.t0,L=hd(x).smoothEndDuration;if(C<L){var E={x:XS(C,0,this.targetOffset.x,L),y:XS(C,0,this.targetOffset.y,L)},P={x:E.x-this.currentOffset.x,y:E.y-this.currentOffset.y};this.currentOffset.x+=P.x,this.currentOffset.y+=P.y,x.offsetBy(P),x.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return y.smoothEndTick()}))}else x.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(y){var x=y.pointer,C=y.event,L=y.eventTarget,E=this.interaction;E.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),E.updatePointer(x,C,L,!0),E._doPhase({interaction:E,event:C,phase:"resume"}),ut(E.coords.prev,E.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,kr.cancel(this.timeout)}}]),_})();function hd(_){var y=_.interactable,x=_.prepared;return y&&y.options&&x.name&&y.options[x.name].inertia}var sz={id:"inertia",before:["modifiers","actions"],install:function(_){var y=_.defaults;_.usePlugin(YS),_.usePlugin(WS),_.actions.phases.inertiastart=!0,_.actions.phases.resume=!0,y.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(_){var y=_.interaction;y.inertia=new oz(y)},"interactions:before-action-end":function(_){var y=_.interaction,x=_.event;return(!y._interacting||y.simulation||!y.inertia.start(x))&&null},"interactions:down":function(_){var y=_.interaction,x=_.eventTarget,C=y.inertia;if(C.active)for(var L=x;T.element(L);){if(L===y.element){C.resume(_);break}L=K(L)}},"interactions:stop":function(_){var y=_.interaction.inertia;y.active&&y.stop()},"interactions:before-action-resume":function(_){var y=_.interaction.modification;y.stop(_),y.start(_,_.interaction.coords.cur.page),y.applyToInteraction(_)},"interactions:before-action-inertiastart":function(_){return _.interaction.modification.setAndApply(_)},"interactions:action-resume":hu,"interactions:action-inertiastart":hu,"interactions:after-action-inertiastart":function(_){return _.interaction.modification.restoreInteractionCoords(_)},"interactions:after-action-resume":function(_){return _.interaction.modification.restoreInteractionCoords(_)}}};function jS(_,y,x,C){var L=1-_;return L*L*y+2*L*_*x+_*_*C}function XS(_,y,x,C){return-x*(_/=C)*(_-2)+y}var lz=sz;function ZS(_,y){for(var x=0;x<y.length;x++){var C=y[x];if(_.immediatePropagationStopped)break;C(_)}}var KS=(function(){function _(y){a(this,_),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=bt({},y||{})}return s(_,[{key:"fire",value:function(y){var x,C=this.global;(x=this.types[y.type])&&ZS(y,x),!y.propagationStopped&&C&&(x=C[y.type])&&ZS(y,x)}},{key:"on",value:function(y,x){var C=st(y,x);for(y in C)this.types[y]=Ke(this.types[y]||[],C[y])}},{key:"off",value:function(y,x){var C=st(y,x);for(y in C){var L=this.types[y];if(L&&L.length)for(var E=0,P=C[y];E<P.length;E++){var N=P[E],G=L.indexOf(N);G!==-1&&L.splice(G,1)}}}},{key:"getRect",value:function(y){return null}}]),_})(),cz=(function(){function _(y){a(this,_),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=y,gt(this,y)}return s(_,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),_})();function fu(_){return T.object(_)?{capture:!!_.capture,passive:!!_.passive}:{capture:!!_,passive:!1}}function fd(_,y){return _===y||(typeof _=="boolean"?!!y.capture===_&&!y.passive:!!_.capture==!!y.capture&&!!_.passive==!!y.passive)}var uz={id:"events",install:function(_){var y,x=[],C={},L=[],E={add:P,remove:N,addDelegate:function(V,J,ot,pt,dt){var _t=fu(dt);if(!C[ot]){C[ot]=[];for(var Ot=0;Ot<L.length;Ot++){var Lt=L[Ot];P(Lt,ot,G),P(Lt,ot,j,!0)}}var Yt=C[ot],pe=rs(Yt,(function(be){return be.selector===V&&be.context===J}));pe||(pe={selector:V,context:J,listeners:[]},Yt.push(pe)),pe.listeners.push({func:pt,options:_t})},removeDelegate:function(V,J,ot,pt,dt){var _t,Ot=fu(dt),Lt=C[ot],Yt=!1;if(Lt)for(_t=Lt.length-1;_t>=0;_t--){var pe=Lt[_t];if(pe.selector===V&&pe.context===J){for(var be=pe.listeners,oe=be.length-1;oe>=0;oe--){var ve=be[oe];if(ve.func===pt&&fd(ve.options,Ot)){be.splice(oe,1),be.length||(Lt.splice(_t,1),N(J,ot,G),N(J,ot,j,!0)),Yt=!0;break}}if(Yt)break}}},delegateListener:G,delegateUseCapture:j,delegatedEvents:C,documents:L,targets:x,supportsOptions:!1,supportsPassive:!1};function P(V,J,ot,pt){if(V.addEventListener){var dt=fu(pt),_t=rs(x,(function(Ot){return Ot.eventTarget===V}));_t||(_t={eventTarget:V,events:{}},x.push(_t)),_t.events[J]||(_t.events[J]=[]),rs(_t.events[J],(function(Ot){return Ot.func===ot&&fd(Ot.options,dt)}))||(V.addEventListener(J,ot,E.supportsOptions?dt:dt.capture),_t.events[J].push({func:ot,options:dt}))}}function N(V,J,ot,pt){if(V.addEventListener&&V.removeEventListener){var dt=Wr(x,(function(ii){return ii.eventTarget===V})),_t=x[dt];if(_t&&_t.events)if(J!=="all"){var Ot=!1,Lt=_t.events[J];if(Lt){if(ot==="all"){for(var Yt=Lt.length-1;Yt>=0;Yt--){var pe=Lt[Yt];N(V,J,pe.func,pe.options)}return}for(var be=fu(pt),oe=0;oe<Lt.length;oe++){var ve=Lt[oe];if(ve.func===ot&&fd(ve.options,be)){V.removeEventListener(J,ot,E.supportsOptions?be:be.capture),Lt.splice(oe,1),Lt.length===0&&(delete _t.events[J],Ot=!0);break}}}Ot&&!Object.keys(_t.events).length&&x.splice(dt,1)}else for(J in _t.events)_t.events.hasOwnProperty(J)&&N(V,J,"all")}}function G(V,J){for(var ot=fu(J),pt=new cz(V),dt=C[V.type],_t=Hr(V)[0],Ot=_t;T.element(Ot);){for(var Lt=0;Lt<dt.length;Lt++){var Yt=dt[Lt],pe=Yt.selector,be=Yt.context;if(et(Ot,pe)&&U(be,_t)&&U(be,Ot)){var oe=Yt.listeners;pt.currentTarget=Ot;for(var ve=0;ve<oe.length;ve++){var ii=oe[ve];fd(ii.options,ot)&&ii.func(pt)}}}Ot=K(Ot)}}function j(V){return G(V,!0)}return(y=_.document)==null||y.createElement("div").addEventListener("test",null,{get capture(){return E.supportsOptions=!0},get passive(){return E.supportsPassive=!0}}),_.events=E,E}},sy={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(_){for(var y=0,x=sy.methodOrder;y<x.length;y++){var C=x[y],L=sy[C](_);if(L)return L}return null},simulationResume:function(_){var y=_.pointerType,x=_.eventType,C=_.eventTarget,L=_.scope;if(!/down|start/i.test(x))return null;for(var E=0,P=L.interactions.list;E<P.length;E++){var N=P[E],G=C;if(N.simulation&&N.simulation.allowResume&&N.pointerType===y)for(;G;){if(G===N.element)return N;G=K(G)}}return null},mouseOrPen:function(_){var y,x=_.pointerId,C=_.pointerType,L=_.eventType,E=_.scope;if(C!=="mouse"&&C!=="pen")return null;for(var P=0,N=E.interactions.list;P<N.length;P++){var G=N[P];if(G.pointerType===C){if(G.simulation&&!QS(G,x))continue;if(G.interacting())return G;y||(y=G)}}if(y)return y;for(var j=0,V=E.interactions.list;j<V.length;j++){var J=V[j];if(!(J.pointerType!==C||/down/i.test(L)&&J.simulation))return J}return null},hasPointer:function(_){for(var y=_.pointerId,x=0,C=_.scope.interactions.list;x<C.length;x++){var L=C[x];if(QS(L,y))return L}return null},idle:function(_){for(var y=_.pointerType,x=0,C=_.scope.interactions.list;x<C.length;x++){var L=C[x];if(L.pointers.length===1){var E=L.interactable;if(E&&(!E.options.gesture||!E.options.gesture.enabled))continue}else if(L.pointers.length>=2)continue;if(!L.interacting()&&y===L.pointerType)return L}return null}};function QS(_,y){return _.pointers.some((function(x){return x.id===y}))}var hz=sy,ly=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function JS(_,y){return function(x){var C=y.interactions.list,L=yr(x),E=Hr(x),P=E[0],N=E[1],G=[];if(/^touch/.test(x.type)){y.prevTouchTime=y.now();for(var j=0,V=x.changedTouches;j<V.length;j++){var J=V[j],ot={pointer:J,pointerId:At(J),pointerType:L,eventType:x.type,eventTarget:P,curEventTarget:N,scope:y},pt=tC(ot);G.push([ot.pointer,ot.eventTarget,ot.curEventTarget,pt])}}else{var dt=!1;if(!H.supportsPointerEvent&&/mouse/.test(x.type)){for(var _t=0;_t<C.length&&!dt;_t++)dt=C[_t].pointerType!=="mouse"&&C[_t].pointerIsDown;dt=dt||y.now()-y.prevTouchTime<500||x.timeStamp===0}if(!dt){var Ot={pointer:x,pointerId:At(x),pointerType:L,eventType:x.type,curEventTarget:N,eventTarget:P,scope:y},Lt=tC(Ot);G.push([Ot.pointer,Ot.eventTarget,Ot.curEventTarget,Lt])}}for(var Yt=0;Yt<G.length;Yt++){var pe=G[Yt],be=pe[0],oe=pe[1],ve=pe[2];pe[3][_](be,x,oe,ve)}}}function tC(_){var y=_.pointerType,x=_.scope,C={interaction:hz.search(_),searchDetails:_};return x.fire("interactions:find",C),C.interaction||x.interactions.new({pointerType:y})}function cy(_,y){var x=_.doc,C=_.scope,L=_.options,E=C.interactions.docEvents,P=C.events,N=P[y];for(var G in C.browser.isIOS&&!L.events&&(L.events={passive:!1}),P.delegatedEvents)N(x,G,P.delegateListener),N(x,G,P.delegateUseCapture,!0);for(var j=L&&L.events,V=0;V<E.length;V++){var J=E[V];N(x,J.type,J.listener,j)}}var fz={id:"core/interactions",install:function(_){for(var y={},x=0;x<ly.length;x++){var C=ly[x];y[C]=JS(C,_)}var L,E=H.pEventTypes;function P(){for(var N=0,G=_.interactions.list;N<G.length;N++){var j=G[N];if(j.pointerIsDown&&j.pointerType==="touch"&&!j._interacting)for(var V=function(){var pt=ot[J];_.documents.some((function(dt){return U(dt.doc,pt.downTarget)}))||j.removePointer(pt.pointer,pt.event)},J=0,ot=j.pointers;J<ot.length;J++)V()}}(L=F.PointerEvent?[{type:E.down,listener:P},{type:E.down,listener:y.pointerDown},{type:E.move,listener:y.pointerMove},{type:E.up,listener:y.pointerUp},{type:E.cancel,listener:y.pointerUp}]:[{type:"mousedown",listener:y.pointerDown},{type:"mousemove",listener:y.pointerMove},{type:"mouseup",listener:y.pointerUp},{type:"touchstart",listener:P},{type:"touchstart",listener:y.pointerDown},{type:"touchmove",listener:y.pointerMove},{type:"touchend",listener:y.pointerUp},{type:"touchcancel",listener:y.pointerUp}]).push({type:"blur",listener:function(N){for(var G=0,j=_.interactions.list;G<j.length;G++)j[G].documentBlur(N)}}),_.prevTouchTime=0,_.Interaction=(function(N){c(j,N);var G=f(j);function j(){return a(this,j),G.apply(this,arguments)}return s(j,[{key:"pointerMoveTolerance",get:function(){return _.interactions.pointerMoveTolerance},set:function(V){_.interactions.pointerMoveTolerance=V}},{key:"_now",value:function(){return _.now()}}]),j})(iz),_.interactions={list:[],new:function(N){N.scopeFire=function(j,V){return _.fire(j,V)};var G=new _.Interaction(N);return _.interactions.list.push(G),G},listeners:y,docEvents:L,pointerMoveTolerance:1},_.usePlugin(HS)},listeners:{"scope:add-document":function(_){return cy(_,"add")},"scope:remove-document":function(_){return cy(_,"remove")},"interactable:unset":function(_,y){for(var x=_.interactable,C=y.interactions.list.length-1;C>=0;C--){var L=y.interactions.list[C];L.interactable===x&&(L.stop(),y.fire("interactions:destroy",{interaction:L}),L.destroy(),y.interactions.list.length>2&&y.interactions.list.splice(C,1))}}},onDocSignal:cy,doOnInteractions:JS,methodNames:ly},dz=fz,eo=(function(_){return _[_.On=0]="On",_[_.Off=1]="Off",_})(eo||{}),pz=(function(){function _(y,x,C,L){a(this,_),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new KS,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=x.actions,this.target=y,this._context=x.context||C,this._win=S(de(y)?this._context:y),this._doc=this._win.document,this._scopeEvents=L,this.set(x)}return s(_,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(y,x){return T.func(x.onstart)&&this.on("".concat(y,"start"),x.onstart),T.func(x.onmove)&&this.on("".concat(y,"move"),x.onmove),T.func(x.onend)&&this.on("".concat(y,"end"),x.onend),T.func(x.oninertiastart)&&this.on("".concat(y,"inertiastart"),x.oninertiastart),this}},{key:"updatePerActionListeners",value:function(y,x,C){var L,E=this,P=(L=this._actions.map[y])==null?void 0:L.filterEventType,N=function(G){return(P==null||P(G))&&cd(G,E._actions)};(T.array(x)||T.object(x))&&this._onOff(eo.Off,y,x,void 0,N),(T.array(C)||T.object(C))&&this._onOff(eo.On,y,C,void 0,N)}},{key:"setPerAction",value:function(y,x){var C=this._defaults;for(var L in x){var E=L,P=this.options[y],N=x[E];E==="listeners"&&this.updatePerActionListeners(y,P.listeners,N),T.array(N)?P[E]=Ei(N):T.plainObject(N)?(P[E]=bt(P[E]||{},El(N)),T.object(C.perAction[E])&&"enabled"in C.perAction[E]&&(P[E].enabled=N.enabled!==!1)):T.bool(N)&&T.object(C.perAction[E])?P[E].enabled=N:P[E]=N}}},{key:"getRect",value:function(y){return y=y||(T.element(this.target)?this.target:null),T.string(this.target)&&(y=y||this._context.querySelector(this.target)),Zt(y)}},{key:"rectChecker",value:function(y){var x=this;return T.func(y)?(this.getRect=function(C){var L=bt({},y.apply(x,C));return"width"in L||(L.width=L.right-L.left,L.height=L.bottom-L.top),L},this):y===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(y,x){if(de(x)||T.object(x)){for(var C in this.options[y]=x,this._actions.map)this.options[C][y]=x;return this}return this.options[y]}},{key:"origin",value:function(y){return this._backCompatOption("origin",y)}},{key:"deltaSource",value:function(y){return y==="page"||y==="client"?(this.options.deltaSource=y,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var y=this.target;return T.string(y)?Array.from(this._context.querySelectorAll(y)):T.func(y)&&y.getAllElements?y.getAllElements():T.element(y)?[y]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(y){return this._context===y.ownerDocument||U(this._context,y)}},{key:"testIgnoreAllow",value:function(y,x,C){return!this.testIgnore(y.ignoreFrom,x,C)&&this.testAllow(y.allowFrom,x,C)}},{key:"testAllow",value:function(y,x,C){return!y||!!T.element(C)&&(T.string(y)?at(C,y,x):!!T.element(y)&&U(y,C))}},{key:"testIgnore",value:function(y,x,C){return!(!y||!T.element(C))&&(T.string(y)?at(C,y,x):!!T.element(y)&&U(y,C))}},{key:"fire",value:function(y){return this.events.fire(y),this}},{key:"_onOff",value:function(y,x,C,L,E){T.object(x)&&!T.array(x)&&(L=C,C=null);var P=st(x,C,E);for(var N in P){N==="wheel"&&(N=H.wheelEvent);for(var G=0,j=P[N];G<j.length;G++){var V=j[G];cd(N,this._actions)?this.events[y===eo.On?"on":"off"](N,V):T.string(this.target)?this._scopeEvents[y===eo.On?"addDelegate":"removeDelegate"](this.target,this._context,N,V,L):this._scopeEvents[y===eo.On?"add":"remove"](this.target,N,V,L)}}return this}},{key:"on",value:function(y,x,C){return this._onOff(eo.On,y,x,C)}},{key:"off",value:function(y,x,C){return this._onOff(eo.Off,y,x,C)}},{key:"set",value:function(y){var x=this._defaults;for(var C in T.object(y)||(y={}),this.options=El(x.base),this._actions.methodDict){var L=C,E=this._actions.methodDict[L];this.options[L]={},this.setPerAction(L,bt(bt({},x.perAction),x.actions[L])),this[E](y[L])}for(var P in y)P!=="getRect"?T.func(this[P])&&this[P](y[P]):this.rectChecker(y.getRect);return this}},{key:"unset",value:function(){if(T.string(this.target))for(var y in this._scopeEvents.delegatedEvents)for(var x=this._scopeEvents.delegatedEvents[y],C=x.length-1;C>=0;C--){var L=x[C],E=L.selector,P=L.context,N=L.listeners;E===this.target&&P===this._context&&x.splice(C,1);for(var G=N.length-1;G>=0;G--)this._scopeEvents.removeDelegate(this.target,this._context,y,N[G][0],N[G][1])}else this._scopeEvents.remove(this.target,"all")}}]),_})(),gz=(function(){function _(y){var x=this;a(this,_),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=y,y.addListeners({"interactable:unset":function(C){var L=C.interactable,E=L.target,P=T.string(E)?x.selectorMap[E]:E[x.scope.id],N=Wr(P,(function(G){return G===L}));P.splice(N,1)}})}return s(_,[{key:"new",value:function(y,x){x=bt(x||{},{actions:this.scope.actions});var C=new this.scope.Interactable(y,x,this.scope.document,this.scope.events);return this.scope.addDocument(C._doc),this.list.push(C),T.string(y)?(this.selectorMap[y]||(this.selectorMap[y]=[]),this.selectorMap[y].push(C)):(C.target[this.scope.id]||Object.defineProperty(y,this.scope.id,{value:[],configurable:!0}),y[this.scope.id].push(C)),this.scope.fire("interactable:new",{target:y,options:x,interactable:C,win:this.scope._win}),C}},{key:"getExisting",value:function(y,x){var C=x&&x.context||this.scope.document,L=T.string(y),E=L?this.selectorMap[y]:y[this.scope.id];if(E)return rs(E,(function(P){return P._context===C&&(L||P.inContext(y))}))}},{key:"forEachMatch",value:function(y,x){for(var C=0,L=this.list;C<L.length;C++){var E=L[C],P=void 0;if((T.string(E.target)?T.element(y)&&et(y,E.target):y===E.target)&&E.inContext(y)&&(P=x(E)),P!==void 0)return P}}}]),_})(),vz=(function(){function _(){var y=this;a(this,_),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=H,this.defaults=El(GS),this.Eventable=KS,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=(function(C){var L=function E(P,N){var G=C.interactables.getExisting(P,N);return G||((G=C.interactables.new(P,N)).events.global=E.globalEvents),G};return L.getPointerAverage=Rt,L.getTouchBBox=we,L.getTouchDistance=Ee,L.getTouchAngle=Ge,L.getElementRect=Zt,L.getElementClientRect=xt,L.matchesSelector=et,L.closest=q,L.globalEvents={},L.version="1.10.27",L.scope=C,L.use=function(E,P){return this.scope.usePlugin(E,P),this},L.isSet=function(E,P){return!!this.scope.interactables.get(E,P&&P.context)},L.on=Gt((function(E,P,N){if(T.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),T.array(E)){for(var G=0,j=E;G<j.length;G++){var V=j[G];this.on(V,P,N)}return this}if(T.object(E)){for(var J in E)this.on(J,E[J],P);return this}return cd(E,this.scope.actions)?this.globalEvents[E]?this.globalEvents[E].push(P):this.globalEvents[E]=[P]:this.scope.events.add(this.scope.document,E,P,{options:N}),this}),"The interact.on() method is being deprecated"),L.off=Gt((function(E,P,N){if(T.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),T.array(E)){for(var G=0,j=E;G<j.length;G++){var V=j[G];this.off(V,P,N)}return this}if(T.object(E)){for(var J in E)this.off(J,E[J],P);return this}var ot;return cd(E,this.scope.actions)?E in this.globalEvents&&(ot=this.globalEvents[E].indexOf(P))!==-1&&this.globalEvents[E].splice(ot,1):this.scope.events.remove(this.scope.document,E,P,N),this}),"The interact.off() method is being deprecated"),L.debug=function(){return this.scope},L.supportsTouch=function(){return H.supportsTouch},L.supportsPointerEvent=function(){return H.supportsPointerEvent},L.stop=function(){for(var E=0,P=this.scope.interactions.list;E<P.length;E++)P[E].stop();return this},L.pointerMoveTolerance=function(E){return T.number(E)?(this.scope.interactions.pointerMoveTolerance=E,this):this.scope.interactions.pointerMoveTolerance},L.addDocument=function(E,P){this.scope.addDocument(E,P)},L.removeDocument=function(E){this.scope.removeDocument(E)},L})(this),this.InteractEvent=ay,this.Interactable=void 0,this.interactables=new gz(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(C){return y.removeDocument(C.target)};var x=this;this.Interactable=(function(C){c(E,C);var L=f(E);function E(){return a(this,E),L.apply(this,arguments)}return s(E,[{key:"_defaults",get:function(){return x.defaults}},{key:"set",value:function(P){return p(u(E.prototype),"set",this).call(this,P),x.fire("interactable:set",{options:P,interactable:this}),this}},{key:"unset",value:function(){p(u(E.prototype),"unset",this).call(this);var P=x.interactables.list.indexOf(this);P<0||(x.interactables.list.splice(P,1),x.fire("interactable:unset",{interactable:this}))}}]),E})(pz)}return s(_,[{key:"addListeners",value:function(y,x){this.listenerMaps.push({id:x,map:y})}},{key:"fire",value:function(y,x){for(var C=0,L=this.listenerMaps;C<L.length;C++){var E=L[C].map[y];if(E&&E(x,this,y)===!1)return!1}}},{key:"init",value:function(y){return this.isInitialized?this:(function(x,C){return x.isInitialized=!0,T.window(C)&&w(C),F.init(C),H.init(C),kr.init(C),x.window=C,x.document=C.document,x.usePlugin(dz),x.usePlugin(uz),x})(this,y)}},{key:"pluginIsInstalled",value:function(y){var x=y.id;return x?!!this._plugins.map[x]:this._plugins.list.indexOf(y)!==-1}},{key:"usePlugin",value:function(y,x){if(!this.isInitialized)return this;if(this.pluginIsInstalled(y))return this;if(y.id&&(this._plugins.map[y.id]=y),this._plugins.list.push(y),y.install&&y.install(this,x),y.listeners&&y.before){for(var C=0,L=this.listenerMaps.length,E=y.before.reduce((function(N,G){return N[G]=!0,N[eC(G)]=!0,N}),{});C<L;C++){var P=this.listenerMaps[C].id;if(P&&(E[P]||E[eC(P)]))break}this.listenerMaps.splice(C,0,{id:y.id,map:y.listeners})}else y.listeners&&this.listenerMaps.push({id:y.id,map:y.listeners});return this}},{key:"addDocument",value:function(y,x){if(this.getDocIndex(y)!==-1)return!1;var C=S(y);x=x?bt({},x):{},this.documents.push({doc:y,options:x}),this.events.documents.push(y),y!==this.document&&this.events.add(C,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:y,window:C,scope:this,options:x})}},{key:"removeDocument",value:function(y){var x=this.getDocIndex(y),C=S(y),L=this.documents[x].options;this.events.remove(C,"unload",this.onWindowUnload),this.documents.splice(x,1),this.events.documents.splice(x,1),this.fire("scope:remove-document",{doc:y,window:C,scope:this,options:L})}},{key:"getDocIndex",value:function(y){for(var x=0;x<this.documents.length;x++)if(this.documents[x].doc===y)return x;return-1}},{key:"getDocOptions",value:function(y){var x=this.getDocIndex(y);return x===-1?null:this.documents[x].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),_})();function eC(_){return _&&_.replace(/\/.*$/,"")}var rC=new vz,ri=rC.interactStatic,mz=typeof globalThis<"u"?globalThis:window;rC.init(mz);var yz=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(_){var y=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(C){var L=C[0],E=C[1];return L in _||E in _})),x=function(C,L){for(var E=_.range,P=_.limits,N=P===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:P,G=_.offset,j=G===void 0?{x:0,y:0}:G,V={range:E,grid:_,x:null,y:null},J=0;J<y.length;J++){var ot=y[J],pt=ot[0],dt=ot[1],_t=Math.round((C-j.x)/_[pt]),Ot=Math.round((L-j.y)/_[dt]);V[pt]=Math.max(N.left,Math.min(N.right,_t*_[pt]+j.x)),V[dt]=Math.max(N.top,Math.min(N.bottom,Ot*_[dt]+j.y))}return V};return x.grid=_,x.coordFields=y,x}}),_z={id:"snappers",install:function(_){var y=_.interactStatic;y.snappers=bt(y.snappers||{},yz),y.createSnapGrid=y.snappers.grid}},bz=_z,xz={start:function(_){var y=_.state,x=_.rect,C=_.edges,L=_.pageCoords,E=y.options,P=E.ratio,N=E.enabled,G=y.options,j=G.equalDelta,V=G.modifiers;P==="preserve"&&(P=x.width/x.height),y.startCoords=bt({},L),y.startRect=bt({},x),y.ratio=P,y.equalDelta=j;var J=y.linkedEdges={top:C.top||C.left&&!C.bottom,left:C.left||C.top&&!C.right,bottom:C.bottom||C.right&&!C.top,right:C.right||C.bottom&&!C.left};if(y.xIsPrimaryAxis=!(!C.left&&!C.right),y.equalDelta){var ot=(J.left?1:-1)*(J.top?1:-1);y.edgeSign={x:ot,y:ot}}else y.edgeSign={x:J.left?-1:1,y:J.top?-1:1};if(N!==!1&&bt(C,J),V!=null&&V.length){var pt=new ny(_.interaction);pt.copyFrom(_.interaction.modification),pt.prepareStates(V),y.subModification=pt,pt.startAll(i({},_))}},set:function(_){var y=_.state,x=_.rect,C=_.coords,L=y.linkedEdges,E=bt({},C),P=y.equalDelta?wz:Sz;if(bt(_.edges,L),P(y,y.xIsPrimaryAxis,C,x),!y.subModification)return null;var N=bt({},x);nt(L,N,{x:C.x-E.x,y:C.y-E.y});var G=y.subModification.setAll(i(i({},_),{},{rect:N,edges:L,pageCoords:C,prevCoords:C,prevRect:N})),j=G.delta;return G.changed&&(P(y,Math.abs(j.x)>Math.abs(j.y),G.coords,G.rect),bt(C,G.coords)),G.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function wz(_,y,x){var C=_.startCoords,L=_.edgeSign;y?x.y=C.y+(x.x-C.x)*L.y:x.x=C.x+(x.y-C.y)*L.x}function Sz(_,y,x,C){var L=_.startRect,E=_.startCoords,P=_.ratio,N=_.edgeSign;if(y){var G=C.width/P;x.y=E.y+(G-L.height)*N.y}else{var j=C.height*P;x.x=E.x+(j-L.width)*N.x}}var Cz=to(xz,"aspectRatio"),iC=function(){};iC._defaults={};var dd=iC;function as(_,y,x){return T.func(_)?Pt(_,y.interactable,y.element,[x.x,x.y,y]):Pt(_,y.interactable,y.element)}var pd={start:function(_){var y=_.rect,x=_.startOffset,C=_.state,L=_.interaction,E=_.pageCoords,P=C.options,N=P.elementRect,G=bt({left:0,top:0,right:0,bottom:0},P.offset||{});if(y&&N){var j=as(P.restriction,L,E);if(j){var V=j.right-j.left-y.width,J=j.bottom-j.top-y.height;V<0&&(G.left+=V,G.right+=V),J<0&&(G.top+=J,G.bottom+=J)}G.left+=x.left-y.width*N.left,G.top+=x.top-y.height*N.top,G.right+=x.right-y.width*(1-N.right),G.bottom+=x.bottom-y.height*(1-N.bottom)}C.offset=G},set:function(_){var y=_.coords,x=_.interaction,C=_.state,L=C.options,E=C.offset,P=as(L.restriction,x,y);if(P){var N=(function(G){return!G||"left"in G&&"top"in G||((G=bt({},G)).left=G.x||0,G.top=G.y||0,G.right=G.right||G.left+G.width,G.bottom=G.bottom||G.top+G.height),G})(P);y.x=Math.max(Math.min(N.right-E.right,y.x),N.left+E.left),y.y=Math.max(Math.min(N.bottom-E.bottom,y.y),N.top+E.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Tz=to(pd,"restrict"),nC={top:1/0,left:1/0,bottom:-1/0,right:-1/0},aC={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function oC(_,y){for(var x=0,C=["top","left","bottom","right"];x<C.length;x++){var L=C[x];L in _||(_[L]=y[L])}return _}var du={noInner:nC,noOuter:aC,start:function(_){var y,x=_.interaction,C=_.startOffset,L=_.state,E=L.options;E&&(y=W(as(E.offset,x,x.coords.start.page))),y=y||{x:0,y:0},L.offset={top:y.y+C.top,left:y.x+C.left,bottom:y.y-C.bottom,right:y.x-C.right}},set:function(_){var y=_.coords,x=_.edges,C=_.interaction,L=_.state,E=L.offset,P=L.options;if(x){var N=bt({},y),G=as(P.inner,C,N)||{},j=as(P.outer,C,N)||{};oC(G,nC),oC(j,aC),x.top?y.y=Math.min(Math.max(j.top+E.top,N.y),G.top+E.top):x.bottom&&(y.y=Math.max(Math.min(j.bottom+E.bottom,N.y),G.bottom+E.bottom)),x.left?y.x=Math.min(Math.max(j.left+E.left,N.x),G.left+E.left):x.right&&(y.x=Math.max(Math.min(j.right+E.right,N.x),G.right+E.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},kz=to(du,"restrictEdges"),Az=bt({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(_){}},pd.defaults),Mz=to({start:pd.start,set:pd.set,defaults:Az},"restrictRect"),Lz={width:-1/0,height:-1/0},Dz={width:1/0,height:1/0},Ez=to({start:function(_){return du.start(_)},set:function(_){var y=_.interaction,x=_.state,C=_.rect,L=_.edges,E=x.options;if(L){var P=X(as(E.min,y,_.coords))||Lz,N=X(as(E.max,y,_.coords))||Dz;x.options={endOnly:E.endOnly,inner:bt({},du.noInner),outer:bt({},du.noOuter)},L.top?(x.options.inner.top=C.bottom-P.height,x.options.outer.top=C.bottom-N.height):L.bottom&&(x.options.inner.bottom=C.top+P.height,x.options.outer.bottom=C.top+N.height),L.left?(x.options.inner.left=C.right-P.width,x.options.outer.left=C.right-N.width):L.right&&(x.options.inner.right=C.left+P.width,x.options.outer.right=C.left+N.width),du.set(_),x.options=E}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),uy={start:function(_){var y,x=_.interaction,C=_.interactable,L=_.element,E=_.rect,P=_.state,N=_.startOffset,G=P.options,j=G.offsetWithOrigin?(function(ot){var pt=ot.interaction.element,dt=W(Pt(ot.state.options.origin,null,null,[pt])),_t=dt||lt(ot.interactable,pt,ot.interaction.prepared.name);return _t})(_):{x:0,y:0};if(G.offset==="startCoords")y={x:x.coords.start.page.x,y:x.coords.start.page.y};else{var V=Pt(G.offset,C,L,[x]);(y=W(V)||{x:0,y:0}).x+=j.x,y.y+=j.y}var J=G.relativePoints;P.offsets=E&&J&&J.length?J.map((function(ot,pt){return{index:pt,relativePoint:ot,x:N.left-E.width*ot.x+y.x,y:N.top-E.height*ot.y+y.y}})):[{index:0,relativePoint:null,x:y.x,y:y.y}]},set:function(_){var y=_.interaction,x=_.coords,C=_.state,L=C.options,E=C.offsets,P=lt(y.interactable,y.element,y.prepared.name),N=bt({},x),G=[];L.offsetWithOrigin||(N.x-=P.x,N.y-=P.y);for(var j=0,V=E;j<V.length;j++)for(var J=V[j],ot=N.x-J.x,pt=N.y-J.y,dt=0,_t=L.targets.length;dt<_t;dt++){var Ot=L.targets[dt],Lt=void 0;(Lt=T.func(Ot)?Ot(ot,pt,y._proxy,J,dt):Ot)&&G.push({x:(T.number(Lt.x)?Lt.x:ot)+J.x,y:(T.number(Lt.y)?Lt.y:pt)+J.y,range:T.number(Lt.range)?Lt.range:L.range,source:Ot,index:dt,offset:J})}for(var Yt={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},pe=0;pe<G.length;pe++){var be=G[pe],oe=be.range,ve=be.x-N.x,ii=be.y-N.y,Qe=yt(ve,ii),Ii=Qe<=oe;oe===1/0&&Yt.inRange&&Yt.range!==1/0&&(Ii=!1),Yt.target&&!(Ii?Yt.inRange&&oe!==1/0?Qe/oe<Yt.distance/Yt.range:oe===1/0&&Yt.range!==1/0||Qe<Yt.distance:!Yt.inRange&&Qe<Yt.distance)||(Yt.target=be,Yt.distance=Qe,Yt.range=oe,Yt.inRange=Ii,Yt.delta.x=ve,Yt.delta.y=ii)}return Yt.inRange&&(x.x=Yt.target.x,x.y=Yt.target.y),C.closest=Yt,Yt},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Iz=to(uy,"snap"),gd={start:function(_){var y=_.state,x=_.edges,C=y.options;if(!x)return null;_.state={options:{targets:null,relativePoints:[{x:x.left?0:1,y:x.top?0:1}],offset:C.offset||"self",origin:{x:0,y:0},range:C.range}},y.targetFields=y.targetFields||[["width","height"],["x","y"]],uy.start(_),y.offsets=_.state.offsets,_.state=y},set:function(_){var y=_.interaction,x=_.state,C=_.coords,L=x.options,E=x.offsets,P={x:C.x-E[0].x,y:C.y-E[0].y};x.options=bt({},L),x.options.targets=[];for(var N=0,G=L.targets||[];N<G.length;N++){var j=G[N],V=void 0;if(V=T.func(j)?j(P.x,P.y,y):j){for(var J=0,ot=x.targetFields;J<ot.length;J++){var pt=ot[J],dt=pt[0],_t=pt[1];if(dt in V||_t in V){V.x=V[dt],V.y=V[_t];break}}x.options.targets.push(V)}}var Ot=uy.set(_);return x.options=L,Ot},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Pz=to(gd,"snapSize"),hy={aspectRatio:Cz,restrictEdges:kz,restrict:Tz,restrictRect:Mz,restrictSize:Ez,snapEdges:to({start:function(_){var y=_.edges;return y?(_.state.targetFields=_.state.targetFields||[[y.left?"left":"right",y.top?"top":"bottom"]],gd.start(_)):null},set:gd.set,defaults:bt(El(gd.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Iz,snapSize:Pz,spring:dd,avoid:dd,transform:dd,rubberband:dd},Bz={id:"modifiers",install:function(_){var y=_.interactStatic;for(var x in _.usePlugin(WS),_.usePlugin(bz),y.modifiers=hy,hy){var C=hy[x],L=C._defaults,E=C._methods;L._methods=E,_.defaults.perAction[x]=L}}},Oz=Bz,sC=(function(_){c(x,_);var y=f(x);function x(C,L,E,P,N,G){var j;if(a(this,x),gt(d(j=y.call(this,N)),E),E!==L&>(d(j),L),j.timeStamp=G,j.originalEvent=E,j.type=C,j.pointerId=At(L),j.pointerType=yr(L),j.target=P,j.currentTarget=null,C==="tap"){var V=N.getPointerIndex(L);j.dt=j.timeStamp-N.pointers[V].downTime;var J=j.timeStamp-N.tapTime;j.double=!!N.prevTap&&N.prevTap.type!=="doubletap"&&N.prevTap.target===j.target&&J<500}else C==="doubletap"&&(j.dt=L.timeStamp-N.tapTime,j.double=!0);return j}return s(x,[{key:"_subtractOrigin",value:function(C){var L=C.x,E=C.y;return this.pageX-=L,this.pageY-=E,this.clientX-=L,this.clientY-=E,this}},{key:"_addOrigin",value:function(C){var L=C.x,E=C.y;return this.pageX+=L,this.pageY+=E,this.clientX+=L,this.clientY+=E,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),x})(ke),pu={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(_){_.pointerEvents=pu,_.defaults.actions.pointerEvents=pu.defaults,bt(_.actions.phaselessTypes,pu.types)},listeners:{"interactions:new":function(_){var y=_.interaction;y.prevTap=null,y.tapTime=0},"interactions:update-pointer":function(_){var y=_.down,x=_.pointerInfo;!y&&x.hold||(x.hold={duration:1/0,timeout:null})},"interactions:move":function(_,y){var x=_.interaction,C=_.pointer,L=_.event,E=_.eventTarget;_.duplicate||x.pointerIsDown&&!x.pointerWasMoved||(x.pointerIsDown&&fy(_),ro({interaction:x,pointer:C,event:L,eventTarget:E,type:"move"},y))},"interactions:down":function(_,y){(function(x,C){for(var L=x.interaction,E=x.pointer,P=x.event,N=x.eventTarget,G=x.pointerIndex,j=L.pointers[G].hold,V=ae(N),J={interaction:L,pointer:E,event:P,eventTarget:N,type:"hold",targets:[],path:V,node:null},ot=0;ot<V.length;ot++){var pt=V[ot];J.node=pt,C.fire("pointerEvents:collect-targets",J)}if(J.targets.length){for(var dt=1/0,_t=0,Ot=J.targets;_t<Ot.length;_t++){var Lt=Ot[_t].eventable.options.holdDuration;Lt<dt&&(dt=Lt)}j.duration=dt,j.timeout=setTimeout((function(){ro({interaction:L,eventTarget:N,pointer:E,event:P,type:"hold"},C)}),dt)}})(_,y),ro(_,y)},"interactions:up":function(_,y){fy(_),ro(_,y),(function(x,C){var L=x.interaction,E=x.pointer,P=x.event,N=x.eventTarget;L.pointerWasMoved||ro({interaction:L,eventTarget:N,pointer:E,event:P,type:"tap"},C)})(_,y)},"interactions:cancel":function(_,y){fy(_),ro(_,y)}},PointerEvent:sC,fire:ro,collectEventTargets:lC,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ro(_,y){var x=_.interaction,C=_.pointer,L=_.event,E=_.eventTarget,P=_.type,N=_.targets,G=N===void 0?lC(_,y):N,j=new sC(P,C,L,E,x,y.now());y.fire("pointerEvents:new",{pointerEvent:j});for(var V={interaction:x,pointer:C,event:L,eventTarget:E,targets:G,type:P,pointerEvent:j},J=0;J<G.length;J++){var ot=G[J];for(var pt in ot.props||{})j[pt]=ot.props[pt];var dt=lt(ot.eventable,ot.node);if(j._subtractOrigin(dt),j.eventable=ot.eventable,j.currentTarget=ot.node,ot.eventable.fire(j),j._addOrigin(dt),j.immediatePropagationStopped||j.propagationStopped&&J+1<G.length&&G[J+1].node!==j.currentTarget)break}if(y.fire("pointerEvents:fired",V),P==="tap"){var _t=j.double?ro({interaction:x,pointer:C,event:L,eventTarget:E,type:"doubletap"},y):j;x.prevTap=_t,x.tapTime=_t.timeStamp}return j}function lC(_,y){var x=_.interaction,C=_.pointer,L=_.event,E=_.eventTarget,P=_.type,N=x.getPointerIndex(C),G=x.pointers[N];if(P==="tap"&&(x.pointerWasMoved||!G||G.downTarget!==E))return[];for(var j=ae(E),V={interaction:x,pointer:C,event:L,eventTarget:E,type:P,path:j,targets:[],node:null},J=0;J<j.length;J++){var ot=j[J];V.node=ot,y.fire("pointerEvents:collect-targets",V)}return P==="hold"&&(V.targets=V.targets.filter((function(pt){var dt,_t;return pt.eventable.options.holdDuration===((dt=x.pointers[N])==null||(_t=dt.hold)==null?void 0:_t.duration)}))),V.targets}function fy(_){var y=_.interaction,x=_.pointerIndex,C=y.pointers[x].hold;C&&C.timeout&&(clearTimeout(C.timeout),C.timeout=null)}var Rz=Object.freeze({__proto__:null,default:pu});function Fz(_){var y=_.interaction;y.holdIntervalHandle&&(clearInterval(y.holdIntervalHandle),y.holdIntervalHandle=null)}var $z={id:"pointer-events/holdRepeat",install:function(_){_.usePlugin(pu);var y=_.pointerEvents;y.defaults.holdRepeatInterval=0,y.types.holdrepeat=_.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(_,y){return _["pointerEvents:".concat(y)]=Fz,_}),{"pointerEvents:new":function(_){var y=_.pointerEvent;y.type==="hold"&&(y.count=(y.count||0)+1)},"pointerEvents:fired":function(_,y){var x=_.interaction,C=_.pointerEvent,L=_.eventTarget,E=_.targets;if(C.type==="hold"&&E.length){var P=E[0].eventable.options.holdRepeatInterval;P<=0||(x.holdIntervalHandle=setTimeout((function(){y.pointerEvents.fire({interaction:x,eventTarget:L,type:"hold",pointer:C,event:C},y)}),P))}}})},Nz=$z,zz={id:"pointer-events/interactableTargets",install:function(_){var y=_.Interactable;y.prototype.pointerEvents=function(C){return bt(this.events.options,C),this};var x=y.prototype._backCompatOption;y.prototype._backCompatOption=function(C,L){var E=x.call(this,C,L);return E===this&&(this.events.options[C]=L),E}},listeners:{"pointerEvents:collect-targets":function(_,y){var x=_.targets,C=_.node,L=_.type,E=_.eventTarget;y.interactables.forEachMatch(C,(function(P){var N=P.events,G=N.options;N.types[L]&&N.types[L].length&&P.testIgnoreAllow(G,C,E)&&x.push({node:C,eventable:N,props:{interactable:P}})}))},"interactable:new":function(_){var y=_.interactable;y.events.getRect=function(x){return y.getRect(x)}},"interactable:set":function(_,y){var x=_.interactable,C=_.options;bt(x.events.options,y.pointerEvents.defaults),bt(x.events.options,C.pointerEvents||{})}}},Hz=zz,Wz={id:"pointer-events",install:function(_){_.usePlugin(Rz),_.usePlugin(Nz),_.usePlugin(Hz)}},Gz=Wz,qz={id:"reflow",install:function(_){var y=_.Interactable;_.actions.phases.reflow=!0,y.prototype.reflow=function(x){return(function(C,L,E){for(var P=C.getAllElements(),N=E.window.Promise,G=N?[]:null,j=function(){var J=P[V],ot=C.getRect(J);if(!ot)return 1;var pt,dt=rs(E.interactions.list,(function(Lt){return Lt.interacting()&&Lt.interactable===C&&Lt.element===J&&Lt.prepared.name===L.name}));if(dt)dt.move(),G&&(pt=dt._reflowPromise||new N((function(Lt){dt._reflowResolve=Lt})));else{var _t=X(ot),Ot=(function(Lt){return{coords:Lt,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}})({page:{x:_t.x,y:_t.y},client:{x:_t.x,y:_t.y},timeStamp:E.now()});pt=(function(Lt,Yt,pe,be,oe){var ve=Lt.interactions.new({pointerType:"reflow"}),ii={interaction:ve,event:oe,pointer:oe,eventTarget:pe,phase:"reflow"};ve.interactable=Yt,ve.element=pe,ve.prevEvent=oe,ve.updatePointer(oe,oe,pe,!0),Bt(ve.coords.delta),Z(ve.prepared,be),ve._doPhase(ii);var Qe=Lt.window,Ii=Qe.Promise,pn=Ii?new Ii((function(va){ve._reflowResolve=va})):void 0;return ve._reflowPromise=pn,ve.start(be,Yt,pe),ve._interacting?(ve.move(ii),ve.end(oe)):(ve.stop(),ve._reflowResolve()),ve.removePointer(oe,oe),pn})(E,C,J,L,Ot)}G&&G.push(pt)},V=0;V<P.length&&!j();V++);return G&&N.all(G).then((function(){return C}))})(this,x,_)}},listeners:{"interactions:stop":function(_,y){var x=_.interaction;x.pointerType==="reflow"&&(x._reflowResolve&&x._reflowResolve(),(function(C,L){C.splice(C.indexOf(L),1)})(y.interactions.list,x))}}},Vz=qz;if(ri.use(HS),ri.use(YS),ri.use(Gz),ri.use(lz),ri.use(Oz),ri.use(Z3),ri.use(ou),ri.use(ey),ri.use(Vz),ri.default=ri,n(e)==="object"&&e)try{e.exports=ri}catch{}return ri.default=ri,ri}))})(Zu,Zu.exports)),Zu.exports}var B8=P8();const UC=lE(B8),B_=jo({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(e,{expose:t,emit:r}){const i=e,n=r,a=ea(tE),o=ea(eE);if(!a)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const s=hg(null),l=Oo({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let c=!1,u=!1,h=NaN,d=NaN,f=NaN,p=NaN,g=-1,v=-1,m=-1,b=-1,w=i.x,S=i.y,k=i.w,M=i.h;const T=ol(),I=Oo({i:L4(i,"i"),state:l,wrapper:T,calcXY:Pt});function B(rt){st(rt)}function R(){ct()}function D(rt){Bi(i.isDraggable)&&(l.draggable=rt)}function $(rt){Bi(i.isResizable)&&(l.resizable=rt)}function O(rt){Bi(i.isBounded)&&(l.bounded=rt)}function F(rt){l.transformScale=rt}function z(rt){l.rowHeight=rt}function H(rt){l.maxRows=rt}function U(){l.rtl=qC()==="rtl",ct()}function q(rt){l.cols=Math.floor(rt)}a.increaseItem(I),y1(()=>{l.rtl=qC()==="rtl"}),bl(()=>{a.responsive&&a.lastBreakpoint?l.cols=oE(a.lastBreakpoint,a.cols):l.cols=a.colNum,l.rowHeight=a.rowHeight,l.containerWidth=a.width!==null?a.width:100,l.margin=a.margin!==void 0?a.margin.map(Number):[10,10],l.maxRows=a.maxRows,Bi(i.isDraggable)?l.draggable=a.isDraggable:l.draggable=i.isDraggable,Bi(i.isResizable)?l.resizable=a.isResizable:l.resizable=i.isResizable,Bi(i.isBounded)?l.bounded=a.isBounded:l.bounded=i.isBounded,l.transformScale=a.transformScale,l.useCssTransforms=a.useCssTransforms,l.useStyleCursor=a.useStyleCursor,g1(()=>{w=i.x,S=i.y,M=i.h,k=i.w,ni(Zt)}),o.on("updateWidth",B),o.on("compact",R),o.on("setDraggable",D),o.on("setResizable",$),o.on("setBounded",O),o.on("setTransformScale",F),o.on("setRowHeight",z),o.on("setMaxRows",H),o.on("directionchange",U),o.on("setColNum",q)}),Zv(()=>{o.off("updateWidth",B),o.off("compact",R),o.off("setDraggable",D),o.off("setResizable",$),o.off("setBounded",O),o.off("setTransformScale",F),o.off("setRowHeight",z),o.off("setMaxRows",H),o.off("directionchange",U),o.off("setColNum",q),s.value&&(s.value.unset(),s.value=null),a.decreaseItem(I)}),t({state:l,wrapper:T});const K=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,et=tn(()=>l.resizable&&!i.static),Q=tn(()=>a.isMirrored?!l.rtl:l.rtl),it=tn(()=>(l.draggable||l.resizable)&&!i.static),at=T8("item"),Ct=tn(()=>({[at.b()]:!0,[at.bm("resizable")]:et.value,[at.bm("static")]:i.static,[at.bm("resizing")]:l.isResizing,[at.bm("dragging")]:l.isDragging,[at.bm("transform")]:l.useCssTransforms,[at.bm("rtl")]:Q.value,[at.bm("no-touch")]:K&&it.value})),xt=tn(()=>[at.be("resizer"),Q.value&&at.bem("resizer","rtl")].filter(Boolean));Se(()=>i.isDraggable,rt=>{l.draggable=rt}),Se(()=>i.static,()=>{ni(gt),ni(Bt)}),Se(()=>l.draggable,()=>{ni(gt)}),Se(()=>i.isResizable,rt=>{l.resizable=rt}),Se(()=>i.isBounded,rt=>{l.bounded=rt}),Se(()=>l.resizable,()=>{ni(Bt)}),Se(()=>l.rowHeight,()=>{ni(Zt),ni(ae)}),Se([()=>l.cols,()=>l.containerWidth],()=>{ni(Bt),ni(Zt),ni(ae)}),Se([()=>i.minH,()=>i.maxH,()=>i.minW,()=>i.maxW],()=>{ni(Bt)}),Se(Q,()=>{ni(Bt),ni(Zt)}),Se([()=>a.margin,()=>a.margin[0],()=>a.margin[1]],()=>{const rt=a.margin;!rt||rt[0]===l.margin[0]&&rt[1]===l.margin[1]||(l.margin=rt.map(Number),ni(Zt),ni(ae))});function Zt(){i.x+i.w>l.cols?(w=0,k=i.w>l.cols?l.cols:i.w):(w=i.x,k=i.w);const rt=qt(w,S,k,M);l.isDragging&&(rt.top=l.dragging.top,Q.value?rt.right=l.dragging.left:rt.left=l.dragging.left),l.isResizing&&(rt.width=l.resizing.width,rt.height=l.resizing.height);let ft;l.useCssTransforms?Q.value?ft=x8(rt.top,rt.right,rt.width,rt.height):ft=b8(rt.top,rt.left,rt.width,rt.height):Q.value?ft=S8(rt.top,rt.right,rt.width,rt.height):ft=w8(rt.top,rt.left,rt.width,rt.height),l.style=ft}function ae(){const rt={};for(const ft of["width","height"]){const St=l.style[ft].match(/^(\d+)px$/);if(!St)return;rt[ft]=St[1]}n("container-resized",i.i,i.h,i.w,rt.height,rt.width)}function de(rt){if(i.static)return;const ft=rt.type;if(ft==="resizestart"&&l.isResizing||ft!=="resizestart"&&!l.isResizing)return;const St=WC(rt);if(Bi(St))return;const{x:At,y:Vt}=St,Et={width:0,height:0};let Rt;switch(ft){case"resizestart":{Bt(),g=k,v=M,Rt=qt(w,S,k,M),Et.width=Rt.width,Et.height=Rt.height,l.resizing=Et,l.isResizing=!0;break}case"resizemove":{!rt.edges.right&&!rt.edges.left&&(f=At),!rt.edges.top&&!rt.edges.bottom&&(p=Vt);const we=GC(f,p,At,Vt);Q.value?Et.width=l.resizing.width-we.deltaX/l.transformScale:Et.width=l.resizing.width+we.deltaX/l.transformScale,Et.height=l.resizing.height+we.deltaY/l.transformScale,l.resizing=Et;break}case"resizeend":{Rt=qt(w,S,k,M),Et.width=Rt.width,Et.height=Rt.height,l.resizing={width:-1,height:-1},l.isResizing=!1;break}}Rt=lt(Et.height,Et.width),Rt.w<i.minW&&(Rt.w=i.minW),Rt.w>i.maxW&&(Rt.w=i.maxW),Rt.h<i.minH&&(Rt.h=i.minH),Rt.h>i.maxH&&(Rt.h=i.maxH),Rt.h<1&&(Rt.h=1),Rt.w<1&&(Rt.w=1),f=At,p=Vt,(k!==Rt.w||M!==Rt.h)&&n("resize",i.i,Rt.h,Rt.w,Et.height,Et.width),rt.type==="resizeend"&&(g!==k||v!==M)&&n("resized",i.i,Rt.h,Rt.w,Et.height,Et.width),o.emit("resizeEvent",rt.type,i.i,w,S,Rt.h,Rt.w)}function bt(rt){if(i.static||l.isResizing)return;const ft=rt.type;if(ft==="dragstart"&&l.isDragging||ft!=="dragstart"&&!l.isDragging)return;const St=WC(rt);if(Bi(St))return;const{x:At,y:Vt}=St,Et=rt.target;if(!Et.offsetParent)return;const Rt={top:0,left:0};switch(ft){case"dragstart":{m=w,b=S;const Ee=Et.offsetParent.getBoundingClientRect(),Ge=Et.getBoundingClientRect(),yr=Ge.left/l.transformScale,Hr=Ee.left/l.transformScale,ke=Ge.right/l.transformScale,Ke=Ee.right/l.transformScale,Ei=Ge.top/l.transformScale,Wr=Ee.top/l.transformScale;Q.value?Rt.left=(ke-Ke)*-1:Rt.left=yr-Hr,Rt.top=Ei-Wr,l.dragging=Rt,l.isDragging=!0;break}case"dragmove":{const Ee=GC(h,d,At,Vt);if(Q.value?Rt.left=l.dragging.left-Ee.deltaX/l.transformScale:Rt.left=l.dragging.left+Ee.deltaX/l.transformScale,Rt.top=l.dragging.top+Ee.deltaY/l.transformScale,l.bounded){const Ge=Et.offsetParent.clientHeight-X(i.h,l.rowHeight,l.margin[1]);Rt.top=nt(Rt.top,0,Ge);const yr=W(),Hr=l.containerWidth-X(i.w,yr,l.margin[0]);Rt.left=nt(Rt.left,0,Hr)}l.dragging=Rt;break}case"dragend":{const Ee=Et.offsetParent.getBoundingClientRect(),Ge=Et.getBoundingClientRect(),yr=Ge.left/l.transformScale,Hr=Ee.left/l.transformScale,ke=Ge.right/l.transformScale,Ke=Ee.right/l.transformScale,Ei=Ge.top/l.transformScale,Wr=Ee.top/l.transformScale;Q.value?Rt.left=(ke-Ke)*-1:Rt.left=yr-Hr,Rt.top=Ei-Wr,l.dragging={top:-1,left:-1},l.isDragging=!1;break}}let we;Q.value,we=Pt(Rt.top,Rt.left),h=At,d=Vt,(w!==we.x||S!==we.y)&&n("move",i.i,we.x,we.y),rt.type==="dragend"&&(m!==w||b!==S)&&n("moved",i.i,we.x,we.y),o.emit("dragEvent",rt.type,i.i,we.x,we.y,M,k)}function qt(rt,ft,St,At){const Vt=W();let Et;return Q.value?Et={right:Math.round(Vt*rt+(rt+1)*l.margin[0]),top:Math.round(l.rowHeight*ft+(ft+1)*l.margin[1]),width:St===1/0?St:Math.round(Vt*St+Math.max(0,St-1)*l.margin[0]),height:At===1/0?At:Math.round(l.rowHeight*At+Math.max(0,At-1)*l.margin[1])}:Et={left:Math.round(Vt*rt+(rt+1)*l.margin[0]),top:Math.round(l.rowHeight*ft+(ft+1)*l.margin[1]),width:St===1/0?St:Math.round(Vt*St+Math.max(0,St-1)*l.margin[0]),height:At===1/0?At:Math.round(l.rowHeight*At+Math.max(0,At-1)*l.margin[1])},Et}function Pt(rt,ft){const St=W();let At=Math.round((ft-l.margin[0])/(St+l.margin[0])),Vt=Math.round((rt-l.margin[1])/(l.rowHeight+l.margin[1]));return At=Math.max(Math.min(At,l.cols-k),0),Vt=Math.max(Math.min(Vt,l.maxRows-M),0),{x:At,y:Vt}}function W(){return(l.containerWidth-l.margin[0]*(l.cols+1))/l.cols}function X(rt,ft,St){return Number.isFinite(rt)?Math.round(ft*rt+Math.max(0,rt-1)*St):rt}function nt(rt,ft,St){return Math.max(Math.min(rt,St),ft)}function lt(rt,ft,St=!1){const At=W();let Vt=Math.round((ft+l.margin[0])/(At+l.margin[0])),Et=0;return St?Et=Math.ceil((rt+l.margin[1])/(l.rowHeight+l.margin[1])):Et=Math.round((rt+l.margin[1])/(l.rowHeight+l.margin[1])),Vt=Math.max(Math.min(Vt,l.cols-w),0),Et=Math.max(Math.min(Et,l.maxRows-S),0),{w:Vt,h:Et}}function st(rt,ft){l.containerWidth=rt}function ct(){Zt()}function yt(){!s.value&&T.value&&(s.value=UC(T.value),l.useStyleCursor||s.value.styleCursor(!1))}const vt=NC(bt);function gt(){if(yt(),!!s.value)if(l.draggable&&!i.static){const rt={ignoreFrom:i.dragIgnoreFrom,allowFrom:i.dragAllowFrom,...i.dragOption};s.value.draggable(rt),c||(c=!0,s.value.on("dragstart dragmove dragend",ft=>{ft.type==="dragmove"?vt(ft):bt(ft)}))}else s.value.draggable({enabled:!1})}const ut=NC(de);function Bt(){if(yt(),!!s.value)if(l.resizable&&!i.static){const rt=qt(0,0,i.maxW,i.maxH),ft=qt(0,0,i.minW,i.minH),St={edges:{left:Q.value?`.${xt.value[0]}`:!1,right:Q.value?!1:`.${xt.value[0]}`,bottom:`.${xt.value[0]}`,top:!1},ignoreFrom:i.resizeIgnoreFrom,restrictSize:{min:{height:ft.height*l.transformScale,width:ft.width*l.transformScale},max:{height:rt.height*l.transformScale,width:rt.width*l.transformScale}},...i.resizeOption};i.preserveAspectRatio&&(St.modifiers=[UC.modifiers.aspectRatio({ratio:"preserve"})]),s.value.resizable(St),u||(u=!0,s.value.on("resizestart resizemove resizeend",At=>{At.type==="resizemove"?ut(At):de(At)}))}else s.value.resizable({enabled:!1})}return(rt,ft)=>(Ae(),ir("section",{ref_key:"wrapper",ref:T,class:Uh(Ct.value),style:If(l.style)},[C_(rt.$slots,"default"),et.value?(Ae(),ir("span",{key:0,class:Uh(xt.value)},null,2)):Mo("",!0)],6))}}),xl=typeof window<"u";var YC;xl&&(YC=window?.navigator)!=null&&YC.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function jC(e){return e!=null}function XC(){}const O8=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(O8)));const R8=xl&&("ontouchstart"in window||$8()>0),F8=R8?"pointerdown":"click";function $8(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function N8(e,t,r=window.Event){const{type:i,bubbles:n=!1,cancelable:a=!1,...o}=t;if(!jC(i)||i==="")return!1;let s;return jC(r)?s=new r(i,{bubbles:n,cancelable:a}):(s=document.createEvent("HTMLEvents"),s.initEvent(i,n,a)),Object.assign(s,o),e.dispatchEvent(s)}const z8="clickoutside",H8=new Set;xl&&document.addEventListener(F8,e=>{const t=e.target,r=e.composedPath&&e.composedPath();H8.forEach(i=>{i!==t&&(r?!r.includes(i):!i.contains(t))&&(!i.__transferElement||i.__transferElement!==t&&!i.__transferElement.contains(t))&&N8(i,{type:z8})})},!0);const W8=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let Pp;if(xl){for(const e of W8)if(e[1]in document){Pp=e;break}}const G8=new Set,q8=new WeakMap;if(xl&&Pp){const e=Pp[2],t=Pp[4];document.addEventListener(t,()=>{if(G8.forEach(r=>{r.value=!1}),document[e]){const r=q8.get(document[e]);r&&(r.value=!0)}},!1)}const cE=new Map;cE.set("x",0);cE.set("y",0);var Xs=[],V8=function(){return Xs.some(function(e){return e.activeTargets.length>0})},U8=function(){return Xs.some(function(e){return e.skippedTargets.length>0})},ZC="ResizeObserver loop completed with undelivered notifications.",Y8=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ZC}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ZC),window.dispatchEvent(e)},Jh;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Jh||(Jh={}));var Zs=function(e){return Object.freeze(e)},j8=(function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Zs(this)}return e})(),uE=(function(){function e(t,r,i,n){return this.x=t,this.y=r,this.width=i,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Zs(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,i=t.y,n=t.top,a=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:i,top:n,right:a,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),S1=function(e){return e instanceof SVGElement&&"getBBox"in e},hE=function(e){if(S1(e)){var t=e.getBBox(),r=t.width,i=t.height;return!r&&!i}var n=e,a=n.offsetWidth,o=n.offsetHeight;return!(a||o||e.getClientRects().length)},KC=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},X8=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Th=typeof window<"u"?window:{},xd=new WeakMap,QC=/auto|scroll/,Z8=/^tb|vertical/,K8=/msie|trident/i.test(Th.navigator&&Th.navigator.userAgent),On=function(e){return parseFloat(e||"0")},gc=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new j8((r?t:e)||0,(r?e:t)||0)},JC=Zs({devicePixelContentBoxSize:gc(),borderBoxSize:gc(),contentBoxSize:gc(),contentRect:new uE(0,0,0,0)}),fE=function(e,t){if(t===void 0&&(t=!1),xd.has(e)&&!t)return xd.get(e);if(hE(e))return xd.set(e,JC),JC;var r=getComputedStyle(e),i=S1(e)&&e.ownerSVGElement&&e.getBBox(),n=!K8&&r.boxSizing==="border-box",a=Z8.test(r.writingMode||""),o=!i&&QC.test(r.overflowY||""),s=!i&&QC.test(r.overflowX||""),l=i?0:On(r.paddingTop),c=i?0:On(r.paddingRight),u=i?0:On(r.paddingBottom),h=i?0:On(r.paddingLeft),d=i?0:On(r.borderTopWidth),f=i?0:On(r.borderRightWidth),p=i?0:On(r.borderBottomWidth),g=i?0:On(r.borderLeftWidth),v=h+c,m=l+u,b=g+f,w=d+p,S=s?e.offsetHeight-w-e.clientHeight:0,k=o?e.offsetWidth-b-e.clientWidth:0,M=n?v+b:0,T=n?m+w:0,I=i?i.width:On(r.width)-M-k,B=i?i.height:On(r.height)-T-S,R=I+v+k+b,D=B+m+S+w,$=Zs({devicePixelContentBoxSize:gc(Math.round(I*devicePixelRatio),Math.round(B*devicePixelRatio),a),borderBoxSize:gc(R,D,a),contentBoxSize:gc(I,B,a),contentRect:new uE(h,l,I,B)});return xd.set(e,$),$},dE=function(e,t,r){var i=fE(e,r),n=i.borderBoxSize,a=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case Jh.DEVICE_PIXEL_CONTENT_BOX:return o;case Jh.BORDER_BOX:return n;default:return a}},Q8=(function(){function e(t){var r=fE(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Zs([r.borderBoxSize]),this.contentBoxSize=Zs([r.contentBoxSize]),this.devicePixelContentBoxSize=Zs([r.devicePixelContentBoxSize])}return e})(),pE=function(e){if(hE(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},J8=function(){var e=1/0,t=[];Xs.forEach(function(a){if(a.activeTargets.length!==0){var o=[];a.activeTargets.forEach(function(s){var l=new Q8(s.target),c=pE(s.target);o.push(l),s.lastReportedSize=dE(s.target,s.observedBox),c<e&&(e=c)}),t.push(function(){a.callback.call(a.observer,o,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,i=t;r<i.length;r++){var n=i[r];n()}return e},tT=function(e){Xs.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(r){r.isActive()&&(pE(r.target)>e?t.activeTargets.push(r):t.skippedTargets.push(r))})})},tH=function(){var e=0;for(tT(e);V8();)e=J8(),tT(e);return U8()&&Y8(),e>0},Cy,gE=[],eH=function(){return gE.splice(0).forEach(function(e){return e()})},rH=function(e){if(!Cy){var t=0,r=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return eH()}).observe(r,i),Cy=function(){r.textContent="".concat(t?t--:t++)}}gE.push(e),Cy()},iH=function(e){rH(function(){requestAnimationFrame(e)})},Bp=0,nH=function(){return!!Bp},aH=250,oH={attributes:!0,characterData:!0,childList:!0,subtree:!0},eT=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rT=function(e){return e===void 0&&(e=0),Date.now()+e},Ty=!1,sH=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=aH),!Ty){Ty=!0;var i=rT(t);iH(function(){var n=!1;try{n=tH()}finally{if(Ty=!1,t=i-rT(),!nH())return;n?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,oH)};document.body?r():Th.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),eT.forEach(function(r){return Th.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),eT.forEach(function(r){return Th.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e})(),O_=new sH,iT=function(e){!Bp&&e>0&&O_.start(),Bp+=e,!Bp&&O_.stop()},lH=function(e){return!S1(e)&&!X8(e)&&getComputedStyle(e).display==="inline"},cH=(function(){function e(t,r){this.target=t,this.observedBox=r||Jh.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=dE(this.target,this.observedBox,!0);return lH(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),uH=(function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e})(),wd=new WeakMap,nT=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Sd=(function(){function e(){}return e.connect=function(t,r){var i=new uH(t,r);wd.set(t,i)},e.observe=function(t,r,i){var n=wd.get(t),a=n.observationTargets.length===0;nT(n.observationTargets,r)<0&&(a&&Xs.push(n),n.observationTargets.push(new cH(r,i&&i.box)),iT(1),O_.schedule())},e.unobserve=function(t,r){var i=wd.get(t),n=nT(i.observationTargets,r),a=i.observationTargets.length===1;n>=0&&(a&&Xs.splice(Xs.indexOf(i),1),i.observationTargets.splice(n,1),iT(-1))},e.disconnect=function(t){var r=this,i=wd.get(t);i.observationTargets.slice().forEach(function(n){return r.unobserve(t,n.target)}),i.activeTargets.splice(0,i.activeTargets.length)},e})(),hH=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Sd.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!KC(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Sd.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!KC(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Sd.unobserve(this,t)},e.prototype.disconnect=function(){Sd.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();const xg=new WeakMap;function fH(e){var t;for(let r=0,i=e.length;r<i;++r){const n=e[r],a=xg.get(n.target);if(typeof a=="function"){const{inlineSize:o,blockSize:s}=((t=n.borderBoxSize)==null?void 0:t[0])??{},{offsetWidth:l,offsetHeight:c}=n.target;a(Object.assign(n,{offsetWidth:l,offsetHeight:c,width:o??l,height:s??c}))}}}const vE=new(xl&&window.ResizeObserver||hH)(fH);function aT(e,t){xg.set(e,t),vE.observe(e)}function oT(e){xg.has(e)&&(vE.unobserve(e),xg.delete(e))}function dH(e={}){let t=XC;const r=Se(()=>sl(e.target),n=>{t(),!(!n||typeof e.onResize!="function")&&(aT(n,e.onResize),t=()=>{oT(n),t=XC})},{immediate:!0}),i=()=>{r(),t()};return KL()&&n4(i),{observeResize:aT,unobserveResize:oT,unobserve:i}}const sT="__theme_style__",ky="__theme_observer__",lT=Oo(new Map),cT=new Map;Se(lT,()=>{if(!xl)return;cT.clear();const e=document.head.querySelector(`#${sT}`);e&&document.head.removeChild(e);const t=document.createElement("style");let r=`.${ky} { width: 1px }`,i=1;for(const[n,[a,o]]of lT.entries())r+=` html.${a} .${ky}, .${o} .${ky} { width: ${++i}px }`,cT.set(i,n);t.textContent=r,t.id=sT,document.head.appendChild(t)});const pH=jo({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(e,{expose:t,emit:r}){const i=e,n=r,a=Oo({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),o=new Map,s=ol(i.layout),l=ol(),{observeResize:c,unobserveResize:u}=dH(),h=d8();h.on("resizeEvent",d),h.on("dragEvent",f),y1(()=>{n("layout-before-mount",s.value)}),bl(()=>{n("layout-mounted",s.value),Un(()=>{C8(s.value),a.originalLayout=s.value,Un(()=>{B(),l.value&&c(l.value,p8(w,16)),Jl(s.value,i.verticalCompact),n("layout-updated",s.value),b(),w()})})}),Zv(()=>{h.clearAll(),l.value&&u(l.value)});function d(D,$,O,F,z,H){T(D,$,O,F,z,H)}function f(D,$,O,F,z,H){M(D,$,O,F,z,H)}Se(()=>a.width,(D,$)=>{Un(()=>{h.emit("updateWidth",D),$===-1&&Un(()=>{n("layout-ready",s.value)}),b()})}),Se(()=>[i.layout,i.layout.length],()=>{s.value=i.layout,m()}),Se(()=>i.colNum,D=>{h.emit("setColNum",D)}),Se(()=>i.rowHeight,D=>{h.emit("setRowHeight",D)}),Se(()=>i.isDraggable,D=>{h.emit("setDraggable",D)}),Se(()=>i.isResizable,D=>{h.emit("setResizable",D)}),Se(()=>i.isBounded,D=>{h.emit("setBounded",D)}),Se(()=>i.transformScale,D=>{h.emit("setTransformScale",D)}),Se(()=>i.responsive,D=>{D||(n("update:layout",a.originalLayout),h.emit("setColNum",i.colNum)),w()}),Se(()=>i.maxRows,D=>{h.emit("setMaxRows",D)}),Se([()=>i.margin,()=>i.margin[1]],b),w_(tE,Oo({...x_(i),...x_(a),increaseItem:p,decreaseItem:g})),w_(eE,h),t({state:a,getItem:v,resizeEvent:T,dragEvent:M,layoutUpdate:m});function p(D){o.set(D.i,D)}function g(D){o.delete(D.i)}function v(D){return o.get(D)}function m(){if(!Bi(s.value)&&!Bi(a.originalLayout)){if(s.value.length!==a.originalLayout.length){const D=R(s.value,a.originalLayout);if(D.length>0)if(s.value.length>a.originalLayout.length)a.originalLayout=a.originalLayout.concat(D);else{const $=new Set(D.map(O=>O.i));a.originalLayout=a.originalLayout.filter(O=>!$.has(O.i))}a.lastLayoutLength=s.value.length,B()}Jl(s.value,i.verticalCompact),h.emit("updateWidth",a.width),b(),n("layout-updated",s.value)}}function b(){a.mergedStyle={height:S()}}function w(){l.value&&(a.width=l.value.offsetWidth),h.emit("resizeEvent")}function S(){if(!i.autoSize)return;const D=parseFloat(i.margin[1]);return v8(s.value)*(i.rowHeight+D)+D+"px"}let k;function M(D,$,O,F,z,H){let U=zC(s.value,$);Bi(U)&&(U={h:0,w:0,x:0,y:0,i:""}),D==="dragstart"&&!i.verticalCompact&&(k=s.value.reduce((q,{i:K,x:et,y:Q})=>({...q,[K]:{x:et,y:Q}}),{})),D==="dragmove"||D==="dragstart"?(a.placeholder.i=$,a.placeholder.x=U.x,a.placeholder.y=U.y,a.placeholder.w=H,a.placeholder.h=z,Un(()=>{a.isDragging=!0}),h.emit("updateWidth",a.width)):Un(()=>{a.isDragging=!1}),s.value=P_(s.value,U,O,F,!0,i.preventCollision),i.restoreOnDrag?(U.static=!0,Jl(s.value,i.verticalCompact,k),U.static=!1):Jl(s.value,i.verticalCompact),h.emit("compact"),b(),D==="dragend"&&(k=void 0,n("layout-updated",s.value))}function T(D,$,O,F,z,H){let U=zC(s.value,$);Bi(U)&&(U={h:0,w:0,x:0,y:0,i:""});let q;if(i.preventCollision){const K=iE(s.value,{...U,w:H,h:z}).filter(et=>et.i!==U.i);if(q=K.length>0,q){let et=1/0,Q=1/0;K.forEach(it=>{it.x>U.x&&(et=Math.min(et,it.x)),it.y>U.y&&(Q=Math.min(Q,it.y))}),Number.isFinite(et)&&(U.w=et-U.x),Number.isFinite(Q)&&(U.h=Q-U.y)}}q||(U.w=H,U.h=z),D==="resizestart"||D==="resizemove"?(a.placeholder.i=$,a.placeholder.x=O,a.placeholder.y=F,a.placeholder.w=U.w,a.placeholder.h=U.h,Un(()=>{a.isDragging=!0}),h.emit("updateWidth",a.width)):D&&Un(()=>{a.isDragging=!1}),i.responsive&&I(),Jl(s.value,i.verticalCompact),h.emit("compact"),b(),D==="resizeend"&&n("layout-updated",s.value)}function I(){const D=M8(i.breakpoints,a.width);if(D===a.lastBreakpoint)return;const $=oE(D,i.cols);!Bi(a.lastBreakpoint)&&!a.layouts[a.lastBreakpoint]&&(a.layouts[a.lastBreakpoint]=I_(s.value));const O=L8(a.originalLayout,a.layouts,i.breakpoints,D,a.lastBreakpoint,$,i.verticalCompact);a.layouts[D]=O,a.lastBreakpoint!==D&&n("breakpoint-changed",D,O),s.value=O,n("update:layout",O),a.lastBreakpoint=D,h.emit("setColNum",$)}function B(){a.layouts=Object.assign({},i.responsiveLayouts)}function R(D,$){const O=new Set($.map(U=>U.i)),F=new Set(D.map(U=>U.i)),z=D.filter(U=>!O.has(U.i)),H=$.filter(U=>!F.has(U.i));return z.concat(H)}return(D,$)=>(Ae(),ir("div",{ref_key:"wrapper",ref:l,class:"vgl-layout",style:If(a.mergedStyle)},[D.$slots.default?C_(D.$slots,"default",{key:0}):(Ae(!0),ir(Lr,{key:1},bh(s.value,O=>(Ae(),Ia(B_,UD({key:O.i,ref_for:!0},O),{default:gg(()=>[C_(D.$slots,"item",{item:O})]),_:2},1040))),128)),F4(Fr(B_,{class:"vgl-item--placeholder",x:a.placeholder.x,y:a.placeholder.y,w:a.placeholder.w,h:a.placeholder.h,i:a.placeholder.i},null,8,["x","y","w","h","i"]),[[V6,a.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var R_=function(e,t){return R_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},R_(e,t)};function kt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");R_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var gH=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),vH=(function(){function e(){this.browser=new gH,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),he=new vH;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(he.wxa=!0,he.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?he.worker=!0:!he.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(he.node=!0,he.svgSupported=!0):mH(navigator.userAgent,he);function mH(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var C1=12,yH="sans-serif",Ro=C1+"px "+yH,_H=20,bH=100,xH="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function wH(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-_H)/bH;t[i]=n}return t}var SH=wH(xH),Ga={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=Ga.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||Ro),e.measureText(r);r=r||"",i=i||Ro;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||C1,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var c=SH[r[l]];s+=c==null?o:c*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},mE=Fo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),yE=Fo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Of=Object.prototype.toString,em=Array.prototype,CH=em.forEach,TH=em.filter,T1=em.slice,kH=em.map,uT=(function(){}).constructor,Cd=uT?uT.prototype:null,k1="__proto__",AH=2311;function _E(){return AH++}function A1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function xe(e){if(e==null||typeof e!="object")return e;var t=e,r=Of.call(e);if(r==="[object Array]"){if(!kh(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=xe(e[i])}}else if(yE[r]){if(!kh(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!mE[r]&&!kh(e)&&!tf(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==k1&&(t[o]=xe(e[o]))}return t}function Re(e,t,r){if(!Qt(t)||!Qt(e))return r?xe(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==k1){var n=e[i],a=t[i];Qt(a)&&Qt(n)&&!It(a)&&!It(n)&&!tf(a)&&!tf(n)&&!hT(a)&&!hT(n)&&!kh(a)&&!kh(n)?Re(n,a,r):(r||!(i in e))&&(e[i]=xe(t[i]))}return e}function wt(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==k1&&(e[r]=t[r]);return e}function We(e,t,r){for(var i=er(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function De(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function MH(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function ha(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else We(e,t)}function Li(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function Y(e,t,r){if(e&&t)if(e.forEach&&e.forEach===CH)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function te(e,t,r){if(!e)return[];if(!t)return M1(e);if(e.map&&e.map===kH)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function Fo(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function Dr(e,t,r){if(!e)return[];if(!t)return M1(e);if(e.filter&&e.filter===TH)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function LH(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function er(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function DH(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(T1.call(arguments)))}}var ze=Cd&&ce(Cd.bind)?Cd.call.bind(Cd.bind):DH;function fr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(T1.call(arguments)))}}function It(e){return Array.isArray?Array.isArray(e):Of.call(e)==="[object Array]"}function ce(e){return typeof e=="function"}function Ut(e){return typeof e=="string"}function F_(e){return Of.call(e)==="[object String]"}function He(e){return typeof e=="number"}function Qt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function hT(e){return!!mE[Of.call(e)]}function Di(e){return!!yE[Of.call(e)]}function tf(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function rm(e){return e.colorStops!=null}function EH(e){return e.image!=null}function ef(e){return e!==e}function wg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function ne(e,t){return e??t}function Ks(e,t,r){return e??t??r}function M1(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return T1.apply(e,t)}function L1(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function qa(e,t){if(!e)throw new Error(t)}function Kn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var bE="__ec_primitive__";function $_(e){e[bE]=!0}function kh(e){return e[bE]}var IH=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return er(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),xE=typeof Map=="function";function PH(){return xE?new Map:new IH}var BH=(function(){function e(t){var r=It(t);this.data=PH();var i=this;t instanceof e?t.each(n):t&&Y(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return xE?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function me(e){return new BH(e)}function OH(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function im(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&wt(r,t),r}function wE(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Tn(e,t){return e.hasOwnProperty(t)}function Mi(){}var RH=180/Math.PI;function jc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function FH(e){return[e[0],e[1]]}function fT(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function $H(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function NH(e){return Math.sqrt(zH(e))}function zH(e){return e[0]*e[0]+e[1]*e[1]}function Ay(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function HH(e,t){var r=NH(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function N_(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var z_=N_;function WH(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var vc=WH;function My(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function nn(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function ic(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function nc(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Pl=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),GH=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Pl(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new Pl(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Pl(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Pl(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Pl(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Pl(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),fa=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},c=a[t].length-1,u=a[t][c];return u&&u.callAtLast?a[t].splice(c,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var c=n[l];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,r[0]);break;case 2:c.h.call(c.ctx,r[0],r[1]);break;default:c.h.apply(c.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,c=0;c<l;c++){var u=n[c];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,r[0]);break;case 2:u.h.call(s,r[0],r[1]);break;default:u.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),qH=Math.log(2);function H_(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/qH);return e[r][l]}for(var c=i|1<<r,u=r+1;i&1<<u;)u++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&n||(h+=(f%2?-1:1)*e[r][d]*H_(e,t-1,u,c,n|p,a),f++)}return a[o]=h,h}function dT(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=H_(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*H_(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,c,u){var h=c*a[6]+u*a[7]+1;l[0]=(c*a[0]+u*a[1]+a[2])/h,l[1]=(c*a[3]+u*a[4]+a[5])/h}}}var Sg="___zrEVENTSAVED",Ly=[];function VH(e,t,r,i,n){return W_(Ly,t,i,n,!0)&&W_(e,r,Ly[0],Ly[1])}function UH(e,t){e&&r(e),t&&r(t);function r(i){var n=i[Sg];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Sg])}}function W_(e,t,r,i,n){if(t.getBoundingClientRect&&he.domSupported&&!SE(t)){var a=t[Sg]||(t[Sg]={}),o=YH(t,a),s=jH(o,a,n);if(s)return s(e,r,i),!0}return!1}function YH(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[c]+":0",i[1-l]+":auto",n[1-c]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){Y(r,function(u){u.parentNode&&u.parentNode.removeChild(u)})},r}function jH(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),h=2*c,d=u.left,f=u.top;o.push(d,f),l=l&&a&&d===a[h]&&f===a[h+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=r?dT(s,o):dT(o,s))}function SE(e){return e.nodeName.toUpperCase()==="CANVAS"}var XH=/([&<>"'])/g,ZH={"&":"&","<":"<",">":">",'"':""","'":"'"};function xi(e){return e==null?"":(e+"").replace(XH,function(t,r){return ZH[r]})}var KH=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dy=[],QH=he.browser.firefox&&+he.browser.version.split(".")[0]<39;function G_(e,t,r,i){return r=r||{},i?pT(e,t,r):QH&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):pT(e,t,r),r}function pT(e,t,r){if(he.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(SE(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(W_(Dy,e,i,n)){r.zrX=Dy[0],r.zrY=Dy[1];return}}r.zrX=r.zrY=0}function D1(e){return e||window.event}function ji(e,t,r){if(t=D1(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&G_(e,o,t,r)}else{G_(e,t,t,r);var a=JH(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&KH.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function JH(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function tW(e,t,r,i){e.addEventListener(t,r,i)}function eW(e,t,r,i){e.removeEventListener(t,r,i)}var CE=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rW=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var l=n[o],c=G_(i,l,{});a.points.push([c.zrX,c.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Ey)if(Ey.hasOwnProperty(r)){var i=Ey[r](this._track,t);if(i)return i}},e})();function gT(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function iW(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Ey={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=gT(i)/gT(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=iW(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ra(){return[1,0,0,1,0,0]}function E1(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function TE(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ah(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function q_(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function I1(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(r),h=Math.cos(r);return e[0]=n*h+s*u,e[1]=-n*u+s*h,e[2]=a*h+l*u,e[3]=-a*u+h*l,e[4]=h*(o-i[0])+u*(c-i[1])+i[0],e[5]=h*(c-i[1])-u*(o-i[0])+i[1],e}function nW(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Rf(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=r*l,e[4]=(i*s-o*n)*l,e[5]=(a*n-r*s)*l,e):null}var ue=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),$s=Math.min,ac=Math.max,V_=Math.abs,vT=["x","y"],aW=["width","height"],ls=new ue,cs=new ue,us=new ue,hs=new ue,Oi=kE(),Ku=Oi.minTv,U_=Oi.maxTv,Mh=[0,0],ge=(function(){function e(t,r,i,n){e.set(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=$s(t.x,this.x),i=$s(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ac(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ac(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Ra();return q_(a,a,[-r.x,-r.y]),nW(a,a,[i,n]),q_(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&ue.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(oW,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(sW,r.x,r.y,r.width,r.height));var s=!!i;Oi.reset(n,s);var l=Oi.touchThreshold,c=t.x+l,u=t.x+t.width-l,h=t.y+l,d=t.y+t.height-l,f=r.x+l,p=r.x+r.width-l,g=r.y+l,v=r.y+r.height-l;if(c>u||h>d||f>p||g>v)return!1;var m=!(u<f||p<c||d<g||v<h);return(s||a)&&(Mh[0]=1/0,Mh[1]=0,mT(c,u,f,p,0,s,a,o),mT(h,d,g,v,1,s,a,o),s&&ue.copy(i,m?Oi.useDir?Oi.dirMinTv:Ku:U_)),m},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ls.x=us.x=r.x,ls.y=hs.y=r.y,cs.x=hs.x=r.x+r.width,cs.y=us.y=r.y+r.height,ls.transform(i),hs.transform(i),cs.transform(i),us.transform(i),t.x=$s(ls.x,cs.x,us.x,hs.x),t.y=$s(ls.y,cs.y,us.y,hs.y);var l=ac(ls.x,cs.x,us.x,hs.x),c=ac(ls.y,cs.y,us.y,hs.y);t.width=l-t.x,t.height=c-t.y},e})(),oW=new ge(0,0,0,0),sW=new ge(0,0,0,0);function mT(e,t,r,i,n,a,o,s){var l=V_(t-r),c=V_(i-e),u=$s(l,c),h=vT[n],d=vT[1-n],f=aW[n];t<r||i<e?l<c?(a&&(U_[h]=-l),s&&(o[h]=t,o[f]=0)):(a&&(U_[h]=c),s&&(o[h]=e,o[f]=0)):(o&&(o[h]=ac(e,r),o[f]=$s(t,i)-o[h]),a&&(u<Mh[0]||Oi.useDir)&&(Mh[0]=$s(u,Mh[0]),(l<c||!Oi.bidirectional)&&(Ku[h]=l,Ku[d]=0,Oi.useDir&&Oi.calcDirMTV()),(l>=c||!Oi.bidirectional)&&(Ku[h]=-c,Ku[d]=0,Oi.useDir&&Oi.calcDirMTV())))}function kE(){var e=0,t=new ue,r=new ue,i={minTv:new ue,maxTv:new ue,useDir:!1,dirMinTv:new ue,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=ac(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),c=Math.cos(e),u=l*a.y+c*a.x;if(n(u)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*c/u,r.y=s*l/u,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return V_(a)<1e-10}return i}var AE="silent";function lW(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:cW}}function cW(){CE(this.event)}var uW=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(fa),_u=(function(){function e(t,r){this.x=t,this.y=r}return e})(),hW=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Iy=new ge(0,0,0,0),ME=(function(e){kt(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new _u(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new uW,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new GH(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(Y(hW,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=LE(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new _u(i,n):this.findHover(i,n),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new _u(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=lW(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new _u(r,i);if(yT(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,c=l/2,u=new ge(r-c,i-c,l,l),h=a.length-1;h>=0;h--){var d=a[h];d!==n&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Iy.copy(d.getBoundingRect()),d.transform&&Iy.applyTransform(d.transform),Iy.intersect(u)&&s.push(d))}if(s.length)for(var f=4,p=Math.PI/12,g=Math.PI*2,v=0;v<c;v+=f)for(var m=0;m<g;m+=p){var b=r+v*Math.cos(m),w=i+v*Math.sin(m);if(yT(s,o,b,w,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new rW);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new _u;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(fa);Y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ME.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=LE(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||z_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function fW(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?AE:!0}return!1}function yT(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=fW(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==AE)){t.target=o;break}}}function LE(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var DE=32,bu=7;function dW(e){for(var t=0;e>=DE;)t|=e&1,e>>=1;return e+t}function _T(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;pW(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function pW(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function bT(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,e[l])<0?s=l:o=l+1;var c=i-o;switch(c){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;c>0;)e[o+c]=e[o+c-1],c--}e[o]=a}}function Py(e,t,r,i,n,a){var o=0,s=0,l=1;if(a(e,t[r+n])>0){for(s=i-n;l<s&&a(e,t[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(e,t[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=n-l,l=n-c}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[r+u])>0?o=u+1:l=u}return l}function By(e,t,r,i,n,a){var o=0,s=0,l=1;if(a(e,t[r+n])<0){for(s=n+1;l<s&&a(e,t[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=o;o=n-l,l=n-c}else{for(s=i-n;l<s&&a(e,t[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var u=o+(l-o>>>1);a(e,t[r+u])<0?l=u:o=u+1}return l}function gW(e,t){var r=bu,i,n,a=0,o=[];i=[],n=[];function s(f,p){i[a]=f,n[a]=p,a+=1}function l(){for(;a>1;){var f=a-2;if(f>=1&&n[f-1]<=n[f]+n[f+1]||f>=2&&n[f-2]<=n[f]+n[f-1])n[f-1]<n[f+1]&&f--;else if(n[f]>n[f+1])break;u(f)}}function c(){for(;a>1;){var f=a-2;f>0&&n[f-1]<n[f+1]&&f--,u(f)}}function u(f){var p=i[f],g=n[f],v=i[f+1],m=n[f+1];n[f]=g+m,f===a-3&&(i[f+1]=i[f+2],n[f+1]=n[f+2]),a--;var b=By(e[v],e,p,g,0,t);p+=b,g-=b,g!==0&&(m=Py(e[p+g-1],e,v,m,m-1,t),m!==0&&(g<=m?h(p,g,v,m):d(p,g,v,m)))}function h(f,p,g,v){var m=0;for(m=0;m<p;m++)o[m]=e[f+m];var b=0,w=g,S=f;if(e[S++]=e[w++],--v===0){for(m=0;m<p;m++)e[S+m]=o[b+m];return}if(p===1){for(m=0;m<v;m++)e[S+m]=e[w+m];e[S+v]=o[b];return}for(var k=r,M,T,I;;){M=0,T=0,I=!1;do if(t(e[w],o[b])<0){if(e[S++]=e[w++],T++,M=0,--v===0){I=!0;break}}else if(e[S++]=o[b++],M++,T=0,--p===1){I=!0;break}while((M|T)<k);if(I)break;do{if(M=By(e[w],o,b,p,0,t),M!==0){for(m=0;m<M;m++)e[S+m]=o[b+m];if(S+=M,b+=M,p-=M,p<=1){I=!0;break}}if(e[S++]=e[w++],--v===0){I=!0;break}if(T=Py(o[b],e,w,v,0,t),T!==0){for(m=0;m<T;m++)e[S+m]=e[w+m];if(S+=T,w+=T,v-=T,v===0){I=!0;break}}if(e[S++]=o[b++],--p===1){I=!0;break}k--}while(M>=bu||T>=bu);if(I)break;k<0&&(k=0),k+=2}if(r=k,r<1&&(r=1),p===1){for(m=0;m<v;m++)e[S+m]=e[w+m];e[S+v]=o[b]}else{if(p===0)throw new Error;for(m=0;m<p;m++)e[S+m]=o[b+m]}}function d(f,p,g,v){var m=0;for(m=0;m<v;m++)o[m]=e[g+m];var b=f+p-1,w=v-1,S=g+v-1,k=0,M=0;if(e[S--]=e[b--],--p===0){for(k=S-(v-1),m=0;m<v;m++)e[k+m]=o[m];return}if(v===1){for(S-=p,b-=p,M=S+1,k=b+1,m=p-1;m>=0;m--)e[M+m]=e[k+m];e[S]=o[w];return}for(var T=r;;){var I=0,B=0,R=!1;do if(t(o[w],e[b])<0){if(e[S--]=e[b--],I++,B=0,--p===0){R=!0;break}}else if(e[S--]=o[w--],B++,I=0,--v===1){R=!0;break}while((I|B)<T);if(R)break;do{if(I=p-By(o[w],e,f,p,p-1,t),I!==0){for(S-=I,b-=I,p-=I,M=S+1,k=b+1,m=I-1;m>=0;m--)e[M+m]=e[k+m];if(p===0){R=!0;break}}if(e[S--]=o[w--],--v===1){R=!0;break}if(B=v-Py(e[b],o,0,v,v-1,t),B!==0){for(S-=B,w-=B,v-=B,M=S+1,k=w+1,m=0;m<B;m++)e[M+m]=o[k+m];if(v<=1){R=!0;break}}if(e[S--]=e[b--],--p===0){R=!0;break}T--}while(I>=bu||B>=bu);if(R)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),v===1){for(S-=p,b-=p,M=S+1,k=b+1,m=p-1;m>=0;m--)e[M+m]=e[k+m];e[S]=o[w]}else{if(v===0)throw new Error;for(k=S-(v-1),m=0;m<v;m++)e[k+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function Op(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<DE){a=_T(e,r,i,t),bT(e,r,i,r+a,t);return}var o=gW(e,t),s=dW(n);do{if(a=_T(e,r,i,t),a<s){var l=n;l>s&&(l=s),bT(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Ri=1,Qu=2,tc=4,xT=!1;function Oy(){xT||(xT=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wT(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var vW=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wT}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,Op(i,wT)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var c=n,u=t;c;)c.parent=u,c.updateTransform(),s[o++]=c,u=c,c=c.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),d=0;d<h.length;d++){var f=h[d];t.__dirty&&(f.__dirty|=Ri),this._updateAndAddDisplayable(f,s,i)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(Oy(),p.z=0),isNaN(p.z2)&&(Oy(),p.z2=0),isNaN(p.zlevel)&&(Oy(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,i);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=De(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),Cg;Cg=he.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Lh={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Lh.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Lh.bounceIn(e*2)*.5:Lh.bounceOut(e*2-1)*.5+.5}},Td=Math.pow,Lo=Math.sqrt,Tg=1e-8,EE=1e-4,ST=Lo(3),kd=1/3,Xn=jc(),Ki=jc(),mc=jc();function wo(e){return e>-Tg&&e<Tg}function IE(e){return e>Tg||e<-Tg}function Rr(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function CT(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function kg(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),c=e-n,u=s*s-3*o*l,h=s*l-9*o*c,d=l*l-3*s*c,f=0;if(wo(u)&&wo(h))if(wo(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[f++]=p)}else{var g=h*h-4*u*d;if(wo(g)){var v=h/u,p=-s/o+v,m=-v/2;p>=0&&p<=1&&(a[f++]=p),m>=0&&m<=1&&(a[f++]=m)}else if(g>0){var b=Lo(g),w=u*s+1.5*o*(-h+b),S=u*s+1.5*o*(-h-b);w<0?w=-Td(-w,kd):w=Td(w,kd),S<0?S=-Td(-S,kd):S=Td(S,kd);var p=(-s-(w+S))/(3*o);p>=0&&p<=1&&(a[f++]=p)}else{var k=(2*u*s-3*o*h)/(2*Lo(u*u*u)),M=Math.acos(k)/3,T=Lo(u),I=Math.cos(M),p=(-s-2*T*I)/(3*o),m=(-s+T*(I+ST*Math.sin(M)))/(3*o),B=(-s+T*(I-ST*Math.sin(M)))/(3*o);p>=0&&p<=1&&(a[f++]=p),m>=0&&m<=1&&(a[f++]=m),B>=0&&B<=1&&(a[f++]=B)}}return f}function PE(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,l=0;if(wo(o)){if(IE(a)){var c=-s/a;c>=0&&c<=1&&(n[l++]=c)}}else{var u=a*a-4*o*s;if(wo(u))n[0]=-a/(2*o);else if(u>0){var h=Lo(u),c=(-a+h)/(2*o),d=(-a-h)/(2*o);c>=0&&c<=1&&(n[l++]=c),d>=0&&d<=1&&(n[l++]=d)}}return l}function Ag(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,l=(i-r)*n+r,c=(s-o)*n+o,u=(l-s)*n+s,h=(u-c)*n+c;a[0]=e,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=u,a[6]=l,a[7]=i}function mW(e,t,r,i,n,a,o,s,l,c,u){var h,d=.005,f=1/0,p,g,v,m;Xn[0]=l,Xn[1]=c;for(var b=0;b<1;b+=.05)Ki[0]=Rr(e,r,n,o,b),Ki[1]=Rr(t,i,a,s,b),v=vc(Xn,Ki),v<f&&(h=b,f=v);f=1/0;for(var w=0;w<32&&!(d<EE);w++)p=h-d,g=h+d,Ki[0]=Rr(e,r,n,o,p),Ki[1]=Rr(t,i,a,s,p),v=vc(Ki,Xn),p>=0&&v<f?(h=p,f=v):(mc[0]=Rr(e,r,n,o,g),mc[1]=Rr(t,i,a,s,g),m=vc(mc,Xn),g<=1&&m<f?(h=g,f=m):d*=.5);return Lo(f)}function yW(e,t,r,i,n,a,o,s,l){for(var c=e,u=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=Rr(e,r,n,o,p),v=Rr(t,i,a,s,p),m=g-c,b=v-u;h+=Math.sqrt(m*m+b*b),c=g,u=v}return h}function wi(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function TT(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function _W(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,l=0;if(wo(a)){if(IE(o)){var c=-s/o;c>=0&&c<=1&&(n[l++]=c)}}else{var u=o*o-4*a*s;if(wo(u)){var c=-o/(2*a);c>=0&&c<=1&&(n[l++]=c)}else if(u>0){var h=Lo(u),c=(-o+h)/(2*a),d=(-o-h)/(2*a);c>=0&&c<=1&&(n[l++]=c),d>=0&&d<=1&&(n[l++]=d)}}return l}function BE(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Mg(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function bW(e,t,r,i,n,a,o,s,l){var c,u=.005,h=1/0;Xn[0]=o,Xn[1]=s;for(var d=0;d<1;d+=.05){Ki[0]=wi(e,r,n,d),Ki[1]=wi(t,i,a,d);var f=vc(Xn,Ki);f<h&&(c=d,h=f)}h=1/0;for(var p=0;p<32&&!(u<EE);p++){var g=c-u,v=c+u;Ki[0]=wi(e,r,n,g),Ki[1]=wi(t,i,a,g);var f=vc(Ki,Xn);if(g>=0&&f<h)c=g,h=f;else{mc[0]=wi(e,r,n,v),mc[1]=wi(t,i,a,v);var m=vc(mc,Xn);v<=1&&m<h?(c=v,h=m):u*=.5}}return Lo(h)}function xW(e,t,r,i,n,a,o){for(var s=e,l=t,c=0,u=1/o,h=1;h<=o;h++){var d=h*u,f=wi(e,r,n,d),p=wi(t,i,a,d),g=f-s,v=p-l;c+=Math.sqrt(g*g+v*v),s=f,l=p}return c}var wW=/cubic-bezier\(([0-9,\.e ]+)\)/;function OE(e){var t=e&&wW.exec(e);if(t){var r=t[1].split(","),i=+Kn(r[0]),n=+Kn(r[1]),a=+Kn(r[2]),o=+Kn(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:kg(0,i,a,1,l,s)&&Rr(0,n,o,1,s[0])}}}var SW=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Mi,this.ondestroy=t.ondestroy||Mi,this.onrestart=t.onrestart||Mi,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ce(t)?t:Lh[t]||OE(t)},e})(),RE=(function(){function e(t){this.value=t}return e})(),CW=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new RE(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Ic=(function(){function e(t){this._list=new CW,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new RE(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),kT={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Do(e){return e=Math.round(e),e<0?0:e>255?255:e}function Y_(e){return e<0?0:e>1?1:e}function Ry(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Do(parseFloat(t)/100*255):Do(parseInt(t,10))}function Qs(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Y_(parseFloat(t)/100):Y_(parseFloat(t))}function Fy(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ad(e,t,r){return e+(t-e)*r}function Yi(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function j_(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var FE=new Ic(20),Md=null;function Bl(e,t){Md&&j_(Md,t),Md=FE.put(e,Md||t.slice())}function ra(e,t){if(e){t=t||[];var r=FE.get(e);if(r)return j_(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in kT)return j_(t,kT[i]),Bl(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Yi(t,0,0,0,1);return}return Yi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Bl(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Yi(t,0,0,0,1);return}return Yi(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Bl(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),c=i.substr(o+1,s-(o+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Yi(t,+c[0],+c[1],+c[2],1):Yi(t,0,0,0,1);u=Qs(c.pop());case"rgb":if(c.length>=3)return Yi(t,Ry(c[0]),Ry(c[1]),Ry(c[2]),c.length===3?u:Qs(c[3])),Bl(e,t),t;Yi(t,0,0,0,1);return;case"hsla":if(c.length!==4){Yi(t,0,0,0,1);return}return c[3]=Qs(c[3]),X_(c,t),Bl(e,t),t;case"hsl":if(c.length!==3){Yi(t,0,0,0,1);return}return X_(c,t),Bl(e,t),t;default:return}}Yi(t,0,0,0,1)}}function X_(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Qs(e[1]),n=Qs(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Yi(t,Do(Fy(o,a,r+1/3)*255),Do(Fy(o,a,r)*255),Do(Fy(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function TW(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,c;if(o===0)l=0,c=0;else{s<.5?c=o/(a+n):c=o/(2-a-n);var u=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-h:r===a?l=1/3+u-d:i===a&&(l=2/3+h-u),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,c,s];return e[3]!=null&&f.push(e[3]),f}}function AT(e,t){var r=ra(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Ff(r,r.length===4?"rgba":"rgb")}}function kW(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ra(t[n]),s=ra(t[a]),l=i-n,c=Ff([Do(Ad(o[0],s[0],l)),Do(Ad(o[1],s[1],l)),Do(Ad(o[2],s[2],l)),Y_(Ad(o[3],s[3],l))],"rgba");return r?{color:c,leftIndex:n,rightIndex:a,value:i}:c}}function Z_(e,t,r,i){var n=ra(e);if(e)return n=TW(n),r!=null&&(n[1]=Qs(ce(r)?r(n[1]):r)),i!=null&&(n[2]=Qs(ce(i)?i(n[2]):i)),Ff(X_(n),"rgba")}function Ff(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Lg(e,t){var r=ra(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var MT=new Ic(100);function LT(e){if(Ut(e)){var t=MT.get(e);return t||(t=AT(e,-.1),MT.put(e,t)),t}else if(rm(e)){var r=wt({},e);return r.colorStops=te(e.colorStops,function(i){return{offset:i.offset,color:AT(i.color,-.1)}}),r}return e}function AW(e){return e.type==="linear"}function MW(e){return e.type==="radial"}(function(){return he.hasGlobalWindow&&ce(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var K_=Array.prototype.slice;function Aa(e,t,r){return(t-e)*r+e}function $y(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Aa(t[a],r[a],i);return e}function LW(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Aa(t[o][s],r[o][s],i)}return e}function Ld(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function DT(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function DW(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function EW(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:K_.call(n[l]))}for(var c=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var u=0;u<c;u++)isNaN(i[l][u])&&(i[l][u]=n[l][u])}}function Rp(e){if(Li(e)){var t=e.length;if(Li(e[0])){for(var r=[],i=0;i<t;i++)r.push(K_.call(e[i]));return r}return K_.call(e)}return e}function Fp(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function IW(e){return Li(e&&e[0])?2:1}var Dd=0,$p=1,$E=2,Ju=3,Q_=4,J_=5,ET=6;function IT(e){return e===Q_||e===J_}function Ed(e){return e===$p||e===$E}var xu=[0,0,0,0],PW=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ET,l=r;if(Li(r)){var c=IW(r);s=c,(c===1&&!He(r[0])||c===2&&!He(r[0][0]))&&(o=!0)}else if(He(r)&&!ef(r))s=Dd;else if(Ut(r))if(!isNaN(+r))s=Dd;else{var u=ra(r);u&&(l=u,s=Ju)}else if(rm(r)){var h=wt({},l);h.colorStops=te(r.colorStops,function(f){return{offset:f.offset,color:ra(f.color)}}),AW(r)?s=Q_:MW(r)&&(s=J_),l=h}a===0?this.valType=s:(s!==this.valType||s===ET)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return i&&(d.easing=i,d.easingFunc=ce(i)?i:Lh[i]||OE(i)),n.push(d),d},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ed(n),c=IT(n),u=0;u<a;u++){var h=i[u],d=h.value,f=o.value;h.percent=h.time/t,s||(l&&u!==a-1?EW(d,f,n):c&&DW(d.colorStops,f.colorStops))}if(!s&&n!==J_&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var p=i[0].value,u=0;u<a;u++)n===Dd?i[u].additiveValue=i[u].value-p:n===Ju?i[u].additiveValue=Ld([],i[u].value,p,-1):Ed(n)&&(i[u].additiveValue=n===$p?Ld([],i[u].value,p,-1):DT([],i[u].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,c=a===Ju,u,h=this._lastFr,d=Math.min,f,p;if(s===1)f=p=o[0];else{if(r<0)u=0;else if(r<this._lastFrP){var g=d(h+1,s-1);for(u=g;u>=0&&!(o[u].percent<=r);u--);u=d(u,s-2)}else{for(u=h;u<s&&!(o[u].percent>r);u++);u=d(u-1,s-2)}p=o[u+1],f=o[u]}if(f&&p){this._lastFr=u,this._lastFrP=r;var v=p.percent-f.percent,m=v===0?1:d((r-f.percent)/v,1);p.easingFunc&&(m=p.easingFunc(m));var b=i?this._additiveValue:c?xu:t[l];if((Ed(a)||c)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?f.rawValue:p.rawValue;else if(Ed(a))a===$p?$y(b,f[n],p[n],m):LW(b,f[n],p[n],m);else if(IT(a)){var w=f[n],S=p[n],k=a===Q_;t[l]={type:k?"linear":"radial",x:Aa(w.x,S.x,m),y:Aa(w.y,S.y,m),colorStops:te(w.colorStops,function(T,I){var B=S.colorStops[I];return{offset:Aa(T.offset,B.offset,m),color:Fp($y([],T.color,B.color,m))}}),global:S.global},k?(t[l].x2=Aa(w.x2,S.x2,m),t[l].y2=Aa(w.y2,S.y2,m)):t[l].r=Aa(w.r,S.r,m)}else if(c)$y(b,f[n],p[n],m),i||(t[l]=Fp(b));else{var M=Aa(f[n],p[n],m);i?this._additiveValue=M:t[l]=M}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===Dd?t[i]=t[i]+n:r===Ju?(ra(t[i],xu),Ld(xu,xu,n,1),t[i]=Fp(xu)):r===$p?Ld(t[i],t[i],n,1):r===$E&&DT(t[i],t[i],n,1)},e})(),P1=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){A1("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,er(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new PW(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var h=u.keyframes,d=h[h.length-1];c=d&&d.value,u.valType===Ju&&c&&(c=Fp(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Rp(c),n),this._trackKeys.push(s)}l.addKeyframe(t,Rp(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),c=s.keyframes,u=c.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=c[u-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new SW({life:n,loop:this._loop,delay:this._delay||0,onframe:function(f){r._started=2;var p=r._additiveAnimators;if(p){for(var g=!1,v=0;v<p.length;v++)if(p[v]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(r._target,f);var m=r._onframeCbs;if(m)for(var v=0;v<m.length;v++)m[v](r._target,f)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return te(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=Rp(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||er(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function oc(){return new Date().getTime()}var BW=(function(e){kt(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=oc()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Cg(i),!r._paused&&r.update())}Cg(i)},t.prototype.start=function(){this._running||(this._time=oc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=oc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=oc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new P1(r,i.loop);return this.addAnimator(n),n},t})(fa),OW=300,Ny=he.domSupported,zy=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=te(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),PT={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},BT=!1;function tb(e){var t=e.pointerType;return t==="pen"||t==="touch"}function RW(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Hy(e){e&&(e.zrByTouch=!0)}function FW(e,t){return ji(e.dom,new $W(e,t),!0)}function NE(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var $W=(function(){function e(t,r){this.stopPropagation=Mi,this.stopImmediatePropagation=Mi,this.preventDefault=Mi,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),mn={mousedown:function(e){e=ji(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ji(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ji(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ji(this.dom,e);var t=e.toElement||e.relatedTarget;NE(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){BT=!0,e=ji(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){BT||(e=ji(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ji(this.dom,e),Hy(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),mn.mousemove.call(this,e),mn.mousedown.call(this,e)},touchmove:function(e){e=ji(this.dom,e),Hy(e),this.handler.processGesture(e,"change"),mn.mousemove.call(this,e)},touchend:function(e){e=ji(this.dom,e),Hy(e),this.handler.processGesture(e,"end"),mn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<OW&&mn.click.call(this,e)},pointerdown:function(e){mn.mousedown.call(this,e)},pointermove:function(e){tb(e)||mn.mousemove.call(this,e)},pointerup:function(e){mn.mouseup.call(this,e)},pointerout:function(e){tb(e)||mn.mouseout.call(this,e)}};Y(["click","dblclick","contextmenu"],function(e){mn[e]=function(t){t=ji(this.dom,t),this.trigger(e,t)}});var eb={pointermove:function(e){tb(e)||eb.mousemove.call(this,e)},pointerup:function(e){eb.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function NW(e,t){var r=t.domHandlers;he.pointerEventsSupported?Y(zy.pointer,function(i){Np(t,i,function(n){r[i].call(e,n)})}):(he.touchEventsSupported&&Y(zy.touch,function(i){Np(t,i,function(n){r[i].call(e,n),RW(t)})}),Y(zy.mouse,function(i){Np(t,i,function(n){n=D1(n),t.touching||r[i].call(e,n)})}))}function zW(e,t){he.pointerEventsSupported?Y(PT.pointer,r):he.touchEventsSupported||Y(PT.mouse,r);function r(i){function n(a){a=D1(a),NE(e,a.target)||(a=FW(e,a),t.domHandlers[i].call(e,a))}Np(t,i,n,{capture:!0})}}function Np(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,tW(e.domTarget,t,r,i)}function Wy(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&eW(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var OT=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),HW=(function(e){kt(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new OT(r,mn),Ny&&(n._globalHandlerScope=new OT(document,eb)),NW(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Wy(this._localHandlerScope),Ny&&Wy(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ny&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?zW(this,i):Wy(i)}},t})(fa),zE=1;he.hasGlobalWindow&&(zE=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Dg=zE,rb=.4,ib="#333",nb="#ccc",WW="#eee",RT=E1,FT=5e-5;function fs(e){return e>FT||e<-FT}var ds=[],Ol=[],Gy=Ra(),qy=Math.abs,B1=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return fs(this.rotation)||fs(this.x)||fs(this.y)||fs(this.scaleX-1)||fs(this.scaleY-1)||fs(this.skewX)||fs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(RT(i),this.invTransform=null);return}i=i||Ra(),r?this.getLocalTransform(i):RT(i),t&&(r?Ah(i,t,i):TE(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ds);var i=ds[0]<0?-1:1,n=ds[1]<0?-1:1,a=((ds[0]-i)*r+i)/ds[0]||0,o=((ds[1]-n)*r+n)/ds[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ra(),Rf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ra(),Ah(Ol,t.invTransform,r),r=Ol);var i=this.originX,n=this.originY;(i||n)&&(Gy[4]=i,Gy[5]=n,Ah(Ol,r,Gy),Ol[4]-=i,Ol[5]-=n,r=Ol),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&nn(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&nn(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&qy(t[0]-1)>1e-10&&qy(t[3]-1)>1e-10?Math.sqrt(qy(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ab(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var p=i+s,g=n+l;r[4]=-p*a-d*g*o,r[5]=-g*o-f*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=f*a,r[2]=d*o,c&&I1(r,r,c),r[4]+=i+u,r[5]+=n+h,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),rf=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ab(e,t){for(var r=0;r<rf.length;r++){var i=rf[r];e[i]=t[i]}}function ia(e){Id||(Id=new Ic(100)),e=e||Ro;var t=Id.get(e);return t||(t={font:e,strWidthCache:new Ic(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ga.measureText("国",e).width,asciiCharWidth:Ga.measureText("a",e).width},Id.put(e,t)),t}var Id;function GW(e){if(!(Vy>=$T)){e=e||Ro;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=Ga.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?Vy=$T:n>2&&Vy++,t}}var Vy=0,$T=5;function HE(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=GW(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function na(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=Ga.measureText(t,e.font).width,r.put(t,i)),i}function NT(e,t,r,i){var n=na(ia(t),e),a=nm(t),o=Pc(0,n,r),s=Js(0,a,i),l=new ge(o,s,n,a);return l}function WE(e,t,r,i){var n=((e||"")+"").split(`
|
|
3
|
+
`),a=n.length;if(a===1)return NT(n[0],t,r,i);for(var o=new ge(0,0,0,0),s=0;s<n.length;s++){var l=NT(n[s],t,r,i);s===0?o.copy(l):o.union(l)}return o}function Pc(e,t,r,i){return r==="right"?i?e+=t:e-=t:r==="center"&&(i?e+=t/2:e-=t/2),e}function Js(e,t,r,i){return r==="middle"?i?e+=t/2:e-=t/2:r==="bottom"&&(i?e+=t:e-=t),e}function nm(e){return ia(e).stWideCharWidth}function $o(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Eg(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,c=r.y,u="left",h="top";if(i instanceof Array)l+=$o(i[0],r.width),c+=$o(i[1],r.height),u=null,h=null;else switch(i){case"left":l-=n,c+=s,u="right",h="middle";break;case"right":l+=n+o,c+=s,h="middle";break;case"top":l+=o/2,c-=n,u="center",h="bottom";break;case"bottom":l+=o/2,c+=a+n,u="center";break;case"inside":l+=o/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=n,c+=s,h="middle";break;case"insideRight":l+=o-n,c+=s,u="right",h="middle";break;case"insideTop":l+=o/2,c+=n,u="center";break;case"insideBottom":l+=o/2,c+=a-n,u="center",h="bottom";break;case"insideTopLeft":l+=n,c+=n;break;case"insideTopRight":l+=o-n,c+=n,u="right";break;case"insideBottomLeft":l+=n,c+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,c+=a-n,u="right",h="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=h,e}var Uy="__zr_normal__",Yy=rf.concat(["ignore"]),qW=Fo(rf,function(e,t){return e[t]=!0,e},{ignore:!1}),Rl={},VW=new ge(0,0,0,0),Pd=[],am=(function(){function e(t){this.id=_E(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var c=!1;a.copyTransform(r);var u=i.position!=null,h=i.autoOverflowArea,d=void 0;if((h||u)&&(d=VW,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(Rl,i,d):Eg(Rl,i,d),a.x=Rl.x,a.y=Rl.y,o=Rl.align,s=Rl.verticalAlign;var f=i.origin;if(f&&i.rotation!=null){var p=void 0,g=void 0;f==="center"?(p=d.width*.5,g=d.height*.5):(p=$o(f[0],d.width),g=$o(f[1],d.height)),c=!0,a.originX=-a.x+p+(n?0:d.x),a.originY=-a.y+g+(n?0:d.y)}}i.rotation!=null&&(a.rotation=i.rotation);var v=i.offset;v&&(a.x+=v[0],a.y+=v[1],c||(a.originX=-v[0],a.originY=-v[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var b=m.overflowRect=m.overflowRect||new ge(0,0,0,0);a.getLocalTransform(Pd),Rf(Pd,Pd),ge.copy(b,d),b.applyTransform(Pd)}else m.overflowRect=null;var w=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,k=void 0,M=void 0;w&&this.canBeInsideText()?(S=i.insideFill,k=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(k==null||k==="auto")&&(k=this.getInsideTextStroke(S),M=!0)):(S=i.outsideFill,k=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(k==null||k==="auto")&&(k=this.getOutsideStroke(S),M=!0)),S=S||"#000",(S!==m.fill||k!==m.stroke||M!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=k,m.autoStroke=M,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Ri,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?nb:ib},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&ra(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Ff(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},wt(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Qt(t))for(var i=t,n=er(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Uy)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Yy)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Uy,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Uy,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(De(s,t)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!a&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!a){A1("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,r,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(t,r,i,u),d&&d.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ri),c}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var c=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&n.push(u)}var h=n[o-1],d=!!(h&&h.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,r,d),v&&v.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ri)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=De(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=De(n,t),o=De(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];wt(r,a),a.textConfig&&(i=i||{},wt(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=wt({},n?this.textConfig:i.textConfig),wt(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},c=!1,u=0;u<Yy.length;u++){var h=Yy[u],d=a&&qW[h];r&&r[h]!=null?d?(c=!0,l[h]=r[h]):this[h]=r[h]:s&&i[h]!=null&&(d?(c=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var u=0;u<this.animators.length;u++){var f=this.animators[u],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(r||i)[p]:r||i)}c&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new B1,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),wt(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ri;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new P1(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=De(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){jy(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){jy(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=jy(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ri;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[a]},set:function(u){l[a]=u}}),Object.defineProperty(c,1,{get:function(){return l[o]},set:function(u){l[o]=u}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();ha(am,fa);ha(am,B1);function jy(e,t,r,i,n){r=r||{};var a=[];GE(e,"",e,t,r,i,a,n);var o=a.length,s=!1,l=r.done,c=r.aborted,u=function(){s=!0,o--,o<=0&&(s?l&&l():c&&c())},h=function(){o--,o<=0&&(s?l&&l():c&&c())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(p,g){r.during(g)});for(var d=0;d<a.length;d++){var f=a[d];u&&f.done(u),h&&f.aborted(h),r.force&&f.duration(r.duration),f.start(r.easing)}return a}function Xy(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function UW(e){return Li(e[0])}function YW(e,t,r){if(Li(t[r]))if(Li(e[r])||(e[r]=[]),Di(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Xy(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(UW(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Xy(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Xy(a,n,o);a.length=n.length}else e[r]=t[r]}function jW(e,t){return e===t||Li(e)&&Li(t)&&XW(e,t)}function XW(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function GE(e,t,r,i,n,a,o,s){for(var l=er(i),c=n.duration,u=n.delay,h=n.additive,d=n.setToFinal,f=!Qt(a),p=e.animators,g=[],v=0;v<l.length;v++){var m=l[v],b=i[m];if(b!=null&&r[m]!=null&&(f||a[m]))if(Qt(b)&&!Li(b)&&!rm(b)){if(t){s||(r[m]=b,e.updateDuringAnimation(t));continue}GE(e,m,r[m],b,n,a&&a[m],o,s)}else g.push(m);else s||(r[m]=b,e.updateDuringAnimation(t),g.push(m))}var w=g.length;if(!h&&w)for(var S=0;S<p.length;S++){var k=p[S];if(k.targetName===t){var M=k.stopTracks(g);if(M){var T=De(p,k);p.splice(T,1)}}}if(n.force||(g=Dr(g,function(D){return!jW(i[D],r[D])}),w=g.length),w>0||n.force&&!o.length){var I=void 0,B=void 0,R=void 0;if(s){B={},d&&(I={});for(var S=0;S<w;S++){var m=g[S];B[m]=r[m],d?I[m]=i[m]:r[m]=i[m]}}else if(d){R={};for(var S=0;S<w;S++){var m=g[S];R[m]=Rp(r[m]),YW(r,i,m)}}var k=new P1(r,!1,!1,h?Dr(p,function($){return $.targetName===t}):null);k.targetName=t,n.scope&&(k.scope=n.scope),d&&I&&k.whenWithKeys(0,I,g),R&&k.whenWithKeys(0,R,g),k.whenWithKeys(c??500,s?B:i,g).delay(u||0),e.addAnimator(k,t),o.push(k)}}var Cr=(function(e){kt(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=De(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=De(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new ge(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(a);u?(ge.applyTransform(i,c,u),o=o||i.clone(),o.union(i)):(o=o||c.clone(),o.union(c))}}return o||i},t})(am);Cr.prototype.type="group";var zp={},qE={};function ZW(e){delete qE[e]}function KW(e){if(!e)return!1;if(typeof e=="string")return Lg(e,1)<rb;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=Lg(t[n].color,1);return r/=i,r<rb}return!1}var QW=(function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new vW,o=i.renderer||"canvas";zp[o]||(o=er(zp)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new zp[o](r,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var c=!he.node&&!he.worker&&!l?new HW(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,h=u==null||u==="auto"?he.touchEventsSupported:!!u,d=44,f;h&&(f=ne(i.pointerSize,d)),this.handler=new ME(a,s,c,s.root,f),this.animation=new BW({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=KW(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=oc();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=oc();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Cr&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ZW(this.id))},e})();function zT(e,t){var r=new QW(_E(),e,t);return qE[r.id]=r,r}function JW(e,t){zp[e]=t}var HT=1e-4,VE=20;function t9(e){return e.replace(/^\s+|\s+$/g,"")}var nf=Math.min,$i=Math.max,Qn=Math.abs;function ob(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],l=a-n,c=s-o;if(l===0)return c===0?o:(o+s)/2;if(i)if(l>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/l*c+o}var tr=e9;function e9(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return sb(e,t,r)}function sb(e,t,r){return Ut(e)?t9(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function $r(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),VE),e=(+e).toFixed(t),r?e:+e}function Pa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return r9(e)}function r9(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function i9(e,t){var r=Math.log,i=Math.LN10,n=Math.floor(r(e[1]-e[0])/i),a=Math.round(r(Qn(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function n9(e,t){var r=Fo(e,function(f,p){return f+(isNaN(p)?0:p)},0);if(r===0)return[];for(var i=Math.pow(10,t),n=te(e,function(f){return(isNaN(f)?0:f)/r*i*100}),a=i*100,o=te(n,function(f){return Math.floor(f)}),s=Fo(o,function(f,p){return f+p},0),l=te(n,function(f,p){return f-o[p]});s<a;){for(var c=Number.NEGATIVE_INFINITY,u=null,h=0,d=l.length;h<d;++h)l[h]>c&&(c=l[h],u=h);++o[u],l[u]=0,++s}return te(o,function(f){return f/i})}function a9(e,t){var r=Math.max(Pa(e),Pa(t)),i=e+t;return r>VE?i:$r(i,r)}function UE(e){var t=Math.PI*2;return(e%t+t)%t}function Ig(e){return e>-HT&&e<HT}var o9=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Xc(e){if(e instanceof Date)return e;if(Ut(e)){var t=o9.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function s9(e){return Math.pow(10,O1(e))}function O1(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function YE(e,t){var r=O1(e),i=Math.pow(10,r),n=e/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,e=a*i,r>=-20?+e.toFixed(r<0?-r:0):e}function Pg(e){var t=parseFloat(e);return t==e&&(t!==0||!Ut(e)||e.indexOf("x")<=0)?t:NaN}function l9(e){return!isNaN(Pg(e))}function jE(){return Math.round(Math.random()*9)}function XE(e,t){return t===0?e:XE(t,e%t)}function WT(e,t){return e==null?t:t==null?e:e*t/XE(e,t)}var c9="[ECharts] ",u9=typeof console<"u"&&console.warn&&console.log;function h9(e,t,r){u9&&console[e](c9+t)}function ZE(e,t){h9("error",e)}function Si(e){throw new Error(e)}function GT(e,t,r){return(t-e)*r+e}var KE="series\0",f9="\0_ec_\0";function gi(e){return e instanceof Array?e:e==null?[]:[e]}function lb(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var qT=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function $f(e){return Qt(e)&&!It(e)&&!(e instanceof Date)?e.value:e}function d9(e){return Qt(e)&&!(e instanceof Array)}function p9(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=me();Y(t,function(l,c){if(!Qt(l)){t[c]=null;return}});var s=g9(e,o,r);return(i||n)&&v9(s,e,o,t),i&&m9(s,t),i||n?y9(s,t,n):a&&_9(s,t),b9(s),s}function g9(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||af(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function v9(e,t,r,i){Y(i,function(n,a){if(!(!n||n.id==null)){var o=Dh(n.id),s=r.get(o);if(s!=null){var l=e[s];qa(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function m9(e,t){Y(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!af(r)&&!af(a)&&QE("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function y9(e,t,r){Y(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||af(n.existing)||n.existing&&i.id!=null&&!QE("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function _9(e,t){Y(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function b9(e){var t=me();Y(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),Y(e,function(r){var i=r.newOption;qa(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),Y(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(Qt(a)){if(o.name=a.name!=null?Dh(a.name):n?n.name:KE+i,n)o.id=Dh(n.id);else if(a.id!=null)o.id=Dh(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function QE(e,t,r){var i=aa(t[e],null),n=aa(r[e],null);return i!=null&&n!=null&&i===n}function Dh(e){return aa(e,"")}function aa(e,t){return e==null?t:Ut(e)?e:He(e)||F_(e)?e+"":t}function R1(e){var t=e.name;return!!(t&&t.indexOf(KE))}function af(e){return e&&e.id!=null&&Dh(e.id).indexOf(f9)===0}function x9(e,t,r){Y(e,function(i){var n=i.newOption;Qt(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=w9(t,n,i.existing,r))})}function w9(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function ll(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return It(t.dataIndex)?te(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return It(t.name)?te(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function rr(){var e="__ec_inner_"+S9++;return function(t){return t[e]||(t[e]={})}}var S9=jE();function Zy(e,t,r){var i=F1(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(c,u){var h=Nf(e,u,c,{useDefault:l===u,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[u+"Models"]=h.models,s[u+"Model"]=h.models[0]}),s}function F1(e,t){var r;if(Ut(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=me(),a={},o=!1;return Y(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],h=(c[2]||"").toLowerCase();if(!(!u||!h||t&&t.includeMainTypes&&De(t.includeMainTypes,u)<0)){o=o||!!u;var d=n.get(u)||n.set(u,{});d[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var en={useDefault:!0,enableAll:!1,enableNone:!1};function Nf(e,t,r,i){i=i||en;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function JE(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function C9(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function T9(e){return e==="auto"?he.domSupported?"html":"richText":e||"html"}function k9(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(He(i)){var o=GT(r||0,i,n);return $r(o,a?Math.max(Pa(r||0),Pa(i)):t)}else{if(Ut(i))return n<1?r:i;for(var s=[],l=r,c=i,u=Math.max(l?l.length:0,c.length),h=0;h<u;++h){var d=e.getDimensionInfo(h);if(d&&d.type==="ordinal")s[h]=(n<1&&l?l:c)[h];else{var f=l&&l[h]?l[h]:0,p=c[h],o=GT(f,p,n);s[h]=$r(o,a?Math.max(Pa(f),Pa(p)):t)}}return s}}var A9=".",ps="___EC__COMPONENT__CONTAINER___",tI="___EC__EXTENDED_CLASS___";function Jn(e){var t={main:"",sub:""};if(e){var r=e.split(A9);t.main=r[0]||"",t.sub=r[1]||""}return t}function M9(e){qa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function L9(e){return!!(e&&e[tI])}function $1(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return D9(i)?n=(function(a){kt(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},MH(n,this)),wt(n.prototype,r),n[tI]=!0,n.extend=this.extend,n.superCall=P9,n.superApply=B9,n.superClass=i,n}}function D9(e){return ce(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function eI(e,t){e.extend=t.extend}var E9=Math.round(Math.random()*10);function I9(e){var t=["__\0is_clz",E9++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function P9(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function B9(e,t,r){return this.superClass.prototype[t].apply(e,r)}function om(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){M9(n),i.prototype.type=n;var a=Jn(n);if(!a.sub)t[a.main]=i;else if(a.sub!==ps){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[ps]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},e.getClassesByMainType=function(i){var n=Jn(i),a=[],o=t[n.main];return o&&o[ps]?Y(o,function(s,l){l!==ps&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=Jn(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return Y(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=Jn(i),a=t[n.main];return a&&a[ps]};function r(i){var n=t[i.main];return(!n||!n[ps])&&(n=t[i.main]={},n[ps]=!0),n}}function of(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(n&&De(n,l)>=0||a&&De(a,l)<0)){var c=i.getShallow(l,t);c!=null&&(o[e[s][0]]=c)}}return o}}var O9=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],R9=of(O9),F9=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return R9(this,t,r)},e})(),cb=new Ic(50);function $9(e){if(typeof e=="string"){var t=cb.get(e);return t&&t.image}else return e}function rI(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=cb.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!sm(t)&&a.pending.push(o)):(t=Ga.loadImage(e,VT,VT),t.__zrImageSrc=e,cb.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function VT(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function sm(e){return e&&e.width&&e.height}var Ky=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function N9(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
4
|
+
`);a=iI(r,i,n,a);for(var s=!1,l={},c=0,u=o.length;c<u;c++)nI(l,o[c],a),o[c]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
5
|
+
`),e.isTruncated=s}function iI(e,t,r,i){i=i||{};var n=wt({},i);r=ne(r,"..."),n.maxIterations=ne(i.maxIterations,2);var a=n.minChar=ne(i.minChar,0),o=n.fontMeasureInfo=ia(t),s=o.asciiCharWidth;n.placeholder=ne(i.placeholder,"");for(var l=e=Math.max(0,e-1),c=0;c<a&&l>=s;c++)l-=s;var u=na(o,r);return u>l&&(r="",u=0),l=e-u,n.ellipsis=r,n.ellipsisWidth=u,n.contentWidth=l,n.containerWidth=e,n}function nI(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var o=na(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?z9(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=na(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function z9(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=HE(r,e.charCodeAt(n));return n}function H9(e,t,r,i){var n=N1(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,c=t.font,u=a==="truncate",h=nm(c),d=ne(t.lineHeight,h),f=t.lineOverflow==="truncate",p=!1,g=t.width;g==null&&r!=null&&(g=r-s);var v=t.height;v==null&&i!=null&&(v=i-l);var m;g!=null&&(a==="break"||a==="breakAll")?m=n?aI(n,t.font,g,a==="breakAll",0).lines:[]:m=n?n.split(`
|
|
6
|
+
`):[];var b=m.length*d;if(v==null&&(v=b),b>v&&f){var w=Math.floor(v/d);p=p||m.length>w,m=m.slice(0,w),b=m.length*d}if(n&&u&&g!=null)for(var S=iI(g,c,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),k={},M=0;M<m.length;M++)nI(k,m[M],S),m[M]=k.textLine,p=p||k.isTruncated;for(var T=v,I=0,B=ia(c),M=0;M<m.length;M++)I=Math.max(na(B,m[M]),I);g==null&&(g=I);var R=g;return T+=l,R+=s,{lines:m,height:v,outerWidth:R,outerHeight:T,lineHeight:d,calculatedLineHeight:h,contentWidth:I,contentHeight:b,width:g,isTruncated:p}}var W9=(function(){function e(){}return e})(),UT=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),G9=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function q9(e,t,r,i,n){var a=new G9,o=N1(e);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,c=s?s[0]+s[2]:0,u=t.width;u==null&&r!=null&&(u=r-l);var h=t.height;h==null&&i!=null&&(h=i-c);for(var d=t.overflow,f=(d==="break"||d==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:d==="breakAll"}:null,p=Ky.lastIndex=0,g;(g=Ky.exec(o))!=null;){var v=g.index;v>p&&Qy(a,o.substring(p,v),t,f),Qy(a,g[2],t,f,g[1]),p=Ky.lastIndex}p<o.length&&Qy(a,o.substring(p,o.length),t,f);var m=[],b=0,w=0,S=d==="truncate",k=t.lineOverflow==="truncate",M={};function T(Zt,ae,de){Zt.width=ae,Zt.lineHeight=de,b+=de,w=Math.max(w,ae)}t:for(var I=0;I<a.lines.length;I++){for(var B=a.lines[I],R=0,D=0,$=0;$<B.tokens.length;$++){var O=B.tokens[$],F=O.styleName&&t.rich[O.styleName]||{},z=O.textPadding=F.padding,H=z?z[1]+z[3]:0,U=O.font=F.font||t.font;O.contentHeight=nm(U);var q=ne(F.height,O.contentHeight);if(O.innerHeight=q,z&&(q+=z[0]+z[2]),O.height=q,O.lineHeight=Ks(F.lineHeight,t.lineHeight,q),O.align=F&&F.align||n,O.verticalAlign=F&&F.verticalAlign||"middle",k&&h!=null&&b+O.lineHeight>h){var K=a.lines.length;$>0?(B.tokens=B.tokens.slice(0,$),T(B,D,R),a.lines=a.lines.slice(0,I+1)):a.lines=a.lines.slice(0,I),a.isTruncated=a.isTruncated||a.lines.length<K;break t}var et=F.width,Q=et==null||et==="auto";if(typeof et=="string"&&et.charAt(et.length-1)==="%")O.percentWidth=et,m.push(O),O.contentWidth=na(ia(U),O.text);else{if(Q){var it=F.backgroundColor,at=it&&it.image;at&&(at=$9(at),sm(at)&&(O.width=Math.max(O.width,at.width*q/at.height)))}var Ct=S&&u!=null?u-D:null;Ct!=null&&Ct<O.width?!Q||Ct<H?(O.text="",O.width=O.contentWidth=0):(N9(M,O.text,Ct-H,U,t.ellipsis,{minChar:t.truncateMinChar}),O.text=M.text,a.isTruncated=a.isTruncated||M.isTruncated,O.width=O.contentWidth=na(ia(U),O.text)):O.contentWidth=na(ia(U),O.text)}O.width+=H,D+=O.width,F&&(R=Math.max(R,O.lineHeight))}T(B,D,R)}a.outerWidth=a.width=ne(u,w),a.outerHeight=a.height=ne(h,b),a.contentHeight=b,a.contentWidth=w,a.outerWidth+=l,a.outerHeight+=c;for(var I=0;I<m.length;I++){var O=m[I],xt=O.percentWidth;O.width=parseInt(xt,10)/100*a.width}return a}function Qy(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,l=o.font||r.font,c=!1,u,h;if(i){var d=o.padding,f=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=$o(o.width,i.width)+f;s.length>0&&p+i.accumWidth>i.width&&(u=t.split(`
|
|
7
|
+
`),c=!0),i.accumWidth=p}else{var g=aI(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,h=g.linesWidths,u=g.lines}}u||(u=t.split(`
|
|
8
|
+
`));for(var v=ia(l),m=0;m<u.length;m++){var b=u[m],w=new W9;if(w.styleName=n,w.text=b,w.isLineHolder=!b&&!a,typeof o.width=="number"?w.width=o.width:w.width=h?h[m]:na(v,b),!m&&!c){var S=(s[s.length-1]||(s[0]=new UT)).tokens,k=S.length;k===1&&S[0].isLineHolder?S[0]=w:(b||!k||a)&&S.push(w)}else s.push(new UT([w]))}}function V9(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var U9=Fo(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Y9(e){return V9(e)?!!U9[e]:!0}function aI(e,t,r,i,n){for(var a=[],o=[],s="",l="",c=0,u=0,h=ia(t),d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
|
|
9
|
+
`){l&&(s+=l,u+=c),a.push(s),o.push(u),s="",l="",c=0,u=0;continue}var p=HE(h,f.charCodeAt(0)),g=i?!1:!Y9(f);if(a.length?u+p>r:n+u+p>r){u?(s||l)&&(g?(s||(s=l,l="",c=0,u=c),a.push(s),o.push(u-c),l+=f,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),a.push(s),o.push(u),s=f,u=p)):g?(a.push(l),o.push(c),l=f,c=p):(a.push(f),o.push(p));continue}u+=p,g?(l+=f,c+=p):(l&&(s+=l,l="",c=0),s+=f)}return l&&(s+=l),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}function YT(e,t,r,i,n,a){if(e.baseX=r,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;ge.set(jT,Pc(r,o,n),Js(i,s,a),o,s),ge.intersect(t,jT,null,XT);var l=XT.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Pc(l.x,l.width,n,!0),e.baseY=Js(l.y,l.height,a,!0)}}var jT=new ge(0,0,0,0),XT={outIntersectRect:{},clamp:!0};function N1(e){return e!=null?e+="":e=""}function j9(e){var t=N1(e.text),r=e.font,i=na(ia(r),t),n=nm(r);return ub(e,i,n,null)}function ub(e,t,r,i){var n=new ge(Pc(e.x||0,t,e.textAlign),Js(e.y||0,r,e.textBaseline),t,r),a=i??(oI(e)?e.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function oI(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var hb="__zr_style_"+Math.round(Math.random()*10),tl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},lm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};tl[hb]=!0;var ZT=["z","z2","invisible"],X9=["invisible"],zf=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=er(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Z9(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ge(0,0,0,0)),i?ge.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var c=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-c),r.y=Math.floor(r.y-c),r.width=Math.ceil(r.width+1+c*2),r.height=Math.ceil(r.height+1+c*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ge(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:wt(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Qu,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qu)},t.prototype.styleUpdated=function(){this.__dirty&=~Qu},t.prototype.createStyle=function(r){return im(tl,r)},t.prototype.useStyle=function(r){r[hb]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[hb]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,ZT)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),c;if(i&&i.style?o?a?c=i.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,i.style)):l&&(c=n.style),c)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=er(u),d=0;d<h.length;d++){var f=h[d];f in c&&(c[f]=c[f],this.style[f]=u[f])}for(var p=er(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var g=this.__inHover?X9:ZT,d=0;d<g.length;d++){var f=g[d];i&&i[f]!=null?this[f]=i[f]:l&&n[f]!=null&&(this[f]=n[f])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return wt(r,i),r},t.prototype.getAnimationStyleProps=function(){return lm},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ri|Qu})(),t})(am),Jy=new ge(0,0,0,0),t0=new ge(0,0,0,0);function Z9(e,t,r){return Jy.copy(e.getBoundingRect()),e.transform&&Jy.applyTransform(e.transform),t0.width=t,t0.height=r,!Jy.intersect(t0)}var Qi=Math.min,Ji=Math.max,e0=Math.sin,r0=Math.cos,gs=Math.PI*2,Bd=jc(),Od=jc(),Rd=jc();function KT(e,t,r,i,n,a){n[0]=Qi(e,r),n[1]=Qi(t,i),a[0]=Ji(e,r),a[1]=Ji(t,i)}var QT=[],JT=[];function K9(e,t,r,i,n,a,o,s,l,c){var u=PE,h=Rr,d=u(e,r,n,o,QT);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var f=0;f<d;f++){var p=h(e,r,n,o,QT[f]);l[0]=Qi(p,l[0]),c[0]=Ji(p,c[0])}d=u(t,i,a,s,JT);for(var f=0;f<d;f++){var g=h(t,i,a,s,JT[f]);l[1]=Qi(g,l[1]),c[1]=Ji(g,c[1])}l[0]=Qi(e,l[0]),c[0]=Ji(e,c[0]),l[0]=Qi(o,l[0]),c[0]=Ji(o,c[0]),l[1]=Qi(t,l[1]),c[1]=Ji(t,c[1]),l[1]=Qi(s,l[1]),c[1]=Ji(s,c[1])}function Q9(e,t,r,i,n,a,o,s){var l=BE,c=wi,u=Ji(Qi(l(e,r,n),1),0),h=Ji(Qi(l(t,i,a),1),0),d=c(e,r,n,u),f=c(t,i,a,h);o[0]=Qi(e,n,d),o[1]=Qi(t,a,f),s[0]=Ji(e,n,d),s[1]=Ji(t,a,f)}function J9(e,t,r,i,n,a,o,s,l){var c=ic,u=nc,h=Math.abs(n-a);if(h%gs<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-i,l[0]=e+r,l[1]=t+i;return}if(Bd[0]=r0(n)*r+e,Bd[1]=e0(n)*i+t,Od[0]=r0(a)*r+e,Od[1]=e0(a)*i+t,c(s,Bd,Od),u(l,Bd,Od),n=n%gs,n<0&&(n=n+gs),a=a%gs,a<0&&(a=a+gs),n>a&&!o?a+=gs:n<a&&o&&(n+=gs),o){var d=a;a=n,n=d}for(var f=0;f<a;f+=Math.PI/2)f>n&&(Rd[0]=r0(f)*r+e,Rd[1]=e0(f)*i+t,c(s,Rd,s),u(l,Rd,l))}var Ie={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},vs=[],ms=[],Rn=[],io=[],Fn=[],$n=[],i0=Math.min,n0=Math.max,ys=Math.cos,_s=Math.sin,ya=Math.abs,fb=Math.PI,po=fb*2,a0=typeof Float32Array<"u",wu=[];function o0(e){var t=Math.round(e/fb*1e8)/1e8;return t%2*fb}function sI(e,t){var r=o0(e[0]);r<0&&(r+=po);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=po?n=r+po:t&&r-n>=po?n=r-po:!t&&r>n?n=r+(po-o0(r-n)):t&&r<n&&(n=r-(po-o0(n-r))),e[0]=r,e[1]=n}var cl=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=ya(i/Dg/t)||0,this._uy=ya(i/Dg/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Ie.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=ya(t-this._xi),n=ya(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ie.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ie.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(Ie.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),wu[0]=n,wu[1]=a,sI(wu,o),n=wu[0],a=wu[1];var s=a-n;return this.addData(Ie.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=ys(a)*i+t,this._yi=_s(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(Ie.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ie.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&a0&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();var o=this.data;if(a0&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},e.prototype.addData=function(t,r,i,n,a,o,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,a0&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=Fn[0]=Fn[1]=Number.MAX_VALUE,io[0]=io[1]=$n[0]=$n[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],i=t[o+1],n=r,a=i),s){case Ie.M:r=n=t[o++],i=a=t[o++],Fn[0]=n,Fn[1]=a,$n[0]=n,$n[1]=a;break;case Ie.L:KT(r,i,t[o],t[o+1],Fn,$n),r=t[o++],i=t[o++];break;case Ie.C:K9(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Fn,$n),r=t[o++],i=t[o++];break;case Ie.Q:Q9(r,i,t[o++],t[o++],t[o],t[o+1],Fn,$n),r=t[o++],i=t[o++];break;case Ie.A:var c=t[o++],u=t[o++],h=t[o++],d=t[o++],f=t[o++],p=t[o++]+f;o+=1;var g=!t[o++];l&&(n=ys(f)*h+c,a=_s(f)*d+u),J9(c,u,h,d,f,p,g,Fn,$n),r=ys(p)*h+c,i=_s(p)*d+u;break;case Ie.R:n=r=t[o++],a=i=t[o++];var v=t[o++],m=t[o++];KT(n,a,n+v,a+m,Fn,$n);break;case Ie.Z:r=n,i=a;break}ic(Rn,Rn,Fn),nc(io,io,$n)}return o===0&&(Rn[0]=Rn[1]=io[0]=io[1]=0),new ge(Rn[0],Rn[1],io[0]-Rn[0],io[1]-Rn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,h=0,d=0;d<r;){var f=t[d++],p=d===1;p&&(a=t[d],o=t[d+1],s=a,l=o);var g=-1;switch(f){case Ie.M:a=s=t[d++],o=l=t[d++];break;case Ie.L:{var v=t[d++],m=t[d++],b=v-a,w=m-o;(ya(b)>i||ya(w)>n||d===r-1)&&(g=Math.sqrt(b*b+w*w),a=v,o=m);break}case Ie.C:{var S=t[d++],k=t[d++],v=t[d++],m=t[d++],M=t[d++],T=t[d++];g=yW(a,o,S,k,v,m,M,T,10),a=M,o=T;break}case Ie.Q:{var S=t[d++],k=t[d++],v=t[d++],m=t[d++];g=xW(a,o,S,k,v,m,10),a=v,o=m;break}case Ie.A:var I=t[d++],B=t[d++],R=t[d++],D=t[d++],$=t[d++],O=t[d++],F=O+$;d+=1,p&&(s=ys($)*R+I,l=_s($)*D+B),g=n0(R,D)*i0(po,Math.abs(O)),a=ys(F)*R+I,o=_s(F)*D+B;break;case Ie.R:{s=a=t[d++],l=o=t[d++];var z=t[d++],H=t[d++];g=z*2+H*2;break}case Ie.Z:{var b=s-a,w=l-o;g=Math.sqrt(b*b+w*w),a=s,o=l;break}}g>=0&&(c[h++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,c,u,h,d,f=r<1,p,g,v=0,m=0,b,w=0,S,k;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=r*g,!b)))t:for(var M=0;M<o;){var T=i[M++],I=M===1;switch(I&&(c=i[M],u=i[M+1],s=c,l=u),T!==Ie.L&&w>0&&(t.lineTo(S,k),w=0),T){case Ie.M:s=c=i[M++],l=u=i[M++],t.moveTo(c,u);break;case Ie.L:{h=i[M++],d=i[M++];var B=ya(h-c),R=ya(d-u);if(B>n||R>a){if(f){var D=p[m++];if(v+D>b){var $=(b-v)/D;t.lineTo(c*(1-$)+h*$,u*(1-$)+d*$);break t}v+=D}t.lineTo(h,d),c=h,u=d,w=0}else{var O=B*B+R*R;O>w&&(S=h,k=d,w=O)}break}case Ie.C:{var F=i[M++],z=i[M++],H=i[M++],U=i[M++],q=i[M++],K=i[M++];if(f){var D=p[m++];if(v+D>b){var $=(b-v)/D;Ag(c,F,H,q,$,vs),Ag(u,z,U,K,$,ms),t.bezierCurveTo(vs[1],ms[1],vs[2],ms[2],vs[3],ms[3]);break t}v+=D}t.bezierCurveTo(F,z,H,U,q,K),c=q,u=K;break}case Ie.Q:{var F=i[M++],z=i[M++],H=i[M++],U=i[M++];if(f){var D=p[m++];if(v+D>b){var $=(b-v)/D;Mg(c,F,H,$,vs),Mg(u,z,U,$,ms),t.quadraticCurveTo(vs[1],ms[1],vs[2],ms[2]);break t}v+=D}t.quadraticCurveTo(F,z,H,U),c=H,u=U;break}case Ie.A:var et=i[M++],Q=i[M++],it=i[M++],at=i[M++],Ct=i[M++],xt=i[M++],Zt=i[M++],ae=!i[M++],de=it>at?it:at,bt=ya(it-at)>.001,qt=Ct+xt,Pt=!1;if(f){var D=p[m++];v+D>b&&(qt=Ct+xt*(b-v)/D,Pt=!0),v+=D}if(bt&&t.ellipse?t.ellipse(et,Q,it,at,Zt,Ct,qt,ae):t.arc(et,Q,de,Ct,qt,ae),Pt)break t;I&&(s=ys(Ct)*it+et,l=_s(Ct)*at+Q),c=ys(qt)*it+et,u=_s(qt)*at+Q;break;case Ie.R:s=c=i[M],l=u=i[M+1],h=i[M++],d=i[M++];var W=i[M++],X=i[M++];if(f){var D=p[m++];if(v+D>b){var nt=b-v;t.moveTo(h,d),t.lineTo(h+i0(nt,W),d),nt-=W,nt>0&&t.lineTo(h+W,d+i0(nt,X)),nt-=X,nt>0&&t.lineTo(h+n0(W-nt,0),d+X),nt-=W,nt>0&&t.lineTo(h,d+n0(X-nt,0));break t}v+=D}t.rect(h,d,W,X);break;case Ie.Z:if(f){var D=p[m++];if(v+D>b){var $=(b-v)/D;t.lineTo(c*(1-$)+s*$,u*(1-$)+l*$);break t}v+=D}t.closePath(),c=s,u=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Ie,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Fl(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,c=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-i)/(e-r),c=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var u=l*a-o+c,h=u*u/(l*l+1);return h<=s/2*s/2}function tG(e,t,r,i,n,a,o,s,l,c,u){if(l===0)return!1;var h=l;if(u>t+h&&u>i+h&&u>a+h&&u>s+h||u<t-h&&u<i-h&&u<a-h&&u<s-h||c>e+h&&c>r+h&&c>n+h&&c>o+h||c<e-h&&c<r-h&&c<n-h&&c<o-h)return!1;var d=mW(e,t,r,i,n,a,o,s,c,u);return d<=h/2}function eG(e,t,r,i,n,a,o,s,l){if(o===0)return!1;var c=o;if(l>t+c&&l>i+c&&l>a+c||l<t-c&&l<i-c&&l<a-c||s>e+c&&s>r+c&&s>n+c||s<e-c&&s<r-c&&s<n-c)return!1;var u=bW(e,t,r,i,n,a,s,l);return u<=c/2}var t2=Math.PI*2;function Fd(e){return e%=t2,e<0&&(e+=t2),e}var Su=Math.PI*2;function rG(e,t,r,i,n,a,o,s,l){if(o===0)return!1;var c=o;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>r||u+c<r)return!1;if(Math.abs(i-n)%Su<1e-4)return!0;if(a){var h=i;i=Fd(n),n=Fd(h)}else i=Fd(i),n=Fd(n);i>n&&(n+=Su);var d=Math.atan2(l,s);return d<0&&(d+=Su),d>=i&&d<=n||d+Su>=i&&d+Su<=n}function bs(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(r-e)+e;return l===n?1/0:l>n?s:0}var no=cl.CMD,xs=Math.PI*2,iG=1e-4;function nG(e,t){return Math.abs(e-t)<iG}var li=[-1,-1,-1],Zi=[-1,-1];function aG(){var e=Zi[0];Zi[0]=Zi[1],Zi[1]=e}function oG(e,t,r,i,n,a,o,s,l,c){if(c>t&&c>i&&c>a&&c>s||c<t&&c<i&&c<a&&c<s)return 0;var u=kg(t,i,a,s,c,li);if(u===0)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<u;g++){var v=li[g],m=v===0||v===1?.5:1,b=Rr(e,r,n,o,v);b<l||(d<0&&(d=PE(t,i,a,s,Zi),Zi[1]<Zi[0]&&d>1&&aG(),f=Rr(t,i,a,s,Zi[0]),d>1&&(p=Rr(t,i,a,s,Zi[1]))),d===2?v<Zi[0]?h+=f<t?m:-m:v<Zi[1]?h+=p<f?m:-m:h+=s<p?m:-m:v<Zi[0]?h+=f<t?m:-m:h+=s<f?m:-m)}return h}function sG(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=_W(t,i,a,s,li);if(l===0)return 0;var c=BE(t,i,a);if(c>=0&&c<=1){for(var u=0,h=wi(t,i,a,c),d=0;d<l;d++){var f=li[d]===0||li[d]===1?.5:1,p=wi(e,r,n,li[d]);p<o||(li[d]<c?u+=h<t?f:-f:u+=a<h?f:-f)}return u}else{var f=li[0]===0||li[0]===1?.5:1,p=wi(e,r,n,li[0]);return p<o?0:a<t?f:-f}}function lG(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);li[0]=-l,li[1]=l;var c=Math.abs(i-n);if(c<1e-4)return 0;if(c>=xs-1e-4){i=0,n=xs;var u=a?1:-1;return o>=li[0]+e&&o<=li[1]+e?u:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=xs,n+=xs);for(var d=0,f=0;f<2;f++){var p=li[f];if(p+e>o){var g=Math.atan2(s,p),u=a?1:-1;g<0&&(g=xs+g),(g>=i&&g<=n||g+xs>=i&&g+xs<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),d+=u)}}return d}function lI(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,l=0,c=0,u=0,h=0,d,f,p=0;p<o;){var g=a[p++],v=p===1;switch(g===no.M&&p>1&&(r||(s+=bs(l,c,u,h,i,n))),v&&(l=a[p],c=a[p+1],u=l,h=c),g){case no.M:u=a[p++],h=a[p++],l=u,c=h;break;case no.L:if(r){if(Fl(l,c,a[p],a[p+1],t,i,n))return!0}else s+=bs(l,c,a[p],a[p+1],i,n)||0;l=a[p++],c=a[p++];break;case no.C:if(r){if(tG(l,c,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=oG(l,c,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],c=a[p++];break;case no.Q:if(r){if(eG(l,c,a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=sG(l,c,a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],c=a[p++];break;case no.A:var m=a[p++],b=a[p++],w=a[p++],S=a[p++],k=a[p++],M=a[p++];p+=1;var T=!!(1-a[p++]);d=Math.cos(k)*w+m,f=Math.sin(k)*S+b,v?(u=d,h=f):s+=bs(l,c,d,f,i,n);var I=(i-m)*S/w+m;if(r){if(rG(m,b,S,k,k+M,T,t,I,n))return!0}else s+=lG(m,b,S,k,k+M,T,I,n);l=Math.cos(k+M)*w+m,c=Math.sin(k+M)*S+b;break;case no.R:u=l=a[p++],h=c=a[p++];var B=a[p++],R=a[p++];if(d=u+B,f=h+R,r){if(Fl(u,h,d,h,t,i,n)||Fl(d,h,d,f,t,i,n)||Fl(d,f,u,f,t,i,n)||Fl(u,f,u,h,t,i,n))return!0}else s+=bs(d,h,d,f,i,n),s+=bs(u,f,u,h,i,n);break;case no.Z:if(r){if(Fl(l,c,u,h,t,i,n))return!0}else s+=bs(l,c,u,h,i,n);l=u,c=h;break}}return!r&&!nG(c,h)&&(s+=bs(l,c,u,h,i,n)||0),s!==0}function cG(e,t,r){return lI(e,0,!1,t,r)}function uG(e,t,r,i){return lI(e,t,!0,r,i)}var cI=We({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},tl),hG={style:We({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},lm.style)},s0=rf.concat(["invisible","culling","z","z2","zlevel","parent"]),Fe=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<s0.length;++s)n[s0[s]]=this[s0[s]];n.__dirty|=Ri}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=er(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?wt(this.style,s):this.useStyle(s):o==="shape"?wt(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ut(r)){var i=Lg(r,0);return i>.5?ib:i>.2?WW:nb}else if(r)return nb}return ib},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Ut(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Lg(r,0)<rb;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~tc},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new cl(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&tc)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,c=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,c=o.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uG(s,l/c,r,i)))return!0}if(this.hasFill())return cG(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=tc,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:wt(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&tc)},t.prototype.createStyle=function(r){return im(cI,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=wt({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),c;if(i&&i.shape?o?a?c=i.shape:(c=wt({},n.shape),wt(c,i.shape)):(c=wt({},a?this.shape:n.shape),wt(c,i.shape)):l&&(c=n.shape),c)if(o){this.shape=wt({},this.shape);for(var u={},h=er(c),d=0;d<h.length;d++){var f=h[d];typeof c[f]=="object"?this.shape[f]=c[f]:u[f]=c[f]}this._transitionState(r,{shape:u},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return hG},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=(function(a){kt(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return xe(r.style)},o.prototype.getDefaultShape=function(){return xe(r.shape)},o})(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ri|Qu|tc})(),t})(zf),fG=We({strokeFirst:!0,font:Ro,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},cI),Bg=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return oI(this.style)},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return im(fG,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=j9(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(zf);Bg.prototype.type="tspan";var dG=We({x:0,y:0},tl),pG={style:We({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},lm.style)};function gG(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Xo=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return im(dG,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=gG(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return pG},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ge(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(zf);Xo.prototype.type="image";function vG(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,c,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=c=u=o:o instanceof Array?o.length===1?s=l=c=u=o[0]:o.length===2?(s=c=o[0],l=u=o[1]):o.length===3?(s=o[0],l=u=o[1],c=o[2]):(s=o[0],l=o[1],c=o[2],u=o[3]):s=l=c=u=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),c+u>n&&(h=c+u,c*=n/h,u*=n/h),l+c>a&&(h=l+c,l*=a/h,c*=a/h),s+u>a&&(h=s+u,s*=a/h,u*=a/h),e.moveTo(r+s,i),e.lineTo(r+n-l,i),l!==0&&e.arc(r+n-l,i+l,l,-Math.PI/2,0),e.lineTo(r+n,i+a-c),c!==0&&e.arc(r+n-c,i+a-c,c,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var sc=Math.round;function uI(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(sc(i*2)===sc(n*2)&&(e.x1=e.x2=Ns(i,s,!0)),sc(a*2)===sc(o*2)&&(e.y1=e.y2=Ns(a,s,!0))),e}}function hI(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ns(i,s,!0),e.y=Ns(n,s,!0),e.width=Math.max(Ns(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ns(n+o,s,!1)-e.y,o===0?0:1)),e}}function Ns(e,t,r){if(!t)return e;var i=sc(e*2);return(i+sc(t))%2===0?i/2:(i+(r?1:-1))/2}var mG=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),yG={},cr=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new mG},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=hI(yG,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?vG(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Fe);cr.prototype.type="rect";var e2={fill:"#000"},r2=2,Nn={},_G={style:We({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},lm.style)},zr=(function(e){kt(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=e2,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,CG(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ge(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),c=s.getLocalTransform(n);c?(r.copy(l),r.applyTransform(c),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||e2},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return wt(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=er(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},wt(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return _G},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Ro,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",c=r.verticalAlign||a.verticalAlign||"top";YT(Nn,a.overflowRect,o,s,l,c),o=Nn.baseX,s=Nn.baseY;var u=c2(r),h=H9(u,r,Nn.outerWidth,Nn.outerHeight),d=l0(r),f=!!r.backgroundColor,p=h.outerHeight,g=h.outerWidth,v=h.lines,m=h.lineHeight;this.isTruncated=!!h.isTruncated;var b=o,w=Js(s,h.contentHeight,c);if(d||n){var S=Pc(o,g,l),k=Js(s,p,c);d&&this._renderBackground(r,r,S,k,g,p)}w+=m/2,n&&(b=l2(o,l,n),c==="top"?w+=n[0]:c==="bottom"&&(w-=n[2]));for(var M=0,T=!1,I=!1,B=s2("fill"in r?r.fill:(I=!0,a.fill)),R=o2("stroke"in r?r.stroke:!f&&(!a.autoStroke||I)?(M=r2,T=!0,a.stroke):null),D=r.textShadowBlur>0,$=0;$<v.length;$++){var O=this._getOrCreateChild(Bg),F=O.createStyle();O.useStyle(F),F.text=v[$],F.x=b,F.y=w,F.textAlign=l,F.textBaseline="middle",F.opacity=r.opacity,F.strokeFirst=!0,D&&(F.shadowBlur=r.textShadowBlur||0,F.shadowColor=r.textShadowColor||"transparent",F.shadowOffsetX=r.textShadowOffsetX||0,F.shadowOffsetY=r.textShadowOffsetY||0),F.stroke=R,F.fill=B,R&&(F.lineWidth=r.lineWidth||M,F.lineDash=r.lineDash,F.lineDashOffset=r.lineDashOffset||0),F.font=i,n2(F,r),w+=m,O.setBoundingRect(ub(F,h.contentWidth,h.calculatedLineHeight,T?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;YT(Nn,i.overflowRect,o,s,n,a),o=Nn.baseX,s=Nn.baseY;var l=c2(r),c=q9(l,r,Nn.outerWidth,Nn.outerHeight,n),u=c.width,h=c.outerWidth,d=c.outerHeight,f=r.padding;this.isTruncated=!!c.isTruncated;var p=Pc(o,h,n),g=Js(s,d,a),v=p,m=g;f&&(v+=f[3],m+=f[0]);var b=v+u;l0(r)&&this._renderBackground(r,r,p,g,h,d);for(var w=!!r.backgroundColor,S=0;S<c.lines.length;S++){for(var k=c.lines[S],M=k.tokens,T=M.length,I=k.lineHeight,B=k.width,R=0,D=v,$=b,O=T-1,F=void 0;R<T&&(F=M[R],!F.align||F.align==="left");)this._placeToken(F,r,I,m,D,"left",w),B-=F.width,D+=F.width,R++;for(;O>=0&&(F=M[O],F.align==="right");)this._placeToken(F,r,I,m,$,"right",w),B-=F.width,$-=F.width,O--;for(D+=(u-(D-v)-(b-$)-B)/2;R<=O;)F=M[R],this._placeToken(F,r,I,m,D+F.width/2,"center",w),D+=F.width,R++;m+=I}},t.prototype._placeToken=function(r,i,n,a,o,s,l){var c=i.rich[r.styleName]||{};c.text=r.text;var u=r.verticalAlign,h=a+n/2;u==="top"?h=a+r.height/2:u==="bottom"&&(h=a+n-r.height/2);var d=!r.isLineHolder&&l0(c);d&&this._renderBackground(c,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var f=!!c.backgroundColor,p=r.textPadding;p&&(o=l2(o,s,p),h-=r.height/2-p[0]-r.innerHeight/2);var g=this._getOrCreateChild(Bg),v=g.createStyle();g.useStyle(v);var m=this._defaultStyle,b=!1,w=0,S=!1,k=s2("fill"in c?c.fill:"fill"in i?i.fill:(b=!0,m.fill)),M=o2("stroke"in c?c.stroke:"stroke"in i?i.stroke:!f&&!l&&(!m.autoStroke||b)?(w=r2,S=!0,m.stroke):null),T=c.textShadowBlur>0||i.textShadowBlur>0;v.text=r.text,v.x=o,v.y=h,T&&(v.shadowBlur=c.textShadowBlur||i.textShadowBlur||0,v.shadowColor=c.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=c.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=c.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=r.font||Ro,v.opacity=Ks(c.opacity,i.opacity,1),n2(v,c),M&&(v.lineWidth=Ks(c.lineWidth,i.lineWidth,w),v.lineDash=ne(c.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=M),k&&(v.fill=k),g.setBoundingRect(ub(v,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,c=r.borderWidth,u=r.borderColor,h=l&&l.image,d=l&&!h,f=r.borderRadius,p=this,g,v;if(d||r.lineHeight||c&&u){g=this._getOrCreateChild(cr),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=f,g.dirtyShape()}if(d){var b=g.style;b.fill=l||null,b.fillOpacity=ne(r.fillOpacity,1)}else if(h){v=this._getOrCreateChild(Xo),v.onload=function(){p.dirtyStyle()};var w=v.style;w.image=l.image,w.x=n,w.y=a,w.width=o,w.height=s}if(c&&u){var b=g.style;b.lineWidth=c,b.stroke=u,b.strokeOpacity=ne(r.strokeOpacity,1),b.lineDash=r.borderDash,b.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||v).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ks(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return SG(r)&&(i=[r.fontStyle,r.fontWeight,wG(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&Kn(i)||r.textFont||r.font},t})(zf),bG={left:!0,right:1,center:1},xG={top:1,bottom:1,middle:1},i2=["fontStyle","fontWeight","fontSize","fontFamily"];function wG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?C1+"px":e+"px"}function n2(e,t){for(var r=0;r<i2.length;r++){var i=i2[r],n=t[i];n!=null&&(e[i]=n)}}function SG(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function CG(e){return a2(e),Y(e.rich,a2),e}function a2(e){if(e){e.font=zr.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||bG[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||xG[r]?r:"top";var i=e.padding;i&&(e.padding=L1(e.padding))}}function o2(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function s2(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function l2(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function c2(e){var t=e.text;return t!=null&&(t+=""),t}function l0(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Te=rr(),TG=function(e,t,r,i){if(i){var n=Te(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=Te(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},u2=1,h2={},fI=rr(),z1=rr(),H1=0,cm=1,um=2,on=["emphasis","blur","select"],Og=["normal","emphasis","blur","select"],kG=10,AG=9,el="highlight",Hp="downplay",Rg="select",db="unselect",Fg="toggleSelect",W1="selectchanged";function $l(e){return e!=null&&e!=="none"}function hm(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function dI(e){hm(e,"emphasis",um)}function pI(e){e.hoverState===um&&hm(e,"normal",H1)}function G1(e){hm(e,"blur",cm)}function gI(e){e.hoverState===cm&&hm(e,"normal",H1)}function MG(e){e.selected=!0}function LG(e){e.selected=!1}function f2(e,t,r){t(e,r)}function Ka(e,t,r){f2(e,t,r),e.isGroup&&e.traverse(function(i){f2(i,t,r)})}function d2(e,t){switch(t){case"emphasis":e.hoverState=um;break;case"normal":e.hoverState=H1;break;case"blur":e.hoverState=cm;break;case"select":e.selected=!0}}function DG(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(r)<0&&c.targetName==="style"&&c.saveTo(a,t)}return a}function EG(e,t,r,i){var n=r&&De(r,"select")>=0,a=!1;if(e instanceof Fe){var o=fI(e),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if($l(s)||$l(l)){i=i||{};var c=i.style||{};c.fill==="inherit"?(a=!0,i=wt({},i),c=wt({},c),c.fill=s):!$l(c.fill)&&$l(s)?(a=!0,i=wt({},i),c=wt({},c),c.fill=LT(s)):!$l(c.stroke)&&$l(l)&&(a||(i=wt({},i),c=wt({},c)),c.stroke=LT(l)),i.style=c}}if(i&&i.z2==null){a||(i=wt({},i));var u=e.z2EmphasisLift;i.z2=e.z2+(u??kG)}return i}function IG(e,t,r){if(r&&r.z2==null){r=wt({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??AG)}return r}function PG(e,t,r){var i=De(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:DG(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=wt({},r),o=wt({opacity:i?n:a.opacity*.1},o),r.style=o),r}function c0(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return EG(this,e,t,r);if(e==="blur")return PG(this,e,r);if(e==="select")return IG(this,e,r)}return r}function BG(e){e.stateProxy=c0;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=c0),r&&(r.stateProxy=c0)}function p2(e,t){!_I(e,t)&&!e.__highByOuter&&Ka(e,dI)}function g2(e,t){!_I(e,t)&&!e.__highByOuter&&Ka(e,pI)}function $g(e,t){e.__highByOuter|=1<<(t||0),Ka(e,dI)}function Ng(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ka(e,pI)}function OG(e){Ka(e,G1)}function vI(e){Ka(e,gI)}function mI(e){Ka(e,MG)}function yI(e){Ka(e,LG)}function _I(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function bI(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=z1(a),s=n==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(c){gI(c)}),s&&r.push(a)),o.isBlured=!1}),Y(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function pb(e,t,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(c,u){for(var h=0;h<u.length;h++){var d=c.getItemGraphicEl(u[h]);d&&vI(d)}}if(e!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(c){var u=o===c,h=c.coordinateSystem;h&&h.master&&(h=h.master);var d=h&&s?h===s:u;if(!(r==="series"&&!u||r==="coordinateSystem"&&!d||t==="series"&&u)){var f=i.getViewOfSeriesModel(c);if(f.group.traverse(function(v){v.__highByOuter&&u&&t==="self"||G1(v)}),Li(t))a(c.getData(),t);else if(Qt(t))for(var p=er(t),g=0;g<p.length;g++)a(c.getData(p[g]),t[p[g]]);l.push(c),z1(c).isBlured=!0}}),n.eachComponent(function(c,u){if(c!=="series"){var h=i.getViewOfComponentModel(u);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function gb(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){z1(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){G1(a)})}}}function RG(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=ll(n,t);a=(It(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var c=Te(o);pb(i,c.focus,c.blurScope,r)}else{var u=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);u!=null&&pb(i,u,h,r)}}}function q1(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,c=0;c<s.length;c++)if(Te(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function FG(e,t,r){var i=Te(e),n=q1(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&gb(i.componentMainType,i.componentIndex,r),Y(a,function(s){return p2(s,t)})):(pb(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&gb(i.componentMainType,i.componentIndex,r),p2(e,t))}function $G(e,t,r){bI(r);var i=Te(e),n=q1(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?Y(n,function(a){return g2(a,t)}):g2(e,t)}function NG(e,t,r){if(yb(t)){var i=t.dataType,n=e.getData(i),a=ll(n,t);It(a)||(a=[a]),e[t.type===Fg?"toggleSelect":t.type===Rg?"select":"unselect"](a,i)}}function v2(e){var t=e.getAllData();Y(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?mI(a):yI(a)})})}function zG(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();Y(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function vb(e,t,r){xI(e,!0),Ka(e,BG),WG(e,t,r)}function HG(e){xI(e,!1)}function sf(e,t,r,i){i?HG(e):vb(e,t,r)}function WG(e,t,r){var i=Te(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var m2=["emphasis","blur","select"],GG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zg(e,t,r,i){r=r||"itemStyle";for(var n=0;n<m2.length;n++){var a=m2[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[GG[r]]()}}function xI(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function mb(e){return!!(e&&e.__highDownDispatcher)}function qG(e){var t=h2[e];return t==null&&u2<=32&&(t=h2[e]=u2++),t}function yb(e){var t=e.type;return t===Rg||t===db||t===Fg}function y2(e){var t=e.type;return t===el||t===Hp}function VG(e){var t=fI(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Nl=cl.CMD,UG=[[],[],[]],_2=Math.sqrt,YG=Math.atan2;function jG(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,l,c,u=Nl.M,h=Nl.C,d=Nl.L,f=Nl.R,p=Nl.A,g=Nl.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case u:a=1;break;case d:a=1;break;case h:a=3;break;case g:a=2;break;case p:var v=t[4],m=t[5],b=_2(t[0]*t[0]+t[1]*t[1]),w=_2(t[2]*t[2]+t[3]*t[3]),S=YG(-t[1]/w,t[0]/b);r[o]*=b,r[o++]+=v,r[o]*=w,r[o++]+=m,r[o++]*=b,r[o++]*=w,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case f:c[0]=r[o++],c[1]=r[o++],nn(c,c,t),r[s++]=c[0],r[s++]=c[1],c[0]+=r[o++],c[1]+=r[o++],nn(c,c,t),r[s++]=c[0],r[s++]=c[1]}for(l=0;l<a;l++){var k=UG[l];k[0]=r[o++],k[1]=r[o++],nn(k,k,t),r[s++]=k[0],r[s++]=k[1]}}e.increaseVersion()}}var u0=Math.sqrt,$d=Math.sin,Nd=Math.cos,Cu=Math.PI;function b2(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function _b(e,t){return(e[0]*t[0]+e[1]*t[1])/(b2(e)*b2(t))}function x2(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(_b(e,t))}function w2(e,t,r,i,n,a,o,s,l,c,u){var h=l*(Cu/180),d=Nd(h)*(e-r)/2+$d(h)*(t-i)/2,f=-1*$d(h)*(e-r)/2+Nd(h)*(t-i)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=u0(p),s*=u0(p));var g=(n===a?-1:1)*u0((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,v=g*o*f/s,m=g*-s*d/o,b=(e+r)/2+Nd(h)*v-$d(h)*m,w=(t+i)/2+$d(h)*v+Nd(h)*m,S=x2([1,0],[(d-v)/o,(f-m)/s]),k=[(d-v)/o,(f-m)/s],M=[(-1*d-v)/o,(-1*f-m)/s],T=x2(k,M);if(_b(k,M)<=-1&&(T=Cu),_b(k,M)>=1&&(T=0),T<0){var I=Math.round(T/Cu*1e6)/1e6;T=Cu*2+I%2*Cu}u.addData(c,b,w,o,s,S,T,h,a)}var XG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ZG=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KG(e){var t=new cl;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=cl.CMD,l=e.match(XG);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],h=u.charAt(0),d=void 0,f=u.match(ZG)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var m=void 0,b=void 0,w=void 0,S=void 0,k=void 0,M=void 0,T=void 0,I=r,B=i,R=void 0,D=void 0;switch(h){case"l":r+=f[v++],i+=f[v++],d=s.L,t.addData(d,r,i);break;case"L":r=f[v++],i=f[v++],d=s.L,t.addData(d,r,i);break;case"m":r+=f[v++],i+=f[v++],d=s.M,t.addData(d,r,i),n=r,a=i,h="l";break;case"M":r=f[v++],i=f[v++],d=s.M,t.addData(d,r,i),n=r,a=i,h="L";break;case"h":r+=f[v++],d=s.L,t.addData(d,r,i);break;case"H":r=f[v++],d=s.L,t.addData(d,r,i);break;case"v":i+=f[v++],d=s.L,t.addData(d,r,i);break;case"V":i=f[v++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),r=f[v-2],i=f[v-1];break;case"c":d=s.C,t.addData(d,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i),r+=f[v-2],i+=f[v-1];break;case"S":m=r,b=i,R=t.len(),D=t.data,o===s.C&&(m+=r-D[R-4],b+=i-D[R-3]),d=s.C,I=f[v++],B=f[v++],r=f[v++],i=f[v++],t.addData(d,m,b,I,B,r,i);break;case"s":m=r,b=i,R=t.len(),D=t.data,o===s.C&&(m+=r-D[R-4],b+=i-D[R-3]),d=s.C,I=r+f[v++],B=i+f[v++],r+=f[v++],i+=f[v++],t.addData(d,m,b,I,B,r,i);break;case"Q":I=f[v++],B=f[v++],r=f[v++],i=f[v++],d=s.Q,t.addData(d,I,B,r,i);break;case"q":I=f[v++]+r,B=f[v++]+i,r+=f[v++],i+=f[v++],d=s.Q,t.addData(d,I,B,r,i);break;case"T":m=r,b=i,R=t.len(),D=t.data,o===s.Q&&(m+=r-D[R-4],b+=i-D[R-3]),r=f[v++],i=f[v++],d=s.Q,t.addData(d,m,b,r,i);break;case"t":m=r,b=i,R=t.len(),D=t.data,o===s.Q&&(m+=r-D[R-4],b+=i-D[R-3]),r+=f[v++],i+=f[v++],d=s.Q,t.addData(d,m,b,r,i);break;case"A":w=f[v++],S=f[v++],k=f[v++],M=f[v++],T=f[v++],I=r,B=i,r=f[v++],i=f[v++],d=s.A,w2(I,B,r,i,M,T,w,S,k,d,t);break;case"a":w=f[v++],S=f[v++],k=f[v++],M=f[v++],T=f[v++],I=r,B=i,r+=f[v++],i+=f[v++],d=s.A,w2(I,B,r,i,M,T,w,S,k,d,t);break}}(h==="z"||h==="Z")&&(d=s.Z,t.addData(d),r=n,i=a),o=d}return t.toStatic(),t}var wI=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(Fe);function SI(e){return e.setData!=null}function CI(e,t){var r=KG(e),i=wt({},t);return i.buildPath=function(n){var a=SI(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){jG(r,n),this.dirtyShape()},i}function QG(e,t){return new wI(CI(e,t))}function JG(e,t){var r=CI(e,t),i=(function(n){kt(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(wI);return i}function tq(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new Fe(t);return o.createPathProxy(),o.buildPath=function(s){if(SI(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var eq=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),fm=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eq},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(Fe);fm.prototype.type="circle";var rq=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),V1=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rq},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,c=s*n,u=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-u,a-c,o-l,a,o-l),r.bezierCurveTo(a+c,o-l,a+s,o-u,a+s,o),r.bezierCurveTo(a+s,o+u,a+c,o+l,a,o+l),r.bezierCurveTo(a-c,o+l,a-s,o+u,a-s,o),r.closePath()},t})(Fe);V1.prototype.type="ellipse";var TI=Math.PI,h0=TI*2,ws=Math.sin,zl=Math.cos,iq=Math.acos,Gr=Math.atan2,S2=Math.abs,Eh=Math.sqrt,th=Math.max,zn=Math.min,vn=1e-4;function nq(e,t,r,i,n,a,o,s){var l=r-e,c=i-t,u=o-n,h=s-a,d=h*l-u*c;if(!(d*d<vn))return d=(u*(t-a)-h*(e-n))/d,[e+d*l,t+d*c]}function zd(e,t,r,i,n,a,o){var s=e-r,l=t-i,c=(o?a:-a)/Eh(s*s+l*l),u=c*l,h=-c*s,d=e+u,f=t+h,p=r+u,g=i+h,v=(d+p)/2,m=(f+g)/2,b=p-d,w=g-f,S=b*b+w*w,k=n-a,M=d*g-p*f,T=(w<0?-1:1)*Eh(th(0,k*k*S-M*M)),I=(M*w-b*T)/S,B=(-M*b-w*T)/S,R=(M*w+b*T)/S,D=(-M*b+w*T)/S,$=I-v,O=B-m,F=R-v,z=D-m;return $*$+O*O>F*F+z*z&&(I=R,B=D),{cx:I,cy:B,x0:-u,y0:-h,x1:I*(n/k-1),y1:B*(n/k-1)}}function aq(e){var t;if(It(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function oq(e,t){var r,i=th(t.r,0),n=th(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var u=t.cx,h=t.cy,d=!!t.clockwise,f=S2(c-l),p=f>h0&&f%h0;if(p>vn&&(f=p),!(i>vn))e.moveTo(u,h);else if(f>h0-vn)e.moveTo(u+i*zl(l),h+i*ws(l)),e.arc(u,h,i,l,c,!d),n>vn&&(e.moveTo(u+n*zl(c),h+n*ws(c)),e.arc(u,h,n,c,l,d));else{var g=void 0,v=void 0,m=void 0,b=void 0,w=void 0,S=void 0,k=void 0,M=void 0,T=void 0,I=void 0,B=void 0,R=void 0,D=void 0,$=void 0,O=void 0,F=void 0,z=i*zl(l),H=i*ws(l),U=n*zl(c),q=n*ws(c),K=f>vn;if(K){var et=t.cornerRadius;et&&(r=aq(et),g=r[0],v=r[1],m=r[2],b=r[3]);var Q=S2(i-n)/2;if(w=zn(Q,m),S=zn(Q,b),k=zn(Q,g),M=zn(Q,v),B=T=th(w,S),R=I=th(k,M),(T>vn||I>vn)&&(D=i*zl(c),$=i*ws(c),O=n*zl(l),F=n*ws(l),f<TI)){var it=nq(z,H,O,F,D,$,U,q);if(it){var at=z-it[0],Ct=H-it[1],xt=D-it[0],Zt=$-it[1],ae=1/ws(iq((at*xt+Ct*Zt)/(Eh(at*at+Ct*Ct)*Eh(xt*xt+Zt*Zt)))/2),de=Eh(it[0]*it[0]+it[1]*it[1]);B=zn(T,(i-de)/(ae+1)),R=zn(I,(n-de)/(ae-1))}}}if(!K)e.moveTo(u+z,h+H);else if(B>vn){var bt=zn(m,B),qt=zn(b,B),Pt=zd(O,F,z,H,i,bt,d),W=zd(D,$,U,q,i,qt,d);e.moveTo(u+Pt.cx+Pt.x0,h+Pt.cy+Pt.y0),B<T&&bt===qt?e.arc(u+Pt.cx,h+Pt.cy,B,Gr(Pt.y0,Pt.x0),Gr(W.y0,W.x0),!d):(bt>0&&e.arc(u+Pt.cx,h+Pt.cy,bt,Gr(Pt.y0,Pt.x0),Gr(Pt.y1,Pt.x1),!d),e.arc(u,h,i,Gr(Pt.cy+Pt.y1,Pt.cx+Pt.x1),Gr(W.cy+W.y1,W.cx+W.x1),!d),qt>0&&e.arc(u+W.cx,h+W.cy,qt,Gr(W.y1,W.x1),Gr(W.y0,W.x0),!d))}else e.moveTo(u+z,h+H),e.arc(u,h,i,l,c,!d);if(!(n>vn)||!K)e.lineTo(u+U,h+q);else if(R>vn){var bt=zn(g,R),qt=zn(v,R),Pt=zd(U,q,D,$,n,-qt,d),W=zd(z,H,O,F,n,-bt,d);e.lineTo(u+Pt.cx+Pt.x0,h+Pt.cy+Pt.y0),R<I&&bt===qt?e.arc(u+Pt.cx,h+Pt.cy,R,Gr(Pt.y0,Pt.x0),Gr(W.y0,W.x0),!d):(qt>0&&e.arc(u+Pt.cx,h+Pt.cy,qt,Gr(Pt.y0,Pt.x0),Gr(Pt.y1,Pt.x1),!d),e.arc(u,h,n,Gr(Pt.cy+Pt.y1,Pt.cx+Pt.x1),Gr(W.cy+W.y1,W.cx+W.x1),d),bt>0&&e.arc(u+W.cx,h+W.cy,bt,Gr(W.y1,W.x1),Gr(W.y0,W.x0),!d))}else e.lineTo(u+U,h+q),e.arc(u,h,n,c,l,d)}e.closePath()}}}var sq=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),Zo=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sq},t.prototype.buildPath=function(r,i){oq(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Fe);Zo.prototype.type="sector";var lq=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),U1=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new lq},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t})(Fe);U1.prototype.type="ring";function cq(e,t,r,i){var n=[],a=[],o=[],s=[],l,c,u,h;if(i){u=[1/0,1/0],h=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)ic(u,u,e[d]),nc(h,h,e[d]);ic(u,u,i[0]),nc(h,h,i[1])}for(var d=0,f=e.length;d<f;d++){var p=e[d];if(r)l=e[d?d-1:f-1],c=e[(d+1)%f];else if(d===0||d===f-1){n.push(FH(e[d]));continue}else l=e[d-1],c=e[d+1];$H(a,c,l),Ay(a,a,t);var g=N_(p,l),v=N_(p,c),m=g+v;m!==0&&(g/=m,v/=m),Ay(o,a,-g),Ay(s,a,v);var b=fT([],p,o),w=fT([],p,s);i&&(nc(b,b,u),ic(b,b,h),nc(w,w,u),ic(w,w,h)),n.push(b),n.push(w)}return r&&n.push(n.shift()),n}function kI(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=cq(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],c=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var uq=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Y1=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uq},t.prototype.buildPath=function(r,i){kI(r,i,!0)},t})(Fe);Y1.prototype.type="polygon";var hq=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Hf=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hq},t.prototype.buildPath=function(r,i){kI(r,i,!1)},t})(Fe);Hf.prototype.type="polyline";var fq={},dq=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),No=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new dq},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=uI(fq,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var c=i.percent;c!==0&&(r.moveTo(n,a),c<1&&(o=n*(1-c)+o*c,s=a*(1-c)+s*c),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t})(Fe);No.prototype.type="line";var _i=[],pq=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function C2(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?CT:Rr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?CT:Rr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?TT:wi)(e.x1,e.cpx1,e.x2,t),(r?TT:wi)(e.y1,e.cpy1,e.y2,t)]}var j1=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pq},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,c=i.cpy1,u=i.cpx2,h=i.cpy2,d=i.percent;d!==0&&(r.moveTo(n,a),u==null||h==null?(d<1&&(Mg(n,l,o,d,_i),l=_i[1],o=_i[2],Mg(a,c,s,d,_i),c=_i[1],s=_i[2]),r.quadraticCurveTo(l,c,o,s)):(d<1&&(Ag(n,l,u,o,d,_i),l=_i[1],u=_i[2],o=_i[3],Ag(a,c,h,s,d,_i),c=_i[1],h=_i[2],s=_i[3]),r.bezierCurveTo(l,c,u,h,o,s)))},t.prototype.pointAt=function(r){return C2(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=C2(this.shape,r,!0);return HH(i,i)},t})(Fe);j1.prototype.type="bezier-curve";var gq=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),dm=(function(e){kt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gq},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,c=i.clockwise,u=Math.cos(s),h=Math.sin(s);r.moveTo(u*o+n,h*o+a),r.arc(n,a,o,s,l,!c)},t})(Fe);dm.prototype.type="arc";var vq=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fe.prototype.getBoundingRect.call(this)},t})(Fe),AI=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),MI=(function(e){kt(t,e);function t(r,i,n,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(AI),mq=(function(e){kt(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t})(AI),f0=Math.min,yq=Math.max,Hd=Math.abs,Ss=[0,0],Cs=[0,0],Mr=kE(),Wd=Mr.minTv,Gd=Mr.maxTv,LI=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ue;for(var i=0;i<2;i++)this._axes[i]=new ue;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var c=0;c<4;c++)i[c].transform(r);ue.sub(n[0],i[1],i[0]),ue.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var c=0;c<2;c++)this._origin[c]=n[c].dot(i[0])},e.prototype.intersect=function(t,r,i){var n=!0,a=!r;return r&&ue.set(r,0,0),Mr.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Mr.negativeSize&&ue.copy(r,n?Mr.useDir?Mr.dirMinTv:Wd:Gd),n},e.prototype._intersectCheckOneSide=function(t,r,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Ss),t._getProjMinMaxOnAxis(o,r._corners,Cs),Mr.negativeSize||Ss[1]<Cs[0]||Ss[0]>Cs[1]){if(a=!1,Mr.negativeSize||i)return a;var l=Hd(Cs[0]-Ss[1]),c=Hd(Ss[0]-Cs[1]);f0(l,c)>Gd.len()&&(l<c?ue.scale(Gd,s,-l*n):ue.scale(Gd,s,c*n))}else if(!i){var l=Hd(Cs[0]-Ss[1]),c=Hd(Ss[0]-Cs[1]);(Mr.useDir||f0(l,c)<Wd.len())&&((l<c||!Mr.bidirectional)&&(ue.scale(Wd,s,l*n),Mr.useDir&&Mr.calcDirMTV()),(l>=c||!Mr.bidirectional)&&(ue.scale(Wd,s,-c*n),Mr.useDir&&Mr.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,l=o,c=1;c<r.length;c++){var u=r[c].dot(n)+a[t];s=f0(u,s),l=yq(u,l)}i[0]=s+Mr.touchThreshold,i[1]=l-Mr.touchThreshold,Mr.negativeSize=i[1]<i[0]},e})(),_q=[],bq=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ge(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(_q)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t})(zf),xq=rr();function wq(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,u=void 0,h=void 0;i?(c=ne(i.duration,200),u=ne(i.easing,"cubicOut"),h=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(h=a.delay)),ce(h)&&(h=h(r,n)),ce(c)&&(c=c(r));var d={duration:c||0,delay:h,easing:u};return d}else return null}function X1(e,t,r,i,n,a,o){var s=!1,l;ce(n)?(o=a,a=n,n=null):Qt(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var u=wq(e,i,n,c?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(u&&u.duration>0){var h=u.duration,d=u.delay,f=u.easing,p={duration:h,delay:d||0,easing:f,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function vi(e,t,r,i,n,a){X1("update",e,t,r,i,n,a)}function an(e,t,r,i,n,a){X1("enter",e,t,r,i,n,a)}function Ih(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Hg(e,t,r,i,n,a){Ih(e)||X1("leave",e,t,r,i,n,a)}function T2(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),Hg(e,{style:{opacity:0}},t,r,i)}function Ph(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||T2(n,t,r,i)}):T2(e,t,r,i)}function Z1(e){xq(e).oldStyle=e.style}var bb={},xo=["x","y"],Bc=["width","height"];function Sq(e){return Fe.extend(e)}var Cq=JG;function Tq(e,t){return Cq(e,t)}function En(e,t){bb[e]=t}function kq(e){if(bb.hasOwnProperty(e))return bb[e]}function K1(e,t,r,i){var n=QG(e,t);return r&&(i==="center"&&(r=EI(r,n.getBoundingRect())),II(n,r)),n}function DI(e,t,r){var i=new Xo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(EI(t,a))}}});return i}function EI(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Aq=tq;function II(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function lf(e,t){return uI(e,e,{lineWidth:t}),e}function Mq(e,t){return hI(e,e,t),e}var Lq=Ns;function Dq(e,t){for(var r=E1([]);e&&e!==t;)Ah(r,e.getLocalTransform(),r),e=e.parent;return r}function Q1(e,t,r){return t&&!Li(t)&&(t=B1.getLocalTransform(t)),r&&(t=Rf([],t)),nn([],e,t)}function Eq(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:Qn(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Qn(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-n:e==="bottom"?n:0];return a=Q1(a,t,r),Qn(a[0])>Qn(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function k2(e){return!e.isGroup}function Iq(e){return e.shape!=null}function PI(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(l){k2(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Iq(o)&&(s.shape=xe(o.shape)),s}var a=i(e);t.traverse(function(o){if(k2(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),vi(o,l,r,Te(o).dataIndex)}}})}function Pq(e,t){return te(e,function(r){var i=r[0];i=$i(i,t.x),i=nf(i,t.x+t.width);var n=r[1];return n=$i(n,t.y),n=nf(n,t.y+t.height),[i,n]})}function Bq(e,t){var r=$i(e.x,t.x),i=nf(e.x+e.width,t.x+t.width),n=$i(e.y,t.y),a=nf(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function J1(e,t,r){var i=wt({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),We(n,r),new Xo(i)):K1(e.replace("path://",""),i,r,"center")}function Oq(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(BI(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function BI(e,t,r,i,n,a,o,s){var l=r-e,c=i-t,u=o-n,h=s-a,d=d0(u,h,l,c);if(Rq(d))return!1;var f=e-n,p=t-a,g=d0(f,p,l,c)/d;if(g<0||g>1)return!1;var v=d0(f,p,u,h)/d;return!(v<0||v>1)}function d0(e,t,r,i){return e*i-r*t}function Rq(e){return e<=1e-6&&e>=-1e-6}function Wg(e,t,r,i,n){return t==null||(He(t)?Ue[0]=Ue[1]=Ue[2]=Ue[3]=t:(Ue[0]=t[0],Ue[1]=t[1],Ue[2]=t[2],Ue[3]=t[3]),i&&(Ue[0]=$i(0,Ue[0]),Ue[1]=$i(0,Ue[1]),Ue[2]=$i(0,Ue[2]),Ue[3]=$i(0,Ue[3])),r&&(Ue[0]=-Ue[0],Ue[1]=-Ue[1],Ue[2]=-Ue[2],Ue[3]=-Ue[3]),A2(e,Ue,"x","width",3,1,n&&n[0]||0),A2(e,Ue,"y","height",0,2,n&&n[1]||0)),e}var Ue=[0,0,0,0];function A2(e,t,r,i,n,a,o){var s=t[a]+t[n],l=e[i];e[i]+=s,o=$i(0,nf(o,l)),e[i]<o?(e[i]=o,e[r]+=t[n]>=0?-t[n]:t[a]>=0?l+t[a]:Qn(s)>1e-8?(l-o)*t[n]/s:0):e[r]-=t[n]}function pm(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=Ut(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&Y(er(l),function(u){Tn(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=Te(e.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:i,option:We({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function xb(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function gm(e,t){if(e)if(It(e))for(var r=0;r<e.length;r++)xb(e[r],t);else xb(e,t)}function tw(e){return!e||Qn(e[1])<qd&&Qn(e[2])<qd||Qn(e[0])<qd&&Qn(e[3])<qd}var qd=1e-5;function cf(e,t){return e?ge.copy(e,t):t.clone()}function ew(e,t){return t?TE(e||Ra(),t):void 0}function OI(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function Fq(e){var t=-1/0,r=1/0;xb(e,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function RI(e,t,r){FI(e,t,r,-1/0)}function FI(e,t,r,i){if(e.ignoreModelZ)return i;var n=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=$i(FI(s[l],t,r,i),i);else e.z=t,e.zlevel=r,i=$i(e.z2||0,i);if(n&&(n.z=t,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(i)&&(a.z2=i+(c&&c.showAbove?1:-1))}return i}En("circle",fm);En("ellipse",V1);En("sector",Zo);En("ring",U1);En("polygon",Y1);En("polyline",Hf);En("rect",cr);En("line",No);En("bezierCurve",j1);En("arc",dm);const $q=Object.freeze(Object.defineProperty({__proto__:null,Arc:dm,BezierCurve:j1,BoundingRect:ge,Circle:fm,CompoundPath:vq,Ellipse:V1,Group:Cr,Image:Xo,IncrementalDisplayable:bq,Line:No,LinearGradient:MI,OrientedBoundingRect:LI,Path:Fe,Point:ue,Polygon:Y1,Polyline:Hf,RadialGradient:mq,Rect:cr,Ring:U1,Sector:Zo,Text:zr,WH:Bc,XY:xo,applyTransform:Q1,calcZ2Range:Fq,clipPointsByRect:Pq,clipRectByRect:Bq,createIcon:J1,ensureCopyRect:cf,ensureCopyTransform:ew,expandOrShrinkRect:Wg,extendPath:Tq,extendShape:Sq,getShapeClass:kq,getTransform:Dq,groupTransition:PI,initProps:an,isBoundingRectAxisAligned:tw,isElementRemoved:Ih,lineLineIntersect:BI,linePolygonIntersect:Oq,makeImage:DI,makePath:K1,mergePath:Aq,registerShape:En,removeElement:Hg,removeElementWithFadeOut:Ph,resizePath:II,retrieveZInfo:OI,setTooltipConfig:pm,subPixelOptimize:Lq,subPixelOptimizeLine:lf,subPixelOptimizeRect:Mq,transformDirection:Eq,traverseElements:gm,traverseUpdateZ:RI,updateProps:vi},Symbol.toStringTag,{value:"Module"}));var vm={};function Nq(e,t){for(var r=0;r<on.length;r++){var i=on[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function M2(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ce(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var l={normal:s},c=0;c<on.length;c++){var u=on[c],h=t[u];l[u]=ne(i?i.getFormattedLabel(n,u,null,a,h&&h.get("formatter")):null,s)}return l}function Wf(e,t,r,i){r=r||vm;for(var n=e instanceof zr,a=!1,o=0;o<Og.length;o++){var s=t[Og[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?e:e.getTextContent();if(a){n||(l||(l=new zr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=M2(r,t),u=t.normal,h=!!u.getShallow("show"),d=zo(u,i&&i.normal,r,!1,!n);d.text=c.normal,n||e.setTextConfig(L2(u,r,!1));for(var o=0;o<on.length;o++){var f=on[o],s=t[f];if(s){var p=l.ensureState(f),g=!!ne(s.getShallow("show"),h);if(g!==h&&(p.ignore=!g),p.style=zo(s,i&&i[f],r,!0,!n),p.style.text=c[f],!n){var v=e.ensureState(f);v.textConfig=L2(s,r,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),r.enableTextSetter&&(mm(l).setLabelText=function(m){var b=M2(r,t,m);Nq(l,b)})}else l&&(l.ignore=!0);e.dirty()}function Gf(e,t){t=t||"label";for(var r={normal:e.getModel(t)},i=0;i<on.length;i++){var n=on[i];r[n]=e.getModel([n,t])}return r}function zo(e,t,r,i,n){var a={};return zq(a,e,r,i,n),t&&wt(a,t),a}function L2(e,t,r){t=t||{};var i={},n,a=e.getShallow("rotate"),o=ne(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return n=e.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function zq(e,t,r,i,n){r=r||vm;var a=t.ecModel,o=a&&a.option.textStyle,s=Hq(t),l;if(s){l={};var c="richInheritPlainLabel",u=ne(t.get(c),a?a.get(c):void 0);for(var h in s)if(s.hasOwnProperty(h)){var d=t.getModel(["rich",h]);P2(l[h]={},d,o,t,u,r,i,n,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var p=t.get("lineOverflow");p&&(e.lineOverflow=p);var g=e,v=t.get("minMargin");if(v!=null)v=He(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=lc.minMargin;else{var m=t.get("textMargin");m!=null&&(g.margin=L1(m),g.__marginType=lc.textMargin)}P2(e,t,o,null,null,r,i,n,!0,!1)}function Hq(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||vm).rich;if(r){t=t||{};for(var i=er(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var D2=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],E2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],I2=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function P2(e,t,r,i,n,a,o,s,l,c){r=!o&&r||vm;var u=a&&a.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),f=ne(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(u?h=u:h=null),(d==="inherit"||d==="auto")&&(u?d=u:d=null),s||(h=h||r.color,d=d||r.textBorderColor),h!=null&&(e.fill=h),d!=null&&(e.stroke=d);var p=ne(t.getShallow("textBorderWidth"),r.textBorderWidth);p!=null&&(e.lineWidth=p);var g=ne(t.getShallow("textBorderType"),r.textBorderType);g!=null&&(e.lineDash=g);var v=ne(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!o&&f==null&&!c&&(f=a&&a.defaultOpacity),f!=null&&(e.opacity=f),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var m=0;m<D2.length;m++){var b=D2[m],w=n!==!1&&i?Ks(t.getShallow(b),i.getShallow(b),r[b]):ne(t.getShallow(b),r[b]);w!=null&&(e[b]=w)}for(var m=0;m<E2.length;m++){var b=E2[m],w=t.getShallow(b);w!=null&&(e[b]=w)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!a.disableBox){for(var m=0;m<I2.length;m++){var b=I2[m],w=t.getShallow(b);w!=null&&(e[b]=w)}var k=t.getShallow("borderType");k!=null&&(e.borderDash=k),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function Wq(e,t){var r=t&&t.getModel("textStyle");return Kn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var mm=rr();function Gq(e,t,r,i){if(e){var n=mm(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var lc={minMargin:1,textMargin:2},qq=["textStyle","color"],p0=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],g0=new zr,Vq=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(qq):null)},e.prototype.getFont=function(){return Wq({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<p0.length;i++)r[p0[i]]=this.getShallow(p0[i]);return g0.useStyle(r),g0.update(),g0.getBoundingRect()},e})(),$I=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Uq=of($I),Yq=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Uq(this,t)},e})(),NI=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],jq=of(NI),Xq=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return jq(this,t,r)},e})(),nr=(function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){Re(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(xe(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!he.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e})();$1(nr);I9(nr);ha(nr,Yq);ha(nr,Xq);ha(nr,F9);ha(nr,Vq);var Zq=Math.round(Math.random()*10);function ym(e){return[e||"",Zq++].join("_")}function Kq(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=Jn(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=Jn(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Qq(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var c=r(o),u=c.graph,h=c.noEntryList,d={};for(Y(a,function(b){d[b]=!0});h.length;){var f=h.pop(),p=u[f],g=!!d[f];g&&(s.call(l,f,p.originalDeps.slice()),delete d[f]),Y(p.successor,g?m:v)}Y(d,function(){var b="";throw new Error(b)});function v(b){u[b].entryCount--,u[b].entryCount===0&&h.push(b)}function m(b){d[b]=!0,v(b)}};function r(a){var o={},s=[];return Y(a,function(l){var c=i(o,l),u=c.originalDeps=t(l),h=n(u,a);c.entryCount=h.length,c.entryCount===0&&s.push(l),Y(h,function(d){De(c.predecessor,d)<0&&c.predecessor.push(d);var f=i(o,d);De(f.successor,d)<0&&f.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return Y(a,function(l){De(o,l)>=0&&s.push(l)}),s}}function zI(e,t){return Re(Re({},e,!0),t,!0)}const Jq={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},tV={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Gg="ZH",rw="EN",yc=rw,Wp={},iw={},HI=he.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yc).toUpperCase();return e.indexOf(Gg)>-1?Gg:yc})():yc;function WI(e,t){e=e.toUpperCase(),iw[e]=new nr(t),Wp[e]=t}function eV(e){if(Ut(e)){var t=Wp[e.toUpperCase()]||{};return e===Gg||e===rw?xe(t):Re(xe(t),xe(Wp[yc]),!1)}else return Re(xe(e),xe(Wp[yc]),!1)}function rV(e){return iw[e]}function iV(){return iw[yc]}WI(rw,Jq);WI(Gg,tV);var nV=null;function qg(){return nV}var nw=1e3,aw=nw*60,Bh=aw*60,rn=Bh*24,B2=rn*365,aV={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Gp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},oV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Vd="{yyyy}-{MM}-{dd}",O2={year:"{yyyy}",month:"{yyyy}-{MM}",day:Vd,hour:Vd+" "+Gp.hour,minute:Vd+" "+Gp.minute,second:Vd+" "+Gp.second,millisecond:oV},rl=["year","month","day","hour","minute","second","millisecond"],sV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lV(e){return!Ut(e)&&!ce(e)?cV(e):e}function cV(e){e=e||{};var t={},r=!0;return Y(rl,function(i){r&&(r=e[i]==null)}),Y(rl,function(i,n){var a=e[i];t[i]={};for(var o=null,s=n;s>=0;s--){var l=rl[s],c=Qt(a)&&!It(a)?a[l]:a,u=void 0;It(c)?(u=c.slice(),o=u[0]||""):Ut(c)?(o=c,u=[o]):(o==null?o=Gp[i]:aV[l].test(o)||(o=t[l][l][0]+" "+o),u=[o],r&&(u[1]="{primary|"+o+"}")),t[i][l]=u}}),t}function ao(e,t){return e+="","0000".substr(0,t-e.length)+e}function Oh(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function uV(e){return e===Oh(e)}function hV(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _m(e,t,r,i){var n=Xc(e),a=n[GI(r)](),o=n[ow(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[sw(r)](),c=n["get"+(r?"UTC":"")+"Day"](),u=n[lw(r)](),h=(u-1)%12+1,d=n[cw(r)](),f=n[uw(r)](),p=n[hw(r)](),g=u>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof nr?i:rV(i||HI)||iV(),b=m.getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),k=b.get("dayOfWeek"),M=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ao(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ao(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ao(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,k[c]).replace(/{ee}/g,M[c]).replace(/{e}/g,c+"").replace(/{HH}/g,ao(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,ao(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ao(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ao(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ao(p,3)).replace(/{S}/g,p+"")}function fV(e,t,r,i,n){var a=null;if(Ut(r))a=r;else if(ce(r)){var o={time:e.time,level:e.time.level},s=qg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var c=r[l.lowerTimeUnit][l.upperTimeUnit];a=c[Math.min(l.level,c.length-1)]||""}else{var u=Vg(e.value,n);a=r[u][u][0]}}return _m(new Date(e.value),a,n,i)}function Vg(e,t){var r=Xc(e),i=r[ow(t)]()+1,n=r[sw(t)](),a=r[lw(t)](),o=r[cw(t)](),s=r[uw(t)](),l=r[hw(t)](),c=l===0,u=c&&s===0,h=u&&o===0,d=h&&a===0,f=d&&n===1,p=f&&i===1;return p?"year":f?"month":d?"day":h?"hour":u?"minute":c?"second":"millisecond"}function wb(e,t,r){switch(t){case"year":e[qI(r)](0);case"month":e[VI(r)](1);case"day":e[UI(r)](0);case"hour":e[YI(r)](0);case"minute":e[jI(r)](0);case"second":e[XI(r)](0)}return e}function GI(e){return e?"getUTCFullYear":"getFullYear"}function ow(e){return e?"getUTCMonth":"getMonth"}function sw(e){return e?"getUTCDate":"getDate"}function lw(e){return e?"getUTCHours":"getHours"}function cw(e){return e?"getUTCMinutes":"getMinutes"}function uw(e){return e?"getUTCSeconds":"getSeconds"}function hw(e){return e?"getUTCMilliseconds":"getMilliseconds"}function dV(e){return e?"setUTCFullYear":"setFullYear"}function qI(e){return e?"setUTCMonth":"setMonth"}function VI(e){return e?"setUTCDate":"setDate"}function UI(e){return e?"setUTCHours":"setHours"}function YI(e){return e?"setUTCMinutes":"setMinutes"}function jI(e){return e?"setUTCSeconds":"setSeconds"}function XI(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ZI(e){if(!l9(e))return Ut(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function KI(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bm=L1;function Sb(e,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(u){return u&&Kn(u)?u:"-"}function a(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Xc(e):e;if(isNaN(+l)){if(s)return"-"}else return _m(l,i,r)}if(t==="ordinal")return F_(e)?n(e):He(e)&&a(e)?e+"":"-";var c=Pg(e);return a(c)?ZI(c):F_(e)?n(e):typeof e=="boolean"?e+"":"-"}var R2=["a","b","c","d","e","f","g"],v0=function(e,t){return"{"+e+(t??"")+"}"};function QI(e,t,r){It(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=R2[a];e=e.replace(v0(o),v0(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var c=t[s][n[l]];e=e.replace(v0(R2[l],s),r?xi(c):c)}return e}function pV(e,t){var r=Ut(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xi(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xi(i)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ul(e,t){return t=t||"transparent",Ut(e)?e:Qt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function F2(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var qp={},m0={},fw=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=i(qp),this._normalMasterList=i(m0);function i(n,a){var o=[];return Y(n,function(s,l){var c=s.create(t,r);o=o.concat(c||[])}),o}},e.prototype.update=function(t,r){Y(this._normalMasterList,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){qp[t]=r;return}m0[t]=r},e.get=function(t){return m0[t]||qp[t]},e})();function gV(e){return!!qp[e]}var Cb={coord:1,coord2:2};function vV(e){JI.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var JI=me();function mV(e){var t=e.getShallow("coord",!0),r=Cb.coord;if(t==null){var i=JI.get(e.type);i&&i.getCoord2&&(r=Cb.coord2,t=i.getCoord2(e))}return{coord:t,from:r}}var Da={none:0,dataCoordSys:1,boxCoordSys:2};function yV(e,t){var r=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),n=Da.none;if(r){var a=e.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=Da.dataCoordSys,a||(n=Da.none)):i==="box"&&(n=Da.boxCoordSys,!a&&!gV(r)&&(n=Da.none))}return{coordSysType:r,kind:n}}function _V(e){var t=e.targetModel,r=e.coordSysType,i=e.coordSysProvider,n=e.isDefaultDataCoordSys,a=yV(t),o=a.kind,s=a.coordSysType;if(n&&o!==Da.dataCoordSys&&(o=Da.dataCoordSys,s=r),o===Da.none||s!==r)return!1;var l=i(r,t);return l?(o===Da.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var Vp=Y,bV=["left","right","top","bottom","width","height"],Ud=[["width","left","right"],["height","top","bottom"]];function dw(e,t,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,c){var u=l.getBoundingRect(),h=t.childAt(c+1),d=h&&h.getBoundingRect(),f,p;if(e==="horizontal"){var g=u.width+(d?-d.x+u.x:0);f=a+g,f>i||l.newline?(a=0,f=g,o+=s+r,s=u.height):s=Math.max(s,u.height)}else{var v=u.height+(d?-d.y+u.y:0);p=o+v,p>n||l.newline?(a+=s+r,o=0,p=v,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=f+r:o=p+r)})}var Rh=dw;fr(dw,"vertical");fr(dw,"horizontal");function xV(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function wV(e,t){var r=xm(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),n,a;if(r.type===eh.point)a=r.refPoint,n=Ho(i,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=It(o)?o:[o,o];n=Ho(i,r.refContainer),a=r.boxCoordFrom===Cb.coord2?r.refPoint:[tr(s[0],n.width)+n.x,tr(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function SV(e,t){var r=wV(e,t),i=r.viewRect,n=r.center,a=e.get("radius");It(a)||(a=[0,a]);var o=tr(i.width,t.getWidth()),s=tr(i.height,t.getHeight()),l=Math.min(o,s),c=tr(a[0],l/2),u=tr(a[1],l/2);return{cx:n[0],cy:n[1],r0:c,r:u,viewRect:i}}function Ho(e,t,r){r=bm(r||0);var i=t.width,n=t.height,a=tr(e.left,i),o=tr(e.top,n),s=tr(e.right,i),l=tr(e.bottom,n),c=tr(e.width,i),u=tr(e.height,n),h=r[2]+r[0],d=r[1]+r[3],f=e.aspect;switch(isNaN(c)&&(c=i-s-d-a),isNaN(u)&&(u=n-l-h-o),f!=null&&(isNaN(c)&&isNaN(u)&&(f>i/n?c=i*.8:u=n*.8),isNaN(c)&&(c=f*u),isNaN(u)&&(u=c/f)),isNaN(a)&&(a=i-s-c-d),isNaN(o)&&(o=n-l-u-h),e.left||e.right){case"center":a=i/2-c/2-r[3];break;case"right":a=i-c-d;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-u/2-r[0];break;case"bottom":o=n-u-h;break}a=a||0,o=o||0,isNaN(c)&&(c=i-d-a-(s||0)),isNaN(u)&&(u=n-h-o-(l||0));var p=new ge((t.x||0)+a+r[3],(t.y||0)+o+r[0],c,u);return p.margin=r,p}var eh={rect:1,point:2};function xm(e,t,r){var i,n,a,o=e.boxCoordinateSystem,s;if(o){var l=mV(e),c=l.coord,u=l.from;if(o.dataToLayout){a=eh.rect,s=u;var h=o.dataToLayout(c);i=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=eh.point,s=u,n=o.dataToPoint(c))}return a==null&&(a=eh.rect),a===eh.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function uf(e){var t=e.layoutMode||e.constructor.layoutMode;return Qt(t)?t:t?{type:t}:null}function Wo(e,t,r){var i=r&&r.ignoreSize;!It(i)&&(i=[i,i]);var n=o(Ud[0],0),a=o(Ud[1],1);l(Ud[0],e,n),l(Ud[1],e,a);function o(c,u){var h={},d=0,f={},p=0,g=2;if(Vp(c,function(b){f[b]=e[b]}),Vp(c,function(b){Tn(t,b)&&(h[b]=f[b]=t[b]),s(h,b)&&d++,s(f,b)&&p++}),i[u])return s(t,c[1])?f[c[2]]=null:s(t,c[2])&&(f[c[1]]=null),f;if(p===g||!d)return f;if(d>=g)return h;for(var v=0;v<c.length;v++){var m=c[v];if(!Tn(h,m)&&Tn(e,m)){h[m]=e[m];break}}return h}function s(c,u){return c[u]!=null&&c[u]!=="auto"}function l(c,u,h){Vp(c,function(d){u[d]=h[d]})}}function qf(e){return CV({},e)}function CV(e,t){return t&&e&&Vp(bV,function(r){Tn(t,r)&&(e[r]=t[r])}),e}var TV=rr(),Ne=(function(e){kt(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=ym("ec_cpt_model"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=uf(this),a=n?qf(r):{},o=i.getTheme();Re(r,o.get(this.mainType)),Re(r,this.getDefaultOption()),n&&Wo(r,a,n)},t.prototype.mergeOption=function(r,i){Re(this.option,r,!0);var n=uf(this);n&&Wo(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!L9(r))return r.defaultOption;var i=TV(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=Re(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Nf(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return xV(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(nr);eI(Ne,nr);om(Ne);Kq(Ne);Qq(Ne,kV);function kV(e){var t=[];return Y(Ne.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=te(t,function(r){return Jn(r).main}),e!=="dataset"&&De(t,"dataset")<=0&&t.unshift("dataset"),t}var jt={color:{},darkColor:{},size:{}},sr=jt.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};wt(sr,{primary:sr.neutral80,secondary:sr.neutral70,tertiary:sr.neutral60,quaternary:sr.neutral50,disabled:sr.neutral20,border:sr.neutral30,borderTint:sr.neutral20,borderShade:sr.neutral40,background:sr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:sr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:sr.neutral70,axisLineTint:sr.neutral40,axisTick:sr.neutral70,axisTickMinor:sr.neutral60,axisLabel:sr.neutral70,axisSplitLine:sr.neutral15,axisMinorSplitLine:sr.neutral05});for(var Ts in sr)if(sr.hasOwnProperty(Ts)){var $2=sr[Ts];Ts==="theme"?jt.darkColor.theme=sr.theme.slice():Ts==="highlight"?jt.darkColor.highlight="rgba(255,231,130,0.4)":Ts.indexOf("accent")===0?jt.darkColor[Ts]=Z_($2,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):jt.darkColor[Ts]=Z_($2,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}jt.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var tP="";typeof navigator<"u"&&(tP=navigator.platform||"");var Hl="rgba(0, 0, 0, 0.2)",eP=jt.color.theme[0],AV=Z_(eP,null,null,.9);const MV={darkMode:"auto",colorBy:"series",color:jt.color.theme,gradientColor:[AV,eP],aria:{decal:{decals:[{color:Hl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Hl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Hl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Hl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Hl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Hl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:tP.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var rP=me(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Wi="original",Jr="arrayRows",hn="objectRows",In="keyedColumns",Eo="typedArray",iP="unknown",oa="column",wl="row",Br={Must:1,Might:2,Not:3},nP=rr();function LV(e){nP(e).datasetMap=me()}function DV(e,t,r){var i={},n=pw(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,l=nP(s).datasetMap,c=n.uid+"_"+r.seriesLayoutBy,u,h;e=e.slice(),Y(e,function(g,v){var m=Qt(g)?g:e[v]={name:g};m.type==="ordinal"&&u==null&&(u=v,h=p(m)),i[m.name]=[]});var d=l.get(c)||l.set(c,{categoryWayDim:h,valueWayDim:0});Y(e,function(g,v){var m=g.name,b=p(g);if(u==null){var w=d.valueWayDim;f(i[m],w,b),f(o,w,b),d.valueWayDim+=b}else if(u===v)f(i[m],0,b),f(a,0,b);else{var w=d.categoryWayDim;f(i[m],w,b),f(o,w,b),d.categoryWayDim+=b}});function f(g,v,m){for(var b=0;b<m;b++)g.push(v+b)}function p(g){var v=g.dimsDef;return v?v.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function EV(e,t,r){var i={},n=pw(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===hn||a===In)&&Y(o,function(u,h){(Qt(u)?u.name:u)==="name"&&(s=h)});var l=(function(){for(var u={},h={},d=[],f=0,p=Math.min(5,r);f<p;f++){var g=oP(t.data,a,t.seriesLayoutBy,o,t.startIndex,f);d.push(g);var v=g===Br.Not;if(v&&u.v==null&&f!==s&&(u.v=f),(u.n==null||u.n===u.v||!v&&d[u.n]===Br.Not)&&(u.n=f),m(u)&&d[u.n]!==Br.Not)return u;v||(g===Br.Might&&h.v==null&&f!==s&&(h.v=f),(h.n==null||h.n===h.v)&&(h.n=f))}function m(b){return b.v!=null&&b.n!=null}return m(u)?u:m(h)?h:null})();if(l){i.value=[l.v];var c=s??l.n;i.itemName=[c],i.seriesName=[c]}return i}function pw(e){var t=e.get("data",!0);if(!t)return Nf(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},en).models[0]}function IV(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Nf(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},en).models}function aP(e,t){return oP(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function oP(e,t,r,i,n,a){var o,s=5;if(Di(e))return Br.Not;var l,c;if(i){var u=i[a];Qt(u)?(l=u.name,c=u.type):Ut(u)&&(l=u)}if(c!=null)return c==="ordinal"?Br.Must:Br.Not;if(t===Jr){var h=e;if(r===wl){for(var d=h[a],f=0;f<(d||[]).length&&f<s;f++)if((o=S(d[n+f]))!=null)return o}else for(var f=0;f<h.length&&f<s;f++){var p=h[n+f];if(p&&(o=S(p[a]))!=null)return o}}else if(t===hn){var g=e;if(!l)return Br.Not;for(var f=0;f<g.length&&f<s;f++){var v=g[f];if(v&&(o=S(v[l]))!=null)return o}}else if(t===In){var m=e;if(!l)return Br.Not;var d=m[l];if(!d||Di(d))return Br.Not;for(var f=0;f<d.length&&f<s;f++)if((o=S(d[f]))!=null)return o}else if(t===Wi)for(var b=e,f=0;f<b.length&&f<s;f++){var v=b[f],w=$f(v);if(!It(w))return Br.Not;if((o=S(w[a]))!=null)return o}function S(k){var M=Ut(k);if(k!=null&&Number.isFinite(Number(k))&&k!=="")return M?Br.Might:Br.Not;if(M&&k!=="-")return Br.Must}return Br.Not}var PV=me();function BV(e,t,r){var i=PV.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var N2=rr();rr();var gw=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=gi(this.get("color",!0)),a=this.get("colorLayer",!0);return RV(this,N2,n,a,t,r,i)},e.prototype.clearColorPalette=function(){FV(this,N2)},e})();function OV(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function RV(e,t,r,i,n,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(n))return c[n];var u=o==null||!i?r:OV(i,o);if(u=u||r,!(!u||!u.length)){var h=u[l];return n&&(c[n]=h),s.paletteIdx=(l+1)%u.length,h}}function FV(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Yd,Tu,z2,H2="\0_ec_inner",$V=1,vw=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new nr(a),this._locale=new nr(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=q2(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,q2(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?z2(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&Y(l,function(c){n=!0,this._mergeOption(c,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=me(),c=i&&i.replaceMergeMainTypeMap;LV(this),Y(r,function(h,d){h!=null&&(Ne.hasClass(d)?d&&(s.push(d),l.set(d,!0)):n[d]=n[d]==null?xe(h):Re(n[d],h,!0))}),c&&c.each(function(h,d){Ne.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Ne.topologicalTravel(s,Ne.getAllClassMainTypes(),u,this);function u(h){var d=BV(this,h,gi(r[h])),f=a.get(h),p=f?c&&c.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=p9(f,d,p);x9(g,h,Ne),n[h]=null,a.set(h,null),o.set(h,0);var v=[],m=[],b=0,w;Y(g,function(S,k){var M=S.existing,T=S.newOption;if(!T)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var I=h==="series",B=Ne.getClass(h,S.keyInfo.subType,!I);if(!B)return;if(h==="tooltip"){if(w)return;w=!0}if(M&&M.constructor===B)M.name=S.keyInfo.name,M.mergeOption(T,this),M.optionUpdated(T,!1);else{var R=wt({componentIndex:k},S.keyInfo);M=new B(T,this,this,R),wt(M,R),S.brandNew&&(M.__requireNewView=!0),M.init(T,this,this),M.optionUpdated(null,!0)}}M?(v.push(M.option),m.push(M),b++):(v.push(void 0),m.push(void 0))},this),n[h]=v,a.set(h,m),o.set(h,b),h==="series"&&Yd(this)}this._seriesIndices||Yd(this)},t.prototype.getOption=function(){var r=xe(this.option);return Y(r,function(i,n){if(Ne.hasClass(n)){for(var a=gi(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!af(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[H2],r},t.prototype.setTheme=function(r){this._theme=new nr(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],Y(gi(n),function(c){s[c]&&l.push(s[c])})):a!=null?l=W2("id",a,s):o!=null?l=W2("name",o,s):l=Dr(s,function(c){return!!c}),G2(l,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):Dr(this._componentsMap.get(n),function(c){return!!c});return l(G2(o,r));function s(c){var u=n+"Index",h=n+"Id",d=n+"Name";return c&&(c[u]!=null||c[h]!=null||c[d]!=null)?{mainType:n,index:c[u],id:c[h],name:c[d]}:null}function l(c){return r.filter?Dr(c,r.filter):c}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(ce(r)){var o=i,s=r;a.each(function(h,d){for(var f=0;h&&f<h.length;f++){var p=h[f];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=Ut(r)?a.get(r):Qt(r)?this.findComponents(r):null,c=0;l&&c<l.length;c++){var u=l[c];u&&i.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=aa(r,null);return Dr(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Dr(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return Dr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,i){Tu(this),Y(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){Y(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){Tu(this),Y(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return Y(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return Tu(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){Tu(this);var n=[];Y(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=me(n)},t.prototype.restoreData=function(r){Yd(this);var i=this._componentsMap,n=[];i.each(function(a,o){Ne.hasClass(o)&&n.push(o)}),Ne.topologicalTravel(n,Ne.getAllClassMainTypes(),function(a){Y(i.get(a),function(o){o&&(a!=="series"||!NV(o,r))&&o.restoreData()})})},t.internalField=(function(){Yd=function(r){var i=r._seriesIndices=[];Y(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=me(i)},Tu=function(r){},z2=function(r,i){r.option={},r.option[H2]=$V,r._componentsMap=me({series:[]}),r._componentsCount=me();var n=i.aria;Qt(n)&&n.enabled==null&&(n.enabled=!0),zV(i,r._theme.option),Re(i,MV,!1),r._mergeOption(i,null)}})(),t})(nr);function NV(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function zV(e,t){var r=e.color&&!e.colorLayer;Y(t,function(i,n){n==="colorLayer"&&r||n==="color"&&e.color||Ne.hasClass(n)||(typeof i=="object"?e[n]=e[n]?Re(e[n],i,!1):xe(i):e[n]==null&&(e[n]=i))})}function W2(e,t,r){if(It(t)){var i=me();return Y(t,function(a){if(a!=null){var o=aa(a,null);o!=null&&i.set(a,!0)}}),Dr(r,function(a){return a&&i.get(a[e])})}else{var n=aa(t,null);return Dr(r,function(a){return a&&n!=null&&a[e]===n})}}function G2(e,t){return t.hasOwnProperty("subType")?Dr(e,function(r){return r&&r.subType===t.subType}):e}function q2(e){var t=me();return e&&Y(gi(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ha(vw,gw);var HV=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],sP=(function(){function e(t){Y(HV,function(r){this[r]=ze(t[r],t)},this)}return e})(),WV=/^(min|max)?(.+)$/,GV=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(Y(gi(t.series),function(o){o&&o.data&&Di(o.data)&&$_(o.data)}),Y(gi(t.dataset),function(o){o&&o.source&&Di(o.source)&&$_(o.source)})),t=xe(t);var n=this._optionBackup,a=qV(t,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],xe(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(r=xe(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,c=n.length;l<c;l++)VV(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!YV(o,this._currentMediaIndices)&&(s=te(o,function(u){return xe(u===-1?a.option:n[u].option)})),this._currentMediaIndices=o,s},e})();function qV(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||u)&&(e.options=e.media=null),a=e),u&&It(c)&&Y(c,function(f){f&&f.option&&(f.query?i.push(f):n||(n=f))}),d(a),Y(l,function(f){return d(f)}),Y(i,function(f){return d(f.option)});function d(f){Y(t,function(p){p(f,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function VV(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return Y(e,function(a,o){var s=o.match(WV);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();UV(i[c],a,l)||(n=!1)}}),n}function UV(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function YV(e,t){return e.join(",")===t.join(",")}var gn=Y,hf=Qt,V2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function y0(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=V2.length;r<i;r++){var n=V2[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?Re(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?Re(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function Yr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,We(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function rh(e){Yr(e,"itemStyle"),Yr(e,"lineStyle"),Yr(e,"areaStyle"),Yr(e,"label"),Yr(e,"labelLine"),Yr(e,"upperLabel"),Yr(e,"edgeLabel")}function hr(e,t){var r=hf(e)&&e[t],i=hf(r)&&r.textStyle;if(i)for(var n=0,a=qT.length;n<a;n++){var o=qT[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Xi(e){e&&(rh(e),hr(e,"label"),e.emphasis&&hr(e.emphasis,"label"))}function jV(e){if(hf(e)){y0(e),rh(e),hr(e,"label"),hr(e,"upperLabel"),hr(e,"edgeLabel"),e.emphasis&&(hr(e.emphasis,"label"),hr(e.emphasis,"upperLabel"),hr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(y0(t),Xi(t));var r=e.markLine;r&&(y0(r),Xi(r));var i=e.markArea;i&&Xi(i);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!Di(a))for(var o=0;o<a.length;o++)Xi(a[o]);Y(e.categories,function(c){rh(c)})}if(n&&!Di(n))for(var o=0;o<n.length;o++)Xi(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Xi(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)It(l[o])?(Xi(l[o][0]),Xi(l[o][1])):Xi(l[o]);e.type==="gauge"?(hr(e,"axisLabel"),hr(e,"title"),hr(e,"detail")):e.type==="treemap"?(Yr(e.breadcrumb,"itemStyle"),Y(e.levels,function(c){rh(c)})):e.type==="tree"&&rh(e.leaves)}}function _a(e){return It(e)?e:e?[e]:[]}function U2(e){return(It(e)?e[0]:e)||{}}function XV(e,t){gn(_a(e.series),function(i){hf(i)&&jV(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),gn(r,function(i){gn(_a(e[i]),function(n){n&&(hr(n,"axisLabel"),hr(n.axisPointer,"label"))})}),gn(_a(e.parallel),function(i){var n=i&&i.parallelAxisDefault;hr(n,"axisLabel"),hr(n&&n.axisPointer,"label")}),gn(_a(e.calendar),function(i){Yr(i,"itemStyle"),hr(i,"dayLabel"),hr(i,"monthLabel"),hr(i,"yearLabel")}),gn(_a(e.radar),function(i){hr(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),gn(_a(e.geo),function(i){hf(i)&&(Xi(i),gn(_a(i.regions),function(n){Xi(n)}))}),gn(_a(e.timeline),function(i){Xi(i),Yr(i,"label"),Yr(i,"itemStyle"),Yr(i,"controlStyle",!0);var n=i.data;It(n)&&Y(n,function(a){Qt(a)&&(Yr(a,"label"),Yr(a,"itemStyle"))})}),gn(_a(e.toolbox),function(i){Yr(i,"iconStyle"),gn(i.feature,function(n){Yr(n,"iconStyle")})}),hr(U2(e.axisPointer),"label"),hr(U2(e.tooltip).axisPointer,"label")}function ZV(e,t){for(var r=t.split(","),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function KV(e,t,r,i){for(var n=t.split(","),a=e,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=r)}function Y2(e){e&&Y(QV,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var QV=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],JV=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_0=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ku(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<_0.length;r++){var i=_0[r][1],n=_0[r][0];t[i]!=null&&(t[n]=t[i])}}function j2(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function X2(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function t7(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function lP(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&lP(e[r].children,t)}function cP(e,t){XV(e,t),e.series=gi(e.series),Y(e.series,function(r){if(Qt(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),j2(r.label);var n=r.data;if(n&&!Di(n))for(var a=0;a<n.length;a++)j2(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=ZV(r,"pointer.color");o!=null&&KV(r,"itemStyle.color",o)}else if(i==="bar"){ku(r),ku(r.backgroundStyle),ku(r.emphasis);var n=r.data;if(n&&!Di(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(ku(n[a]),ku(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),X2(r),lP(r.data,X2)}else i==="graph"||i==="sankey"?t7(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&We(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Y2(r)}}),e.dataRange&&(e.visualMap=e.dataRange),Y(JV,function(r){var i=e[r];i&&(It(i)||(i=[i]),Y(i,function(n){Y2(n)}))})}function e7(e){var t=me();e.eachSeries(function(r){var i=r.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),Y(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),r7(r)}})}function r7(e){Y(e,function(t,r){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(c,u,h){var d=o.get(t.stackedDimension,h);if(isNaN(d))return n;var f,p;s?p=o.getRawIndex(h):f=o.get(t.stackedByDimension,h);for(var g=NaN,v=r-1;v>=0;v--){var m=e[v];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,f)),p>=0){var b=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=a9(d,b),g=b;break}}}return i[0]=d,i[1]=g,i})})}var wm=(function(){function e(t){this.data=t.data||(t.sourceFormat===In?{}:[]),this.sourceFormat=t.sourceFormat||iP,this.seriesLayoutBy=t.seriesLayoutBy||oa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&aP(this,i)===Br.Must&&(n.type="ordinal")}}return e})();function mw(e){return e instanceof wm}function Tb(e,t,r){r=r||hP(e);var i=t.seriesLayoutBy,n=n7(e,r,i,t.sourceHeader,t.dimensions),a=new wm({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:xe(t)});return a}function uP(e){return new wm({data:e,sourceFormat:Di(e)?Eo:Wi})}function i7(e){return new wm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:xe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function hP(e){var t=iP;if(Di(e))t=Eo;else if(It(e)){e.length===0&&(t=Jr);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(It(n)||Di(n)){t=Jr;break}else if(Qt(n)){t=hn;break}}}}else if(Qt(e)){for(var a in e)if(Tn(e,a)&&Li(e[a])){t=In;break}}return t}function n7(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:Z2(n),startIndex:o,dimensionsDetectedCount:a};if(t===Jr){var s=e;i==="auto"||i==null?K2(function(c){c!=null&&c!=="-"&&(Ut(c)?o==null&&(o=1):o=0)},r,s,10):o=He(i)?i:i?1:0,!n&&o===1&&(n=[],K2(function(c,u){n[u]=c!=null?c+"":""},r,s,1/0)),a=n?n.length:r===wl?s.length:s[0]?s[0].length:null}else if(t===hn)n||(n=a7(e));else if(t===In)n||(n=[],Y(e,function(c,u){n.push(u)}));else if(t===Wi){var l=$f(e[0]);a=It(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Z2(n),dimensionsDetectedCount:a}}function a7(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return er(r)}function Z2(e){if(e){var t=me();return te(e,function(r,i){r=Qt(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function K2(e,t,r,i){if(t===wl)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function fP(e){var t=e.sourceFormat;return t===hn||t===In}var ks,As,Ms,Ls,Q2,J2,dP=(function(){function e(t,r){var i=mw(t)?t:uP(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===Eo&&(this._offset=0,this._dimSize=r,this._data=n),J2(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;J2=function(o,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,h=l.startIndex,d=l.dimensionsDefine,f=Q2[yw(c,u)];if(wt(o,f),c===Eo)o.getItem=r,o.count=n,o.fillStorage=i;else{var p=pP(c,u);o.getItem=ze(p,null,s,h,d);var g=gP(c,u);o.count=ze(g,null,s,h,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*o,h=0;h<c;h++)s[h]=l[u+h];return s},i=function(o,s,l,c){for(var u=this._data,h=this._dimSize,d=0;d<h;d++){for(var f=c[d],p=f[0]==null?1/0:f[0],g=f[1]==null?-1/0:f[1],v=s-o,m=l[d],b=0;b<v;b++){var w=u[b*h+d];m[o+b]=w,w<p&&(p=w),w>g&&(g=w)}f[0]=p,f[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};Q2=(t={},t[Jr+"_"+oa]={pure:!0,appendData:a},t[Jr+"_"+wl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[hn]={pure:!0,appendData:a},t[In]={pure:!0,appendData:function(o){var s=this._data;Y(o,function(l,c){for(var u=s[c]||(s[c]=[]),h=0;h<(l||[]).length;h++)u.push(l[h])})}},t[Wi]={appendData:a},t[Eo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),jd=function(e){It(e)||ZE("series.data or dataset.source must be an array.")};ks={},ks[Jr+"_"+oa]=jd,ks[Jr+"_"+wl]=jd,ks[hn]=jd,ks[In]=function(e,t){for(var r=0;r<t.length;r++){var i=t[r].name;i==null&&ZE("dimension name must not be null/undefined.")}},ks[Wi]=jd;var tk=function(e,t,r,i){return e[i]},o7=(As={},As[Jr+"_"+oa]=function(e,t,r,i){return e[i+t]},As[Jr+"_"+wl]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},As[hn]=tk,As[In]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;a[o]=l?l[i]:null}return a},As[Wi]=tk,As);function pP(e,t){var r=o7[yw(e,t)];return r}var ek=function(e,t,r){return e.length},s7=(Ms={},Ms[Jr+"_"+oa]=function(e,t,r){return Math.max(0,e.length-t)},Ms[Jr+"_"+wl]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},Ms[hn]=ek,Ms[In]=function(e,t,r){var i=r[0].name,n=i!=null?e[i]:null;return n?n.length:0},Ms[Wi]=ek,Ms);function gP(e,t){var r=s7[yw(e,t)];return r}var b0=function(e,t,r){return e[t]},l7=(Ls={},Ls[Jr]=b0,Ls[hn]=function(e,t,r){return e[r]},Ls[In]=b0,Ls[Wi]=function(e,t,r){var i=$f(e);return i instanceof Array?i[t]:i},Ls[Eo]=b0,Ls);function vP(e){var t=l7[e];return t}function yw(e,t){return e===Jr?e+"_"+t:e}function Oc(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return vP(a)(i,o,s)}else{var l=i;return a===Wi&&(l=$f(i)),l}}}}var c7=/\{@(.+?)\}/g,u7=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),c=l&&l[i.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,h=this.mainType,d=h==="series",f=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:c,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&It(l.value)&&(l.value=l.value[n]),!a){var c=s.getItemModel(t);a=c.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ce(a))return l.status=r,l.dimensionIndex=n,a(l);if(Ut(a)){var u=QI(a,l);return u.replace(c7,function(h,d){var f=d.length,p=d;p.charAt(0)==="["&&p.charAt(f-1)==="]"&&(p=+p.slice(1,f-1));var g=Oc(s,t,p);if(o&&It(o.interpolatedValue)){var v=s.getDimensionIndex(p);v>=0&&(g=o.interpolatedValue[v])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Oc(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e})();function rk(e){var t,r;return Qt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Fh(e){return new h7(e)}var h7=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;(o!==l||s!==c)&&(a="reset");function u(b){return!(b>=1)&&(b=1),b}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=c;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(h||f<p)){var g=this._progress;if(It(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,p,l,c);else this._doProgress(g,f,p,l,c)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,i,n,a){ik.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:ik.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),It(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),ik=(function(){var e,t,r,i,n,a={reset:function(l,c,u,h){t=l,e=c,r=u,i=h,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%n*r+Math.ceil(t/n),c=t>=e?null:l<i?l:t;return t++,c}})();function Up(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!He(e)&&e!=null&&e!=="-"&&(e=+Xc(e)),e==null||e===""?NaN:Number(e))}me({number:function(e){return parseFloat(e)},time:function(e){return+Xc(e)},trim:function(e){return Ut(e)?Kn(e):e}});var f7=(function(){function e(t,r){var i=t==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=He(t)?t:Pg(t),n=He(r)?r:Pg(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=Ut(t),l=Ut(r);s&&(i=l?t:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e})(),d7=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Up(t,r)},e})();function p7(e,t){var r=new d7,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==oa&&Si(o);var s=[],l={},c=e.dimensionsDefine;if(c)Y(c,function(g,v){var m=g.name,b={index:v,name:m,displayName:g.displayName};if(s.push(b),m!=null){var w="";Tn(l,m)&&Si(w),l[m]=b}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var h=pP(n,oa);t.__isBuiltIn&&(r.getRawDataItem=function(g){return h(i,a,s,g)},r.getRawData=ze(g7,null,e)),r.cloneRawData=ze(v7,null,e);var d=gP(n,oa);r.count=ze(d,null,i,a,s);var f=vP(n);r.retrieveValue=function(g,v){var m=h(i,a,s,g);return p(m,v)};var p=r.retrieveValueFromItem=function(g,v){if(g!=null){var m=s[v];if(m)return f(g,v,m.name)}};return r.getDimensionInfo=ze(m7,null,s,l),r.cloneAllDimensionInfo=ze(y7,null,s),r}function g7(e){var t=e.sourceFormat;if(!_w(t)){var r="";Si(r)}return e.data}function v7(e){var t=e.sourceFormat,r=e.data;if(!_w(t)){var i="";Si(i)}if(t===Jr){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===hn){for(var n=[],a=0,o=r.length;a<o;a++)n.push(wt({},r[a]));return n}}function m7(e,t,r){if(r!=null){if(He(r)||!isNaN(r)&&!Tn(t,r))return e[r];if(Tn(t,r))return t[r]}}function y7(e){return xe(e)}var mP=me();function _7(e){e=xe(e);var t=e.type,r="";t||Si(r);var i=t.split(":");i.length!==2&&Si(r);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),e.__isBuiltIn=n,mP.set(t,e)}function b7(e,t,r){var i=gi(e),n=i.length,a="";n||Si(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=x7(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function x7(e,t,r,i){var n="";t.length||Si(n),Qt(e)||Si(n);var a=e.type,o=mP.get(a);o||Si(n);var s=te(t,function(c){return p7(c,o)}),l=gi(o.transform({upstream:s[0],upstreamList:s,config:xe(e.config)}));return te(l,function(c,u){var h="";Qt(c)||Si(h),c.data||Si(h);var d=hP(c.data);_w(d)||Si(h);var f,p=t[0];if(p&&u===0&&!c.dimensions){var g=p.startIndex;g&&(c.data=p.data.slice(0,g).concat(c.data)),f={seriesLayoutBy:oa,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else f={seriesLayoutBy:oa,sourceHeader:0,dimensions:c.dimensions};return Tb(c.data,f,null)})}function _w(e){return e===Jr||e===hn}var Sm="undefined",w7=typeof Uint32Array===Sm?Array:Uint32Array,S7=typeof Uint16Array===Sm?Array:Uint16Array,yP=typeof Int32Array===Sm?Array:Int32Array,nk=typeof Float64Array===Sm?Array:Float64Array,_P={float:nk,int:yP,ordinal:Array,number:Array,time:nk},x0;function Wl(e){return e>65535?w7:S7}function Gl(){return[1/0,-1/0]}function C7(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ak(e,t,r,i,n){var a=_P[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var l=new a(i),c=0;c<s;c++)l[c]=o[c];e[t]=l}}else e[t]=new a(i)}var kb=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=me()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=x0[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],fP(n),this._dimensions=te(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new _P[r||"float"](this._rawCount),this._rawExtent[a]=Gl(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Gl());for(var l=a[t],c=o;c<s;c++){var u=i[c]=r.parseAndCollect(i[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),c=0;c<a;c++){var u=n[c];ak(i,c,u.type,l,!0)}for(var h=[],d=s;d<l;d++)for(var f=d-s,p=0;p<a;p++){var u=n[p],g=x0.arrayRows.call(this,t[f]||h,u.property,f,p);i[p][d]=g;var v=o[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,c=te(o,function(b){return b.property}),u=0;u<s;u++){var h=o[u];l[u]||(l[u]=Gl()),ak(a,u,h.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,l);else for(var d=[],f=t;f<r;f++){d=n.getItem(f,d);for(var p=0;p<s;p++){var g=a[p],v=this._dimValueGetter(d,c[p],f,p);g[f]=v;var m=l[p];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var i=r.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Wl(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Wl(i._rawCount),o=new a(n),s=[],l=t.length,c=0,u=t[0],h=i._chunks,d=0;d<n;d++){var f=void 0,p=i.getRawIndex(d);if(l===0)f=r(d);else if(l===1){var g=h[u][p];f=r(g,d)}else{for(var v=0;v<l;v++)s[v]=h[t[v]][p];s[v]=d,f=r.apply(null,s)}f&&(o[c++]=p)}return c<n&&(i._indices=o),i._count=c,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=er(t),a=n.length;if(!a)return this;var o=r.count(),s=Wl(r._rawCount),l=new s(o),c=0,u=n[0],h=t[u][0],d=t[u][1],f=r._chunks,p=!1;if(!r._indices){var g=0;if(a===1){for(var v=f[n[0]],m=0;m<i;m++){var b=v[m];(b>=h&&b<=d||isNaN(b))&&(l[c++]=g),g++}p=!0}else if(a===2){for(var v=f[n[0]],w=f[n[1]],S=t[n[1]][0],k=t[n[1]][1],m=0;m<i;m++){var b=v[m],M=w[m];(b>=h&&b<=d||isNaN(b))&&(M>=S&&M<=k||isNaN(M))&&(l[c++]=g),g++}p=!0}}if(!p)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),b=f[n[0]][T];(b>=h&&b<=d||isNaN(b))&&(l[c++]=T)}else for(var m=0;m<o;m++){for(var I=!0,T=r.getRawIndex(m),B=0;B<a;B++){var R=n[B],b=f[R][T];(b<t[R][0]||b>t[R][1])&&(I=!1)}I&&(l[c++]=r.getRawIndex(m))}return c<o&&(r._indices=l),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),l=[],c=t._rawExtent,u=0;u<r.length;u++)c[r[u]]=Gl();for(var h=0;h<s;h++){for(var d=t.getRawIndex(h),f=0;f<o;f++)l[f]=n[r[f]][d];l[o]=h;var p=i&&i.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var u=0;u<p.length;u++){var g=r[u],v=p[u],m=c[g],b=n[g];b&&(b[d]=v),v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),u,h,d,f=new(Wl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));f[s++]=c;for(var p=1;p<o-1;p+=l){for(var g=Math.min(p+l,o-1),v=Math.min(p+l*2,o),m=(v+g)/2,b=0,w=g;w<v;w++){var S=this.getRawIndex(w),k=a[S];isNaN(k)||(b+=k)}b/=v-g;var M=p,T=Math.min(p+l,o),I=p-1,B=a[c];u=-1,d=M;for(var R=-1,D=0,w=M;w<T;w++){var S=this.getRawIndex(w),k=a[S];if(isNaN(k)){D++,R<0&&(R=S);continue}h=Math.abs((I-m)*(k-B)-(I-w)*(b-B)),h>u&&(u=h,d=S)}D>0&&D<T-M&&(f[s++]=Math.min(R,d),d=Math.max(R,d)),f[s++]=d,c=d}return f[s++]=this.getRawIndex(o-1),i._count=s,i._indices=f,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),l=new(Wl(this._rawCount))(Math.ceil(s/a)*2),c=0,u=0;u<s;u+=a){var h=u,d=o[this.getRawIndex(h)],f=u,p=o[this.getRawIndex(f)],g=a;u+a>s&&(g=s-u);for(var v=0;v<g;v++){var m=this.getRawIndex(u+v),b=o[m];b<d&&(d=b,h=u+v),b>p&&(p=b,f=u+v)}var w=this.getRawIndex(h),S=this.getRawIndex(f);h<f?(l[c++]=w,l[c++]=S):(l[c++]=S,l[c++]=w)}return i._count=c,i._indices=l,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),c=o[t],u=this.count(),h=a._rawExtent[t]=Gl(),d=new(Wl(this._rawCount))(Math.ceil(u/l)),f=0,p=0;p<u;p+=l){l>u-p&&(l=u-p,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(p+g);s[g]=c[v]}var m=i(s),b=this.getRawIndex(Math.min(p+n(s,m)||0,u-1));c[b]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),d[f++]=b}return a._count=f,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,c=[];l<i;l++)c[l]=n[t[l]][s];c[l]=a,r.apply(null,c)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],i=Gl();if(!r)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],c=0;c<n;c++){var u=this.getRawIndex(c),h=r[u];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&Fo(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?C7(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=xe(this._extent),t._rawExtent=xe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,i,n,a){return Up(r[a],this._dimensions[a])}x0={arrayRows:t,objectRows:function(r,i,n,a){return Up(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return Up(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),e})(),T7=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Xd(t)){var o=t,s=void 0,l=void 0,c=void 0;if(i){var u=r[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,a=[u._getVersionSign()]}else s=o.get("data",!0),l=Di(s)?Eo:Wi,a=[];var h=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=ne(h.seriesLayoutBy,d.seriesLayoutBy)||null,p=ne(h.sourceHeader,d.sourceHeader),g=ne(h.dimensions,d.dimensions),v=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||g;n=v?[Tb(s,{seriesLayoutBy:f,sourceHeader:p,dimensions:g},l)]:[]}else{var m=t;if(i){var b=this._applyTransform(r);n=b.sourceList,a=b.upstreamSignList}else{var w=m.get("source",!0);n=[Tb(w,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&ok(a)}var o,s=[],l=[];return Y(t,function(c){c.prepareSource();var u=c.getSource(n||0),h="";n!=null&&!u&&ok(h),s.push(u),l.push(c._getVersionSign())}),i?o=b7(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[i7(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Xd(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,i):(s=new kb,s.initData(new dP(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xd(t)){var r=pw(t);return r?[r.getSourceManager()]:[]}else return te(IV(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(Xd(t))r=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e})();function Xd(e){return e.mainType==="series"}function ok(e){throw new Error(e)}var k7="line-height:1";function bP(e){var t=e.lineHeight;return t==null?k7:"line-height:"+xi(t+"")+"px"}function xP(e,t){var r=e.color||jt.color.tertiary,i=e.fontSize||12,n=e.fontWeight||"400",a=e.color||jt.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+xi(i+"")+"px;color:"+xi(r)+";font-weight:"+xi(n+""),valueStyle:"font-size:"+xi(o+"")+"px;color:"+xi(a)+";font-weight:"+xi(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var A7=[0,10,20,30],M7=["",`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];function ff(e,t){return t.type=e,t}function Ab(e){return e.type==="section"}function wP(e){return Ab(e)?L7:D7}function SP(e){if(Ab(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return Y(e.blocks,function(n){var a=SP(n);a>=t&&(t=a+ +(i&&(!a||Ab(n)&&!n.noHeader)))}),t}return 0}function L7(e,t,r,i){var n=t.noHeader,a=E7(SP(t)),o=[],s=t.blocks||[];qa(!s||It(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Tn(c,l)){var u=new f7(c[l],null);s.sort(function(g,v){return u.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}Y(s,function(g,v){var m=t.valueFormatter,b=wP(g)(m?wt(wt({},e),{valueFormatter:m}):e,g,v>0?a.html:0,i);b!=null&&o.push(b)});var h=e.renderMode==="richText"?o.join(a.richText):Mb(i,o.join(""),n?r:a.html);if(n)return h;var d=Sb(t.header,"ordinal",e.useUTC),f=xP(i,e.renderMode).nameStyle,p=bP(i);return e.renderMode==="richText"?CP(e,d,f)+a.richText+h:Mb(i,'<div style="'+f+";"+p+';">'+xi(d)+"</div>"+h,r)}function D7(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(S){return S=It(S)?S:[S],te(S,function(k,M){return Sb(k,It(f)?f[M]:f,c)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||jt.color.secondary,n),d=a?"":Sb(l,"ordinal",c),f=t.valueType,p=o?[]:u(t.value,t.dataIndex),g=!s||!a,v=!s&&a,m=xP(i,n),b=m.nameStyle,w=m.valueStyle;return n==="richText"?(s?"":h)+(a?"":CP(e,d,b))+(o?"":B7(e,p,g,v,w)):Mb(i,(s?"":h)+(a?"":I7(d,!s,b))+(o?"":P7(p,g,v,w)),r)}}function sk(e,t,r,i,n,a){if(e){var o=wP(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function E7(e){return{html:A7[e],richText:M7[e]}}function Mb(e,t,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=bP(e);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function I7(e,t,r){var i=t?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+xi(e)+"</span>"}function P7(e,t,r,i){var n=r?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return e=It(e)?e:[e],'<span style="'+a+";"+i+'">'+te(e,function(o){return xi(o)}).join(" ")+"</span>"}function CP(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function B7(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(It(t)?t.join(" "):t,a)}function O7(e,t){var r=e.getData().getItemVisual(t,"style"),i=r[e.visualDrawType];return ul(i)}function TP(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var w0=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=jE()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i==="richText"?this._generateStyleName():null,a=pV({color:r,type:t,renderMode:i,markerId:n});return Ut(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};It(r)?Y(r,function(a){return wt(i,a)}):wt(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},e})();function R7(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=It(s),c=O7(t,r),u,h,d,f;if(o>1||l&&!o){var p=F7(s,t,r,a,c);u=p.inlineValues,h=p.inlineValueTypes,d=p.blocks,f=p.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);f=u=Oc(n,r,a[0]),h=g.type}else f=u=l?s[0]:s;var v=R1(t),m=v&&t.name||"",b=n.getName(r),w=i?m:b;return ff("section",{header:m,noHeader:i||!v,sortParam:f,blocks:[ff("nameValue",{markerType:"item",markerColor:c,name:w,noName:!Kn(w),value:u,valueType:h,dataIndex:r})].concat(d||[])})}function F7(e,t,r,i,n){var a=t.getData(),o=Fo(e,function(h,d,f){var p=a.getDimensionInfo(f);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],c=[];i.length?Y(i,function(h){u(Oc(a,r,h),h)}):Y(e,u);function u(h,d){var f=a.getDimensionInfo(d);!f||f.otherDims.tooltip===!1||(o?c.push(ff("nameValue",{markerType:"subItem",markerColor:n,name:f.displayName,value:h,valueType:f.type})):(s.push(h),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var oo=rr();function Zd(e,t){return e.getName(t)||e.getId(t)}var $7="__universalTransitionEnabled",sn=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Fh({count:z7,reset:H7}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=oo(this).sourceManager=new T7(this);a.prepareSource();var o=this.getInitialData(r,n);ck(o,this),this.dataTask.context.data=o,oo(this).dataBeforeProcessed=o,lk(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=uf(this),a=n?qf(r):{},o=this.subType;Ne.hasClass(o)&&(o+="Series"),Re(r,i.getTheme().get(this.subType)),Re(r,this.getDefaultOption()),lb(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Wo(r,a,n)},t.prototype.mergeOption=function(r,i){r=Re(this.option,r,!0),this.fillDataTextStyle(r.data);var n=uf(this);n&&Wo(this.option,r,n);var a=oo(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);ck(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,oo(this).dataBeforeProcessed=o,lk(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Di(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&lb(r[n],"label",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=Lb(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return oo(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=Lb(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}oo(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return me(r)},t.prototype.getSourceManager=function(){return oo(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return oo(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var c=l.dataToCoord(n);a==null&&(a=1/0);var u=[],h=1/0,d=-1,f=0;return o.each(i,function(p,g){var v=l.dataToCoord(p),m=c-v,b=Math.abs(m);b<=a&&((b<h||b===h&&m>=0&&d<0)&&(h=b,d=m,f=0),m===d&&(u[f++]=g))}),u.length=f,u},t.prototype.formatTooltip=function(r,i,n){return R7({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(he.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=gw.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],c=Zd(o,l);n[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=er(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Zd(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$7])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Qt(o.selectedMap)||(o.selectedMap={});for(var c=o.selectedMap,u=0;u<l;u++){var h=i[u],d=Zd(r,h);c[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var f=i[l-1],d=Zd(r,f);o.selectedMap=(n={},n[d]=!0,n),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(f),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return Ne.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(Ne);ha(sn,u7);ha(sn,gw);eI(sn,Ne);function lk(e){var t=e.name;R1(e)||(e.name=N7(e)||t)}function N7(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return Y(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function z7(e){return e.model.getRawData().count()}function H7(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),W7}function W7(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ck(e,t){Y(OH(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,fr(G7,t))})}function G7(e,t){var r=Lb(e);return r&&r.setOutputEnd((t||this).count()),t}function Lb(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var Ln=(function(){function e(){this.group=new Cr,this.uid=ym("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();$1(Ln);om(Ln);function bw(){var e=rr();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var kP=rr(),q7=bw(),zi=(function(){function e(){this.group=new Cr,this.uid=ym("viewChart"),this.renderTask=Fh({plan:V7,reset:U7}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&hk(a,n,"emphasis")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&hk(a,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateLayout=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){gm(this.group,t)},e.markUpdateMethod=function(t,r){kP(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function uk(e,t,r){e&&mb(e)&&(t==="emphasis"?$g:Ng)(e,r)}function hk(e,t,r){var i=ll(e,t),n=t&&t.highlightKey!=null?qG(t.highlightKey):null;i!=null?Y(gi(i),function(a){uk(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){uk(a,r,n)})}$1(zi);om(zi);function V7(e){return q7(e.model)}function U7(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&kP(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,i,n),Y7[l]}var Y7={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ug="\0__throttleOriginMethod",fk="\0__throttleRate",dk="\0__throttleType";function Cm(e,t,r){var i,n=0,a=0,o=null,s,l,c,u;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(l,c||[])}var d=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];i=new Date().getTime(),l=this,c=f;var g=u||t,v=u||r;u=null,s=i-(v?n:a)-g,clearTimeout(o),v?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=i};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(f){u=f},d}function AP(e,t,r,i){var n=e[t];if(n){var a=n[Ug]||n,o=n[dk],s=n[fk];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=Cm(a,r,i==="debounce"),n[Ug]=a,n[dk]=i,n[fk]=r}return n}}function Db(e,t){var r=e[t];r&&r[Ug]&&(r.clear&&r.clear(),e[t]=r[Ug])}var pk=rr(),gk={itemStyle:of(NI,!0),lineStyle:of($I,!0)},j7={lineStyle:"stroke",itemStyle:"fill"};function MP(e,t){var r=e.visualStyleMapper||gk[t];return r||(console.warn("Unknown style type '"+t+"'."),gk.itemStyle)}function LP(e,t){var r=e.visualDrawType||j7[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var X7={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=e.getModel(i),a=MP(e,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=LP(e,i),c=o[l],u=ce(c)?c:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||u||h){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ce(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ce(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return r.setVisual("colorFromPalette",!1),{dataEach:function(f,p){var g=e.getDataParams(p),v=wt({},o);v[l]=u(g),f.setItemVisual(p,"style",v)}}}},Au=new nr,Z7={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=MP(e,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Au.option=l[i];var c=n(Au),u=o.ensureUniqueItemVisual(s,"style");wt(u,c),Au.option.decal&&(o.setItemVisual(s,"decal",Au.option.decal),Au.option.decal.dirty=!0),a in c&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},K7={performRawSeries:!0,overallReset:function(e){var t=me();e.eachSeries(function(r){var i=r.getColorBy();if(!r.isColorBySeries()){var n=r.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),pk(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var i=r.getRawData(),n={},a=r.getData(),o=pk(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=LP(r,s);a.each(function(c){var u=a.getRawIndex(c);n[u]=c}),i.each(function(c){var u=n[c],h=a.getItemVisual(u,"colorFromPalette");if(h){var d=a.ensureUniqueItemVisual(u,"style"),f=i.getName(c)||c+"",p=i.count();d[l]=r.getColorFromPalette(f,o,p)}})}})}},Kd=Math.PI;function Q7(e,t){t=t||{},We(t,{text:"loading",textColor:jt.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:jt.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Cr,i=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new zr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new cr({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new dm({shape:{startAngle:-Kd/2,endAngle:-Kd/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Kd*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kd*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:u}),a.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var DP=(function(){function e(t,r,i,n){this._stageTaskMap=me(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&r.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,i=r._pipelineMap=me();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;Y(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";qa(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;Y(t,function(l,c){if(!(n.visualType&&n.visualType!==l.visualType)){var u=o._stageTaskMap.get(l.uid),h=u.seriesTaskMap,d=u.overallTask;if(d){var f,p=d.agentStubMap;p.each(function(v){s(n,v)&&(v.dirty(),f=!0)}),f&&d.dirty(),o.updatePayload(d,i);var g=o.getPerformArgs(d,n.block);p.each(function(v){v.perform(g)}),d.perform(g)&&(a=!0)}else h&&h.each(function(v,m){s(n,v)&&v.dirty();var b=o.getPerformArgs(v,n.block);b.skip=!l.performRawSeries&&r.isSeriesFiltered(v.context.model),o.updatePayload(v,i),v.perform(b)&&(a=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=me(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(u):l?i.eachRawSeriesByType(l,u):c&&c(i,n).each(u);function u(h){var d=h.uid,f=s.set(d,o&&o.get(d)||Fh({plan:iU,reset:nU,count:oU}));f.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,f)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||Fh({reset:J7});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=me(),c=t.seriesType,u=t.getTargetSeries,h=!0,d=!1,f="";qa(!t.createOnAllSeries,f),c?i.eachRawSeriesByType(c,p):u?u(i,n).each(p):(h=!1,Y(i.getSeries(),p));function p(g){var v=g.uid,m=l.set(v,s&&s.get(v)||(d=!0,Fh({reset:tU,onDirty:rU})));m.context={model:g,overallProgress:h},m.agent=o,m.__block=h,a._pipe(g,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return ce(t)&&(t={overallReset:t,seriesType:sU(t)}),t.uid=ym("stageHandler"),r&&(t.visualType=r),t},e})();function J7(e){e.overallReset(e.ecModel,e.api,e.payload)}function tU(e){return e.overallProgress&&eU}function eU(){this.agent.dirty(),this.getDownstream().dirty()}function rU(){this.agent&&this.agent.dirty()}function iU(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function nU(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=gi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?te(t,function(r,i){return EP(i)}):aU}var aU=EP(0);function EP(e){return function(t,r){var i=r.data,n=r.resetDefines[e];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function oU(e){return e.data.count()}function sU(e){Yg=null;try{e(df,IP)}catch{}return Yg}var df={},IP={},Yg;PP(df,vw);PP(IP,sP);df.eachSeriesByType=df.eachRawSeriesByType=function(e){Yg=e};df.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Yg=e.subType)};function PP(e,t){for(var r in t.prototype)e[r]=Mi}var Mt=jt.darkColor,lU=Mt.background,Mu=function(){return{axisLine:{lineStyle:{color:Mt.axisLine}},splitLine:{lineStyle:{color:Mt.axisSplitLine}},splitArea:{areaStyle:{color:[Mt.backgroundTint,Mt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Mt.axisMinorSplitLine}},axisLabel:{color:Mt.axisLabel},axisName:{}}},vk={label:{color:Mt.secondary},itemStyle:{borderColor:Mt.borderTint},dividerLineStyle:{color:Mt.border}},BP={darkMode:!0,color:Mt.theme,backgroundColor:lU,axisPointer:{lineStyle:{color:Mt.border},crossStyle:{color:Mt.borderShade},label:{color:Mt.tertiary}},legend:{textStyle:{color:Mt.secondary},pageTextStyle:{color:Mt.tertiary}},textStyle:{color:Mt.secondary},title:{textStyle:{color:Mt.primary},subtextStyle:{color:Mt.quaternary}},toolbox:{iconStyle:{borderColor:Mt.accent50}},tooltip:{backgroundColor:Mt.neutral20,defaultBorderColor:Mt.border,textStyle:{color:Mt.tertiary}},dataZoom:{borderColor:Mt.accent10,textStyle:{color:Mt.tertiary},brushStyle:{color:Mt.backgroundTint},handleStyle:{color:Mt.neutral00,borderColor:Mt.accent20},moveHandleStyle:{color:Mt.accent40},emphasis:{handleStyle:{borderColor:Mt.accent50}},dataBackground:{lineStyle:{color:Mt.accent30},areaStyle:{color:Mt.accent20}},selectedDataBackground:{lineStyle:{color:Mt.accent50},areaStyle:{color:Mt.accent30}}},visualMap:{textStyle:{color:Mt.secondary},handleStyle:{borderColor:Mt.neutral30}},timeline:{lineStyle:{color:Mt.accent10},label:{color:Mt.tertiary},controlStyle:{color:Mt.accent30,borderColor:Mt.accent30}},calendar:{itemStyle:{color:Mt.neutral00,borderColor:Mt.neutral20},dayLabel:{color:Mt.tertiary},monthLabel:{color:Mt.secondary},yearLabel:{color:Mt.secondary}},matrix:{x:vk,y:vk,backgroundColor:{borderColor:Mt.axisLine},body:{itemStyle:{borderColor:Mt.borderTint}}},timeAxis:Mu(),logAxis:Mu(),valueAxis:Mu(),categoryAxis:Mu(),line:{symbol:"circle"},graph:{color:Mt.theme},gauge:{title:{color:Mt.secondary},axisLine:{lineStyle:{color:[[1,Mt.neutral05]]}},axisLabel:{color:Mt.axisLabel},detail:{color:Mt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Mt.background}},radar:(function(){var e=Mu();return e.axisName={color:Mt.axisLabel},e.axisLine.lineStyle.color=Mt.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:Mt.neutral20,textStyle:{color:Mt.secondary}},emphasis:{itemStyle:{color:Mt.neutral30}}}},sunburst:{itemStyle:{borderColor:Mt.background}},map:{itemStyle:{borderColor:Mt.border,areaColor:Mt.neutral10},label:{color:Mt.tertiary},emphasis:{label:{color:Mt.primary},itemStyle:{areaColor:Mt.highlight}},select:{label:{color:Mt.primary},itemStyle:{areaColor:Mt.highlight}}},geo:{itemStyle:{borderColor:Mt.border,areaColor:Mt.neutral10},emphasis:{label:{color:Mt.primary},itemStyle:{areaColor:Mt.highlight}},select:{label:{color:Mt.primary},itemStyle:{color:Mt.highlight}}}};BP.categoryAxis.splitLine.show=!1;var cU=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(Ut(t)){var a=Jn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Y(t,function(l,c){for(var u=!1,h=0;h<o.length;h++){var d=o[h],f=c.lastIndexOf(d);if(f>0&&f===c.length-d.length){var p=c.slice(0,f);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(i[c]=l,u=!0),u||(n[c]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,a,"name")&&u(c,a,"dataIndex")&&u(c,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,n,a));function u(h,d,f,p){return h[f]==null||d[p||f]===h[f]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Eb=["symbol","symbolSize","symbolRotate","symbolOffset"],mk=Eb.concat(["symbolKeepAspect"]),uU={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Eb.length;o++){var s=Eb[o],l=e.get(s);ce(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(wt({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var c=er(n);function u(h,d){for(var f=e.getRawValue(d),p=e.getDataParams(d),g=0;g<c.length;g++){var v=c[g];h.setItemVisual(d,v,n[v](f,p))}}return{dataEach:a?u:null}}},hU={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<mk.length;s++){var l=mk[s],c=o.getShallow(l,!0);c!=null&&n.setItemVisual(a,l,c)}}return{dataEach:r.hasItemOption?i:null}}};function fU(e,t,r){switch(r){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function dU(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function pU(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}Y([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=wt({},n),o.dispatchAction(wt(n,{type:i[1],seriesIndex:r(a,n)}))})})}function ql(e,t,r,i,n){var a=e+t;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,c=n.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var h=o.getData(),d=ll(h,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:It(d)?h.getName(d[0]):h.getName(d),selected:Ut(l)?l:wt({},l)})}})}function gU(e,t,r){e.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(ql("map","selectchanged",t,n,i),ql("pie","selectchanged",t,n,i)):i.fromAction==="select"?(ql("map","selected",t,n,i),ql("pie","selected",t,n,i)):i.fromAction==="unselect"&&(ql("map","unselected",t,n,i),ql("pie","unselected",t,n,i))})}function ih(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var vU=Math.round(Math.random()*9),mU=typeof Object.defineProperty=="function",yU=(function(){function e(){this._id="__ec_inner_"+vU++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return mU?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),_U=Fe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),bU=Fe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),xU=Fe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,h=Math.sin(c),d=Math.cos(c),f=o*.6,p=o*.7;e.moveTo(r-u,l+s),e.arc(r,l,o,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(r+u-h*f,l+s+d*f,r,i-p,r,i),e.bezierCurveTo(r,i-p,r-u+h*f,l+s+d*f,r-u,l+s),e.closePath()}}),wU=Fe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),SU={line:No,rect:cr,roundRect:cr,square:cr,circle:fm,diamond:bU,pin:xU,arrow:wU,triangle:_U},CU={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},Ib={};Y(SU,function(e,t){Ib[t]=new e});var TU=Fe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=Eg(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!=="none"){var n=Ib[i];n||(i="rect",n=Ib[i]),CU[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function kU(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||jt.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function hl(e,t,r,i,n,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=DI(e.slice(8),new ge(t,r,i,n),o?"center":"cover"):e.indexOf("path://")===0?l=K1(e.slice(7),{},new ge(t,r,i,n),o?"center":"cover"):l=new TU({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=kU,a&&l.setColor(a),l}function AU(e){return It(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function OP(e,t){if(e!=null)return It(e)||(e=[e,e]),[tr(e[0],t[0])||0,tr(ne(e[1],e[0]),t[1])||0]}function zs(e){return isFinite(e)}function MU(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=zs(i)?i:0,n=zs(n)?n:1,a=zs(a)?a:0,o=zs(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function LU(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=zs(o)?o:.5,s=zs(s)?s:.5,l=l>=0&&zs(l)?l:.5;var c=e.createRadialGradient(o,s,0,o,s,l);return c}function Pb(e,t,r){for(var i=t.type==="radial"?LU(e,t,r):MU(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function DU(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Qd(e){return parseInt(e,10)}function Jd(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||Qd(s[i])||Qd(e.style[i]))-(Qd(s[a])||0)-(Qd(s[o])||0)|0}function EU(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:He(e)?[e]:It(e)?e:null}function RP(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&EU(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=te(r,function(a){return a/n}),i/=n)}return[r,i]}var IU=new cl(!0);function jg(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function yk(e){return typeof e=="string"&&e!=="none"}function Xg(e){var t=e.fill;return t!=null&&t!=="none"}function _k(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function bk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Bb(e,t,r){var i=rI(t.image,t.__image,r);if(sm(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*RH),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function PU(e,t,r,i){var n,a=jg(r),o=Xg(r),s=r.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var u=t.path||IU,h=t.__dirty;if(!i){var d=r.fill,f=r.stroke,p=o&&!!d.colorStops,g=a&&!!f.colorStops,v=o&&!!d.image,m=a&&!!f.image,b=void 0,w=void 0,S=void 0,k=void 0,M=void 0;(p||g)&&(M=t.getBoundingRect()),p&&(b=h?Pb(e,d,M):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(w=h?Pb(e,f,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),v&&(S=h||!t.__canvasFillPattern?Bb(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(k=h||!t.__canvasStrokePattern?Bb(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=k),p?e.fillStyle=b:v&&(S?e.fillStyle=S:o=!1),g?e.strokeStyle=w:m&&(k?e.strokeStyle=k:a=!1)}var T=t.getGlobalScale();u.setScale(T[0],T[1],t.segmentIgnoreThreshold);var I,B;e.setLineDash&&r.lineDash&&(n=RP(t),I=n[0],B=n[1]);var R=!0;(c||h&tc)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),R=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),R&&u.rebuildPath(e,l?s:1),I&&(e.setLineDash(I),e.lineDashOffset=B),i||(r.strokeFirst?(a&&bk(e,r),o&&_k(e,r)):(o&&_k(e,r),a&&bk(e,r))),I&&e.setLineDash([])}function BU(e,t,r){var i=t.__image=rI(r.image,t.__image,t,t.onload);if(!(!i||!sm(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var c=r.sx||0,u=r.sy||0;e.drawImage(i,c,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var c=r.sx,u=r.sy,h=o-c,d=s-u;e.drawImage(i,c,u,h,d,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function OU(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||Ro,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=RP(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(jg(r)&&e.strokeText(n,r.x,r.y),Xg(r)&&e.fillText(n,r.x,r.y)):(Xg(r)&&e.fillText(n,r.x,r.y),jg(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var xk=["shadowBlur","shadowOffsetX","shadowOffsetY"],wk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FP(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Ti(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?tl.opacity:o}(i||t.blend!==r.blend)&&(a||(Ti(e,n),a=!0),e.globalCompositeOperation=t.blend||tl.blend);for(var s=0;s<xk.length;s++){var l=xk[s];(i||t[l]!==r[l])&&(a||(Ti(e,n),a=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Ti(e,n),a=!0),e.shadowColor=t.shadowColor||tl.shadowColor),a}function Sk(e,t,r,i,n){var a=pf(t,n.inHover),o=i?null:r&&pf(r,n.inHover)||{};if(a===o)return!1;var s=FP(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Ti(e,n),s=!0),yk(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Ti(e,n),s=!0),yk(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Ti(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,c=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(Ti(e,n),s=!0),e.lineWidth=c)}for(var u=0;u<wk.length;u++){var h=wk[u],d=h[0];(i||a[d]!==o[d])&&(s||(Ti(e,n),s=!0),e[d]=a[d]||h[1])}return s}function RU(e,t,r,i,n){return FP(e,pf(t,n.inHover),r&&pf(r,n.inHover),i,n)}function $P(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function FU(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),$P(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function $U(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Ck=1,Tk=2,kk=3,Ak=4;function NU(e){var t=Xg(e),r=jg(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ti(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function pf(e,t){return t&&e.__hoverStyle||e.style}function NP(e,t){Hs(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hs(e,t,r,i){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ri,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||DU(a,o))&&(o&&o.length&&(Ti(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ti(e,r),e.save(),FU(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=r.prevEl;c||(l=s=!0);var u=t instanceof Fe&&t.autoBatch&&NU(t.style);s||$U(n,c.transform)?(Ti(e,r),$P(e,t)):u||Ti(e,r);var h=pf(t,r.inHover);t instanceof Fe?(r.lastDrawType!==Ck&&(l=!0,r.lastDrawType=Ck),Sk(e,t,c,l,r),(!u||!r.batchFill&&!r.batchStroke)&&e.beginPath(),PU(e,t,h,u),u&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Bg?(r.lastDrawType!==kk&&(l=!0,r.lastDrawType=kk),Sk(e,t,c,l,r),OU(e,t,h)):t instanceof Xo?(r.lastDrawType!==Tk&&(l=!0,r.lastDrawType=Tk),RU(e,t,c,l,r),BU(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==Ak&&(l=!0,r.lastDrawType=Ak),zU(e,t,r)),u&&i&&Ti(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function zU(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hs(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var c=0,u=n.length;c<u;c++){var l=n[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hs(e,l,a,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var S0=new yU,Mk=new Ic(100),Lk=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ob(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";e.dirty&&S0.delete(e);var a=S0.get(e);if(a)return a;var o=We(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,S0.set(e,s),e.dirty=!1,s;function l(c){for(var u=[r],h=!0,d=0;d<Lk.length;++d){var f=o[Lk[d]];if(f!=null&&!It(f)&&!Ut(f)&&!He(f)&&typeof f!="boolean"){h=!1;break}u.push(f)}var p;if(h){p=u.join(",")+(n?"-svg":"");var g=Mk.get(p);g&&(n?c.svgElement=g:c.image=g)}var v=HP(o.dashArrayX),m=HU(o.dashArrayY),b=zP(o.symbol),w=WU(v),S=WP(m),k=!n&&Ga.createCanvas(),M=n&&{tag:"g",attrs:{},key:"dcl",children:[]},T=B(),I;k&&(k.width=T.width*r,k.height=T.height*r,I=k.getContext("2d")),R(),h&&Mk.put(p,k||M),c.image=k,c.svgElement=M,c.svgWidth=T.width,c.svgHeight=T.height;function B(){for(var D=1,$=0,O=w.length;$<O;++$)D=WT(D,w[$]);for(var F=1,$=0,O=b.length;$<O;++$)F=WT(F,b[$].length);D*=F;var z=S*w.length*b.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function R(){I&&(I.clearRect(0,0,k.width,k.height),o.backgroundColor&&(I.fillStyle=o.backgroundColor,I.fillRect(0,0,k.width,k.height)));for(var D=0,$=0;$<m.length;++$)D+=m[$];if(D<=0)return;for(var O=-S,F=0,z=0,H=0;O<T.height;){if(F%2===0){for(var U=z/2%b.length,q=0,K=0,et=0;q<T.width*2;){for(var Q=0,$=0;$<v[H].length;++$)Q+=v[H][$];if(Q<=0)break;if(K%2===0){var it=(1-o.symbolSize)*.5,at=q+v[H][K]*it,Ct=O+m[F]*it,xt=v[H][K]*o.symbolSize,Zt=m[F]*o.symbolSize,ae=et/2%b[U].length;de(at,Ct,xt,Zt,b[U][ae])}q+=v[H][K],++et,++K,K===v[H].length&&(K=0)}++H,H===v.length&&(H=0)}O+=m[F],++z,++F,F===m.length&&(F=0)}function de(bt,qt,Pt,W,X){var nt=n?1:r,lt=hl(X,bt*nt,qt*nt,Pt*nt,W*nt,o.color,o.symbolKeepAspect);if(n){var st=i.painter.renderOneToVNode(lt);st&&M.children.push(st)}else NP(I,lt)}}}}function zP(e){if(!e||e.length===0)return[["rect"]];if(Ut(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ut(e[r])){t=!1;break}if(t)return zP([e]);for(var i=[],r=0;r<e.length;++r)Ut(e[r])?i.push([e[r]]):i.push(e[r]);return i}function HP(e){if(!e||e.length===0)return[[0,0]];if(He(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!He(e[i])){r=!1;break}if(r)return HP([e]);for(var n=[],i=0;i<e.length;++i)if(He(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=te(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function HU(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(He(e)){var t=Math.ceil(e);return[t,t]}var r=te(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function WU(e){return te(e,function(t){return WP(t)})}function WP(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function GU(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Ob(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Ob(n,t)}}})}var yn=new fa,GP={};function qU(e,t){GP[e]=t}function VU(e){return GP[e]}var UU=1,YU=800,jU=900,XU=1e3,ZU=2e3,KU=5e3,qP=1e3,QU=1100,xw=2e3,VP=3e3,JU=4e3,Tm=4500,tY=4600,eY=5e3,rY=6e3,UP=7e3,iY={PROCESSOR:{FILTER:XU,SERIES_FILTER:YU,STATISTIC:KU},VISUAL:{LAYOUT:qP,PROGRESSIVE_LAYOUT:QU,GLOBAL:xw,CHART:VP,POST_CHART_LAYOUT:tY,COMPONENT:JU,BRUSH:eY,CHART_ITEM:Tm,ARIA:rY,DECAL:UP}},vr="__flagInMainProcess",tp="__mainProcessVersion",Ar="__pendingUpdate",C0="__needsUpdateStatus",Dk=/^[a-zA-Z0-9_]+$/,T0="__connectUpdateStatus",Ek=0,nY=1,aY=2;function YP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return XP(this,e,t)}}function jP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return XP(this,e,t)}}function XP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),fa.prototype[t].apply(e,r)}var ZP=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(fa),KP=ZP.prototype;KP.on=jP("on");KP.off=jP("off");var Ds,k0,ep,ba,rp,A0,M0,Vl,Ul,Ik,Pk,L0,Bk,ip,Ok,QP,Vi,Rk,Yl,JP=(function(e){kt(t,e);function t(r,i,n){var a=e.call(this,new cU)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=r;var o="canvas",s="auto",l=!1;a[tp]=1,n.ssr;var c=a._zr=zT(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:ne(n.useDirtyRect,l),useCoarsePointer:ne(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Cm(ze(c.flush,c),17),a._updateTheme(i),a._locale=eV(n.locale||HI),a._coordSysMgr=new fw;var u=a._api=Ok(a);function h(d,f){return d.__prio-f.__prio}return Op(Kg,h),Op($b,h),a._scheduler=new DP(a,u,$b,Kg),a._messageCenter=new ZP,a._initEvents(),a.resize=ze(a.resize,a),c.animation.on("frame",a._onframe,a),Ik(c,a),Pk(c,a),$_(a),a}return t.prototype._onframe=function(){if(!this._disposed){Rk(this);var r=this._scheduler;if(this[Ar]){var i=this[Ar].silent;this[vr]=!0,Yl(this);try{Ds(this),ba.update.call(this,null,this[Ar].updateParams)}catch(l){throw this[vr]=!1,this[Ar]=null,l}this._zr.flush(),this[vr]=!1,this[Ar]=null,Vl.call(this,i),Ul.call(this,i)}else if(r.unfinished){var n=UU,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),A0(this,a),r.performVisualTasks(a),ip(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,i,n){if(!this[vr]){if(this._disposed){this.id;return}var a,o,s;if(Qt(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[vr]=!0,Yl(this),!this._model||i){var l=new GV(this._api),c=this._theme,u=this._model=new vw;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Nb);var h={seriesTransition:s,optionChanged:!0};if(n)this[Ar]={silent:a,updateParams:h},this[vr]=!1,this.getZr().wakeUp();else{try{Ds(this),ba.update.call(this,null,h)}catch(d){throw this[Ar]=null,this[vr]=!1,d}this._ssr||this._zr.flush(),this[Ar]=null,this[vr]=!1,Vl.call(this,a),Ul.call(this,a)}}},t.prototype.setTheme=function(r,i){if(!this[vr]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Ar]&&(a==null&&(a=this[Ar].silent),o=this[Ar].updateParams,this[Ar]=null),this[vr]=!0,Yl(this);try{this._updateTheme(r),n.setTheme(this._theme),Ds(this),ba.update.call(this,{type:"setTheme"},o)}catch(s){throw this[vr]=!1,s}this[vr]=!1,Vl.call(this,a),Ul.call(this,a)}}},t.prototype._updateTheme=function(r){Ut(r)&&(r=tB[r]),r&&(r=xe(r),r&&cP(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||he.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return Y(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;Y(i,function(l){n.eachComponent({mainType:l},function(c){var u=o._componentsMap[c.__viewId];u.group.ignore||(a.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return Y(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Fk[n]){var l=s,c=s,u=-s,h=-s,d=[],f=r&&r.pixelRatio||this.getDevicePixelRatio();Y($h,function(w,S){if(w.group===n){var k=i?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(xe(r)),M=w.getDom().getBoundingClientRect();l=a(M.left,l),c=a(M.top,c),u=o(M.right,u),h=o(M.bottom,h),d.push({dom:k,left:M.left,top:M.top})}}),l*=f,c*=f,u*=f,h*=f;var p=u-l,g=h-c,v=Ga.createCanvas(),m=zT(v,{renderer:i?"svg":"canvas"});if(m.resize({width:p,height:g}),i){var b="";return Y(d,function(w){var S=w.left-l,k=w.top-c;b+='<g transform="translate('+S+","+k+')">'+w.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new cr({shape:{x:0,y:0,width:p,height:g},style:{fill:r.connectedBackgroundColor}})),Y(d,function(w){var S=new Xo({style:{x:w.left*f-l,y:w.top*f-c,image:w.dom}});m.add(S)}),m.refreshImmediately(),v.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i,n){return rp(this,"convertToPixel",r,i,n)},t.prototype.convertToLayout=function(r,i,n){return rp(this,"convertToLayout",r,i,n)},t.prototype.convertFromPixel=function(r,i,n){return rp(this,"convertFromPixel",r,i,n)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=Zy(n,r);return Y(o,function(s,l){l.indexOf("Models")>=0&&Y(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)a=a||!!u.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[c.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,c))}},this)},this),!!a},t.prototype.getVisual=function(r,i){var n=this._model,a=Zy(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?fU(s,l,i):dU(s,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;Y(oY,function(n){var a=function(o){var s=r.getModel(),l=o.target,c,u=n==="globalout";if(u?c={}:l&&ih(l,function(g){var v=Te(g);if(v&&v.dataIndex!=null){var m=v.dataModel||s.getSeriesByIndex(v.seriesIndex);return c=m&&m.getDataParams(v.dataIndex,v.dataType,l)||{},!0}else if(v.eventData)return c=wt({},v.eventData),!0},!0),c){var h=c.componentType,d=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",d=c.seriesIndex);var f=h&&d!=null&&s.getComponent(h,d),p=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];c.event=o,c.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:f,view:p},r.trigger(n,c)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;Y(Fb,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),gU(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&JE(this.getDom(),Sw,"");var i=this,n=i._api,a=i._model;Y(i._componentsViews,function(o){o.dispose(a,n)}),Y(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete $h[i.id]},t.prototype.resize=function(r){if(!this[vr]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[Ar]&&(a==null&&(a=this[Ar].silent),n=!0,this[Ar]=null),this[vr]=!0,Yl(this);try{n&&Ds(this),ba.update.call(this,{type:"resize",animation:wt({duration:0},r&&r.animation)})}catch(o){throw this[vr]=!1,o}this[vr]=!1,Vl.call(this,a),Ul.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(Qt(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!zb[r]){var n=zb[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var i=wt({},r);return i.type=Rb[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(Qt(i)||(i={silent:!!i}),!!Zg[r.type]&&this._model){if(this[vr]){this._pendingActions.push(r);return}var n=i.silent;M0.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&he.browser.weChat&&this._throttledZrFlush(),Vl.call(this,n),Ul.call(this,n)}},t.prototype.updateLabelLayout=function(){yn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Ds=function(h){var d=h._scheduler;d.restorePipelines(h._model),d.prepareStageTasks(),k0(h,!0),k0(h,!1),d.plan()},k0=function(h,d){for(var f=h._model,p=h._scheduler,g=d?h._componentsViews:h._chartsViews,v=d?h._componentsMap:h._chartsMap,m=h._zr,b=h._api,w=0;w<g.length;w++)g[w].__alive=!1;d?f.eachComponent(function(M,T){M!=="series"&&S(T)}):f.eachSeries(S);function S(M){var T=M.__requireNewView;M.__requireNewView=!1;var I="_ec_"+M.id+"_"+M.type,B=!T&&v[I];if(!B){var R=Jn(M.type),D=d?Ln.getClass(R.main,R.sub):zi.getClass(R.sub);B=new D,B.init(f,b),v[I]=B,g.push(B),m.add(B.group)}M.__viewId=B.__id=I,B.__alive=!0,B.__model=M,B.group.__ecComponentInfo={mainType:M.mainType,index:M.componentIndex},!d&&p.prepareView(B,M,f,b)}for(var w=0;w<g.length;){var k=g[w];k.__alive?w++:(!d&&k.renderTask.dispose(),m.remove(k.group),k.dispose(f,b),g.splice(w,1),v[k.__id]===k&&delete v[k.__id],k.__id=k.group.__ecComponentInfo=null)}},ep=function(h,d,f,p,g){var v=h._model;if(v.setUpdatePayload(f),!p){Y([].concat(h._componentsViews).concat(h._chartsViews),k);return}var m={};m[p+"Id"]=f[p+"Id"],m[p+"Index"]=f[p+"Index"],m[p+"Name"]=f[p+"Name"];var b={mainType:p,query:m};g&&(b.subType=g);var w=f.excludeSeriesId,S;w!=null&&(S=me(),Y(gi(w),function(M){var T=aa(M,null);T!=null&&S.set(T,!0)})),v&&v.eachComponent(b,function(M){var T=S&&S.get(M.id)!=null;if(!T)if(y2(f))if(M instanceof sn)f.type===el&&!f.notBlur&&!M.get(["emphasis","disabled"])&&RG(M,f,h._api);else{var I=q1(M.mainType,M.componentIndex,f.name,h._api),B=I.focusSelf,R=I.dispatchers;f.type===el&&B&&!f.notBlur&&gb(M.mainType,M.componentIndex,h._api),R&&Y(R,function(D){f.type===el?$g(D):Ng(D)})}else yb(f)&&M instanceof sn&&(NG(M,f,h._api),v2(M),Vi(h))},h),v&&v.eachComponent(b,function(M){var T=S&&S.get(M.id)!=null;T||k(h[p==="series"?"_chartsMap":"_componentsMap"][M.__viewId])},h);function k(M){M&&M.__alive&&M[d]&&M[d](M.__model,v,h._api,f)}},ba={prepareAndUpdate:function(h){Ds(this),ba.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,d){var f=this._model,p=this._api,g=this._zr,v=this._coordSysMgr,m=this._scheduler;if(f){f.setUpdatePayload(h),m.restoreData(f,h),m.performSeriesTasks(f),v.create(f,p),m.performDataProcessorTasks(f,h),A0(this,f),v.update(f,p),i(f),m.performVisualTasks(f,h);var b=f.get("backgroundColor")||"transparent";g.setBackgroundColor(b);var w=f.get("darkMode");w!=null&&w!=="auto"&&g.setDarkMode(w),L0(this,f,p,h,d),yn.trigger("afterupdate",f,p)}},updateTransform:function(h){var d=this,f=this._model,p=this._api;if(f){f.setUpdatePayload(h);var g=[];f.eachComponent(function(m,b){if(m!=="series"){var w=d.getViewOfComponentModel(b);if(w&&w.__alive)if(w.updateTransform){var S=w.updateTransform(b,f,p,h);S&&S.update&&g.push(w)}else g.push(w)}});var v=me();f.eachSeries(function(m){var b=d._chartsMap[m.__viewId];if(b.updateTransform){var w=b.updateTransform(m,f,p,h);w&&w.update&&v.set(m.uid,1)}else v.set(m.uid,1)}),i(f),this._scheduler.performVisualTasks(f,h,{setDirty:!0,dirtyMap:v}),ip(this,f,p,h,{},v),yn.trigger("afterupdate",f,p)}},updateView:function(h){var d=this._model;d&&(d.setUpdatePayload(h),zi.markUpdateMethod(h,"updateView"),i(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0}),L0(this,d,this._api,h,{}),yn.trigger("afterupdate",d,this._api))},updateVisual:function(h){var d=this,f=this._model;f&&(f.setUpdatePayload(h),f.eachSeries(function(p){p.getData().clearAllVisual()}),zi.markUpdateMethod(h,"updateVisual"),i(f),this._scheduler.performVisualTasks(f,h,{visualType:"visual",setDirty:!0}),f.eachComponent(function(p,g){if(p!=="series"){var v=d.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,f,d._api,h)}}),f.eachSeries(function(p){var g=d._chartsMap[p.__viewId];g.updateVisual(p,f,d._api,h)}),yn.trigger("afterupdate",f,this._api))},updateLayout:function(h){ba.update.call(this,h)}};function r(h,d,f,p,g){if(h._disposed){h.id;return}for(var v=h._model,m=h._coordSysMgr.getCoordinateSystems(),b,w=Zy(v,f),S=0;S<m.length;S++){var k=m[S];if(k[d]&&(b=k[d](v,w,p,g))!=null)return b}}rp=r,A0=function(h,d){var f=h._chartsMap,p=h._scheduler;d.eachSeries(function(g){p.updateStreamModes(g,f[g.__viewId])})},M0=function(h,d){var f=this,p=this.getModel(),g=h.type,v=h.escapeConnect,m=Zg[g],b=(m.update||"update").split(":"),w=b.pop(),S=b[0]!=null&&Jn(b[0]);this[vr]=!0,Yl(this);var k=[h],M=!1;h.batch&&(M=!0,k=te(h.batch,function(H){return H=We(wt({},H),h),H.batch=null,H}));var T=[],I,B=[],R=m.nonRefinedEventType,D=yb(h),$=y2(h);if($&&bI(this._api),Y(k,function(H){var U=m.action(H,p,f._api);if(m.refineEvent?B.push(U):I=U,I=I||wt({},H),I.type=R,T.push(I),$){var q=F1(h),K=q.queryOptionMap,et=q.mainTypeSpecified,Q=et?K.keys()[0]:"series";ep(f,w,H,Q),Vi(f)}else D?(ep(f,w,H,"series"),Vi(f)):S&&ep(f,w,H,S.main,S.sub)}),w!=="none"&&!$&&!D&&!S)try{this[Ar]?(Ds(this),ba.update.call(this,h),this[Ar]=null):ba[w].call(this,h)}catch(H){throw this[vr]=!1,H}if(M?I={type:R,escapeConnect:v,batch:T}:I=T[0],this[vr]=!1,!d){var O=void 0;if(m.refineEvent){var F=m.refineEvent(B,h,p,this._api).eventContent;qa(Qt(F)),O=We({type:m.refinedEventType},F),O.fromAction=h.type,O.fromActionPayload=h,O.escapeConnect=!0}var z=this._messageCenter;z.trigger(I.type,I),O&&z.trigger(O.type,O)}},Vl=function(h){for(var d=this._pendingActions;d.length;){var f=d.shift();M0.call(this,f,h)}},Ul=function(h){!h&&this.trigger("updated")},Ik=function(h,d){h.on("rendered",function(f){d.trigger("rendered",f),h.animation.isFinished()&&!d[Ar]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Pk=function(h,d){h.on("mouseover",function(f){var p=f.target,g=ih(p,mb);g&&(FG(g,f,d._api),Vi(d))}).on("mouseout",function(f){var p=f.target,g=ih(p,mb);g&&($G(g,f,d._api),Vi(d))}).on("click",function(f){var p=f.target,g=ih(p,function(b){return Te(b).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",m=Te(g);d._api.dispatchAction({type:v,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(d){d.clearColorPalette()})}function n(h){var d=[],f=[],p=!1;if(h.eachComponent(function(b,w){var S=w.get("zlevel")||0,k=w.get("z")||0,M=w.getZLevelKey();p=p||!!M,(b==="series"?f:d).push({zlevel:S,z:k,idx:w.componentIndex,type:b,key:M})}),p){var g=d.concat(f),v,m;Op(g,function(b,w){return b.zlevel===w.zlevel?b.z-w.z:b.zlevel-w.zlevel}),Y(g,function(b){var w=h.getComponent(b.type,b.idx),S=b.zlevel,k=b.key;v!=null&&(S=Math.max(v,S)),k?(S===v&&k!==m&&S++,m=k):m&&(S===v&&S++,m=""),v=S,w.setZLevel(S)})}}L0=function(h,d,f,p,g){n(d),Bk(h,d,f,p,g),Y(h._chartsViews,function(v){v.__alive=!1}),ip(h,d,f,p,g),Y(h._chartsViews,function(v){v.__alive||v.remove(d,f)})},Bk=function(h,d,f,p,g,v){Y(v||h._componentsViews,function(m){var b=m.__model;c(b,m),m.render(b,d,f,p),l(b,m),u(b,m)})},ip=function(h,d,f,p,g,v){var m=h._scheduler;g=wt(g||{},{updatedSeries:d.getSeries()}),yn.trigger("series:beforeupdate",d,f,g);var b=!1;d.eachSeries(function(w){var S=h._chartsMap[w.__viewId];S.__alive=!0;var k=S.renderTask;m.updatePayload(k,p),c(w,S),v&&v.get(w.uid)&&k.dirty(),k.perform(m.getPerformArgs(k))&&(b=!0),S.group.silent=!!w.get("silent"),s(w,S),v2(w)}),m.unfinished=b||m.unfinished,yn.trigger("series:layoutlabels",d,f,g),yn.trigger("series:transition",d,f,g),d.eachSeries(function(w){var S=h._chartsMap[w.__viewId];l(w,S),u(w,S)}),o(h,d),yn.trigger("series:afterupdate",d,f,g)},Vi=function(h){h[C0]=!0,h.getZr().wakeUp()},Yl=function(h){h[tp]=(h[tp]+1)%1e3},Rk=function(h){h[C0]&&(h.getZr().storage.traverse(function(d){Ih(d)||a(d)}),h[C0]=!1)};function a(h){for(var d=[],f=h.currentStates,p=0;p<f.length;p++){var g=f[p];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}h.selected&&h.states.select&&d.push("select"),h.hoverState===um&&h.states.emphasis?d.push("emphasis"):h.hoverState===cm&&h.states.blur&&d.push("blur"),h.useStates(d)}function o(h,d){var f=h._zr,p=f.storage,g=0;p.traverse(function(v){v.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!he.node&&!he.worker&&d.eachSeries(function(v){if(!v.preventUsingHoverLayer){var m=h._chartsMap[v.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function s(h,d){var f=h.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=f)})}function l(h,d){if(!h.preventAutoZ){var f=OI(h);d.eachRendered(function(p){return RI(p,f.z,f.zlevel),!0})}}function c(h,d){d.eachRendered(function(f){if(!Ih(f)){var p=f.getTextContent(),g=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function u(h,d){var f=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),g=f.get("duration"),v=g>0?{duration:g,delay:f.get("delay"),easing:f.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ih(m))return;if(m instanceof Fe&&VG(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(p){m.stateTransition=v;var w=m.getTextContent(),S=m.getTextGuideLine();w&&(w.stateTransition=v),S&&(S.stateTransition=v)}m.__dirty&&a(m)}})}Ok=function(h){return new((function(d){kt(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);p=p.parent}},f.prototype.enterEmphasis=function(p,g){$g(p,g),Vi(h)},f.prototype.leaveEmphasis=function(p,g){Ng(p,g),Vi(h)},f.prototype.enterBlur=function(p){OG(p),Vi(h)},f.prototype.leaveBlur=function(p){vI(p),Vi(h)},f.prototype.enterSelect=function(p){mI(p),Vi(h)},f.prototype.leaveSelect=function(p){yI(p),Vi(h)},f.prototype.getModel=function(){return h.getModel()},f.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},f.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},f.prototype.getMainProcessVersion=function(){return h[tp]},f})(sP))(h)},QP=function(h){function d(f,p){for(var g=0;g<f.length;g++){var v=f[g];v[T0]=p}}Y(Rb,function(f,p){h._messageCenter.on(p,function(g){if(Fk[h.group]&&h[T0]!==Ek){if(g&&g.escapeConnect)return;var v=h.makeActionFromEvent(g),m=[];Y($h,function(b){b!==h&&b.group===h.group&&m.push(b)}),d(m,Ek),Y(m,function(b){b[T0]!==nY&&b.dispatchAction(v)}),d(m,aY)}})})}})(),t})(fa),ww=JP.prototype;ww.on=YP("on");ww.off=YP("off");ww.one=function(e,t,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(e,n)}this.on.call(this,e,n,r)};var oY=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Zg={},Rb={},Fb={},$b=[],Nb=[],Kg=[],tB={},zb={},$h={},Fk={},sY=+new Date-0,Sw="_echarts_instance_";function lY(e,t,r){var i=!(r&&r.ssr);if(i){var n=cY(e);if(n)return n}var a=new JP(e,t,r);return a.id="ec_"+sY++,$h[a.id]=a,i&&JE(e,Sw,a.id),QP(a),yn.trigger("afterinit",a),a}function cY(e){return $h[C9(e,Sw)]}function eB(e,t){tB[e]=t}function rB(e){De(Nb,e)<0&&Nb.push(e)}function iB(e,t){Tw($b,e,t,ZU)}function uY(e){Cw("afterinit",e)}function hY(e){Cw("afterupdate",e)}function Cw(e,t){yn.on(e,t)}function Zc(e,t,r){var i,n,a,o,s;ce(t)&&(r=t,t=""),Qt(e)?(i=e.type,n=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(i=e,n=t);function l(u){return u.toLowerCase()}n=l(n||i);var c=a?l(i):n;Zg[i]||(qa(Dk.test(i)&&Dk.test(n)),a&&qa(n!==i),Zg[i]={actionType:i,refinedEventType:n,nonRefinedEventType:c,update:o,action:r,refineEvent:a},Fb[n]=1,a&&s&&(Fb[c]=1),Rb[c]=i)}function fY(e,t){fw.register(e,t)}function dY(e,t){Tw(Kg,e,t,qP,"layout")}function Sl(e,t){Tw(Kg,e,t,VP,"visual")}var $k=[];function Tw(e,t,r,i,n){if((ce(t)||Qt(t))&&(r=t,t=i),!(De($k,r)>=0)){$k.push(r);var a=DP.wrapStageHandler(r,n);a.__prio=t,a.__raw=r,e.push(a)}}function nB(e,t){zb[e]=t}function pY(e,t,r){var i=VU("registerMap");i&&i(e,t,r)}var gY=_7;Sl(xw,X7);Sl(Tm,Z7);Sl(Tm,K7);Sl(xw,uU);Sl(Tm,hU);Sl(UP,GU);rB(cP);iB(jU,e7);nB("default",Q7);Zc({type:el,event:el,update:el},Mi);Zc({type:Hp,event:Hp,update:Hp},Mi);Zc({type:Rg,event:W1,update:Rg,action:Mi,refineEvent:kw,publishNonRefinedEvent:!0});Zc({type:db,event:W1,update:db,action:Mi,refineEvent:kw,publishNonRefinedEvent:!0});Zc({type:Fg,event:W1,update:Fg,action:Mi,refineEvent:kw,publishNonRefinedEvent:!0});function kw(e,t,r,i){return{eventContent:{selected:zG(r),isFromClick:t.isFromClick||!1}}}eB("default",{});eB("dark",BP);function Lu(e){return e==null?0:e.length||1}function Nk(e){return e}var vY=(function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||Nk,this._newKeyGetter=n||Nk,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],c=Lu(l);if(c>1){var u=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(u,o)}else c===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],c=i[l],u=n[l],h=Lu(c),d=Lu(u);if(h>1&&d===1)this._updateManyToOne&&this._updateManyToOne(u,c),n[l]=null;else if(h===1&&d>1)this._updateOneToMany&&this._updateOneToMany(u,c),n[l]=null;else if(h===1&&d===1)this._update&&this._update(u,c),n[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,c),n[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(o,n)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=Lu(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},e.prototype._initIndexMap=function(t,r,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!r){var l=r[s],c=Lu(l);c===0?(r[s]=o,a&&i.push(s)):c===1?r[s]=[l,o]:l.push(o)}}},e})(),mY=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function yY(e,t){var r={},i=r.encode={},n=me(),a=[],o=[],s={};Y(e.dimensions,function(d){var f=e.getDimensionInfo(d),p=f.coordDim;if(p){var g=f.coordDimIndex;D0(i,p)[g]=d,f.isExtraCoord||(n.set(p,1),bY(f.type)&&(a[0]=d),D0(s,p)[g]=e.getDimensionIndex(f.name)),f.defaultTooltip&&o.push(d)}rP.each(function(v,m){var b=D0(i,m),w=f.otherDims[m];w!=null&&w!==!1&&(b[w]=f.name)})});var l=[],c={};n.each(function(d,f){var p=i[f];c[f]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=te(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(a=u.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new mY(s,t),r}function D0(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _Y(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function bY(e){return!(e==="ordinal"||e==="time")}var Yp=(function(){function e(t){this.otherDims={},t!=null&&wt(this,t)}return e})(),xY=rr(),wY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},aB=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=lB(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ne(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=fP(this.source),i=!cB(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,c=void 0,u=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,c=h.type,u=h.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,c=d.type)}a.push({property:l,type:c,ordinalMeta:u}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=wY[c]||"f",u&&(n+=u.uid),n+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,n].join("$$");return{dimensions:a,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function oB(e){return e instanceof aB}function sB(e){for(var t=me(),r=0;r<(e||[]).length;r++){var i=e[r],n=Qt(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function lB(e){var t=xY(e);return t.dimNameMap||(t.dimNameMap=sB(e.dimensionsDefine))}function cB(e){return e>30}var Du=Qt,so=te,SY=typeof Int32Array>"u"?Array:Int32Array,CY="e\0\0",zk=-1,TY=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kY=["_approximateExtent"],Hk,np,Eu,Iu,E0,Pu,I0,uB=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;oB(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,c={},u=0;u<i.length;u++){var h=i[u],d=Ut(h)?new Yp({name:h}):h instanceof Yp?h:new Yp(h),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(f),a[f]=d,c[f]!=null&&(l=!0),d.createInvertedIndices&&(s[f]=[]);var g=u;He(d.storeDimIndex)&&(g=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=g),p.itemId===0&&(this._idDimIdx=g),n&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=me();Y(o,function(m){v.set(a[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(He(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof kb&&(a=t),!a){var o=this.dimensions,s=mw(t)||Li(t)?new dP(t,o.length):t;a=new kb;var l=so(o,function(c){return{type:n._dimInfos[c].type,property:c}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=yY(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&I0(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Eo&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Wi;if(l&&!n.pure)for(var c=[],u=t;u<r;u++){var h=n.getItem(u,c);if(!this.hasItemOption&&d9(h)&&(this.hasItemOption=!0),h){var d=h.name;a[u]==null&&d!=null&&(a[u]=aa(d,null));var f=h.id;o[u]==null&&f!=null&&(o[u]=aa(f,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<r;u++)I0(this,u);Hk(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Du(t)?wt(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Eu(this,this._nameDimIdx,r)),i==null&&(i=""),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return np(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var i=this,n=this._store;return It(t)?n.getValues(so(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?zk:n},e.prototype.each=function(t,r,i){ce(t)&&(i=r,r=t,t=[]);var n=i||this,a=so(Iu(t),this._getStoreDimIndex,this);this._store.each(a,n?ze(r,n):r)},e.prototype.filterSelf=function(t,r,i){ce(t)&&(i=r,r=t,t=[]);var n=i||this,a=so(Iu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ze(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=er(t);return Y(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){ce(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=so(Iu(t),this._getStoreDimIndex,this),s=Pu(this);return s._store=this._store.map(o,a?ze(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=so(Iu(t),this._getStoreDimIndex,this);this._store.modify(o,a?ze(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=Pu(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=Pu(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=Pu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new nr(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new vY(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return np(t,i)},function(i){return np(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Du(t)?wt(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),It(a)?a=a.slice():Du(a)&&(a=wt({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Du(r)?wt(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Du(t)?wt(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?wt(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;TG(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){Y(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:so(this.dimensions,this._getDimInfo,this),this.hostModel)),E0(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];ce(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(M1(arguments)))})},e.internalField=(function(){Hk=function(t){var r=t._invertedIndicesMap;Y(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new SY(o.categories.length);for(var l=0;l<i.length;l++)i[l]=zk;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Eu=function(t,r,i){return aa(t._getCategory(r,i),null)},np=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=Eu(t,t._idDimIdx,r)),i==null&&(i=CY+r),i},Iu=function(t){return It(t)||(t=t!=null?[t]:[]),t},Pu=function(t){var r=new e(t._schema?t._schema:so(t.dimensions,t._getDimInfo,t),t.hostModel);return E0(r,t),r},E0=function(t,r){Y(TY.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,Y(kY,function(i){t[i]=xe(r[i])}),t._calculationInfo=wt({},r._calculationInfo)},I0=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=Eu(t,a,r)),l==null&&o!=null&&(n[r]=l=Eu(t,o,r)),l==null&&s!=null){var c=t._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),n[r]=l}}})(),e})();function hB(e,t){mw(e)||(e=uP(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=me(),a=[],o=MY(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cB(o),l=i===e.dimensionsDefine,c=l?lB(e):sB(i),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var h=me(u),d=new yP(o),f=0;f<d.length;f++)d[f]=-1;function p(B){var R=d[B];if(R<0){var D=i[B],$=Qt(D)?D:{name:D},O=new Yp,F=$.name;F!=null&&c.get(F)!=null&&(O.name=O.displayName=F),$.type!=null&&(O.type=$.type),$.displayName!=null&&(O.displayName=$.displayName);var z=a.length;return d[B]=z,O.storeDimIndex=B,a.push(O),O}return a[R]}if(!s)for(var f=0;f<o;f++)p(f);h.each(function(B,R){var D=gi(B).slice();if(D.length===1&&!Ut(D[0])&&D[0]<0){h.set(R,!1);return}var $=h.set(R,[]);Y(D,function(O,F){var z=Ut(O)?c.get(O):O;z!=null&&z<o&&($[F]=z,v(p(z),R,F))})});var g=0;Y(r,function(B){var R,D,$,O;if(Ut(B))R=B,O={};else{O=B,R=O.name;var F=O.ordinalMeta;O.ordinalMeta=null,O=wt({},O),O.ordinalMeta=F,D=O.dimsDef,$=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var z=h.get(R);if(z!==!1){if(z=gi(z),!z.length)for(var H=0;H<(D&&D.length||1);H++){for(;g<o&&p(g).coordDim!=null;)g++;g<o&&z.push(g++)}Y(z,function(U,q){var K=p(U);if(l&&O.type!=null&&(K.type=O.type),v(We(K,O),R,q),K.name==null&&D){var et=D[q];!Qt(et)&&(et={name:et}),K.name=K.displayName=et.name,K.defaultTooltip=et.defaultTooltip}$&&We(K.otherDims,$)})}});function v(B,R,D){rP.get(R)!=null?B.otherDims[R]=D:(B.coordDim=R,B.coordDimIndex=D,n.set(R,!0))}var m=t.generateCoord,b=t.generateCoordCount,w=b!=null;b=m?b||1:0;var S=m||"value";function k(B){B.name==null&&(B.name=B.coordDim)}if(s)Y(a,function(B){k(B)}),a.sort(function(B,R){return B.storeDimIndex-R.storeDimIndex});else for(var M=0;M<o;M++){var T=p(M),I=T.coordDim;I==null&&(T.coordDim=LY(S,n,w),T.coordDimIndex=0,(!m||b<=0)&&(T.isExtraCoord=!0),b--),k(T),T.type==null&&(aP(e,M)===Br.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return AY(a),new aB({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function AY(e){for(var t=me(),r=0;r<e.length;r++){var i=e[r],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function MY(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return Y(t,function(a){var o;Qt(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function LY(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var DY=(function(){function e(t){this.coordSysDims=[],this.axisMap=me(),this.categoryAxisMap=me(),this.coordSysName=t}return e})();function EY(e){var t=e.get("coordinateSystem"),r=new DY(t),i=IY[t];if(i)return i(e,r,r.axisMap,r.categoryAxisMap),r}var IY={cartesian2d:function(e,t,r,i){var n=e.getReferringComponents("xAxis",en).models[0],a=e.getReferringComponents("yAxis",en).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),jl(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),jl(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,i){var n=e.getReferringComponents("singleAxis",en).models[0];t.coordSysDims=["single"],r.set("single",n),jl(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,i){var n=e.getReferringComponents("polar",en).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),jl(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),jl(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,i){var n=e.ecModel,a=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();Y(a.parallelAxisIndex,function(s,l){var c=n.getComponent("parallelAxis",s),u=o[l];r.set(u,c),jl(c)&&(i.set(u,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,i){var n=e.getReferringComponents("matrix",en).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function jl(e){return e.get("type")==="category"}function PY(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;BY(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,u,h,d;if(Y(a,function(b,w){Ut(b)&&(a[w]=b={name:b}),l&&!b.isExtraCoord&&(!i&&!c&&b.ordinalMeta&&(c=b),!u&&b.type!=="ordinal"&&b.type!=="time"&&(!n||n===b.coordDim)&&(u=b))}),u&&!i&&!c&&(i=!0),u){h="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;Y(a,function(b){b.coordDim===f&&g++});var v={name:h,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(v),o.appendCalculationDimension(m)):(a.push(v),a.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:i,stackedOverDimension:d,stackResultDimension:h}}function BY(e){return!oB(e.schema)}function Rc(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function OY(e,t){return Rc(e,t)?e.getCalculationInfo("stackResultDimension"):t}function RY(e,t){var r=e.get("coordinateSystem"),i=fw.get(r),n;return t&&t.coordSysDims&&(n=te(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=_Y(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function FY(e,t,r){var i,n;return r&&Y(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(e[i].otherDims.itemName=0),i}function km(e,t,r){r=r||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===Wi;var o=EY(t),s=RY(t,o),l=r.useEncodeDefaulter,c=ce(l)?l:l?fr(DV,s,t):null,u={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},h=hB(n,u),d=FY(h.dimensions,r.createInvertedIndices,o),f=a?null:i.getSharedDataStore(h),p=PY(t,{schema:h,store:f}),g=new uB(h,t);g.setCalculationInfo(p);var v=d!=null&&$Y(n)?function(m,b,w,S){return S===d?w:this.defaultDimValueGetter(m,b,w,S)}:null;return g.hasItemOption=!1,g.initData(a?n:f,null,v),g}function $Y(e){if(e.sourceFormat===Wi){var t=NY(e.data||[]);return!It($f(t))}}function NY(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function Hb(e){return e.type==="interval"||e.type==="log"}function zY(e,t,r,i,n){var a={},o=a.interval=YE(t/r);i!=null&&o<i&&(o=a.interval=i),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=gf(o),l=a.niceTickExtent=[$r(Math.ceil(e[0]/o)*o,s),$r(Math.floor(e[1]/o)*o,s)];return HY(l,e),a}function P0(e){var t=Math.pow(10,O1(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,$r(r*t)}function gf(e){return Pa(e)+2}function Wk(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function HY(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Wk(e,0,t),Wk(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Aw(e,t){return e>=t[0]&&e<=t[1]}var WY=(function(){function e(){this.normalize=Gk,this.scale=qk}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ze(t.normalize,t),this.scale=ze(t.scale,t)):(this.normalize=Gk,this.scale=qk)},e})();function Gk(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function qk(e,t){return e*(t[1]-t[0])+t[0]}function Wb(e,t,r){var i=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/i,Math.log(r?t[1]:Math.max(0,t[1]))/i]}var Ko=(function(){function e(t){this._calculator=new WY,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(r)||(i[1]=r),this._brkCtx&&this._brkCtx.update(i)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();om(Ko);var GY=0,Gb=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++GY,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&te(i,qY);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!Ut(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=me(this.categories))},e})();function qY(e){return Qt(e)&&e.value!=null?e.value:e+""}var fB=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Gb({})),It(n)&&(n=new Gb({categories:te(n,function(a){return Qt(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(r){return r==null?NaN:Ut(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return Aw(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],i=this._extent,n=i[0];n<=i[1];)r.push({value:n}),n++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var c=i[o];n[o]=c,a[c]=o}for(var u=0;o<s;++o){for(;a[u]!=null;)u++;n.push(u),a[u]=o}},t.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Ko);Ko.registerClass(fB);var lo=$r,Fc=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return Aw(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=gf(r)},t.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=qg(),l=[];if(!i)return l;r.breakTicks;var c=1e4;n[0]<a[0]&&(r.expandToNicedExtent?l.push({value:lo(a[0]-i,o)}):l.push({value:n[0]}));for(var u=function(p,g){return Math.round((g-p)/i)},h=a[0];h<=a[1];){if(l.push({value:h}),h=lo(h+i,o),this._brkCtx){var d=this._brkCtx.calcNiceTickMultiple(h,u);d>=0&&(h=lo(h+d*i,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>c)return[]}var f=l.length?l[l.length-1].value:a[1];return n[1]>f&&(r.expandToNicedExtent?l.push({value:lo(f+i,o)}):l.push({value:n[1]})),r.breakTicks,l},t.prototype.getMinorTicks=function(r){for(var i=this.getTicks({expandToNicedExtent:!0}),n=[],a=this.getExtent(),o=1;o<i.length;o++){var s=i[o],l=i[o-1];if(!(l.break||s.break)){for(var c=0,u=[],h=s.value-l.value,d=h/r,f=gf(d);c<r-1;){var p=lo(l.value+(c+1)*d,f);p>a[0]&&p<a[1]&&u.push(p),c++}var g=qg();g&&g.pruneTicksByBreak("auto",u,this._getNonTransBreaks(),function(v){return v},this._interval,a),n.push(u)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Pa(r.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=lo(r.value,n,!0);return ZI(a)},t.prototype.calcNiceTicks=function(r,i,n){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=zY(a,o,r,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var i=this._extent.slice();if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);r.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this._innerSetExtent(i[0],i[1]),i=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(i[0]=lo(Math.floor(i[0]/o)*o,s)),r.fixMax||(i[1]=lo(Math.ceil(i[1]/o)*o,s)),this._innerSetExtent(i[0],i[1])},t.prototype.setNiceExtent=function(r,i){this._niceExtent=[r,i]},t.type="interval",t})(Ko);Ko.registerClass(Fc);var dB=typeof Float32Array<"u",VY=dB?Float32Array:Array;function Ba(e){return It(e)?dB?new Float32Array(e):e:new VY(e)}var UY="__ec_stack_";function pB(e){return e.get("stack")||UY+e.seriesIndex}function Mw(e){return e.dim+e.index}function gB(e,t){var r=[];return t.eachSeriesByType(e,function(i){mB(i)&&r.push(i)}),r}function YY(e){var t={};Y(e,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var h=l.getData(),d=u.dim+"_"+u.index,f=h.getDimensionIndex(h.mapDimension(u.dim)),p=h.getStore(),g=0,v=p.count();g<v;++g){var m=p.get(f,g);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,c){return l-c});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[i]=a}}return r}function vB(e){var t=YY(e),r=[];return Y(e,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,c=t[l],u=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),d=Math.abs(h[1]-h[0]);s=c?u/d*c:u}else{var f=i.getData();s=Math.abs(o[1]-o[0])/f.count()}var p=tr(i.get("barWidth"),s),g=tr(i.get("barMaxWidth"),s),v=tr(i.get("barMinWidth")||(yB(i)?.5:1),s),m=i.get("barGap"),b=i.get("barCategoryGap"),w=i.get("defaultBarGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:v,barGap:m,barCategoryGap:b,defaultBarGap:w,axisKey:Mw(a),stackId:pB(i)})}),jY(r)}function jY(e){var t={};Y(e,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:i.defaultBarGap||0,stacks:{}},l=s.stacks;t[a]=s;var c=i.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=i.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var h=i.barMaxWidth;h&&(l[c].maxWidth=h);var d=i.barMinWidth;d&&(l[c].minWidth=d);var f=i.barGap;f!=null&&(s.gap=f);var p=i.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return Y(t,function(i,n){r[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=er(a).length;s=Math.max(35-l*4,15)+"%"}var c=tr(s,o),u=tr(i.gap,1),h=i.remainedWidth,d=i.autoWidthCount,f=(h-c)/(d+(d-1)*u);f=Math.max(f,0),Y(a,function(m){var b=m.maxWidth,w=m.minWidth;if(m.width){var S=m.width;b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),m.width=S,h-=S+u*S,d--}else{var S=f;b&&b<S&&(S=Math.min(b,h)),w&&w>S&&(S=w),S!==f&&(m.width=S,h-=S+u*S,d--)}}),f=(h-c)/(d+(d-1)*u),f=Math.max(f,0);var p=0,g;Y(a,function(m,b){m.width||(m.width=f),g=m,p+=m.width*(1+u)}),g&&(p-=g.width*u);var v=-p/2;Y(a,function(m,b){r[n][b]=r[n][b]||{bandWidth:o,offset:v,width:m.width},v+=m.width*(1+u)})}),r}function XY(e,t,r){if(e&&t){var i=e[Mw(t)];return i}}function ZY(e,t){var r=gB(e,t),i=vB(r);Y(r,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=pB(n),c=i[Mw(s)][l],u=c.offset,h=c.width;a.setLayout({bandWidth:c.bandWidth,offset:u,size:h})})}function KY(e){return{seriesType:e,plan:bw(),reset:function(t){if(mB(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),l=t.get("showBackground",!0),c=r.mapDimension(a.dim),u=r.getCalculationInfo("stackResultDimension"),h=Rc(r,c)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),f=QY(n,a),p=yB(t),g=t.get("barMinHeight")||0,v=u&&r.getDimensionIndex(u),m=r.getLayout("size"),b=r.getLayout("offset");return{progress:function(w,S){for(var k=w.count,M=p&&Ba(k*3),T=p&&l&&Ba(k*3),I=p&&Ba(k),B=i.master.getRect(),R=d?B.width:B.height,D,$=S.getStore(),O=0;(D=w.next())!=null;){var F=$.get(h?v:o,D),z=$.get(s,D),H=f,U=void 0;h&&(U=+F-$.get(o,D));var q=void 0,K=void 0,et=void 0,Q=void 0;if(d){var it=i.dataToPoint([F,z]);if(h){var at=i.dataToPoint([U,z]);H=at[0]}q=H,K=it[1]+b,et=it[0]-H,Q=m,Math.abs(et)<g&&(et=(et<0?-1:1)*g)}else{var it=i.dataToPoint([z,F]);if(h){var at=i.dataToPoint([z,U]);H=at[1]}q=it[0]+b,K=H,et=m,Q=it[1]-H,Math.abs(Q)<g&&(Q=(Q<=0?-1:1)*g)}p?(M[O]=q,M[O+1]=K,M[O+2]=d?et:Q,T&&(T[O]=d?B.x:q,T[O+1]=d?K:B.y,T[O+2]=R),I[D]=D):S.setItemLayout(D,{x:q,y:K,width:et,height:Q}),O+=3}p&&S.setLayout({largePoints:M,largeDataIndices:I,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function mB(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function yB(e){return e.pipelineContext&&e.pipelineContext.large}function QY(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var JY=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},_B=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="time",i}return t.prototype.getLabel=function(r){var i=this.getSetting("useUTC");return _m(r.value,O2[hV(Oh(this._minLevelUnit))]||O2.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return fV(r,i,n,o,a)},t.prototype.getTicks=function(r){var i=this._interval,n=this._extent,a=[];if(!i)return a;var o=this.getSetting("useUTC"),s=Vg(n[1],o);a.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=sj(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var c=Vg(n[1],o);a.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}}),this.getSetting("useUTC");var u=rl.length-1,h=0;return Y(a,function(d){u=Math.min(u,De(rl,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),a},t.prototype.calcNiceExtent=function(r){var i=this.getExtent();if(i[0]===i[1]&&(i[0]-=rn,i[1]+=rn),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-rn}this._innerSetExtent(i[0],i[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,i,n){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=ap.length,s=Math.min(JY(ap,this._approxInterval,0,o),o-1);this._interval=ap[s][1],this._intervalPrecision=gf(this._interval),this._minLevelUnit=ap[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return He(r)?r:+Xc(r)},t.prototype.contain=function(r){return Aw(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(Fc),ap=[["second",nw],["minute",aw],["hour",Bh],["quarter-day",Bh*6],["half-day",Bh*12],["day",rn*1.2],["half-week",rn*3.5],["week",rn*7],["month",rn*31],["quarter",rn*95],["half-year",B2/2],["year",B2]];function tj(e,t,r,i){return wb(new Date(t),e,i).getTime()===wb(new Date(r),e,i).getTime()}function ej(e,t){return e/=rn,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function rj(e){var t=30*rn;return e/=t,e>6?6:e>3?3:e>2?2:1}function ij(e){return e/=Bh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Vk(e,t){return e/=t?aw:nw,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function nj(e){return YE(e)}function aj(e,t,r){var i=Math.max(0,De(rl,t)-1);return wb(new Date(e),rl[i],r).getTime()}function oj(e,t){var r=new Date(0);r[e](1);var i=r.getTime();r[e](1+t);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function sj(e,t,r,i,n,a){var o=1e4,s=sV,l=0;function c(O,F,z,H,U,q,K){for(var et=oj(U,O),Q=F,it=new Date(Q);Q<z&&Q<=i[1]&&(K.push({value:Q}),!(l++>o));)if(it[U](it[H]()+O),Q=it.getTime(),a){var at=a.calcNiceTickMultiple(Q,et);at>0&&(it[U](it[H]()+at*O),Q=it.getTime())}K.push({value:Q,notAdd:!0})}function u(O,F,z){var H=[],U=!F.length;if(!tj(Oh(O),i[0],i[1],r)){U&&(F=[{value:aj(i[0],O,r)},{value:i[1]}]);for(var q=0;q<F.length-1;q++){var K=F[q].value,et=F[q+1].value;if(K!==et){var Q=void 0,it=void 0,at=void 0,Ct=!1;switch(O){case"year":Q=Math.max(1,Math.round(t/rn/365)),it=GI(r),at=dV(r);break;case"half-year":case"quarter":case"month":Q=rj(t),it=ow(r),at=qI(r);break;case"week":case"half-week":case"day":Q=ej(t),it=sw(r),at=VI(r),Ct=!0;break;case"half-day":case"quarter-day":case"hour":Q=ij(t),it=lw(r),at=UI(r);break;case"minute":Q=Vk(t,!0),it=cw(r),at=YI(r);break;case"second":Q=Vk(t,!1),it=uw(r),at=jI(r);break;case"millisecond":Q=nj(t),it=hw(r),at=XI(r);break}et>=i[0]&&K<=i[1]&&c(Q,K,et,it,at,Ct,H),O==="year"&&z.length>1&&q===0&&z.unshift({value:z[0].value-Q})}}for(var q=0;q<H.length;q++)z.push(H[q])}}for(var h=[],d=[],f=0,p=0,g=0;g<s.length;++g){var v=Oh(s[g]);if(uV(s[g])){u(s[g],h[h.length-1]||[],d);var m=s[g+1]?Oh(s[g+1]):null;if(v!==m){if(d.length){p=f,d.sort(function(O,F){return O.value-F.value});for(var b=[],w=0;w<d.length;++w){var S=d[w].value;(w===0||d[w-1].value!==S)&&(b.push(d[w]),S>=i[0]&&S<=i[1]&&f++)}var k=n/t;if(f>k*1.5&&p>k/1.5||(h.push(b),f>k||e===s[g]))break}d=[]}}}for(var M=Dr(te(h,function(O){return Dr(O,function(F){return F.value>=i[0]&&F.value<=i[1]&&!F.notAdd})}),function(O){return O.length>0}),T=[],I=M.length-1,g=0;g<M.length;++g)for(var B=M[g],R=0;R<B.length;++R){var D=Vg(B[R].value,r);T.push({value:B[R].value,time:{level:I-g,upperTimeUnit:D,lowerTimeUnit:D}})}T.sort(function(O,F){return O.value-F.value});for(var $=[],g=0;g<T.length;++g)(g===0||T[g].value!==T[g-1].value)&&$.push(T[g]);return $}Ko.registerClass(_B);var qb=$r,lj=Math.floor,cj=Math.ceil,op=Math.pow,sp=Math.log,bB=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Fc,r}return t.prototype.getTicks=function(r){r=r||{};var i=this._extent.slice(),n=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),te(a,function(s){var l=s.value,c=null,u=op(o,l);l===i[0]&&this._fixMin?c=n[0]:l===i[1]&&this._fixMax&&(c=n[1]);var h;return c!=null&&(u=B0(u,c)),{value:u,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,i){this._originalScale.setExtent(r,i);var n=Wb(this.base,[r,i]);e.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var r=this.base,i=e.prototype.getExtent.call(this);i[0]=op(r,i[0]),i[1]=op(r,i[1]);var n=this._originalScale.getExtent();return this._fixMin&&(i[0]=B0(i[0],n[0])),this._fixMax&&(i[1]=B0(i[1],n[1])),i},t.prototype.unionExtentFromData=function(r,i){this._originalScale.unionExtentFromData(r,i);var n=Wb(this.base,r.getApproximateExtent(i),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(r){r=r||10;var i=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var a=s9(n),o=r/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[qb(cj(i[0]/a)*a),qb(lj(i[1]/a)*a)];this._interval=a,this._intervalPrecision=gf(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=sp(r)/sp(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=sp(r)/sp(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),op(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(Fc);function B0(e,t){return qb(e,Pa(t))}Ko.registerClass(bB);var uj=(function(){function e(t,r,i){this._prepareParams(t,r,i)}return e.prototype._prepareParams=function(t,r,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;ce(o)?this._modelMinNum=lp(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=lp(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(ce(s)?this._modelMaxNum=lp(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=lp(t,s)),n)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),c=It(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[$o(c[0],1),$o(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=t?n?0:NaN:r-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=ef(s)||ef(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(s=d,c=!0),f!=null&&(l=f,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[fj[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var i=hj[t];this[i]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),hj={min:"_determinedMin",max:"_determinedMax"},fj={min:"_dataMin",max:"_dataMax"};function dj(e,t,r){var i=e.rawExtentInfo;return i||(i=new uj(e,t,r),e.rawExtentInfo=i,i)}function lp(e,t){return t==null?null:ef(t)?NaN:e.parse(t)}function xB(e,t){var r=e.type,i=dj(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&r==="time"){var s=gB("bar",o),l=!1;if(Y(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var c=vB(s),u=pj(n,a,t,c);n=u.min,a=u.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function pj(e,t,r,i){var n=r.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=XY(i,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;Y(o,function(f){s=Math.min(f.offset,s)});var l=-1/0;Y(o,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,h=1-(s+l)/a,d=u/h-u;return t+=d*(l/c),e-=d*(s/c),{min:e,max:t}}function Uk(e,t){var r=t,i=xB(e,r),n=i.extent,a=r.get("splitNumber");e instanceof bB&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(SB(r)),e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function gj(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new fB({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new _B({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ko.getClass(t)||Fc)}}function vj(e){var t=e.scale.getExtent(),r=t[0],i=t[1];return!(r>0&&i>0||r<0&&i<0)}function Vf(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=lV(t);return function(n,a){return e.scale.getFormattedLabel(n,a,r)}}else{if(Ut(t))return function(n){var a=e.scale.getLabel(n),o=t.replace("{value}",a??"");return o};if(ce(t)){if(e.type==="category")return function(n,a){return t(Qg(e,n),n.value-e.scale.getExtent()[0],null)};var i=qg();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(Qg(e,n),a,o)}}else return function(n){return e.scale.getLabel(n)}}}function Qg(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Lw(e){var t=e.get("interval");return t??"auto"}function wB(e){return e.type==="category"&&Lw(e.getLabelModel())===0}function mj(e,t){var r={};return Y(e.mapDimensionsAll(t),function(i){r[OY(e,i)]=!0}),er(r)}function $c(e){return e==="middle"||e==="center"}function vf(e){return e.getShallow("show")}function SB(e){var t=e.get("breaks",!0);t==null}var yj=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),Yk=[],_j={registerPreprocessor:rB,registerProcessor:iB,registerPostInit:uY,registerPostUpdate:hY,registerUpdateLifecycle:Cw,registerAction:Zc,registerCoordinateSystem:fY,registerLayout:dY,registerVisual:Sl,registerTransform:gY,registerLoading:nB,registerMap:pY,registerImpl:qU,PRIORITY:iY,ComponentModel:Ne,ComponentView:Ln,SeriesModel:sn,ChartView:zi,registerComponentModel:function(e){Ne.registerClass(e)},registerComponentView:function(e){Ln.registerClass(e)},registerSeriesModel:function(e){sn.registerClass(e)},registerChartView:function(e){zi.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){Ne.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){JW(e,t)}};function Va(e){if(It(e)){Y(e,function(t){Va(t)});return}De(Yk,e)>=0||(Yk.push(e),ce(e)&&(e={install:e}),e.install(_j))}var bj=rr(),Nh=rr(),Dn={estimate:1,determine:2};function Jg(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function CB(e,t){var r=te(t,function(i){return e.scale.parse(i)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function xj(e,t){var r=e.getLabelModel().get("customValues");if(r){var i=Vf(e),n=e.scale.getExtent(),a=CB(e,r),o=Dr(a,function(s){return s>=n[0]&&s<=n[1]});return{labels:te(o,function(s){var l={value:s};return{formattedLabel:i(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?Sj(e,t):Tj(e)}function wj(e,t,r){var i=e.getTickModel().get("customValues");if(i){var n=e.scale.getExtent(),a=CB(e,i);return{ticks:Dr(a,function(o){return o>=n[0]&&o<=n[1]})}}return e.type==="category"?Cj(e,t):{ticks:te(e.scale.getTicks(r),function(o){return o.value})}}function Sj(e,t){var r=e.getLabelModel(),i=TB(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:i}function TB(e,t,r){var i=Aj(e),n=Lw(t),a=r.kind===Dn.estimate;if(!a){var o=AB(i,n);if(o)return o}var s,l;ce(n)?s=DB(e,n):(l=n==="auto"?Mj(e,r):n,s=LB(e,l));var c={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return Vb(i,n,c),!0}):Vb(i,n,c),c}function Cj(e,t){var r=kj(e),i=Lw(t),n=AB(r,i);if(n)return n;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ce(i))a=DB(e,i,!0);else if(i==="auto"){var s=TB(e,e.getLabelModel(),Jg(Dn.determine));o=s.labelCategoryInterval,a=te(s.labels,function(l){return l.tickValue})}else o=i,a=LB(e,o,!0);return Vb(r,i,{ticks:a,tickCategoryInterval:o})}function Tj(e){var t=e.scale.getTicks(),r=Vf(e);return{labels:te(t,function(i,n){return{formattedLabel:r(i,n),rawLabel:e.scale.getLabel(i),tickValue:i.value,time:i.time,break:i.break}})}}var kj=kB("axisTick"),Aj=kB("axisLabel");function kB(e){return function(r){return Nh(r)[e]||(Nh(r)[e]={list:[]})}}function AB(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function Vb(e,t,r){return e.list.push({key:t,value:r}),r}function Mj(e,t){if(t.kind===Dn.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Nh(e).autoInterval=r,!0}),r}var i=Nh(e).autoInterval;return i??(Nh(e).autoInterval=e.calculateCategoryInterval(t))}function Lj(e,t){var r=t.kind,i=Ej(e),n=Vf(e),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var c=1,u=40;l>u&&(c=Math.max(1,Math.floor(l/u)));for(var h=s[0],d=e.dataToCoord(h+1)-e.dataToCoord(h),f=Math.abs(d*Math.cos(a)),p=Math.abs(d*Math.sin(a)),g=0,v=0;h<=s[1];h+=c){var m=0,b=0,w=WE(n({value:h}),i.font,"center","top");m=w.width*1.3,b=w.height*1.3,g=Math.max(g,m,7),v=Math.max(v,b,7)}var S=g/f,k=v/p;isNaN(S)&&(S=1/0),isNaN(k)&&(k=1/0);var M=Math.max(0,Math.floor(Math.min(S,k)));if(r===Dn.estimate)return t.out.noPxChangeTryDetermine.push(ze(Dj,null,e,M,l)),M;var T=MB(e,M,l);return T??M}function Dj(e,t,r){return MB(e,t,r)==null}function MB(e,t,r){var i=bj(e.model),n=e.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function Ej(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function LB(e,t,r){var i=Vf(e),n=e.scale,a=n.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=a[0],u=n.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=wB(e),d=o.get("showMinLabel")||h,f=o.get("showMaxLabel")||h;d&&c!==a[0]&&g(a[0]);for(var p=c;p<=a[1];p+=l)g(p);f&&p-l!==a[1]&&g(a[1]);function g(v){var m={value:v};s.push(r?v:{formattedLabel:i(m),rawLabel:n.getLabel(m),tickValue:v,time:void 0,break:void 0})}return s}function DB(e,t,r){var i=e.scale,n=Vf(e),a=[];return Y(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var jk=[0,1],Ij=(function(){function e(t,r,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=i||[0,0]}return e.prototype.contain=function(t){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return t>=i&&t<=n},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return i9(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;i[0]=t,i[1]=r},e.prototype.dataToCoord=function(t,r){var i=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Xk(i,n.count())),ob(t,jk,i,r)},e.prototype.coordToData=function(t,r){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Xk(i,n.count()));var a=ob(t,i,jk,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),i=wj(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=i.ticks,a=te(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Pj(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=te(i,function(a){return te(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(t){return t=t||Jg(Dn.determine),xj(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),i=r[1]-r[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},e.prototype.calculateCategoryInterval=function(t){return t=t||Jg(Dn.determine),Lj(this,t)},e})();function Xk(e,t){var r=e[1]-e[0],i=t,n=r/i/2;e[0]+=n,e[1]-=n}function Pj(e,t,r,i){var n=t.length;if(!e.onBand||r||!n)return;var a=e.getExtent(),o,s;if(n===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,c=(t[n-1].coord-t[0].coord)/l;Y(t,function(f){f.coord-=c/2,f.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[n-1].tickValue,o={coord:t[n-1].coord+c*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];d(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&d(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),d(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&d(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function d(f,p){return f=$r(f),p=$r(p),h?f>p:f<p}}function EB(e,t,r,i,n,a,o,s){var l=n-e,c=a-t,u=r-e,h=i-t,d=Math.sqrt(u*u+h*h);u/=d,h/=d;var f=l*u+c*h,p=f/d;p*=d;var g=o[0]=e+p*u,v=o[1]=t+p*h;return Math.sqrt((g-n)*(g-n)+(v-a)*(v-a))}var So=new ue,lr=new ue,Or=new ue,Co=new ue,Zn=new ue,tv=[],ci=new ue;function Bj(e,t){if(t<=180&&t>0){t=t/180*Math.PI,So.fromArray(e[0]),lr.fromArray(e[1]),Or.fromArray(e[2]),ue.sub(Co,So,lr),ue.sub(Zn,Or,lr);var r=Co.len(),i=Zn.len();if(!(r<.001||i<.001)){Co.scale(1/r),Zn.scale(1/i);var n=Co.dot(Zn),a=Math.cos(t);if(a<n){var o=EB(lr.x,lr.y,Or.x,Or.y,So.x,So.y,tv);ci.fromArray(tv),ci.scaleAndAdd(Zn,o/Math.tan(Math.PI-t));var s=Or.x!==lr.x?(ci.x-lr.x)/(Or.x-lr.x):(ci.y-lr.y)/(Or.y-lr.y);if(isNaN(s))return;s<0?ue.copy(ci,lr):s>1&&ue.copy(ci,Or),ci.toArray(e[1])}}}}function Oj(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,So.fromArray(e[0]),lr.fromArray(e[1]),Or.fromArray(e[2]),ue.sub(Co,lr,So),ue.sub(Zn,Or,lr);var i=Co.len(),n=Zn.len();if(!(i<.001||n<.001)){Co.scale(1/i),Zn.scale(1/n);var a=Co.dot(t),o=Math.cos(r);if(a<o){var s=EB(lr.x,lr.y,Or.x,Or.y,So.x,So.y,tv);ci.fromArray(tv);var l=Math.PI/2,c=Math.acos(Zn.dot(t)),u=l+c-r;if(u>=l)ue.copy(ci,Or);else{ci.scaleAndAdd(Zn,s/Math.tan(Math.PI/2-u));var h=Or.x!==lr.x?(ci.x-lr.x)/(Or.x-lr.x):(ci.y-lr.y)/(Or.y-lr.y);if(isNaN(h))return;h<0?ue.copy(ci,lr):h>1&&ue.copy(ci,Or)}ci.toArray(e[1])}}}}function O0(e,t,r,i){var n=r==="normal",a=n?e:e.ensureState(r);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?e.useStyle(s):a.style=s}function Rj(e,t){var r=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),r>0&&i.length>=3){var n=z_(i[0],i[1]),a=z_(i[1],i[2]);if(!n||!a){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*r,s=My([],i[1],i[0],o/n),l=My([],i[1],i[2],o/a),c=My([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function Fj(e,t,r){var i=e.getTextGuideLine(),n=e.getTextContent();if(!n){i&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,l=0;l<Og.length;l++){var c=Og[l],u=t[c],h=c==="normal";if(u){var d=u.get("show"),f=h?s:ne(n.states[c]&&n.states[c].ignore,s);if(f||!ne(d,o)){var p=h?i:i&&i.states[c];p&&(p.ignore=!0),i&&O0(i,!0,c,u);continue}i||(i=new Hf,e.setTextGuideLine(i),!h&&(s||!o)&&O0(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),O0(i,!1,c,u)}}if(i){We(i.style,r),i.style.fill=null;var g=a.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=Rj}}function $j(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},i=0;i<on.length;i++){var n=on[i];r[n]=e.getModel([n,t])}return r}var Zk=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Nj=1,ev=2,IB=Nj|ev;function rv(e,t,r){r=r||IB,t?e.dirty|=r:e.dirty&=~r}function PB(e,t){return t=t||IB,e.dirty==null||!!(e.dirty&t)}function Go(e){if(e)return PB(e)&&BB(e,e.label,e),e}function BB(e,t,r){var i=t.getComputedTransform();e.transform=ew(e.transform,i);var n=e.localRect=cf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,c=r&&r.marginDefault,u=a.__marginType;u==null&&c&&(o=c,u=lc.textMargin);for(var h=0;h<4;h++)R0[h]=u===lc.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;u===lc.textMargin&&Wg(n,R0,!1,!1);var d=e.rect=cf(e.rect,n);return i&&d.applyTransform(i),u===lc.minMargin&&Wg(d,R0,!1,!1),e.axisAligned=tw(i),(e.label=e.label||{}).ignore=t.ignore,rv(e,!1),rv(e,!0,ev),e}var R0=[0,0,0,0];function zj(e,t,r){return e.transform=ew(e.transform,r),e.localRect=cf(e.localRect,t),e.rect=cf(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=tw(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Hj(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var n=e.obb;n&&n.fromBoundingRect(e.localRect,r)}}function Kk(e,t){for(var r=0;r<Zk.length;r++){var i=Zk[r];e[i]==null&&(e[i]=t[i])}return Go(e)}function Qk(e){var t=e.obb;return(!t||PB(e,ev))&&(e.obb=t=t||new LI,t.fromBoundingRect(e.localRect,e.transform),rv(e,!1,ev)),t}function Wj(e,t,r,i,n){var a=e.length,o=xo[t],s=Bc[t];if(a<2)return!1;e.sort(function(T,I){return T.rect[o]-I.rect[o]});for(var l=0,c,u=!1,h=0;h<a;h++){var d=e[h],f=d.rect;c=f[o]-l,c<0&&(f[o]-=c,d.label[o]-=c,u=!0),l=f[o]+f[s]}var p=e[0],g=e[a-1],v,m;b(),v<0&&k(-v,.8),m<0&&k(m,.8),b(),w(v,m,1),w(m,v,-1),b(),v<0&&M(-v),m<0&&M(m);function b(){v=p.rect[o]-r,m=i-g.rect[o]-g.rect[s]}function w(T,I,B){if(T<0){var R=Math.min(I,-T);if(R>0){S(R*B,0,a);var D=R+T;D<0&&k(-D*B,1)}else k(-T*B,1)}}function S(T,I,B){T!==0&&(u=!0);for(var R=I;R<B;R++){var D=e[R],$=D.rect;$[o]+=T,D.label[o]+=T}}function k(T,I){for(var B=[],R=0,D=1;D<a;D++){var $=e[D-1].rect,O=Math.max(e[D].rect[o]-$[o]-$[s],0);B.push(O),R+=O}if(R){var F=Math.min(Math.abs(T)/R,I);if(T>0)for(var D=0;D<a-1;D++){var z=B[D]*F;S(z,0,D+1)}else for(var D=a-1;D>0;D--){var z=B[D-1]*F;S(-z,D,a)}}}function M(T){var I=T<0?-1:1;T=Math.abs(T);for(var B=Math.ceil(T/(a-1)),R=0;R<a-1;R++)if(I>0?S(B,0,R+1):S(-B,a-R-1,a),T-=B,T<=0)return}return u}function Gj(e){var t=[];e.sort(function(c,u){return(u.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||u.priority-c.priority});function r(c){if(!c.ignore){var u=c.ensureState("emphasis");u.ignore==null&&(u.ignore=!1)}c.ignore=!0}for(var i=0;i<e.length;i++){var n=Go(e[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(Dw(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(n)}}}function Dw(e,t,r,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,i)?!1:e.axisAligned&&t.axisAligned?!0:Qk(e).intersect(Qk(t),r,i)}function Jk(e,t,r){var i=Ga.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=n*r,i.height=a*r,i}var F0=(function(e){kt(t,e);function t(r,i,n){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Dg,typeof r=="string"?o=Jk(r,i,n):Qt(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(wE(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Jk("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,c=new ge(0,0,0,0);function u(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var w=new ge(0,0,0,0);w.copy(b),o.push(w)}else{for(var S=!1,k=1/0,M=0,T=0;T<o.length;++T){var I=o[T];if(I.intersect(b)){var B=new ge(0,0,0,0);B.copy(I),B.union(b),o[T]=B,S=!0;break}else if(l){c.copy(b),c.union(I);var R=b.width*b.height,D=I.width*I.height,$=c.width*c.height,O=$-R-D;O<k&&(k=O,M=T)}}if(l&&(o[M].union(b),S=!0),!S){var w=new ge(0,0,0,0);w.copy(b),o.push(w)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var d=r[h];if(d){var f=d.shouldBePainted(n,a,!0,!0),p=d.__isRendered&&(d.__dirty&Ri||!f)?d.getPrevPaintRect():null;p&&u(p);var g=f&&(d.__dirty&Ri||!d.__isRendered)?d.getPaintRect():null;g&&u(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var d=i[h],f=d&&d.shouldBePainted(n,a,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&u(p)}}var v;do{v=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var m=h+1;m<o.length;)o[h].intersect(o[m])?(v=!0,o[h].union(o[m]),o.splice(m,1)):m++;h++}}while(v);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var c=this.motionBlur&&!r,u=this.lastFrameAlpha,h=this.dpr,d=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var f=this.domBack;function p(g,v,m,b){if(o.clearRect(g,v,m,b),i&&i!=="transparent"){var w=void 0;if(rm(i)){var S=i.global||i.__width===m&&i.__height===b;w=S&&i.__canvasGradient||Pb(o,i,{x:0,y:0,width:m,height:b}),i.__canvasGradient=w,i.__width=m,i.__height=b}else EH(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,w=Bb(o,i,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=w||i,o.fillRect(g,v,m,b),o.restore()}c&&(o.save(),o.globalAlpha=u,o.drawImage(f,g,v,m,b),o.restore())}!n||c?p(0,0,s,l):n.length&&Y(n,function(g){p(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(fa),tA=1e5,Es=314159,cp=.01,qj=.001;function Vj(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Uj(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var Yj=(function(){function e(t,r,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=wt({},i||{}),this.dpr=i.devicePixelRatio||Dg,this._singleCanvas=a,this.root=t;var o=t.style;o&&(wE(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var u=t,h=u.width,d=u.height;i.width!=null&&(h=i.width),i.height!=null&&(d=i.height),this.dpr=i.devicePixelRatio||1,u.width=h*this.dpr,u.height=d*this.dpr,this._width=h,this._height=d;var f=new F0(u,this,this.dpr);f.__builtin__=!0,f.initContext(),l[Es]=f,f.zlevel=Es,s.push(Es),this._domRoot=t}else{this._width=Jd(t,0,i),this._height=Jd(t,1,i);var c=this._domRoot=Uj(this._width,this._height);t.appendChild(c)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,i=this._hoverlayer;if(i&&i.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(tA)),a||(a=i.ctx,a.save()),Hs(a,s,n,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(tA)},e.prototype.paintOne=function(t,r){NP(t,r)},e.prototype._paintList=function(t,r,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;Cg(function(){l._paintList(t,r,i,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Es).ctx,r=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,r,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,i)})},e.prototype._doPaintList=function(t,r,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&a.push(c)}for(var u=!0,h=!1,d=function(g){var v=a[g],m=v.ctx,b=o&&v.createRepaintRects(t,r,f._width,f._height),w=i?v.__startIndex:v.__drawIndex,S=!i&&v.incremental&&Date.now,k=S&&Date.now(),M=v.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,M,b);else if(w===v.__startIndex){var T=t[w];(!T.incremental||!T.notClear||i)&&v.clear(!1,M,b)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=v.__startIndex);var I,B=function(O){var F={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(I=w;I<v.__endIndex;I++){var z=t[I];if(z.__inHover&&(h=!0),n._doPaintEl(z,v,o,O,F,I===v.__endIndex-1),S){var H=Date.now()-k;if(H>15)break}}F.prevElClipPaths&&m.restore()};if(b)if(b.length===0)I=v.__endIndex;else for(var R=f.dpr,D=0;D<b.length;++D){var $=b[D];m.save(),m.beginPath(),m.rect($.x*R,$.y*R,$.width*R,$.height*R),m.clip(),B($),m.restore()}else m.save(),B(),m.restore();v.__drawIndex=I,v.__drawIndex<v.__endIndex&&(u=!1)},f=this,p=0;p<a.length;p++)d(p);return he.wxa&&Y(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:u,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,i,n,a,o){var s=r.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Hs(s,t,a,o),t.setPrevPaintRect(l))}else Hs(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Es);var i=this._layers[t];return i||(i=new F0("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Re(i,this._layerConfig[t],!0):this._layerConfig[t-cp]&&Re(i,this._layerConfig[t-cp],!0),r&&(i.virtual=r),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,r){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&Vj(r)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=r,!r.virtual)if(s){var c=s.dom;c.nextSibling?o.insertBefore(r.dom,c.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,d){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],c=n.zlevel,u=void 0;s!==c&&(s=c,o=0),n.incremental?(u=this.getLayer(c+qj,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(c+(o>0?cp:0),this._needsManuallyCompositing),u.__builtin__||A1("ZLevel "+c+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.incremental?u.__drawIndex=-1:u.__drawIndex=l,r(l),a=u),n.__dirty&Ri&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,d){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Y(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Re(i[t],r,!0):i[t]=r;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+cp){var o=this._layers[a];Re(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,i=this._zlevelList,n=r[t];n&&(n.dom.parentNode.removeChild(n.dom),delete r[t],i.splice(De(i,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),r!=null&&(n.height=r),t=Jd(a,0,n),r=Jd(a,1,n),i.style.display="",this._width!==t||r!==this._height){i.style.width=t+"px",i.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Es).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Es].dom;var r=new F0("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var i=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var u=s[l];Hs(i,u,o,l===c-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function jj(e){e.registerPainter("canvas",Yj)}var Xj=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return km(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var i=new Cr,n=hl("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,c=hl(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(c),c.setStyle(r.itemStyle);var u=r.iconRotate==="inherit"?o:r.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=jt.color.neutral00,c.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(sn);function Ew(e,t){var r=e.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Oc(e,t,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Oc(e,t,r[o]));return a.join(" ")}}function OB(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!It(t))return t+"";for(var i=[],n=0;n<r.length;n++){var a=e.getDimensionIndex(r[n]);a>=0&&i.push(t[a])}return i.join(" ")}var Iw=(function(e){kt(t,e);function t(r,i,n,a){var o=e.call(this)||this;return o.updateData(r,i,n,a),o}return t.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=hl(r,-1,-1,2,2,null,s);l.attr({z2:ne(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Zj,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){$g(this.childAt(0))},t.prototype.downplay=function(){Ng(this.childAt(0))},t.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},t.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},t.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,i),c=t.getSymbolZ2(r,i),u=o!==this._symbolType,h=a&&a.disableAnimation;if(u){var d=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?f.attr(p):vi(f,p,s,i),Z1(f)}if(this._updateCommon(r,i,l,n,a),u){var f=this.childAt(0);if(!h){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,p,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,c,u,h,d,f,p,g,v,m;if(a&&(c=a.emphasisItemStyle,u=a.blurItemStyle,h=a.selectItemStyle,d=a.focus,f=a.blurScope,g=a.labelStatesModels,v=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var b=a&&a.itemModel?a.itemModel:r.getItemModel(i),w=b.getModel("emphasis");c=w.getModel("itemStyle").getItemStyle(),h=b.getModel(["select","itemStyle"]).getItemStyle(),u=b.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),f=w.get("blurScope"),p=w.get("disabled"),g=Gf(b),v=w.getShallow("scale"),m=b.getShallow("cursor")}var S=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var k=OP(r.getItemVisual(i,"symbolOffset"),n);k&&(s.x=k[0],s.y=k[1]),m&&s.attr("cursor",m);var M=r.getItemVisual(i,"style"),T=M.fill;if(s instanceof Xo){var I=s.style;s.useStyle(wt({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},M))}else s.__isEmptyBrush?s.useStyle(wt({},M)):s.useStyle(M),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var B=r.getItemVisual(i,"liftZ"),R=this._z2;B!=null?R==null&&(this._z2=s.z2,s.z2+=B):R!=null&&(s.z2=R,this._z2=null);var D=o&&o.useNameLabel;Wf(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:$,inheritColor:T,defaultOpacity:M.opacity});function $(z){return D?r.getName(z):Ew(r,z)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var O=s.ensureState("emphasis");O.style=c,s.ensureState("select").style=h,s.ensureState("blur").style=u;var F=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;O.scaleX=this._sizeX*F,O.scaleY=this._sizeY*F,this.setSymbolScale(1),sf(this,d,f,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=Te(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Hg(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Hg(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,i){return AU(r.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},t})(Cr);function Zj(e,t){this.parent.drift(e,t)}function $0(e,t,r,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(r))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function eA(e){return e!=null&&!Qt(e)&&(e={isIgnore:e}),e||{}}function rA(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Gf(t),cursorStyle:t.get("cursor")}}var RB=(function(){function e(t){this.group=new Cr,this._SymbolCtor=t||Iw}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=eA(r);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=rA(t),c={disableAnimation:s},u=r.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var d=u(h);if($0(t,d,h,r)){var f=new o(t,h,l,c);f.setPosition(d),t.setItemGraphicEl(h,f),i.add(f)}}).update(function(h,d){var f=a.getItemGraphicEl(d),p=u(h);if(!$0(t,p,h,r)){i.remove(f);return}var g=t.getItemVisual(h,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==g)i.remove(f),f=new o(t,h,l,c),f.setPosition(p);else{f.updateData(t,h,l,c);var m={x:p[0],y:p[1]};s?f.attr(m):vi(f,m,n)}i.add(f),t.setItemGraphicEl(h,f)}).remove(function(h){var d=a.getItemGraphicEl(h);d&&d.fadeOut(function(){i.remove(d)},n)}).execute(),this._getSymbolPoint=u,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rA(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i){this._progressiveEls=[],i=eA(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if($0(r,o,a,i)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){gm(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},e})();function FB(e,t,r){var i=e.getBaseAxis(),n=e.getOtherAxis(i),a=Kj(n,r),o=i.dim,s=n.dim,l=t.mapDimension(s),c=t.mapDimension(o),u=s==="x"||s==="radius"?1:0,h=te(e.dimensions,function(p){return t.mapDimension(p)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return Rc(t,h[0])&&(d=!0,h[0]=f),Rc(t,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Kj(e,t){var r=0,i=e.scale.getExtent();return t==="start"?r=i[0]:t==="end"?r=i[1]:He(t)&&!isNaN(t)?r=t:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function $B(e,t,r,i){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function Qj(e,t){var r=[];return t.diff(e).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function Jj(e,t,r,i,n,a,o,s){for(var l=Qj(e,t),c=[],u=[],h=[],d=[],f=[],p=[],g=[],v=FB(n,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w<l.length;w++){var S=l[w],k=!0,M=void 0,T=void 0;switch(S.cmd){case"=":M=S.idx*2,T=S.idx1*2;var I=m[M],B=m[M+1],R=b[T],D=b[T+1];(isNaN(I)||isNaN(B))&&(I=R,B=D),c.push(I,B),u.push(R,D),h.push(r[M],r[M+1]),d.push(i[T],i[T+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var $=S.idx,O=v.dataDimsForPoint,F=n.dataToPoint([t.get(O[0],$),t.get(O[1],$)]);T=$*2,c.push(F[0],F[1]),u.push(b[T],b[T+1]);var z=$B(v,n,t,$);h.push(z[0],z[1]),d.push(i[T],i[T+1]),g.push(t.getRawIndex($));break;case"-":k=!1}k&&(f.push(S),p.push(p.length))}p.sort(function(xt,Zt){return g[xt]-g[Zt]});for(var H=c.length,U=Ba(H),q=Ba(H),K=Ba(H),et=Ba(H),Q=[],w=0;w<p.length;w++){var it=p[w],at=w*2,Ct=it*2;U[at]=c[Ct],U[at+1]=c[Ct+1],q[at]=u[Ct],q[at+1]=u[Ct+1],K[at]=h[Ct],K[at+1]=h[Ct+1],et[at]=d[Ct],et[at+1]=d[Ct+1],Q[w]=f[it]}return{current:U,next:q,stackedOnCurrent:K,stackedOnNext:et,status:Q}}var co=Math.min,uo=Math.max;function il(e,t){return isNaN(e)||isNaN(t)}function Ub(e,t,r,i,n,a,o,s,l){for(var c,u,h,d,f,p,g=r,v=0;v<i;v++){var m=t[g*2],b=t[g*2+1];if(g>=n||g<0)break;if(il(m,b)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](m,b),h=m,d=b;else{var w=m-c,S=b-u;if(w*w+S*S<.5){g+=a;continue}if(o>0){for(var k=g+a,M=t[k*2],T=t[k*2+1];M===m&&T===b&&v<i;)v++,k+=a,g+=a,M=t[k*2],T=t[k*2+1],m=t[g*2],b=t[g*2+1],w=m-c,S=b-u;var I=v+1;if(l)for(;il(M,T)&&I<i;)I++,k+=a,M=t[k*2],T=t[k*2+1];var B=.5,R=0,D=0,$=void 0,O=void 0;if(I>=i||il(M,T))f=m,p=b;else{R=M-c,D=T-u;var F=m-c,z=M-m,H=b-u,U=T-b,q=void 0,K=void 0;if(s==="x"){q=Math.abs(F),K=Math.abs(z);var et=R>0?1:-1;f=m-et*q*o,p=b,$=m+et*K*o,O=b}else if(s==="y"){q=Math.abs(H),K=Math.abs(U);var Q=D>0?1:-1;f=m,p=b-Q*q*o,$=m,O=b+Q*K*o}else q=Math.sqrt(F*F+H*H),K=Math.sqrt(z*z+U*U),B=K/(K+q),f=m-R*o*(1-B),p=b-D*o*(1-B),$=m+R*o*B,O=b+D*o*B,$=co($,uo(M,m)),O=co(O,uo(T,b)),$=uo($,co(M,m)),O=uo(O,co(T,b)),R=$-m,D=O-b,f=m-R*q/K,p=b-D*q/K,f=co(f,uo(c,m)),p=co(p,uo(u,b)),f=uo(f,co(c,m)),p=uo(p,co(u,b)),R=m-f,D=b-p,$=m+R*K/q,O=b+D*K/q}e.bezierCurveTo(h,d,f,p,m,b),h=$,d=O}else e.lineTo(m,b)}c=m,u=b,g+=a}return v}var NB=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),tX=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:jt.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new NB},t.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&il(n[o*2-2],n[o*2-1]);o--);for(;a<o&&il(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Ub(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=cl.CMD,s,l,c=i==="x",u=[],h=0;h<a.length;){var d=a[h++],f=void 0,p=void 0,g=void 0,v=void 0,m=void 0,b=void 0,w=void 0;switch(d){case o.M:s=a[h++],l=a[h++];break;case o.L:if(f=a[h++],p=a[h++],w=c?(r-s)/(f-s):(r-l)/(p-l),w<=1&&w>=0){var S=c?(p-l)*w+l:(f-s)*w+s;return c?[r,S]:[S,r]}s=f,l=p;break;case o.C:f=a[h++],p=a[h++],g=a[h++],v=a[h++],m=a[h++],b=a[h++];var k=c?kg(s,f,g,m,r,u):kg(l,p,v,b,r,u);if(k>0)for(var M=0;M<k;M++){var T=u[M];if(T<=1&&T>=0){var S=c?Rr(l,p,v,b,T):Rr(s,f,g,m,T);return c?[r,S]:[S,r]}}s=m,l=b;break}}},t})(Fe),eX=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(NB),rX=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new eX},t.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&il(n[s*2-2],n[s*2-1]);s--);for(;o<s&&il(n[o*2],n[o*2+1]);o++);}for(;o<s;){var c=Ub(r,n,o,s,s,1,i.smooth,l,i.connectNulls);Ub(r,a,o+c-1,c,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=c+1,r.closePath()}},t})(Fe);function zB(e,t,r,i,n){var a=e.getArea(),o=a.x,s=a.y,l=a.width,c=a.height,u=r.get(["lineStyle","width"])||0;o-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new cr({shape:{x:o,y:s,width:l,height:c}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=c),h.shape.height=0);var g=ce(n)?function(v){n(v,h)}:null;an(h,{shape:{width:l,height:c,x:o,y:s}},r,null,i,g)}return h}function HB(e,t,r){var i=e.getArea(),n=$r(i.r0,1),a=$r(i.r,1),o=new Zo({shape:{cx:$r(e.cx,1),cy:$r(e.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,an(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function iX(e,t,r,i,n){if(e){if(e.type==="polar")return HB(e,t,r);if(e.type==="cartesian2d")return zB(e,t,r,i,n)}else return null;return null}function Pw(e,t){return e.type===t}function iA(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function nA(e){for(var t=1/0,r=1/0,i=-1/0,n=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(r=Math.min(s,r),n=Math.max(s,n))}return[[t,r],[i,n]]}function aA(e,t){var r=nA(e),i=r[0],n=r[1],a=nA(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function oA(e){return He(e)?e:e?.5:0}function nX(e,t,r){if(!r.valueDim)return[];for(var i=t.count(),n=Ba(i*2),a=0;a<i;a++){var o=$B(r,e,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function ho(e,t,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,c=[],u=[],h=[],d=[];if(n){for(l=0;l<e.length;l+=2){var f=t||e;!isNaN(f[l])&&!isNaN(f[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],u[0]=e[l],u[1]=e[l+1],s.push(u[0],u[1]),i){case"end":c[o]=h[o],c[1-o]=u[1-o],s.push(c[0],c[1]);break;case"middle":var p=(u[o]+h[o])/2,g=[];c[o]=g[o]=p,c[1-o]=u[1-o],g[1-o]=h[1-o],s.push(c[0],c[1]),s.push(g[0],g[1]);break;default:c[o]=u[o],c[1-o]=h[1-o],s.push(c[0],c[1])}return s.push(e[l++],e[l++]),s}function aX(e,t){var r=[],i=e.length,n,a;function o(u,h,d){var f=u.coord,p=(d-f)/(h.coord-f),g=kW(p,[u.color,h.color]);return{coord:d,color:g}}for(var s=0;s<i;s++){var l=e[s],c=l.coord;if(c<0)n=l;else if(c>t){a?r.push(o(a,l,t)):n&&r.push(o(n,l,0),o(n,l,t));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function oX(e,t,r){var i=e.getVisual("visualMeta");if(!(!i||!i.length||!e.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=e.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),c=te(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),u=c.length,h=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=aX(c,n==="x"?r.getWidth():r.getHeight()),f=d.length;if(!f&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var p=10,g=d[0].coord-p,v=d[f-1].coord+p,m=v-g;if(m<.001)return"transparent";Y(d,function(w){w.offset=(w.coord-g)/m}),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var b=new MI(0,0,0,0,d,!0);return b[n]=g,b[n+"2"]=v,b}}}function sX(e,t,r){var i=e.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&lX(a,t))){var o=t.mapDimension(a.dim),s={};return Y(a.getViewLabels(),function(l){var c=a.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function lX(e,t){var r=e.getExtent(),i=Math.abs(r[1]-r[0])/e.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Iw.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function cX(e,t){return isNaN(e)||isNaN(t)}function uX(e){for(var t=e.length/2;t>0&&cX(e[t*2-2],e[t*2-1]);t--);return t-1}function sA(e,t){return[e[t*2],e[t*2+1]]}function hX(e,t,r){for(var i=e.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,c=0;c<i;c++)if(o=e[c*2+n],!(isNaN(o)||isNaN(e[c*2+1-n]))){if(c===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=c;break}s=c,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function WB(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<on.length;t++)if(e.get([on[t],"endLabel","show"]))return!0;return!1}function N0(e,t,r,i){if(Pw(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=WB(i)?function(f,p){e._endLabelOnDuring(f,p,o,s,a,n,t)}:null,c=t.getBaseAxis().isHorizontal(),u=zB(t,r,i,function(){var f=e._endLabel;f&&r&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=d*2):(h.x-=d,h.width+=d*2)}return l&&l(1,u),u}else return HB(t,r,i)}function fX(e,t){var r=t.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var dX=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Cr,i=new RB;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=ze(this._changePolyState,this)},t.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),c=r.getModel("areaStyle"),u=s.getLayout("points")||[],h=a.type==="polar",d=this._coordSys,f=this._symbolDraw,p=this._polyline,g=this._polygon,v=this._lineGroup,m=!i.ssr&&r.get("animation"),b=!c.isEmpty(),w=c.get("origin"),S=FB(a,s,w),k=b&&nX(a,s,S),M=r.get("showSymbol"),T=r.get("connectNulls"),I=M&&!h&&sX(r,s,a),B=this._data;B&&B.eachItemGraphicEl(function(xt,Zt){xt.__temp&&(o.remove(xt),B.setItemGraphicEl(Zt,null))}),M||f.remove(),o.add(v);var R=h?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var $=oX(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&d.type===a.type&&R===this._step))M&&f.updateData(s,{isIgnore:I,clipShape:D,disableAnimation:!0,getSymbolPoint:function(xt){return[u[xt*2],u[xt*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,D),R&&(k&&(k=ho(k,u,a,R,T)),u=ho(u,null,a,R,T)),p=this._newPolyline(u),b?g=this._newPolygon(u,k):g&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,ul($)),v.setClipPath(N0(this,a,!0,r));else{b&&!g?g=this._newPolygon(u,k):g&&!b&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,ul($));var O=v.getClipPath();if(O){var F=N0(this,a,!1,r);an(O,{shape:F.shape},r)}else v.setClipPath(N0(this,a,!0,r));M&&f.updateData(s,{isIgnore:I,clipShape:D,disableAnimation:!0,getSymbolPoint:function(xt){return[u[xt*2],u[xt*2+1]]}}),(!iA(this._stackedOnPoints,k)||!iA(this._points,u))&&(m?this._doUpdateAnimation(s,k,a,n,R,w,T):(R&&(k&&(k=ho(k,u,a,R,T)),u=ho(u,null,a,R,T)),p.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:k})))}var z=r.getModel("emphasis"),H=z.get("focus"),U=z.get("blurScope"),q=z.get("disabled");if(p.useStyle(We(l.getLineStyle(),{fill:"none",stroke:$,lineJoin:"bevel"})),zg(p,r,"lineStyle"),p.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var K=p.getState("emphasis").style;K.lineWidth=+p.style.lineWidth+1}Te(p).seriesIndex=r.seriesIndex,sf(p,H,U,q);var et=oA(r.get("smooth")),Q=r.get("smoothMonotone");if(p.setShape({smooth:et,smoothMonotone:Q,connectNulls:T}),g){var it=s.getCalculationInfo("stackedOnSeries"),at=0;g.useStyle(We(c.getAreaStyle(),{fill:$,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),it&&(at=oA(it.get("smooth"))),g.setShape({smooth:et,stackedOnSmooth:at,smoothMonotone:Q,connectNulls:T}),zg(g,r,"areaStyle"),Te(g).seriesIndex=r.seriesIndex,sf(g,H,U,q)}var Ct=this._changePolyState;s.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=Ct)}),this._polyline.onHoverStateChange=Ct,this._data=s,this._coordSys=a,this._stackedOnPoints=k,this._points=u,this._step=R,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,i){Te(i).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=ll(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),c=o.getItemGraphicEl(s);if(!c){var u=l[s*2],h=l[s*2+1];if(isNaN(u)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,h))return;var d=r.get("zlevel")||0,f=r.get("z")||0;c=new Iw(o,s),c.x=u,c.y=h,c.setZ(d,f);var p=c.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=f,p.z2=this._polyline.z2+1),c.__temp=!0,o.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else zi.prototype.highlight.call(this,r,i,n,a)},t.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=ll(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zi.prototype.downplay.call(this,r,i,n,a)},t.prototype._changePolyState=function(r){var i=this._polygon;d2(this._polyline,r),i&&d2(i,r)},t.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new tX({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new rX({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var c=r.hostModel,u=c.get("animationDuration");ce(u)&&(u=u(null));var h=c.get("animationDelay")||0,d=ce(h)?h(null):h;r.eachItemGraphicEl(function(f,p){var g=f;if(g){var v=[f.x,f.y],m=void 0,b=void 0,w=void 0;if(n)if(o){var S=n,k=i.pointToCoord(v);a?(m=S.startAngle,b=S.endAngle,w=-k[1]/180*Math.PI):(m=S.r0,b=S.r,w=k[0])}else{var M=n;a?(m=M.x,b=M.x+M.width,w=f.x):(m=M.y+M.height,b=M.y,w=f.y)}var T=b===m?0:(w-m)/(b-m);l&&(T=1-T);var I=ce(h)?h(p):u*T+d,B=g.getSymbolPath(),R=B.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),R&&R.animateFrom({style:{opacity:0}},{duration:300,delay:I}),B.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(WB(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new zr({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=uX(l);u>=0&&(Wf(s,Gf(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:u,defaultText:function(h,d,f){return f!=null?OB(o,f):Ew(o,h)},enableTextSetter:!0},fX(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var c=this._endLabel,u=this._polyline;if(c){r<1&&a.originalX==null&&(a.originalX=c.x,a.originalY=c.y);var h=n.getLayout("points"),d=n.hostModel,f=d.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),m=v.isHorizontal(),b=v.inverse,w=i.shape,S=b?m?w.x:w.y+w.height:m?w.x+w.width:w.y,k=(m?g:0)*(b?-1:1),M=(m?0:-g)*(b?-1:1),T=m?"x":"y",I=hX(h,S,T),B=I.range,R=B[1]-B[0],D=void 0;if(R>=1){if(R>1&&!f){var $=sA(h,B[0]);c.attr({x:$[0]+k,y:$[1]+M}),o&&(D=d.getRawValue(B[0]))}else{var $=u.getPointOn(S,T);$&&c.attr({x:$[0]+k,y:$[1]+M});var O=d.getRawValue(B[0]),F=d.getRawValue(B[1]);o&&(D=k9(n,p,O,F,I.t))}a.lastFrameIndex=B[0]}else{var z=r===1||a.lastFrameIndex>0?B[0]:0,$=sA(h,z);o&&(D=d.getRawValue(z)),c.attr({x:$[0]+k,y:$[1]+M})}if(o){var H=mm(c);typeof H.setLabelText=="function"&&H.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var c=this._polyline,u=this._polygon,h=r.hostModel,d=Jj(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),f=d.current,p=d.stackedOnCurrent,g=d.next,v=d.stackedOnNext;if(o&&(p=ho(d.stackedOnCurrent,d.current,n,o,l),f=ho(d.current,null,n,o,l),v=ho(d.stackedOnNext,d.next,n,o,l),g=ho(d.next,null,n,o,l)),aA(f,g)>3e3||u&&aA(p,v)>3e3){c.stopAnimation(),c.setShape({points:g}),u&&(u.stopAnimation(),u.setShape({points:g,stackedOnPoints:v}));return}c.shape.__points=d.current,c.shape.points=f;var m={shape:{points:g}};d.current!==f&&(m.shape.__points=d.next),c.stopAnimation(),vi(c,m,h),u&&(u.setShape({points:f,stackedOnPoints:p}),u.stopAnimation(),vi(u,{shape:{stackedOnPoints:v}},h),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var b=[],w=d.status,S=0;S<w.length;S++){var k=w[S].cmd;if(k==="="){var M=r.getItemGraphicEl(w[S].idx1);M&&b.push({el:M,ptIdx:S})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var T=c.shape.__points,I=0;I<b.length;I++){var B=b[I].el,R=b[I].ptIdx*2;B.x=T[R],B.y=T[R+1],B.markRedraw()}})},t.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(zi);function Bw(e,t){return{seriesType:e,plan:bw(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(n){var s=te(n.dimensions,function(f){return i.mapDimension(f)}).slice(0,2),l=s.length,c=i.getCalculationInfo("stackResultDimension");Rc(i,s[0])&&(s[0]=c),Rc(i,s[1])&&(s[1]=c);var u=i.getStore(),h=i.getDimensionIndex(s[0]),d=i.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var g=f.end-f.start,v=o&&Ba(g*l),m=[],b=[],w=f.start,S=0;w<f.end;w++){var k=void 0;if(l===1){var M=u.get(h,w);k=n.dataToPoint(M,null,b)}else m[0]=u.get(h,w),m[1]=u.get(d,w),k=n.dataToPoint(m,null,b);o?(v[S++]=k[0],v[S++]=k[1]):p.setItemLayout(w,k.slice())}o&&p.setLayout("points",v)}}}}}}var pX={average:function(e){for(var t=0,r=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},gX=function(e){return Math.round(e.length/2)};function GB(e){return{seriesType:e,reset:function(t,r,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),h=i.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(h||1),f=Math.round(s/d);if(isFinite(f)&&f>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(c.dim),1/f)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(c.dim),1/f));var p=void 0;Ut(a)?p=pX[a]:ce(a)&&(p=a),p&&t.setData(n.downSample(n.mapDimension(c.dim),1/f,p,gX))}}}}}function vX(e){e.registerChartView(dX),e.registerSeriesModel(Xj),e.registerLayout(Bw("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,GB("line"))}var Yb=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,i){return km(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(n)Y(a.getAxes(),function(d,f){if(d.type==="category"&&i!=null){var p=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),v=o[f],m=i[f]==="x1"||i[f]==="y1";if(m&&!g&&(v+=1),p.length<2)return;if(p.length===2){s[f]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var b=void 0,w=void 0,S=1,k=0;k<p.length;k++){var M=p[k].coord,T=k===p.length-1?p[k-1].tickValue+S:p[k].tickValue;if(T===v){w=M;break}else if(T<v)b=M;else if(b!=null&&T>v){w=(M+b)/2;break}k===1&&(S=T-p[0].tickValue)}w==null&&(b?b&&(w=p[p.length-1].coord):w=p[0].coord),s[f]=d.toGlobalCoord(w)}});else{var l=this.getData(),c=l.getLayout("offset"),u=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=c+u/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(sn);sn.registerClass(Yb);var mX=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return km(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>r&&(r=i),r},t.prototype.brushSelector=function(r,i,n){return n.rect(i.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=zI(Yb.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:jt.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Yb),yX=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),lA=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new yX},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,c=o+l,u=i.startAngle,h=i.endAngle,d=i.clockwise,f=Math.PI*2,p=d?h-u<f:u-h<f;p||(u=h-(d?f:-f));var g=Math.cos(u),v=Math.sin(u),m=Math.cos(h),b=Math.sin(h);p?(r.moveTo(g*o+n,v*o+a),r.arc(g*c+n,v*c+a,l,-Math.PI+u,u,!d)):r.moveTo(g*s+n,v*s+a),r.arc(n,a,s,u,h,!d),r.arc(m*c+n,b*c+a,l,h-Math.PI*2,h-Math.PI,!d),o!==0&&r.arc(n,a,o,h,u,d)},t})(Fe);function _X(e,t){t=t||{};var r=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Eg(i,n,a);var s=e(o),l=n.distance!=null?n.distance:5,c=this.shape,u=c.cx,h=c.cy,d=c.r,f=c.r0,p=(d+f)/2,g=c.startAngle,v=c.endAngle,m=(g+v)/2,b=r?Math.abs(d-f)/2:0,w=Math.cos,S=Math.sin,k=u+d*w(g),M=h+d*S(g),T="left",I="top";switch(s){case"startArc":k=u+(f-l)*w(m),M=h+(f-l)*S(m),T="center",I="top";break;case"insideStartArc":k=u+(f+l)*w(m),M=h+(f+l)*S(m),T="center",I="bottom";break;case"startAngle":k=u+p*w(g)+up(g,l+b,!1),M=h+p*S(g)+hp(g,l+b,!1),T="right",I="middle";break;case"insideStartAngle":k=u+p*w(g)+up(g,-l+b,!1),M=h+p*S(g)+hp(g,-l+b,!1),T="left",I="middle";break;case"middle":k=u+p*w(m),M=h+p*S(m),T="center",I="middle";break;case"endArc":k=u+(d+l)*w(m),M=h+(d+l)*S(m),T="center",I="bottom";break;case"insideEndArc":k=u+(d-l)*w(m),M=h+(d-l)*S(m),T="center",I="top";break;case"endAngle":k=u+p*w(v)+up(v,l+b,!0),M=h+p*S(v)+hp(v,l+b,!0),T="left",I="middle";break;case"insideEndAngle":k=u+p*w(v)+up(v,-l+b,!0),M=h+p*S(v)+hp(v,-l+b,!0),T="right",I="middle";break;default:return Eg(i,n,a)}return i=i||{},i.x=k,i.y=M,i.align=T,i.verticalAlign=I,i}}function bX(e,t,r,i){if(He(i)){e.setTextConfig({rotation:i});return}else if(It(t)){e.setTextConfig({rotation:0});return}var n=e.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,c=r(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-l;c==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function up(e,t,r){return t*Math.sin(e)*(r?-1:1)}function hp(e,t,r){return t*Math.cos(e)*(r?1:-1)}function nh(e,t,r){var i=e.get("borderRadius");if(i==null)return r?{cornerRadius:0}:null;It(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:te(i,function(a){return $o(a,n)})}}var z0=Math.max,H0=Math.min;function xX(e,t){var r=e.getArea&&e.getArea();if(Pw(e,"cartesian2d")){var i=e.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(r.x-=n,r.width+=n*2):(r.y-=n,r.height+=n*2)}}return r}var wX=(function(e){kt(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,i,n,a){this._model=r,this._removeOnRenderedListener(n),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,i,n):this._renderNormal(r,i,n,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,i){this._progressiveEls=[],this._incrementalRenderLarge(r,i)},t.prototype.eachRendered=function(r){gm(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var i=r.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(r,i,n,a){var o=this.group,s=r.getData(),l=this._data,c=r.coordinateSystem,u=c.getBaseAxis(),h;c.type==="cartesian2d"?h=u.isHorizontal():c.type==="polar"&&(h=u.dim==="angle");var d=r.isAnimationEnabled()?r:null,f=SX(r,c);f&&this._enableRealtimeSort(f,s,n);var p=r.get("clip",!0)||f,g=xX(c,s);o.removeClipPath();var v=r.get("roundCap",!0),m=r.get("showBackground",!0),b=r.getModel("backgroundStyle"),w=b.get("borderRadius")||0,S=[],k=this._backgroundEls,M=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function I(D){var $=fp[c.type](s,D);if(!$)return null;var O=DX(c,h,$);return O.useStyle(b.getItemStyle()),c.type==="cartesian2d"?O.setShape("r",w):O.setShape("cornerRadius",w),S[D]=O,O}s.diff(l).add(function(D){var $=s.getItemModel(D),O=fp[c.type](s,D,$);if(O&&(m&&I(D),!(!s.hasValue(D)||!dA[c.type](O)))){var F=!1;p&&(F=cA[c.type](g,O));var z=uA[c.type](r,s,D,O,h,d,u.model,!1,v);f&&(z.forceLabelAnimation=!0),pA(z,s,D,$,O,r,h,c.type==="polar"),M?z.attr({shape:O}):f?hA(f,d,z,O,D,h,!1,!1):an(z,{shape:O},r,D),s.setItemGraphicEl(D,z),o.add(z),z.ignore=F}}).update(function(D,$){var O=s.getItemModel(D),F=fp[c.type](s,D,O);if(F){if(m){var z=void 0;k.length===0?z=I($):(z=k[$],z.useStyle(b.getItemStyle()),c.type==="cartesian2d"?z.setShape("r",w):z.setShape("cornerRadius",w),S[D]=z);var H=fp[c.type](s,D),U=VB(h,H,c);vi(z,{shape:U},d,D)}var q=l.getItemGraphicEl($);if(!s.hasValue(D)||!dA[c.type](F)){o.remove(q);return}var K=!1;p&&(K=cA[c.type](g,F),K&&o.remove(q));var et=q&&(q.type==="sector"&&v||q.type==="sausage"&&!v);if(et&&(q&&Ph(q,r,$),q=null),q?Z1(q):q=uA[c.type](r,s,D,F,h,d,u.model,!0,v),f&&(q.forceLabelAnimation=!0),T){var Q=q.getTextContent();if(Q){var it=mm(Q);it.prevValue!=null&&(it.prevValue=it.value)}}else pA(q,s,D,O,F,r,h,c.type==="polar");M?q.attr({shape:F}):f?hA(f,d,q,F,D,h,!0,T):vi(q,{shape:F},r,D,null),s.setItemGraphicEl(D,q),q.ignore=K,o.add(q)}}).remove(function(D){var $=l.getItemGraphicEl(D);$&&Ph($,r,D)}).execute();var B=this._backgroundGroup||(this._backgroundGroup=new Cr);B.removeAll();for(var R=0;R<S.length;++R)B.add(S[R]);o.add(B),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,i,n){this._clear(),vA(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,i){this._removeBackground(),vA(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var i=r.get("clip",!0)&&iX(r.coordinateSystem,!1,r),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(r,i,n){var a=this;if(i.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,r,n),this._isFirstFrame=!1;else{var s=function(l){var c=i.getItemGraphicEl(l),u=c&&c.shape;return u&&Math.abs(o.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,i,n){var a=[];return r.each(r.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:te(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,i,n){for(var a=n.scale,o=r.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,c=a.getOrdinalMeta().categories.length;l<c;++l){var u=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=u<0?Number.MIN_VALUE:i(r.indexOfRawIndex(u));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,i,n,a){if(this._isOrderChangedWithinSameData(r,i,n)){var o=this._dataSort(r,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,i,n){var a=i.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(r,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var i=this.group,n=this._data;r&&r.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Ph(a,r,Te(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(zi),cA={cartesian2d:function(e,t){var r=t.width<0?-1:1,i=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=e.x+e.width,a=e.y+e.height,o=z0(t.x,e.x),s=H0(t.x+t.width,n),l=z0(t.y,e.y),c=H0(t.y+t.height,a),u=s<o,h=c<l;return t.x=u&&o>n?s:o,t.y=h&&l>a?c:l,t.width=u?0:s-o,t.height=h?0:c-l,r<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}var n=H0(t.r,e.r),a=z0(t.r0,e.r0);t.r=n,t.r0=a;var o=n-a<0;if(r<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},uA={cartesian2d:function(e,t,r,i,n,a,o,s,l){var c=new cr({shape:wt({},i),z2:1});if(c.__dataIndex=r,c.name="item",a){var u=c.shape,h=n?"height":"width";u[h]=0}return c},polar:function(e,t,r,i,n,a,o,s,l){var c=!n&&l?lA:Zo,u=new c({shape:i,z2:1});u.name="item";var h=qB(n);if(u.calculateTextPosition=_X(h,{isRoundCap:c===lA}),a){var d=u.shape,f=n?"r":"endAngle",p={};d[f]=n?i.r0:i.startAngle,p[f]=i[f],(s?vi:an)(u,{shape:p},a)}return u}};function SX(e,t){var r=e.get("realtimeSort",!0),i=t.getBaseAxis();if(r&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function hA(e,t,r,i,n,a,o,s){var l,c;a?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?vi:an)(r,{shape:l},t,n,null);var u=t?e.baseAxis.model:null;(o?vi:an)(r,{shape:c},u,n)}function fA(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var CX=["x","y","width","height"],TX=["cx","cy","r","startAngle","endAngle"],dA={cartesian2d:function(e){return!fA(e,CX)},polar:function(e){return!fA(e,TX)}},fp={cartesian2d:function(e,t,r){var i=e.getItemLayout(t);if(!i)return null;var n=r?AX(r,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(e,t,r){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function kX(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function qB(e){return(function(t){var r=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+r;default:return i}}})(e)}function pA(e,t,r,i,n,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var u=e.shape,h=nh(i.getModel("itemStyle"),u,!0);wt(u,h),e.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",c)}e.useStyle(l);var d=i.getShallow("cursor");d&&e.attr("cursor",d);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=Gf(i);Wf(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Ew(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(s&&g){var v=i.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,bX(e,v==="outside"?f:v,qB(o),i.get(["label","rotate"]))}Gq(g,p,a.getRawValue(r),function(b){return OB(t,b)});var m=i.getModel(["emphasis"]);sf(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zg(e,i),kX(n)&&(e.style.fill="none",e.style.stroke="none",Y(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function AX(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var i=e.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var MX=(function(){function e(){}return e})(),gA=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new MX},t.prototype.buildPath=function(r,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,u=0;u<n.length;u+=3)l[a]=c,l[o]=n[u+2],s[a]=n[u+a],s[o]=n[u+o],r.rect(s[0],s[1],l[0],l[1])},t})(Fe);function vA(e,t,r,i){var n=e.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=e.getModel("backgroundStyle"),c=n.getLayout("largeBackgroundPoints");if(c){var u=new gA({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),r&&r.push(u)}var h=new gA({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,Te(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",mA),h.on("mousemove",mA)),r&&r.push(h)}var mA=Cm(function(e){var t=this,r=LX(t,e.offsetX,e.offsetY);Te(t).dataIndex=r>=0?r:null},30,!1);function LX(e,t,r){for(var i=e.baseDimIdx,n=1-i,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,h=a.length/3;u<h;u++){var d=u*3;if(l[i]=c,l[n]=a[d+2],s[i]=a[d+i],s[n]=a[d+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[u]}return-1}function VB(e,t,r){if(Pw(r,"cartesian2d")){var i=t,n=r.getArea();return{x:e?i.x:n.x,y:e?n.y:i.y,width:e?i.width:n.width,height:e?n.height:i.height}}else{var n=r.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:e?n.r0:a.r0,r:e?n.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function DX(e,t,r){var i=e.type==="polar"?Zo:cr;return new i({shape:VB(t,r,e),silent:!0,z2:0})}function EX(e){e.registerChartView(wX),e.registerSeriesModel(mX),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,fr(ZY,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,KY("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,GB("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var i=t.componentType||"series";r.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var yA=Math.PI*2,dp=Math.PI/180;function IX(e,t,r){t.eachSeriesByType(e,function(i){var n=i.getData(),a=n.mapDimension("value"),o=SV(i,r),s=o.cx,l=o.cy,c=o.r,u=o.r0,h=o.viewRect,d=-i.get("startAngle")*dp,f=i.get("endAngle"),p=i.get("padAngle")*dp;f=f==="auto"?d-yA:-f*dp;var g=i.get("minAngle")*dp,v=g+p,m=0;n.each(a,function(U){!isNaN(U)&&m++});var b=n.getSum(a),w=Math.PI/(b||m)*2,S=i.get("clockwise"),k=i.get("roseType"),M=i.get("stillShowZeroSum"),T=n.getDataExtent(a);T[0]=0;var I=S?1:-1,B=[d,f],R=I*p/2;sI(B,!S),d=B[0],f=B[1];var D=UB(i);D.startAngle=d,D.endAngle=f,D.clockwise=S,D.cx=s,D.cy=l,D.r=c,D.r0=u;var $=Math.abs(f-d),O=$,F=0,z=d;if(n.setLayout({viewRect:h,r:c}),n.each(a,function(U,q){var K;if(isNaN(U)){n.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:u,r:k?NaN:c});return}k!=="area"?K=b===0&&M?w:U*w:K=$/m,K<v?(K=v,O-=v):F+=U;var et=z+I*K,Q=0,it=0;p>K?(Q=z+I*K/2,it=Q):(Q=z+R,it=et-R),n.setItemLayout(q,{angle:K,startAngle:Q,endAngle:it,clockwise:S,cx:s,cy:l,r0:u,r:k?ob(U,T,[u,c]):c}),z=et}),O<yA&&m)if(O<=.001){var H=$/m;n.each(a,function(U,q){if(!isNaN(U)){var K=n.getItemLayout(q);K.angle=H;var et=0,Q=0;H<p?(et=d+I*(q+1/2)*H,Q=et):(et=d+I*q*H+R,Q=d+I*(q+1)*H-R),K.startAngle=et,K.endAngle=Q}})}else w=O/F,z=d,n.each(a,function(U,q){if(!isNaN(U)){var K=n.getItemLayout(q),et=K.angle===v?v:U*w,Q=0,it=0;et<p?(Q=z+I*et/2,it=Q):(Q=z+R,it=z+I*et-R),K.startAngle=Q,K.endAngle=it,z+=I*et}})})}var UB=rr();function PX(e){return{seriesType:e,reset:function(t,r){var i=r.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var BX=Math.PI/180;function _A(e,t,r,i,n,a,o,s,l,c){if(e.length<2)return;function u(g){for(var v=g.rB,m=v*v,b=0;b<g.list.length;b++){var w=g.list[b],S=Math.abs(w.label.y-r),k=i+w.len,M=k*k,T=Math.sqrt(Math.abs((1-S*S/m)*M)),I=t+(T+w.len2)*n,B=I-w.label.x,R=w.targetTextWidth-B*n;YB(w,R,!0),w.label.x=I}}function h(g){for(var v={list:[],maxY:0},m={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var w=g[b],S=w.label.y>r?m:v,k=Math.abs(w.label.y-r);if(k>=S.maxY){var M=w.label.x-t-w.len2*n,T=i+w.len,I=Math.abs(M)<T?Math.sqrt(k*k/(1-M*M/T/T)):T;S.rB=I,S.maxY=k}S.list.push(w)}u(v),u(m)}for(var d=e.length,f=0;f<d;f++)if(e[f].position==="outer"&&e[f].labelAlignTo==="labelLine"){var p=e[f].label.x-c;e[f].linePoints[1][0]+=p,e[f].label.x=c}Wj(e,1,l,l+o)&&h(e)}function OX(e,t,r,i,n,a,o,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;W0(e[d])||(f.x<t?(u=Math.min(u,f.x),l.push(e[d])):(h=Math.max(h,f.x),c.push(e[d])))}for(var d=0;d<e.length;d++){var p=e[d];if(!W0(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var f=p.label,g=p.linePoints,v=void 0;p.labelAlignTo==="edge"?f.x<t?v=g[2][0]-p.labelDistance-o-p.edgeDistance:v=o+n-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?f.x<t?v=u-o-p.bleedMargin:v=o+n-h-p.bleedMargin:f.x<t?v=f.x-o-p.bleedMargin:v=o+n-f.x-p.bleedMargin,p.targetTextWidth=v,YB(p,v,!1)}}_A(c,t,r,i,1,n,a,o,s,h),_A(l,t,r,i,-1,n,a,o,s,u);for(var d=0;d<e.length;d++){var p=e[d];if(!W0(p)&&p.linePoints){var f=p.label,g=p.linePoints,m=p.labelAlignTo==="edge",b=f.style.padding,w=b?b[1]+b[3]:0,S=f.style.backgroundColor?0:w,k=p.rect.width+S,M=g[1][0]-g[2][0];m?f.x<t?g[2][0]=o+p.edgeDistance+k+p.labelDistance:g[2][0]=o+n-p.edgeDistance-k-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+M),g[1][1]=g[2][1]=f.y}}}function YB(e,t,r){if(e.labelStyleWidth==null){var i=e.label,n=i.style,a=e.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,c=n.overflow,u=a.width+(o?0:l);if(t<u||r){if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",o)}else{var d=t-l,f=t<u?d:r?d>e.unconstrainedWidth?null:d:null;i.setStyle("width",f)}jB(a,i)}}}function jB(e,t){bA.rect=e,BB(bA,t,RX)}var RX={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},bA={};function W0(e){return e.position==="center"}function FX(e){var t=e.getData(),r=[],i,n,a=!1,o=(e.get("minShowLabelAngle")||0)*BX,s=t.getLayout("viewRect"),l=t.getLayout("r"),c=s.width,u=s.x,h=s.y,d=s.height;function f(M){M.ignore=!0}function p(M){if(!M.ignore)return!0;for(var T in M.states)if(M.states[T].ignore===!1)return!0;return!1}t.each(function(M){var T=t.getItemGraphicEl(M),I=T.shape,B=T.getTextContent(),R=T.getTextGuideLine(),D=t.getItemModel(M),$=D.getModel("label"),O=$.get("position")||D.get(["emphasis","label","position"]),F=$.get("distanceToLabelLine"),z=$.get("alignTo"),H=tr($.get("edgeDistance"),c),U=$.get("bleedMargin");U==null&&(U=Math.min(c,d)>200?10:2);var q=D.getModel("labelLine"),K=q.get("length");K=tr(K,c);var et=q.get("length2");if(et=tr(et,c),Math.abs(I.endAngle-I.startAngle)<o){Y(B.states,f),B.ignore=!0,R&&(Y(R.states,f),R.ignore=!0);return}if(p(B)){var Q=(I.startAngle+I.endAngle)/2,it=Math.cos(Q),at=Math.sin(Q),Ct,xt,Zt,ae;i=I.cx,n=I.cy;var de=O==="inside"||O==="inner";if(O==="center")Ct=I.cx,xt=I.cy,ae="center";else{var bt=(de?(I.r+I.r0)/2*it:I.r*it)+i,qt=(de?(I.r+I.r0)/2*at:I.r*at)+n;if(Ct=bt+it*3,xt=qt+at*3,!de){var Pt=bt+it*(K+l-I.r),W=qt+at*(K+l-I.r),X=Pt+(it<0?-1:1)*et,nt=W;z==="edge"?Ct=it<0?u+H:u+c-H:Ct=X+(it<0?-F:F),xt=nt,Zt=[[bt,qt],[Pt,W],[X,nt]]}ae=de?"center":z==="edge"?it>0?"right":"left":it>0?"left":"right"}var lt=Math.PI,st=0,ct=$.get("rotate");if(He(ct))st=ct*(lt/180);else if(O==="center")st=0;else if(ct==="radial"||ct===!0){var yt=it<0?-Q+lt:-Q;st=yt}else if(ct==="tangential"&&O!=="outside"&&O!=="outer"){var vt=Math.atan2(it,at);vt<0&&(vt=lt*2+vt);var gt=at>0;gt&&(vt=lt+vt),st=vt-lt}if(a=!!st,B.x=Ct,B.y=xt,B.rotation=st,B.setStyle({verticalAlign:"middle"}),de){B.setStyle({align:ae});var Bt=B.states.select;Bt&&(Bt.x+=B.x,Bt.y+=B.y)}else{var ut=new ge(0,0,0,0);jB(ut,B),r.push({label:B,labelLine:R,position:O,len:K,len2:et,minTurnAngle:q.get("minTurnAngle"),maxSurfaceAngle:q.get("maxSurfaceAngle"),surfaceNormal:new ue(it,at),linePoints:Zt,textAlign:ae,labelDistance:F,labelAlignTo:z,edgeDistance:H,bleedMargin:U,rect:ut,unconstrainedWidth:ut.width,labelStyleWidth:B.style.width})}T.setTextConfig({inside:de})}}),!a&&e.get("avoidLabelOverlap")&&OX(r,i,n,l,c,d,u,h);for(var g=0;g<r.length;g++){var v=r[g],m=v.label,b=v.labelLine,w=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),w&&(Y(m.states,f),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(b){var k=v.linePoints;w||!k?(Y(b.states,f),b.ignore=!0):(Bj(k,v.minTurnAngle),Oj(k,v.surfaceNormal,v.maxSurfaceAngle),b.setShape({points:k}),m.__hostTarget.textGuideLineConfig={anchor:new ue(k[0][0],k[0][1])})}}}var $X=(function(e){kt(t,e);function t(r,i,n){var a=e.call(this)||this;a.z2=2;var o=new zr;return a.setTextContent(o),a.updateData(r,i,n,!0),a}return t.prototype.updateData=function(r,i,n,a){var o=this,s=r.hostModel,l=r.getItemModel(i),c=l.getModel("emphasis"),u=r.getItemLayout(i),h=wt(nh(l.getModel("itemStyle"),u,!0),u);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var d=s.getShallow("animationType");s.ecModel.ssr?(an(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):d==="scale"?(o.shape.r=u.r0,an(o,{shape:{r:u.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),an(o,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,i)):(o.shape.endAngle=u.startAngle,vi(o,{shape:{endAngle:u.endAngle}},s,i))}else Z1(o),vi(o,{shape:h},s,i);o.useStyle(r.getItemVisual(i,"style")),zg(o,l);var f=(u.startAngle+u.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(f)*p,v=Math.sin(f)*p,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,i),o.ensureState("emphasis").shape=wt({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},nh(c.getModel("itemStyle"),u)),wt(o.ensureState("select"),{x:g,y:v,shape:nh(l.getModel(["select","itemStyle"]),u)}),wt(o.ensureState("blur"),{shape:nh(l.getModel(["blur","itemStyle"]),u)});var b=o.getTextGuideLine(),w=o.getTextContent();b&&wt(b.ensureState("select"),{x:g,y:v}),wt(w.ensureState("select"),{x:g,y:v}),sf(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(r,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),c=l&&l.fill,u=l&&l.opacity;Wf(a,Gf(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:c,defaultOpacity:u,defaultText:r.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var d=o.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new Hf,this.setTextGuideLine(f)),Fj(this,$j(o),{stroke:c,opacity:Ks(s.get(["lineStyle","opacity"]),u,1)})}},t})(Zo),NX=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,i,n,a){var o=r.getData(),s=this._data,l=this.group,c;if(!s&&o.count()>0){for(var u=o.getItemLayout(0),h=1;isNaN(u&&u.startAngle)&&h<o.count();++h)u=o.getItemLayout(h);u&&(c=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=UB(r),f=new Zo({shape:xe(d)});f.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}o.diff(s).add(function(p){var g=new $X(o,p,c);o.setItemGraphicEl(p,g),l.add(g)}).update(function(p,g){var v=s.getItemGraphicEl(g);v.updateData(o,p,c),v.off("click"),l.add(v),o.setItemGraphicEl(p,v)}).remove(function(p){var g=s.getItemGraphicEl(p);Ph(g,r,p)}).execute(),FX(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(zi);function zX(e,t,r){t=It(t)&&{coordDimensions:t}||wt({encodeDefine:e.getEncode()},t);var i=e.getSource(),n=hB(i,t).dimensions,a=new uB(n,e);return a.initData(i,r),a}var HX=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,r)},e})(),WX=rr(),XB=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new HX(ze(this.getData,this),ze(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return zX(this,{coordDimensions:["value"],encodeDefaulter:fr(EV,this)})},t.prototype.getDataParams=function(r){var i=this.getData(),n=WX(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=n9(o,i.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){lb(r,"labelLine",["show"]);var i=r.labelLine,n=r.emphasis.labelLine;i.show=i.show&&r.label.show,n.show=n.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(sn);vV({fullType:XB.type,getCoord2:function(e){return e.getShallow("center")}});function GX(e){return{seriesType:e,reset:function(t,r){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(He(o)&&!isNaN(o)&&o<0)})}}}function qX(e){e.registerChartView(NX),e.registerSeriesModel(XB),pU("pie",e.registerAction),e.registerLayout(fr(IX,"pie")),e.registerProcessor(PX("pie")),e.registerProcessor(GX("pie"))}var VX=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,i){return km(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,i,n){return n.point(i.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:jt.color.primary}},universalTransition:{divideShape:"clone"}},t})(sn),ZB=4,UX=(function(){function e(){}return e})(),YX=(function(e){kt(t,e);function t(r){var i=e.call(this,r)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new UX},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,c=l&&a[0]<ZB,u=this.softClipShape,h;if(c){this._ctx=l;return}for(this._ctx=null,h=this._off;h<n.length;){var d=n[h++],f=n[h++];isNaN(d)||isNaN(f)||u&&!u.contain(d,f)||(s.x=d-a[0]/2,s.y=f-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,i=r.points,n=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],c=i[s++];isNaN(l)||isNaN(c)||o&&!o.contain(l,c)||a.fillRect(l-n[0]/2,c-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),c=a.length/2-1;c>=0;c--){var u=c*2,h=a[u]-s/2,d=a[u+1]-l/2;if(r>=h&&i>=d&&r<=h+s&&i<=d+l)return c}return-1},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(r=n[0],i=n[1],a.contain(r,i)){var o=this.hoverDataIdx=this.findDataIndex(r,i);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,c=1/0,u=-1/0,h=-1/0,d=0;d<n.length;){var f=n[d++],p=n[d++];l=Math.min(f,l),u=Math.max(f,u),c=Math.min(p,c),h=Math.max(p,h)}r=this._rect=new ge(l-o/2,c-s/2,u-l+o,h-c+s)}return r},t})(Fe),jX=(function(){function e(){this.group=new Cr}return e.prototype.updateData=function(t,r){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var n=(i.endIndex-i.startIndex)*2,a=i.startIndex*4*2;r=new Float32Array(r.buffer,a,n)}i.setShape("points",r),i.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,i){var n=this._newAdded[0],a=r.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=!0,c.setShape({points:a}),this._setCommon(c,r,i)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new YX({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,i){var n=r.hostModel;i=i||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=i.clipShape||null,t.symbolProxy=hl(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<ZB;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var c=Te(t);c.seriesIndex=n.seriesIndex,t.on("mousemove",function(u){c.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(c.dataIndex=h+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),XX=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,i,n){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,i,n){this._symbolDraw.incrementalUpdate(r,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=r.end===i.getData().count()},t.prototype.updateTransform=function(r,i,n){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Bw("").reset(r,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var i=r.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new jX:new RB,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(r,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(zi),KB={left:0,right:0,top:0,bottom:0},iv=["25%","25%"],ZX=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,i){var n=qf(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&Wo(r.outerBounds,n)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Wo(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:KB,outerBoundsContain:"all",outerBoundsClampWidth:iv[0],outerBoundsClampHeight:iv[1],backgroundColor:jt.color.transparent,borderWidth:1,borderColor:jt.color.neutral30},t})(Ne),jb=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",en).models[0]},t.type="cartesian2dAxis",t})(Ne);ha(jb,yj);var QB={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:jt.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:jt.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:jt.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[jt.color.backgroundTint,jt.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:jt.color.neutral00,borderColor:jt.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},KX=Re({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},QB),Ow=Re({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:jt.color.axisMinorSplitLine,width:1}}},QB),QX=Re({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ow),JX=We({logBase:10},Ow);const tZ={category:KX,value:Ow,time:QX,log:JX};var eZ={value:1,category:1,time:1,log:1},rZ=null;function iZ(){return rZ}function xA(e,t,r,i){Y(eZ,function(n,a){var o=Re(Re({},tZ[a],!0),i,!0),s=(function(l){kt(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=t+"Axis."+a,u}return c.prototype.mergeDefaultAndTheme=function(u,h){var d=uf(this),f=d?qf(u):{},p=h.getTheme();Re(u,p.get(a+"Axis")),Re(u,this.getDefaultOption()),u.type=wA(u),d&&Wo(u,f,d)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=Gb.createByAxisModel(this))},c.prototype.getCategories=function(u){var h=this.option;if(h.type==="category")return u?h.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.prototype.updateAxisBreaks=function(u){return{breaks:[]}},c.type=t+"Axis."+a,c.defaultOption=o,c})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",wA)}function wA(e){return e.type||(e.data?"category":"value")}var nZ=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return te(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Dr(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Xb=["x","y"];function SA(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var aZ=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Xb,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!SA(r)||!SA(i))){var n=r.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],c=a[1]-a[0];if(!(!l||!c)){var u=(s[0]-o[0])/l,h=(s[1]-o[1])/c,d=o[0]-n[0]*u,f=o[1]-a[0]*h,p=this._transform=[u,0,0,h,d,f];this._invTransform=Rf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new ge(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return nn(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),c=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return nn(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new ge(a,o,s,l)},t})(nZ),oZ=(function(e){kt(t,e);function t(r,i,n,a,o){var s=e.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(Ij),sZ="expandAxisBreak",To=Math.PI,lZ=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],cZ=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],mf=rr(),JB=rr(),tO=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},e})();function uZ(e,t,r,i){var n=r.axis,a=t.ensureRecord(r),o=[],s,l=Rw(e.axisName)&&$c(e.nameLocation);Y(i,function(p){var g=Go(p);if(!(!g||g.label.ignore)){o.push(g);var v=a.transGroup;l&&(v.transform?Rf(Bu,v.transform):E1(Bu),g.transform&&Ah(Bu,Bu,g.transform),ge.copy(pp,g.localRect),pp.applyTransform(Bu),s?s.union(pp):ge.copy(s=new ge(0,0,0,0),pp))}});var c=Math.abs(a.dirVec.x)>.1?"x":"y",u=a.transGroup[c];if(o.sort(function(p,g){return Math.abs(p.label[c]-u)-Math.abs(g.label[c]-u)}),l&&s){var h=n.getExtent(),d=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-d;s.union(new ge(d,0,f,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Bu=Ra(),pp=new ge(0,0,0,0),eO=function(e,t,r,i,n,a){if($c(e.nameLocation)){var o=a.stOccupiedRect;o&&rO(zj({},o,a.transGroup.transform),i,n)}else iO(a.labelInfoList,a.dirVec,i,n)};function rO(e,t,r){var i=new ue;Dw(e,t,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&Hj(t,i)}function iO(e,t,r,i){for(var n=ue.dot(i,t)>=0,a=0,o=e.length;a<o;a++){var s=e[n?a:o-1-a];s.label.ignore||rO(s,r,i)}}var Io=(function(){function e(t,r,i,n){this.group=new Cr,this._axisModel=t,this._api=r,this._local={},this._shared=n||new tO(eO),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=ne(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=ne(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ne(t.nameDirection,1),tickDirection:ne(t.tickDirection,1),labelDirection:ne(t.labelDirection,1),labelOffset:ne(t.labelOffset,0),silent:ne(t.silent,!0),axisName:n,nameLocation:Ks(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Rw(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new Cr({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ue(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Y(hZ,function(n){t[n]&&fZ[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},e.innerTextLayout=function(t,r,i){var n=UE(r-t),a,o;return Ig(n)?(o=i>0?"top":"bottom",a="center"):Ig(n-To)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<To?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),hZ=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],fZ={axisLine:function(e,t,r,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=i.axis.getExtent(),c=a.transform,u=[l[0],0],h=[l[1],0],d=u[0]>h[0];c&&(nn(u,u,c),nn(h,h,c));var f=wt({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())iZ().buildAxisBreakLine(i,n,a,p);else{var g=new No(wt({shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]}},p));lf(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var v=i.get(["axisLine","symbol"]);if(v!=null){var m=i.get(["axisLine","symbolSize"]);Ut(v)&&(v=[v,v]),(Ut(m)||He(m))&&(m=[m,m]);var b=OP(i.get(["axisLine","symbolOffset"])||0,m),w=m[0],S=m[1];Y([{rotate:e.rotation+Math.PI/2,offset:b[0],r:0},{rotate:e.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((u[0]-h[0])*(u[0]-h[0])+(u[1]-h[1])*(u[1]-h[1]))}],function(k,M){if(v[M]!=="none"&&v[M]!=null){var T=hl(v[M],-w/2,-S/2,w,S,f.stroke,!0),I=k.r+k.offset,B=d?h:u;T.attr({rotation:k.rotate,x:B[0]+I*Math.cos(e.rotation),y:B[1]-I*Math.sin(e.rotation),silent:!0,z2:11}),n.add(T)}})}}},axisTickLabelEstimate:function(e,t,r,i,n,a,o,s){var l=TA(t,n,s);l&&CA(e,t,r,i,n,a,o,Dn.estimate)},axisTickLabelDetermine:function(e,t,r,i,n,a,o,s){var l=TA(t,n,s);l&&CA(e,t,r,i,n,a,o,Dn.determine);var c=vZ(e,n,a,i);gZ(e,t.labelLayoutList,c),mZ(e,n,a,i,e.tickDirection)},axisName:function(e,t,r,i,n,a,o,s){var l=r.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var c=e.axisName;if(Rw(c)){var u=e.nameLocation,h=e.nameDirection,d=i.getModel("nameTextStyle"),f=i.get("nameGap")||0,p=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new ue(0,0),m=new ue(0,0);u==="start"?(v.x=p[0]-g*f,m.x=-g):u==="end"?(v.x=p[1]+g*f,m.x=g):(v.x=(p[0]+p[1])/2,v.y=e.labelOffset+h*f,m.y=h);var b=Ra();m.transform(I1(b,b,e.rotation));var w=i.get("nameRotate");w!=null&&(w=w*To/180);var S,k;$c(u)?S=Io.innerTextLayout(e.rotation,w??e.rotation,h):(S=dZ(e.rotation,u,w||0,p),k=e.raw.axisNameAvailableWidth,k!=null&&(k=Math.abs(k/Math.sin(S.rotation)),!isFinite(k)&&(k=null)));var M=d.getFont(),T=i.get("nameTruncate",!0)||{},I=T.ellipsis,B=wg(e.raw.nameTruncateMaxWidth,T.maxWidth,k),R=s.nameMarginLevel||0,D=new zr({x:v.x,y:v.y,rotation:S.rotation,silent:Io.isLabelSilent(i),style:zo(d,{text:c,font:M,overflow:"truncate",width:B,ellipsis:I,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||S.textAlign,verticalAlign:d.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(pm({el:D,componentModel:i,itemName:c}),D.__fullText=c,D.anid="name",i.get("triggerEvent")){var $=Io.makeAxisEventDataBase(i);$.targetType="axisName",$.name=c,Te(D).eventData=$}a.add(D),D.updateTransform(),t.nameEl=D;var O=l.nameLayout=Go({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:$c(u)?lZ[R]:cZ[R]});if(l.nameLocation=u,n.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&O){var F=r.ensureRecord(i);r.resolveAxisNameOverlap(e,r,i,O,m,F)}}}};function CA(e,t,r,i,n,a,o,s){aO(t)||yZ(e,t,n,s,i,o);var l=t.labelLayoutList;_Z(e,i,l,a),e.rotation;var c=e.optionHideOverlap;pZ(i,l,c),c&&Gj(Dr(l,function(u){return u&&!u.label.ignore})),uZ(e,r,i,l)}function dZ(e,t,r,i){var n=UE(r-e),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Ig(n-To/2)?(o=l?"bottom":"top",a="center"):Ig(n-To*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<To*1.5&&n>To/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function pZ(e,t,r){if(wB(e.axis))return;function i(s,l,c){var u=Go(t[l]),h=Go(t[c]);if(!(!u||!h)){if(s===!1||u.suggestIgnore){ah(u.label);return}if(h.suggestIgnore){ah(h.label);return}var d=.1;if(!r){var f=[0,0,0,0];u=Kk({marginForce:f},u),h=Kk({marginForce:f},h)}Dw(u,h,null,{touchThreshold:d})&&ah(s?h.label:u.label)}}var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function gZ(e,t,r){e.showMinorTicks||Y(t,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=JB(a),s=mf(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){ah(a);return}}})}function ah(e){e&&(e.ignore=!0)}function nO(e,t,r,i,n){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;o[0]=c,o[1]=0,s[0]=c,s[1]=r,t&&(nn(o,o,t),nn(s,s,t));var u=new No({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});lf(u.shape,u.style.lineWidth),u.anid=n+"_"+e[l].tickValue,a.push(u);var h=JB(u);h.onBand=!!e[l].onBand,h.tickValue=e[l].tickValue}return a}function vZ(e,t,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=e.tickDirection*a.get("length"),c=n.getTicksCoords(),u=nO(c,r.transform,l,We(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)t.add(u[h]);return u}function mZ(e,t,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),c=n*o.get("length"),u=We(l.getLineStyle(),We(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=nO(s[h],r.transform,c,u,"minorticks_"+h),f=0;f<d.length;f++)t.add(d[f])}}function TA(e,t,r){if(aO(e)){var i=e.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(e.labelGroup),Zb(e,null,null,null))}return!0}function yZ(e,t,r,i,n,a){var o=n.axis,s=wg(e.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Cr;r.add(l);var c=Jg(i);if(!s||o.scale.isBlank()){Zb(t,[],l,c);return}var u=n.getModel("axisLabel"),h=o.getViewLabels(c),d=(wg(e.raw.labelRotate,u.get("rotate"))||0)*To/180,f=Io.innerTextLayout(e.rotation,d,e.labelDirection),p=n.getCategories&&n.getCategories(!0),g=[],v=n.get("triggerEvent"),m=1/0,b=-1/0;Y(h,function(S,k){var M,T=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,I=S.formattedLabel,B=S.rawLabel,R=u;if(p&&p[T]){var D=p[T];Qt(D)&&D.textStyle&&(R=new nr(D.textStyle,u,n.ecModel))}var $=R.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=R.getShallow("align",!0)||f.textAlign,F=ne(R.getShallow("alignMinLabel",!0),O),z=ne(R.getShallow("alignMaxLabel",!0),O),H=R.getShallow("verticalAlign",!0)||R.getShallow("baseline",!0)||f.textVerticalAlign,U=ne(R.getShallow("verticalAlignMinLabel",!0),H),q=ne(R.getShallow("verticalAlignMaxLabel",!0),H),K=10+(((M=S.time)===null||M===void 0?void 0:M.level)||0);m=Math.min(m,K),b=Math.max(b,K);var et=new zr({x:0,y:0,rotation:0,silent:Io.isLabelSilent(n),z2:K,style:zo(R,{text:I,align:k===0?F:k===h.length-1?z:O,verticalAlign:k===0?U:k===h.length-1?q:H,fill:ce($)?$(o.type==="category"?B:o.type==="value"?T+"":T,k):$})});et.anid="label_"+T;var Q=mf(et);if(Q.break=S.break,Q.tickValue=T,Q.layoutRotation=f.rotation,pm({el:et,componentModel:n,itemName:I,formatterParamsExtra:{isTruncated:function(){return et.isTruncated},value:B,tickIndex:k}}),v){var it=Io.makeAxisEventDataBase(n);it.targetType="axisLabel",it.value=B,it.tickIndex=k,S.break&&(it.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(it.dataIndex=T),Te(et).eventData=it,S.break&&xZ(n,a,et,S.break)}g.push(et),l.add(et)});var w=te(g,function(S){return{label:S,priority:mf(S).break?S.z2+(b-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});Zb(t,w,l,c)}function aO(e){return!!e.labelLayoutList}function Zb(e,t,r,i){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=i}function _Z(e,t,r,i){var n=t.get(["axisLabel","margin"]);Y(r,function(a,o){var s=Go(a);if(s){var l=s.label,c=mf(l);s.suggestIgnore=l.ignore,l.ignore=!1,ab(xa,bZ),xa.x=t.axis.dataToCoord(c.tickValue),xa.y=e.labelOffset+e.labelDirection*n,xa.rotation=c.layoutRotation,i.add(xa),xa.updateTransform(),i.remove(xa),xa.decomposeTransform(),ab(l,xa),l.markRedraw(),rv(s,!0),Go(s)}})}var xa=new cr,bZ=new cr;function Rw(e){return!!e}function xZ(e,t,r,i){r.on("click",function(n){var a={type:sZ,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function nv(e,t,r){r=r||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,c=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,d=l==="x"?[c[2]-h,c[3]+h]:[c[0]-h,c[1]+h];if(a){var f=a.toGlobalCoord(a.dataToCoord(0));d[u.onZero]=Math.max(Math.min(f,d[1]),d[0])}n.position=[l==="y"?d[u[s]]:c[0],l==="x"?d[u[s]]:c[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=p[o],n.labelOffset=a?d[u[o]]-d[u.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),wg(r.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}function wZ(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function kA(e){var t={xAxisModel:null,yAxisModel:null};return Y(t,function(r,i){var n=i.replace(/Model$/,""),a=e.getReferringComponents(n,en).models[0];t[i]=a}),t}function SZ(e,t,r,i,n,a){for(var o=nv(e,r),s=!1,l=!1,c=0;c<t.length;c++)Hb(t[c].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Io(r,i,o,n)}function CZ(e,t,r){var i=nv(t,r);e.updateCfg(i)}function TZ(e,t,r){var i=Fc.prototype,n=i.getTicks.call(r),a=i.getTicks.call(r,{expandToNicedExtent:!0}),o=n.length-1,s=i.getInterval.call(r),l=xB(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;e.type==="log"&&(c=Wb(e.base,c,!0)),e.setBreaksFromOption(SB(t)),e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:h});var d=i.getExtent.call(e);u&&(c[0]=d[0]),h&&(c[1]=d[1]);var f=i.getInterval.call(e),p=c[0],g=c[1];if(u&&h)f=(g-p)/o;else if(u)for(g=c[0]+f*o;g<c[1]&&isFinite(g)&&isFinite(c[1]);)f=P0(f),g=c[0]+f*o;else if(h)for(p=c[1]-f*o;p>c[0]&&isFinite(p)&&isFinite(c[0]);)f=P0(f),p=c[1]-f*o;else{var v=e.getTicks().length-1;v>o&&(f=P0(f));var m=f*o;g=Math.ceil(c[1]/f)*f,p=$r(g-m),p<0&&c[0]>=0?(p=0,g=$r(m)):g>0&&c[1]<=0&&(g=0,p=-$r(m))}var b=(n[0].value-a[0].value)/s,w=(n[o].value-a[o].value)/s;i.setExtent.call(e,p+f*b,g+f*w),i.setInterval.call(e,f),(b||w)&&i.setNiceExtent.call(e,p+f,g-f)}var AA=[[3,1],[0,2]],kZ=(function(){function e(t,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Xb,this._initCartesian(t,r,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=er(o),c=l.length;if(c){for(var u=[],h=c-1;h>=0;h--){var d=+l[h],f=o[d],p=f.model,g=f.scale;Hb(g)&&p.get("alignTicks")&&p.get("interval")==null?u.push(f):(Uk(g,p),Hb(g)&&(s=f))}u.length&&(s||(s=u.pop(),Uk(s.scale,s.model)),Y(u,function(v){TZ(v.scale,v.model,s.scale)}))}}n(i.x),n(i.y);var a={};Y(i.x,function(o){MA(i,"y",o,a)}),Y(i.y,function(o){MA(i,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,i){var n=xm(t,r),a=this._rect=Ho(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(oO(o,a),!i){var c=MZ(a,s,o,l,r),u=void 0;if(l)u=EA(a.clone(),"axisLabel",null,a,o,c,n);else{var h=LZ(t,a,n),d=h.outerBoundsRect,f=h.parsedOuterBoundsContain,p=h.outerBoundsClamp;d&&(u=EA(d,f,p,a,o,c,n))}sO(a,o,Dn.determine,null,u,n)}Y(this._coordsList,function(g){g.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var i=this._axesMap[t];if(i!=null)return i[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var i="x"+t+"y"+r;return this._coordsMap[i]}Qt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===r)return a[n]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",en).models[0],n=t.yAxisModel||r&&r.getReferringComponents("yAxis",en).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,De(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var c=a.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",c("x"),this),r.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,Y(s.x,function(u,h){Y(s.y,function(d,f){var p="x"+h+"y"+f,g=new aZ(p);g.master=n,g.model=t,n._coordsMap[p]=g,n._coordsList.push(g),g.addAxis(u),g.addAxis(d)})});function c(u){return function(h,d){if(G0(h,t)){var f=h.get("position");u==="x"?f!=="top"&&f!=="bottom"&&(f=o.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=o.left?"right":"left"),o[f]=!0;var p=new oZ(u,gj(h),[0,0],h.get("type"),f),g=p.type==="category";p.onBand=g&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=a,p.index=d,a._axesList.push(p),s[u][d]=p,l[u]++}}}},e.prototype._updateScale=function(t,r){Y(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(wZ(n)){var a=kA(n),o=a.xAxisModel,s=a.yAxisModel;if(!G0(o,r)||!G0(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),c=n.getData(),u=l.getAxis("x"),h=l.getAxis("y");i(c,u),i(c,h)}},this);function i(n,a){Y(mj(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],i=[];return Y(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);De(r,a)<0&&r.push(a),De(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},e.create=function(t,r){var i=[];return t.eachComponent("grid",function(n,a){var o=new e(n,t,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){_V({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=kA(n),s=o.xAxisModel,l=o.yAxisModel,c=s.getCoordSysModel(),u=c.coordinateSystem;return u.getCartesian(s.componentIndex,l.componentIndex)}}),i},e.dimensions=Xb,e})();function G0(e,t){return e.getCoordSysModel()===t}function MA(e,t,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)LA(n[l])&&(a=n[l]);else for(var c in n)if(n.hasOwnProperty(c)&&LA(n[c])&&!i[u(n[c])]){a=n[c];break}a&&(i[u(a)]=!0);function u(h){return h.dim+"_"+h.index}}function LA(e){return e&&e.type!=="category"&&e.type!=="time"&&vj(e)}function AZ(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(n){return n+t}:function(n){return i-n+t},e.toLocalCoord=e.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}function oO(e,t){Y(e.x,function(r){return DA(r,t.x,t.width)}),Y(e.y,function(r){return DA(r,t.y,t.height)})}function DA(e,t,r){var i=[0,r],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),AZ(e,t)}function EA(e,t,r,i,n,a,o){sO(i,n,Dn.estimate,t,!1,o);var s=[0,0,0,0];c(0),c(1),u(i,0,NaN),u(i,1,NaN);var l=LH(s,function(d){return d>0})==null;return Wg(i,s,!0,!0,r),oO(n,i),l;function c(d){Y(n[xo[d]],function(f){if(vf(f.model)){var p=a.ensureRecord(f.model),g=p.labelInfoList;if(g)for(var v=0;v<g.length;v++){var m=g[v],b=f.scale.normalize(mf(m.label).tickValue);b=d===1?1-b:b,u(m.rect,d,b),u(m.rect,1-d,NaN)}var w=p.nameLayout;if(w){var b=$c(p.nameLocation)?.5:NaN;u(w.rect,d,b),u(w.rect,1-d,NaN)}}})}function u(d,f,p){var g=e[xo[f]]-d[xo[f]],v=d[Bc[f]]+d[xo[f]]-(e[Bc[f]]+e[xo[f]]);g=h(g,1-p),v=h(v,p);var m=AA[f][0],b=AA[f][1];s[m]=$i(s[m],g),s[b]=$i(s[b],v)}function h(d,f){return d>0&&!ef(f)&&f>1e-4&&(d/=f),d}}function MZ(e,t,r,i,n){var a=new tO(DZ);return Y(r,function(o){return Y(o,function(s){if(vf(s.model)){var l=!i;s.axisBuilder=SZ(e,t,s.model,n,a,l)}})}),a}function sO(e,t,r,i,n,a){var o=r===Dn.determine;Y(t,function(c){return Y(c,function(u){vf(u.model)&&(CZ(u.axisBuilder,e,u.model),u.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(c){s[xo[1-c]]=e[Bc[c]]<=a.refContainer[Bc[c]]*.5?0:1-c===1?2:1}Y(t,function(c,u){return Y(c,function(h){vf(h.model)&&((i==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function LZ(e,t,r){var i,n=e.get("outerBoundsMode",!0);n==="same"?i=t.clone():(n==null||n==="auto")&&(i=Ho(e.get("outerBounds",!0)||KB,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||De(["all","axisLabel"],a)<0?o="all":o=a;var s=[sb(ne(e.get("outerBoundsClampWidth",!0),iv[0]),t.width),sb(ne(e.get("outerBoundsClampHeight",!0),iv[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var DZ=function(e,t,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";eO(e,t,r,i,n,a),$c(e.nameLocation)||Y(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&iO(s.labelInfoList,s.dirVec,i,n)})};function EZ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return IZ(r,e,t),r.seriesInvolved&&BZ(r,e),r}function IZ(e,t,r){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];Y(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=yf(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var u=s.model,h=u.getModel("tooltip",i);if(Y(s.getAxes(),fr(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var d=h.get("trigger")==="axis",f=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(d||f)&&Y(p.baseAxes,fr(g,f?"cross":!0,d)),f&&Y(p.otherAxes,fr(g,"cross",!1))}function g(v,m,b){var w=b.model.getModel("axisPointer",n),S=w.get("show");if(!(!S||S==="auto"&&!v&&!Kb(w))){m==null&&(m=w.get("triggerTooltip")),w=v?PZ(b,h,n,t,v,m):w;var k=w.get("snap"),M=w.get("triggerEmphasis"),T=yf(b.model),I=m||k||b.type==="category",B=e.axesInfo[T]={key:T,axis:b,coordSys:s,axisPointerModel:w,triggerTooltip:m,triggerEmphasis:M,involveSeries:I,snap:k,useHandle:Kb(w),seriesModels:[],linkGroup:null};c[T]=B,e.seriesInvolved=e.seriesInvolved||I;var R=OZ(a,b);if(R!=null){var D=o[R]||(o[R]={axesInfo:{}});D.axesInfo[T]=B,D.mapper=a[R].mapper,B.linkGroup=D}}}})}function PZ(e,t,r,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Y(s,function(d){l[d]=xe(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),n==="cross"){var u=o.get(["label","show"]);if(c.show=u??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&We(c,h.textStyle)}}return e.model.getModel("axisPointer",new nr(l,r,i))}function BZ(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||Y(e.coordSysAxesInfo[yf(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function OZ(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(q0(a[i+"AxisId"],r.id)||q0(a[i+"AxisIndex"],r.componentIndex)||q0(a[i+"AxisName"],r.name))return n}}function q0(e,t){return e==="all"||It(e)&&De(e,t)>=0||e===t}function RZ(e){var t=Fw(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Kb(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Fw(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[yf(e)]}function FZ(e){var t=Fw(e);return t&&t.axisPointerModel}function Kb(e){return!!e.get(["handle","show"])}function yf(e){return e.type+"||"+e.id}var IA={},lO=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n,a){this.axisPointerClass&&RZ(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=FZ(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){IA[r]=i},t.getAxisPointerClass=function(r){return r&&IA[r]},t.type="axis",t})(Ln),Qb=rr();function $Z(e,t,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),c=n.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var u=s.length,h=Qb(e).splitAreaColors,d=me(),f=0;if(h)for(var p=0;p<c.length;p++){var g=h.get(c[p].tickValue);if(g!=null){f=(g+(u-1)*p)%u;break}}var v=n.toGlobalCoord(c[0].coord),m=o.getAreaStyle();s=It(s)?s:[s];for(var p=1;p<c.length;p++){var b=n.toGlobalCoord(c[p].coord),w=void 0,S=void 0,k=void 0,M=void 0;n.isHorizontal()?(w=v,S=l.y,k=b-w,M=l.height,v=w+k):(w=l.x,S=v,k=l.width,M=b-S,v=S+M);var T=c[p-1].tickValue;T!=null&&d.set(T,f),t.add(new cr({anid:T!=null?"area_"+T:null,shape:{x:w,y:S,width:k,height:M},style:We({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%u}Qb(e).splitAreaColors=d}}}function NZ(e){Qb(e).splitAreaColors=null}var zZ=["splitArea","splitLine","minorSplitLine","breakArea"],cO=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Cr,this.group.add(this._axisGroup),!!vf(r)){this._axisGroup.add(r.axis.axisBuilder.group),Y(zZ,function(l){r.get([l,"show"])&&HZ[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||PI(o,this._axisGroup,r),e.prototype.render.call(this,r,i,n,a)}},t.prototype.remove=function(){NZ(this)},t.type="cartesianAxis",t})(lO),HZ={splitLine:function(e,t,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),c=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;l=It(l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=a.isHorizontal(),f=0,p=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),b=0;b<p.length;b++){var w=a.toGlobalCoord(p[b].coord);if(!(b===0&&!c||b===p.length-1&&!u)){var S=p[b].tickValue;d?(g[0]=w,g[1]=h.y,v[0]=w,v[1]=h.y+h.height):(g[0]=h.x,g[1]=w,v[0]=h.x+h.width,v[1]=w);var k=f++%l.length,M=new No({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:We({stroke:l[k]},m),silent:!0});lf(M.shape,m.lineWidth),t.add(M)}}}},minorSplitLine:function(e,t,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),c=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var h=[],d=[],f=s.getLineStyle(),p=0;p<u.length;p++)for(var g=0;g<u[p].length;g++){var v=a.toGlobalCoord(u[p][g].coord);c?(h[0]=v,h[1]=l.y,d[0]=v,d[1]=l.y+l.height):(h[0]=l.x,h[1]=v,d[0]=l.x+l.width,d[1]=v);var m=new No({anid:"minor_line_"+u[p][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:f,silent:!0});lf(m.shape,f.lineWidth),t.add(m)}},splitArea:function(e,t,r,i,n){$Z(e,t,r,i)},breakArea:function(e,t,r,i,n){r.axis.scale}},uO=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(cO),WZ=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=uO.type,r}return t.type="yAxis",t})(cO),GZ=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new cr({shape:r.coordinateSystem.getRect(),style:We({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Ln),PA={offset:0};function hO(e){e.registerComponentView(GZ),e.registerComponentModel(ZX),e.registerCoordinateSystem("cartesian2d",kZ),xA(e,"x",jb,PA),xA(e,"y",jb,PA),e.registerComponentView(uO),e.registerComponentView(WZ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function qZ(e){Va(hO),e.registerSeriesModel(VX),e.registerChartView(XX),e.registerLayout(Bw("scatter"))}var Fs=rr(),BA=xe,V0=ze,VZ=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,a,t,r,i);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Cr,this.createPointerEl(s,c,t,r),this.createLabelEl(s,c,t,r),i.getZr().add(s);else{var d=fr(OA,r,h);this.updatePointerEl(s,c,d),this.updateLabelEl(s,c,d,r)}FA(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var i=r.get("animation"),n=t.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=Fw(t).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=Fs(t).pointerEl=new $q[a.type](BA(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=Fs(t).labelEl=new zr(BA(r.label));t.add(a),RA(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=Fs(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=Fs(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),RA(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=J1(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){CE(c.event)},onmousedown:V0(this._onHandleDragMove,this,0,0),drift:V0(this._onHandleDragMove,this),ondragend:V0(this._onHandleDragEnd,this)}),i.add(n)),FA(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");It(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,AP(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){OA(this._axisPointerModel,!r&&this._moveAnimation,this._handle,U0(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(U0(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(U0(n)),Fs(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Db(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e})();function OA(e,t,r,i){fO(Fs(r).lastProp,i)||(Fs(r).lastProp=i,t?vi(r,i,e):(r.stopAnimation(),r.attr(i)))}function fO(e,t){if(Qt(e)&&Qt(t)){var r=!0;return Y(t,function(i,n){r=r&&fO(e[n],i)}),!!r}else return e===t}function RA(e,t){e[t.get(["label","show"])?"show":"hide"]()}function U0(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function FA(e,t,r){var i=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function UZ(e){var t=e.get("type"),r=e.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function YZ(e,t,r,i,n){var a=r.get("value"),o=dO(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=bm(s.get("padding")||0),c=s.getFont(),u=WE(o,c),h=n.position,d=u.width+l[1]+l[3],f=u.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=d),p==="center"&&(h[0]-=d/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=f),g==="middle"&&(h[1]-=f/2),jZ(h,d,f,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:zo(s,{text:o,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function jZ(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dO(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:Qg(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Y(i,function(l){var c=r.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,h=c&&c.getDataParams(u);h&&s.seriesData.push(h)}),Ut(o)?a=o.replace("{value}",a):ce(o)&&(a=o(s))}return a}function pO(e,t,r){var i=Ra();return I1(i,i,r.rotation),q_(i,i,r.position),Q1([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function XZ(e,t,r,i,n,a){var o=Io.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),YZ(t,i,n,a,{position:pO(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZZ(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function KZ(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var QZ=(function(e){kt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,c=a.get("type"),u=$A(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(c&&c!=="none"){var d=UZ(a),f=JZ[c](s,h,u);f.style=d,r.graphicKey=f.type,r.pointer=f}var p=nv(l.getRect(),n);XZ(i,r,p,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=nv(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=pO(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),c=$A(s,o).getOtherAxis(o).getGlobalExtent(),u=o.dim==="x"?0:1,h=[r.x,r.y];h[u]+=i[u],h[u]=Math.min(l[1],h[u]),h[u]=Math.max(l[0],h[u]);var d=(c[1]+c[0])/2,f=[d,d];f[u]=h[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:f,tooltipOption:p[u]}},t})(VZ);function $A(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var JZ={line:function(e,t,r){var i=ZZ([t,r[0]],[t,r[1]],NA(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r){var i=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:KZ([t-i/2,r[0]],[i,n],NA(e))}}};function NA(e){return e.dim==="x"?0:1}var tK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:jt.color.border,width:1,type:"dashed"},shadowStyle:{color:jt.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:jt.color.neutral00,padding:[5,7,5,7],backgroundColor:jt.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:jt.color.accent40,throttle:40}},t})(Ne),Oa=rr(),eK=Y;function gO(e,t,r){if(!he.node){var i=t.getZr();Oa(i).records||(Oa(i).records={}),rK(i,t);var n=Oa(i).records[e]||(Oa(i).records[e]={});n.handler=r}}function rK(e,t){if(Oa(e).initialized)return;Oa(e).initialized=!0,r("click",fr(zA,"click")),r("mousemove",fr(zA,"mousemove")),r("globalout",nK);function r(i,n){e.on(i,function(a){var o=aK(t);eK(Oa(e).records,function(s){s&&n(s,a,o.dispatchAction)}),iK(o.pendings,t)})}}function iK(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function nK(e,t,r){e.handler("leave",null,r)}function zA(e,t,r,i){t.handler(e,r,i)}function aK(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function Jb(e,t){if(!he.node){var r=t.getZr(),i=(Oa(r).records||{})[e];i&&(Oa(r).records[e]=null)}}var oK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";gO("axisPointer",n,function(s,l,c){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,i){Jb("axisPointer",i)},t.prototype.dispose=function(r,i){Jb("axisPointer",i)},t.type="axisPointer",t})(Ln);function vO(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ll(a,e);if(o==null||o<0||It(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,f=h==="x"||h==="radius"?1:0,p=a.mapDimension(d),g=[];g[f]=a.get(p,o),g[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(te(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var HA=rr();function sK(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||ze(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){jp(n)&&(n=vO({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=jp(n),c=a.axesInfo,u=s.axesInfo,h=i==="leave"||jp(n),d={},f={},p={list:[],map:{}},g={showPointer:fr(cK,f),showTooltip:fr(uK,p)};Y(s.coordSysMap,function(m,b){var w=l||m.containPoint(n);Y(s.coordSysAxesInfo[b],function(S,k){var M=S.axis,T=pK(c,S);if(!h&&w&&(!c||T)){var I=T&&T.value;I==null&&!l&&(I=M.pointToData(n)),I!=null&&WA(S,I,g,!1,d)}})});var v={};return Y(u,function(m,b){var w=m.linkGroup;w&&!f[b]&&Y(w.axesInfo,function(S,k){var M=f[k];if(S!==m&&M){var T=M.value;w.mapper&&(T=m.axis.scale.parse(w.mapper(T,GA(S),GA(m)))),v[m.key]=T}})}),Y(v,function(m,b){WA(u[b],m,g,!0,d)}),hK(f,u,d),fK(p,n,e,o),dK(u,o,r),d}}function WA(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=lK(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&wt(n,s[0]),!i&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function lK(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return Y(t.seriesModels,function(l,c){var u=l.getData().mapDimensionsAll(i),h,d;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(u,e,r);d=f.dataIndices,h=f.nestestValue}else{if(d=l.indicesOfNearest(i,u[0],e,r.type==="category"?.5:null),!d.length)return;h=l.getData().get(u[0],d[0])}if(!(h==null||!isFinite(h))){var p=e-h,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,n=h,a.length=0),Y(d,function(v){a.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:a,snapToValue:n}}function cK(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function uK(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,c=yf(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function hK(e,t,r){var i=r.axesInfo=[];Y(t,function(n,a){var o=n.axisPointerModel.option,s=e[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function fK(e,t,r,i){if(jp(t)||!e.list.length){i({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function dK(e,t,r){var i=r.getZr(),n="axisPointerLastHighlights",a=HA(i)[n]||{},o=HA(i)[n]={};Y(e,function(c,u){var h=c.axisPointerModel.option;h.status==="show"&&c.triggerEmphasis&&Y(h.seriesDataIndices,function(d){var f=d.seriesIndex+" | "+d.dataIndex;o[f]=d})});var s=[],l=[];Y(a,function(c,u){!o[u]&&l.push(c)}),Y(o,function(c,u){!a[u]&&s.push(c)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function pK(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function GA(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function jp(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function mO(e){lO.registerAxisPointerClass("CartesianAxisPointer",QZ),e.registerComponentModel(tK),e.registerComponentView(oK),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!It(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=EZ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},sK)}function gK(e){Va(hO),Va(mO)}function vK(e,t){var r=bm(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var n=new cr({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var mK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:jt.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:jt.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:jt.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:jt.color.tertiary,fontSize:14}},t})(Ne);function yO(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _O(e){if(he.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var bO=_O(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yK=_O(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xO(e,t){if(!e)return t;t=KI(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _K(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var bK=xO(yK,"transition"),$w=xO(bO,"transform"),xK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(he.transform3dSupported?"will-change:transform;":"");function wK(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function SK(e,t,r){if(!Ut(r)||r==="inside")return"";var i=e.get("backgroundColor"),n=e.get("borderWidth");t=ul(t);var a=wK(r),o=Math.max(Math.round(n)*1.5,6),s="",l=$w+":",c;De(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=a==="top"?225:45)+"deg)");var u=c*Math.PI/180,h=o+n,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),f=Math.round(((d-Math.SQRT2*n)/2+Math.SQRT2*n-(d-h)/2)*100)/100;s+=";"+a+":-"+f+"px";var p=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function CK(e,t,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+e/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+e+"s "+i,a+=(a.length?",":"")+(he.transformSupported?""+$w+n:",left"+n+",top"+n)),bK+":"+a}function qA(e,t,r){var i=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!he.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=he.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+$w+":"+o+";":[["top",0],["left",0],[bO,o]]}function TK(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var n=ne(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),Y(["decoration","align"],function(c){var u=e.get(c);u&&t.push("text-"+c+":"+u)}),t.join(";")}function kK(e,t,r,i){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),h=e.getModel("textStyle"),d=TP(e,"html"),f=c+"px "+u+"px "+s+"px "+l;return n.push("box-shadow:"+f),t&&a>0&&n.push(CK(a,r,i)),o&&n.push("background-color:"+o),Y(["width","color","radius"],function(p){var g="border-"+p,v=KI(g),m=e.get(v);m!=null&&n.push(g+":"+m+(p==="color"?"":"px"))}),n.push(TK(h)),d!=null&&n.push("padding:"+bm(d).join("px ")+"px"),n.join(";")+";"}function VA(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&VH(e,o,r,i,n)}else{e[0]=i,e[1]=n;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var AK=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,he.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(Ut(a)?document.querySelector(a):tf(a)?a:ce(a)&&a(t.getDom()));VA(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=n.handler,u=n.painter.getViewportRoot();ji(u,l,!0),c.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=_K(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=xK+kK(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+qA(a[0],a[1],!0)+("border-color:"+ul(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ut(a)&&i.get("trigger")==="item"&&!yO(i)&&(s=SK(i,n,a)),Ut(t))o.innerHTML=t+s;else if(t){o.innerHTML="",It(t)||(t=[t]);for(var l=0;l<t.length;l++)tf(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=s,o.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var i=this._styleCoord;if(VA(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=qA(i[0],i[1]);Y(a,function(o){n[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",he.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ze(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;UH(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},e})(),MK=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),YA(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,i,n,a){var o=this;Qt(t)&&Si(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new zr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:TP(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),Y(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){o.el.style[c]=i.get(c)}),Y(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){o.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=UA(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;YA(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=go(a.borderWidth||0),s=UA(a);i.x=t+o+s.left,i.y=r+o+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ze(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function go(e){return Math.max(0,e)}function UA(e){var t=go(e.shadowBlur||0),r=go(e.shadowOffsetX||0),i=go(e.shadowOffsetY||0);return{left:go(t-r),right:go(t+r),top:go(t-i),bottom:go(t+i)}}function YA(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var LK=new cr({shape:{x:-1,y:-1,width:2,height:2}}),DK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,i){if(!(he.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=T9(n.get("renderMode"));this._tooltipContent=a==="richText"?new MK(i):new AK(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,i,n){if(!(he.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?AP(this,"_updatePosition",50,"fixRate"):Db(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");gO("itemTooltip",this._api,ze(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||he.node||!n.getDom())){var o=jA(a,n);this._ticket="";var s=a.dataByCoordSys,l=BK(a,i,n);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var u=LK;u.x=a.x,u.y=a.y,u.update(),Te(u).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:u},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var h=vO(a,i),d=h.point[0],f=h.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(jA(a,n))},t.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var c=i.getSeriesByIndex(o);if(c){var u=c.getData(),h=Ou([u.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=Te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;ih(n,function(u){if(u.tooltipDisabled)return l=c=null,!0;l||c||(Te(u).dataIndex!=null?l=u:Te(u).tooltipConfig!=null&&(c=u))},!0),l?this._showSeriesItemTooltip(r,l,i):c?this._showComponentItemTooltip(r,c,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=ze(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Ou([i.tooltipOption],a),l=this._renderMode,c=[],u=ff("section",{blocks:[],noHeader:!0}),h=[],d=new w0;Y(r,function(b){Y(b.dataByAxis,function(w){var S=n.getComponent(w.axisDim+"Axis",w.axisIndex),k=w.value;if(!(!S||k==null)){var M=dO(k,S.axis,n,w.seriesDataIndices,w.valueLabelOpt),T=ff("section",{header:M,noHeader:!Kn(M),sortBlocks:!0,blocks:[]});u.blocks.push(T),Y(w.seriesDataIndices,function(I){var B=n.getSeriesByIndex(I.seriesIndex),R=I.dataIndexInside,D=B.getDataParams(R);if(!(D.dataIndex<0)){D.axisDim=w.axisDim,D.axisIndex=w.axisIndex,D.axisType=w.axisType,D.axisId=w.axisId,D.axisValue=Qg(S.axis,{value:k}),D.axisValueLabel=M,D.marker=d.makeTooltipMarker("item",ul(D.color),l);var $=rk(B.formatTooltip(R,!0,null)),O=$.frag;if(O){var F=Ou([B],a).get("valueFormatter");T.blocks.push(F?wt({valueFormatter:F},O):O)}$.text&&h.push($.text),c.push(D)}})}})}),u.blocks.reverse(),h.reverse();var f=i.position,p=s.get("order"),g=sk(u,d,l,p,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var v=l==="richText"?`
|
|
16
|
+
|
|
17
|
+
`:"<br/>",m=h.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,c):this._showTooltipContent(s,m,c,Math.random()+"",o[0],o[1],f,null,d)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=Te(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),c=o.dataModel||l,u=o.dataIndex,h=o.dataType,d=c.getData(h),f=this._renderMode,p=r.positionDefault,g=Ou([d.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var m=c.getDataParams(u,h),b=new w0;m.marker=b.makeTooltipMarker("item",ul(m.color),f);var w=rk(c.formatTooltip(u,!1,h)),S=g.get("order"),k=g.get("valueFormatter"),M=w.frag,T=M?sk(k?wt({valueFormatter:k},M):M,b,f,S,a.get("useUTC"),g.get("textStyle")):w.text,I="item_"+c.name+"_"+u;this._showOrMove(g,function(){this._showTooltipContent(g,T,m,I,r.offsetX,r.offsetY,r.position,r.target,b)}),n({type:"showTip",dataIndexInside:u,dataIndex:d.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=Te(i),s=o.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(Ut(l)){var u=l;l={content:u,formatter:u},c=!0}c&&a&&l.content&&(l=xe(l),l.content=xi(l.content));var h=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&h.push(d),h.push({formatter:l.content});var f=r.positionDefault,p=Ou(h,this._tooltipModel,f?{position:f}:null),g=p.get("content"),v=Math.random()+"",m=new w0;this._showOrMove(p,function(){var b=xe(p.get("formatterParams")||{});this._showTooltipContent(p,g,b,v,r.offsetX,r.offsetY,r.position,i,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,l,c,u){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var f=i,p=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=p.color;if(d)if(Ut(d)){var v=r.ecModel.get("useUTC"),m=It(n)?n[0]:n,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;f=d,b&&(f=_m(m.axisValue,f,v)),f=QI(f,n,!0)}else if(ce(d)){var w=ze(function(S,k){S===this._ticket&&(h.setContent(k,u,r,g,l),this._updatePosition(r,l,o,s,h,n,c))},this);this._ticket=a,f=d(n,a,w)}else f=d;h.setContent(f,u,r,g,l),h.show(r,g),this._updatePosition(r,l,o,s,h,n,c)}},t.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||It(i))return{color:a||o};if(!It(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,l){var c=this._api.getWidth(),u=this._api.getHeight();i=i||r.get("position");var h=o.getSize(),d=r.get("align"),f=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ce(i)&&(i=i([n,a],s,o.el,p,{viewSize:[c,u],contentSize:h.slice()})),It(i))n=tr(i[0],c),a=tr(i[1],u);else if(Qt(i)){var g=i;g.width=h[0],g.height=h[1];var v=Ho(g,{width:c,height:u});n=v.x,a=v.y,d=null,f=null}else if(Ut(i)&&l){var m=PK(i,p,h,r.get("borderWidth"));n=m[0],a=m[1]}else{var m=EK(n,a,o,c,u,d?null:20,f?null:20);n=m[0],a=m[1]}if(d&&(n-=XA(d)?h[0]/2:d==="right"?h[0]:0),f&&(a-=XA(f)?h[1]/2:f==="bottom"?h[1]:0),yO(r)){var m=IK(n,a,o,c,u);n=m[0],a=m[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&Y(n,function(s,l){var c=s.dataByAxis||[],u=r[l]||{},h=u.dataByAxis||[];o=o&&c.length===h.length,o&&Y(c,function(d,f){var p=h[f]||{},g=d.seriesDataIndices||[],v=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&g.length===v.length,o&&Y(g,function(m,b){var w=v[b];o=o&&m.seriesIndex===w.seriesIndex&&m.dataIndex===w.dataIndex}),a&&Y(d.seriesDataIndices,function(m){var b=m.seriesIndex,w=i[b],S=a[b];w&&S&&S.data!==w.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){he.node||!i.getDom()||(Db(this,"_updatePosition"),this._tooltipContent.dispose(),Jb("itemTooltip",i))},t.type="tooltip",t})(Ln);function Ou(e,t,r){var i=t.ecModel,n;r?(n=new nr(r,i,i),n=new nr(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof nr&&(o=o.get("tooltip",!0)),Ut(o)&&(o={formatter:o}),o&&(n=new nr(o,n,i)))}return n}function jA(e,t){return e.dispatchAction||ze(t.dispatchAction,t)}function EK(e,t,r,i,n,a,o){var s=r.getSize(),l=s[0],c=s[1];return a!=null&&(e+l+a+2>i?e-=l+a:e+=a),o!=null&&(t+c+o>n?t-=c+o:t+=o),[e,t]}function IK(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function PK(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-n/2,l=t.y+u/2-a/2;break;case"top":s=t.x+c/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+c/2-n/2,l=t.y+u+o;break;case"left":s=t.x-n-o,l=t.y+u/2-a/2;break;case"right":s=t.x+c+o,l=t.y+u/2-a/2}return[s,l]}function XA(e){return e==="center"||e==="middle"}function BK(e,t,r){var i=F1(e).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Nf(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(c){var u=Te(c).tooltipConfig;if(u&&u.name===e.name)return l=c,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function OK(e){Va(mO),e.registerComponentModel(mK),e.registerComponentView(DK),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mi),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mi)}var RK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:jt.size.m,backgroundColor:jt.color.transparent,borderColor:jt.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:jt.color.primary},subtextStyle:{fontSize:12,color:jt.color.quaternary}},t})(Ne),FK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=ne(r.get("textBaseline"),r.get("textVerticalAlign")),u=new zr({style:zo(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=u.getBoundingRect(),d=r.get("subtext"),f=new zr({style:zo(s,{text:d,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),g=r.get("sublink"),v=r.get("triggerEvent",!0);u.silent=!p&&!v,f.silent=!g&&!v,p&&u.on("click",function(){F2(p,"_"+r.get("target"))}),g&&f.on("click",function(){F2(g,"_"+r.get("subtarget"))}),Te(u).eventData=Te(f).eventData=v?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(u),d&&a.add(f);var m=a.getBoundingRect(),b=r.getBoxLayoutParams();b.width=m.width,b.height=m.height;var w=xm(r,n),S=Ho(b,w.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?S.y+=S.height:c==="middle"&&(S.y+=S.height/2),c=c||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var k={align:l,verticalAlign:c};u.setStyle(k),f.setStyle(k),m=a.getBoundingRect();var M=S.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var I=new cr({shape:{x:m.x-M[3],y:m.y-M[0],width:m.width+M[1]+M[3],height:m.height+M[0]+M[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(I)}},t.type="title",t})(Ln);function $K(e){e.registerComponentModel(RK),e.registerComponentView(FK)}var NK=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},tx=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},t.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),It(i)&&Y(i,function(a,o){Ut(a)&&(a={type:a}),i[o]=Re(a,NK(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var c=l.name;n.push(c);var u;if(l.legendVisualProvider){var h=l.legendVisualProvider,d=h.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(d)),d.length?i=i.concat(d):u=!0}else u=!0;u&&R1(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=me(),s=te(a,function(l){return(Ut(l)||He(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new nr(l,this,this.ecModel))},this);this._data=Dr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;Y(a,function(o){i[o.get("name")]=!1})}i[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,i=this.option.selected;Y(r,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;Y(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&De(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:jt.size.m,align:"auto",backgroundColor:jt.color.transparent,borderColor:jt.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:jt.color.disabled,inactiveBorderColor:jt.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:jt.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:jt.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:jt.color.tertiary,borderWidth:1,borderColor:jt.color.border},emphasis:{selectorLabel:{show:!0,color:jt.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Ne),Xl=fr,ex=Y,gp=Cr,wO=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new gp),this.group.add(this._selectorGroup=new gp),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,c);var u=xm(r,n).refContainer,h=r.getBoxLayoutParams(),d=r.get("padding"),f=Ho(h,u,d),p=this.layoutInner(r,o,f,a,l,c),g=Ho(We({width:p.width,height:p.height},h),u,d);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vK(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,i,n,a,o,s,l){var c=this.getContentGroup(),u=me(),h=i.get("selectedMode"),d=i.get("triggerEvent"),f=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&f.push(p.id)}),ex(i.getData(),function(p,g){var v=this,m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
18
|
+
`)){var b=new gp;b.newline=!0,c.add(b);return}var w=n.getSeriesByName(m)[0];if(!u.get(m))if(w){var S=w.getData(),k=S.getVisual("legendLineStyle")||{},M=S.getVisual("legendIcon"),T=S.getVisual("style"),I=this._createItem(w,m,g,p,i,r,k,T,M,h,a);I.on("click",Xl(ZA,m,null,a,f)).on("mouseover",Xl(rx,w.name,null,a,f)).on("mouseout",Xl(ix,w.name,null,a,f)),n.ssr&&I.eachChild(function(B){var R=Te(B);R.seriesIndex=w.seriesIndex,R.dataIndex=g,R.ssrType="legend"}),d&&I.eachChild(function(B){v.packEventData(B,i,w,g,m)}),u.set(m,!0)}else n.eachRawSeries(function(B){var R=this;if(!u.get(m)&&B.legendVisualProvider){var D=B.legendVisualProvider;if(!D.containName(m))return;var $=D.indexOfName(m),O=D.getItemVisual($,"style"),F=D.getItemVisual($,"legendIcon"),z=ra(O.fill);z&&z[3]===0&&(z[3]=.2,O=wt(wt({},O),{fill:Ff(z,"rgba")}));var H=this._createItem(B,m,g,p,i,r,{},O,F,h,a);H.on("click",Xl(ZA,null,m,a,f)).on("mouseover",Xl(rx,null,m,a,f)).on("mouseout",Xl(ix,null,m,a,f)),n.ssr&&H.eachChild(function(U){var q=Te(U);q.seriesIndex=B.seriesIndex,q.dataIndex=g,q.ssrType="legend"}),d&&H.eachChild(function(U){R.packEventData(U,i,B,g,m)}),u.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};Te(r).eventData=s},t.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();ex(r,function(c){var u=c.type,h=new zr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var d=i.getModel("selectorLabel"),f=i.getModel(["emphasis","selectorLabel"]);Wf(h,{normal:d,emphasis:f},{defaultText:c.title}),vb(h)})},t.prototype._createItem=function(r,i,n,a,o,s,l,c,u,h,d){var f=r.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),v=o.isSelected(i),m=a.get("symbolRotate"),b=a.get("symbolKeepAspect"),w=a.get("icon");u=w||u||"roundRect";var S=zK(u,a,l,c,f,v,d),k=new gp,M=a.getModel("textStyle");if(ce(r.getLegendIcon)&&(!w||w==="inherit"))k.add(r.getLegendIcon({itemWidth:p,itemHeight:g,icon:u,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=w==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;k.add(HK({itemWidth:p,itemHeight:g,icon:u,iconRotate:T,itemStyle:S.itemStyle,symbolKeepAspect:b}))}var I=s==="left"?p+5:-5,B=s,R=o.get("formatter"),D=i;Ut(R)&&R?D=R.replace("{name}",i??""):ce(R)&&(D=R(i));var $=v?M.getTextColor():a.get("inactiveColor");k.add(new zr({style:zo(M,{text:D,x:I,y:g/2,fill:$,align:B,verticalAlign:"middle"},{inheritColor:$})}));var O=new cr({shape:k.getBoundingRect(),style:{fill:"transparent"}}),F=a.getModel("tooltip");return F.get("show")&&pm({el:O,componentModel:o,itemName:i,itemTooltipOption:F.option}),k.add(O),k.eachChild(function(z){z.silent=!0}),O.silent=!h,this.getContentGroup().add(k),vb(k),k.__legendDataIndex=n,k},t.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Rh(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var u=l.getBoundingRect(),h=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),o){Rh("horizontal",c,r.get("selectorItemGap",!0));var d=c.getBoundingRect(),f=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),g=r.getOrient().index,v=g===0?"width":"height",m=g===0?"height":"width",b=g===0?"y":"x";s==="end"?f[g]+=u[v]+p:h[g]+=d[v]+p,f[1-g]+=u[m]/2-d[m]/2,c.x=f[0],c.y=f[1],l.x=h[0],l.y=h[1];var w={x:0,y:0};return w[v]=u[v]+p+d[v],w[m]=Math.max(u[m],d[m]),w[b]=Math.min(0,d[b]+f[1-g]),w}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ln);function zK(e,t,r,i,n,a,o){function s(v,m){v.lineWidth==="auto"&&(v.lineWidth=m.lineWidth>0?2:0),ex(v,function(b,w){v[w]==="inherit"&&(v[w]=m[w])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");c.decal=!h||h==="inherit"?i.decal:Ob(h,o),c.fill==="inherit"&&(c.fill=i[n]),c.stroke==="inherit"&&(c.stroke=i[u]),c.opacity==="inherit"&&(c.opacity=(n==="fill"?i:r).opacity),s(c,i);var d=t.getModel("lineStyle"),f=d.getLineStyle();if(s(f,r),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),f.stroke==="auto"&&(f.stroke=i.fill),!a){var p=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth=p==="auto"?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}function HK(e){var t=e.icon||"roundRect",r=hl(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=jt.color.neutral00,r.style.lineWidth=2),r}function ZA(e,t,r,i){ix(e,t,r,i),r.dispatchAction({type:"legendToggleSelect",name:e??t}),rx(e,t,r,i)}function SO(e){for(var t=e.getZr().storage.getDisplayList(),r,i=0,n=t.length;i<n&&!(r=t[i].states.emphasis);)i++;return r&&r.hoverLayer}function rx(e,t,r,i){SO(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function ix(e,t,r,i){SO(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function WK(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var i=0;i<t.length;i++)if(!t[i].isSelected(r.name))return!1;return!0})}function Ru(e,t,r){var i=e==="allSelect"||e==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){i?s[e]():s[e](t.name),KA(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){Y(n,function(l,c){s[l?"select":"unSelect"](c)}),KA(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function KA(e,t){var r=t||{};return Y(e.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
19
|
+
`||n==="")){var a=e.isSelected(n);Tn(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function GK(e){e.registerAction("legendToggleSelect","legendselectchanged",fr(Ru,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",fr(Ru,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",fr(Ru,"inverseSelect")),e.registerAction("legendSelect","legendselected",fr(Ru,"select")),e.registerAction("legendUnSelect","legendunselected",fr(Ru,"unSelect"))}function CO(e){e.registerComponentModel(tx),e.registerComponentView(wO),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,WK),e.registerSubTypeDefaulter("legend",function(){return"plain"}),GK(e)}var qK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,i,n){var a=qf(r);e.prototype.init.call(this,r,i,n),QA(this,r,a)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.call(this,r,i),QA(this,this.option,r)},t.type="legend.scroll",t.defaultOption=zI(tx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:jt.color.accent50,pageIconInactiveColor:jt.color.accent10,pageIconSize:15,pageTextStyle:{color:jt.color.tertiary},animationDurationUpdate:800}),t})(tx);function QA(e,t,r){var i=e.getOrient(),n=[1,1];n[i.index]=0,Wo(t,r,{type:"box",ignoreSize:!!n})}var JA=Cr,Y0=["width","height"],j0=["x","y"],VK=(function(e){kt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new JA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new JA)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,i,n,a,o,s,l){var c=this;e.prototype.renderInner.call(this,r,i,n,a,o,s,l);var u=this._controllerGroup,h=i.get("pageIconSize",!0),d=It(h)?h:[h,h];p("pagePrev",0);var f=i.getModel("pageTextStyle");u.add(new zr({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,v){var m=g+"DataIndex",b=J1(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:ze(c._pageGo,c,m,i,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=g,u.add(b)}},t.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),c=r.getOrient().index,u=Y0[c],h=j0[c],d=Y0[1-c],f=j0[1-c];o&&Rh("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],m=xe(n);o&&(m[u]=n[u]-g[u]-p);var b=this._layoutContentAndController(r,a,m,c,u,d,f,h);if(o){if(s==="end")v[c]+=b[u]+p;else{var w=g[u]+p;v[c]-=w,b[h]-=w}b[u]+=g[u]+p,v[1-c]+=b[f]+b[d]/2-g[d]/2,b[d]=Math.max(b[d],g[d]),b[f]=Math.min(b[f],g[f]+v[1-c]),l.x=v[0],l.y=v[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,c){var u=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;Rh(r.get("orient"),u,r.get("itemGap"),a?n.width:null,a?null:n.height),Rh("horizontal",d,r.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),p=d.getBoundingRect(),g=this._showController=f[o]>n[o],v=[-f.x,-f.y];i||(v[a]=u[c]);var m=[0,0],b=[-p.x,-p.y],w=ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var S=r.get("pageButtonPosition",!0);S==="end"?b[a]+=n[o]-p[o]:m[a]+=p[o]+w}b[1-a]+=f[s]/2-p[s]/2,u.setPosition(v),h.setPosition(m),d.setPosition(b);var k={x:0,y:0};if(k[o]=g?n[o]:f[o],k[s]=Math.max(f[s],p[s]),k[l]=Math.min(0,p[l]+b[1-a]),h.__rectSize=n[o],g){var M={x:0,y:0};M[o]=Math.max(n[o]-p[o]-w,0),M[s]=k[s],h.setClipPath(new cr({shape:M})),h.__rectSize=M[o]}else d.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&vi(u,{x:T.contentPosition[0],y:T.contentPosition[1]},g?r:null),this._updatePageInfoView(r,T),k},t.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;Y(["pagePrev","pageNext"],function(u){var h=u+"DataIndex",d=i[h]!=null,f=n.childOfName(u);f&&(f.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),f.cursor=d?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,c=i.pageCount;a&&o&&a.setStyle("text",Ut(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):o({current:l,total:c}))},t.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Y0[o],l=j0[o],c=this._findTargetItemIndex(i),u=n.children(),h=u[c],d=u.length,f=d?1:0,p={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var g=S(h);p.contentPosition[o]=-g.s;for(var v=c+1,m=g,b=g,w=null;v<=d;++v)w=S(u[v]),(!w&&b.e>m.s+a||w&&!k(w,m.s))&&(b.i>m.i?m=b:m=w,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),b=w;for(var v=c-1,m=g,b=g,w=null;v>=-1;--v)w=S(u[v]),(!w||!k(b,w.s))&&m.i<b.i&&(b=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=w;return p;function S(M){if(M){var T=M.getBoundingRect(),I=T[l]+M[l];return{s:I,e:I+T[s],i:M.__legendDataIndex}}}function k(M,T){return M.e>=T&&M.s<=T+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},t.type="legend.scroll",t})(wO);function UK(e){e.registerAction("legendScroll","legendscroll",function(t,r){var i=t.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function YK(e){Va(CO),e.registerComponentModel(qK),e.registerComponentView(VK),UK(e)}function jK(e){Va(CO),Va(YK)}const XK=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ZK(e){function t(r){return function(...n){if(!e.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(e.value[r],e.value,n)}}return XK.reduce((r,i)=>(r[i]=t(i),r),{})}function KK(e,t,r){Se([r,e,t],([i,n,a],o,s)=>{let l=null;if(i&&n&&a){const{offsetWidth:c,offsetHeight:u}=i,{throttle:h=100,onResize:d}=a===!0?{}:a;let f=!1;const p=()=>{n.resize(),d?.()},g=h?Cm(p,h):p;l=new ResizeObserver(()=>{!f&&(f=!0,i.offsetWidth===c&&i.offsetHeight===u)||i.offsetWidth===0||i.offsetHeight===0||g()}),l.observe(i)}s(()=>{l&&(l.disconnect(),l=null)})})}const QK={autoresize:[Boolean,Object]},JK=Symbol();function tQ(e,t,r){const i=ea(JK,{}),n=tn(()=>({...Lp(i),...r?.value}));g1(()=>{const a=e.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const eQ={loading:Boolean,loadingOptions:Object};function TO(){return typeof window<"u"&&typeof document<"u"}const rQ=/^on[^a-z]/,kO=e=>rQ.test(e);function iQ(e){const t={};for(const r in e)kO(r)||(t[r]=e[r]);return t}function nQ(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===e}function aQ(e,t){const r=new Set(e),i=new Set(t);if(r.size!==i.size)return!1;for(const n of r)if(!i.has(n))return!1;return!0}function AO(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const MO={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},oQ=Object.keys(MO);function X0(e){return oQ.some(t=>e===t||e.startsWith(t+"-"))}function sQ(e,t){const r=TO()?document.createElement("div"):void 0,i=Mp({}),n=Mp({}),a=Mp({}),o=hg(!1),s=()=>o.value&&r?D_(G4,{to:r},Object.entries(e).filter(([h])=>X0(h)).map(([h,d])=>{const f=h;return D_("div",{ref:p=>{p instanceof HTMLElement&&(i[f]=p)},style:{display:"contents"}},n[f]?d?.(a[f]):void 0)})):void 0;function l(h){return h!==null&&typeof h=="object"&&!Array.isArray(h)}function c(h){const d={...h},f=(p,g)=>{const v=p[g];if(Array.isArray(v))return p[g]=[...v],p[g];if(l(v))return p[g]={...v},p[g];if(v===void 0)return p[g]=nQ(g)?[]:{},p[g]};return Object.keys(e).filter(p=>X0(p)).forEach(p=>{const[g,...v]=p.split("-"),m=MO[g];if(!m)return;const b=[...v,...m];if(b.length===0)return;let w=d;for(let S=0;S<b.length-1;S++)if(w=f(w,b[S]),!w)return;w[b[b.length-1]]=S=>(n[p]=!0,a[p]=S,i[p])}),d}let u=[];return AD(()=>{const h=Object.keys(e).filter(X0);aQ(h,u)||(u.forEach(d=>{h.includes(d)||(delete a[d],delete n[d],delete i[d])}),u=h,t())}),bl(()=>{o.value=!0}),Kv(()=>{r?.remove()}),{teleportedSlots:s,patchOption:c}}let fo=null;const nx="x-vue-echarts";function lQ(){if(fo!=null)return fo;const e=globalThis.customElements;if(!TO()||!e?.get)return fo=!1,fo;if(!e.get(nx))try{class t extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}e.define(nx,t)}catch{return fo=!1,fo}return fo=!0,fo}function cQ(e){if(!AO(e))return;const t=e.id;if(typeof t=="string")return t;if(typeof t=="number"&&Number.isFinite(t))return String(t)}function tM(e){const t=e,r=Array.isArray(t.options)?t.options.length:0,i=Array.isArray(t.media)?t.media.length:0,n=Object.create(null),a=[],o=[];for(const s of Object.keys(t)){if(s==="options"||s==="media")continue;const l=t[s];if(Array.isArray(l)){const c=l,u=new Set;let h=0;for(let d=0;d<c.length;d++){const f=cQ(c[d]);f!==void 0?u.add(f):h++}n[s]={idsSorted:u.size>0?Array.from(u).sort():[],noIdCount:h}}else AO(l)?a.push(s):l!==void 0&&o.push(s)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:i,arrays:n,objects:a,scalars:o}}function eM(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();const r=new Set(t),i=[];for(let n=0;n<e.length;n++){const a=e[n];r.has(a)||i.push(a)}return i}function uQ(e,t){if(e.length===0)return!1;if(t.length===0)return!0;const r=new Set(t);for(let i=0;i<e.length;i++)if(!r.has(e[i]))return!0;return!1}function hQ(e,t){const r=tM(t);if(!e)return{option:t,signature:r,plan:{notMerge:!1}};if(r.optionsLength<e.optionsLength)return{option:t,signature:r,plan:{notMerge:!0}};if(r.mediaLength<e.mediaLength)return{option:t,signature:r,plan:{notMerge:!0}};if(eM(e.scalars,r.scalars).length>0)return{option:t,signature:r,plan:{notMerge:!0}};const i=new Set,n=new Map,a=eM(e.objects,r.objects);for(let c=0;c<a.length;c++)n.set(a[c],null);for(const c of Object.keys(e.arrays)){const u=e.arrays[c];if(!u)continue;const h=r.arrays[c];if(!h){(u.idsSorted.length>0||u.noIdCount>0)&&(n.set(c,[]),i.add(c));continue}if(uQ(u.idsSorted,h.idsSorted)){i.add(c);continue}h.noIdCount<u.noIdCount&&i.add(c)}let o=t,s=r;if(n.size>0){const c={...t};n.forEach((u,h)=>{c[h]=u}),o=c,s=tM(o)}const l=i.size>0?Array.from(i).sort():void 0;return{option:o,signature:s,plan:l?{notMerge:!1,replaceMerge:l}:{notMerge:!1}}}var rM=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
|
|
20
|
+
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
|
|
21
|
+
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const e=new CSSStyleSheet;e.replaceSync(rM),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{const e=document.createElement("style");e.textContent=rM,document.head.appendChild(e)}const fQ=lQ(),dQ=Symbol(),pQ=Symbol(),gQ=Symbol();var vQ=jo({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...QK,...eQ},emits:{},slots:Object,setup(e,{attrs:t,expose:r,slots:i}){const n=hg(),a=hg(),o=ea(dQ,null),s=ea(pQ,null),l=ea(gQ,null),{autoresize:c,manualUpdate:u,loading:h,loadingOptions:d}=x_(e),f=tn(()=>e.theme||Lp(o)),p=tn(()=>e.initOptions||Lp(s)||void 0),g=tn(()=>e.updateOptions||Lp(l)),v=tn(()=>iQ(t)),m={},b=new Map,{teleportedSlots:w,patchOption:S}=sQ(i,()=>{!u.value&&e.option&&a.value&&T(a.value,e.option)});let k;function M($){const O={},F=($?.replaceMerge??[]).filter(z=>z!=null);return F.length>0&&(O.replaceMerge=[...new Set(F)]),$?.notMerge!==void 0&&(O.notMerge=$.notMerge),O}function T($,O,F,z=!1){const H=S(O);if(z){$.setOption(H,F??{}),k=void 0;return}if(g.value){const K=F??g.value;$.setOption(H,K),k=void 0;return}const U=hQ(k,H),q=M(U.plan);$.setOption(U.option,q),k=U.signature}Object.keys(t).filter($=>kO($)).forEach($=>{if($.indexOf("Native:")===2){const H=`on${$.charAt(9).toUpperCase()}${$.slice(10)}`;m[H]=t[$];return}let O=$.charAt(2).toLowerCase()+$.slice(3),F;O.indexOf("zr:")===0&&(F=!0,O=O.substring(3));let z;O.substring(O.length-4)==="Once"&&(z=!0,O=O.substring(0,O.length-4)),b.set({event:O,zr:F,once:z},t[$])});function I(){if(!n.value)return;const $=a.value=lY(n.value,f.value,p.value);e.group&&($.group=e.group),b.forEach((z,{zr:H,once:U,event:q})=>{if(!z)return;const K=H?$.getZr():$;if(U){const et=z;let Q=!1;z=(...it)=>{Q||(Q=!0,et(...it),K.off(q,z))}}K.on(q,z)});function O(){$&&!$.isDisposed()&&$.resize()}function F(){const{option:z}=e;if(u.value){z&&T($,z,void 0,!0);return}z&&T($,z)}c.value?Un(()=>{O(),F()}):F()}const B=($,O,F)=>{if(!e.manualUpdate)return;const z=typeof O=="boolean"?{notMerge:O,lazyUpdate:F}:O;a.value&&T(a.value,$,z??void 0,!0)};function R(){a.value&&(a.value.dispose(),a.value=void 0),k=void 0}Se(()=>e.option,$=>{if(!$){k=void 0;return}u.value||a.value&&T(a.value,$)},{deep:!0}),Se([u,p],()=>{R(),I()},{deep:!0}),Se(f,$=>{a.value?.setTheme($||{})},{deep:!0}),g1(()=>{e.group&&a.value&&(a.value.group=e.group)});const D=ZK(a);return tQ(a,h,d),KK(a,c,n),bl(()=>{I()}),Zv(()=>{fQ&&n.value?n.value.__dispose=R:R()}),r({setOption:B,root:n,chart:a,...D}),(()=>D_(nx,{...v.value,...m,ref:n,class:["echarts",v.value.class]},w()))}}),mQ=vQ;const yQ={class:"chart-card"},_Q={class:"chart-header"},bQ={key:0,class:"description"},xQ={class:"chart-body"},wQ=jo({__name:"ChartCard",props:{visualization:{}},setup(e){Va([jj,vX,EX,qZ,qX,gK,OK,$K,jK]);const t=e,r=tn(()=>{if(t.visualization.type==="pie")return{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",left:"left"},series:[{name:t.visualization.title||"Data",type:"pie",radius:"65%",center:["50%","55%"],data:t.visualization.series?.[0]?.data.map(o=>({name:t.visualization.xLabels?.[o[0]]||`Item ${o[0]}`,value:o[1]}))||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};const i=t.visualization.xLabels||t.visualization.series?.[0]?.data.map(o=>o[0])||[],n=t.visualization.series?.map(o=>({name:o.name,type:t.visualization.type==="scatter"?"scatter":t.visualization.type,data:o.data.map(s=>s[1])}));return{tooltip:{trigger:"axis"},legend:{data:t.visualization.series?.map(o=>o.name)||[],top:0},grid:{left:"10%",right:"5%",bottom:"15%",top:(t.visualization.series?.length||0)>1?"15%":"10%"},xAxis:{type:"category",data:i},yAxis:{type:"value"},series:n}});return(i,n)=>(Ae(),ir("div",yQ,[Ze("div",_Q,[Ze("h3",null,Ea(e.visualization.title||e.visualization.type),1),e.visualization.description?(Ae(),ir("p",bQ,Ea(e.visualization.description),1)):Mo("",!0)]),Ze("div",xQ,[Fr(sl(mQ),{option:r.value,autoresize:""},null,8,["option"])])]))}}),Uf=(e,t)=>{const r=e.__vccOpts||e;for(const[i,n]of t)r[i]=n;return r},SQ=Uf(wQ,[["__scopeId","data-v-0efdab52"]]),CQ={class:"table-card"},TQ={class:"card-header"},kQ={class:"header-text"},AQ={key:0,class:"card-title"},MQ={key:1,class:"card-description"},LQ={class:"table-container"},DQ={key:0},EQ=jo({__name:"TableCard",props:{visualization:{}},setup(e){const t=e;function r(){if(!t.visualization.table)return"";const{headers:a,rows:o}=t.visualization.table,s=u=>{const h=String(u??"");return h.includes(",")||h.includes('"')||h.includes(`
|
|
22
|
+
`)?`"${h.replace(/"/g,'""')}"`:h},l=a.map(s).join(","),c=o.map(u=>u.map(s).join(","));return[l,...c].join(`
|
|
23
|
+
`)}async function i(){const a=r();try{await navigator.clipboard.writeText(a),alert("Table copied to clipboard!")}catch(o){console.error("Failed to copy:",o),alert("Failed to copy to clipboard")}}function n(){const a=r(),o=new Blob([a],{type:"text/csv;charset=utf-8;"}),s=document.createElement("a"),l=URL.createObjectURL(o);s.setAttribute("href",l),s.setAttribute("download",`${t.visualization.title||"table"}.csv`),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}return(a,o)=>(Ae(),ir("div",CQ,[Ze("div",TQ,[Ze("div",kQ,[e.visualization.title?(Ae(),ir("div",AQ,Ea(e.visualization.title),1)):Mo("",!0),e.visualization.description?(Ae(),ir("div",MQ,Ea(e.visualization.description),1)):Mo("",!0)]),Ze("div",{class:"export-buttons"},[Ze("button",{onClick:i,class:"export-btn",title:"Copy to clipboard"}," 📋 "),Ze("button",{onClick:n,class:"export-btn",title:"Download as CSV"}," ⬇️ CSV ")])]),Ze("div",LQ,[e.visualization.table?(Ae(),ir("table",DQ,[Ze("thead",null,[Ze("tr",null,[(Ae(!0),ir(Lr,null,bh(e.visualization.table.headers,(s,l)=>(Ae(),ir("th",{key:l},Ea(s),1))),128))])]),Ze("tbody",null,[(Ae(!0),ir(Lr,null,bh(e.visualization.table.rows,(s,l)=>(Ae(),ir("tr",{key:l},[(Ae(!0),ir(Lr,null,bh(s,(c,u)=>(Ae(),ir("td",{key:u},Ea(c),1))),128))]))),128))])])):Mo("",!0)])]))}}),IQ=Uf(EQ,[["__scopeId","data-v-d1cde9da"]]),PQ="modulepreload",BQ=function(e){return"/"+e},iM={},$e=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){let l=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=o?.nonce||o?.getAttribute("nonce");n=l(r.map(c=>{if(c=BQ(c),c in iM)return;iM[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":PQ,u||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};var nM={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Xp={exports:{}},OQ=Xp.exports,aM;function RQ(){return aM||(aM=1,(function(e,t){(function(r,i){e.exports=i()})(OQ,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",h="month",d="quarter",f="year",p="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var z=["th","st","nd","rd"],H=F%100;return"["+F+(z[(H-20)%10]||z[H]||z[0])+"]"}},w=function(F,z,H){var U=String(F);return!U||U.length>=z?F:""+Array(z+1-U.length).join(H)+F},S={s:w,z:function(F){var z=-F.utcOffset(),H=Math.abs(z),U=Math.floor(H/60),q=H%60;return(z<=0?"+":"-")+w(U,2,"0")+":"+w(q,2,"0")},m:function F(z,H){if(z.date()<H.date())return-F(H,z);var U=12*(H.year()-z.year())+(H.month()-z.month()),q=z.clone().add(U,h),K=H-q<0,et=z.clone().add(U+(K?-1:1),h);return+(-(U+(H-q)/(K?q-et:et-q))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:h,y:f,w:u,d:c,D:p,h:l,m:s,s:o,ms:a,Q:d}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},k="en",M={};M[k]=b;var T="$isDayjsObject",I=function(F){return F instanceof $||!(!F||!F[T])},B=function F(z,H,U){var q;if(!z)return k;if(typeof z=="string"){var K=z.toLowerCase();M[K]&&(q=K),H&&(M[K]=H,q=K);var et=z.split("-");if(!q&&et.length>1)return F(et[0])}else{var Q=z.name;M[Q]=z,q=Q}return!U&&q&&(k=q),q||!U&&k},R=function(F,z){if(I(F))return F.clone();var H=typeof z=="object"?z:{};return H.date=F,H.args=arguments,new $(H)},D=S;D.l=B,D.i=I,D.w=function(F,z){return R(F,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var $=(function(){function F(H){this.$L=B(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[T]=!0}var z=F.prototype;return z.parse=function(H){this.$d=(function(U){var q=U.date,K=U.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var et=q.match(v);if(et){var Q=et[2]-1||0,it=(et[7]||"0").substring(0,3);return K?new Date(Date.UTC(et[1],Q,et[3]||1,et[4]||0,et[5]||0,et[6]||0,it)):new Date(et[1],Q,et[3]||1,et[4]||0,et[5]||0,et[6]||0,it)}}return new Date(q)})(H),this.init()},z.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function(H,U){var q=R(H);return this.startOf(U)<=q&&q<=this.endOf(U)},z.isAfter=function(H,U){return R(H)<this.startOf(U)},z.isBefore=function(H,U){return this.endOf(U)<R(H)},z.$g=function(H,U,q){return D.u(H)?this[U]:this.set(q,H)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(H,U){var q=this,K=!!D.u(U)||U,et=D.p(H),Q=function(bt,qt){var Pt=D.w(q.$u?Date.UTC(q.$y,qt,bt):new Date(q.$y,qt,bt),q);return K?Pt:Pt.endOf(c)},it=function(bt,qt){return D.w(q.toDate()[bt].apply(q.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(qt)),q)},at=this.$W,Ct=this.$M,xt=this.$D,Zt="set"+(this.$u?"UTC":"");switch(et){case f:return K?Q(1,0):Q(31,11);case h:return K?Q(1,Ct):Q(0,Ct+1);case u:var ae=this.$locale().weekStart||0,de=(at<ae?at+7:at)-ae;return Q(K?xt-de:xt+(6-de),Ct);case c:case p:return it(Zt+"Hours",0);case l:return it(Zt+"Minutes",1);case s:return it(Zt+"Seconds",2);case o:return it(Zt+"Milliseconds",3);default:return this.clone()}},z.endOf=function(H){return this.startOf(H,!1)},z.$set=function(H,U){var q,K=D.p(H),et="set"+(this.$u?"UTC":""),Q=(q={},q[c]=et+"Date",q[p]=et+"Date",q[h]=et+"Month",q[f]=et+"FullYear",q[l]=et+"Hours",q[s]=et+"Minutes",q[o]=et+"Seconds",q[a]=et+"Milliseconds",q)[K],it=K===c?this.$D+(U-this.$W):U;if(K===h||K===f){var at=this.clone().set(p,1);at.$d[Q](it),at.init(),this.$d=at.set(p,Math.min(this.$D,at.daysInMonth())).$d}else Q&&this.$d[Q](it);return this.init(),this},z.set=function(H,U){return this.clone().$set(H,U)},z.get=function(H){return this[D.p(H)]()},z.add=function(H,U){var q,K=this;H=Number(H);var et=D.p(U),Q=function(Ct){var xt=R(K);return D.w(xt.date(xt.date()+Math.round(Ct*H)),K)};if(et===h)return this.set(h,this.$M+H);if(et===f)return this.set(f,this.$y+H);if(et===c)return Q(1);if(et===u)return Q(7);var it=(q={},q[s]=i,q[l]=n,q[o]=r,q)[et]||1,at=this.$d.getTime()+H*it;return D.w(at,this)},z.subtract=function(H,U){return this.add(-1*H,U)},z.format=function(H){var U=this,q=this.$locale();if(!this.isValid())return q.invalidDate||g;var K=H||"YYYY-MM-DDTHH:mm:ssZ",et=D.z(this),Q=this.$H,it=this.$m,at=this.$M,Ct=q.weekdays,xt=q.months,Zt=q.meridiem,ae=function(qt,Pt,W,X){return qt&&(qt[Pt]||qt(U,K))||W[Pt].slice(0,X)},de=function(qt){return D.s(Q%12||12,qt,"0")},bt=Zt||function(qt,Pt,W){var X=qt<12?"AM":"PM";return W?X.toLowerCase():X};return K.replace(m,(function(qt,Pt){return Pt||(function(W){switch(W){case"YY":return String(U.$y).slice(-2);case"YYYY":return D.s(U.$y,4,"0");case"M":return at+1;case"MM":return D.s(at+1,2,"0");case"MMM":return ae(q.monthsShort,at,xt,3);case"MMMM":return ae(xt,at);case"D":return U.$D;case"DD":return D.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return ae(q.weekdaysMin,U.$W,Ct,2);case"ddd":return ae(q.weekdaysShort,U.$W,Ct,3);case"dddd":return Ct[U.$W];case"H":return String(Q);case"HH":return D.s(Q,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return bt(Q,it,!0);case"A":return bt(Q,it,!1);case"m":return String(it);case"mm":return D.s(it,2,"0");case"s":return String(U.$s);case"ss":return D.s(U.$s,2,"0");case"SSS":return D.s(U.$ms,3,"0");case"Z":return et}return null})(qt)||et.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(H,U,q){var K,et=this,Q=D.p(U),it=R(H),at=(it.utcOffset()-this.utcOffset())*i,Ct=this-it,xt=function(){return D.m(et,it)};switch(Q){case f:K=xt()/12;break;case h:K=xt();break;case d:K=xt()/3;break;case u:K=(Ct-at)/6048e5;break;case c:K=(Ct-at)/864e5;break;case l:K=Ct/n;break;case s:K=Ct/i;break;case o:K=Ct/r;break;default:K=Ct}return q?K:D.a(K)},z.daysInMonth=function(){return this.endOf(h).$D},z.$locale=function(){return M[this.$L]},z.locale=function(H,U){if(!H)return this.$L;var q=this.clone(),K=B(H,U,!0);return K&&(q.$L=K),q},z.clone=function(){return D.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},F})(),O=$.prototype;return R.prototype=O,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",h],["$y",f],["$D",p]].forEach((function(F){O[F[1]]=function(z){return this.$g(z,F[0],F[1])}})),R.extend=function(F,z){return F.$i||(F(z,$,R),F.$i=!0),R},R.locale=B,R.isDayjs=I,R.unix=function(F){return R(1e3*F)},R.en=M[k],R.Ls=M,R.p={},R}))})(Xp)),Xp.exports}var FQ=RQ();const $Q=lE(FQ);var LO=Object.defineProperty,A=(e,t)=>LO(e,"name",{value:t,configurable:!0}),NQ=(e,t)=>{for(var r in t)LO(e,r,{get:t[r],enumerable:!0})},wa={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ht={trace:A((...e)=>{},"trace"),debug:A((...e)=>{},"debug"),info:A((...e)=>{},"info"),warn:A((...e)=>{},"warn"),error:A((...e)=>{},"error"),fatal:A((...e)=>{},"fatal")},Nw=A(function(e="fatal"){let t=wa.fatal;typeof e=="string"?e.toLowerCase()in wa&&(t=wa[e]):typeof e=="number"&&(t=e),ht.trace=()=>{},ht.debug=()=>{},ht.info=()=>{},ht.warn=()=>{},ht.error=()=>{},ht.fatal=()=>{},t<=wa.fatal&&(ht.fatal=console.error?console.error.bind(console,Ui("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ui("FATAL"))),t<=wa.error&&(ht.error=console.error?console.error.bind(console,Ui("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ui("ERROR"))),t<=wa.warn&&(ht.warn=console.warn?console.warn.bind(console,Ui("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ui("WARN"))),t<=wa.info&&(ht.info=console.info?console.info.bind(console,Ui("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ui("INFO"))),t<=wa.debug&&(ht.debug=console.debug?console.debug.bind(console,Ui("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ui("DEBUG"))),t<=wa.trace&&(ht.trace=console.debug?console.debug.bind(console,Ui("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ui("TRACE")))},"setLogLevel"),Ui=A(e=>`%c${$Q().format("ss.SSS")} : ${e} : `,"format");const Zp={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;switch(i){case"r":return Zp.hue2rgb(a,n,e+1/3)*255;case"g":return Zp.hue2rgb(a,n,e)*255;case"b":return Zp.hue2rgb(a,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),a=Math.min(e,t,r),o=(n+a)/2;if(i==="l")return o*100;if(n===a)return 0;const s=n-a,l=o>.5?s/(2-n-a):s/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/s+(t<r?6:0))*60;case t:return((r-e)/s+2)*60;case r:return((e-t)/s+4)*60;default:return-1}}},zQ={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},HQ={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},se={channel:Zp,lang:zQ,unit:HQ},vo={};for(let e=0;e<=255;e++)vo[e]=se.unit.dec2hex(e);const qr={ALL:0,RGB:1,HSL:2};class WQ{constructor(){this.type=qr.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=qr.ALL}is(t){return this.type===t}}class GQ{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new WQ}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=qr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=se.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=se.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=se.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=se.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=se.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=se.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(qr.HSL)&&r!==void 0?r:(this._ensureHSL(),se.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(qr.HSL)&&r!==void 0?r:(this._ensureHSL(),se.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(qr.HSL)&&r!==void 0?r:(this._ensureHSL(),se.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(qr.RGB)&&r!==void 0?r:(this._ensureRGB(),se.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(qr.RGB)&&r!==void 0?r:(this._ensureRGB(),se.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(qr.RGB)&&r!==void 0?r:(this._ensureRGB(),se.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(qr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(qr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(qr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(qr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(qr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(qr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Am=new GQ({r:0,g:0,b:0,a:0},"transparent"),_c={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(_c.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,o=n>4,s=o?1:17,l=o?8:4,c=a?0:-1,u=o?255:15;return Am.set({r:(i>>l*(c+3)&u)*s,g:(i>>l*(c+2)&u)*s,b:(i>>l*(c+1)&u)*s,a:a?(i&u)*s/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${vo[Math.round(t)]}${vo[Math.round(r)]}${vo[Math.round(i)]}${vo[Math.round(n*255)]}`:`#${vo[Math.round(t)]}${vo[Math.round(r)]}${vo[Math.round(i)]}`}},Ws={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Ws.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return se.channel.clamp.h(parseFloat(r)*.9);case"rad":return se.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return se.channel.clamp.h(parseFloat(r)*360)}}return se.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Ws.re);if(!r)return;const[,i,n,a,o,s]=r;return Am.set({h:Ws._hue2deg(i),s:se.channel.clamp.s(parseFloat(n)),l:se.channel.clamp.l(parseFloat(a)),a:o?se.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${se.lang.round(t)}, ${se.lang.round(r)}%, ${se.lang.round(i)}%, ${n})`:`hsl(${se.lang.round(t)}, ${se.lang.round(r)}%, ${se.lang.round(i)}%)`}},zh={colors:{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",cyanaqua:"#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",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=zh.colors[e];if(t)return _c.parse(t)},stringify:e=>{const t=_c.stringify(e);for(const r in zh.colors)if(zh.colors[r]===t)return r}},oh={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(oh.re);if(!r)return;const[,i,n,a,o,s,l,c,u]=r;return Am.set({r:se.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:se.channel.clamp.g(o?parseFloat(a)*2.55:parseFloat(a)),b:se.channel.clamp.b(l?parseFloat(s)*2.55:parseFloat(s)),a:c?se.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${se.lang.round(t)}, ${se.lang.round(r)}, ${se.lang.round(i)}, ${se.lang.round(n)})`:`rgb(${se.lang.round(t)}, ${se.lang.round(r)}, ${se.lang.round(i)})`}},ca={format:{keyword:zh,hex:_c,rgb:oh,rgba:oh,hsl:Ws,hsla:Ws},parse:e=>{if(typeof e!="string")return e;const t=_c.parse(e)||oh.parse(e)||Ws.parse(e)||zh.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(qr.HSL)||e.data.r===void 0?Ws.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?oh.stringify(e):_c.stringify(e)},DO=(e,t)=>{const r=ca.parse(e);for(const i in t)r[i]=se.channel.clamp[i](t[i]);return ca.stringify(r)},Hh=(e,t,r=0,i=1)=>{if(typeof e!="number")return DO(e,{a:t});const n=Am.set({r:se.channel.clamp.r(e),g:se.channel.clamp.g(t),b:se.channel.clamp.b(r),a:se.channel.clamp.a(i)});return ca.stringify(n)},qQ=e=>{const{r:t,g:r,b:i}=ca.parse(e),n=.2126*se.channel.toLinear(t)+.7152*se.channel.toLinear(r)+.0722*se.channel.toLinear(i);return se.lang.round(n)},VQ=e=>qQ(e)>=.5,Yf=e=>!VQ(e),EO=(e,t,r)=>{const i=ca.parse(e),n=i[t],a=se.channel.clamp[t](n+r);return n!==a&&(i[t]=a),ca.stringify(i)},Ft=(e,t)=>EO(e,"l",t),Kt=(e,t)=>EO(e,"l",-t),tt=(e,t)=>{const r=ca.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return DO(e,i)},UQ=(e,t,r=50)=>{const{r:i,g:n,b:a,a:o}=ca.parse(e),{r:s,g:l,b:c,a:u}=ca.parse(t),h=r/100,d=h*2-1,f=o-u,g=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,v=1-g,m=i*g+s*v,b=n*g+l*v,w=a*g+c*v,S=o*h+u*(1-h);return Hh(m,b,w,S)},Tt=(e,t=100)=>{const r=ca.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,UQ(r,e,t)};const{entries:IO,setPrototypeOf:oM,isFrozen:YQ,getPrototypeOf:jQ,getOwnPropertyDescriptor:XQ}=Object;let{freeze:mi,seal:ln,create:ax}=Object,{apply:ox,construct:sx}=typeof Reflect<"u"&&Reflect;mi||(mi=function(t){return t});ln||(ln=function(t){return t});ox||(ox=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});sx||(sx=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const vp=yi(Array.prototype.forEach),ZQ=yi(Array.prototype.lastIndexOf),sM=yi(Array.prototype.pop),Fu=yi(Array.prototype.push),KQ=yi(Array.prototype.splice),Kp=yi(String.prototype.toLowerCase),Z0=yi(String.prototype.toString),K0=yi(String.prototype.match),$u=yi(String.prototype.replace),QQ=yi(String.prototype.indexOf),JQ=yi(String.prototype.trim),_n=yi(Object.prototype.hasOwnProperty),ai=yi(RegExp.prototype.test),Nu=tJ(TypeError);function yi(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return ox(e,t,i)}}function tJ(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return sx(e,r)}}function ye(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Kp;oM&&oM(e,null);let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(YQ(t)||(t[i]=a),n=a)}e[n]=!0}return e}function eJ(e){for(let t=0;t<e.length;t++)_n(e,t)||(e[t]=null);return e}function Wn(e){const t=ax(null);for(const[r,i]of IO(e))_n(e,r)&&(Array.isArray(i)?t[r]=eJ(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Wn(i):t[r]=i);return t}function zu(e,t){for(;e!==null;){const i=XQ(e,t);if(i){if(i.get)return yi(i.get);if(typeof i.value=="function")return yi(i.value)}e=jQ(e)}function r(){return null}return r}const lM=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Q0=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),J0=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rJ=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),t_=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),iJ=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cM=mi(["#text"]),uM=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),e_=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hM=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nJ=ln(/\{\{[\w\W]*|[\w\W]*\}\}/gm),aJ=ln(/<%[\w\W]*|[\w\W]*%>/gm),oJ=ln(/\$\{[\w\W]*/gm),sJ=ln(/^data-[\-\w.\u00B7-\uFFFF]+$/),lJ=ln(/^aria-[\-\w]+$/),PO=ln(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cJ=ln(/^(?:\w+script|data):/i),uJ=ln(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),BO=ln(/^html$/i),hJ=ln(/^[a-z][.\w]*(-[.\w]+)+$/i);var fM=Object.freeze({__proto__:null,ARIA_ATTR:lJ,ATTR_WHITESPACE:uJ,CUSTOM_ELEMENT:hJ,DATA_ATTR:sJ,DOCTYPE_NAME:BO,ERB_EXPR:aJ,IS_ALLOWED_URI:PO,IS_SCRIPT_OR_DATA:cJ,MUSTACHE_EXPR:nJ,TMPLIT_EXPR:oJ});const Hu={element:1,text:3,progressingInstruction:7,comment:8,document:9},fJ=function(){return typeof window>"u"?null:window},dJ=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},dM=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function OO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fJ();const t=Gt=>OO(Gt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Hu.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=e,p=l.prototype,g=zu(p,"cloneNode"),v=zu(p,"remove"),m=zu(p,"nextSibling"),b=zu(p,"childNodes"),w=zu(p,"parentNode");if(typeof o=="function"){const Gt=r.createElement("template");Gt.content&&Gt.content.ownerDocument&&(r=Gt.content.ownerDocument)}let S,k="";const{implementation:M,createNodeIterator:T,createDocumentFragment:I,getElementsByTagName:B}=r,{importNode:R}=i;let D=dM();t.isSupported=typeof IO=="function"&&typeof w=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:O,TMPLIT_EXPR:F,DATA_ATTR:z,ARIA_ATTR:H,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:q,CUSTOM_ELEMENT:K}=fM;let{IS_ALLOWED_URI:et}=fM,Q=null;const it=ye({},[...lM,...Q0,...J0,...t_,...cM]);let at=null;const Ct=ye({},[...uM,...e_,...hM,...mp]);let xt=Object.seal(ax(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Zt=null,ae=null;const de=Object.seal(ax(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let bt=!0,qt=!0,Pt=!1,W=!0,X=!1,nt=!0,lt=!1,st=!1,ct=!1,yt=!1,vt=!1,gt=!1,ut=!0,Bt=!1;const rt="user-content-";let ft=!0,St=!1,At={},Vt=null;const Et=ye({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rt=null;const we=ye({},["audio","video","img","source","image","track"]);let Ee=null;const Ge=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",Hr="http://www.w3.org/2000/svg",ke="http://www.w3.org/1999/xhtml";let Ke=ke,Ei=!1,Wr=null;const rs=ye({},[yr,Hr,ke],Z0);let fn=ye({},["mi","mo","mn","ms","mtext"]),is=ye({},["annotation-xml"]);const iu=ye({},["title","style","font","a","script"]);let Ja=null;const nu=["application/xhtml+xml","text/html"],au="text/html";let ar=null,ga=null;const ty=r.createElement("form"),Ll=function(Z){return Z instanceof RegExp||Z instanceof Function},ns=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ga&&ga===Z)){if((!Z||typeof Z!="object")&&(Z={}),Z=Wn(Z),Ja=nu.indexOf(Z.PARSER_MEDIA_TYPE)===-1?au:Z.PARSER_MEDIA_TYPE,ar=Ja==="application/xhtml+xml"?Z0:Kp,Q=_n(Z,"ALLOWED_TAGS")?ye({},Z.ALLOWED_TAGS,ar):it,at=_n(Z,"ALLOWED_ATTR")?ye({},Z.ALLOWED_ATTR,ar):Ct,Wr=_n(Z,"ALLOWED_NAMESPACES")?ye({},Z.ALLOWED_NAMESPACES,Z0):rs,Ee=_n(Z,"ADD_URI_SAFE_ATTR")?ye(Wn(Ge),Z.ADD_URI_SAFE_ATTR,ar):Ge,Rt=_n(Z,"ADD_DATA_URI_TAGS")?ye(Wn(we),Z.ADD_DATA_URI_TAGS,ar):we,Vt=_n(Z,"FORBID_CONTENTS")?ye({},Z.FORBID_CONTENTS,ar):Et,Zt=_n(Z,"FORBID_TAGS")?ye({},Z.FORBID_TAGS,ar):Wn({}),ae=_n(Z,"FORBID_ATTR")?ye({},Z.FORBID_ATTR,ar):Wn({}),At=_n(Z,"USE_PROFILES")?Z.USE_PROFILES:!1,bt=Z.ALLOW_ARIA_ATTR!==!1,qt=Z.ALLOW_DATA_ATTR!==!1,Pt=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,W=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=Z.SAFE_FOR_TEMPLATES||!1,nt=Z.SAFE_FOR_XML!==!1,lt=Z.WHOLE_DOCUMENT||!1,yt=Z.RETURN_DOM||!1,vt=Z.RETURN_DOM_FRAGMENT||!1,gt=Z.RETURN_TRUSTED_TYPE||!1,ct=Z.FORCE_BODY||!1,ut=Z.SANITIZE_DOM!==!1,Bt=Z.SANITIZE_NAMED_PROPS||!1,ft=Z.KEEP_CONTENT!==!1,St=Z.IN_PLACE||!1,et=Z.ALLOWED_URI_REGEXP||PO,Ke=Z.NAMESPACE||ke,fn=Z.MATHML_TEXT_INTEGRATION_POINTS||fn,is=Z.HTML_INTEGRATION_POINTS||is,xt=Z.CUSTOM_ELEMENT_HANDLING||{},Z.CUSTOM_ELEMENT_HANDLING&&Ll(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xt.tagNameCheck=Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&Ll(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xt.attributeNameCheck=Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xt.allowCustomizedBuiltInElements=Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(qt=!1),vt&&(yt=!0),At&&(Q=ye({},cM),at=[],At.html===!0&&(ye(Q,lM),ye(at,uM)),At.svg===!0&&(ye(Q,Q0),ye(at,e_),ye(at,mp)),At.svgFilters===!0&&(ye(Q,J0),ye(at,e_),ye(at,mp)),At.mathMl===!0&&(ye(Q,t_),ye(at,hM),ye(at,mp))),Z.ADD_TAGS&&(typeof Z.ADD_TAGS=="function"?de.tagCheck=Z.ADD_TAGS:(Q===it&&(Q=Wn(Q)),ye(Q,Z.ADD_TAGS,ar))),Z.ADD_ATTR&&(typeof Z.ADD_ATTR=="function"?de.attributeCheck=Z.ADD_ATTR:(at===Ct&&(at=Wn(at)),ye(at,Z.ADD_ATTR,ar))),Z.ADD_URI_SAFE_ATTR&&ye(Ee,Z.ADD_URI_SAFE_ATTR,ar),Z.FORBID_CONTENTS&&(Vt===Et&&(Vt=Wn(Vt)),ye(Vt,Z.FORBID_CONTENTS,ar)),Z.ADD_FORBID_CONTENTS&&(Vt===Et&&(Vt=Wn(Vt)),ye(Vt,Z.ADD_FORBID_CONTENTS,ar)),ft&&(Q["#text"]=!0),lt&&ye(Q,["html","head","body"]),Q.table&&(ye(Q,["tbody"]),delete Zt.tbody),Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!="function")throw Nu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Nu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=Z.TRUSTED_TYPES_POLICY,k=S.createHTML("")}else S===void 0&&(S=dJ(f,n)),S!==null&&typeof k=="string"&&(k=S.createHTML(""));mi&&mi(Z),ga=Z}},id=ye({},[...Q0,...J0,...rJ]),nd=ye({},[...t_,...iJ]),ad=function(Z){let mt=w(Z);(!mt||!mt.tagName)&&(mt={namespaceURI:Ke,tagName:"template"});const Nt=Kp(Z.tagName),Ve=Kp(mt.tagName);return Wr[Z.namespaceURI]?Z.namespaceURI===Hr?mt.namespaceURI===ke?Nt==="svg":mt.namespaceURI===yr?Nt==="svg"&&(Ve==="annotation-xml"||fn[Ve]):!!id[Nt]:Z.namespaceURI===yr?mt.namespaceURI===ke?Nt==="math":mt.namespaceURI===Hr?Nt==="math"&&is[Ve]:!!nd[Nt]:Z.namespaceURI===ke?mt.namespaceURI===Hr&&!is[Ve]||mt.namespaceURI===yr&&!fn[Ve]?!1:!nd[Nt]&&(iu[Nt]||!id[Nt]):!!(Ja==="application/xhtml+xml"&&Wr[Z.namespaceURI]):!1},gr=function(Z){Fu(t.removed,{element:Z});try{w(Z).removeChild(Z)}catch{v(Z)}},ei=function(Z,mt){try{Fu(t.removed,{attribute:mt.getAttributeNode(Z),from:mt})}catch{Fu(t.removed,{attribute:null,from:mt})}if(mt.removeAttribute(Z),Z==="is")if(yt||vt)try{gr(mt)}catch{}else try{mt.setAttribute(Z,"")}catch{}},Gi=function(Z){let mt=null,Nt=null;if(ct)Z="<remove></remove>"+Z;else{const or=K0(Z,/^[\r\n\t ]+/);Nt=or&&or[0]}Ja==="application/xhtml+xml"&&Ke===ke&&(Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>");const Ve=S?S.createHTML(Z):Z;if(Ke===ke)try{mt=new d().parseFromString(Ve,Ja)}catch{}if(!mt||!mt.documentElement){mt=M.createDocument(Ke,"template",null);try{mt.documentElement.innerHTML=Ei?k:Ve}catch{}}const _r=mt.body||mt.documentElement;return Z&&Nt&&_r.insertBefore(r.createTextNode(Nt),_r.childNodes[0]||null),Ke===ke?B.call(mt,lt?"html":"body")[0]:lt?mt.documentElement:_r},od=function(Z){return T.call(Z.ownerDocument||Z,Z,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ou=function(Z){return Z instanceof h&&(typeof Z.nodeName!="string"||typeof Z.textContent!="string"||typeof Z.removeChild!="function"||!(Z.attributes instanceof u)||typeof Z.removeAttribute!="function"||typeof Z.setAttribute!="function"||typeof Z.namespaceURI!="string"||typeof Z.insertBefore!="function"||typeof Z.hasChildNodes!="function")},su=function(Z){return typeof s=="function"&&Z instanceof s};function kr(Gt,Z,mt){vp(Gt,Nt=>{Nt.call(t,Z,mt,ga)})}const re=function(Z){let mt=null;if(kr(D.beforeSanitizeElements,Z,null),ou(Z))return gr(Z),!0;const Nt=ar(Z.nodeName);if(kr(D.uponSanitizeElement,Z,{tagName:Nt,allowedTags:Q}),nt&&Z.hasChildNodes()&&!su(Z.firstElementChild)&&ai(/<[/\w!]/g,Z.innerHTML)&&ai(/<[/\w!]/g,Z.textContent)||Z.nodeType===Hu.progressingInstruction||nt&&Z.nodeType===Hu.comment&&ai(/<[/\w]/g,Z.data))return gr(Z),!0;if(!(de.tagCheck instanceof Function&&de.tagCheck(Nt))&&(!Q[Nt]||Zt[Nt])){if(!Zt[Nt]&&cu(Nt)&&(xt.tagNameCheck instanceof RegExp&&ai(xt.tagNameCheck,Nt)||xt.tagNameCheck instanceof Function&&xt.tagNameCheck(Nt)))return!1;if(ft&&!Vt[Nt]){const Ve=w(Z)||Z.parentNode,_r=b(Z)||Z.childNodes;if(_r&&Ve){const or=_r.length;for(let Er=or-1;Er>=0;--Er){const qi=g(_r[Er],!0);qi.__removalCount=(Z.__removalCount||0)+1,Ve.insertBefore(qi,m(Z))}}}return gr(Z),!0}return Z instanceof l&&!ad(Z)||(Nt==="noscript"||Nt==="noembed"||Nt==="noframes")&&ai(/<\/no(script|embed|frames)/i,Z.innerHTML)?(gr(Z),!0):(X&&Z.nodeType===Hu.text&&(mt=Z.textContent,vp([$,O,F],Ve=>{mt=$u(mt,Ve," ")}),Z.textContent!==mt&&(Fu(t.removed,{element:Z.cloneNode()}),Z.textContent=mt)),kr(D.afterSanitizeElements,Z,null),!1)},lu=function(Z,mt,Nt){if(ut&&(mt==="id"||mt==="name")&&(Nt in r||Nt in ty))return!1;if(!(qt&&!ae[mt]&&ai(z,mt))){if(!(bt&&ai(H,mt))){if(!(de.attributeCheck instanceof Function&&de.attributeCheck(mt,Z))){if(!at[mt]||ae[mt]){if(!(cu(Z)&&(xt.tagNameCheck instanceof RegExp&&ai(xt.tagNameCheck,Z)||xt.tagNameCheck instanceof Function&&xt.tagNameCheck(Z))&&(xt.attributeNameCheck instanceof RegExp&&ai(xt.attributeNameCheck,mt)||xt.attributeNameCheck instanceof Function&&xt.attributeNameCheck(mt,Z))||mt==="is"&&xt.allowCustomizedBuiltInElements&&(xt.tagNameCheck instanceof RegExp&&ai(xt.tagNameCheck,Nt)||xt.tagNameCheck instanceof Function&&xt.tagNameCheck(Nt))))return!1}else if(!Ee[mt]){if(!ai(et,$u(Nt,q,""))){if(!((mt==="src"||mt==="xlink:href"||mt==="href")&&Z!=="script"&&QQ(Nt,"data:")===0&&Rt[Z])){if(!(Pt&&!ai(U,$u(Nt,q,"")))){if(Nt)return!1}}}}}}}return!0},cu=function(Z){return Z!=="annotation-xml"&&K0(Z,K)},sd=function(Z){kr(D.beforeSanitizeAttributes,Z,null);const{attributes:mt}=Z;if(!mt||ou(Z))return;const Nt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:at,forceKeepAttr:void 0};let Ve=mt.length;for(;Ve--;){const _r=mt[Ve],{name:or,namespaceURI:Er,value:qi}=_r,dn=ar(or),Dl=qi;let ur=or==="value"?Dl:JQ(Dl);if(Nt.attrName=dn,Nt.attrValue=ur,Nt.keepAttr=!0,Nt.forceKeepAttr=void 0,kr(D.uponSanitizeAttribute,Z,Nt),ur=Nt.attrValue,Bt&&(dn==="id"||dn==="name")&&(ei(or,Z),ur=rt+ur),nt&&ai(/((--!?|])>)|<\/(style|title|textarea)/i,ur)){ei(or,Z);continue}if(dn==="attributename"&&K0(ur,"href")){ei(or,Z);continue}if(Nt.forceKeepAttr)continue;if(!Nt.keepAttr){ei(or,Z);continue}if(!W&&ai(/\/>/i,ur)){ei(or,Z);continue}X&&vp([$,O,F],ld=>{ur=$u(ur,ld," ")});const uu=ar(Z.nodeName);if(!lu(uu,dn,ur)){ei(or,Z);continue}if(S&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Er)switch(f.getAttributeType(uu,dn)){case"TrustedHTML":{ur=S.createHTML(ur);break}case"TrustedScriptURL":{ur=S.createScriptURL(ur);break}}if(ur!==Dl)try{Er?Z.setAttributeNS(Er,or,ur):Z.setAttribute(or,ur),ou(Z)?gr(Z):sM(t.removed)}catch{ei(or,Z)}}kr(D.afterSanitizeAttributes,Z,null)},ey=function Gt(Z){let mt=null;const Nt=od(Z);for(kr(D.beforeSanitizeShadowDOM,Z,null);mt=Nt.nextNode();)kr(D.uponSanitizeShadowNode,mt,null),re(mt),sd(mt),mt.content instanceof a&&Gt(mt.content);kr(D.afterSanitizeShadowDOM,Z,null)};return t.sanitize=function(Gt){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mt=null,Nt=null,Ve=null,_r=null;if(Ei=!Gt,Ei&&(Gt="<!-->"),typeof Gt!="string"&&!su(Gt))if(typeof Gt.toString=="function"){if(Gt=Gt.toString(),typeof Gt!="string")throw Nu("dirty is not a string, aborting")}else throw Nu("toString is not a function");if(!t.isSupported)return Gt;if(st||ns(Z),t.removed=[],typeof Gt=="string"&&(St=!1),St){if(Gt.nodeName){const qi=ar(Gt.nodeName);if(!Q[qi]||Zt[qi])throw Nu("root node is forbidden and cannot be sanitized in-place")}}else if(Gt instanceof s)mt=Gi("<!---->"),Nt=mt.ownerDocument.importNode(Gt,!0),Nt.nodeType===Hu.element&&Nt.nodeName==="BODY"||Nt.nodeName==="HTML"?mt=Nt:mt.appendChild(Nt);else{if(!yt&&!X&&!lt&&Gt.indexOf("<")===-1)return S&>?S.createHTML(Gt):Gt;if(mt=Gi(Gt),!mt)return yt?null:gt?k:""}mt&&ct&&gr(mt.firstChild);const or=od(St?Gt:mt);for(;Ve=or.nextNode();)re(Ve),sd(Ve),Ve.content instanceof a&&ey(Ve.content);if(St)return Gt;if(yt){if(vt)for(_r=I.call(mt.ownerDocument);mt.firstChild;)_r.appendChild(mt.firstChild);else _r=mt;return(at.shadowroot||at.shadowrootmode)&&(_r=R.call(i,_r,!0)),_r}let Er=lt?mt.outerHTML:mt.innerHTML;return lt&&Q["!doctype"]&&mt.ownerDocument&&mt.ownerDocument.doctype&&mt.ownerDocument.doctype.name&&ai(BO,mt.ownerDocument.doctype.name)&&(Er="<!DOCTYPE "+mt.ownerDocument.doctype.name+`>
|
|
24
|
+
`+Er),X&&vp([$,O,F],qi=>{Er=$u(Er,qi," ")}),S&>?S.createHTML(Er):Er},t.setConfig=function(){let Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ns(Gt),st=!0},t.clearConfig=function(){ga=null,st=!1},t.isValidAttribute=function(Gt,Z,mt){ga||ns({});const Nt=ar(Gt),Ve=ar(Z);return lu(Nt,Ve,mt)},t.addHook=function(Gt,Z){typeof Z=="function"&&Fu(D[Gt],Z)},t.removeHook=function(Gt,Z){if(Z!==void 0){const mt=ZQ(D[Gt],Z);return mt===-1?void 0:KQ(D[Gt],mt,1)[0]}return sM(D[Gt])},t.removeHooks=function(Gt){D[Gt]=[]},t.removeAllHooks=function(){D=dM()},t}var Nc=OO(),RO=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Wh=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,pJ=/\s*%%.*\n/gm,wc,FO=(wc=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},A(wc,"UnknownDiagramError"),wc),fl={},zw=A(function(e,t){e=e.replace(RO,"").replace(Wh,"").replace(pJ,`
|
|
25
|
+
`);for(const[r,{detector:i}]of Object.entries(fl))if(i(e,t))return r;throw new FO(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),lx=A((...e)=>{for(const{id:t,detector:r,loader:i}of e)$O(t,r,i)},"registerLazyLoadedDiagrams"),$O=A((e,t,r)=>{fl[e]&&ht.warn(`Detector with key ${e} already exists. Overwriting.`),fl[e]={detector:t,loader:r},ht.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),gJ=A(e=>fl[e].loader,"getDiagramLoader"),cx=A((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>cx(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(a=>{typeof t[a]=="object"&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=cx(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),xr=cx,Mm="#ffffff",Lm="#f2f2f2",fi=A((e,t)=>t?tt(e,{s:-40,l:10}):tt(e,{s:-40,l:-10}),"mkBorder"),Sc,vJ=(Sc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||tt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||tt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||fi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||fi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||fi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||fi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Tt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Tt(this.tertiaryColor),this.lineColor=this.lineColor||Tt(this.background),this.arrowheadColor=this.arrowheadColor||Tt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Kt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Tt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ft(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Kt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ft(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ft(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||tt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||tt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||tt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||tt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||tt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||tt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||tt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||tt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||tt(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Kt(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=Kt(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||Tt(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||Ft(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||Kt(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||tt(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||tt(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||tt(this.primaryColor,{h:64}),this.fillType3=this.fillType3||tt(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||tt(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||tt(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||tt(this.primaryColor,{h:128}),this.fillType7=this.fillType7||tt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||tt(this.primaryColor,{l:-10}),this.pie5=this.pie5||tt(this.secondaryColor,{l:-10}),this.pie6=this.pie6||tt(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||tt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||tt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||tt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||tt(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||tt(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||tt(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||tt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||tt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||tt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||tt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||tt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||tt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Yf(this.quadrant1Fill)?Ft(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||tt(this.primaryColor,{h:-30}),this.git4=this.git4||tt(this.primaryColor,{h:-60}),this.git5=this.git5||tt(this.primaryColor,{h:-90}),this.git6=this.git6||tt(this.primaryColor,{h:60}),this.git7=this.git7||tt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ft(this.git0,25),this.git1=Ft(this.git1,25),this.git2=Ft(this.git2,25),this.git3=Ft(this.git3,25),this.git4=Ft(this.git4,25),this.git5=Ft(this.git5,25),this.git6=Ft(this.git6,25),this.git7=Ft(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||Tt(this.git0),this.gitInv1=this.gitInv1||Tt(this.git1),this.gitInv2=this.gitInv2||Tt(this.git2),this.gitInv3=this.gitInv3||Tt(this.git3),this.gitInv4=this.gitInv4||Tt(this.git4),this.gitInv5=this.gitInv5||Tt(this.git5),this.gitInv6=this.gitInv6||Tt(this.git6),this.gitInv7=this.gitInv7||Tt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Lm}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A(Sc,"Theme"),Sc),mJ=A(e=>{const t=new vJ;return t.calculate(e),t},"getThemeVariables"),Cc,yJ=(Cc=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ft(this.primaryColor,16),this.tertiaryColor=tt(this.primaryColor,{h:-160}),this.primaryBorderColor=Tt(this.background),this.secondaryBorderColor=fi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Tt(this.primaryColor),this.secondaryTextColor=Tt(this.secondaryColor),this.tertiaryTextColor=Tt(this.tertiaryColor),this.lineColor=Tt(this.background),this.textColor=Tt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ft(Tt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Hh(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Kt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Kt(this.sectionBkgColor,10),this.taskBorderColor=Hh(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Hh(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ft(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Kt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Ft(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ft(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ft(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=tt(this.primaryColor,{h:64}),this.fillType3=tt(this.secondaryColor,{h:64}),this.fillType4=tt(this.primaryColor,{h:-64}),this.fillType5=tt(this.secondaryColor,{h:-64}),this.fillType6=tt(this.primaryColor,{h:128}),this.fillType7=tt(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||tt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||tt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||tt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||tt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||tt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||tt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||tt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||tt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||tt(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Tt(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Ft(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||tt(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||tt(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||tt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||tt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||tt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||tt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||tt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||tt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Yf(this.quadrant1Fill)?Ft(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ft(this.secondaryColor,20),this.git1=Ft(this.pie2||this.secondaryColor,20),this.git2=Ft(this.pie3||this.tertiaryColor,20),this.git3=Ft(this.pie4||tt(this.primaryColor,{h:-30}),20),this.git4=Ft(this.pie5||tt(this.primaryColor,{h:-60}),20),this.git5=Ft(this.pie6||tt(this.primaryColor,{h:-90}),10),this.git6=Ft(this.pie7||tt(this.primaryColor,{h:60}),10),this.git7=Ft(this.pie8||tt(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Tt(this.git0),this.gitInv1=this.gitInv1||Tt(this.git1),this.gitInv2=this.gitInv2||Tt(this.git2),this.gitInv3=this.gitInv3||Tt(this.git3),this.gitInv4=this.gitInv4||Tt(this.git4),this.gitInv5=this.gitInv5||Tt(this.git5),this.gitInv6=this.gitInv6||Tt(this.git6),this.gitInv7=this.gitInv7||Tt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Tt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Tt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ft(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ft(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A(Cc,"Theme"),Cc),_J=A(e=>{const t=new yJ;return t.calculate(e),t},"getThemeVariables"),Tc,bJ=(Tc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=tt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=tt(this.primaryColor,{h:-160}),this.primaryBorderColor=fi(this.primaryColor,this.darkMode),this.secondaryBorderColor=fi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Tt(this.primaryColor),this.secondaryTextColor=Tt(this.secondaryColor),this.tertiaryTextColor=Tt(this.tertiaryColor),this.lineColor=Tt(this.background),this.textColor=Tt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Hh(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||tt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||tt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||tt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||tt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||tt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||tt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||tt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||tt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||tt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Kt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Kt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||tt(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||tt(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||tt(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Tt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Tt(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Ft(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ft(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ft(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=tt(this.primaryColor,{h:64}),this.fillType3=tt(this.secondaryColor,{h:64}),this.fillType4=tt(this.primaryColor,{h:-64}),this.fillType5=tt(this.secondaryColor,{h:-64}),this.fillType6=tt(this.primaryColor,{h:128}),this.fillType7=tt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||tt(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||tt(this.primaryColor,{l:-10}),this.pie5=this.pie5||tt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||tt(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||tt(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||tt(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||tt(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||tt(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||tt(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||tt(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||tt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||tt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||tt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||tt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||tt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||tt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Yf(this.quadrant1Fill)?Ft(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||tt(this.primaryColor,{h:-30}),this.git4=this.git4||tt(this.primaryColor,{h:-60}),this.git5=this.git5||tt(this.primaryColor,{h:-90}),this.git6=this.git6||tt(this.primaryColor,{h:60}),this.git7=this.git7||tt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ft(this.git0,25),this.git1=Ft(this.git1,25),this.git2=Ft(this.git2,25),this.git3=Ft(this.git3,25),this.git4=Ft(this.git4,25),this.git5=Ft(this.git5,25),this.git6=Ft(this.git6,25),this.git7=Ft(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||Kt(Tt(this.git0),25),this.gitInv1=this.gitInv1||Tt(this.git1),this.gitInv2=this.gitInv2||Tt(this.git2),this.gitInv3=this.gitInv3||Tt(this.git3),this.gitInv4=this.gitInv4||Tt(this.git4),this.gitInv5=this.gitInv5||Tt(this.git5),this.gitInv6=this.gitInv6||Tt(this.git6),this.gitInv7=this.gitInv7||Tt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Tt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Tt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Lm}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A(Tc,"Theme"),Tc),xJ=A(e=>{const t=new bJ;return t.calculate(e),t},"getThemeVariables"),kc,wJ=(kc=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ft("#cde498",10),this.primaryBorderColor=fi(this.primaryColor,this.darkMode),this.secondaryBorderColor=fi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Tt(this.primaryColor),this.secondaryTextColor=Tt(this.secondaryColor),this.tertiaryTextColor=Tt(this.primaryColor),this.lineColor=Tt(this.background),this.textColor=Tt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=Kt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||tt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||tt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||tt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||tt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||tt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||tt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||tt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||tt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||tt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Kt(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Kt(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Kt(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||tt(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||tt(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||tt(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ft(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ft(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=tt(this.primaryColor,{h:64}),this.fillType3=tt(this.secondaryColor,{h:64}),this.fillType4=tt(this.primaryColor,{h:-64}),this.fillType5=tt(this.secondaryColor,{h:-64}),this.fillType6=tt(this.primaryColor,{h:128}),this.fillType7=tt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||tt(this.primaryColor,{l:-30}),this.pie5=this.pie5||tt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||tt(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||tt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||tt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||tt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||tt(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||tt(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||tt(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||tt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||tt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||tt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||tt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||tt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||tt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Yf(this.quadrant1Fill)?Ft(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||tt(this.primaryColor,{h:-30}),this.git4=this.git4||tt(this.primaryColor,{h:-60}),this.git5=this.git5||tt(this.primaryColor,{h:-90}),this.git6=this.git6||tt(this.primaryColor,{h:60}),this.git7=this.git7||tt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ft(this.git0,25),this.git1=Ft(this.git1,25),this.git2=Ft(this.git2,25),this.git3=Ft(this.git3,25),this.git4=Ft(this.git4,25),this.git5=Ft(this.git5,25),this.git6=Ft(this.git6,25),this.git7=Ft(this.git7,25)):(this.git0=Kt(this.git0,25),this.git1=Kt(this.git1,25),this.git2=Kt(this.git2,25),this.git3=Kt(this.git3,25),this.git4=Kt(this.git4,25),this.git5=Kt(this.git5,25),this.git6=Kt(this.git6,25),this.git7=Kt(this.git7,25)),this.gitInv0=this.gitInv0||Tt(this.git0),this.gitInv1=this.gitInv1||Tt(this.git1),this.gitInv2=this.gitInv2||Tt(this.git2),this.gitInv3=this.gitInv3||Tt(this.git3),this.gitInv4=this.gitInv4||Tt(this.git4),this.gitInv5=this.gitInv5||Tt(this.git5),this.gitInv6=this.gitInv6||Tt(this.git6),this.gitInv7=this.gitInv7||Tt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Tt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Tt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Lm}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A(kc,"Theme"),kc),SJ=A(e=>{const t=new wJ;return t.calculate(e),t},"getThemeVariables"),Ac,CJ=(Ac=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ft(this.contrast,55),this.background="#ffffff",this.tertiaryColor=tt(this.primaryColor,{h:-160}),this.primaryBorderColor=fi(this.primaryColor,this.darkMode),this.secondaryBorderColor=fi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=fi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Tt(this.primaryColor),this.secondaryTextColor=Tt(this.secondaryColor),this.tertiaryTextColor=Tt(this.tertiaryColor),this.lineColor=Tt(this.background),this.textColor=Tt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ft(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Ft(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ft(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Tt(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Ft(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Kt(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||tt(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||tt(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Ft(this.contrast,30),this.sectionBkgColor2=Ft(this.contrast,30),this.taskBorderColor=Kt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Ft(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Kt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=tt(this.primaryColor,{h:64}),this.fillType3=tt(this.secondaryColor,{h:64}),this.fillType4=tt(this.primaryColor,{h:-64}),this.fillType5=tt(this.secondaryColor,{h:-64}),this.fillType6=tt(this.primaryColor,{h:128}),this.fillType7=tt(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||tt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||tt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||tt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||tt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||tt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||tt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Yf(this.quadrant1Fill)?Ft(this.quadrant1Fill):Kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Kt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||tt(this.primaryColor,{h:-30}),this.git4=this.pie5||tt(this.primaryColor,{h:-60}),this.git5=this.pie6||tt(this.primaryColor,{h:-90}),this.git6=this.pie7||tt(this.primaryColor,{h:60}),this.git7=this.pie8||tt(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Tt(this.git0),this.gitInv1=this.gitInv1||Tt(this.git1),this.gitInv2=this.gitInv2||Tt(this.git2),this.gitInv3=this.gitInv3||Tt(this.git3),this.gitInv4=this.gitInv4||Tt(this.git4),this.gitInv5=this.gitInv5||Tt(this.git5),this.gitInv6=this.gitInv6||Tt(this.git6),this.gitInv7=this.gitInv7||Tt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Mm,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Lm}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},A(Ac,"Theme"),Ac),TJ=A(e=>{const t=new CJ;return t.calculate(e),t},"getThemeVariables"),Fa={base:{getThemeVariables:mJ},dark:{getThemeVariables:_J},default:{getThemeVariables:xJ},forest:{getThemeVariables:SJ},neutral:{getThemeVariables:TJ}},Hn={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},NO={...Hn,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Fa.default.getThemeVariables(),sequence:{...Hn.sequence,messageFont:A(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:A(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:A(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Hn.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Hn.c4,useWidth:void 0,personFont:A(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Hn.flowchart,inheritDir:!1},external_personFont:A(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:A(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:A(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:A(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:A(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:A(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:A(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:A(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:A(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:A(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:A(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:A(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:A(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:A(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:A(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:A(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:A(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:A(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:A(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:A(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:A(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Hn.pie,useWidth:984},xyChart:{...Hn.xyChart,useWidth:void 0},requirement:{...Hn.requirement,useWidth:void 0},packet:{...Hn.packet},radar:{...Hn.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},zO=A((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...zO(e[i],"")]:[...r,t+i],[]),"keyify"),kJ=new Set(zO(NO,"")),HO=NO,av=A(e=>{if(ht.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>av(t));return}for(const t of Object.keys(e)){if(ht.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!kJ.has(t)||e[t]==null){ht.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ht.debug("sanitizing object",t),av(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(ht.debug("sanitizing css option",t),e[t]=AJ(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}ht.debug("After sanitization",e)}},"sanitizeDirective"),AJ=A(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),zc=Object.freeze(HO),Ci=xr({},zc),ov,dl=[],Gh=xr({},zc),Dm=A((e,t)=>{let r=xr({},e),i={};for(const n of t)qO(n),i=xr(i,n);if(r=xr(r,i),i.theme&&i.theme in Fa){const n=xr({},ov),a=xr(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in Fa&&(r.themeVariables=Fa[r.theme].getThemeVariables(a))}return Gh=r,VO(Gh),Gh},"updateCurrentConfig"),MJ=A(e=>(Ci=xr({},zc),Ci=xr(Ci,e),e.theme&&Fa[e.theme]&&(Ci.themeVariables=Fa[e.theme].getThemeVariables(e.themeVariables)),Dm(Ci,dl),Ci),"setSiteConfig"),LJ=A(e=>{ov=xr({},e)},"saveConfigFromInitialize"),DJ=A(e=>(Ci=xr(Ci,e),Dm(Ci,dl),Ci),"updateSiteConfig"),WO=A(()=>xr({},Ci),"getSiteConfig"),GO=A(e=>(VO(e),xr(Gh,e),Zr()),"setConfig"),Zr=A(()=>xr({},Gh),"getConfig"),qO=A(e=>{e&&(["secure",...Ci.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ht.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&qO(e[t])}))},"sanitize"),EJ=A(e=>{av(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),dl.push(e),Dm(Ci,dl)},"addDirective"),sv=A((e=Ci)=>{dl=[],Dm(e,dl)},"reset"),IJ={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},pM={},PJ=A(e=>{pM[e]||(ht.warn(IJ[e]),pM[e]=!0)},"issueWarning"),VO=A(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&PJ("LAZY_LOAD_DEPRECATED")},"checkConfig"),Ydt=A(()=>{let e={};ov&&(e=xr(e,ov));for(const t of dl)e=xr(e,t);return e},"getUserDefinedConfig"),jf=/<br\s*\/?>/gi,BJ=A(e=>e?jO(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),OJ=(()=>{let e=!1;return()=>{e||(UO(),e=!0)}})();function UO(){const e="data-temp-href-target";Nc.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Nc.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}A(UO,"setupDompurifyHooks");var YO=A(e=>(OJ(),Nc.sanitize(e)),"removeScript"),gM=A((e,t)=>{if(t.flowchart?.htmlLabels!==!1){const r=t.securityLevel;r==="antiscript"||r==="strict"?e=YO(e):r!=="loose"&&(e=jO(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=NJ(e))}return e},"sanitizeMore"),cn=A((e,t)=>e&&(t.dompurifyConfig?e=Nc.sanitize(gM(e,t),t.dompurifyConfig).toString():e=Nc.sanitize(gM(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),RJ=A((e,t)=>typeof e=="string"?cn(e,t):e.flat().map(r=>cn(r,t)),"sanitizeTextOrArray"),FJ=A(e=>jf.test(e),"hasBreaks"),$J=A(e=>e.split(jf),"splitBreaks"),NJ=A(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),jO=A(e=>e.replace(jf,"#br#"),"breakToPlaceholder"),zJ=A(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Tr=A(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),HJ=A(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),WJ=A(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),vM=A(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const a=t[i-1],o=t[i+1];GJ(a,o)&&(n=a+","+o,i++,r.pop())}r.push(qJ(n))}return r.join("")},"parseGenericTypes"),ux=A((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),GJ=A((e,t)=>{const r=ux(e,"~"),i=ux(t,"~");return r===1&&i===1},"shouldCombineSets"),qJ=A(e=>{const t=ux(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),mM=A(()=>window.MathMLElement!==void 0,"isMathMLSupported"),hx=/\$\$(.*)\$\$/g,Hc=A(e=>(e.match(hx)?.length??0)>0,"hasKatex"),jdt=A(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Hw(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),VJ=A(async(e,t)=>{if(!Hc(e))return e;if(!(mM()||t.legacyMathML||t.forceLegacyMathML))return e.replace(hx,"MathML is unsupported in this environment.");{const{default:r}=await $e(async()=>{const{default:n}=await import("./katex-XbL3y5x-.js");return{default:n}},[]),i=t.forceLegacyMathML||!mM()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(jf).map(n=>Hc(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(hx,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Hw=A(async(e,t)=>cn(await VJ(e,t),t),"renderKatexSanitized"),Kc={getRows:BJ,sanitizeText:cn,sanitizeTextOrArray:RJ,hasBreaks:FJ,splitBreaks:$J,lineBreakRegex:jf,removeScript:YO,getUrl:zJ,evaluate:Tr,getMax:HJ,getMin:WJ},UJ=A(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),YJ=A(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),XO=A(function(e,t,r,i){const n=YJ(t,r,i);UJ(e,n)},"configureSvgSize"),jJ=A(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,o=n.height;ht.info(`SVG bounds: ${a}x${o}`,n);let s=0,l=0;ht.info(`Graph bounds: ${s}x${l}`,e),s=a+r*2,l=o+r*2,ht.info(`Calculated bounds: ${s}x${l}`),XO(t,l,s,i);const c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),Qp={},XJ=A((e,t,r)=>{let i="";return e in Qp&&Qp[e]?i=Qp[e](r):ht.warn(`No theme found for ${e}`),` & {
|
|
26
|
+
font-family: ${r.fontFamily};
|
|
27
|
+
font-size: ${r.fontSize};
|
|
28
|
+
fill: ${r.textColor}
|
|
29
|
+
}
|
|
30
|
+
@keyframes edge-animation-frame {
|
|
31
|
+
from {
|
|
32
|
+
stroke-dashoffset: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
@keyframes dash {
|
|
36
|
+
to {
|
|
37
|
+
stroke-dashoffset: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
& .edge-animation-slow {
|
|
41
|
+
stroke-dasharray: 9,5 !important;
|
|
42
|
+
stroke-dashoffset: 900;
|
|
43
|
+
animation: dash 50s linear infinite;
|
|
44
|
+
stroke-linecap: round;
|
|
45
|
+
}
|
|
46
|
+
& .edge-animation-fast {
|
|
47
|
+
stroke-dasharray: 9,5 !important;
|
|
48
|
+
stroke-dashoffset: 900;
|
|
49
|
+
animation: dash 20s linear infinite;
|
|
50
|
+
stroke-linecap: round;
|
|
51
|
+
}
|
|
52
|
+
/* Classes common for multiple diagrams */
|
|
53
|
+
|
|
54
|
+
& .error-icon {
|
|
55
|
+
fill: ${r.errorBkgColor};
|
|
56
|
+
}
|
|
57
|
+
& .error-text {
|
|
58
|
+
fill: ${r.errorTextColor};
|
|
59
|
+
stroke: ${r.errorTextColor};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& .edge-thickness-normal {
|
|
63
|
+
stroke-width: 1px;
|
|
64
|
+
}
|
|
65
|
+
& .edge-thickness-thick {
|
|
66
|
+
stroke-width: 3.5px
|
|
67
|
+
}
|
|
68
|
+
& .edge-pattern-solid {
|
|
69
|
+
stroke-dasharray: 0;
|
|
70
|
+
}
|
|
71
|
+
& .edge-thickness-invisible {
|
|
72
|
+
stroke-width: 0;
|
|
73
|
+
fill: none;
|
|
74
|
+
}
|
|
75
|
+
& .edge-pattern-dashed{
|
|
76
|
+
stroke-dasharray: 3;
|
|
77
|
+
}
|
|
78
|
+
.edge-pattern-dotted {
|
|
79
|
+
stroke-dasharray: 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
& .marker {
|
|
83
|
+
fill: ${r.lineColor};
|
|
84
|
+
stroke: ${r.lineColor};
|
|
85
|
+
}
|
|
86
|
+
& .marker.cross {
|
|
87
|
+
stroke: ${r.lineColor};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& svg {
|
|
91
|
+
font-family: ${r.fontFamily};
|
|
92
|
+
font-size: ${r.fontSize};
|
|
93
|
+
}
|
|
94
|
+
& p {
|
|
95
|
+
margin: 0
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
${i}
|
|
99
|
+
|
|
100
|
+
${t}
|
|
101
|
+
`},"getStyles"),ZJ=A((e,t)=>{t!==void 0&&(Qp[e]=t)},"addStylesForDiagram"),KJ=XJ,ZO={};NQ(ZO,{clear:()=>QJ,getAccDescription:()=>rtt,getAccTitle:()=>ttt,getDiagramTitle:()=>ntt,setAccDescription:()=>ett,setAccTitle:()=>JJ,setDiagramTitle:()=>itt});var Ww="",Gw="",qw="",Vw=A(e=>cn(e,Zr()),"sanitizeText"),QJ=A(()=>{Ww="",qw="",Gw=""},"clear"),JJ=A(e=>{Ww=Vw(e).replace(/^\s+/g,"")},"setAccTitle"),ttt=A(()=>Ww,"getAccTitle"),ett=A(e=>{qw=Vw(e).replace(/\n\s+/g,`
|
|
102
|
+
`)},"setAccDescription"),rtt=A(()=>qw,"getAccDescription"),itt=A(e=>{Gw=Vw(e)},"setDiagramTitle"),ntt=A(()=>Gw,"getDiagramTitle"),yM=ht,att=Nw,Be=Zr,Xdt=GO,Zdt=zc,Uw=A(e=>cn(e,Be()),"sanitizeText"),ott=jJ,stt=A(()=>ZO,"getCommonDb"),lv={},cv=A((e,t,r)=>{lv[e]&&yM.warn(`Diagram with id ${e} already registered. Overwriting.`),lv[e]=t,r&&$O(e,r),ZJ(e,t.styles),t.injectUtils?.(yM,att,Be,Uw,ott,stt(),()=>{})},"registerDiagram"),fx=A(e=>{if(e in lv)return lv[e];throw new ltt(e)},"getDiagram"),Mc,ltt=(Mc=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},A(Mc,"DiagramNotFoundError"),Mc),ctt={value:()=>{}};function KO(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Jp(r)}function Jp(e){this._=e}function utt(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Jp.prototype=KO.prototype={constructor:Jp,on:function(e,t){var r=this._,i=utt(e+"",r),n,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((n=(e=i[a]).type)&&(n=htt(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=_M(r[n],e.name,t);else if(t==null)for(n in r)r[n]=_M(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Jp(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function htt(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function _M(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=ctt,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var dx="http://www.w3.org/1999/xhtml";const bM={svg:"http://www.w3.org/2000/svg",xhtml:dx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Em(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),bM.hasOwnProperty(t)?{space:bM[t],local:e}:e}function ftt(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===dx&&t.documentElement.namespaceURI===dx?t.createElement(e):t.createElementNS(r,e)}}function dtt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function QO(e){var t=Em(e);return(t.local?dtt:ftt)(t)}function ptt(){}function Yw(e){return e==null?ptt:function(){return this.querySelector(e)}}function gtt(e){typeof e!="function"&&(e=Yw(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=new Array(o),l,c,u=0;u<o;++u)(l=a[u])&&(c=e.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new Hi(i,this._parents)}function vtt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function mtt(){return[]}function JO(e){return e==null?mtt:function(){return this.querySelectorAll(e)}}function ytt(e){return function(){return vtt(e.apply(this,arguments))}}function _tt(e){typeof e=="function"?e=ytt(e):e=JO(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&(i.push(e.call(l,l.__data__,c,o)),n.push(l));return new Hi(i,n)}function tR(e){return function(){return this.matches(e)}}function eR(e){return function(t){return t.matches(e)}}var btt=Array.prototype.find;function xtt(e){return function(){return btt.call(this.children,e)}}function wtt(){return this.firstElementChild}function Stt(e){return this.select(e==null?wtt:xtt(typeof e=="function"?e:eR(e)))}var Ctt=Array.prototype.filter;function Ttt(){return Array.from(this.children)}function ktt(e){return function(){return Ctt.call(this.children,e)}}function Att(e){return this.selectAll(e==null?Ttt:ktt(typeof e=="function"?e:eR(e)))}function Mtt(e){typeof e!="function"&&(e=tR(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Hi(i,this._parents)}function rR(e){return new Array(e.length)}function Ltt(){return new Hi(this._enter||this._groups.map(rR),this._parents)}function uv(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}uv.prototype={constructor:uv,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 Dtt(e){return function(){return e}}function Ett(e,t,r,i,n,a){for(var o=0,s,l=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],i[o]=s):r[o]=new uv(e,a[o]);for(;o<l;++o)(s=t[o])&&(n[o]=s)}function Itt(e,t,r,i,n,a,o){var s,l,c=new Map,u=t.length,h=a.length,d=new Array(u),f;for(s=0;s<u;++s)(l=t[s])&&(d[s]=f=o.call(l,l.__data__,s,t)+"",c.has(f)?n[s]=l:c.set(f,l));for(s=0;s<h;++s)f=o.call(e,a[s],s,a)+"",(l=c.get(f))?(i[s]=l,l.__data__=a[s],c.delete(f)):r[s]=new uv(e,a[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(d[s])===l&&(n[s]=l)}function Ptt(e){return e.__data__}function Btt(e,t){if(!arguments.length)return Array.from(this,Ptt);var r=t?Itt:Ett,i=this._parents,n=this._groups;typeof e!="function"&&(e=Dtt(e));for(var a=n.length,o=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var u=i[c],h=n[c],d=h.length,f=Ott(e.call(u,u&&u.__data__,c,i)),p=f.length,g=s[c]=new Array(p),v=o[c]=new Array(p),m=l[c]=new Array(d);r(u,h,g,v,m,f,t);for(var b=0,w=0,S,k;b<p;++b)if(S=g[b]){for(b>=w&&(w=b+1);!(k=v[w])&&++w<p;);S._next=k||null}}return o=new Hi(o,i),o._enter=s,o._exit=l,o}function Ott(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Rtt(){return new Hi(this._exit||this._groups.map(rR),this._parents)}function Ftt(e,t,r){var i=this.enter(),n=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?a.remove():r(a),i&&n?i.merge(n).order():n}function $tt(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,o=Math.min(n,a),s=new Array(n),l=0;l<o;++l)for(var c=r[l],u=i[l],h=c.length,d=s[l]=new Array(h),f,p=0;p<h;++p)(f=c[p]||u[p])&&(d[p]=f);for(;l<n;++l)s[l]=r[l];return new Hi(s,this._parents)}function Ntt(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],o;--n>=0;)(o=i[n])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function ztt(e){e||(e=Htt);function t(h,d){return h&&d?e(h.__data__,d.__data__):!h-!d}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var o=r[a],s=o.length,l=n[a]=new Array(s),c,u=0;u<s;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new Hi(n,this._parents).order()}function Htt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wtt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Gtt(){return Array.from(this)}function qtt(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var o=i[n];if(o)return o}return null}function Vtt(){let e=0;for(const t of this)++e;return e}function Utt(){return!this.node()}function Ytt(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,o=n.length,s;a<o;++a)(s=n[a])&&e.call(s,s.__data__,a,n);return this}function jtt(e){return function(){this.removeAttribute(e)}}function Xtt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ztt(e,t){return function(){this.setAttribute(e,t)}}function Ktt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Qtt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Jtt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function tet(e,t){var r=Em(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?Xtt:jtt:typeof t=="function"?r.local?Jtt:Qtt:r.local?Ktt:Ztt)(r,t))}function iR(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function eet(e){return function(){this.style.removeProperty(e)}}function ret(e,t,r){return function(){this.style.setProperty(e,t,r)}}function iet(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function net(e,t,r){return arguments.length>1?this.each((t==null?eet:typeof t=="function"?iet:ret)(e,t,r??"")):Wc(this.node(),e)}function Wc(e,t){return e.style.getPropertyValue(t)||iR(e).getComputedStyle(e,null).getPropertyValue(t)}function aet(e){return function(){delete this[e]}}function oet(e,t){return function(){this[e]=t}}function set(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function cet(e,t){return arguments.length>1?this.each((t==null?aet:typeof t=="function"?set:oet)(e,t)):this.node()[e]}function nR(e){return e.trim().split(/^|\s+/)}function jw(e){return e.classList||new aR(e)}function aR(e){this._node=e,this._names=nR(e.getAttribute("class")||"")}aR.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 oR(e,t){for(var r=jw(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function sR(e,t){for(var r=jw(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function uet(e){return function(){oR(this,e)}}function het(e){return function(){sR(this,e)}}function fet(e,t){return function(){(t.apply(this,arguments)?oR:sR)(this,e)}}function det(e,t){var r=nR(e+"");if(arguments.length<2){for(var i=jw(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?fet:t?uet:het)(r,t))}function pet(){this.textContent=""}function get(e){return function(){this.textContent=e}}function vet(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function met(e){return arguments.length?this.each(e==null?pet:(typeof e=="function"?vet:get)(e)):this.node().textContent}function yet(){this.innerHTML=""}function _et(e){return function(){this.innerHTML=e}}function bet(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function xet(e){return arguments.length?this.each(e==null?yet:(typeof e=="function"?bet:_et)(e)):this.node().innerHTML}function wet(){this.nextSibling&&this.parentNode.appendChild(this)}function Cet(){return this.each(wet)}function Tet(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ket(){return this.each(Tet)}function Aet(e){var t=typeof e=="function"?e:QO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Met(){return null}function Let(e,t){var r=typeof e=="function"?e:QO(e),i=t==null?Met:typeof t=="function"?t:Yw(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Det(){var e=this.parentNode;e&&e.removeChild(this)}function Eet(){return this.each(Det)}function Iet(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Pet(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bet(e){return this.select(e?Pet:Iet)}function Oet(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ret(e){return function(t){e.call(this,t,this.__data__)}}function Fet(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function $et(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function Net(e,t,r){return function(){var i=this.__on,n,a=Ret(t);if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function zet(e,t,r){var i=Fet(e+""),n,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(n=0,u=s[l];n<a;++n)if((o=i[n]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Net:$et,n=0;n<a;++n)this.each(s(i[n],t,r));return this}function lR(e,t,r){var i=iR(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function Het(e,t){return function(){return lR(this,e,t)}}function Wet(e,t){return function(){return lR(this,e,t.apply(this,arguments))}}function Get(e,t){return this.each((typeof t=="function"?Wet:Het)(e,t))}function*qet(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,o;n<a;++n)(o=i[n])&&(yield o)}var cR=[null];function Hi(e,t){this._groups=e,this._parents=t}function Xf(){return new Hi([[document.documentElement]],cR)}function Vet(){return this}Hi.prototype=Xf.prototype={constructor:Hi,select:gtt,selectAll:_tt,selectChild:Stt,selectChildren:Att,filter:Mtt,data:Btt,enter:Ltt,exit:Rtt,join:Ftt,merge:$tt,selection:Vet,order:Ntt,sort:ztt,call:Wtt,nodes:Gtt,node:qtt,size:Vtt,empty:Utt,each:Ytt,attr:tet,style:net,property:cet,classed:det,text:met,html:xet,raise:Cet,lower:ket,append:Aet,insert:Let,remove:Eet,clone:Bet,datum:Oet,on:zet,dispatch:Get,[Symbol.iterator]:qet};function Ce(e){return typeof e=="string"?new Hi([[document.querySelector(e)]],[document.documentElement]):new Hi([[e]],cR)}function Xw(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function uR(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Zf(){}var _f=.7,hv=1/_f,bc="\\s*([+-]?\\d+)\\s*",bf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uet=/^#([0-9a-f]{3,8})$/,Yet=new RegExp(`^rgb\\(${bc},${bc},${bc}\\)$`),jet=new RegExp(`^rgb\\(${sa},${sa},${sa}\\)$`),Xet=new RegExp(`^rgba\\(${bc},${bc},${bc},${bf}\\)$`),Zet=new RegExp(`^rgba\\(${sa},${sa},${sa},${bf}\\)$`),Ket=new RegExp(`^hsl\\(${bf},${sa},${sa}\\)$`),Qet=new RegExp(`^hsla\\(${bf},${sa},${sa},${bf}\\)$`),xM={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Xw(Zf,xf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wM,formatHex:wM,formatHex8:Jet,formatHsl:trt,formatRgb:SM,toString:SM});function wM(){return this.rgb().formatHex()}function Jet(){return this.rgb().formatHex8()}function trt(){return hR(this).formatHsl()}function SM(){return this.rgb().formatRgb()}function xf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Uet.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?CM(t):r===3?new Ai(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Yet.exec(e))?new Ai(t[1],t[2],t[3],1):(t=jet.exec(e))?new Ai(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xet.exec(e))?yp(t[1],t[2],t[3],t[4]):(t=Zet.exec(e))?yp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ket.exec(e))?AM(t[1],t[2]/100,t[3]/100,1):(t=Qet.exec(e))?AM(t[1],t[2]/100,t[3]/100,t[4]):xM.hasOwnProperty(e)?CM(xM[e]):e==="transparent"?new Ai(NaN,NaN,NaN,0):null}function CM(e){return new Ai(e>>16&255,e>>8&255,e&255,1)}function yp(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ai(e,t,r,i)}function ert(e){return e instanceof Zf||(e=xf(e)),e?(e=e.rgb(),new Ai(e.r,e.g,e.b,e.opacity)):new Ai}function px(e,t,r,i){return arguments.length===1?ert(e):new Ai(e,t,r,i??1)}function Ai(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Xw(Ai,px,uR(Zf,{brighter(e){return e=e==null?hv:Math.pow(hv,e),new Ai(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new Ai(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ai(nl(this.r),nl(this.g),nl(this.b),fv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:TM,formatHex:TM,formatHex8:rrt,formatRgb:kM,toString:kM}));function TM(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}`}function rrt(){return`#${Gs(this.r)}${Gs(this.g)}${Gs(this.b)}${Gs((isNaN(this.opacity)?1:this.opacity)*255)}`}function kM(){const e=fv(this.opacity);return`${e===1?"rgb(":"rgba("}${nl(this.r)}, ${nl(this.g)}, ${nl(this.b)}${e===1?")":`, ${e})`}`}function fv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gs(e){return e=nl(e),(e<16?"0":"")+e.toString(16)}function AM(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,r,i)}function hR(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Zf||(e=xf(e)),!e)return new wn;if(e instanceof wn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r<i)*6:r===a?o=(i-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+n:2-a-n,o*=60):s=l>0&&l<1?0:o,new wn(o,s,l,e.opacity)}function irt(e,t,r,i){return arguments.length===1?hR(e):new wn(e,t,r,i??1)}function wn(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Xw(wn,irt,uR(Zf,{brighter(e){return e=e==null?hv:Math.pow(hv,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new wn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Ai(r_(e>=240?e-240:e+120,n,i),r_(e,n,i),r_(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new wn(MM(this.h),_p(this.s),_p(this.l),fv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fv(this.opacity);return`${e===1?"hsl(":"hsla("}${MM(this.h)}, ${_p(this.s)*100}%, ${_p(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MM(e){return e=(e||0)%360,e<0?e+360:e}function _p(e){return Math.max(0,Math.min(1,e||0))}function r_(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Zw=e=>()=>e;function fR(e,t){return function(r){return e+r*t}}function nrt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function Kdt(e,t){var r=t-e;return r?fR(e,r>180||r<-180?r-360*Math.round(r/360):r):Zw(isNaN(e)?t:e)}function art(e){return(e=+e)==1?dR:function(t,r){return r-t?nrt(t,r,e):Zw(isNaN(t)?r:t)}}function dR(e,t){var r=t-e;return r?fR(e,r):Zw(isNaN(e)?t:e)}const LM=(function e(t){var r=art(t);function i(n,a){var o=r((n=px(n)).r,(a=px(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),c=dR(n.opacity,a.opacity);return function(u){return n.r=o(u),n.g=s(u),n.b=l(u),n.opacity=c(u),n+""}}return i.gamma=e,i})(1);function bo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var gx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i_=new RegExp(gx.source,"g");function ort(e){return function(){return e}}function srt(e){return function(t){return e(t)+""}}function lrt(e,t){var r=gx.lastIndex=i_.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=gx.exec(e))&&(n=i_.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:bo(i,n)})),r=i_.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?srt(l[0].x):ort(t):(t=l.length,function(c){for(var u=0,h;u<t;++u)s[(h=l[u]).i]=h.x(c);return s.join("")})}var DM=180/Math.PI,vx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pR(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*DM,skewX:Math.atan(l)*DM,scaleX:o,scaleY:s}}var bp;function crt(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?vx:pR(t.a,t.b,t.c,t.d,t.e,t.f)}function urt(e){return e==null||(bp||(bp=document.createElementNS("http://www.w3.org/2000/svg","g")),bp.setAttribute("transform",e),!(e=bp.transform.baseVal.consolidate()))?vx:(e=e.matrix,pR(e.a,e.b,e.c,e.d,e.e,e.f))}function gR(e,t,r,i){function n(c){return c.length?c.pop()+" ":""}function a(c,u,h,d,f,p){if(c!==h||u!==d){var g=f.push("translate(",null,t,null,r);p.push({i:g-4,x:bo(c,h)},{i:g-2,x:bo(u,d)})}else(h||d)&&f.push("translate("+h+t+d+r)}function o(c,u,h,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:h.push(n(h)+"rotate(",null,i)-2,x:bo(c,u)})):u&&h.push(n(h)+"rotate("+u+i)}function s(c,u,h,d){c!==u?d.push({i:h.push(n(h)+"skewX(",null,i)-2,x:bo(c,u)}):u&&h.push(n(h)+"skewX("+u+i)}function l(c,u,h,d,f,p){if(c!==h||u!==d){var g=f.push(n(f)+"scale(",null,",",null,")");p.push({i:g-4,x:bo(c,h)},{i:g-2,x:bo(u,d)})}else(h!==1||d!==1)&&f.push(n(f)+"scale("+h+","+d+")")}return function(c,u){var h=[],d=[];return c=e(c),u=e(u),a(c.translateX,c.translateY,u.translateX,u.translateY,h,d),o(c.rotate,u.rotate,h,d),s(c.skewX,u.skewX,h,d),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,d),c=u=null,function(f){for(var p=-1,g=d.length,v;++p<g;)h[(v=d[p]).i]=v.x(f);return h.join("")}}}var hrt=gR(crt,"px, ","px)","deg)"),frt=gR(urt,", ",")",")"),Gc=0,sh=0,Wu=0,vR=1e3,dv,lh,pv=0,pl=0,Im=0,wf=typeof performance=="object"&&performance.now?performance:Date,mR=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Kw(){return pl||(mR(drt),pl=wf.now()+Im)}function drt(){pl=0}function gv(){this._call=this._time=this._next=null}gv.prototype=yR.prototype={constructor:gv,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Kw():+r)+(t==null?0:+t),!this._next&&lh!==this&&(lh?lh._next=this:dv=this,lh=this),this._call=e,this._time=r,mx()},stop:function(){this._call&&(this._call=null,this._time=1/0,mx())}};function yR(e,t,r){var i=new gv;return i.restart(e,t,r),i}function prt(){Kw(),++Gc;for(var e=dv,t;e;)(t=pl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gc}function EM(){pl=(pv=wf.now())+Im,Gc=sh=0;try{prt()}finally{Gc=0,vrt(),pl=0}}function grt(){var e=wf.now(),t=e-pv;t>vR&&(Im-=t,pv=e)}function vrt(){for(var e,t=dv,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:dv=r);lh=e,mx(i)}function mx(e){if(!Gc){sh&&(sh=clearTimeout(sh));var t=e-pl;t>24?(e<1/0&&(sh=setTimeout(EM,e-wf.now()-Im)),Wu&&(Wu=clearInterval(Wu))):(Wu||(pv=wf.now(),Wu=setInterval(grt,vR)),Gc=1,mR(EM))}}function IM(e,t,r){var i=new gv;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var mrt=KO("start","end","cancel","interrupt"),yrt=[],_R=0,PM=1,yx=2,tg=3,BM=4,_x=5,eg=6;function Pm(e,t,r,i,n,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;_rt(e,r,{name:t,index:i,group:n,on:mrt,tween:yrt,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:_R})}function Qw(e,t){var r=Pn(e,t);if(r.state>_R)throw new Error("too late; already scheduled");return r}function da(e,t){var r=Pn(e,t);if(r.state>tg)throw new Error("too late; already running");return r}function Pn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function _rt(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=yR(a,0,r.time);function a(c){r.state=PM,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var u,h,d,f;if(r.state!==PM)return l();for(u in i)if(f=i[u],f.name===r.name){if(f.state===tg)return IM(o);f.state===BM?(f.state=eg,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[u]):+u<t&&(f.state=eg,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[u])}if(IM(function(){r.state===tg&&(r.state=BM,r.timer.restart(s,r.delay,r.time),s(c))}),r.state=yx,r.on.call("start",e,e.__data__,r.index,r.group),r.state===yx){for(r.state=tg,n=new Array(d=r.tween.length),u=0,h=-1;u<d;++u)(f=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++h]=f);n.length=h+1}}function s(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=_x,1),h=-1,d=n.length;++h<d;)n[h].call(e,u);r.state===_x&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=eg,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function brt(e,t){var r=e.__transition,i,n,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){a=!1;continue}n=i.state>yx&&i.state<_x,i.state=eg,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}a&&delete e.__transition}}function xrt(e){return this.each(function(){brt(this,e)})}function wrt(e,t){var r,i;return function(){var n=da(this,e),a=n.tween;if(a!==r){i=r=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function Srt(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=da(this,e),o=a.tween;if(o!==i){n=(i=o).slice();for(var s={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=s;break}l===c&&n.push(s)}a.tween=n}}function Crt(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Pn(this.node(),r).tween,n=0,a=i.length,o;n<a;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?wrt:Srt)(r,e,t))}function Jw(e,t,r){var i=e._id;return e.each(function(){var n=da(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Pn(n,i).value[t]}}function bR(e,t){var r;return(typeof t=="number"?bo:t instanceof xf?LM:(r=xf(t))?(t=r,LM):lrt)(e,t)}function Trt(e){return function(){this.removeAttribute(e)}}function krt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Art(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttribute(e);return o===n?null:o===i?a:a=t(i=o,r)}}function Mrt(e,t,r){var i,n=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?a:a=t(i=o,r)}}function Lrt(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function Drt(e,t,r){var i,n,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s)))}}function Ert(e,t){var r=Em(e),i=r==="transform"?frt:bR;return this.attrTween(e,typeof t=="function"?(r.local?Drt:Lrt)(r,i,Jw(this,"attr."+e,t)):t==null?(r.local?krt:Trt)(r):(r.local?Mrt:Art)(r,i,t))}function Irt(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Prt(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Brt(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Prt(e,a)),r}return n._value=t,n}function Ort(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Irt(e,a)),r}return n._value=t,n}function Rrt(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Em(e);return this.tween(r,(i.local?Brt:Ort)(i,t))}function Frt(e,t){return function(){Qw(this,e).delay=+t.apply(this,arguments)}}function $rt(e,t){return t=+t,function(){Qw(this,e).delay=t}}function Nrt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Frt:$rt)(t,e)):Pn(this.node(),t).delay}function zrt(e,t){return function(){da(this,e).duration=+t.apply(this,arguments)}}function Hrt(e,t){return t=+t,function(){da(this,e).duration=t}}function Wrt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?zrt:Hrt)(t,e)):Pn(this.node(),t).duration}function Grt(e,t){if(typeof t!="function")throw new Error;return function(){da(this,e).ease=t}}function qrt(e){var t=this._id;return arguments.length?this.each(Grt(t,e)):Pn(this.node(),t).ease}function Vrt(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;da(this,e).ease=r}}function Urt(e){if(typeof e!="function")throw new Error;return this.each(Vrt(this._id,e))}function Yrt(e){typeof e!="function"&&(e=tR(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],o=a.length,s=i[n]=[],l,c=0;c<o;++c)(l=a[c])&&e.call(l,l.__data__,c,a)&&s.push(l);return new Ua(i,this._parents,this._name,this._id)}function jrt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),o=new Array(i),s=0;s<a;++s)for(var l=t[s],c=r[s],u=l.length,h=o[s]=new Array(u),d,f=0;f<u;++f)(d=l[f]||c[f])&&(h[f]=d);for(;s<i;++s)o[s]=t[s];return new Ua(o,this._parents,this._name,this._id)}function Xrt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Zrt(e,t,r){var i,n,a=Xrt(t)?Qw:da;return function(){var o=a(this,e),s=o.on;s!==i&&(n=(i=s).copy()).on(t,r),o.on=n}}function Krt(e,t){var r=this._id;return arguments.length<2?Pn(this.node(),r).on.on(e):this.each(Zrt(r,e,t))}function Qrt(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Jrt(){return this.on("end.remove",Qrt(this._id))}function tit(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Yw(e));for(var i=this._groups,n=i.length,a=new Array(n),o=0;o<n;++o)for(var s=i[o],l=s.length,c=a[o]=new Array(l),u,h,d=0;d<l;++d)(u=s[d])&&(h=e.call(u,u.__data__,d,s))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h,Pm(c[d],t,r,d,c,Pn(u,r)));return new Ua(a,this._parents,t,r)}function eit(e){var t=this._name,r=this._id;typeof e!="function"&&(e=JO(e));for(var i=this._groups,n=i.length,a=[],o=[],s=0;s<n;++s)for(var l=i[s],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var d=e.call(u,u.__data__,h,l),f,p=Pn(u,r),g=0,v=d.length;g<v;++g)(f=d[g])&&Pm(f,t,r,g,d,p);a.push(d),o.push(u)}return new Ua(a,o,t,r)}var rit=Xf.prototype.constructor;function iit(){return new rit(this._groups,this._parents)}function nit(e,t){var r,i,n;return function(){var a=Wc(this,e),o=(this.style.removeProperty(e),Wc(this,e));return a===o?null:a===r&&o===i?n:n=t(r=a,i=o)}}function xR(e){return function(){this.style.removeProperty(e)}}function ait(e,t,r){var i,n=r+"",a;return function(){var o=Wc(this,e);return o===n?null:o===i?a:a=t(i=o,r)}}function oit(e,t,r){var i,n,a;return function(){var o=Wc(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Wc(this,e))),o===l?null:o===i&&l===n?a:(n=l,a=t(i=o,s))}}function sit(e,t){var r,i,n,a="style."+t,o="end."+a,s;return function(){var l=da(this,e),c=l.on,u=l.value[a]==null?s||(s=xR(t)):void 0;(c!==r||n!==u)&&(i=(r=c).copy()).on(o,n=u),l.on=i}}function lit(e,t,r){var i=(e+="")=="transform"?hrt:bR;return t==null?this.styleTween(e,nit(e,i)).on("end.style."+e,xR(e)):typeof t=="function"?this.styleTween(e,oit(e,i,Jw(this,"style."+e,t))).each(sit(this._id,e)):this.styleTween(e,ait(e,i,t),r).on("end.style."+e,null)}function cit(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function uit(e,t,r){var i,n;function a(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&cit(e,o,r)),i}return a._value=t,a}function hit(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,uit(e,t,r??""))}function fit(e){return function(){this.textContent=e}}function dit(e){return function(){var t=e(this);this.textContent=t??""}}function pit(e){return this.tween("text",typeof e=="function"?dit(Jw(this,"text",e)):fit(e==null?"":e+""))}function git(e){return function(t){this.textContent=e.call(this,t)}}function vit(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&git(n)),t}return i._value=e,i}function mit(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,vit(e))}function yit(){for(var e=this._name,t=this._id,r=wR(),i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)if(l=o[c]){var u=Pn(l,t);Pm(l,e,r,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ua(i,this._parents,e,r)}function _it(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--n===0&&a()}};r.each(function(){var c=da(this,i),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),n===0&&a()})}var bit=0;function Ua(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function wR(){return++bit}var Sa=Xf.prototype;Ua.prototype={constructor:Ua,select:tit,selectAll:eit,selectChild:Sa.selectChild,selectChildren:Sa.selectChildren,filter:Yrt,merge:jrt,selection:iit,transition:yit,call:Sa.call,nodes:Sa.nodes,node:Sa.node,size:Sa.size,empty:Sa.empty,each:Sa.each,on:Krt,attr:Ert,attrTween:Rrt,style:lit,styleTween:hit,text:pit,textTween:mit,remove:Jrt,tween:Crt,delay:Nrt,duration:Wrt,ease:qrt,easeVarying:Urt,end:_it,[Symbol.iterator]:Sa[Symbol.iterator]};function xit(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var wit={time:null,delay:0,duration:250,ease:xit};function Sit(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Cit(e){var t,r;e instanceof Ua?(t=e._id,e=e._name):(t=wR(),(r=wit).time=Kw(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var o=i[a],s=o.length,l,c=0;c<s;++c)(l=o[c])&&Pm(l,e,t,c,o,r||Sit(l,t));return new Ua(i,this._parents,e,t)}Xf.prototype.interrupt=xrt;Xf.prototype.transition=Cit;const bx=Math.PI,xx=2*bx,Bs=1e-6,Tit=xx-Bs;function SR(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function kit(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return SR;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class Ait{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?SR:kit(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,a,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=i-t,c=n-r,u=o-t,h=s-r,d=u*u+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Bs)if(!(Math.abs(h*l-c*u)>Bs)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let f=i-o,p=n-s,g=l*l+c*c,v=f*f+p*p,m=Math.sqrt(g),b=Math.sqrt(d),w=a*Math.tan((bx-Math.acos((g+d-v)/(2*m*b)))/2),S=w/b,k=w/m;Math.abs(S-1)>Bs&&this._append`L${t+S*u},${r+S*h}`,this._append`A${a},${a},0,0,${+(h*f>u*p)},${this._x1=t+k*l},${this._y1=r+k*c}`}}arc(t,r,i,n,a,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(n),l=i*Math.sin(n),c=t+s,u=r+l,h=1^o,d=o?n-a:a-n;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Bs||Math.abs(this._y1-u)>Bs)&&this._append`L${c},${u}`,i&&(d<0&&(d=d%xx+xx),d>Tit?this._append`A${i},${i},0,1,${h},${t-s},${r-l}A${i},${i},0,1,${h},${this._x1=c},${this._y1=u}`:d>Bs&&this._append`A${i},${i},0,${+(d>=bx)},${h},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function Zl(e){return function(){return e}}const Qdt=Math.abs,Jdt=Math.atan2,tpt=Math.cos,ept=Math.max,rpt=Math.min,ipt=Math.sin,npt=Math.sqrt,OM=1e-12,tS=Math.PI,RM=tS/2,apt=2*tS;function opt(e){return e>1?0:e<-1?tS:Math.acos(e)}function spt(e){return e>=1?RM:e<=-1?-RM:Math.asin(e)}function Mit(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new Ait(t)}function Lit(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function CR(e){this._context=e}CR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function vv(e){return new CR(e)}function Dit(e){return e[0]}function Eit(e){return e[1]}function Iit(e,t){var r=Zl(!0),i=null,n=vv,a=null,o=Mit(s);e=typeof e=="function"?e:e===void 0?Dit:Zl(e),t=typeof t=="function"?t:t===void 0?Eit:Zl(t);function s(l){var c,u=(l=Lit(l)).length,h,d=!1,f;for(i==null&&(a=n(f=o())),c=0;c<=u;++c)!(c<u&&r(h=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(h,c,l),+t(h,c,l));if(f)return a=null,f+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Zl(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Zl(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Zl(!!l),s):r},s.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),s):n},s.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),s):i},s}class TR{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function kR(e){return new TR(e,!0)}function AR(e){return new TR(e,!1)}function qo(){}function mv(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Bm(e){this._context=e}Bm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rg(e){return new Bm(e)}function MR(e){this._context=e}MR.prototype={areaStart:qo,areaEnd:qo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:mv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pit(e){return new MR(e)}function LR(e){this._context=e}LR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:mv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bit(e){return new LR(e)}function DR(e,t){this._basis=new Bm(e),this._beta=t}DR.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],a=e[r]-i,o=t[r]-n,s=-1,l;++s<=r;)l=s/r,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+l*a),this._beta*t[s]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Oit=(function e(t){function r(i){return t===1?new Bm(i):new DR(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function yv(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function eS(e,t){this._context=e,this._k=(1-t)/6}eS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:yv(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:yv(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ER=(function e(t){function r(i){return new eS(i,t)}return r.tension=function(i){return e(+i)},r})(0);function rS(e,t){this._context=e,this._k=(1-t)/6}rS.prototype={areaStart:qo,areaEnd:qo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:yv(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rit=(function e(t){function r(i){return new rS(i,t)}return r.tension=function(i){return e(+i)},r})(0);function iS(e,t){this._context=e,this._k=(1-t)/6}iS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yv(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Fit=(function e(t){function r(i){return new iS(i,t)}return r.tension=function(i){return e(+i)},r})(0);function nS(e,t,r){var i=e._x1,n=e._y1,a=e._x2,o=e._y2;if(e._l01_a>OM){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>OM){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/u}e._context.bezierCurveTo(i,n,a,o,e._x2,e._y2)}function IR(e,t){this._context=e,this._alpha=t}IR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nS(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const PR=(function e(t){function r(i){return t?new IR(i,t):new eS(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function BR(e,t){this._context=e,this._alpha=t}BR.prototype={areaStart:qo,areaEnd:qo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nS(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $it=(function e(t){function r(i){return t?new BR(i,t):new rS(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function OR(e,t){this._context=e,this._alpha=t}OR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nS(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Nit=(function e(t){function r(i){return t?new OR(i,t):new iS(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function RR(e){this._context=e}RR.prototype={areaStart:qo,areaEnd:qo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function zit(e){return new RR(e)}function FM(e){return e<0?-1:1}function $M(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),s=(a*n+o*i)/(i+n);return(FM(a)+FM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function NM(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function n_(e,t,r){var i=e._x0,n=e._y0,a=e._x1,o=e._y1,s=(a-i)/3;e._context.bezierCurveTo(i+s,n+s*t,a-s,o-s*r,a,o)}function _v(e){this._context=e}_v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:n_(this,this._t0,NM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,n_(this,NM(this,r=$M(this,e,t)),r);break;default:n_(this,this._t0,r=$M(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function FR(e){this._context=new $R(e)}(FR.prototype=Object.create(_v.prototype)).point=function(e,t){_v.prototype.point.call(this,t,e)};function $R(e){this._context=e}$R.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function NR(e){return new _v(e)}function zR(e){return new FR(e)}function HR(e){this._context=e}HR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=zM(e),n=zM(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function zM(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),o=new Array(r);for(n[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function WR(e){return new HR(e)}function Om(e,t){this._context=e,this._t=t}Om.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function GR(e){return new Om(e,.5)}function qR(e){return new Om(e,0)}function VR(e){return new Om(e,1)}function ch(e,t,r){this.k=e,this.x=t,this.y=r}ch.prototype={constructor:ch,scale:function(e){return e===1?this:new ch(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ch(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ch.prototype;var Hit=A(e=>{const{securityLevel:t}=Be();let r=Ce("body");if(t==="sandbox"){const a=Ce(`#i${e}`).node()?.contentDocument??document;r=Ce(a.body)}return r.select(`#${e}`)},"selectSvgElement");function aS(e){return typeof e>"u"||e===null}A(aS,"isNothing");function UR(e){return typeof e=="object"&&e!==null}A(UR,"isObject");function YR(e){return Array.isArray(e)?e:aS(e)?[]:[e]}A(YR,"toArray");function jR(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}A(jR,"extend");function XR(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}A(XR,"repeat");function ZR(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}A(ZR,"isNegativeZero");var Wit=aS,Git=UR,qit=YR,Vit=XR,Uit=ZR,Yit=jR,wr={isNothing:Wit,isObject:Git,toArray:qit,repeat:Vit,isNegativeZero:Uit,extend:Yit};function oS(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
103
|
+
|
|
104
|
+
`+e.mark.snippet),i+" "+r):i}A(oS,"formatError");function qc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=oS(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}A(qc,"YAMLException$1");qc.prototype=Object.create(Error.prototype);qc.prototype.constructor=qc;qc.prototype.toString=A(function(t){return this.name+": "+oS(this,t)},"toString");var ki=qc;function ig(e,t,r,i,n){var a="",o="",s=Math.floor(n/2)-1;return i-t>s&&(a=" ... ",t=i-s+a.length),r-i>s&&(o=" ...",r=i+s-o.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+a.length}}A(ig,"getLine");function ng(e,t){return wr.repeat(" ",t-e.length)+e}A(ng,"padStart");function KR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],a,o=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var s="",l,c,u=Math.min(e.line+t.linesAfter,n.length).toString().length,h=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)c=ig(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),h),s=wr.repeat(" ",t.indent)+ng((e.line-l+1).toString(),u)+" | "+c.str+`
|
|
105
|
+
`+s;for(c=ig(e.buffer,i[o],n[o],e.position,h),s+=wr.repeat(" ",t.indent)+ng((e.line+1).toString(),u)+" | "+c.str+`
|
|
106
|
+
`,s+=wr.repeat("-",t.indent+u+3+c.pos)+`^
|
|
107
|
+
`,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)c=ig(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),h),s+=wr.repeat(" ",t.indent)+ng((e.line+l+1).toString(),u)+" | "+c.str+`
|
|
108
|
+
`;return s.replace(/\n$/,"")}A(KR,"makeSnippet");var jit=KR,Xit=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Zit=["scalar","sequence","mapping"];function QR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}A(QR,"compileStyleAliases");function JR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Xit.indexOf(r)===-1)throw new ki('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=QR(t.styleAliases||null),Zit.indexOf(this.kind)===-1)throw new ki('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}A(JR,"Type$1");var Kr=JR;function Sx(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,o){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=o)}),r[n]=i}),r}A(Sx,"compileList");function tF(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(A(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}A(tF,"compileMap");function bv(e){return this.extend(e)}A(bv,"Schema$1");bv.prototype.extend=A(function(t){var r=[],i=[];if(t instanceof Kr)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new ki("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Kr))throw new ki("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new ki("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new ki("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof Kr))throw new ki("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(bv.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Sx(n,"implicit"),n.compiledExplicit=Sx(n,"explicit"),n.compiledTypeMap=tF(n.compiledImplicit,n.compiledExplicit),n},"extend");var Kit=bv,Qit=new Kr("tag:yaml.org,2002:str",{kind:"scalar",construct:A(function(e){return e!==null?e:""},"construct")}),Jit=new Kr("tag:yaml.org,2002:seq",{kind:"sequence",construct:A(function(e){return e!==null?e:[]},"construct")}),tnt=new Kr("tag:yaml.org,2002:map",{kind:"mapping",construct:A(function(e){return e!==null?e:{}},"construct")}),ent=new Kit({explicit:[Qit,Jit,tnt]});function eF(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}A(eF,"resolveYamlNull");function rF(){return null}A(rF,"constructYamlNull");function iF(e){return e===null}A(iF,"isNull");var rnt=new Kr("tag:yaml.org,2002:null",{kind:"scalar",resolve:eF,construct:rF,predicate:iF,represent:{canonical:A(function(){return"~"},"canonical"),lowercase:A(function(){return"null"},"lowercase"),uppercase:A(function(){return"NULL"},"uppercase"),camelcase:A(function(){return"Null"},"camelcase"),empty:A(function(){return""},"empty")},defaultStyle:"lowercase"});function nF(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}A(nF,"resolveYamlBoolean");function aF(e){return e==="true"||e==="True"||e==="TRUE"}A(aF,"constructYamlBoolean");function oF(e){return Object.prototype.toString.call(e)==="[object Boolean]"}A(oF,"isBoolean");var int=new Kr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nF,construct:aF,predicate:oF,represent:{lowercase:A(function(e){return e?"true":"false"},"lowercase"),uppercase:A(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:A(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function sF(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}A(sF,"isHexCode");function lF(e){return 48<=e&&e<=55}A(lF,"isOctCode");function cF(e){return 48<=e&&e<=57}A(cF,"isDecCode");function uF(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!sF(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!lF(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!cF(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}A(uF,"resolveYamlInteger");function hF(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}A(hF,"constructYamlInteger");function fF(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!wr.isNegativeZero(e)}A(fF,"isInteger");var nnt=new Kr("tag:yaml.org,2002:int",{kind:"scalar",resolve:uF,construct:hF,predicate:fF,represent:{binary:A(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:A(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:A(function(e){return e.toString(10)},"decimal"),hexadecimal:A(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ant=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dF(e){return!(e===null||!ant.test(e)||e[e.length-1]==="_")}A(dF,"resolveYamlFloat");function pF(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}A(pF,"constructYamlFloat");var ont=/^[-+]?[0-9]+e/;function gF(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(wr.isNegativeZero(e))return"-0.0";return r=e.toString(10),ont.test(r)?r.replace("e",".e"):r}A(gF,"representYamlFloat");function vF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||wr.isNegativeZero(e))}A(vF,"isFloat");var snt=new Kr("tag:yaml.org,2002:float",{kind:"scalar",resolve:dF,construct:pF,predicate:vF,represent:gF,defaultStyle:"lowercase"}),mF=ent.extend({implicit:[rnt,int,nnt,snt]}),lnt=mF,yF=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_F=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function bF(e){return e===null?!1:yF.exec(e)!==null||_F.exec(e)!==null}A(bF,"resolveYamlTimestamp");function xF(e){var t,r,i,n,a,o,s,l=0,c=null,u,h,d;if(t=yF.exec(e),t===null&&(t=_F.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],h=+(t[11]||0),c=(u*60+h)*6e4,t[9]==="-"&&(c=-c)),d=new Date(Date.UTC(r,i,n,a,o,s,l)),c&&d.setTime(d.getTime()-c),d}A(xF,"constructYamlTimestamp");function wF(e){return e.toISOString()}A(wF,"representYamlTimestamp");var cnt=new Kr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:bF,construct:xF,instanceOf:Date,represent:wF});function SF(e){return e==="<<"||e===null}A(SF,"resolveYamlMerge");var unt=new Kr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SF}),sS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
109
|
+
\r`;function CF(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=sS;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}A(CF,"resolveYamlBinary");function TF(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=sS,o=0,s=[];for(t=0;t<n;t++)t%4===0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):r===18?(s.push(o>>10&255),s.push(o>>2&255)):r===12&&s.push(o>>4&255),new Uint8Array(s)}A(TF,"constructYamlBinary");function kF(e){var t="",r=0,i,n,a=e.length,o=sS;for(i=0;i<a;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=a%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}A(kF,"representYamlBinary");function AF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}A(AF,"isBinary");var hnt=new Kr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:CF,construct:TF,predicate:AF,represent:kF}),fnt=Object.prototype.hasOwnProperty,dnt=Object.prototype.toString;function MF(e){if(e===null)return!0;var t=[],r,i,n,a,o,s=e;for(r=0,i=s.length;r<i;r+=1){if(n=s[r],o=!1,dnt.call(n)!=="[object Object]")return!1;for(a in n)if(fnt.call(n,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}A(MF,"resolveYamlOmap");function LF(e){return e!==null?e:[]}A(LF,"constructYamlOmap");var pnt=new Kr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:MF,construct:LF}),gnt=Object.prototype.toString;function DF(e){if(e===null)return!0;var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],gnt.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}A(DF,"resolveYamlPairs");function EF(e){if(e===null)return[];var t,r,i,n,a,o=e;for(a=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}A(EF,"constructYamlPairs");var vnt=new Kr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:DF,construct:EF}),mnt=Object.prototype.hasOwnProperty;function IF(e){if(e===null)return!0;var t,r=e;for(t in r)if(mnt.call(r,t)&&r[t]!==null)return!1;return!0}A(IF,"resolveYamlSet");function PF(e){return e!==null?e:{}}A(PF,"constructYamlSet");var ynt=new Kr("tag:yaml.org,2002:set",{kind:"mapping",resolve:IF,construct:PF}),BF=lnt.extend({implicit:[cnt,unt],explicit:[hnt,pnt,vnt,ynt]}),Vo=Object.prototype.hasOwnProperty,xv=1,OF=2,RF=3,wv=4,a_=1,_nt=2,HM=3,bnt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xnt=/[\x85\u2028\u2029]/,wnt=/[,\[\]\{\}]/,FF=/^(?:!|!!|![a-z\-]+!)$/i,$F=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cx(e){return Object.prototype.toString.call(e)}A(Cx,"_class");function kn(e){return e===10||e===13}A(kn,"is_EOL");function Po(e){return e===9||e===32}A(Po,"is_WHITE_SPACE");function di(e){return e===9||e===32||e===10||e===13}A(di,"is_WS_OR_EOL");function qs(e){return e===44||e===91||e===93||e===123||e===125}A(qs,"is_FLOW_INDICATOR");function NF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}A(NF,"fromHexCode");function zF(e){return e===120?2:e===117?4:e===85?8:0}A(zF,"escapedHexLen");function HF(e){return 48<=e&&e<=57?e-48:-1}A(HF,"fromDecimalCode");function Tx(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
110
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}A(Tx,"simpleEscapeSequence");function WF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}A(WF,"charFromCodepoint");var GF=new Array(256),qF=new Array(256);for(Is=0;Is<256;Is++)GF[Is]=Tx(Is)?1:0,qF[Is]=Tx(Is);var Is;function VF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||BF,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}A(VF,"State$1");function lS(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=jit(r),new ki(t,r)}A(lS,"generateError");function Xt(e,t){throw lS(e,t)}A(Xt,"throwError");function Sf(e,t){e.onWarning&&e.onWarning.call(null,lS(e,t))}A(Sf,"throwWarning");var WM={YAML:A(function(t,r,i){var n,a,o;t.version!==null&&Xt(t,"duplication of %YAML directive"),i.length!==1&&Xt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Xt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),o=parseInt(n[2],10),a!==1&&Xt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Sf(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:A(function(t,r,i){var n,a;i.length!==2&&Xt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],FF.test(n)||Xt(t,"ill-formed tag handle (first argument) of the TAG directive"),Vo.call(t.tagMap,n)&&Xt(t,'there is a previously declared suffix for "'+n+'" tag handle'),$F.test(a)||Xt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Xt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function $a(e,t,r,i){var n,a,o,s;if(t<r){if(s=e.input.slice(t,r),i)for(n=0,a=s.length;n<a;n+=1)o=s.charCodeAt(n),o===9||32<=o&&o<=1114111||Xt(e,"expected valid JSON character");else bnt.test(s)&&Xt(e,"the stream contains non-printable characters");e.result+=s}}A($a,"captureSegment");function kx(e,t,r,i){var n,a,o,s;for(wr.isObject(r)||Xt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,s=n.length;o<s;o+=1)a=n[o],Vo.call(t,a)||(t[a]=r[a],i[a]=!0)}A(kx,"mergeMappings");function Vs(e,t,r,i,n,a,o,s,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&Xt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Cx(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Cx(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)kx(e,t,a[c],r);else kx(e,t,a,r);else!e.json&&!Vo.call(r,n)&&Vo.call(t,n)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Xt(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,delete r[n];return t}A(Vs,"storeMappingPair");function Rm(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Xt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}A(Rm,"readLineBreak");function dr(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Po(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(kn(n))for(Rm(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Sf(e,"deficient indentation"),i}A(dr,"skipSeparationSpace");function Kf(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||di(r)))}A(Kf,"testDocumentSeparator");function Fm(e,t){t===1?e.result+=" ":t>1&&(e.result+=wr.repeat(`
|
|
111
|
+
`,t-1))}A(Fm,"writeFoldedLines");function UF(e,t,r){var i,n,a,o,s,l,c,u,h=e.kind,d=e.result,f;if(f=e.input.charCodeAt(e.position),di(f)||qs(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=e.input.charCodeAt(e.position+1),di(n)||r&&qs(n)))return!1;for(e.kind="scalar",e.result="",a=o=e.position,s=!1;f!==0;){if(f===58){if(n=e.input.charCodeAt(e.position+1),di(n)||r&&qs(n))break}else if(f===35){if(i=e.input.charCodeAt(e.position-1),di(i))break}else{if(e.position===e.lineStart&&Kf(e)||r&&qs(f))break;if(kn(f))if(l=e.line,c=e.lineStart,u=e.lineIndent,dr(e,!1,-1),e.lineIndent>=t){s=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&($a(e,a,o,!1),Fm(e,e.line-l),a=o=e.position,s=!1),Po(f)||(o=e.position+1),f=e.input.charCodeAt(++e.position)}return $a(e,a,o,!1),e.result?!0:(e.kind=h,e.result=d,!1)}A(UF,"readPlainScalar");function YF(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if($a(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else kn(r)?($a(e,i,n,!0),Fm(e,dr(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Kf(e)?Xt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Xt(e,"unexpected end of the stream within a single quoted scalar")}A(YF,"readSingleQuotedScalar");function jF(e,t){var r,i,n,a,o,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return $a(e,r,e.position,!0),e.position++,!0;if(s===92){if($a(e,r,e.position,!0),s=e.input.charCodeAt(++e.position),kn(s))dr(e,!1,t);else if(s<256&&GF[s])e.result+=qF[s],e.position++;else if((o=zF(s))>0){for(n=o,a=0;n>0;n--)s=e.input.charCodeAt(++e.position),(o=NF(s))>=0?a=(a<<4)+o:Xt(e,"expected hexadecimal character");e.result+=WF(a),e.position++}else Xt(e,"unknown escape sequence");r=i=e.position}else kn(s)?($a(e,r,i,!0),Fm(e,dr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Kf(e)?Xt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Xt(e,"unexpected end of the stream within a double quoted scalar")}A(jF,"readDoubleQuotedScalar");function XF(e,t){var r=!0,i,n,a,o=e.tag,s,l=e.anchor,c,u,h,d,f,p=Object.create(null),g,v,m,b;if(b=e.input.charCodeAt(e.position),b===91)u=93,f=!1,s=[];else if(b===123)u=125,f=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(dr(e,!0,t),b=e.input.charCodeAt(e.position),b===u)return e.position++,e.tag=o,e.anchor=l,e.kind=f?"mapping":"sequence",e.result=s,!0;r?b===44&&Xt(e,"expected the node content, but found ','"):Xt(e,"missed comma between flow collection entries"),v=g=m=null,h=d=!1,b===63&&(c=e.input.charCodeAt(e.position+1),di(c)&&(h=d=!0,e.position++,dr(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,gl(e,t,xv,!1,!0),v=e.tag,g=e.result,dr(e,!0,t),b=e.input.charCodeAt(e.position),(d||e.line===i)&&b===58&&(h=!0,b=e.input.charCodeAt(++e.position),dr(e,!0,t),gl(e,t,xv,!1,!0),m=e.result),f?Vs(e,s,p,v,g,m,i,n,a):h?s.push(Vs(e,null,p,v,g,m,i,n,a)):s.push(g),dr(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Xt(e,"unexpected end of the stream within a flow collection")}A(XF,"readFlowCollection");function ZF(e,t){var r,i,n=a_,a=!1,o=!1,s=t,l=0,c=!1,u,h;if(h=e.input.charCodeAt(e.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)a_===n?n=h===43?HM:_nt:Xt(e,"repeat of a chomping mode identifier");else if((u=HF(h))>=0)u===0?Xt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Xt(e,"repeat of an indentation width identifier"):(s=t+u-1,o=!0);else break;if(Po(h)){do h=e.input.charCodeAt(++e.position);while(Po(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!kn(h)&&h!==0)}for(;h!==0;){for(Rm(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),kn(h)){l++;continue}if(e.lineIndent<s){n===HM?e.result+=wr.repeat(`
|
|
112
|
+
`,a?1+l:l):n===a_&&a&&(e.result+=`
|
|
113
|
+
`);break}for(i?Po(h)?(c=!0,e.result+=wr.repeat(`
|
|
114
|
+
`,a?1+l:l)):c?(c=!1,e.result+=wr.repeat(`
|
|
115
|
+
`,l+1)):l===0?a&&(e.result+=" "):e.result+=wr.repeat(`
|
|
116
|
+
`,l):e.result+=wr.repeat(`
|
|
117
|
+
`,a?1+l:l),a=!0,o=!0,l=0,r=e.position;!kn(h)&&h!==0;)h=e.input.charCodeAt(++e.position);$a(e,r,e.position,!1)}return!0}A(ZF,"readBlockScalar");function Ax(e,t){var r,i=e.tag,n=e.anchor,a=[],o,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Xt(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!di(o))));){if(s=!0,e.position++,dr(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,gl(e,t,RF,!1,!0),a.push(e.result),dr(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Xt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}A(Ax,"readBlockSequence");function KF(e,t,r){var i,n,a,o,s,l,c=e.tag,u=e.anchor,h={},d=Object.create(null),f=null,p=null,g=null,v=!1,m=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),b=e.input.charCodeAt(e.position);b!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Xt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(b===63||b===58)&&di(i))b===63?(v&&(Vs(e,h,d,f,p,null,o,s,l),f=p=g=null),m=!0,v=!0,n=!0):v?(v=!1,n=!0):Xt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(o=e.line,s=e.lineStart,l=e.position,!gl(e,r,OF,!1,!0))break;if(e.line===a){for(b=e.input.charCodeAt(e.position);Po(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),di(b)||Xt(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Vs(e,h,d,f,p,null,o,s,l),f=p=g=null),m=!0,v=!1,n=!1,f=e.tag,p=e.result;else if(m)Xt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(m)Xt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(v&&(o=e.line,s=e.lineStart,l=e.position),gl(e,t,wv,!0,n)&&(v?p=e.result:g=e.result),v||(Vs(e,h,d,f,p,g,o,s,l),f=p=g=null),dr(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&b!==0)Xt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Vs(e,h,d,f,p,null,o,s,l),m&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=h),m}A(KF,"readBlockMapping");function QF(e){var t,r=!1,i=!1,n,a,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Xt(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Xt(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!di(o);)o===33&&(i?Xt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),FF.test(n)||Xt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),wnt.test(a)&&Xt(e,"tag suffix cannot contain flow indicator characters")}a&&!$F.test(a)&&Xt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Xt(e,"tag name is malformed: "+a)}return r?e.tag=a:Vo.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:Xt(e,'undeclared tag handle "'+n+'"'),!0}A(QF,"readTagProperty");function JF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Xt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!di(r)&&!qs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Xt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}A(JF,"readAnchorProperty");function t5(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!di(i)&&!qs(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Xt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Vo.call(e.anchorMap,r)||Xt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],dr(e,!0,-1),!0}A(t5,"readAlias");function gl(e,t,r,i,n){var a,o,s,l=1,c=!1,u=!1,h,d,f,p,g,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=wv===r||RF===r,i&&dr(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;QF(e)||JF(e);)dr(e,!0,-1)?(c=!0,s=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||n),(l===1||wv===r)&&(xv===r||OF===r?g=t:g=t+1,v=e.position-e.lineStart,l===1?s&&(Ax(e,v)||KF(e,v,g))||XF(e,g)?u=!0:(o&&ZF(e,g)||YF(e,g)||jF(e,g)?u=!0:t5(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&Xt(e,"alias node should not have any properties")):UF(e,g,xv===r)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=s&&Ax(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Xt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,d=e.implicitTypes.length;h<d;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Vo.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,f=e.typeMap.multi[e.kind||"fallback"],h=0,d=f.length;h<d;h+=1)if(e.tag.slice(0,f[h].tag.length)===f[h].tag){p=f[h];break}p||Xt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Xt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Xt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}A(gl,"composeNode");function e5(e){var t=e.position,r,i,n,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(dr(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!di(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&Xt(e,"directive name must not be less than one character in length");o!==0;){for(;Po(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!kn(o));break}if(kn(o))break;for(r=e.position;o!==0&&!di(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&Rm(e),Vo.call(WM,i)?WM[i](e,i,n):Sf(e,'unknown document directive "'+i+'"')}if(dr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,dr(e,!0,-1)):a&&Xt(e,"directives end mark is expected"),gl(e,e.lineIndent-1,wv,!1,!0),dr(e,!0,-1),e.checkLineBreaks&&xnt.test(e.input.slice(t,e.position))&&Sf(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Kf(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,dr(e,!0,-1));return}if(e.position<e.length-1)Xt(e,"end of the stream or a document separator is expected");else return}A(e5,"readDocument");function cS(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
118
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new VF(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Xt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)e5(r);return r.documents}A(cS,"loadDocuments");function Snt(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=cS(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}A(Snt,"loadAll$1");function r5(e,t){var r=cS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ki("expected a single document in the stream, but found more")}}A(r5,"load$1");var Cnt=r5,Tnt={load:Cnt},i5=Object.prototype.toString,n5=Object.prototype.hasOwnProperty,uS=65279,knt=9,Cf=10,Ant=13,Mnt=32,Lnt=33,Dnt=34,Mx=35,Ent=37,Int=38,Pnt=39,Bnt=42,a5=44,Ont=45,Sv=58,Rnt=61,Fnt=62,$nt=63,Nnt=64,o5=91,s5=93,znt=96,l5=123,Hnt=124,c5=125,ti={};ti[0]="\\0";ti[7]="\\a";ti[8]="\\b";ti[9]="\\t";ti[10]="\\n";ti[11]="\\v";ti[12]="\\f";ti[13]="\\r";ti[27]="\\e";ti[34]='\\"';ti[92]="\\\\";ti[133]="\\N";ti[160]="\\_";ti[8232]="\\L";ti[8233]="\\P";var Wnt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Gnt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function u5(e,t){var r,i,n,a,o,s,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)o=i[n],s=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&n5.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s;return r}A(u5,"compileStyleMap");function h5(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new ki("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+wr.repeat("0",i-t.length)+t}A(h5,"encodeHex");var qnt=1,Tf=2;function f5(e){this.schema=e.schema||BF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=wr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=u5(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Tf:qnt,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}A(f5,"State");function Lx(e,t){for(var r=wr.repeat(" ",t),i=0,n=-1,a="",o,s=e.length;i<s;)n=e.indexOf(`
|
|
119
|
+
`,i),n===-1?(o=e.slice(i),i=s):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
|
|
120
|
+
`&&(a+=r),a+=o;return a}A(Lx,"indentString");function Cv(e,t){return`
|
|
121
|
+
`+wr.repeat(" ",e.indent*t)}A(Cv,"generateNextLine");function d5(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}A(d5,"testImplicitResolving");function kf(e){return e===Mnt||e===knt}A(kf,"isWhitespace");function Vc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==uS||65536<=e&&e<=1114111}A(Vc,"isPrintable");function Dx(e){return Vc(e)&&e!==uS&&e!==Ant&&e!==Cf}A(Dx,"isNsCharOrWhitespace");function Ex(e,t,r){var i=Dx(e),n=i&&!kf(e);return(r?i:i&&e!==a5&&e!==o5&&e!==s5&&e!==l5&&e!==c5)&&e!==Mx&&!(t===Sv&&!n)||Dx(t)&&!kf(t)&&e===Mx||t===Sv&&n}A(Ex,"isPlainSafe");function p5(e){return Vc(e)&&e!==uS&&!kf(e)&&e!==Ont&&e!==$nt&&e!==Sv&&e!==a5&&e!==o5&&e!==s5&&e!==l5&&e!==c5&&e!==Mx&&e!==Int&&e!==Bnt&&e!==Lnt&&e!==Hnt&&e!==Rnt&&e!==Fnt&&e!==Pnt&&e!==Dnt&&e!==Ent&&e!==Nnt&&e!==znt}A(p5,"isPlainSafeFirst");function g5(e){return!kf(e)&&e!==Sv}A(g5,"isPlainSafeLast");function cc(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}A(cc,"codePointAt");function hS(e){var t=/^\n* /;return t.test(e)}A(hS,"needIndentIndicator");var v5=1,Ix=2,m5=3,y5=4,ec=5;function _5(e,t,r,i,n,a,o,s){var l,c=0,u=null,h=!1,d=!1,f=i!==-1,p=-1,g=p5(cc(e,0))&&g5(cc(e,e.length-1));if(t||o)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=cc(e,l),!Vc(c))return ec;g=g&&Ex(c,u,s),u=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=cc(e,l),c===Cf)h=!0,f&&(d=d||l-p-1>i&&e[p+1]!==" ",p=l);else if(!Vc(c))return ec;g=g&&Ex(c,u,s),u=c}d=d||f&&l-p-1>i&&e[p+1]!==" "}return!h&&!d?g&&!o&&!n(e)?v5:a===Tf?ec:Ix:r>9&&hS(e)?ec:o?a===Tf?ec:Ix:d?y5:m5}A(_5,"chooseScalarStyle");function b5(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===Tf?'""':"''";if(!e.noCompatMode&&(Wnt.indexOf(t)!==-1||Gnt.test(t)))return e.quotingType===Tf?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return d5(e,c)}switch(A(l,"testAmbiguity"),_5(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case v5:return t;case Ix:return"'"+t.replace(/'/g,"''")+"'";case m5:return"|"+Px(t,e.indent)+Bx(Lx(t,a));case y5:return">"+Px(t,e.indent)+Bx(Lx(x5(t,o),a));case ec:return'"'+w5(t)+'"';default:throw new ki("impossible error: invalid scalar style")}})()}A(b5,"writeScalar");function Px(e,t){var r=hS(e)?String(t):"",i=e[e.length-1]===`
|
|
122
|
+
`,n=i&&(e[e.length-2]===`
|
|
123
|
+
`||e===`
|
|
124
|
+
`),a=n?"+":i?"":"-";return r+a+`
|
|
125
|
+
`}A(Px,"blockHeader");function Bx(e){return e[e.length-1]===`
|
|
126
|
+
`?e.slice(0,-1):e}A(Bx,"dropEndingNewline");function x5(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var c=e.indexOf(`
|
|
127
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,Ox(e.slice(0,c),t)})(),n=e[0]===`
|
|
128
|
+
`||e[0]===" ",a,o;o=r.exec(e);){var s=o[1],l=o[2];a=l[0]===" ",i+=s+(!n&&!a&&l!==""?`
|
|
129
|
+
`:"")+Ox(l,t),n=a}return i}A(x5,"foldString");function Ox(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,o=0,s=0,l="";i=r.exec(e);)s=i.index,s-n>t&&(a=o>n?o:s,l+=`
|
|
130
|
+
`+e.slice(n,a),n=a+1),o=s;return l+=`
|
|
131
|
+
`,e.length-n>t&&o>n?l+=e.slice(n,o)+`
|
|
132
|
+
`+e.slice(o+1):l+=e.slice(n),l.slice(1)}A(Ox,"foldLine");function w5(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=cc(e,n),i=ti[r],!i&&Vc(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||h5(r);return t}A(w5,"escapeString");function S5(e,t,r){var i="",n=e.tag,a,o,s;for(a=0,o=r.length;a<o;a+=1)s=r[a],e.replacer&&(s=e.replacer.call(r,String(a),s)),(ua(e,t,s,!1,!1)||typeof s>"u"&&ua(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}A(S5,"writeFlowSequence");function Rx(e,t,r,i){var n="",a=e.tag,o,s,l;for(o=0,s=r.length;o<s;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(ua(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&ua(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Cv(e,t)),e.dump&&Cf===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}A(Rx,"writeBlockSequence");function C5(e,t,r){var i="",n=e.tag,a=Object.keys(r),o,s,l,c,u;for(o=0,s=a.length;o<s;o+=1)u="",i!==""&&(u+=", "),e.condenseFlow&&(u+='"'),l=a[o],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),ua(e,t,l,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ua(e,t,c,!1,!1)&&(u+=e.dump,i+=u));e.tag=n,e.dump="{"+i+"}"}A(C5,"writeFlowMapping");function T5(e,t,r,i){var n="",a=e.tag,o=Object.keys(r),s,l,c,u,h,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ki("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)d="",(!i||n!=="")&&(d+=Cv(e,t)),c=o[s],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),ua(e,t+1,c,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Cf===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,h&&(d+=Cv(e,t)),ua(e,t+1,u,!0,h)&&(e.dump&&Cf===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,n+=d));e.tag=a,e.dump=n||"{}"}A(T5,"writeBlockMapping");function Fx(e,t,r){var i,n,a,o,s,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,o=n.length;a<o;a+=1)if(s=n[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,i5.call(s.represent)==="[object Function]")i=s.represent(t,l);else if(n5.call(s.represent,l))i=s.represent[l](t,l);else throw new ki("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}A(Fx,"detectType");function ua(e,t,r,i,n,a,o){e.tag=null,e.dump=r,Fx(e,r,!1)||Fx(e,r,!0);var s=i5.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var u=s==="[object Object]"||s==="[object Array]",h,d;if(u&&(h=e.duplicates.indexOf(r),d=h!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(n=!1),d&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(u&&d&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")i&&Object.keys(e.dump).length!==0?(T5(e,t,e.dump,n),d&&(e.dump="&ref_"+h+e.dump)):(C5(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Rx(e,t-1,e.dump,n):Rx(e,t,e.dump,n),d&&(e.dump="&ref_"+h+e.dump)):(S5(e,t,e.dump),d&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&b5(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ki("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}A(ua,"writeNode");function k5(e,t){var r=[],i=[],n,a;for(Tv(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}A(k5,"getDuplicateReferences");function Tv(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)Tv(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Tv(e[i[n]],t,r)}A(Tv,"inspectNode");function Vnt(e,t){t=t||{};var r=new f5(t);r.noRefs||k5(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),ua(r,0,i,!0,!0)?r.dump+`
|
|
133
|
+
`:""}A(Vnt,"dump$1");function Unt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}A(Unt,"renamed");var Ynt=mF,jnt=Tnt.load;var Vr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},GM={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function uh(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Je(e),t=Je(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],o=n-r,s=a-i;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}A(uh,"calculateDeltaAndAngle");var Je=A(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Xnt=A(e=>({x:A(function(t,r,i){let n=0;const a=Je(i[0]).x<Je(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Vr,e.arrowTypeStart)){const{angle:f,deltaX:p}=uh(i[0],i[1]);n=Vr[e.arrowTypeStart]*Math.cos(f)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Vr,e.arrowTypeEnd)){const{angle:f,deltaX:p}=uh(i[i.length-1],i[i.length-2]);n=Vr[e.arrowTypeEnd]*Math.cos(f)*(p>=0?1:-1)}const o=Math.abs(Je(t).x-Je(i[i.length-1]).x),s=Math.abs(Je(t).y-Je(i[i.length-1]).y),l=Math.abs(Je(t).x-Je(i[0]).x),c=Math.abs(Je(t).y-Je(i[0]).y),u=Vr[e.arrowTypeStart],h=Vr[e.arrowTypeEnd],d=1;if(o<h&&o>0&&s<h){let f=h+d-o;f*=a==="right"?-1:1,n-=f}if(l<u&&l>0&&c<u){let f=u+d-l;f*=a==="right"?-1:1,n+=f}return Je(t).x+n},"x"),y:A(function(t,r,i){let n=0;const a=Je(i[0]).y<Je(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Vr,e.arrowTypeStart)){const{angle:f,deltaY:p}=uh(i[0],i[1]);n=Vr[e.arrowTypeStart]*Math.abs(Math.sin(f))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(Vr,e.arrowTypeEnd)){const{angle:f,deltaY:p}=uh(i[i.length-1],i[i.length-2]);n=Vr[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(p>=0?1:-1)}const o=Math.abs(Je(t).y-Je(i[i.length-1]).y),s=Math.abs(Je(t).x-Je(i[i.length-1]).x),l=Math.abs(Je(t).y-Je(i[0]).y),c=Math.abs(Je(t).x-Je(i[0]).x),u=Vr[e.arrowTypeStart],h=Vr[e.arrowTypeEnd],d=1;if(o<h&&o>0&&s<h){let f=h+d-o;f*=a==="up"?-1:1,n-=f}if(l<u&&l>0&&c<u){let f=u+d-l;f*=a==="up"?-1:1,n+=f}return Je(t).y+n},"y")}),"getLineFunctionsWithOffset"),fS=A(({flowchart:e})=>{const t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),Znt=A(e=>{const{handDrawnSeed:t}=Be();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Qc=A(e=>{const t=Knt([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Knt=A(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n?.trim())}),t},"styles2Map"),A5=A(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),Ht=A(e=>{const{stylesArray:t}=Qc(e),r=[],i=[],n=[],a=[];return t.forEach(o=>{const s=o[0];A5(s)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),s.includes("stroke")&&n.push(o.join(":")+" !important"),s==="fill"&&a.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),zt=A((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=Be(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:o}=Qc(e);return Object.assign({roughness:.7,fill:o.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Qnt(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),Qnt=A(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),Gu={},br={},qM;function Jnt(){return qM||(qM=1,Object.defineProperty(br,"__esModule",{value:!0}),br.BLANK_URL=br.relativeFirstCharacters=br.whitespaceEscapeCharsRegex=br.urlSchemeRegex=br.ctrlCharactersRegex=br.htmlCtrlEntityRegex=br.htmlEntitiesRegex=br.invalidProtocolRegex=void 0,br.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,br.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,br.htmlCtrlEntityRegex=/&(newline|tab);/gi,br.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,br.urlSchemeRegex=/^.+(:|:)/gim,br.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,br.relativeFirstCharacters=[".","/"],br.BLANK_URL="about:blank"),br}var VM;function tat(){if(VM)return Gu;VM=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.sanitizeUrl=void 0;var e=Jnt();function t(o){return e.relativeFirstCharacters.indexOf(o[0])>-1}function r(o){var s=o.replace(e.ctrlCharactersRegex,"");return s.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(o){return URL.canParse(o)}function n(o){try{return decodeURIComponent(o)}catch{return o}}function a(o){if(!o)return e.BLANK_URL;var s,l=n(o.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=n(l),s=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(s&&s.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var u=c.trimStart(),h=u.match(e.urlSchemeRegex);if(!h)return c;var d=h[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(d))return e.BLANK_URL;var f=u.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://"))return f;if(d==="http:"||d==="https:"){if(!i(f))return e.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}return Gu.sanitizeUrl=a,Gu}var eat=tat(),M5=typeof global=="object"&&global&&global.Object===Object&&global,rat=typeof self=="object"&&self&&self.Object===Object&&self,pa=M5||rat||Function("return this")(),kv=pa.Symbol,L5=Object.prototype,iat=L5.hasOwnProperty,nat=L5.toString,qu=kv?kv.toStringTag:void 0;function aat(e){var t=iat.call(e,qu),r=e[qu];try{e[qu]=void 0;var i=!0}catch{}var n=nat.call(e);return i&&(t?e[qu]=r:delete e[qu]),n}var oat=Object.prototype,sat=oat.toString;function lat(e){return sat.call(e)}var cat="[object Null]",uat="[object Undefined]",UM=kv?kv.toStringTag:void 0;function Jc(e){return e==null?e===void 0?uat:cat:UM&&UM in Object(e)?aat(e):lat(e)}function Cl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hat="[object AsyncFunction]",fat="[object Function]",dat="[object GeneratorFunction]",pat="[object Proxy]";function dS(e){if(!Cl(e))return!1;var t=Jc(e);return t==fat||t==dat||t==hat||t==pat}var o_=pa["__core-js_shared__"],YM=(function(){var e=/[^.]+$/.exec(o_&&o_.keys&&o_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function gat(e){return!!YM&&YM in e}var vat=Function.prototype,mat=vat.toString;function Tl(e){if(e!=null){try{return mat.call(e)}catch{}try{return e+""}catch{}}return""}var yat=/[\\^$.*+?()[\]{}|]/g,_at=/^\[object .+?Constructor\]$/,bat=Function.prototype,xat=Object.prototype,wat=bat.toString,Sat=xat.hasOwnProperty,Cat=RegExp("^"+wat.call(Sat).replace(yat,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tat(e){if(!Cl(e)||gat(e))return!1;var t=dS(e)?Cat:_at;return t.test(Tl(e))}function kat(e,t){return e?.[t]}function kl(e,t){var r=kat(e,t);return Tat(r)?r:void 0}var Af=kl(Object,"create");function Aat(){this.__data__=Af?Af(null):{},this.size=0}function Mat(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lat="__lodash_hash_undefined__",Dat=Object.prototype,Eat=Dat.hasOwnProperty;function Iat(e){var t=this.__data__;if(Af){var r=t[e];return r===Lat?void 0:r}return Eat.call(t,e)?t[e]:void 0}var Pat=Object.prototype,Bat=Pat.hasOwnProperty;function Oat(e){var t=this.__data__;return Af?t[e]!==void 0:Bat.call(t,e)}var Rat="__lodash_hash_undefined__";function Fat(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Af&&t===void 0?Rat:t,this}function vl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}vl.prototype.clear=Aat;vl.prototype.delete=Mat;vl.prototype.get=Iat;vl.prototype.has=Oat;vl.prototype.set=Fat;function $at(){this.__data__=[],this.size=0}function $m(e,t){return e===t||e!==e&&t!==t}function Nm(e,t){for(var r=e.length;r--;)if($m(e[r][0],t))return r;return-1}var Nat=Array.prototype,zat=Nat.splice;function Hat(e){var t=this.__data__,r=Nm(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():zat.call(t,r,1),--this.size,!0}function Wat(e){var t=this.__data__,r=Nm(t,e);return r<0?void 0:t[r][1]}function Gat(e){return Nm(this.__data__,e)>-1}function qat(e,t){var r=this.__data__,i=Nm(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Qa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Qa.prototype.clear=$at;Qa.prototype.delete=Hat;Qa.prototype.get=Wat;Qa.prototype.has=Gat;Qa.prototype.set=qat;var Mf=kl(pa,"Map");function Vat(){this.size=0,this.__data__={hash:new vl,map:new(Mf||Qa),string:new vl}}function Uat(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zm(e,t){var r=e.__data__;return Uat(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yat(e){var t=zm(this,e).delete(e);return this.size-=t?1:0,t}function jat(e){return zm(this,e).get(e)}function Xat(e){return zm(this,e).has(e)}function Zat(e,t){var r=zm(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Qo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Qo.prototype.clear=Vat;Qo.prototype.delete=Yat;Qo.prototype.get=jat;Qo.prototype.has=Xat;Qo.prototype.set=Zat;var Kat="Expected a function";function Qf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kat);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],a=r.cache;if(a.has(n))return a.get(n);var o=e.apply(this,i);return r.cache=a.set(n,o)||a,o};return r.cache=new(Qf.Cache||Qo),r}Qf.Cache=Qo;function Qat(){this.__data__=new Qa,this.size=0}function Jat(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function tot(e){return this.__data__.get(e)}function eot(e){return this.__data__.has(e)}var rot=200;function iot(e,t){var r=this.__data__;if(r instanceof Qa){var i=r.__data__;if(!Mf||i.length<rot-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qo(i)}return r.set(e,t),this.size=r.size,this}function tu(e){var t=this.__data__=new Qa(e);this.size=t.size}tu.prototype.clear=Qat;tu.prototype.delete=Jat;tu.prototype.get=tot;tu.prototype.has=eot;tu.prototype.set=iot;var Av=(function(){try{var e=kl(Object,"defineProperty");return e({},"",{}),e}catch{}})();function pS(e,t,r){t=="__proto__"&&Av?Av(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function $x(e,t,r){(r!==void 0&&!$m(e[t],r)||r===void 0&&!(t in e))&&pS(e,t,r)}function not(e){return function(t,r,i){for(var n=-1,a=Object(t),o=i(t),s=o.length;s--;){var l=o[++n];if(r(a[l],l,a)===!1)break}return t}}var aot=not(),D5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jM=D5&&typeof module=="object"&&module&&!module.nodeType&&module,oot=jM&&jM.exports===D5,XM=oot?pa.Buffer:void 0,ZM=XM?XM.allocUnsafe:void 0;function sot(e,t){if(t)return e.slice();var r=e.length,i=ZM?ZM(r):new e.constructor(r);return e.copy(i),i}var KM=pa.Uint8Array;function lot(e){var t=new e.constructor(e.byteLength);return new KM(t).set(new KM(e)),t}function cot(e,t){var r=t?lot(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function uot(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var QM=Object.create,hot=(function(){function e(){}return function(t){if(!Cl(t))return{};if(QM)return QM(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function E5(e,t){return function(r){return e(t(r))}}var I5=E5(Object.getPrototypeOf,Object),fot=Object.prototype;function Hm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||fot;return e===r}function dot(e){return typeof e.constructor=="function"&&!Hm(e)?hot(I5(e)):{}}function Jf(e){return e!=null&&typeof e=="object"}var pot="[object Arguments]";function JM(e){return Jf(e)&&Jc(e)==pot}var P5=Object.prototype,got=P5.hasOwnProperty,vot=P5.propertyIsEnumerable,Mv=JM((function(){return arguments})())?JM:function(e){return Jf(e)&&got.call(e,"callee")&&!vot.call(e,"callee")},Lv=Array.isArray,mot=9007199254740991;function B5(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mot}function Wm(e){return e!=null&&B5(e.length)&&!dS(e)}function yot(e){return Jf(e)&&Wm(e)}function _ot(){return!1}var O5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tL=O5&&typeof module=="object"&&module&&!module.nodeType&&module,bot=tL&&tL.exports===O5,eL=bot?pa.Buffer:void 0,xot=eL?eL.isBuffer:void 0,gS=xot||_ot,wot="[object Object]",Sot=Function.prototype,Cot=Object.prototype,R5=Sot.toString,Tot=Cot.hasOwnProperty,kot=R5.call(Object);function Aot(e){if(!Jf(e)||Jc(e)!=wot)return!1;var t=I5(e);if(t===null)return!0;var r=Tot.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&R5.call(r)==kot}var Mot="[object Arguments]",Lot="[object Array]",Dot="[object Boolean]",Eot="[object Date]",Iot="[object Error]",Pot="[object Function]",Bot="[object Map]",Oot="[object Number]",Rot="[object Object]",Fot="[object RegExp]",$ot="[object Set]",Not="[object String]",zot="[object WeakMap]",Hot="[object ArrayBuffer]",Wot="[object DataView]",Got="[object Float32Array]",qot="[object Float64Array]",Vot="[object Int8Array]",Uot="[object Int16Array]",Yot="[object Int32Array]",jot="[object Uint8Array]",Xot="[object Uint8ClampedArray]",Zot="[object Uint16Array]",Kot="[object Uint32Array]",Xe={};Xe[Got]=Xe[qot]=Xe[Vot]=Xe[Uot]=Xe[Yot]=Xe[jot]=Xe[Xot]=Xe[Zot]=Xe[Kot]=!0;Xe[Mot]=Xe[Lot]=Xe[Hot]=Xe[Dot]=Xe[Wot]=Xe[Eot]=Xe[Iot]=Xe[Pot]=Xe[Bot]=Xe[Oot]=Xe[Rot]=Xe[Fot]=Xe[$ot]=Xe[Not]=Xe[zot]=!1;function Qot(e){return Jf(e)&&B5(e.length)&&!!Xe[Jc(e)]}function Jot(e){return function(t){return e(t)}}var F5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qh=F5&&typeof module=="object"&&module&&!module.nodeType&&module,tst=qh&&qh.exports===F5,s_=tst&&M5.process,rL=(function(){try{var e=qh&&qh.require&&qh.require("util").types;return e||s_&&s_.binding&&s_.binding("util")}catch{}})(),iL=rL&&rL.isTypedArray,vS=iL?Jot(iL):Qot;function Nx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var est=Object.prototype,rst=est.hasOwnProperty;function ist(e,t,r){var i=e[t];(!(rst.call(e,t)&&$m(i,r))||r===void 0&&!(t in e))&&pS(e,t,r)}function nst(e,t,r,i){var n=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=void 0;l===void 0&&(l=e[s]),n?pS(r,s,l):ist(r,s,l)}return r}function ast(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var ost=9007199254740991,sst=/^(?:0|[1-9]\d*)$/;function $5(e,t){var r=typeof e;return t=t??ost,!!t&&(r=="number"||r!="symbol"&&sst.test(e))&&e>-1&&e%1==0&&e<t}var lst=Object.prototype,cst=lst.hasOwnProperty;function ust(e,t){var r=Lv(e),i=!r&&Mv(e),n=!r&&!i&&gS(e),a=!r&&!i&&!n&&vS(e),o=r||i||n||a,s=o?ast(e.length,String):[],l=s.length;for(var c in e)(t||cst.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||$5(c,l)))&&s.push(c);return s}function hst(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fst=Object.prototype,dst=fst.hasOwnProperty;function pst(e){if(!Cl(e))return hst(e);var t=Hm(e),r=[];for(var i in e)i=="constructor"&&(t||!dst.call(e,i))||r.push(i);return r}function N5(e){return Wm(e)?ust(e,!0):pst(e)}function gst(e){return nst(e,N5(e))}function vst(e,t,r,i,n,a,o){var s=Nx(e,r),l=Nx(t,r),c=o.get(l);if(c){$x(e,r,c);return}var u=a?a(s,l,r+"",e,t,o):void 0,h=u===void 0;if(h){var d=Lv(l),f=!d&&gS(l),p=!d&&!f&&vS(l);u=l,d||f||p?Lv(s)?u=s:yot(s)?u=uot(s):f?(h=!1,u=sot(l,!0)):p?(h=!1,u=cot(l,!0)):u=[]:Aot(l)||Mv(l)?(u=s,Mv(s)?u=gst(s):(!Cl(s)||dS(s))&&(u=dot(l))):h=!1}h&&(o.set(l,u),n(u,l,i,a,o),o.delete(l)),$x(e,r,u)}function z5(e,t,r,i,n){e!==t&&aot(t,function(a,o){if(n||(n=new tu),Cl(a))vst(e,t,o,r,z5,i,n);else{var s=i?i(Nx(e,o),a,o+"",e,t,n):void 0;s===void 0&&(s=a),$x(e,o,s)}},N5)}function H5(e){return e}function mst(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var nL=Math.max;function yst(e,t,r){return t=nL(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=nL(i.length-t,0),o=Array(a);++n<a;)o[n]=i[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=i[n];return s[t]=r(o),mst(e,this,s)}}function _st(e){return function(){return e}}var bst=Av?function(e,t){return Av(e,"toString",{configurable:!0,enumerable:!1,value:_st(t),writable:!0})}:H5,xst=800,wst=16,Sst=Date.now;function Cst(e){var t=0,r=0;return function(){var i=Sst(),n=wst-(i-r);if(r=i,n>0){if(++t>=xst)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Tst=Cst(bst);function kst(e,t){return Tst(yst(e,t,H5),e+"")}function Ast(e,t,r){if(!Cl(r))return!1;var i=typeof t;return(i=="number"?Wm(r)&&$5(t,r.length):i=="string"&&t in r)?$m(r[t],e):!1}function Mst(e){return kst(function(t,r){var i=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,o&&Ast(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);++i<n;){var s=r[i];s&&e(t,s,i,a)}return t})}var Lst=Mst(function(e,t,r){z5(e,t,r)}),Dst="",Est={curveBasis:rg,curveBasisClosed:Pit,curveBasisOpen:Bit,curveBumpX:kR,curveBumpY:AR,curveBundle:Oit,curveCardinalClosed:Rit,curveCardinalOpen:Fit,curveCardinal:ER,curveCatmullRomClosed:$it,curveCatmullRomOpen:Nit,curveCatmullRom:PR,curveLinear:vv,curveLinearClosed:zit,curveMonotoneX:NR,curveMonotoneY:zR,curveNatural:WR,curveStep:GR,curveStepAfter:VR,curveStepBefore:qR},Ist=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Pst=A(function(e,t){const r=W5(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(s=>s.args);av(o),i=xr(i,[...o])}else i=r.args;if(!i)return;let n=zw(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),W5=A(function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${Ist.source})(?=[}][%]{2}).*
|
|
134
|
+
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),ht.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const n=[];for(;(i=Wh.exec(e))!==null;)if(i.index===Wh.lastIndex&&Wh.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const a=i[1]?i[1]:i[2],o=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:a,args:o})}return n.length===0?{type:e,args:null}:n.length===1?n[0]:n}catch(r){return ht.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Bst=A(function(e){return e.replace(Wh,"")},"removeDirectives"),Ost=A(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function mS(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Est[r]??t}A(mS,"interpolateToCurve");function G5(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?eat.sanitizeUrl(r):r}A(G5,"formatUrl");var Rst=A((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let o=0;o<i;o++)if(a=a[r[o]],!a){ht.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function yS(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}A(yS,"distance");function q5(e){let t,r=0;e.forEach(n=>{r+=yS(n,t),t=n});const i=r/2;return _S(e,i)}A(q5,"traverseEdge");function V5(e){return e.length===1?e[0]:q5(e)}A(V5,"calcLabelPosition");var aL=A((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),_S=A((e,t)=>{let r,i=t;for(const n of e){if(r){const a=yS(n,r);if(a===0)return r;if(a<i)i-=a;else{const o=i/a;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:aL((1-o)*r.x+o*n.x,5),y:aL((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Fst=A((e,t,r)=>{ht.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=_S(t,25),a=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*a+(t[0].x+n.x)/2,s.y=-Math.cos(o)*a+(t[0].y+n.y)/2,s},"calcCardinalityPosition");function U5(e,t,r){const i=structuredClone(r);ht.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=_S(i,n),o=10+e*.5,s=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s+Math.PI)*o+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*o+(i[0].x+a.x)/2-5,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2-5):(l.x=Math.sin(s)*o+(i[0].x+a.x)/2,l.y=-Math.cos(s)*o+(i[0].y+a.y)/2),l}A(U5,"calcTerminalLabelPosition");function Y5(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}A(Y5,"getStylesFromArray");var oL=0,$st=A(()=>(oL++,"id-"+Math.random().toString(36).substr(2,12)+"-"+oL),"generateId");function j5(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}A(j5,"makeRandomHex");var Nst=A(e=>j5(e.length),"random"),zst=A(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Hst=A(function(e,t){const r=t.text.replace(Kc.lineBreakRegex," "),[,i]=Gm(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),Wst=Qf((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Kc.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((o,s)=>{const l=Ya(`${o} `,r),c=Ya(a,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=Gst(o,t,"-",r);n.push(a,...d),a=f}else c+l>=t?(n.push(a),a=o):a=[a,o].filter(Boolean).join(" ");s+1===i.length&&n.push(a)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Gst=Qf((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let o="";return n.forEach((s,l)=>{const c=`${o}${s}`;if(Ya(c,i)>=t){const h=l+1,d=n.length===h,f=`${c}${r}`;a.push(d?c:f),o=""}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function X5(e,t){return bS(e,t).height}A(X5,"calculateTextHeight");function Ya(e,t){return bS(e,t).width}A(Ya,"calculateTextWidth");var bS=Qf((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=Gm(r),o=["sans-serif",i],s=e.split(Kc.lineBreakRegex),l=[],c=Ce("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const d of o){let f=0;const p={width:0,height:0,lineHeight:0};for(const g of s){const v=zst();v.text=g||Dst;const m=Hst(u,v).style("font-size",a).style("font-weight",n).style("font-family",d),b=(m._groups||m)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,b.width)),f=Math.round(b.height),p.height+=f,p.lineHeight=Math.round(Math.max(p.lineHeight,f))}l.push(p)}u.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Lc,qst=(Lc=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},A(Lc,"InitIDGenerator"),Lc),xp,Vst=A(function(e){return xp=xp||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),xp.innerHTML=e,unescape(xp.textContent)},"entityDecode");function xS(e){return"str"in e}A(xS,"isDetailedError");var Ust=A((e,t,r,i)=>{if(!i)return;const n=e.node()?.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Gm=A(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function wS(e,t){return Lst({},e,t)}A(wS,"cleanAndMerge");var Sn={assignWithDepth:xr,wrapLabel:Wst,calculateTextHeight:X5,calculateTextWidth:Ya,calculateTextDimensions:bS,cleanAndMerge:wS,detectInit:Pst,detectDirective:W5,isSubstringInArray:Ost,interpolateToCurve:mS,calcLabelPosition:V5,calcCardinalityPosition:Fst,calcTerminalLabelPosition:U5,formatUrl:G5,getStylesFromArray:Y5,generateId:$st,random:Nst,runFunc:Rst,entityDecode:Vst,insertTitle:Ust,isLabelCoordinateInPath:Z5,parseFontSize:Gm,InitIDGenerator:qst},Yst=A(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Al=A(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),lpt=A((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function Qr(e){return e??null}A(Qr,"handleUndefinedAttr");function Z5(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}A(Z5,"isLabelCoordinateInPath");const jst=Object.freeze({left:0,top:0,width:16,height:16}),Dv=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),K5=Object.freeze({...jst,...Dv}),Xst=Object.freeze({...K5,body:"",hidden:!1}),Zst=Object.freeze({width:null,height:null}),Kst=Object.freeze({...Zst,...Dv}),Qst=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const s=n.pop(),l=n.pop(),c={provider:n.length>0?n[0]:i,prefix:l,name:s};return l_(c)?c:null}const a=n[0],o=a.split("-");if(o.length>1){const s={provider:i,prefix:o.shift(),name:o.join("-")};return l_(s)?s:null}if(r&&i===""){const s={provider:i,prefix:"",name:a};return l_(s,r)?s:null}return null},l_=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Jst(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function sL(e,t){const r=Jst(e,t);for(const i in Xst)i in Dv?i in e&&!(i in r)&&(r[i]=Dv[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function tlt(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const s=i[o]&&i[o].parent,l=s&&a(s);l&&(n[o]=[s].concat(l))}return n[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function lL(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function o(s){a=sL(i[s]||n[s],a)}return o(t),r.forEach(o),sL(e,a)}function elt(e,t){if(e.icons[t])return lL(e,t,[]);const r=tlt(e,[t])[t];return r?lL(e,t,r):null}const rlt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ilt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function cL(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(rlt);if(i===null||!i.length)return e;const n=[];let a=i.shift(),o=ilt.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?n.push(a):n.push(Math.ceil(s*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");o=!o}}function nlt(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const o=e.indexOf(">",a);if(o===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function alt(e,t){return e?"<defs>"+e+"</defs>"+t:t}function olt(e,t,r){const i=nlt(e);return alt(i.defs,t+i.content+r)}const slt=e=>e==="unset"||e==="undefined"||e==="none";function llt(e,t){const r={...K5,...e},i={...Kst,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(g=>{const v=[],m=g.hFlip,b=g.vFlip;let w=g.rotate;m?b?w+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):b&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let S;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:S=n.height/2+n.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:S=n.width/2+n.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}w%2===1&&(n.left!==n.top&&(S=n.left,n.left=n.top,n.top=S),n.width!==n.height&&(S=n.width,n.width=n.height,n.height=S)),v.length&&(a=olt(a,'<g transform="'+v.join(" ")+'">',"</g>"))});const o=i.width,s=i.height,l=n.width,c=n.height;let u,h;o===null?(h=s===null?"1em":s==="auto"?c:s,u=cL(h,l/c)):(u=o==="auto"?l:o,h=s===null?cL(u,c/l):s==="auto"?c:s);const d={},f=(g,v)=>{slt(v)||(d[g]=v.toString())};f("width",u),f("height",h);const p=[n.left,n.top,l,c];return d.viewBox=p.join(" "),{attributes:d,viewBox:p,body:a}}const clt=/\sid="(\S+)"/g,uL=new Map;function ult(e){e=e.replace(/[0-9]+$/,"")||"a";const t=uL.get(e)||0;return uL.set(e,t+1),t?`${e}${t}`:e}function hlt(e){const t=[];let r;for(;r=clt.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const a=ult(n),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function flt(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function SS(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ml=SS();function Q5(e){Ml=e}var Vh={exec:()=>null};function Me(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(pi.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}var dlt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),pi={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},plt=/^(?:[ \t]*(?:\n|$))+/,glt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vlt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,td=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mlt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,CS=/(?:[*+-]|\d{1,9}[.)])/,J5=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,t$=Me(J5).replace(/bull/g,CS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ylt=Me(J5).replace(/bull/g,CS).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),TS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_lt=/^[^\n]+/,kS=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,blt=Me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kS).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xlt=Me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,CS).getRegex(),qm="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",AS=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wlt=Me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",AS).replace("tag",qm).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),e$=Me(TS).replace("hr",td).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qm).getRegex(),Slt=Me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",e$).getRegex(),MS={blockquote:Slt,code:glt,def:blt,fences:vlt,heading:mlt,hr:td,html:wlt,lheading:t$,list:xlt,newline:plt,paragraph:e$,table:Vh,text:_lt},hL=Me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",td).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qm).getRegex(),Clt={...MS,lheading:ylt,table:hL,paragraph:Me(TS).replace("hr",td).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hL).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",qm).getRegex()},Tlt={...MS,html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",AS).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(TS).replace("hr",td).replace("heading",` *#{1,6} *[^
|
|
135
|
+
]`).replace("lheading",t$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},klt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Alt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,r$=/^( {2,}|\\)\n(?!\s*$)/,Mlt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vm=/[\p{P}\p{S}]/u,LS=/[\s\p{P}\p{S}]/u,i$=/[^\s\p{P}\p{S}]/u,Llt=Me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,LS).getRegex(),n$=/(?!~)[\p{P}\p{S}]/u,Dlt=/(?!~)[\s\p{P}\p{S}]/u,Elt=/(?:[^\s\p{P}\p{S}]|~)/u,Ilt=Me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",dlt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),a$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Plt=Me(a$,"u").replace(/punct/g,Vm).getRegex(),Blt=Me(a$,"u").replace(/punct/g,n$).getRegex(),o$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Olt=Me(o$,"gu").replace(/notPunctSpace/g,i$).replace(/punctSpace/g,LS).replace(/punct/g,Vm).getRegex(),Rlt=Me(o$,"gu").replace(/notPunctSpace/g,Elt).replace(/punctSpace/g,Dlt).replace(/punct/g,n$).getRegex(),Flt=Me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,i$).replace(/punctSpace/g,LS).replace(/punct/g,Vm).getRegex(),$lt=Me(/\\(punct)/,"gu").replace(/punct/g,Vm).getRegex(),Nlt=Me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),zlt=Me(AS).replace("(?:-->|$)","-->").getRegex(),Hlt=Me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",zlt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ev=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Wlt=Me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ev).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),s$=Me(/^!?\[(label)\]\[(ref)\]/).replace("label",Ev).replace("ref",kS).getRegex(),l$=Me(/^!?\[(ref)\](?:\[\])?/).replace("ref",kS).getRegex(),Glt=Me("reflink|nolink(?!\\()","g").replace("reflink",s$).replace("nolink",l$).getRegex(),fL=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,DS={_backpedal:Vh,anyPunctuation:$lt,autolink:Nlt,blockSkip:Ilt,br:r$,code:Alt,del:Vh,emStrongLDelim:Plt,emStrongRDelimAst:Olt,emStrongRDelimUnd:Flt,escape:klt,link:Wlt,nolink:l$,punctuation:Llt,reflink:s$,reflinkSearch:Glt,tag:Hlt,text:Mlt,url:Vh},qlt={...DS,link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",Ev).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ev).getRegex()},zx={...DS,emStrongRDelimAst:Rlt,emStrongLDelim:Blt,url:Me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fL).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fL).getRegex()},Vlt={...zx,br:Me(r$).replace("{2,}","*").getRegex(),text:Me(zx.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wp={normal:MS,gfm:Clt,pedantic:Tlt},Vu={normal:DS,gfm:zx,breaks:Vlt,pedantic:qlt},Ult={"&":"&","<":"<",">":">",'"':""","'":"'"},dL=e=>Ult[e];function Gn(e,t){if(t){if(pi.escapeTest.test(e))return e.replace(pi.escapeReplace,dL)}else if(pi.escapeTestNoEncode.test(e))return e.replace(pi.escapeReplaceNoEncode,dL);return e}function pL(e){try{e=encodeURI(e).replace(pi.percentDecode,"%")}catch{return null}return e}function gL(e,t){let r=e.replace(pi.findPipe,(a,o,s)=>{let l=!1,c=o;for(;--c>=0&&s[c]==="\\";)l=!l;return l?"|":" |"}),i=r.split(pi.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(pi.slashPipe,"|");return i}function Uu(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function Ylt(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function vL(e,t,r,i,n){let a=t.href,o=t.title||null,s=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:o,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}function jlt(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
136
|
+
`).map(a=>{let o=a.match(r.other.beginningSpace);if(o===null)return a;let[s]=o;return s.length>=n.length?a.slice(n.length):a}).join(`
|
|
137
|
+
`)}var Iv=class{options;rules;lexer;constructor(t){this.options=t||Ml}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Uu(i,`
|
|
138
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=jlt(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=Uu(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Uu(r[0],`
|
|
139
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Uu(r[0],`
|
|
140
|
+
`).split(`
|
|
141
|
+
`),n="",a="",o=[];for(;i.length>0;){let s=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),s=!0;else if(!s)l.push(i[c]);else break;i=i.slice(c);let u=l.join(`
|
|
142
|
+
`),h=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
143
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
144
|
+
${u}`:u,a=a?`${a}
|
|
145
|
+
${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,o,!0),this.lexer.state.top=d,i.length===0)break;let f=o.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let p=f,g=p.raw+`
|
|
146
|
+
`+i.join(`
|
|
147
|
+
`),v=this.blockquote(g);o[o.length-1]=v,n=n.substring(0,n.length-p.raw.length)+v.raw,a=a.substring(0,a.length-p.text.length)+v.text;break}else if(f?.type==="list"){let p=f,g=p.raw+`
|
|
148
|
+
`+i.join(`
|
|
149
|
+
`),v=this.list(g);o[o.length-1]=v,n=n.substring(0,n.length-f.raw.length)+v.raw,a=a.substring(0,a.length-p.raw.length)+v.raw,i=g.substring(o.at(-1).raw.length).split(`
|
|
150
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:o,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),s=!1;for(;t;){let c=!1,u="",h="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;u=r[0],t=t.substring(u.length);let d=r[2].split(`
|
|
151
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),f=t.split(`
|
|
152
|
+
`,1)[0],p=!d.trim(),g=0;if(this.options.pedantic?(g=2,h=d.trimStart()):p?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=d.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(f)&&(u+=f+`
|
|
153
|
+
`,t=t.substring(f.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(g),w=this.rules.other.hrRegex(g),S=this.rules.other.fencesBeginRegex(g),k=this.rules.other.headingBeginRegex(g),M=this.rules.other.htmlBeginRegex(g);for(;t;){let T=t.split(`
|
|
154
|
+
`,1)[0],I;if(f=T,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),I=f):I=f.replace(this.rules.other.tabCharGlobal," "),S.test(f)||k.test(f)||M.test(f)||b.test(f)||w.test(f))break;if(I.search(this.rules.other.nonSpaceChar)>=g||!f.trim())h+=`
|
|
155
|
+
`+I.slice(g);else{if(p||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(d)||k.test(d)||w.test(d))break;h+=`
|
|
156
|
+
`+f}!p&&!f.trim()&&(p=!0),u+=T+`
|
|
157
|
+
`,t=t.substring(T.length+1),d=I.slice(g)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0));let v=null,m;this.options.gfm&&(v=this.rules.other.listIsTask.exec(h),v&&(m=v[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!v,checked:m,loose:!1,text:h,tokens:[]}),a.raw+=u}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let u=a.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=h}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:a}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=gL(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
158
|
+
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let s of n)this.rules.other.tableAlignRight.test(s)?o.align.push("right"):this.rules.other.tableAlignCenter.test(s)?o.align.push("center"):this.rules.other.tableAlignLeft.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<i.length;s++)o.header.push({text:i[s],tokens:this.lexer.inline(i[s]),header:!0,align:o.align[s]});for(let s of a)o.rows.push(gL(s,o.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[c]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
159
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=Uu(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=Ylt(r[2],"()");if(o===-2)return;if(o>-1){let s=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,s).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],a=o[3])}else a=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),vL(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[n.toLowerCase()];if(!a){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return vL(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...n[0]].length-1,o,s,l=a,c=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*t.length+a);(n=u.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=[...o].length,n[3]||n[4]){l+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){c+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let h=[...n[0]][0].length,d=t.slice(0,a+n.index+h+s);if(Math.min(a,s)%2){let p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,n;if(r[2]==="@")i=r[0],n="mailto:"+i;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(a!==r[0]);i=r[0],r[1]==="www."?n="http://"+r[0]:n=r[0]}return{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},bn=class Hx{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ml,this.options.tokenizer=this.options.tokenizer||new Iv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:pi,block:wp.normal,inline:Vu.normal};this.options.pedantic?(r.block=wp.pedantic,r.inline=Vu.pedantic):this.options.gfm&&(r.block=wp.gfm,this.options.breaks?r.inline=Vu.breaks:r.inline=Vu.gfm),this.tokenizer.rules=r}static get rules(){return{block:wp,inline:Vu}}static lex(t,r){return new Hx(r).lex(t)}static lexInline(t,r){return new Hx(r).inlineTokens(t)}lex(t){t=t.replace(pi.carriageReturn,`
|
|
160
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(pi.tabCharGlobal," ").replace(pi.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(o=>(n=o.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let o=r.at(-1);n.raw.length===1&&o!==void 0?o.raw+=`
|
|
161
|
+
`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
162
|
+
`)?"":`
|
|
163
|
+
`)+n.raw,o.text+=`
|
|
164
|
+
`+n.text,this.inlineQueue.at(-1).src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
165
|
+
`)?"":`
|
|
166
|
+
`)+n.raw,o.text+=`
|
|
167
|
+
`+n.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let a=t;if(this.options.extensions?.startBlock){let o=1/0,s=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},s),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(a=t.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let o=r.at(-1);i&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
168
|
+
`)?"":`
|
|
169
|
+
`)+n.raw,o.text+=`
|
|
170
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(n),i=a.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
171
|
+
`)?"":`
|
|
172
|
+
`)+n.raw,o.text+=`
|
|
173
|
+
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(n);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,n=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let o=!1,s="";for(;t;){o||(s=""),o=!1;let l;if(this.options.extensions?.inline?.some(u=>(l=u.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let u=r.at(-1);l.type==="text"&&u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,s)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let u=1/0,h=t.slice(1),d;this.options.extensions.startInline.forEach(f=>{d=f.call({lexer:this},h),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(c=t.substring(0,u+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(s=l.raw.slice(-1)),o=!0;let u=r.at(-1);u?.type==="text"?(u.raw+=l.raw,u.text+=l.text):r.push(l);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return r}},Pv=class{options;parser;constructor(t){this.options=t||Ml}space(t){return""}code({text:t,lang:r,escaped:i}){let n=(r||"").match(pi.notSpaceStart)?.[0],a=t.replace(pi.endingNewline,"")+`
|
|
174
|
+
`;return n?'<pre><code class="language-'+Gn(n)+'">'+(i?a:Gn(a,!0))+`</code></pre>
|
|
175
|
+
`:"<pre><code>"+(i?a:Gn(a,!0))+`</code></pre>
|
|
176
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
177
|
+
${this.parser.parse(t)}</blockquote>
|
|
178
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
179
|
+
`}hr(t){return`<hr>
|
|
180
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let s=0;s<t.items.length;s++){let l=t.items[s];n+=this.listitem(l)}let a=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+a+o+`>
|
|
181
|
+
`+n+"</"+a+`>
|
|
182
|
+
`}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+Gn(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
183
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
184
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let o=t.rows[a];i="";for(let s=0;s<o.length;s++)i+=this.tablecell(o[s]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
185
|
+
<thead>
|
|
186
|
+
`+r+`</thead>
|
|
187
|
+
`+n+`</table>
|
|
188
|
+
`}tablerow({text:t}){return`<tr>
|
|
189
|
+
${t}</tr>
|
|
190
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
191
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Gn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),a=pL(t);if(a===null)return n;t=a;let o='<a href="'+t+'"';return r&&(o+=' title="'+Gn(r)+'"'),o+=">"+n+"</a>",o}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=pL(t);if(a===null)return Gn(i);t=a;let o=`<img src="${t}" alt="${i}"`;return r&&(o+=` title="${Gn(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Gn(t.text)}},ES=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},xn=class Wx{options;renderer;textRenderer;constructor(t){this.options=t||Ml,this.options.renderer=this.options.renderer||new Pv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ES}static parse(t,r){return new Wx(r).parse(t)}static parseInline(t,r){return new Wx(r).parseInline(t)}parse(t,r=!0){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let s=a,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){i+=l||"";continue}}let o=a;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"def":{i+=this.renderer.def(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let s=o,l=this.renderer.text(s);for(;n+1<t.length&&t[n+1].type==="text";)s=t[++n],l+=`
|
|
192
|
+
`+this.renderer.text(s);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(t,r=this.renderer){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=s||"";continue}}let o=a;switch(o.type){case"escape":{i+=r.text(o);break}case"html":{i+=r.html(o);break}case"link":{i+=r.link(o);break}case"image":{i+=r.image(o);break}case"strong":{i+=r.strong(o);break}case"em":{i+=r.em(o);break}case"codespan":{i+=r.codespan(o);break}case"br":{i+=r.br(o);break}case"del":{i+=r.del(o);break}case"text":{i+=r.text(o);break}default:{let s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}},hh=class{options;block;constructor(t){this.options=t||Ml}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?bn.lex:bn.lexInline}provideParser(){return this.block?xn.parse:xn.parseInline}},Xlt=class{defaults=SS();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xn;Renderer=Pv;TextRenderer=ES;Lexer=bn;Tokenizer=Iv;Hooks=hh;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":{let a=n;for(let o of a.header)i=i.concat(this.walkTokens(o.tokens,r));for(let o of a.rows)for(let s of o)i=i.concat(this.walkTokens(s.tokens,r));break}case"list":{let a=n;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{let s=a[o].flat(1/0);i=i.concat(this.walkTokens(s,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let o=r.renderers[a.name];o?r.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[a.level];o?o.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Pv(this.defaults);for(let o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,l=i.renderer[s],c=a[s];a[s]=(...u)=>{let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Iv(this.defaults);for(let o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,l=i.tokenizer[s],c=a[s];a[s]=(...u)=>{let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new hh;for(let o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,l=i.hooks[s],c=a[s];hh.passThroughHooks.has(o)?a[s]=u=>{if(this.defaults.async&&hh.passThroughHooksRespectAsync.has(o))return(async()=>{let d=await l.call(a,u);return c.call(a,d)})();let h=l.call(a,u);return c.call(a,h)}:a[s]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(a,u);return d===!1&&(d=await c.apply(a,u)),d})();let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return bn.lex(t,r??this.defaults)}parser(t,r){return xn.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},o=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():t?bn.lex:bn.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let u=await(a.hooks?await a.hooks.provideParser():t?xn.parse:xn.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(u):u})().catch(o);try{a.hooks&&(r=a.hooks.preprocess(r));let s=(a.hooks?a.hooks.provideLexer():t?bn.lex:bn.lexInline)(r,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():t?xn.parse:xn.parseInline)(s,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(s){return o(s)}}}onError(t,r){return i=>{if(i.message+=`
|
|
193
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Gn(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},ml=new Xlt;function Oe(e,t){return ml.parse(e,t)}Oe.options=Oe.setOptions=function(e){return ml.setOptions(e),Oe.defaults=ml.defaults,Q5(Oe.defaults),Oe};Oe.getDefaults=SS;Oe.defaults=Ml;Oe.use=function(...e){return ml.use(...e),Oe.defaults=ml.defaults,Q5(Oe.defaults),Oe};Oe.walkTokens=function(e,t){return ml.walkTokens(e,t)};Oe.parseInline=ml.parseInline;Oe.Parser=xn;Oe.parser=xn.parse;Oe.Renderer=Pv;Oe.TextRenderer=ES;Oe.Lexer=bn;Oe.lexer=bn.lex;Oe.Tokenizer=Iv;Oe.Hooks=hh;Oe.parse=Oe;Oe.options;Oe.setOptions;Oe.use;Oe.walkTokens;Oe.parseInline;xn.parse;bn.lex;function c$(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var h,d;return(d=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&d!==void 0?d:0})):s},[]);if(n.length){var a=new RegExp(`
|
|
194
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(s){return s.replace(a,`
|
|
195
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(s,l){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=s;typeof s=="string"&&s.includes(`
|
|
196
|
+
`)&&(h=String(s).split(`
|
|
197
|
+
`).map(function(d,f){return f===0?d:""+u+d}).join(`
|
|
198
|
+
`)),o+=h+i[l+1]}),o}var Zlt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Gx=new Map,u$=new Map,Klt=A(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(ht.debug("Registering icon pack:",t.name),"loader"in t)u$.set(t.name,t.loader);else if("icons"in t)Gx.set(t.name,t.icons);else throw ht.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),h$=A(async(e,t)=>{const r=Qst(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=Gx.get(i);if(!n){const o=u$.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},Gx.set(i,n)}catch(s){throw ht.error(s),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=elt(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),Qlt=A(async e=>{try{return await h$(e),!0}catch{return!1}},"isIconAvailable"),ed=A(async(e,t,r)=>{let i;try{i=await h$(e,t?.fallbackPrefix)}catch(o){ht.error(o),i=Zlt}const n=llt(i,t),a=flt(hlt(n.body),{...n.attributes,...r});return cn(a,Zr())},"getIconSVG");function f$(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
199
|
+
`).replace(/\n{2,}/g,`
|
|
200
|
+
`),n=c$(i);return t===!1?n.replace(/ /g," "):n}A(f$,"preprocessMarkdown");function d$(e,t={}){const r=f$(e,t),i=Oe.lexer(r),n=[[]];let a=0;function o(s,l="normal"){s.type==="text"?s.text.split(`
|
|
201
|
+
`).forEach((u,h)=>{h!==0&&(a++,n.push([])),u.split(" ").forEach(d=>{d=d.replace(/'/g,"'"),d&&n[a].push({content:d,type:l})})}):s.type==="strong"||s.type==="em"?s.tokens.forEach(c=>{o(c,s.type)}):s.type==="html"&&n[a].push({content:s.text,type:"normal"})}return A(o,"processNode"),i.forEach(s=>{s.type==="paragraph"?s.tokens?.forEach(l=>{o(l)}):s.type==="html"?n[a].push({content:s.text,type:"normal"}):n[a].push({content:s.raw,type:"normal"})}),n}A(d$,"markdownToLines");function p$(e,{markdownAutoWrap:t}={}){const r=Oe.lexer(e);function i(n){return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${n.tokens?.map(i).join("")}</strong>`:n.type==="em"?`<em>${n.tokens?.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${n.tokens?.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(ht.warn(`Unsupported markdown: ${n.type}`),n.raw)}return A(i,"output"),r.map(i).join("")}A(p$,"markdownToHTML");function g$(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}A(g$,"splitTextToChars");function v$(e,t){const r=g$(t.content);return IS(e,[],r,t.type)}A(v$,"splitWordToFitWidth");function IS(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?IS(e,o,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}A(IS,"splitWordToFitWidthRecursion");function m$(e,t){if(e.some(({content:r})=>r.includes(`
|
|
202
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Bv(e,t)}A(m$,"splitLineToFitWidth");function Bv(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const a=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(a),t(o))return Bv(e,t,r,o);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[s,l]=v$(t,a);r.push([s]),l.content&&e.unshift(l)}return Bv(e,t,r)}A(Bv,"splitLineToFitWidthRecursion");function qx(e,t){t&&e.attr("style",t)}A(qx,"applyStyle");async function y$(e,t,r,i,n=!1,a=Zr()){const o=e.append("foreignObject");o.attr("width",`${10*r}px`),o.attr("height",`${10*r}px`);const s=o.append("xhtml:div"),l=Hc(t.label)?await Hw(t.label.replace(Kc.lineBreakRegex,`
|
|
203
|
+
`),a):cn(t.label,a),c=t.isNode?"nodeLabel":"edgeLabel",u=s.append("span");u.html(l),qx(u,t.labelStyle),u.attr("class",`${c} ${i}`),qx(s,t.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let h=s.node().getBoundingClientRect();return h.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),h=s.node().getBoundingClientRect()),o.node()}A(y$,"addHtmlSpan");function Um(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}A(Um,"createTspan");function _$(e,t,r){const i=e.append("text"),n=Um(i,1,t);Ym(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}A(_$,"computeWidthOfText");function Jlt(e,t,r){const i=e.append("text"),n=Um(i,1,t);Ym(n,[{content:r,type:"normal"}]);const a=n.node()?.getBoundingClientRect();return a&&i.remove(),a}A(Jlt,"computeDimensionOfText");function b$(e,t,r,i=!1){const a=t.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),s=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const u=A(d=>_$(a,1.1,d)<=e,"checkWidth"),h=u(c)?[c]:m$(c,u);for(const d of h){const f=Um(s,l,1.1);Ym(f,d),l++}}if(i){const c=s.node().getBBox(),u=2;return o.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),a.node()}else return s.node()}A(b$,"createFormattedText");function Ym(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(r.content):n.text(" "+r.content)})}A(Ym,"updateTextContentAndStyles");async function x$(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,o)=>(r.push((async()=>{const s=`${a}:${o}`;return await Qlt(s)?await ed(s,void 0,{class:"label-icon"}):`<i class='${cn(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}A(x$,"replaceIconSubstring");var Jo=A(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,isNode:o=!0,width:s=200,addSvgBackground:l=!1}={},c)=>{if(ht.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",l),a){const u=p$(t,c),h=await x$(Al(u),c),d=t.replace(/\\\\/g,"\\"),f={isNode:o,label:Hc(t)?d:h,labelStyle:r.replace("fill:","color:")};return await y$(e,f,s,n,l,c)}else{const u=t.replace(/<br\s*\/?>/g,"<br/>"),h=d$(u.replace("<br>","<br/>"),c),d=b$(s,e,h,t?l:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const f=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ce(d).attr("style",f)}else{const f=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ce(d).select("rect").attr("style",f.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ce(d).select("text").attr("style",p)}return d}},"createText");function c_(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(const l of e){const[c,u]=l;l[0]=(c-i)*o-(u-n)*s+i,l[1]=(c-i)*s+(u-n)*o+n}}}function tct(e,t){return e[0]===t[0]&&e[1]===t[1]}function ect(e,t,r,i=1){const n=r,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,s=[0,0];if(n)for(const c of o)c_(c,s,n);const l=(function(c,u,h){const d=[];for(const b of c){const w=[...b];tct(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&d.push(w)}const f=[];u=Math.max(u,.1);const p=[];for(const b of d)for(let w=0;w<b.length-1;w++){const S=b[w],k=b[w+1];if(S[1]!==k[1]){const M=Math.min(S[1],k[1]);p.push({ymin:M,ymax:Math.max(S[1],k[1]),x:M===S[1]?S[0]:k[0],islope:(k[0]-S[0])/(k[1]-S[1])})}}if(p.sort(((b,w)=>b.ymin<w.ymin?-1:b.ymin>w.ymin?1:b.x<w.x?-1:b.x>w.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax))),!p.length)return f;let g=[],v=p[0].ymin,m=0;for(;g.length||p.length;){if(p.length){let b=-1;for(let w=0;w<p.length&&!(p[w].ymin>v);w++)b=w;p.splice(0,b+1).forEach((w=>{g.push({s:v,edge:w})}))}if(g=g.filter((b=>!(b.edge.ymax<=v))),g.sort(((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x))),(h!==1||m%u==0)&&g.length>1)for(let b=0;b<g.length;b+=2){const w=b+1;if(w>=g.length)break;const S=g[b].edge,k=g[w].edge;f.push([[Math.round(S.x),v],[Math.round(k.x),v]])}v+=h,g.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),m++}return f})(o,a,i);if(n){for(const c of o)c_(c,s,-n);(function(c,u,h){const d=[];c.forEach((f=>d.push(...f))),c_(d,u,h)})(l,s,-n)}return l}function rd(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),ect(e,n,i,a||1)}class PS{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=rd(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function jm(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class rct extends PS{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=rd(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,o=[],s=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[c,u]of n)jm([c,u])&&o.push([[c[0]-s,c[1]+l],[...u]],[[c[0]+s,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class ict extends PS{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class nct{constructor(t){this.helper=t}fillPolygons(t,r){const i=rd(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const o=n/4;for(const s of t){const l=jm(s),c=l/n,u=Math.ceil(c)-1,h=l-u*n,d=(s[0][0]+s[1][0])/2-n/4,f=Math.min(s[0][1],s[1][1]);for(let p=0;p<u;p++){const g=f+h+p*n,v=d-o+2*Math.random()*o,m=g-o+2*Math.random()*o,b=this.helper.ellipse(v,m,a,a,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class act{constructor(t){this.helper=t}fillPolygons(t,r){const i=rd(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return t.forEach((o=>{const s=jm(o),l=Math.floor(s/(i+n)),c=(s+n-l*(i+n))/2;let u=o[0],h=o[1];u[0]>h[0]&&(u=o[1],h=o[0]);const d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let f=0;f<l;f++){const p=f*(i+n),g=p+i,v=[u[0]+p*Math.cos(d)+c*Math.cos(d),u[1]+p*Math.sin(d)+c*Math.sin(d)],m=[u[0]+g*Math.cos(d)+c*Math.cos(d),u[1]+g*Math.sin(d)+c*Math.sin(d)];a.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],r))}})),a}}class oct{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,a=rd(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((a=>{const o=jm(a),s=Math.round(o/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<s;h++){const d=2*h*r,f=2*(h+1)*r,p=Math.sqrt(2*Math.pow(r,2)),g=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[l[0]+f*Math.cos(u),l[1]+f*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];n.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],i),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],i))}})),n}}const bi={};class sct{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const lct=0,u_=1,mL=2,Sp={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function h_(e,t){return e.type===t}function BS(e){const t=[],r=(function(o){const s=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))s[s.length]={type:lct,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];s[s.length]={type:u_,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return s[s.length]={type:mL,text:""},s})(e);let i="BOD",n=0,a=r[n];for(;!h_(a,mL);){let o=0;const s=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return BS("M0,0"+e);n++,o=Sp[a.text],i=a.text}else h_(a,u_)?o=Sp[i]:(n++,o=Sp[a.text],i=a.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let l=n;l<n+o;l++){const c=r[l];if(!h_(c,u_))throw new Error("Param not a number: "+i+","+c.text);s[s.length]=+c.text}if(typeof Sp[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:s};t.push(l),n+=o,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function w$(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:o,data:s}of e)switch(o){case"M":a.push({key:"M",data:[...s]}),[t,r]=s,[i,n]=s;break;case"m":t+=s[0],r+=s[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...s]}),[t,r]=s;break;case"l":t+=s[0],r+=s[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...s]}),t=s[4],r=s[5];break;case"c":{const l=s.map(((c,u)=>u%2?c+r:c+t));a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...s]}),t=s[2],r=s[3];break;case"q":{const l=s.map(((c,u)=>u%2?c+r:c+t));a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...s]}),t=s[5],r=s[6];break;case"a":t+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],t,r]});break;case"H":a.push({key:"H",data:[...s]}),t=s[0];break;case"h":t+=s[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),t=s[2],r=s[3];break;case"s":{const l=s.map(((c,u)=>u%2?c+r:c+t));a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...s]}),t=s[0],r=s[1];break;case"t":t+=s[0],r+=s[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function S$(e){const t=[];let r="",i=0,n=0,a=0,o=0,s=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[i,n]=u,[a,o]=u;break;case"C":t.push({key:"C",data:[...u]}),i=u[4],n=u[5],s=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[i,n]=u;break;case"H":i=u[0],t.push({key:"L",data:[i,n]});break;case"V":n=u[0],t.push({key:"L",data:[i,n]});break;case"S":{let h=0,d=0;r==="C"||r==="S"?(h=i+(i-s),d=n+(n-l)):(h=i,d=n),t.push({key:"C",data:[h,d,...u]}),s=u[0],l=u[1],i=u[2],n=u[3];break}case"T":{const[h,d]=u;let f=0,p=0;r==="Q"||r==="T"?(f=i+(i-s),p=n+(n-l)):(f=i,p=n);const g=i+2*(f-i)/3,v=n+2*(p-n)/3,m=h+2*(f-h)/3,b=d+2*(p-d)/3;t.push({key:"C",data:[g,v,m,b,h,d]}),s=f,l=p,i=h,n=d;break}case"Q":{const[h,d,f,p]=u,g=i+2*(h-i)/3,v=n+2*(d-n)/3,m=f+2*(h-f)/3,b=p+2*(d-p)/3;t.push({key:"C",data:[g,v,m,b,f,p]}),s=h,l=d,i=f,n=p;break}case"A":{const h=Math.abs(u[0]),d=Math.abs(u[1]),f=u[2],p=u[3],g=u[4],v=u[5],m=u[6];h===0||d===0?(t.push({key:"C",data:[i,n,v,m,v,m]}),i=v,n=m):(i!==v||n!==m)&&(C$(i,n,v,m,h,d,f,p,g).forEach((function(b){t.push({key:"C",data:b})})),i=v,n=m);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=o}r=c}return t}function Yu(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function C$(e,t,r,i,n,a,o,s,l,c){const u=(h=o,Math.PI*h/180);var h;let d=[],f=0,p=0,g=0,v=0;if(c)[f,p,g,v]=c;else{[e,t]=Yu(e,t,-u),[r,i]=Yu(r,i,-u);const O=(e-r)/2,F=(t-i)/2;let z=O*O/(n*n)+F*F/(a*a);z>1&&(z=Math.sqrt(z),n*=z,a*=z);const H=n*n,U=a*a,q=H*U-H*F*F-U*O*O,K=H*F*F+U*O*O,et=(s===l?-1:1)*Math.sqrt(Math.abs(q/K));g=et*n*F/a+(e+r)/2,v=et*-a*O/n+(t+i)/2,f=Math.asin(parseFloat(((t-v)/a).toFixed(9))),p=Math.asin(parseFloat(((i-v)/a).toFixed(9))),e<g&&(f=Math.PI-f),r<g&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),l&&f>p&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}let m=p-f;if(Math.abs(m)>120*Math.PI/180){const O=p,F=r,z=i;p=l&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=C$(r=g+n*Math.cos(p),i=v+a*Math.sin(p),F,z,n,a,o,0,l,[p,O,g,v])}m=p-f;const b=Math.cos(f),w=Math.sin(f),S=Math.cos(p),k=Math.sin(p),M=Math.tan(m/4),T=4/3*n*M,I=4/3*a*M,B=[e,t],R=[e+T*w,t-I*b],D=[r+T*k,i-I*S],$=[r,i];if(R[0]=2*B[0]-R[0],R[1]=2*B[1]-R[1],c)return[R,D,$].concat(d);{d=[R,D,$].concat(d);const O=[];for(let F=0;F<d.length;F+=3){const z=Yu(d[F][0],d[F][1],u),H=Yu(d[F+1][0],d[F+1][1],u),U=Yu(d[F+2][0],d[F+2][1],u);O.push([z[0],z[1],H[0],H[1],U[0],U[1]])}return O}}const cct={randOffset:function(e,t){return ie(e,t)},randOffsetWithRange:function(e,t,r){return Ov(e,t,r)},ellipse:function(e,t,r,i,n){const a=k$(r,i,n);return Vx(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return Uo(e,t,r,i,n,!0)}};function T$(e,t,r,i,n){return{type:"path",ops:Uo(e,t,r,i,n)}}function ag(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...Uo(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...Uo(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?T$(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function uct(e,t,r,i,n){return(function(a,o){return ag(a,!0,o)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function yL(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Cp(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Cp(r[0],1.5*(1+.22*t.roughness),xL(t));for(let a=1;a<r.length;a++){const o=r[a];if(o.length){const s=Cp(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Cp(o,1.5*(1+.22*t.roughness),xL(t));for(const c of s)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&n.push(c)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function k$(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),a=2*Math.PI/n;let o=Math.abs(e/2),s=Math.abs(t/2);const l=1-r.curveFitting;return o+=ie(o*l,r),s+=ie(s*l,r),{increment:a,rx:o,ry:s}}function Vx(e,t,r,i){const[n,a]=wL(i.increment,e,t,i.rx,i.ry,1,i.increment*Ov(.1,Ov(.4,1,r),r),r);let o=Rv(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[s]=wL(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Rv(s,null,r);o=o.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function _L(e,t,r,i,n,a,o,s,l){const c=e,u=t;let h=Math.abs(r/2),d=Math.abs(i/2);h+=ie(.01*h,l),d+=ie(.01*d,l);let f=n,p=a;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,v=Math.min(g/2,(p-f)/2),m=SL(v,c,u,h,d,f,p,1,l);if(!l.disableMultiStroke){const b=SL(v,c,u,h,d,f,p,1.5,l);m.push(...b)}return o&&(s?m.push(...Uo(c,u,c+h*Math.cos(f),u+d*Math.sin(f),l),...Uo(c,u,c+h*Math.cos(p),u+d*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(f),u+d*Math.sin(f)]})),{type:"path",ops:m}}function bL(e,t){const r=S$(w$(BS(e))),i=[];let n=[0,0],a=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":a=[s[0],s[1]],n=[s[0],s[1]];break;case"L":i.push(...Uo(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]];break;case"C":{const[l,c,u,h,d,f]=s;i.push(...hct(l,c,u,h,d,f,a,t)),a=[d,f];break}case"Z":i.push(...Uo(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function f_(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+ie(n,t),i[0][1]+ie(n,t)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+ie(n,t),i[o][1]+ie(n,t)]})}}return{type:"fillPath",ops:r}}function Kl(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!bi[n])switch(n){case"zigzag":bi[n]||(bi[n]=new rct(i));break;case"cross-hatch":bi[n]||(bi[n]=new ict(i));break;case"dots":bi[n]||(bi[n]=new nct(i));break;case"dashed":bi[n]||(bi[n]=new act(i));break;case"zigzag-line":bi[n]||(bi[n]=new oct(i));break;default:n="hachure",bi[n]||(bi[n]=new PS(i))}return bi[n]})(t,cct).fillPolygons(e,t)}function xL(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function A$(e){return e.randomizer||(e.randomizer=new sct(e.seed||0)),e.randomizer.next()}function Ov(e,t,r,i=1){return r.roughness*i*(A$(r)*(t-e)+e)}function ie(e,t,r=1){return Ov(-e,e,t,r)}function Uo(e,t,r,i,n,a=!1){const o=a?n.disableMultiStrokeFill:n.disableMultiStroke,s=Ux(e,t,r,i,n,!0,!1);if(o)return s;const l=Ux(e,t,r,i,n,!0,!0);return s.concat(l)}function Ux(e,t,r,i,n,a,o){const s=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=n.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);const h=u/2,d=.2+.2*A$(n);let f=n.bowing*n.maxRandomnessOffset*(i-t)/200,p=n.bowing*n.maxRandomnessOffset*(e-r)/200;f=ie(f,n,c),p=ie(p,n,c);const g=[],v=()=>ie(h,n,c),m=()=>ie(u,n,c),b=n.preserveVertices;return o?g.push({op:"move",data:[e+(b?0:v()),t+(b?0:v())]}):g.push({op:"move",data:[e+(b?0:ie(u,n,c)),t+(b?0:ie(u,n,c))]}),o?g.push({op:"bcurveTo",data:[f+e+(r-e)*d+v(),p+t+(i-t)*d+v(),f+e+2*(r-e)*d+v(),p+t+2*(i-t)*d+v(),r+(b?0:v()),i+(b?0:v())]}):g.push({op:"bcurveTo",data:[f+e+(r-e)*d+m(),p+t+(i-t)*d+m(),f+e+2*(r-e)*d+m(),p+t+2*(i-t)*d+m(),r+(b?0:m()),i+(b?0:m())]}),g}function Cp(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+ie(t,r),e[0][1]+ie(t,r)]),i.push([e[0][0]+ie(t,r),e[0][1]+ie(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+ie(t,r),e[n][1]+ie(t,r)]),n===e.length-1&&i.push([e[n][0]+ie(t,r),e[n][1]+ie(t,r)]);return Rv(i,null,r)}function Rv(e,t,r){const i=e.length,n=[];if(i>3){const a=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let s=1;s+2<i;s++){const l=e[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*e[s+1][0]-o*e[s-1][0])/6,l[1]+(o*e[s+1][1]-o*e[s-1][1])/6],a[2]=[e[s+1][0]+(o*e[s][0]-o*e[s+2][0])/6,e[s+1][1]+(o*e[s][1]-o*e[s+2][1])/6],a[3]=[e[s+1][0],e[s+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...Ux(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function wL(e,t,r,i,n,a,o,s){const l=[],c=[];if(s.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let u=0;u<=2*Math.PI;u+=e){const h=[t+i*Math.cos(u),r+n*Math.sin(u)];l.push(h),c.push(h)}c.push([t+i*Math.cos(0),r+n*Math.sin(0)]),c.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const u=ie(.5,s)-Math.PI/2;c.push([ie(a,s)+t+.9*i*Math.cos(u-e),ie(a,s)+r+.9*n*Math.sin(u-e)]);const h=2*Math.PI+u-.01;for(let d=u;d<h;d+=e){const f=[ie(a,s)+t+i*Math.cos(d),ie(a,s)+r+n*Math.sin(d)];l.push(f),c.push(f)}c.push([ie(a,s)+t+i*Math.cos(u+2*Math.PI+.5*o),ie(a,s)+r+n*Math.sin(u+2*Math.PI+.5*o)]),c.push([ie(a,s)+t+.98*i*Math.cos(u+o),ie(a,s)+r+.98*n*Math.sin(u+o)]),c.push([ie(a,s)+t+.9*i*Math.cos(u+.5*o),ie(a,s)+r+.9*n*Math.sin(u+.5*o)])}return[c,l]}function SL(e,t,r,i,n,a,o,s,l){const c=a+ie(.1,l),u=[];u.push([ie(s,l)+t+.9*i*Math.cos(c-e),ie(s,l)+r+.9*n*Math.sin(c-e)]);for(let h=c;h<=o;h+=e)u.push([ie(s,l)+t+i*Math.cos(h),ie(s,l)+r+n*Math.sin(h)]);return u.push([t+i*Math.cos(o),r+n*Math.sin(o)]),u.push([t+i*Math.cos(o),r+n*Math.sin(o)]),Rv(u,null,l)}function hct(e,t,r,i,n,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let u=[0,0];const h=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let f=0;f<h;f++)f===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(d?0:ie(c[0],s)),o[1]+(d?0:ie(c[0],s))]}),u=d?[n,a]:[n+ie(c[f],s),a+ie(c[f],s)],l.push({op:"bcurveTo",data:[e+ie(c[f],s),t+ie(c[f],s),r+ie(c[f],s),i+ie(c[f],s),u[0],u[1]]});return l}function ju(e){return[...e]}function CL(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(ju(e[0]),ju(e[1]),ju(e[2]),ju(e[2]));else{const n=[];n.push(e[0],e[0]);for(let s=1;s<e.length;s++)n.push(e[s]),s===e.length-1&&n.push(e[s]);const a=[],o=1-t;i.push(ju(n[0]));for(let s=1;s+2<n.length;s++){const l=n[s];a[0]=[l[0],l[1]],a[1]=[l[0]+(o*n[s+1][0]-o*n[s-1][0])/6,l[1]+(o*n[s+1][1]-o*n[s-1][1])/6],a[2]=[n[s+1][0]+(o*n[s][0]-o*n[s+2][0])/6,n[s+1][1]+(o*n[s][1]-o*n[s+2][1])/6],a[3]=[n[s+1][0],n[s+1][1]],i.push(a[1],a[2],a[3])}}return i}function og(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function fct(e,t,r){const i=og(t,r);if(i===0)return og(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),og(e,Os(t,r,n))}function Os(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Yx(e,t,r,i){const n=i||[];if((function(s,l){const c=s[l+0],u=s[l+1],h=s[l+2],d=s[l+3];let f=3*u[0]-2*c[0]-d[0];f*=f;let p=3*u[1]-2*c[1]-d[1];p*=p;let g=3*h[0]-2*d[0]-c[0];g*=g;let v=3*h[1]-2*d[1]-c[1];return v*=v,f<g&&(f=g),p<v&&(p=v),f+p})(e,t)<r){const s=e[t+0];n.length?(a=n[n.length-1],o=s,Math.sqrt(og(a,o))>1&&n.push(s)):n.push(s),n.push(e[t+3])}else{const l=e[t+0],c=e[t+1],u=e[t+2],h=e[t+3],d=Os(l,c,.5),f=Os(c,u,.5),p=Os(u,h,.5),g=Os(d,f,.5),v=Os(f,p,.5),m=Os(g,v,.5);Yx([l,d,g,m],0,r,n),Yx([m,v,p,h],0,r,n)}var a,o;return n}function dct(e,t){return Fv(e,0,e.length,t)}function Fv(e,t,r,i,n){const a=n||[],o=e[t],s=e[r-1];let l=0,c=1;for(let u=t+1;u<r-1;++u){const h=fct(e[u],o,s);h>l&&(l=h,c=u)}return Math.sqrt(l)>i?(Fv(e,t,c+1,i,a),Fv(e,c,r,i,a)):(a.length||a.push(o),a.push(s)),a}function d_(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)Yx(e,3*a,t,i);return r&&r>0?Fv(i,0,i.length,r):i}const Pi="none";class $v{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,a){const o=this._o(a);return this._d("line",[T$(t,r,i,n,o)],o)}rectangle(t,r,i,n,a){const o=this._o(a),s=[],l=uct(t,r,i,n,o);if(o.fill){const c=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?s.push(f_([c],o)):s.push(Kl([c],o))}return o.stroke!==Pi&&s.push(l),this._d("rectangle",s,o)}ellipse(t,r,i,n,a){const o=this._o(a),s=[],l=k$(i,n,o),c=Vx(t,r,o,l);if(o.fill)if(o.fillStyle==="solid"){const u=Vx(t,r,o,l).opset;u.type="fillPath",s.push(u)}else s.push(Kl([c.estimatedPoints],o));return o.stroke!==Pi&&s.push(c.opset),this._d("ellipse",s,o)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[ag(t,!1,i)],i)}arc(t,r,i,n,a,o,s=!1,l){const c=this._o(l),u=[],h=_L(t,r,i,n,a,o,s,!0,c);if(s&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const f=_L(t,r,i,n,a,o,!0,!1,d);f.type="fillPath",u.push(f)}else u.push((function(d,f,p,g,v,m,b){const w=d,S=f;let k=Math.abs(p/2),M=Math.abs(g/2);k+=ie(.01*k,b),M+=ie(.01*M,b);let T=v,I=m;for(;T<0;)T+=2*Math.PI,I+=2*Math.PI;I-T>2*Math.PI&&(T=0,I=2*Math.PI);const B=(I-T)/b.curveStepCount,R=[];for(let D=T;D<=I;D+=B)R.push([w+k*Math.cos(D),S+M*Math.sin(D)]);return R.push([w+k*Math.cos(I),S+M*Math.sin(I)]),R.push([w,S]),Kl([R],b)})(t,r,i,n,a,o,c));return c.stroke!==Pi&&u.push(h),this._d("arc",u,c)}curve(t,r){const i=this._o(r),n=[],a=yL(t,i);if(i.fill&&i.fill!==Pi)if(i.fillStyle==="solid"){const o=yL(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],s=t;if(s.length){const l=typeof s[0][0]=="number"?[s]:s;for(const c of l)c.length<3?o.push(...c):c.length===3?o.push(...d_(CL([c[0],c[0],c[1],c[2]]),10,(1+i.roughness)/2)):o.push(...d_(CL(c),10,(1+i.roughness)/2))}o.length&&n.push(Kl([o],i))}return i.stroke!==Pi&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=ag(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(f_([t],i)):n.push(Kl([t],i))),i.stroke!==Pi&&n.push(a),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=i.fill&&i.fill!=="transparent"&&i.fill!==Pi,o=i.stroke!==Pi,s=!!(i.simplification&&i.simplification<1),l=(function(u,h,d){const f=S$(w$(BS(u))),p=[];let g=[],v=[0,0],m=[];const b=()=>{m.length>=4&&g.push(...d_(m,h)),m=[]},w=()=>{b(),g.length&&(p.push(g),g=[])};for(const{key:k,data:M}of f)switch(k){case"M":w(),v=[M[0],M[1]],g.push(v);break;case"L":b(),g.push([M[0],M[1]]);break;case"C":if(!m.length){const T=g.length?g[g.length-1]:v;m.push([T[0],T[1]])}m.push([M[0],M[1]]),m.push([M[2],M[3]]),m.push([M[4],M[5]]);break;case"Z":b(),g.push([v[0],v[1]])}if(w(),!d)return p;const S=[];for(const k of p){const M=dct(k,d);M.length&&S.push(M)}return S})(t,1,s?4-4*(i.simplification||1):(1+i.roughness)/2),c=bL(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const u=bL(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else n.push(f_(l,i));else n.push(Kl(l,i));return o&&(s?l.forEach((u=>{n.push(ag(u,!1,i))})):n.push(c)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map((o=>+o.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let o=null;switch(a.type){case"path":o={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Pi};break;case"fillPath":o={d:this.opsToPath(a),stroke:Pi,strokeWidth:0,fill:i.fill||Pi};break;case"fillSketch":o=this.fillSketch(a,i)}o&&n.push(o)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Pi,strokeWidth:i,fill:Pi}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class pct{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new $v(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const s=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,a,s),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const a of r.ops){const o=typeof i=="number"&&i>=0?a.data.map((s=>+s.toFixed(i))):a.data;switch(a.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o),o}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o),o}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o),o}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const Tp="http://www.w3.org/2000/svg";class gct{constructor(t,r){this.svg=t,this.gen=new $v(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(Tp,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of r){let l=null;switch(s.type){case"path":l=n.createElementNS(Tp,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(Tp,"path"),l.setAttribute("d",this.opsToPath(s,o)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,s,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(Tp,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const o=this.gen.line(t,r,i,n,a);return this.draw(o)}rectangle(t,r,i,n,a){const o=this.gen.rectangle(t,r,i,n,a);return this.draw(o)}ellipse(t,r,i,n,a){const o=this.gen.ellipse(t,r,i,n,a);return this.draw(o)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,a,o,s=!1,l){const c=this.gen.arc(t,r,i,n,a,o,s,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var $t={canvas:(e,t)=>new pct(e,t),svg:(e,t)=>new gct(e,t),generator:e=>new $v(e),newSeed:()=>$v.newSeed()},ee=A(async(e,t,r)=>{let i;const n=t.useHtmlLabels||Tr(Be()?.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=a.insert("g").attr("class","label").attr("style",Qr(t.labelStyle));let s;t.label===void 0?s="":s=typeof t.label=="string"?t.label:t.label[0];const l=await Jo(o,cn(Al(s),Be()),{useHtmlLabels:n,width:t.width||Be().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let c=l.getBBox();const u=(t?.padding??0)/2;if(n){const h=l.children[0],d=Ce(l),f=h.getElementsByTagName("img");if(f){const p=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...f].map(g=>new Promise(v=>{function m(){if(g.style.display="flex",g.style.flexDirection="column",p){const b=Be().fontSize?Be().fontSize:window.getComputedStyle(document.body).fontSize,w=5,[S=HO.fontSize]=Gm(b),k=S*w+"px";g.style.minWidth=k,g.style.maxWidth=k}else g.style.width="100%";v(g)}A(m,"setupImage"),setTimeout(()=>{g.complete&&m()}),g.addEventListener("error",m),g.addEventListener("load",m)})))}c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}return n?o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):o.attr("transform","translate(0, "+-c.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:u,label:o}},"labelHelper"),p_=A(async(e,t,r)=>{const i=r.useHtmlLabels||Tr(Be()?.flowchart?.htmlLabels),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await Jo(n,cn(Al(t),Be()),{useHtmlLabels:i,width:r.width||Be()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=a.getBBox();const s=r.padding/2;if(Tr(Be()?.flowchart?.htmlLabels)){const l=a.children[0],c=Ce(a);o=l.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:s,label:n}},"insertLabel"),Wt=A((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Jt=A((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function _e(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}A(_e,"createPathFromPoints");function Yo(e,t,r,i,n,a){const o=[],l=r-e,c=i-t,u=l/a,h=2*Math.PI/u,d=t+c/2;for(let f=0;f<=50;f++){const p=f/50,g=e+p*l,v=d+n*Math.sin(h*(g-e));o.push({x:g,y:v})}return o}A(Yo,"generateFullSineWavePoints");function Lf(e,t,r,i,n,a){const o=[],s=n*Math.PI/180,u=(a*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const d=s+h*u,f=e+r*Math.cos(d),p=t+r*Math.sin(d);o.push({x:-f,y:-p})}return o}A(Lf,"generateCirclePoints");var vct=A((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,o=e.width/2,s=e.height/2,l,c;return Math.abs(a)*o>Math.abs(n)*s?(a<0&&(s=-s),l=a===0?0:s*n/a,c=s):(n<0&&(o=-o),l=o,c=n===0?0:o*a/n),{x:r+l,y:i+c}},"intersectRect"),eu=vct;function M$(e,t){t&&e.attr("style",t)}A(M$,"applyStyle");async function L$(e){const t=Ce(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=Be();let n=e.label;e.label&&Hc(e.label)&&(n=await Hw(e.label.replace(Kc.lineBreakRegex,`
|
|
204
|
+
`),i));const o='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+n+"</span>";return r.html(cn(o,i)),M$(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}A(L$,"addHtmlLabel");var mct=A(async(e,t,r,i)=>{let n=e||"";if(typeof n=="object"&&(n=n[0]),Tr(Be().flowchart.htmlLabels)){n=n.replace(/\\n|\n/g,"<br />"),ht.info("vertexText"+n);const a={isNode:i,label:Al(n).replace(/fa[blrs]?:fa-[\w-]+/g,s=>`<i class='${s.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await L$(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof n=="string"?o=n.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(n)?o=n:o=[];for(const s of o){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=s.trim(),a.appendChild(l)}return a}},"createLabel"),Us=mct,ts=A((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),D$=A(async(e,t)=>{ht.info("Creating subgraph rect for ",t.id,t);const r=Be(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=Ht(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=Tr(r.flowchart.htmlLabels),f=h.insert("g").attr("class","cluster-label "),p=await Jo(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0});let g=p.getBBox();if(Tr(r.flowchart.htmlLabels)){const T=p.children[0],I=Ce(p);g=T.getBoundingClientRect(),I.attr("width",g.width),I.attr("height",g.height)}const v=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,b=t.x-v/2,w=t.y-m/2;ht.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const T=$t.svg(h),I=zt(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),B=T.path(ts(b,w,v,m,0),I);S=h.insert(()=>(ht.debug("Rough node insert CXC",B),B),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",w).attr("width",v).attr("height",m);const{subGraphTitleTopMargin:k}=fS(r);if(f.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+k})`),s){const T=f.select("span");T&&T.attr("style",s)}const M=S.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=g.height-t.padding/2,t.intersect=function(T){return eu(t,T)},{cluster:h,labelBBox:g}},"rect"),yct=A((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),n=0*t.padding,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(s){return eu(t,s)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),_ct=A(async(e,t)=>{const r=Be(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),u=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const f=h.node().appendChild(await Us(t.label,t.labelStyle,void 0,!0));let p=f.getBBox();if(Tr(r.flowchart.htmlLabels)){const B=f.children[0],R=Ce(f);p=B.getBoundingClientRect(),R.attr("width",p.width),R.attr("height",p.height)}const g=0*t.padding,v=g/2,m=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+g;t.width<=p.width+t.padding?t.diff=(m-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+g,w=t.height+g-p.height-6,S=t.x-m/2,k=t.y-b/2;t.width=m;const M=t.y-t.height/2-v+p.height+2;let T;if(t.look==="handDrawn"){const B=t.cssClasses.includes("statediagram-cluster-alt"),R=$t.svg(c),D=t.rx||t.ry?R.path(ts(S,k,m,b,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:n}):R.rectangle(S,k,m,b,{seed:n});T=c.insert(()=>D,":first-child");const $=R.rectangle(S,M,m,w,{fill:B?a:o,fillStyle:B?"hachure":"solid",stroke:l,seed:n});T=c.insert(()=>D,":first-child"),d=c.insert(()=>$)}else T=u.insert("rect",":first-child"),T.attr("class","outer").attr("x",S).attr("y",k).attr("width",m).attr("height",b).attr("data-look",t.look),d.attr("class","inner").attr("x",S).attr("y",M).attr("width",m).attr("height",w);h.attr("transform",`translate(${t.x-p.width/2}, ${k+1-(Tr(r.flowchart.htmlLabels)?0:3)})`);const I=T.node().getBBox();return t.height=I.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(B){return eu(t,B)},{cluster:c,labelBBox:p}},"roundedWithTitle"),bct=A(async(e,t)=>{ht.info("Creating subgraph rect for ",t.id,t);const r=Be(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:o}=i,{labelStyles:s,nodeStyles:l,borderStyles:c,backgroundStyles:u}=Ht(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),d=Tr(r.flowchart.htmlLabels),f=h.insert("g").attr("class","cluster-label "),p=await Jo(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let g=p.getBBox();if(Tr(r.flowchart.htmlLabels)){const T=p.children[0],I=Ce(p);g=T.getBoundingClientRect(),I.attr("width",g.width),I.attr("height",g.height)}const v=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;const m=t.height,b=t.x-v/2,w=t.y-m/2;ht.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const T=$t.svg(h),I=zt(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:n}),B=T.path(ts(b,w,v,m,t.rx),I);S=h.insert(()=>(ht.debug("Rough node insert CXC",B),B),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",w).attr("width",v).attr("height",m);const{subGraphTitleTopMargin:k}=fS(r);if(f.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+k})`),s){const T=f.select("span");T&&T.attr("style",s)}const M=S.node().getBBox();return t.offsetX=0,t.width=M.width,t.height=M.height,t.offsetY=g.height-t.padding/2,t.intersect=function(T){return eu(t,T)},{cluster:h,labelBBox:g}},"kanbanSection"),xct=A((e,t)=>{const r=Be(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),s=o.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const u=t.height+l,h=t.x-c/2,d=t.y-u/2;t.width=c;let f;if(t.look==="handDrawn"){const v=$t.svg(o).rectangle(h,d,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});f=o.insert(()=>v,":first-child")}else f=s.insert("rect",":first-child"),f.attr("class","divider").attr("x",h).attr("y",d).attr("width",c).attr("height",u).attr("data-look",t.look);const p=f.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(g){return eu(t,g)},{cluster:o,labelBBox:{}}},"divider"),wct=D$,Sct={rect:D$,squareRect:wct,roundedWithTitle:_ct,noteGroup:yct,divider:xct,kanbanSection:bct},E$=new Map,Cct=A(async(e,t)=>{const r=t.shape||"rect",i=await Sct[r](e,t);return E$.set(t.id,i),i},"insertCluster"),ppt=A(()=>{E$=new Map},"clear");function I$(e,t){return e.intersect(t)}A(I$,"intersectNode");var Tct=I$;function P$(e,t,r,i){var n=e.x,a=e.y,o=n-i.x,s=a-i.y,l=Math.sqrt(t*t*s*s+r*r*o*o),c=Math.abs(t*r*o/l);i.x<n&&(c=-c);var u=Math.abs(t*r*s/l);return i.y<a&&(u=-u),{x:n+c,y:a+u}}A(P$,"intersectEllipse");var B$=P$;function O$(e,t,r){return B$(e,t,t,r)}A(O$,"intersectCircle");var kct=O$;function R$(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=n*r.x+a*r.y+o,l=n*i.x+a*i.y+o,c=1e-6;if(s!==0&&l!==0&&jx(s,l))return;const u=i.y-r.y,h=r.x-i.x,d=i.x*r.y-r.x*i.y,f=u*e.x+h*e.y+d,p=u*t.x+h*t.y+d;if(Math.abs(f)<c&&Math.abs(p)<c&&jx(f,p))return;const g=n*h-u*a;if(g===0)return;const v=Math.abs(g/2);let m=a*d-h*o;const b=m<0?(m-v)/g:(m+v)/g;m=u*o-n*d;const w=m<0?(m-v)/g:(m+v)/g;return{x:b,y:w}}}A(R$,"intersectLine");function jx(e,t){return e*t>0}A(jx,"sameSign");var Act=R$;function F$(e,t,r){let i=e.x,n=e.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(u){o=Math.min(o,u.x),s=Math.min(s,u.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let l=i-e.width/2-o,c=n-e.height/2-s;for(let u=0;u<t.length;u++){let h=t[u],d=t[u<t.length-1?u+1:0],f=Act(e,r,{x:l+h.x,y:c+h.y},{x:l+d.x,y:c+d.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort(function(u,h){let d=u.x-r.x,f=u.y-r.y,p=Math.sqrt(d*d+f*f),g=h.x-r.x,v=h.y-r.y,m=Math.sqrt(g*g+v*v);return p<m?-1:p===m?0:1}),a[0]):e}A(F$,"intersectPolygon");var Mct=F$,Dt={node:Tct,circle:kct,ellipse:B$,polygon:Mct,rect:eu};function $$(e,t){const{labelStyles:r}=Ht(t);t.labelStyle=r;const i=Jt(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:s}=t,l=$t.svg(a),c=zt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,o*2,c),h=a.insert(()=>u,":first-child");return h.attr("class","anchor").attr("style",Qr(s)),Wt(t,h),t.intersect=function(d){return ht.info("Circle intersect",t,o,d),Dt.circle(t,o,d)},a}A($$,"anchor");function Xx(e,t,r,i,n,a,o){const l=(e+r)/2,c=(t+i)/2,u=Math.atan2(i-t,r-e),h=(r-e)/2,d=(i-t)/2,f=h/n,p=d/a,g=Math.sqrt(f**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const v=Math.sqrt(1-g**2),m=l+v*a*Math.sin(u)*(o?-1:1),b=c-v*n*Math.cos(u)*(o?-1:1),w=Math.atan2((t-b)/a,(e-m)/n);let k=Math.atan2((i-b)/a,(r-m)/n)-w;o&&k<0&&(k+=2*Math.PI),!o&&k>0&&(k-=2*Math.PI);const M=[];for(let T=0;T<20;T++){const I=T/19,B=w+I*k,R=m+n*Math.cos(B),D=b+a*Math.sin(B);M.push({x:R,y:D})}return M}A(Xx,"generateArcPoints");async function N$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.width+t.padding+20,s=a.height+t.padding,l=s/2,c=l/(2.5+s/50),{cssStyles:u}=t,h=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...Xx(-o/2,-s/2,-o/2,s/2,c,l,!1),{x:o/2,y:s/2},...Xx(o/2,s/2,o/2,-s/2,c,l,!0)],d=$t.svg(n),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=_e(h),g=d.path(p,f),v=n.insert(()=>g,":first-child");return v.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${c/2}, 0)`),Wt(t,v),t.intersect=function(m){return Dt.polygon(t,h,m)},n}A(N$,"bowTieRect");function es(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}A(es,"insertPolygonShape");async function z$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.height+t.padding,s=12,l=a.width+t.padding+s,c=0,u=l,h=-o,d=0,f=[{x:c+s,y:h},{x:u,y:h},{x:u,y:d},{x:c,y:d},{x:c,y:h+s},{x:c+s,y:h}];let p;const{cssStyles:g}=t;if(t.look==="handDrawn"){const v=$t.svg(n),m=zt(t,{}),b=_e(f),w=v.path(b,m);p=n.insert(()=>w,":first-child").attr("transform",`translate(${-l/2}, ${o/2})`),g&&p.attr("style",g)}else p=es(n,l,o,f);return i&&p.attr("style",i),Wt(t,p),t.intersect=function(v){return Dt.polygon(t,f,v)},n}A(z$,"card");function H$(e,t){const{nodeStyles:r}=Ht(t);t.label="";const i=e.insert("g").attr("class",Jt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=$t.svg(i),l=zt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=_e(o),u=s.path(c,l),h=i.insert(()=>u,":first-child");return n&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(d){return Dt.polygon(t,o,d)},i}A(H$,"choice");async function OS(e,t,r){const{labelStyles:i,nodeStyles:n}=Ht(t);t.labelStyle=i;const{shapeSvg:a,bbox:o,halfPadding:s}=await ee(e,t,Jt(t)),l=r?.padding??s,c=o.width/2+l;let u;const{cssStyles:h}=t;if(t.look==="handDrawn"){const d=$t.svg(a),f=zt(t,{}),p=d.circle(0,0,c*2,f);u=a.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",Qr(h))}else u=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return Wt(t,u),t.calcIntersect=function(d,f){const p=d.width/2;return Dt.circle(d,p,f)},t.intersect=function(d){return ht.info("Circle intersect",t,c,d),Dt.circle(t,c,d)},a}A(OS,"circle");function W$(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},a={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},s={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
205
|
+
M ${n.x},${n.y} L ${o.x},${o.y}`}A(W$,"createLine");function G$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",Jt(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:o}=t,s=$t.svg(n),l=zt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=s.circle(0,0,a*2,l),u=W$(a),h=s.path(u,l),d=n.insert(()=>c,":first-child");return d.insert(()=>h),o&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),Wt(t,d),t.intersect=function(f){return ht.info("crossedCircle intersect",t,{radius:a,point:f}),Dt.circle(t,a,f)},n}A(G$,"crossedCircle");function Ca(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,u=(a*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const d=s+h*u,f=e+r*Math.cos(d),p=t+r*Math.sin(d);o.push({x:-f,y:-p})}return o}A(Ca,"generateCirclePoints");async function q$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,h=[...Ca(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...Ca(s/2+c*2,-c,c,20,-180,-270),...Ca(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...Ca(s/2,l/2,c,20,0,90)],d=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...Ca(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...Ca(s/2+s*.1,-c,c,20,-180,-270),...Ca(s/2+s*.1,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...Ca(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2,y:l/2+c}],f=$t.svg(n),p=zt(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const v=_e(h).replace("Z",""),m=f.path(v,p),b=_e(d),w=f.path(b,{...p}),S=n.insert("g",":first-child");return S.insert(()=>w,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${c}, 0)`),o.attr("transform",`translate(${-s/2+c-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Wt(t,S),t.intersect=function(k){return Dt.polygon(t,d,k)},n}A(q$,"curlyBraceLeft");function Ta(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,u=(a*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const d=s+h*u,f=e+r*Math.cos(d),p=t+r*Math.sin(d);o.push({x:f,y:p})}return o}A(Ta,"generateCirclePoints");async function V$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,h=[...Ta(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Ta(s/2+c*2,-c,c,20,-180,-270),...Ta(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Ta(s/2,l/2,c,20,0,90)],d=[{x:-s/2,y:-l/2-c},{x:s/2,y:-l/2-c},...Ta(s/2,-l/2,c,20,-90,0),{x:s/2+c,y:-c},...Ta(s/2+c*2,-c,c,20,-180,-270),...Ta(s/2+c*2,c,c,20,-90,-180),{x:s/2+c,y:l/2},...Ta(s/2,l/2,c,20,0,90),{x:s/2,y:l/2+c},{x:-s/2,y:l/2+c}],f=$t.svg(n),p=zt(t,{fill:"none"});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const v=_e(h).replace("Z",""),m=f.path(v,p),b=_e(d),w=f.path(b,{...p}),S=n.insert("g",":first-child");return S.insert(()=>w,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${-c}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Wt(t,S),t.intersect=function(k){return Dt.polygon(t,d,k)},n}A(V$,"curlyBraceRight");function Ir(e,t,r,i=100,n=0,a=180){const o=[],s=n*Math.PI/180,u=(a*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const d=s+h*u,f=e+r*Math.cos(d),p=t+r*Math.sin(d);o.push({x:-f,y:-p})}return o}A(Ir,"generateCirclePoints");async function U$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=a.width+(t.padding??0),l=a.height+(t.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=t,h=[...Ir(s/2,-l/2,c,30,-90,0),{x:-s/2-c,y:c},...Ir(s/2+c*2,-c,c,20,-180,-270),...Ir(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:-l/2},...Ir(s/2,l/2,c,20,0,90)],d=[...Ir(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...Ir(-s/2-c/2,-c,c,20,0,90),...Ir(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...Ir(-s/2+c+c/2,l/2,c,30,-180,-270)],f=[{x:s/2,y:-l/2-c},{x:-s/2,y:-l/2-c},...Ir(s/2,-l/2,c,20,-90,0),{x:-s/2-c,y:-c},...Ir(s/2+c*2,-c,c,20,-180,-270),...Ir(s/2+c*2,c,c,20,-90,-180),{x:-s/2-c,y:l/2},...Ir(s/2,l/2,c,20,0,90),{x:-s/2,y:l/2+c},{x:s/2-c-c/2,y:l/2+c},...Ir(-s/2+c+c/2,-l/2,c,20,-90,-180),{x:s/2-c/2,y:c},...Ir(-s/2-c/2,-c,c,20,0,90),...Ir(-s/2-c/2,c,c,20,-90,0),{x:s/2-c/2,y:-c},...Ir(-s/2+c+c/2,l/2,c,30,-180,-270)],p=$t.svg(n),g=zt(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=_e(h).replace("Z",""),b=p.path(m,g),S=_e(d).replace("Z",""),k=p.path(S,g),M=_e(f),T=p.path(M,{...g}),I=n.insert("g",":first-child");return I.insert(()=>T,":first-child").attr("stroke-opacity",0),I.insert(()=>b,":first-child"),I.insert(()=>k,":first-child"),I.attr("class","text"),u&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${c-c/4}, 0)`),o.attr("transform",`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Wt(t,I),t.intersect=function(B){return Dt.polygon(t,f,B)},n}A(U$,"curlyBraces");async function Y$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=80,s=20,l=Math.max(o,(a.width+(t.padding??0)*2)*1.25,t?.width??0),c=Math.max(s,a.height+(t.padding??0)*2,t?.height??0),u=c/2,{cssStyles:h}=t,d=$t.svg(n),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=l,g=c,v=p-u,m=g/4,b=[{x:v,y:0},{x:m,y:0},{x:0,y:g/2},{x:m,y:g},{x:v,y:g},...Lf(-v,-g/2,u,50,270,90)],w=_e(b),S=d.path(w,f),k=n.insert(()=>S,":first-child");return k.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),k.attr("transform",`translate(${-l/2}, ${-c/2})`),Wt(t,k),t.intersect=function(M){return Dt.polygon(t,b,M)},n}A(Y$,"curvedTrapezoid");var Lct=A((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),Dct=A((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Ect=A((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function j$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+t.padding,t.width??0),l=s/2,c=l/(2.5+s/50),u=Math.max(a.height+c+t.padding,t.height??0);let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=$t.svg(n),p=Dct(0,0,s,u,l,c),g=Ect(0,c,s,u,l,c),v=f.path(p,zt(t,{})),m=f.path(g,zt(t,{fill:"none"}));h=n.insert(()=>m,":first-child"),h=n.insert(()=>v,":first-child"),h.attr("class","basic label-container"),d&&h.attr("style",d)}else{const f=Lct(0,0,s,u,l,c);h=n.insert("path",":first-child").attr("d",f).attr("class","basic label-container").attr("style",Qr(d)).attr("style",i)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-s/2}, ${-(u/2+c)})`),Wt(t,h),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(f){const p=Dt.rect(t,f),g=p.x-(t.x??0);if(l!=0&&(Math.abs(g)<(t.width??0)/2||Math.abs(g)==(t.width??0)/2&&Math.abs(p.y-(t.y??0))>(t.height??0)/2-c)){let v=c*c*(1-g*g/(l*l));v>0&&(v=Math.sqrt(v)),v=c-v,f.y-(t.y??0)>0&&(v=-v),p.y+=v}return p},n}A(j$,"cylinder");async function X$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=a.width+t.padding,l=a.height+t.padding,c=l*.2,u=-s/2,h=-l/2-c/2,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:h+c},{x:-u,y:h+c},{x:-u,y:-h},{x:u,y:-h},{x:u,y:h},{x:-u,y:h},{x:-u,y:h+c}],v=f.polygon(g.map(b=>[b.x,b.y]),p),m=n.insert(()=>v,":first-child");return m.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${u+(t.padding??0)/2-(a.x-(a.left??0))}, ${h+c+(t.padding??0)/2-(a.y-(a.top??0))})`),Wt(t,m),t.intersect=function(b){return Dt.rect(t,b)},n}A(X$,"dividedRectangle");async function Z$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o}=await ee(e,t,Jt(t)),l=a.width/2+o+5,c=a.width/2+o;let u;const{cssStyles:h}=t;if(t.look==="handDrawn"){const d=$t.svg(n),f=zt(t,{roughness:.2,strokeWidth:2.5}),p=zt(t,{roughness:.2,strokeWidth:1.5}),g=d.circle(0,0,l*2,f),v=d.circle(0,0,c*2,p);u=n.insert("g",":first-child"),u.attr("class",Qr(t.cssClasses)).attr("style",Qr(h)),u.node()?.appendChild(g),u.node()?.appendChild(v)}else{u=n.insert("g",":first-child");const d=u.insert("circle",":first-child"),f=u.insert("circle");u.attr("class","basic label-container").attr("style",i),d.attr("class","outer-circle").attr("style",i).attr("r",l).attr("cx",0).attr("cy",0),f.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return Wt(t,u),t.intersect=function(d){return ht.info("DoubleCircle intersect",t,l,d),Dt.circle(t,l,d)},n}A(Z$,"doublecircle");function K$(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Ht(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",Jt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:s}=t,l=$t.svg(a),{nodeBorder:c}=r,u=zt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const h=l.circle(0,0,o*2,u),d=a.insert(()=>h,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),s&&s.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",n),Wt(t,d),t.intersect=function(f){return ht.info("filledCircle intersect",t,{radius:o,point:f}),Dt.circle(t,o,f)},a}A(K$,"filledCircle");async function Q$(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=a.width+(t.padding??0),l=s+a.height,c=s+a.height,u=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:h}=t,d=$t.svg(n),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=_e(u),g=d.path(p,f),v=n.insert(()=>g,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return h&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),t.width=s,t.height=l,Wt(t,v),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-l/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(m){return ht.info("Triangle intersect",t,u,m),Dt.polygon(t,u,m)},n}A(Q$,"flippedTriangle");function J$(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=Ht(t);t.label="";const o=e.insert("g").attr("class",Jt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t;let l=Math.max(70,t?.width??0),c=Math.max(10,t?.height??0);r==="LR"&&(l=Math.max(10,t?.width??0),c=Math.max(70,t?.height??0));const u=-1*l/2,h=-1*c/2,d=$t.svg(o),f=zt(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=d.rectangle(u,h,l,c,f),g=o.insert(()=>p,":first-child");s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),Wt(t,g);const v=i?.padding??0;return t.width&&t.height&&(t.width+=v/2||0,t.height+=v/2||0),t.intersect=function(m){return Dt.rect(t,m)},o}A(J$,"forkJoin");async function tN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const n=80,a=50,{shapeSvg:o,bbox:s}=await ee(e,t,Jt(t)),l=Math.max(n,s.width+(t.padding??0)*2,t?.width??0),c=Math.max(a,s.height+(t.padding??0)*2,t?.height??0),u=c/2,{cssStyles:h}=t,d=$t.svg(o),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=[{x:-l/2,y:-c/2},{x:l/2-u,y:-c/2},...Lf(-l/2+u,0,u,50,90,270),{x:l/2-u,y:c/2},{x:-l/2,y:c/2}],g=_e(p),v=d.path(g,f),m=o.insert(()=>v,":first-child");return m.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),Wt(t,m),t.intersect=function(b){return ht.info("Pill intersect",t,{radius:u,point:b}),Dt.polygon(t,p,b)},o}A(tN,"halfRoundedRectangle");async function eN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.height+(t.padding??0),s=a.width+(t.padding??0)*2.5,{cssStyles:l}=t,c=$t.svg(n),u=zt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=s/2;const d=h/6;h=h+d;const f=o/2,p=f/2,g=h-p,v=[{x:-g,y:-f},{x:0,y:-f},{x:g,y:-f},{x:h,y:0},{x:g,y:f},{x:0,y:f},{x:-g,y:f},{x:-h,y:0}],m=_e(v),b=c.path(m,u),w=n.insert(()=>b,":first-child");return w.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=s,t.height=o,Wt(t,w),t.intersect=function(S){return Dt.polygon(t,v,S)},n}A(eN,"hexagon");async function rN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await ee(e,t,Jt(t)),a=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:s}=t,l=$t.svg(n),c=zt(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:a,y:0},{x:0,y:o},{x:a,y:o}],h=_e(u),d=l.path(h,c),f=n.insert(()=>d,":first-child");return f.attr("class","basic label-container"),s&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",s),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-a/2}, ${-o/2})`),Wt(t,f),t.intersect=function(p){return ht.info("Pill intersect",t,{points:u}),Dt.polygon(t,u,p)},n}A(rN,"hourglass");async function iN(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Ht(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i?.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await ee(e,t,"icon-shape default"),d=t.pos==="t",f=s,p=s,{nodeBorder:g}=r,{stylesMap:v}=Qc(t),m=-p/2,b=-f/2,w=t.label?8:0,S=$t.svg(c),k=zt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const M=S.rectangle(m,b,p,f,k),T=Math.max(p,u.width),I=f+u.height+w,B=S.rectangle(-T/2,-I/2,T,I,{...k,fill:"transparent",stroke:"none"}),R=c.insert(()=>M,":first-child"),D=c.insert(()=>B);if(t.icon){const $=c.append("g");$.html(`<g>${await ed(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const O=$.node().getBBox(),F=O.width,z=O.height,H=O.x,U=O.y;$.attr("transform",`translate(${-F/2-H},${d?u.height/2+w/2-z/2-U:-u.height/2-w/2-z/2-U})`),$.attr("style",`color: ${v.get("stroke")??g};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-I/2:I/2-u.height})`),R.attr("transform",`translate(0,${d?u.height/2+w/2:-u.height/2-w/2})`),Wt(t,D),t.intersect=function($){if(ht.info("iconSquare intersect",t,$),!t.label)return Dt.rect(t,$);const O=t.x??0,F=t.y??0,z=t.height??0;let H=[];return d?H=[{x:O-u.width/2,y:F-z/2},{x:O+u.width/2,y:F-z/2},{x:O+u.width/2,y:F-z/2+u.height+w},{x:O+p/2,y:F-z/2+u.height+w},{x:O+p/2,y:F+z/2},{x:O-p/2,y:F+z/2},{x:O-p/2,y:F-z/2+u.height+w},{x:O-u.width/2,y:F-z/2+u.height+w}]:H=[{x:O-p/2,y:F-z/2},{x:O+p/2,y:F-z/2},{x:O+p/2,y:F-z/2+f},{x:O+u.width/2,y:F-z/2+f},{x:O+u.width/2/2,y:F+z/2},{x:O-u.width/2,y:F+z/2},{x:O-u.width/2,y:F-z/2+f},{x:O-p/2,y:F-z/2+f}],Dt.polygon(t,H,$)},c}A(iN,"icon");async function nN(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Ht(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i?.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,label:h}=await ee(e,t,"icon-shape default"),d=20,f=t.label?8:0,p=t.pos==="t",{nodeBorder:g,mainBkg:v}=r,{stylesMap:m}=Qc(t),b=$t.svg(c),w=zt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=m.get("fill");w.stroke=S??v;const k=c.append("g");t.icon&&k.html(`<g>${await ed(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const M=k.node().getBBox(),T=M.width,I=M.height,B=M.x,R=M.y,D=Math.max(T,I)*Math.SQRT2+d*2,$=b.circle(0,0,D,w),O=Math.max(D,u.width),F=D+u.height+f,z=b.rectangle(-O/2,-F/2,O,F,{...w,fill:"transparent",stroke:"none"}),H=c.insert(()=>$,":first-child"),U=c.insert(()=>z);return k.attr("transform",`translate(${-T/2-B},${p?u.height/2+f/2-I/2-R:-u.height/2-f/2-I/2-R})`),k.attr("style",`color: ${m.get("stroke")??g};`),h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-F/2:F/2-u.height})`),H.attr("transform",`translate(0,${p?u.height/2+f/2:-u.height/2-f/2})`),Wt(t,U),t.intersect=function(q){return ht.info("iconSquare intersect",t,q),Dt.rect(t,q)},c}A(nN,"iconCircle");async function aN(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Ht(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i?.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await ee(e,t,"icon-shape default"),f=t.pos==="t",p=s+h*2,g=s+h*2,{nodeBorder:v,mainBkg:m}=r,{stylesMap:b}=Qc(t),w=-g/2,S=-p/2,k=t.label?8:0,M=$t.svg(c),T=zt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const I=b.get("fill");T.stroke=I??m;const B=M.path(ts(w,S,g,p,5),T),R=Math.max(g,u.width),D=p+u.height+k,$=M.rectangle(-R/2,-D/2,R,D,{...T,fill:"transparent",stroke:"none"}),O=c.insert(()=>B,":first-child").attr("class","icon-shape2"),F=c.insert(()=>$);if(t.icon){const z=c.append("g");z.html(`<g>${await ed(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const H=z.node().getBBox(),U=H.width,q=H.height,K=H.x,et=H.y;z.attr("transform",`translate(${-U/2-K},${f?u.height/2+k/2-q/2-et:-u.height/2-k/2-q/2-et})`),z.attr("style",`color: ${b.get("stroke")??v};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${f?-D/2:D/2-u.height})`),O.attr("transform",`translate(0,${f?u.height/2+k/2:-u.height/2-k/2})`),Wt(t,F),t.intersect=function(z){if(ht.info("iconSquare intersect",t,z),!t.label)return Dt.rect(t,z);const H=t.x??0,U=t.y??0,q=t.height??0;let K=[];return f?K=[{x:H-u.width/2,y:U-q/2},{x:H+u.width/2,y:U-q/2},{x:H+u.width/2,y:U-q/2+u.height+k},{x:H+g/2,y:U-q/2+u.height+k},{x:H+g/2,y:U+q/2},{x:H-g/2,y:U+q/2},{x:H-g/2,y:U-q/2+u.height+k},{x:H-u.width/2,y:U-q/2+u.height+k}]:K=[{x:H-g/2,y:U-q/2},{x:H+g/2,y:U-q/2},{x:H+g/2,y:U-q/2+p},{x:H+u.width/2,y:U-q/2+p},{x:H+u.width/2/2,y:U+q/2},{x:H-u.width/2,y:U+q/2},{x:H-u.width/2,y:U-q/2+p},{x:H-g/2,y:U-q/2+p}],Dt.polygon(t,K,z)},c}A(aN,"iconRounded");async function oN(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Ht(t);t.labelStyle=n;const a=t.assetHeight??48,o=t.assetWidth??48,s=Math.max(a,o),l=i?.wrappingWidth;t.width=Math.max(s,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:d}=await ee(e,t,"icon-shape default"),f=t.pos==="t",p=s+h*2,g=s+h*2,{nodeBorder:v,mainBkg:m}=r,{stylesMap:b}=Qc(t),w=-g/2,S=-p/2,k=t.label?8:0,M=$t.svg(c),T=zt(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const I=b.get("fill");T.stroke=I??m;const B=M.path(ts(w,S,g,p,.1),T),R=Math.max(g,u.width),D=p+u.height+k,$=M.rectangle(-R/2,-D/2,R,D,{...T,fill:"transparent",stroke:"none"}),O=c.insert(()=>B,":first-child"),F=c.insert(()=>$);if(t.icon){const z=c.append("g");z.html(`<g>${await ed(t.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const H=z.node().getBBox(),U=H.width,q=H.height,K=H.x,et=H.y;z.attr("transform",`translate(${-U/2-K},${f?u.height/2+k/2-q/2-et:-u.height/2-k/2-q/2-et})`),z.attr("style",`color: ${b.get("stroke")??v};`)}return d.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${f?-D/2:D/2-u.height})`),O.attr("transform",`translate(0,${f?u.height/2+k/2:-u.height/2-k/2})`),Wt(t,F),t.intersect=function(z){if(ht.info("iconSquare intersect",t,z),!t.label)return Dt.rect(t,z);const H=t.x??0,U=t.y??0,q=t.height??0;let K=[];return f?K=[{x:H-u.width/2,y:U-q/2},{x:H+u.width/2,y:U-q/2},{x:H+u.width/2,y:U-q/2+u.height+k},{x:H+g/2,y:U-q/2+u.height+k},{x:H+g/2,y:U+q/2},{x:H-g/2,y:U+q/2},{x:H-g/2,y:U-q/2+u.height+k},{x:H-u.width/2,y:U-q/2+u.height+k}]:K=[{x:H-g/2,y:U-q/2},{x:H+g/2,y:U-q/2},{x:H+g/2,y:U-q/2+p},{x:H+u.width/2,y:U-q/2+p},{x:H+u.width/2/2,y:U+q/2},{x:H-u.width/2,y:U+q/2},{x:H-u.width/2,y:U-q/2+p},{x:H-g/2,y:U-q/2+p}],Dt.polygon(t,K,z)},c}A(oN,"iconSquare");async function sN(e,t,{config:{flowchart:r}}){const i=new Image;i.src=t?.img??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:o}=Ht(t);t.labelStyle=o;const s=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;const l=Math.max(t.label?s??0:0,t?.assetWidth??n),c=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,u=t.constraint==="on"?c/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(c,s??0);const{shapeSvg:h,bbox:d,label:f}=await ee(e,t,"image-shape default"),p=t.pos==="t",g=-c/2,v=-u/2,m=t.label?8:0,b=$t.svg(h),w=zt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=b.rectangle(g,v,c,u,w),k=Math.max(c,d.width),M=u+d.height+m,T=b.rectangle(-k/2,-M/2,k,M,{...w,fill:"none",stroke:"none"}),I=h.insert(()=>S,":first-child"),B=h.insert(()=>T);if(t.img){const R=h.append("image");R.attr("href",t.img),R.attr("width",c),R.attr("height",u),R.attr("preserveAspectRatio","none"),R.attr("transform",`translate(${-c/2},${p?M/2-u:-M/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-u/2-d.height/2-m/2:u/2-d.height/2+m/2})`),I.attr("transform",`translate(0,${p?d.height/2+m/2:-d.height/2-m/2})`),Wt(t,B),t.intersect=function(R){if(ht.info("iconSquare intersect",t,R),!t.label)return Dt.rect(t,R);const D=t.x??0,$=t.y??0,O=t.height??0;let F=[];return p?F=[{x:D-d.width/2,y:$-O/2},{x:D+d.width/2,y:$-O/2},{x:D+d.width/2,y:$-O/2+d.height+m},{x:D+c/2,y:$-O/2+d.height+m},{x:D+c/2,y:$+O/2},{x:D-c/2,y:$+O/2},{x:D-c/2,y:$-O/2+d.height+m},{x:D-d.width/2,y:$-O/2+d.height+m}]:F=[{x:D-c/2,y:$-O/2},{x:D+c/2,y:$-O/2},{x:D+c/2,y:$-O/2+u},{x:D+d.width/2,y:$-O/2+u},{x:D+d.width/2/2,y:$+O/2},{x:D-d.width/2,y:$+O/2},{x:D-d.width/2,y:$-O/2+u},{x:D-c/2,y:$-O/2+u}],Dt.polygon(t,F,R)},h}A(sN,"imageSquare");async function lN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),s=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const h=$t.svg(n),d=zt(t,{}),f=_e(l),p=h.path(f,d);c=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),u&&c.attr("style",u)}else c=es(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Wt(t,c),t.intersect=function(h){return Dt.polygon(t,l,h)},n}A(lN,"inv_trapezoid");async function Xm(e,t,r){const{labelStyles:i,nodeStyles:n}=Ht(t);t.labelStyle=i;const{shapeSvg:a,bbox:o}=await ee(e,t,Jt(t)),s=Math.max(o.width+r.labelPaddingX*2,t?.width||0),l=Math.max(o.height+r.labelPaddingY*2,t?.height||0),c=-s/2,u=-l/2;let h,{rx:d,ry:f}=t;const{cssStyles:p}=t;if(r?.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const g=$t.svg(a),v=zt(t,{}),m=d||f?g.path(ts(c,u,s,l,d||0),v):g.rectangle(c,u,s,l,v);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Qr(p))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",n).attr("rx",Qr(d)).attr("ry",Qr(f)).attr("x",c).attr("y",u).attr("width",s).attr("height",l);return Wt(t,h),t.calcIntersect=function(g,v){return Dt.rect(g,v)},t.intersect=function(g){return Dt.rect(t,g)},a}A(Xm,"drawRect");async function cN(e,t){const{shapeSvg:r,bbox:i,label:n}=await ee(e,t,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Wt(t,a),t.intersect=function(l){return Dt.rect(t,l)},r}A(cN,"labelRect");async function uN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=Math.max(a.width+(t.padding??0),t?.width??0),s=Math.max(a.height+(t.padding??0),t?.height??0),l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const h=$t.svg(n),d=zt(t,{}),f=_e(l),p=h.path(f,d);c=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),u&&c.attr("style",u)}else c=es(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Wt(t,c),t.intersect=function(h){return Dt.polygon(t,l,h)},n}A(uN,"lean_left");async function hN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=Math.max(a.width+(t.padding??0),t?.width??0),s=Math.max(a.height+(t.padding??0),t?.height??0),l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const h=$t.svg(n),d=zt(t,{}),f=_e(l),p=h.path(f,d);c=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),u&&c.attr("style",u)}else c=es(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Wt(t,c),t.intersect=function(h){return Dt.polygon(t,l,h)},n}A(hN,"lean_right");function fN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",Jt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,o=Math.max(35,t?.width??0),s=Math.max(35,t?.height??0),l=7,c=[{x:o,y:0},{x:0,y:s+l/2},{x:o-2*l,y:s+l/2},{x:0,y:2*s},{x:o,y:s-l/2},{x:2*l,y:s-l/2}],u=$t.svg(n),h=zt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=_e(c),f=u.path(d,h),p=n.insert(()=>f,":first-child");return a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${o/2},${-s})`),Wt(t,p),t.intersect=function(g){return ht.info("lightningBolt intersect",t,g),Dt.polygon(t,c,g)},n}A(fN,"lightningBolt");var Ict=A((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Pct=A((e,t,r,i,n,a,o)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+o}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Bct=A((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function dN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0),t.width??0),l=s/2,c=l/(2.5+s/50),u=Math.max(a.height+c+(t.padding??0),t.height??0),h=u*.1;let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=$t.svg(n),g=Pct(0,0,s,u,l,c,h),v=Bct(0,c,s,u,l,c),m=zt(t,{}),b=p.path(g,m),w=p.path(v,m);n.insert(()=>w,":first-child").attr("class","line"),d=n.insert(()=>b,":first-child"),d.attr("class","basic label-container"),f&&d.attr("style",f)}else{const p=Ict(0,0,s,u,l,c,h);d=n.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Qr(f)).attr("style",i)}return d.attr("label-offset-y",c),d.attr("transform",`translate(${-s/2}, ${-(u/2+c)})`),Wt(t,d),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),t.intersect=function(p){const g=Dt.rect(t,p),v=g.x-(t.x??0);if(l!=0&&(Math.abs(v)<(t.width??0)/2||Math.abs(v)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-c)){let m=c*c*(1-v*v/(l*l));m>0&&(m=Math.sqrt(m)),m=c-m,p.y-(t.y??0)>0&&(m=-m),g.y+=m}return g},n}A(dN,"linedCylinder");async function pN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,u=l+c,{cssStyles:h}=t,d=$t.svg(n),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=[{x:-s/2-s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:u/2},...Yo(-s/2-s/2*.1,u/2,s/2+s/2*.1,u/2,c,.8),{x:s/2+s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:-u/2},{x:-s/2,y:-u/2},{x:-s/2,y:u/2*1.1},{x:-s/2,y:-u/2}],g=d.polygon(p.map(m=>[m.x,m.y]),f),v=n.insert(()=>g,":first-child");return v.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Wt(t,v),t.intersect=function(m){return Dt.polygon(t,p,m)},n}A(pN,"linedWaveEdgedRect");async function gN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=5,u=-s/2,h=-l/2,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{}),g=[{x:u-c,y:h+c},{x:u-c,y:h+l+c},{x:u+s-c,y:h+l+c},{x:u+s-c,y:h+l},{x:u+s,y:h+l},{x:u+s,y:h+l-c},{x:u+s+c,y:h+l-c},{x:u+s+c,y:h-c},{x:u+c,y:h-c},{x:u+c,y:h},{x:u,y:h},{x:u,y:h+c}],v=[{x:u,y:h+c},{x:u+s-c,y:h+c},{x:u+s-c,y:h+l},{x:u+s,y:h+l},{x:u+s,y:h},{x:u,y:h}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=_e(g),b=f.path(m,p),w=_e(v),S=f.path(w,{...p,fill:"none"}),k=n.insert(()=>S,":first-child");return k.insert(()=>b,":first-child"),k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)-c-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),Wt(t,k),t.intersect=function(M){return Dt.polygon(t,g,M)},n}A(gN,"multiRect");async function vN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,u=l+c,h=-s/2,d=-u/2,f=5,{cssStyles:p}=t,g=Yo(h-f,d+u+f,h+s-f,d+u+f,c,.8),v=g?.[g.length-1],m=[{x:h-f,y:d+f},{x:h-f,y:d+u+f},...g,{x:h+s-f,y:v.y-f},{x:h+s,y:v.y-f},{x:h+s,y:v.y-2*f},{x:h+s+f,y:v.y-2*f},{x:h+s+f,y:d-f},{x:h+f,y:d-f},{x:h+f,y:d},{x:h,y:d},{x:h,y:d+f}],b=[{x:h,y:d+f},{x:h+s-f,y:d+f},{x:h+s-f,y:v.y-f},{x:h+s,y:v.y-f},{x:h+s,y:d},{x:h,y:d}],w=$t.svg(n),S=zt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const k=_e(m),M=w.path(k,S),T=_e(b),I=w.path(T,S),B=n.insert(()=>M,":first-child");return B.insert(()=>I),B.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-(a.width/2)-f-(a.x-(a.left??0))}, ${-(a.height/2)+f-c/2-(a.y-(a.top??0))})`),Wt(t,B),t.intersect=function(R){return Dt.polygon(t,m,R)},n}A(vN,"multiWaveEdgedRectangle");async function mN(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Ht(t);t.labelStyle=i,t.useHtmlLabels||Zr().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);const{shapeSvg:o,bbox:s,label:l}=await ee(e,t,Jt(t)),c=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=-c/2,d=-u/2,{cssStyles:f}=t,p=$t.svg(o),g=zt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=p.rectangle(h,d,c,u,g),m=o.insert(()=>v,":first-child");return m.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),l.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Wt(t,m),t.intersect=function(b){return Dt.rect(t,b)},o}A(mN,"note");var Oct=A((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function yN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.width+t.padding,s=a.height+t.padding,l=o+s,c=.5,u=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=$t.svg(n),p=zt(t,{}),g=Oct(0,0,l),v=f.path(g,p);h=n.insert(()=>v,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&h.attr("style",d)}else h=es(n,l,l,u),h.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&h.attr("style",i),Wt(t,h),t.calcIntersect=function(f,p){const g=f.width,v=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],m=Dt.polygon(f,v,p);return{x:m.x-.5,y:m.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},n}A(yN,"question");async function _N(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),l=Math.max(a.height+(t.padding??0),t?.height??0),c=-s/2,u=-l/2,h=u/2,d=[{x:c+h,y:u},{x:c,y:0},{x:c+h,y:-u},{x:-c,y:-u},{x:-c,y:u}],{cssStyles:f}=t,p=$t.svg(n),g=zt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=_e(d),m=p.path(v,g),b=n.insert(()=>m,":first-child");return b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-h/2},0)`),o.attr("transform",`translate(${-h/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Wt(t,b),t.intersect=function(w){return Dt.polygon(t,d,w)},n}A(_N,"rect_left_inv_arrow");async function bN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=a.insert("g"),s=a.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,u=s.node().appendChild(await Us(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(Tr(Be()?.flowchart?.htmlLabels)){const I=u.children[0],B=Ce(u);h=I.getBoundingClientRect(),B.attr("width",h.width),B.attr("height",h.height)}ht.info("Text 2",l);const d=l||[],f=u.getBBox(),p=s.node().appendChild(await Us(d.join?d.join("<br/>"):d,t.labelStyle,!0,!0)),g=p.children[0],v=Ce(p);h=g.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height);const m=(t.padding||0)/2;Ce(p).attr("transform","translate( "+(h.width>f.width?0:(f.width-h.width)/2)+", "+(f.height+m+5)+")"),Ce(u).attr("transform","translate( "+(h.width<f.width?0:-(f.width-h.width)/2)+", 0)"),h=s.node().getBBox(),s.attr("transform","translate("+-h.width/2+", "+(-h.height/2-m+3)+")");const b=h.width+(t.padding||0),w=h.height+(t.padding||0),S=-h.width/2-m,k=-h.height/2-m;let M,T;if(t.look==="handDrawn"){const I=$t.svg(a),B=zt(t,{}),R=I.path(ts(S,k,b,w,t.rx||0),B),D=I.line(-h.width/2-m,-h.height/2-m+f.height+m,h.width/2+m,-h.height/2-m+f.height+m,B);T=a.insert(()=>(ht.debug("Rough node insert CXC",R),D),":first-child"),M=a.insert(()=>(ht.debug("Rough node insert CXC",R),R),":first-child")}else M=o.insert("rect",":first-child"),T=o.insert("line"),M.attr("class","outer title-state").attr("style",i).attr("x",-h.width/2-m).attr("y",-h.height/2-m).attr("width",h.width+(t.padding||0)).attr("height",h.height+(t.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-m).attr("x2",h.width/2+m).attr("y1",-h.height/2-m+f.height+m).attr("y2",-h.height/2-m+f.height+m);return Wt(t,M),t.intersect=function(I){return Dt.rect(t,I)},a}A(bN,"rectWithTitle");function fh(e,t,r,i,n,a,o){const l=(e+r)/2,c=(t+i)/2,u=Math.atan2(i-t,r-e),h=(r-e)/2,d=(i-t)/2,f=h/n,p=d/a,g=Math.sqrt(f**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const v=Math.sqrt(1-g**2),m=l+v*a*Math.sin(u)*(o?-1:1),b=c-v*n*Math.cos(u)*(o?-1:1),w=Math.atan2((t-b)/a,(e-m)/n);let k=Math.atan2((i-b)/a,(r-m)/n)-w;o&&k<0&&(k+=2*Math.PI),!o&&k>0&&(k-=2*Math.PI);const M=[];for(let T=0;T<20;T++){const I=T/19,B=w+I*k,R=m+n*Math.cos(B),D=b+a*Math.sin(B);M.push({x:R,y:D})}return M}A(fh,"generateArcPoints");async function xN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=t?.padding??0,s=t?.padding??0,l=(t?.width?t?.width:a.width)+o*2,c=(t?.height?t?.height:a.height)+s*2,u=t.radius||5,h=t.taper||5,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{});t.stroke&&(p.stroke=t.stroke),t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-l/2+h,y:-c/2},{x:l/2-h,y:-c/2},...fh(l/2-h,-c/2,l/2,-c/2+h,u,u,!0),{x:l/2,y:-c/2+h},{x:l/2,y:c/2-h},...fh(l/2,c/2-h,l/2-h,c/2,u,u,!0),{x:l/2-h,y:c/2},{x:-l/2+h,y:c/2},...fh(-l/2+h,c/2,-l/2,c/2-h,u,u,!0),{x:-l/2,y:c/2-h},{x:-l/2,y:-c/2+h},...fh(-l/2,-c/2+h,-l/2+h,-c/2,u,u,!0)],v=_e(g),m=f.path(v,p),b=n.insert(()=>m,":first-child");return b.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),Wt(t,b),t.intersect=function(w){return Dt.polygon(t,g,w)},n}A(xN,"roundedRect");async function wN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=t?.padding??0,l=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=-a.width/2-s,h=-a.height/2-s,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:h},{x:u+l+8,y:h},{x:u+l+8,y:h+c},{x:u-8,y:h+c},{x:u-8,y:h},{x:u,y:h},{x:u,y:h+c}],v=f.polygon(g.map(b=>[b.x,b.y]),p),m=n.insert(()=>v,":first-child");return m.attr("class","basic label-container").attr("style",Qr(d)),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),d&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),o.attr("transform",`translate(${-l/2+4+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-(a.y-(a.top??0))})`),Wt(t,m),t.intersect=function(b){return Dt.rect(t,b)},n}A(wN,"shadedProcess");async function SN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=-s/2,u=-l/2,{cssStyles:h}=t,d=$t.svg(n),f=zt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const p=[{x:c,y:u},{x:c,y:u+l},{x:c+s,y:u+l},{x:c+s,y:u-l/2}],g=_e(p),v=d.path(g,f),m=n.insert(()=>v,":first-child");return m.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(0, ${l/4})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))}, ${-l/4+(t.padding??0)-(a.y-(a.top??0))})`),Wt(t,m),t.intersect=function(b){return Dt.polygon(t,p,b)},n}A(SN,"slopedRect");async function CN(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return Xm(e,t,r)}A(CN,"squareRect");async function TN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.height+t.padding,s=a.width+o/4+t.padding,l=o/2,{cssStyles:c}=t,u=$t.svg(n),h=zt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:-s/2+l,y:-o/2},{x:s/2-l,y:-o/2},...Lf(-s/2+l,0,l,50,90,270),{x:s/2-l,y:o/2},...Lf(s/2-l,0,l,50,270,450)],f=_e(d),p=u.path(f,h),g=n.insert(()=>p,":first-child");return g.attr("class","basic label-container outer-path"),c&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",i),Wt(t,g),t.intersect=function(v){return Dt.polygon(t,d,v)},n}A(TN,"stadium");async function kN(e,t){return Xm(e,t,{rx:5,ry:5})}A(kN,"state");function AN(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Ht(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:l}=r,c=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),u=$t.svg(c),h=zt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=u.circle(0,0,14,{...h,stroke:o,strokeWidth:2}),f=s??l,p=u.circle(0,0,5,{...h,fill:f,stroke:f,strokeWidth:2,fillStyle:"solid"}),g=c.insert(()=>d,":first-child");return g.insert(()=>p),a&&g.selectAll("path").attr("style",a),n&&g.selectAll("path").attr("style",n),Wt(t,g),t.intersect=function(v){return Dt.circle(t,7,v)},c}A(AN,"stateEnd");function MN(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const s=$t.svg(n).circle(0,0,14,Znt(i));a=n.insert(()=>s),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=n.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Wt(t,a),t.intersect=function(o){return Dt.circle(t,7,o)},n}A(MN,"stateStart");async function LN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=(t?.padding||0)/2,s=a.width+t.padding,l=a.height+t.padding,c=-a.width/2-o,u=-a.height/2-o,h=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look==="handDrawn"){const d=$t.svg(n),f=zt(t,{}),p=d.rectangle(c-8,u,s+16,l,f),g=d.line(c,u,c,u+l,f),v=d.line(c+s,u,c+s,u+l,f);n.insert(()=>g,":first-child"),n.insert(()=>v,":first-child");const m=n.insert(()=>p,":first-child"),{cssStyles:b}=t;m.attr("class","basic label-container").attr("style",Qr(b)),Wt(t,m)}else{const d=es(n,s,l,h);i&&d.attr("style",i),Wt(t,d)}return t.intersect=function(d){return Dt.polygon(t,h,d)},n}A(LN,"subroutine");async function DN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),s=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=-o/2,c=-s/2,u=.2*s,h=.2*s,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{}),g=[{x:l-u/2,y:c},{x:l+o+u/2,y:c},{x:l+o+u/2,y:c+s},{x:l-u/2,y:c+s}],v=[{x:l+o-u/2,y:c+s},{x:l+o+u/2,y:c+s},{x:l+o+u/2,y:c+s-h}];t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=_e(g),b=f.path(m,p),w=_e(v),S=f.path(w,{...p,fillStyle:"solid"}),k=n.insert(()=>S,":first-child");return k.insert(()=>b,":first-child"),k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),Wt(t,k),t.intersect=function(M){return Dt.polygon(t,g,M)},n}A(DN,"taggedRect");async function EN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/4,u=.2*s,h=.2*l,d=l+c,{cssStyles:f}=t,p=$t.svg(n),g=zt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=[{x:-s/2-s/2*.1,y:d/2},...Yo(-s/2-s/2*.1,d/2,s/2+s/2*.1,d/2,c,.8),{x:s/2+s/2*.1,y:-d/2},{x:-s/2-s/2*.1,y:-d/2}],m=-s/2+s/2*.1,b=-d/2-h*.4,w=[{x:m+s-u,y:(b+l)*1.4},{x:m+s,y:b+l-h},{x:m+s,y:(b+l)*.9},...Yo(m+s,(b+l)*1.3,m+s-u,(b+l)*1.5,-l*.03,.5)],S=_e(v),k=p.path(S,g),M=_e(w),T=p.path(M,{...g,fillStyle:"solid"}),I=n.insert(()=>T,":first-child");return I.insert(()=>k,":first-child"),I.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c/2-(a.y-(a.top??0))})`),Wt(t,I),t.intersect=function(B){return Dt.polygon(t,v,B)},n}A(EN,"taggedWaveEdgedRectangle");async function IN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=Math.max(a.width+t.padding,t?.width||0),s=Math.max(a.height+t.padding,t?.height||0),l=-o/2,c=-s/2,u=n.insert("rect",":first-child");return u.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",s),Wt(t,u),t.intersect=function(h){return Dt.rect(t,h)},n}A(IN,"text");var Rct=A((e,t,r,i,n,a)=>`M${e},${t}
|
|
206
|
+
a${n},${a} 0,0,1 0,${-i}
|
|
207
|
+
l${r},0
|
|
208
|
+
a${n},${a} 0,0,1 0,${i}
|
|
209
|
+
M${r},${-i}
|
|
210
|
+
a${n},${a} 0,0,0 0,${i}
|
|
211
|
+
l${-r},0`,"createCylinderPathD"),Fct=A((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),$ct=A((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function PN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o,halfPadding:s}=await ee(e,t,Jt(t)),l=t.look==="neo"?s*2:s,c=a.height+l,u=c/2,h=u/(2.5+c/50),d=a.width+h+l,{cssStyles:f}=t;let p;if(t.look==="handDrawn"){const g=$t.svg(n),v=Fct(0,0,d,c,h,u),m=$ct(0,0,d,c,h,u),b=g.path(v,zt(t,{})),w=g.path(m,zt(t,{fill:"none"}));p=n.insert(()=>w,":first-child"),p=n.insert(()=>b,":first-child"),p.attr("class","basic label-container"),f&&p.attr("style",f)}else{const g=Rct(0,0,d,c,h,u);p=n.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Qr(f)).attr("style",i),p.attr("class","basic label-container"),f&&p.selectAll("path").attr("style",f),i&&p.selectAll("path").attr("style",i)}return p.attr("label-offset-x",h),p.attr("transform",`translate(${-d/2}, ${c/2} )`),o.attr("transform",`translate(${-(a.width/2)-h-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),Wt(t,p),t.intersect=function(g){const v=Dt.rect(t,g),m=v.y-(t.y??0);if(u!=0&&(Math.abs(m)<(t.height??0)/2||Math.abs(m)==(t.height??0)/2&&Math.abs(v.x-(t.x??0))>(t.width??0)/2-h)){let b=h*h*(1-m*m/(u*u));b!=0&&(b=Math.sqrt(Math.abs(b))),b=h-b,g.x-(t.x??0)>0&&(b=-b),v.x+=b}return v},n}A(PN,"tiltedCylinder");async function BN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=a.width+t.padding,s=a.height+t.padding,l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let c;const{cssStyles:u}=t;if(t.look==="handDrawn"){const h=$t.svg(n),d=zt(t,{}),f=_e(l),p=h.path(f,d);c=n.insert(()=>p,":first-child").attr("transform",`translate(${-o/2}, ${s/2})`),u&&c.attr("style",u)}else c=es(n,o,s,l);return i&&c.attr("style",i),t.width=o,t.height=s,Wt(t,c),t.intersect=function(h){return Dt.polygon(t,l,h)},n}A(BN,"trapezoid");async function ON(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=60,s=20,l=Math.max(o,a.width+(t.padding??0)*2,t?.width??0),c=Math.max(s,a.height+(t.padding??0)*2,t?.height??0),{cssStyles:u}=t,h=$t.svg(n),d=zt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],p=_e(f),g=h.path(p,d),v=n.insert(()=>g,":first-child");return v.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),Wt(t,v),t.intersect=function(m){return Dt.polygon(t,f,m)},n}A(ON,"trapezoidalPentagon");async function RN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Tr(Be().flowchart?.htmlLabels),l=a.width+(t.padding??0),c=l+a.height,u=l+a.height,h=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-c}],{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=_e(h),v=f.path(g,p),m=n.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return d&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),t.width=l,t.height=c,Wt(t,m),o.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(t.padding??0)/(s?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return ht.info("Triangle intersect",t,h,b),Dt.polygon(t,h,b)},n}A(RN,"triangle");async function FN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=l/8,u=l+c,{cssStyles:h}=t,f=70-s,p=f>0?f/2:0,g=$t.svg(n),v=zt(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const m=[{x:-s/2-p,y:u/2},...Yo(-s/2-p,u/2,s/2+p,u/2,c,.8),{x:s/2+p,y:-u/2},{x:-s/2-p,y:-u/2}],b=_e(m),w=g.path(b,v),S=n.insert(()=>w,":first-child");return S.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",h),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(0,${-c/2})`),o.attr("transform",`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-c-(a.y-(a.top??0))})`),Wt(t,S),t.intersect=function(k){return Dt.polygon(t,m,k)},n}A(FN,"waveEdgedRectangle");async function $N(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await ee(e,t,Jt(t)),o=100,s=50,l=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),u=l/c;let h=l,d=c;h>d*u?d=h/u:h=d*u,h=Math.max(h,o),d=Math.max(d,s);const f=Math.min(d*.2,d/4),p=d+f*2,{cssStyles:g}=t,v=$t.svg(n),m=zt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const b=[{x:-h/2,y:p/2},...Yo(-h/2,p/2,h/2,p/2,f,1),{x:h/2,y:-p/2},...Yo(h/2,-p/2,-h/2,-p/2,f,-1)],w=_e(b),S=v.path(w,m),k=n.insert(()=>S,":first-child");return k.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),Wt(t,k),t.intersect=function(M){return Dt.polygon(t,b,M)},n}A($N,"waveRectangle");async function NN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:o}=await ee(e,t,Jt(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),l=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=5,u=-s/2,h=-l/2,{cssStyles:d}=t,f=$t.svg(n),p=zt(t,{}),g=[{x:u-c,y:h-c},{x:u-c,y:h+l},{x:u+s,y:h+l},{x:u+s,y:h-c}],v=`M${u-c},${h-c} L${u+s},${h-c} L${u+s},${h+l} L${u-c},${h+l} L${u-c},${h-c}
|
|
212
|
+
M${u-c},${h} L${u+s},${h}
|
|
213
|
+
M${u},${h-c} L${u},${h+l}`;t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=f.path(v,p),b=n.insert(()=>m,":first-child");return b.attr("transform",`translate(${c/2}, ${c/2})`),b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),o.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),Wt(t,b),t.intersect=function(w){return Dt.polygon(t,g,w)},n}A(NN,"windowPane");async function RS(e,t){const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:it}=Zr(),{background:at}=it,Ct={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${at}`]};await RS(e,Ct)}const i=Zr();t.useHtmlLabels=i.htmlLabels;let n=i.er?.diagramPadding??10,a=i.er?.entityPadding??6;const{cssStyles:o}=t,{labelStyles:s,nodeStyles:l}=Ht(t);if(r.attributes.length===0&&t.label){const it={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5};Ya(t.label,i)+it.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const at=await Xm(e,t,it);if(!Tr(i.htmlLabels)){const Ct=at.select("text"),xt=Ct.node()?.getBBox();Ct.attr("transform",`translate(${-xt.width/2}, 0)`)}return at}i.htmlLabels||(n*=1.25,a*=1.25);let c=Jt(t);c||(c="node default");const u=e.insert("g").attr("class",c).attr("id",t.domId||t.id),h=await rc(u,t.label??"",i,0,0,["name"],s);h.height+=a;let d=0;const f=[],p=[];let g=0,v=0,m=0,b=0,w=!0,S=!0;for(const it of r.attributes){const at=await rc(u,it.type,i,0,d,["attribute-type"],s);g=Math.max(g,at.width+n);const Ct=await rc(u,it.name,i,0,d,["attribute-name"],s);v=Math.max(v,Ct.width+n);const xt=await rc(u,it.keys.join(),i,0,d,["attribute-keys"],s);m=Math.max(m,xt.width+n);const Zt=await rc(u,it.comment,i,0,d,["attribute-comment"],s);b=Math.max(b,Zt.width+n);const ae=Math.max(at.height,Ct.height,xt.height,Zt.height)+a;p.push({yOffset:d,rowHeight:ae}),d+=ae}let k=4;m<=n&&(w=!1,m=0,k--),b<=n&&(S=!1,b=0,k--);const M=u.node().getBBox();if(h.width+n*2-(g+v+m+b)>0){const it=h.width+n*2-(g+v+m+b);g+=it/k,v+=it/k,m>0&&(m+=it/k),b>0&&(b+=it/k)}const T=g+v+m+b,I=$t.svg(u),B=zt(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let R=0;p.length>0&&(R=p.reduce((it,at)=>it+(at?.rowHeight??0),0));const D=Math.max(M.width+n*2,t?.width||0,T),$=Math.max((R??0)+h.height,t?.height||0),O=-D/2,F=-$/2;u.selectAll("g:not(:first-child)").each((it,at,Ct)=>{const xt=Ce(Ct[at]),Zt=xt.attr("transform");let ae=0,de=0;if(Zt){const qt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Zt);qt&&(ae=parseFloat(qt[1]),de=parseFloat(qt[2]),xt.attr("class").includes("attribute-name")?ae+=g:xt.attr("class").includes("attribute-keys")?ae+=g+v:xt.attr("class").includes("attribute-comment")&&(ae+=g+v+m))}xt.attr("transform",`translate(${O+n/2+ae}, ${de+F+h.height+a/2})`)}),u.select(".name").attr("transform","translate("+-h.width/2+", "+(F+a/2)+")");const z=I.rectangle(O,F,D,$,B),H=u.insert(()=>z,":first-child").attr("style",o.join("")),{themeVariables:U}=Zr(),{rowEven:q,rowOdd:K,nodeBorder:et}=U;f.push(0);for(const[it,at]of p.entries()){const xt=(it+1)%2===0&&at.yOffset!==0,Zt=I.rectangle(O,h.height+F+at?.yOffset,D,at?.rowHeight,{...B,fill:xt?q:K,stroke:et});u.insert(()=>Zt,"g.label").attr("style",o.join("")).attr("class",`row-rect-${xt?"even":"odd"}`)}let Q=I.line(O,h.height+F,D+O,h.height+F,B);u.insert(()=>Q).attr("class","divider"),Q=I.line(g+O,h.height+F,g+O,$+F,B),u.insert(()=>Q).attr("class","divider"),w&&(Q=I.line(g+v+O,h.height+F,g+v+O,$+F,B),u.insert(()=>Q).attr("class","divider")),S&&(Q=I.line(g+v+m+O,h.height+F,g+v+m+O,$+F,B),u.insert(()=>Q).attr("class","divider"));for(const it of f)Q=I.line(O,h.height+F+it,D+O,h.height+F+it,B),u.insert(()=>Q).attr("class","divider");if(Wt(t,H),l&&t.look!=="handDrawn"){const at=l.split(";")?.filter(Ct=>Ct.includes("stroke"))?.map(Ct=>`${Ct}`).join("; ");u.selectAll("path").attr("style",at??""),u.selectAll(".row-rect-even path").attr("style",l)}return t.intersect=function(it){return Dt.rect(t,it)},u}A(RS,"erBox");async function rc(e,t,r,i=0,n=0,a=[],o=""){const s=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==vM(t)&&(t=vM(t),t=t.replaceAll("<","<").replaceAll(">",">"));const l=s.node().appendChild(await Jo(s,t,{width:Ya(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let u=l.children[0];for(u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(Tr(r.htmlLabels)){const u=l.children[0];u.style.textAlign="start";const h=Ce(l);c=u.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}return c}A(rc,"addText");async function zN(e,t,r,i,n=r.class.padding??12){const a=i?0:3,o=e.insert("g").attr("class",Jt(t)).attr("id",t.domId||t.id);let s=null,l=null,c=null,u=null,h=0,d=0,f=0;if(s=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await dh(s,{text:`«${b}»`},0),h=s.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await dh(l,t,0,["font-weight: bolder"]);const p=l.node().getBBox();d=p.height,c=o.insert("g").attr("class","members-group text");let g=0;for(const b of t.members){const w=await dh(c,b,g,[b.parseClassifier()]);g+=w+a}f=c.node().getBBox().height,f<=0&&(f=n/2),u=o.insert("g").attr("class","methods-group text");let v=0;for(const b of t.methods){const w=await dh(u,b,v,[b.parseClassifier()]);v+=w+a}let m=o.node().getBBox();if(s!==null){const b=s.node().getBBox();s.attr("transform",`translate(${-b.width/2})`)}return l.attr("transform",`translate(${-p.width/2}, ${h})`),m=o.node().getBBox(),c.attr("transform",`translate(0, ${h+d+n*2})`),m=o.node().getBBox(),u.attr("transform",`translate(0, ${h+d+(f?f+n*4:n*2)})`),m=o.node().getBBox(),{shapeSvg:o,bbox:m}}A(zN,"textHelper");async function dh(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Zr();let o="useHtmlLabels"in t?t.useHtmlLabels:Tr(a.htmlLabels)??!0,s="";"text"in t?s=t.text:s=t.label,!o&&s.startsWith("\\")&&(s=s.substring(1)),Hc(s)&&(o=!0);const l=await Jo(n,Uw(Al(s)),{width:Ya(s,a)+50,classes:"markdown-node-label",useHtmlLabels:o},a);let c,u=1;if(o){const h=l.children[0],d=Ce(l);u=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(u+=h.innerHTML.split("<mrow>").length-1);const f=h.getElementsByTagName("img");if(f){const p=s.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...f].map(g=>new Promise(v=>{function m(){if(g.style.display="flex",g.style.flexDirection="column",p){const b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,S=parseInt(b,10)*5+"px";g.style.minWidth=S,g.style.maxWidth=S}else g.style.width="100%";v(g)}A(m,"setupImage"),setTimeout(()=>{g.complete&&m()}),g.addEventListener("error",m),g.addEventListener("load",m)})))}c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Ce(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),s[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),c=l.getBBox()}return n.attr("transform","translate(0,"+(-c.height/(2*u)+r)+")"),c.height}A(dh,"addText");async function HN(e,t){const r=Be(),i=r.class.padding??12,n=i,a=t.useHtmlLabels??Tr(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];const{shapeSvg:s,bbox:l}=await zN(e,t,r,a,n),{labelStyles:c,nodeStyles:u}=Ht(t);t.labelStyle=c,t.cssStyles=o.styles||"";const h=o.styles?.join(";")||u||"";t.cssStyles||(t.cssStyles=h.replaceAll("!important","").split(";"));const d=o.members.length===0&&o.methods.length===0&&!r.class?.hideEmptyMembersBox,f=$t.svg(s),p=zt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=l.width;let v=l.height;o.members.length===0&&o.methods.length===0?v+=n:o.members.length>0&&o.methods.length===0&&(v+=n*2);const m=-g/2,b=-v/2,w=f.rectangle(m-i,b-i-(d?i:o.members.length===0&&o.methods.length===0?-i/2:0),g+2*i,v+2*i+(d?i*2:o.members.length===0&&o.methods.length===0?-i:0),p),S=s.insert(()=>w,":first-child");S.attr("class","basic label-container");const k=S.node().getBBox();s.selectAll(".text").each((B,R,D)=>{const $=Ce(D[R]),O=$.attr("transform");let F=0;if(O){const q=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(O);q&&(F=parseFloat(q[2]))}let z=F+b+i-(d?i:o.members.length===0&&o.methods.length===0?-i/2:0);a||(z-=4);let H=m;($.attr("class").includes("label-group")||$.attr("class").includes("annotation-group"))&&(H=-$.node()?.getBBox().width/2||0,s.selectAll("text").each(function(U,q,K){window.getComputedStyle(K[q]).textAnchor==="middle"&&(H=0)})),$.attr("transform",`translate(${H}, ${z})`)});const M=s.select(".annotation-group").node().getBBox().height-(d?i/2:0)||0,T=s.select(".label-group").node().getBBox().height-(d?i/2:0)||0,I=s.select(".members-group").node().getBBox().height-(d?i/2:0)||0;if(o.members.length>0||o.methods.length>0||d){const B=f.line(k.x,M+T+b+i,k.x+k.width,M+T+b+i,p);s.insert(()=>B).attr("class","divider").attr("style",h)}if(d||o.members.length>0||o.methods.length>0){const B=f.line(k.x,M+T+I+b+n*2+i,k.x+k.width,M+T+I+b+i+n*2,p);s.insert(()=>B).attr("class","divider").attr("style",h)}if(o.look!=="handDrawn"&&s.selectAll("path").attr("style",h),S.select(":nth-child(2)").attr("style",h),s.selectAll(".divider").select("path").attr("style",h),t.labelStyle?s.selectAll("span").attr("style",t.labelStyle):s.selectAll("span").attr("style",h),!a){const B=RegExp(/color\s*:\s*([^;]*)/),R=B.exec(h);if(R){const D=R[0].replace("color","fill");s.selectAll("tspan").attr("style",D)}else if(c){const D=B.exec(c);if(D){const $=D[0].replace("color","fill");s.selectAll("tspan").attr("style",$)}}}return Wt(t,S),t.intersect=function(B){return Dt.rect(t,B)},s}A(HN,"classBox");async function WN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const n=t,a=t,o=20,s=20,l="verifyMethod"in t,c=Jt(t),u=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let h;l?h=await qn(u,`<<${n.type}>>`,0,t.labelStyle):h=await qn(u,"<<Element>>",0,t.labelStyle);let d=h;const f=await qn(u,n.name,d,t.labelStyle+"; font-weight: bold;");if(d+=f+s,l){const M=await qn(u,`${n.requirementId?`ID: ${n.requirementId}`:""}`,d,t.labelStyle);d+=M;const T=await qn(u,`${n.text?`Text: ${n.text}`:""}`,d,t.labelStyle);d+=T;const I=await qn(u,`${n.risk?`Risk: ${n.risk}`:""}`,d,t.labelStyle);d+=I,await qn(u,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,d,t.labelStyle)}else{const M=await qn(u,`${a.type?`Type: ${a.type}`:""}`,d,t.labelStyle);d+=M,await qn(u,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,d,t.labelStyle)}const p=(u.node()?.getBBox().width??200)+o,g=(u.node()?.getBBox().height??200)+o,v=-p/2,m=-g/2,b=$t.svg(u),w=zt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=b.rectangle(v,m,p,g,w),k=u.insert(()=>S,":first-child");if(k.attr("class","basic label-container").attr("style",i),u.selectAll(".label").each((M,T,I)=>{const B=Ce(I[T]),R=B.attr("transform");let D=0,$=0;if(R){const H=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);H&&(D=parseFloat(H[1]),$=parseFloat(H[2]))}const O=$-g/2;let F=v+o/2;(T===0||T===1)&&(F=D),B.attr("transform",`translate(${F}, ${O+o})`)}),d>h+f+s){const M=b.line(v,m+h+f+s,v+p,m+h+f+s,w);u.insert(()=>M).attr("style",i)}return Wt(t,k),t.intersect=function(M){return Dt.rect(t,M)},u}A(WN,"requirementBox");async function qn(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=Be(),o=a.htmlLabels??!0,s=await Jo(n,Uw(Al(t)),{width:Ya(t,a)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},a);let l;if(o){const c=s.children[0],u=Ce(s);l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}else{const c=s.children[0];for(const u of c.children)u.textContent=u.textContent.replaceAll(">",">").replaceAll("<","<"),i&&u.setAttribute("style",i);l=s.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}A(qn,"addText");var Nct=A(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function GN(e,t,{config:r}){const{labelStyles:i,nodeStyles:n}=Ht(t);t.labelStyle=i||"";const a=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:s,bbox:l,label:c}=await ee(e,t,Jt(t)),u=t.padding||10;let h="",d;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(h=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),d=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,g;d?{label:p,bbox:g}=await p_(d,"ticket"in t&&t.ticket||"",f):{label:p,bbox:g}=await p_(s,"ticket"in t&&t.ticket||"",f);const{label:v,bbox:m}=await p_(s,"assigned"in t&&t.assigned||"",f);t.width=o;const b=10,w=t?.width||0,S=Math.max(g.height,m.height)/2,k=Math.max(l.height+b*2,t?.height||0)+S,M=-w/2,T=-k/2;c.attr("transform","translate("+(u-w/2)+", "+(-S-l.height/2)+")"),p.attr("transform","translate("+(u-w/2)+", "+(-S+l.height/2)+")"),v.attr("transform","translate("+(u+w/2-m.width-2*a)+", "+(-S+l.height/2)+")");let I;const{rx:B,ry:R}=t,{cssStyles:D}=t;if(t.look==="handDrawn"){const $=$t.svg(s),O=zt(t,{}),F=B||R?$.path(ts(M,T,w,k,B||0),O):$.rectangle(M,T,w,k,O);I=s.insert(()=>F,":first-child"),I.attr("class","basic label-container").attr("style",D||null)}else{I=s.insert("rect",":first-child"),I.attr("class","basic label-container __APA__").attr("style",n).attr("rx",B??5).attr("ry",R??5).attr("x",M).attr("y",T).attr("width",w).attr("height",k);const $="priority"in t&&t.priority;if($){const O=s.append("line"),F=M+2,z=T+Math.floor((B??0)/2),H=T+k-Math.floor((B??0)/2);O.attr("x1",F).attr("y1",z).attr("x2",F).attr("y2",H).attr("stroke-width","4").attr("stroke",Nct($))}}return Wt(t,I),t.height=k,t.intersect=function($){return Dt.rect(t,$)},s}A(GN,"kanbanItem");async function qN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await ee(e,t,Jt(t)),l=a.width+10*o,c=a.height+8*o,u=.15*l,{cssStyles:h}=t,d=a.width+20,f=a.height+20,p=Math.max(l,d),g=Math.max(c,f);s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let v;const m=`M0 0
|
|
214
|
+
a${u},${u} 1 0,0 ${p*.25},${-1*g*.1}
|
|
215
|
+
a${u},${u} 1 0,0 ${p*.25},0
|
|
216
|
+
a${u},${u} 1 0,0 ${p*.25},0
|
|
217
|
+
a${u},${u} 1 0,0 ${p*.25},${g*.1}
|
|
218
|
+
|
|
219
|
+
a${u},${u} 1 0,0 ${p*.15},${g*.33}
|
|
220
|
+
a${u*.8},${u*.8} 1 0,0 0,${g*.34}
|
|
221
|
+
a${u},${u} 1 0,0 ${-1*p*.15},${g*.33}
|
|
222
|
+
|
|
223
|
+
a${u},${u} 1 0,0 ${-1*p*.25},${g*.15}
|
|
224
|
+
a${u},${u} 1 0,0 ${-1*p*.25},0
|
|
225
|
+
a${u},${u} 1 0,0 ${-1*p*.25},0
|
|
226
|
+
a${u},${u} 1 0,0 ${-1*p*.25},${-1*g*.15}
|
|
227
|
+
|
|
228
|
+
a${u},${u} 1 0,0 ${-1*p*.1},${-1*g*.33}
|
|
229
|
+
a${u*.8},${u*.8} 1 0,0 0,${-1*g*.34}
|
|
230
|
+
a${u},${u} 1 0,0 ${p*.1},${-1*g*.33}
|
|
231
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const b=$t.svg(n),w=zt(t,{}),S=b.path(m,w);v=n.insert(()=>S,":first-child"),v.attr("class","basic label-container").attr("style",Qr(h))}else v=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",m);return v.attr("transform",`translate(${-p/2}, ${-g/2})`),Wt(t,v),t.calcIntersect=function(b,w){return Dt.rect(b,w)},t.intersect=function(b){return ht.info("Bang intersect",t,b),Dt.rect(t,b)},n}A(qN,"bang");async function VN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await ee(e,t,Jt(t)),l=a.width+2*o,c=a.height+2*o,u=.15*l,h=.25*l,d=.35*l,f=.2*l,{cssStyles:p}=t;let g;const v=`M0 0
|
|
232
|
+
a${u},${u} 0 0,1 ${l*.25},${-1*l*.1}
|
|
233
|
+
a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
|
|
234
|
+
a${h},${h} 1 0,1 ${l*.35},${l*.2}
|
|
235
|
+
|
|
236
|
+
a${u},${u} 1 0,1 ${l*.15},${c*.35}
|
|
237
|
+
a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
|
|
238
|
+
|
|
239
|
+
a${h},${u} 1 0,1 ${-1*l*.25},${l*.15}
|
|
240
|
+
a${d},${d} 1 0,1 ${-1*l*.5},0
|
|
241
|
+
a${u},${u} 1 0,1 ${-1*l*.25},${-1*l*.15}
|
|
242
|
+
|
|
243
|
+
a${u},${u} 1 0,1 ${-1*l*.1},${-1*c*.35}
|
|
244
|
+
a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
|
|
245
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const m=$t.svg(n),b=zt(t,{}),w=m.path(v,b);g=n.insert(()=>w,":first-child"),g.attr("class","basic label-container").attr("style",Qr(p))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",v);return s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),g.attr("transform",`translate(${-l/2}, ${-c/2})`),Wt(t,g),t.calcIntersect=function(m,b){return Dt.rect(m,b)},t.intersect=function(m){return ht.info("Cloud intersect",t,m),Dt.rect(t,m)},n}A(VN,"cloud");async function UN(e,t){const{labelStyles:r,nodeStyles:i}=Ht(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:o,label:s}=await ee(e,t,Jt(t)),l=a.width+8*o,c=a.height+2*o,u=5,h=`
|
|
246
|
+
M${-l/2} ${c/2-u}
|
|
247
|
+
v${-c+2*u}
|
|
248
|
+
q0,-${u} ${u},-${u}
|
|
249
|
+
h${l-2*u}
|
|
250
|
+
q${u},0 ${u},${u}
|
|
251
|
+
v${c-2*u}
|
|
252
|
+
q0,${u} -${u},${u}
|
|
253
|
+
h${-l+2*u}
|
|
254
|
+
q-${u},0 -${u},-${u}
|
|
255
|
+
Z
|
|
256
|
+
`,d=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",h);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),s.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>s.node()),Wt(t,d),t.calcIntersect=function(f,p){return Dt.rect(f,p)},t.intersect=function(f){return Dt.rect(t,f)},n}A(UN,"defaultMindmapNode");async function YN(e,t){const r={padding:t.padding??0};return OS(e,t,r)}A(YN,"mindmapCircle");var zct=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:CN},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:xN},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:TN},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:LN},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:j$},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:OS},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:qN},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:VN},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:yN},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:eN},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:hN},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:uN},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:BN},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:lN},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Z$},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:IN},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:z$},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:wN},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:MN},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:AN},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:J$},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:rN},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:q$},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:V$},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:U$},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:fN},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:FN},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:tN},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:PN},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:dN},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Y$},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:X$},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:RN},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:NN},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:K$},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:ON},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Q$},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:SN},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:vN},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:gN},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:N$},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:G$},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:EN},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:DN},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:$N},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:_N},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:pN}],Hct=A(()=>{const t=[...Object.entries({state:kN,choice:H$,note:mN,rectWithTitle:bN,labelRect:cN,iconSquare:oN,iconCircle:nN,icon:iN,iconRounded:aN,imageSquare:sN,anchor:$$,kanbanItem:GN,mindmapCircle:YN,defaultMindmapNode:UN,classBox:HN,erBox:RS,requirementBox:WN}),...zct.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),jN=Hct();function Wct(e){return e in jN}A(Wct,"isValidShape");var Zm=new Map;async function XN(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?jN[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await a(i,t,r)}else n=await a(e,t,r),i=n;return t.tooltip&&n.attr("title",t.tooltip),Zm.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}A(XN,"insertNode");var gpt=A((e,t)=>{Zm.set(t.id,e)},"setNodeElem"),vpt=A(()=>{Zm.clear()},"clear"),mpt=A(e=>{const t=Zm.get(e.id);ht.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),Gct=A((e,t,r,i,n,a)=>{t.arrowTypeStart&&TL(e,"start",t.arrowTypeStart,r,i,n,a),t.arrowTypeEnd&&TL(e,"end",t.arrowTypeEnd,r,i,n,a)},"addEdgeMarkers"),qct={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},TL=A((e,t,r,i,n,a,o)=>{const s=qct[r];if(!s){ht.warn(`Unknown arrow type: ${r}`);return}const l=s.type,u=`${n}_${a}-${l}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){const h=o.replace(/[^\dA-Za-z]/g,"_"),d=`${u}_${h}`;if(!document.getElementById(d)){const f=document.getElementById(u);if(f){const p=f.cloneNode(!0);p.id=d,p.querySelectorAll("path, circle, line").forEach(v=>{v.setAttribute("stroke",o),s.fill&&v.setAttribute("fill",o)}),f.parentNode?.appendChild(p)}}e.attr(`marker-${t}`,`url(${i}#${d})`)}else e.attr(`marker-${t}`,`url(${i}#${u})`)},"addEdgeMarker"),Nv=new Map,Pr=new Map,ypt=A(()=>{Nv.clear(),Pr.clear()},"clear"),kp=A(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),Vct=A(async(e,t)=>{let r=Tr(Be().flowchart.htmlLabels);const{labelStyles:i}=Ht(t);t.labelStyle=i;const n=await Jo(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});ht.info("abc82",t,t.labelType);const a=e.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label").attr("data-id",t.id);o.node().appendChild(n);let s=n.getBBox();if(r){const c=n.children[0],u=Ce(n);s=c.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),Nv.set(t.id,a),t.width=s.width,t.height=s.height;let l;if(t.startLabelLeft){const c=await Us(t.startLabelLeft,kp(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");l=h.node().appendChild(c);const d=c.getBBox();h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),Pr.get(t.id)||Pr.set(t.id,{}),Pr.get(t.id).startLeft=u,ph(l,t.startLabelLeft)}if(t.startLabelRight){const c=await Us(t.startLabelRight,kp(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");l=u.node().appendChild(c),h.node().appendChild(c);const d=c.getBBox();h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),Pr.get(t.id)||Pr.set(t.id,{}),Pr.get(t.id).startRight=u,ph(l,t.startLabelRight)}if(t.endLabelLeft){const c=await Us(t.endLabelLeft,kp(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");l=h.node().appendChild(c);const d=c.getBBox();h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),u.node().appendChild(c),Pr.get(t.id)||Pr.set(t.id,{}),Pr.get(t.id).endLeft=u,ph(l,t.endLabelLeft)}if(t.endLabelRight){const c=await Us(t.endLabelRight,kp(t.labelStyle)),u=e.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");l=h.node().appendChild(c);const d=c.getBBox();h.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),u.node().appendChild(c),Pr.get(t.id)||Pr.set(t.id,{}),Pr.get(t.id).endRight=u,ph(l,t.endLabelRight)}return n},"insertEdgeLabel");function ph(e,t){Be().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}A(ph,"setTerminalWidth");var Uct=A((e,t)=>{ht.debug("Moving label abc88 ",e.id,e.label,Nv.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Be(),{subGraphTitleTotalMargin:n}=fS(i);if(e.label){const a=Nv.get(e.id);let o=e.x,s=e.y;if(r){const l=Sn.calcLabelPosition(r);ht.debug("Moving label "+e.label+" from (",o,",",s,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,s=l.y)}a.attr("transform",`translate(${o}, ${s+n/2})`)}if(e.startLabelLeft){const a=Pr.get(e.id).startLeft;let o=e.x,s=e.y;if(r){const l=Sn.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.startLabelRight){const a=Pr.get(e.id).startRight;let o=e.x,s=e.y;if(r){const l=Sn.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelLeft){const a=Pr.get(e.id).endLeft;let o=e.x,s=e.y;if(r){const l=Sn.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}if(e.endLabelRight){const a=Pr.get(e.id).endRight;let o=e.x,s=e.y;if(r){const l=Sn.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,s=l.y}a.attr("transform",`translate(${o}, ${s})`)}},"positionEdgeLabel"),Yct=A((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),o=e.width/2,s=e.height/2;return n>=o||a>=s},"outsideNode"),jct=A((e,t,r)=>{ht.debug(`intersection calc abc89:
|
|
257
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
258
|
+
insidePoint : ${JSON.stringify(r)}
|
|
259
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),o=e.width/2;let s=r.x<t.x?o-a:o+a;const l=e.height/2,c=Math.abs(t.y-r.y),u=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let h=r.y<t.y?t.y-l-n:n-l-t.y;s=u*h/c;const d={x:r.x<t.x?r.x+s:r.x-u+s,y:r.y<t.y?r.y+c-h:r.y-c+h};return s===0&&(d.x=t.x,d.y=t.y),u===0&&(d.x=t.x),c===0&&(d.y=t.y),ht.debug(`abc89 top/bottom calc, Q ${c}, q ${h}, R ${u}, r ${s}`,d),d}else{r.x<t.x?s=t.x-o-i:s=i-o-t.x;let h=c*s/u,d=r.x<t.x?r.x+u-s:r.x-u+s,f=r.y<t.y?r.y+h:r.y-h;return ht.debug(`sides calc abc89, Q ${c}, q ${h}, R ${u}, r ${s}`,{_x:d,_y:f}),s===0&&(d=t.x,f=t.y),u===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),kL=A((e,t)=>{ht.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(ht.info("abc88 checking point",a,t),!Yct(t,a)&&!n){const o=jct(t,i,a);ht.debug("abc88 inside",a,i,o),ht.debug("abc88 intersection",o,t);let s=!1;r.forEach(l=>{s=s||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?ht.warn("abc88 no intersect",o,r):r.push(o),n=!0}else ht.warn("abc88 outside",a,i),i=a,n||r.push(a)}),ht.debug("returning points",r),r},"cutPathAtIntersect");function ZN(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],o=e[i+1];(n.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===o.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}A(ZN,"extractCornerPoints");var AL=A(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),o=r/a;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),Xct=A(function(e){const{cornerPointPositions:t}=ZN(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],o=e[i],s=AL(n,o,5),l=AL(a,o,5),c=l.x-s.x,u=l.y-s.y;r.push(s);const h=Math.sqrt(2)*2;let d={x:o.x,y:o.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){ht.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const f=5;o.x===s.x?d={x:c<0?s.x-f+h:s.x+f-h,y:u<0?s.y-h:s.y+h}:d={x:c<0?s.x-h:s.x+h,y:u<0?s.y-f+h:s.y+f-h}}else ht.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),Zct=A((e,t,r)=>{const i=e-t-r,n=2,a=2,o=n+a,s=Math.floor(i/o),l=Array(s).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),Kct=A(function(e,t,r,i,n,a,o,s=!1){const{handDrawnSeed:l}=Be();let c=t.points,u=!1;const h=n;var d=a;const f=[];for(const F in t.cssCompiledStyles)A5(F)||f.push(t.cssCompiledStyles[F]);ht.debug("UIO intersect check",t.points,d.x,h.x),d.intersect&&h.intersect&&!s&&(c=c.slice(1,t.points.length-1),c.unshift(h.intersect(c[0])),ht.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],d,d.intersect(c[c.length-1])),c.push(d.intersect(c[c.length-1])));const p=btoa(JSON.stringify(c));t.toCluster&&(ht.info("to cluster abc88",r.get(t.toCluster)),c=kL(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(ht.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=kL(c.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let g=c.filter(F=>!Number.isNaN(F.y));g=Xct(g);let v=rg;switch(v=vv,t.curve){case"linear":v=vv;break;case"basis":v=rg;break;case"cardinal":v=ER;break;case"bumpX":v=kR;break;case"bumpY":v=AR;break;case"catmullRom":v=PR;break;case"monotoneX":v=NR;break;case"monotoneY":v=zR;break;case"natural":v=WR;break;case"step":v=GR;break;case"stepAfter":v=VR;break;case"stepBefore":v=qR;break;default:v=rg}const{x:m,y:b}=Xnt(t),w=Iit().x(m).y(b).curve(v);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let k,M=t.curve==="rounded"?KN(QN(g,t),5):w(g);const T=Array.isArray(t.style)?t.style:[t.style];let I=T.find(F=>F?.startsWith("stroke:")),B=!1;if(t.look==="handDrawn"){const F=$t.svg(e);Object.assign([],g);const z=F.path(M,{roughness:.3,seed:l});S+=" transition",k=Ce(z).select("path").attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")).attr("style",T?T.reduce((U,q)=>U+";"+q,""):"");let H=k.attr("d");k.attr("d",H),e.node().appendChild(k.node())}else{const F=f.join(";"),z=T?T.reduce((it,at)=>it+at+";",""):"";let H="";t.animate&&(H=" edge-animation-fast"),t.animation&&(H=" edge-animation-"+t.animation);const U=(F?F+";"+z+";":z)+";"+(T?T.reduce((it,at)=>it+";"+at,""):"");k=e.append("path").attr("d",M).attr("id",t.id).attr("class"," "+S+(t.classes?" "+t.classes:"")+(H??"")).attr("style",U),I=U.match(/stroke:([^;]+)/)?.[1],B=t.animate===!0||!!t.animation||F.includes("animation");const q=k.node(),K=typeof q.getTotalLength=="function"?q.getTotalLength():0,et=GM[t.arrowTypeStart]||0,Q=GM[t.arrowTypeEnd]||0;if(t.look==="neo"&&!B){const at=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Zct(K,et,Q):`0 ${et} ${K-et-Q} ${Q}`}; stroke-dashoffset: 0;`;k.attr("style",at+k.attr("style"))}}k.attr("data-edge",!0),k.attr("data-et","edge"),k.attr("data-id",t.id),k.attr("data-points",p),t.showPoints&&g.forEach(F=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",F.x).attr("cy",F.y)});let R="";(Be().flowchart.arrowMarkerAbsolute||Be().state.arrowMarkerAbsolute)&&(R=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,R=R.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ht.info("arrowTypeStart",t.arrowTypeStart),ht.info("arrowTypeEnd",t.arrowTypeEnd),Gct(k,t,R,o,i,I);const D=Math.floor(c.length/2),$=c[D];Sn.isLabelCoordinateInPath($,k.attr("d"))||(u=!0);let O={};return u&&(O.updatedPath=c),O.originalPath=t.points,O},"insertEdge");function KN(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const o=e[a],s=e[a-1],l=e[a+1];if(a===0)r+=`M${o.x},${o.y}`;else if(a===i-1)r+=`L${o.x},${o.y}`;else{const c=o.x-s.x,u=o.y-s.y,h=l.x-o.x,d=l.y-o.y,f=Math.hypot(c,u),p=Math.hypot(h,d);if(f<n||p<n){r+=`L${o.x},${o.y}`;continue}const g=c/f,v=u/f,m=h/p,b=d/p,w=g*m+v*b,S=Math.max(-1,Math.min(1,w)),k=Math.acos(S);if(k<n||Math.abs(Math.PI-k)<n){r+=`L${o.x},${o.y}`;continue}const M=Math.min(t/Math.sin(k/2),f/2,p/2),T=o.x-g*M,I=o.y-v*M,B=o.x+m*M,R=o.y+b*M;r+=`L${T},${I}`,r+=`Q${o.x},${o.y} ${B},${R}`}}return r}A(KN,"generateRoundedPath");function Zx(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}A(Zx,"calculateDeltaAndAngle");function QN(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&Vr[t.arrowTypeStart]){const n=Vr[t.arrowTypeStart],a=e[0],o=e[1],{angle:s}=Zx(a,o),l=n*Math.cos(s),c=n*Math.sin(s);r[0].x=a.x+l,r[0].y=a.y+c}const i=e.length;if(i>=2&&Vr[t.arrowTypeEnd]){const n=Vr[t.arrowTypeEnd],a=e[i-1],o=e[i-2],{angle:s}=Zx(o,a),l=n*Math.cos(s),c=n*Math.sin(s);r[i-1].x=a.x-l,r[i-1].y=a.y-c}return r}A(QN,"applyMarkerOffsetsToPoints");var Qct=A((e,t,r,i)=>{t.forEach(n=>{put[n](e,r,i)})},"insertMarkers"),Jct=A((e,t,r)=>{ht.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),tut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),eut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),rut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),iut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),nut=A((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),aut=A((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),out=A((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),sut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),lut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),cut=A((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),uut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),hut=A((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),fut=A((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
260
|
+
L20,10
|
|
261
|
+
M20,10
|
|
262
|
+
L0,20`)},"requirement_arrow"),dut=A((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),put={extension:Jct,composition:tut,aggregation:eut,dependency:rut,lollipop:iut,point:nut,circle:aut,cross:out,barb:sut,only_one:lut,zero_or_one:cut,one_or_more:uut,zero_or_more:hut,requirement_arrow:fut,requirement_contains:dut},gut=Qct,vut={common:Kc,getConfig:Zr,insertCluster:Cct,insertEdge:Kct,insertEdgeLabel:Vct,insertMarkers:gut,insertNode:XN,interpolateToCurve:mS,labelHelper:ee,log:ht,positionEdgeLabel:Uct},Df={},JN=A(e=>{for(const t of e)Df[t.name]=t},"registerLayoutLoaders"),mut=A(()=>{JN([{name:"dagre",loader:A(async()=>await $e(()=>import("./dagre-6UL2VRFP-ryegzlWf.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:A(async()=>await $e(()=>import("./cose-bilkent-S5V4N54A-Cg-WYzWz.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");mut();var _pt=A(async(e,t)=>{if(!(e.layoutAlgorithm in Df))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Df[e.layoutAlgorithm];return(await r.loader()).render(e,t,vut,{algorithm:r.algorithm})},"render"),bpt=A((e="",{fallback:t="dagre"}={})=>{if(e in Df)return e;if(t in Df)return ht.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),t3="comm",e3="rule",r3="decl",yut="@import",_ut="@namespace",but="@keyframes",xut="@layer",i3=Math.abs,FS=String.fromCharCode;function n3(e){return e.trim()}function sg(e,t,r){return e.replace(t,r)}function wut(e,t,r){return e.indexOf(t,r)}function xc(e,t){return e.charCodeAt(t)|0}function Uc(e,t,r){return e.slice(t,r)}function Yn(e){return e.length}function Sut(e){return e.length}function Ap(e,t){return t.push(e),e}var Km=1,Yc=1,a3=0,un=0,mr=0,ru="";function $S(e,t,r,i,n,a,o,s){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Km,column:Yc,length:o,return:"",siblings:s}}function Cut(){return mr}function Tut(){return mr=un>0?xc(ru,--un):0,Yc--,mr===10&&(Yc=1,Km--),mr}function An(){return mr=un<a3?xc(ru,un++):0,Yc++,mr===10&&(Yc=1,Km++),mr}function ko(){return xc(ru,un)}function lg(){return un}function Qm(e,t){return Uc(ru,e,t)}function Ef(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kut(e){return Km=Yc=1,a3=Yn(ru=e),un=0,[]}function Aut(e){return ru="",e}function g_(e){return n3(Qm(un-1,Kx(e===91?e+2:e===40?e+1:e)))}function Mut(e){for(;(mr=ko())&&mr<33;)An();return Ef(e)>2||Ef(mr)>3?"":" "}function Lut(e,t){for(;--t&&An()&&!(mr<48||mr>102||mr>57&&mr<65||mr>70&&mr<97););return Qm(e,lg()+(t<6&&ko()==32&&An()==32))}function Kx(e){for(;An();)switch(mr){case e:return un;case 34:case 39:e!==34&&e!==39&&Kx(mr);break;case 40:e===41&&Kx(e);break;case 92:An();break}return un}function Dut(e,t){for(;An()&&e+mr!==57;)if(e+mr===84&&ko()===47)break;return"/*"+Qm(t,un-1)+"*"+FS(e===47?e:An())}function Eut(e){for(;!Ef(ko());)An();return Qm(e,un)}function Iut(e){return Aut(cg("",null,null,null,[""],e=kut(e),0,[0],e))}function cg(e,t,r,i,n,a,o,s,l){for(var c=0,u=0,h=o,d=0,f=0,p=0,g=1,v=1,m=1,b=0,w="",S=n,k=a,M=i,T=w;v;)switch(p=b,b=An()){case 40:if(p!=108&&xc(T,h-1)==58){wut(T+=sg(g_(b),"&","&\f"),"&\f",i3(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:T+=g_(b);break;case 9:case 10:case 13:case 32:T+=Mut(p);break;case 92:T+=Lut(lg()-1,7);continue;case 47:switch(ko()){case 42:case 47:Ap(Put(Dut(An(),lg()),t,r,l),l),(Ef(p||1)==5||Ef(ko()||1)==5)&&Yn(T)&&Uc(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:s[c++]=Yn(T)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:m==-1&&(T=sg(T,/\f/g,"")),f>0&&(Yn(T)-h||g===0&&p===47)&&Ap(f>32?LL(T+";",i,r,h-1,l):LL(sg(T," ","")+";",i,r,h-2,l),l);break;case 59:T+=";";default:if(Ap(M=ML(T,t,r,c,u,n,s,w,S=[],k=[],h,a),a),b===123)if(u===0)cg(T,t,M,M,S,a,h,s,k);else{switch(d){case 99:if(xc(T,3)===110)break;case 108:if(xc(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?cg(e,M,M,i&&Ap(ML(e,M,M,0,0,n,s,w,n,S=[],h,k),k),n,k,h,s,i?S:k):cg(T,M,M,M,[""],k,0,s,k)}}c=u=f=0,g=m=1,w=T="",h=o;break;case 58:h=1+Yn(T),f=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Tut()==125)continue}switch(T+=FS(b),b*g){case 38:m=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Yn(T)-1)*m,m=1;break;case 64:ko()===45&&(T+=g_(An())),d=ko(),u=h=Yn(w=T+=Eut(lg())),b++;break;case 45:p===45&&Yn(T)==2&&(g=0)}}return a}function ML(e,t,r,i,n,a,o,s,l,c,u,h){for(var d=n-1,f=n===0?a:[""],p=Sut(f),g=0,v=0,m=0;g<i;++g)for(var b=0,w=Uc(e,d+1,d=i3(v=o[g])),S=e;b<p;++b)(S=n3(v>0?f[b]+" "+w:sg(w,/&\f/g,f[b])))&&(l[m++]=S);return $S(e,t,r,n===0?e3:s,l,c,u,h)}function Put(e,t,r,i){return $S(e,t,r,t3,FS(Cut()),Uc(e,2,-2),0,i)}function LL(e,t,r,i,n){return $S(e,t,r,r3,Uc(e,0,i),Uc(e,i+1,-1),i,n)}function Qx(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function But(e,t,r,i){switch(e.type){case xut:if(e.children.length)break;case yut:case _ut:case r3:return e.return=e.return||e.value;case t3:return"";case but:return e.return=e.value+"{"+Qx(e.children,i)+"}";case e3:if(!Yn(e.value=e.props.join(",")))return""}return Yn(r=Qx(e.children,i))?e.return=e.value+"{"+r+"}":""}var Out=E5(Object.keys,Object),Rut=Object.prototype,Fut=Rut.hasOwnProperty;function $ut(e){if(!Hm(e))return Out(e);var t=[];for(var r in Object(e))Fut.call(e,r)&&r!="constructor"&&t.push(r);return t}var Jx=kl(pa,"DataView"),t1=kl(pa,"Promise"),e1=kl(pa,"Set"),r1=kl(pa,"WeakMap"),DL="[object Map]",Nut="[object Object]",EL="[object Promise]",IL="[object Set]",PL="[object WeakMap]",BL="[object DataView]",zut=Tl(Jx),Hut=Tl(Mf),Wut=Tl(t1),Gut=Tl(e1),qut=Tl(r1),Rs=Jc;(Jx&&Rs(new Jx(new ArrayBuffer(1)))!=BL||Mf&&Rs(new Mf)!=DL||t1&&Rs(t1.resolve())!=EL||e1&&Rs(new e1)!=IL||r1&&Rs(new r1)!=PL)&&(Rs=function(e){var t=Jc(e),r=t==Nut?e.constructor:void 0,i=r?Tl(r):"";if(i)switch(i){case zut:return BL;case Hut:return DL;case Wut:return EL;case Gut:return IL;case qut:return PL}return t});var Vut="[object Map]",Uut="[object Set]",Yut=Object.prototype,jut=Yut.hasOwnProperty;function OL(e){if(e==null)return!0;if(Wm(e)&&(Lv(e)||typeof e=="string"||typeof e.splice=="function"||gS(e)||vS(e)||Mv(e)))return!e.length;var t=Rs(e);if(t==Vut||t==Uut)return!e.size;if(Hm(e))return!$ut(e).length;for(var r in e)if(jut.call(e,r))return!1;return!0}var o3="c4",Xut=A(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),Zut=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-DUwnd3jD.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:o3,diagram:e}},"loader"),Kut={id:o3,detector:Xut,loader:Zut},Qut=Kut,s3="flowchart",Jut=A((e,t)=>t?.flowchart?.defaultRenderer==="dagre-wrapper"||t?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(e),"detector"),tht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-8CuyVkRJ.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:s3,diagram:e}},"loader"),eht={id:s3,detector:Jut,loader:tht},rht=eht,l3="flowchart-v2",iht=A((e,t)=>t?.flowchart?.defaultRenderer==="dagre-d3"?!1:(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)),"detector"),nht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-8CuyVkRJ.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:l3,diagram:e}},"loader"),aht={id:l3,detector:iht,loader:nht},oht=aht,c3="er",sht=A(e=>/^\s*erDiagram/.test(e),"detector"),lht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-Z3HZ6EKl.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:c3,diagram:e}},"loader"),cht={id:c3,detector:sht,loader:lht},uht=cht,u3="gitGraph",hht=A(e=>/^\s*gitGraph/.test(e),"detector"),fht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-Bfi_XmQW.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:u3,diagram:e}},"loader"),dht={id:u3,detector:hht,loader:fht},pht=dht,h3="gantt",ght=A(e=>/^\s*gantt/.test(e),"detector"),vht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-CZw7vEef.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:h3,diagram:e}},"loader"),mht={id:h3,detector:ght,loader:vht},yht=mht,f3="info",_ht=A(e=>/^\s*info/.test(e),"detector"),bht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./infoDiagram-WHAUD3N6-CXMtEjay.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:f3,diagram:e}},"loader"),xht={id:f3,detector:_ht,loader:bht},d3="pie",wht=A(e=>/^\s*pie/.test(e),"detector"),Sht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-DlpXzEqD.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:d3,diagram:e}},"loader"),Cht={id:d3,detector:wht,loader:Sht},p3="quadrantChart",Tht=A(e=>/^\s*quadrantChart/.test(e),"detector"),kht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-CEoKUUSd.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:p3,diagram:e}},"loader"),Aht={id:p3,detector:Tht,loader:kht},Mht=Aht,g3="xychart",Lht=A(e=>/^\s*xychart(-beta)?/.test(e),"detector"),Dht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-M-OrKD3V.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:g3,diagram:e}},"loader"),Eht={id:g3,detector:Lht,loader:Dht},Iht=Eht,v3="requirement",Pht=A(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),Bht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-Css5Z6IH.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:v3,diagram:e}},"loader"),Oht={id:v3,detector:Pht,loader:Bht},Rht=Oht,m3="sequence",Fht=A(e=>/^\s*sequenceDiagram/.test(e),"detector"),$ht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-DUIyU01m.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:m3,diagram:e}},"loader"),Nht={id:m3,detector:Fht,loader:$ht},zht=Nht,y3="class",Hht=A((e,t)=>t?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e),"detector"),Wht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-CNFEETn7.js");return{diagram:t}},__vite__mapDeps([32,33,11,12,13]));return{id:y3,diagram:e}},"loader"),Ght={id:y3,detector:Hht,loader:Wht},qht=Ght,_3="classDiagram",Vht=A((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e),"detector"),Uht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-CNFEETn7.js");return{diagram:t}},__vite__mapDeps([34,33,11,12,13]));return{id:_3,diagram:e}},"loader"),Yht={id:_3,detector:Vht,loader:Uht},jht=Yht,b3="state",Xht=A((e,t)=>t?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e),"detector"),Zht=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-ep1kWxe5.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:b3,diagram:e}},"loader"),Kht={id:b3,detector:Xht,loader:Zht},Qht=Kht,x3="stateDiagram",Jht=A((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-OA08CMr0.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:x3,diagram:e}},"loader"),eft={id:x3,detector:Jht,loader:tft},rft=eft,w3="journey",ift=A(e=>/^\s*journey/.test(e),"detector"),nft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-BSMlJlRu.js");return{diagram:t}},__vite__mapDeps([38,9,11,26]));return{id:w3,diagram:e}},"loader"),aft={id:w3,detector:ift,loader:nft},oft=aft,sft=A((e,t,r)=>{ht.debug(`rendering svg for syntax error
|
|
263
|
+
`);const i=Hit(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),XO(i,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),S3={draw:sft},lft=S3,cft={db:{},renderer:S3,parser:{parse:A(()=>{},"parse")}},uft=cft,C3="flowchart-elk",hft=A((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),fft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-8CuyVkRJ.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:C3,diagram:e}},"loader"),dft={id:C3,detector:hft,loader:fft},pft=dft,T3="timeline",gft=A(e=>/^\s*timeline/.test(e),"detector"),vft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-DJcHBcqL.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:T3,diagram:e}},"loader"),mft={id:T3,detector:gft,loader:vft},yft=mft,k3="mindmap",_ft=A(e=>/^\s*mindmap/.test(e),"detector"),bft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-D8Zg3vpp.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:k3,diagram:e}},"loader"),xft={id:k3,detector:_ft,loader:bft},wft=xft,A3="kanban",Sft=A(e=>/^\s*kanban/.test(e),"detector"),Cft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-BfJahWKP.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:A3,diagram:e}},"loader"),Tft={id:A3,detector:Sft,loader:Cft},kft=Tft,M3="sankey",Aft=A(e=>/^\s*sankey(-beta)?/.test(e),"detector"),Mft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-C4ArkKL4.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:M3,diagram:e}},"loader"),Lft={id:M3,detector:Aft,loader:Mft},Dft=Lft,L3="packet",Eft=A(e=>/^\s*packet(-beta)?/.test(e),"detector"),Ift=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-DRYZkLxk.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:L3,diagram:e}},"loader"),Pft={id:L3,detector:Eft,loader:Ift},D3="radar",Bft=A(e=>/^\s*radar-beta/.test(e),"detector"),Oft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-DACNhaAL.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:D3,diagram:e}},"loader"),Rft={id:D3,detector:Bft,loader:Oft},E3="block",Fft=A(e=>/^\s*block(-beta)?/.test(e),"detector"),$ft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-E5jgMviV.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:E3,diagram:e}},"loader"),Nft={id:E3,detector:Fft,loader:$ft},zft=Nft,I3="architecture",Hft=A(e=>/^\s*architecture/.test(e),"detector"),Wft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-DBYzmJgu.js");return{diagram:t}},__vite__mapDeps([46,17,19,4,2,7]));return{id:I3,diagram:e}},"loader"),Gft={id:I3,detector:Hft,loader:Wft},qft=Gft,P3="treemap",Vft=A(e=>/^\s*treemap/.test(e),"detector"),Uft=A(async()=>{const{diagram:e}=await $e(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-DKp3q0bY.js");return{diagram:t}},__vite__mapDeps([47,13,17,19,4,2,23,27,22]));return{id:P3,diagram:e}},"loader"),Yft={id:P3,detector:Vft,loader:Uft},RL=!1,Jm=A(()=>{RL||(RL=!0,cv("error",uft,e=>e.toLowerCase().trim()==="error"),cv("---",{db:{clear:A(()=>{},"clear")},styles:{},renderer:{draw:A(()=>{},"draw")},parser:{parse:A(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:A(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),lx(pft,wft,qft),lx(Qut,kft,jht,qht,uht,yht,xht,Cht,Rht,zht,oht,rht,yft,pht,rft,Qht,oft,Mht,Dft,Pft,Iht,zft,Rft,Yft))},"addDiagrams"),jft=A(async()=>{ht.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(fl).map(async([r,{detector:i,loader:n}])=>{if(n)try{fx(r)}catch{try{const{diagram:a,id:o}=await n();cv(o,a,i)}catch(a){throw ht.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete fl[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){ht.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ht.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),Xft="graphics-document document";function B3(e,t){e.attr("role",Xft),t!==""&&e.attr("aria-roledescription",t)}A(B3,"setA11yDiagramInfo");function O3(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}A(O3,"addSVGa11yTitleDescription");var al,i1=(al=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){const i=Zr(),n=zw(t,i);t=Yst(t)+`
|
|
264
|
+
`;try{fx(n)}catch{const c=gJ(n);if(!c)throw new FO(`Diagram ${n} not found.`);const{id:u,diagram:h}=await c();cv(u,h)}const{db:a,parser:o,renderer:s,init:l}=fx(n);return o.parser&&(o.parser.yy=a),a.clear?.(),l?.(i),r.title&&a.setDiagramTitle?.(r.title),await o.parse(t),new al(n,t,a,o,s)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},A(al,"Diagram"),al),FL=[],Zft=A(()=>{FL.forEach(e=>{e()}),FL=[]},"attachFunctions"),Kft=A(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function R3(e){const t=e.match(RO);if(!t)return{text:e,metadata:{}};let r=jnt(t[1],{schema:Ynt})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}A(R3,"extractFrontMatter");var Qft=A(e=>e.replace(/\r\n?/g,`
|
|
265
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Jft=A(e=>{const{text:t,metadata:r}=R3(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),tdt=A(e=>{const t=Sn.detectInit(e)??{},r=Sn.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:Bst(e),directive:t}},"processDirectives");function NS(e){const t=Qft(e),r=Jft(t),i=tdt(r.text),n=wS(r.config,i.directive);return e=Kft(i.text),{code:e,title:r.title,config:n}}A(NS,"preprocessDiagram");function F3(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}A(F3,"toBase64");var edt=5e4,rdt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",idt="sandbox",ndt="loose",adt="http://www.w3.org/2000/svg",odt="http://www.w3.org/1999/xlink",sdt="http://www.w3.org/1999/xhtml",ldt="100%",cdt="100%",udt="border:0;margin:0;",hdt="margin:0",fdt="allow-top-navigation-by-user-activation allow-popups",ddt='The "iframe" tag is not supported by your browser.',pdt=["foreignobject"],gdt=["dominant-baseline"];function zS(e){const t=NS(e);return sv(),EJ(t.config??{}),t}A(zS,"processAndSetConfigs");async function $3(e,t){Jm();try{const{code:r,config:i}=zS(e);return{diagramType:(await z3(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}A($3,"parse");var $L=A((e,t,r=[])=>`
|
|
266
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),vdt=A((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
267
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
268
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
269
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const o=e.htmlLabels??e.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(s=>{OL(s.styles)||o.forEach(l=>{r+=$L(s.id,l,s.styles)}),OL(s.textStyles)||(r+=$L(s.id,"tspan",(s?.textStyles||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),mdt=A((e,t,r,i)=>{const n=vdt(e,r),a=KJ(t,n,e.themeVariables);return Qx(Iut(`${i}{${a}}`),But)},"createUserStyles"),ydt=A((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Al(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),_dt=A((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":cdt,i=F3(`<body style="${hdt}">${e}</body>`);return`<iframe style="width:${ldt};height:${r};${udt}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${fdt}">
|
|
270
|
+
${ddt}
|
|
271
|
+
</iframe>`},"putIntoIFrame"),NL=A((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const o=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",adt);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function n1(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}A(n1,"sandboxedIframe");var bdt=A((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),xdt=A(async function(e,t,r){Jm();const i=zS(t);t=i.code;const n=Zr();ht.debug(n),t.length>(n?.maxTextSize??edt)&&(t=rdt);const a="#"+e,o="i"+e,s="#"+o,l="d"+e,c="#"+l,u=A(()=>{const O=Ce(d?s:c).node();O&&"remove"in O&&O.remove()},"removeTempElements");let h=Ce("body");const d=n.securityLevel===idt,f=n.securityLevel===ndt,p=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const $=n1(Ce(r),o);h=Ce($.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Ce(r);NL(h,e,l,`font-family: ${p}`,odt)}else{if(bdt(document,e,l,o),d){const $=n1(Ce("body"),o);h=Ce($.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Ce("body");NL(h,e,l)}let g,v;try{g=await i1.fromText(t,{title:i.title})}catch($){if(n.suppressErrorRendering)throw u(),$;g=await i1.fromText("error"),v=$}const m=h.select(c).node(),b=g.type,w=m.firstChild,S=w.firstChild,k=g.renderer.getClasses?.(t,g),M=mdt(n,b,k,a),T=document.createElement("style");T.innerHTML=M,w.insertBefore(T,S);try{await g.renderer.draw(t,e,nM.version,g)}catch($){throw n.suppressErrorRendering?u():lft.draw(t,e,nM.version),$}const I=h.select(`${c} svg`),B=g.db.getAccTitle?.(),R=g.db.getAccDescription?.();H3(b,I,B,R),h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",sdt);let D=h.select(c).node().innerHTML;if(ht.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),D=ydt(D,d,Tr(n.arrowMarkerAbsolute)),d){const $=h.select(c+" svg").node();D=_dt(D,$)}else f||(D=Nc.sanitize(D,{ADD_TAGS:pdt,ADD_ATTR:gdt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Zft(),v)throw v;return u(),{diagramType:b,svg:D,bindFunctions:g.db.bindFunctions}},"render");function N3(e={}){const t=xr({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),LJ(t),t?.theme&&t.theme in Fa?t.themeVariables=Fa[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Fa.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?MJ(t):WO();Nw(r.logLevel),Jm()}A(N3,"initialize");var z3=A((e,t={})=>{const{code:r}=NS(e);return i1.fromText(r,t)},"getDiagramFromText");function H3(e,t,r,i){B3(t,e),O3(t,r,i,t.attr("id"))}A(H3,"addA11yInfo");var yl=Object.freeze({render:xdt,parse:$3,getDiagramFromText:z3,initialize:N3,getConfig:Zr,setConfig:GO,getSiteConfig:WO,updateSiteConfig:DJ,reset:A(()=>{sv()},"reset"),globalReset:A(()=>{sv(zc)},"globalReset"),defaultConfig:zc});Nw(Zr().logLevel);sv(Zr());var wdt=A((e,t,r)=>{ht.warn(e),xS(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),W3=A(async function(e={querySelector:".mermaid"}){try{await Sdt(e)}catch(t){if(xS(t)&&ht.error(t.str),ja.parseError&&ja.parseError(t),!e.suppressErrors)throw ht.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Sdt=A(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=yl.getConfig();ht.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ht.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(ht.debug("Start On Load: "+i?.startOnLoad),yl.updateSiteConfig({startOnLoad:i?.startOnLoad}));const a=new Sn.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const l of Array.from(n)){if(ht.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;o=l.innerHTML,o=c$(Sn.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=Sn.detectInit(o);u&&ht.debug("Detected early reinit: ",u);try{const{svg:h,bindFunctions:d}=await U3(c,o,l);l.innerHTML=h,e&&await e(c),d&&d(l)}catch(h){wdt(h,s,ja.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),G3=A(function(e){yl.initialize(e)},"initialize"),Cdt=A(async function(e,t,r){ht.warn("mermaid.init is deprecated. Please use run instead."),e&&G3(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await W3(i)},"init"),Tdt=A(async(e,{lazyLoad:t=!0}={})=>{Jm(),lx(...e),t===!1&&await jft()},"registerExternalDiagrams"),q3=A(function(){if(ja.startOnLoad){const{startOnLoad:e}=yl.getConfig();e&&ja.run().catch(t=>ht.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",q3,!1);var kdt=A(function(e){ja.parseError=e},"setParseErrorHandler"),zv=[],v_=!1,V3=A(async()=>{if(!v_){for(v_=!0;zv.length>0;){const e=zv.shift();if(e)try{await e()}catch(t){ht.error("Error executing queue",t)}}v_=!1}},"executeQueue"),Adt=A(async(e,t)=>new Promise((r,i)=>{const n=A(()=>new Promise((a,o)=>{yl.parse(e,t).then(s=>{a(s),r(s)},s=>{ht.error("Error parsing",s),ja.parseError?.(s),o(s),i(s)})}),"performCall");zv.push(n),V3().catch(i)}),"parse"),U3=A((e,t,r)=>new Promise((i,n)=>{const a=A(()=>new Promise((o,s)=>{yl.render(e,t,r).then(l=>{o(l),i(l)},l=>{ht.error("Error parsing",l),ja.parseError?.(l),s(l),n(l)})}),"performCall");zv.push(a),V3().catch(n)}),"render"),Mdt=A(()=>Object.keys(fl).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),ja={startOnLoad:!0,mermaidAPI:yl,parse:Adt,render:U3,init:Cdt,run:W3,registerExternalDiagrams:Tdt,registerLayoutLoaders:JN,initialize:G3,parseError:void 0,contentLoaded:q3,setParseErrorHandler:kdt,detectType:zw,registerIconPacks:Klt,getRegisteredDiagramsMetadata:Mdt},zL=ja;const Ldt={class:"flowchart-card"},Ddt={class:"card-header"},Edt={key:0,class:"card-title"},Idt={key:1,class:"card-description"},Pdt={class:"mermaid-container"},Bdt=jo({__name:"FlowchartCard",props:{visualization:{}},setup(e){const t=e,r=ol(null),i=()=>{if(!t.visualization.mermaid)return;const o=`https://mermaid.live/edit#base64:${btoa(JSON.stringify({code:t.visualization.mermaid,mermaid:{theme:"default"}}))}`;window.open(o,"_blank")};zL.initialize({startOnLoad:!1,theme:"default",themeVariables:{primaryColor:"#5b8ff9",primaryTextColor:"#fff",primaryBorderColor:"#4a7ed6",lineColor:"#666",secondaryColor:"#91d5ff",tertiaryColor:"#f5f5f5",fontSize:"14px"}});const n=async()=>{if(!(!r.value||!t.visualization.mermaid))try{const a=`mermaid-${t.visualization.id}`,{svg:o}=await zL.render(a,t.visualization.mermaid);r.value.innerHTML=o}catch(a){console.error("Mermaid rendering error:",a),r.value.innerHTML='<div class="error">Fout bij renderen flowchart</div>'}};return bl(()=>{n()}),Se(()=>t.visualization.mermaid,()=>{n()}),(a,o)=>(Ae(),ir("div",Ldt,[Ze("div",Ddt,[Ze("div",null,[e.visualization.title?(Ae(),ir("div",Edt,Ea(e.visualization.title),1)):Mo("",!0),e.visualization.description?(Ae(),ir("div",Idt,Ea(e.visualization.description),1)):Mo("",!0)]),Ze("button",{onClick:i,class:"editor-button",title:"Open in Mermaid Live Editor"},[...o[0]||(o[0]=[Ze("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[Ze("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),Ze("polyline",{points:"15 3 21 3 21 9"}),Ze("line",{x1:"10",y1:"14",x2:"21",y2:"3"})],-1)])])]),Ze("div",Pdt,[Ze("div",{ref_key:"mermaidEl",ref:r,class:"mermaid-diagram"},null,512)])]))}}),Odt=Uf(Bdt,[["__scopeId","data-v-4749611e"]]),Rdt={class:"grid-canvas"},Fdt=jo({__name:"GridCanvas",props:{visualizations:{}},setup(e){const t=e,r=ol(t.visualizations.map(n=>({x:n.x,y:n.y,w:n.w,h:n.h,i:n.id})));Se(()=>t.visualizations,n=>{const a=new Set(r.value.map(s=>s.i)),o=new Set(n.map(s=>s.id));r.value=r.value.filter(s=>o.has(s.i)),n.forEach(s=>{a.has(s.id)||r.value.push({x:s.x,y:s.y,w:s.w,h:s.h,i:s.id})})},{deep:!0});const i=n=>t.visualizations.find(a=>a.id===n);return(n,a)=>(Ae(),ir("div",Rdt,[Fr(sl(pH),{layout:r.value,"onUpdate:layout":a[0]||(a[0]=o=>r.value=o),"col-num":12,"row-height":60,"is-draggable":!0,"is-resizable":!0,"vertical-compact":!0,margin:[10,10],"use-css-transforms":!0},{default:gg(()=>[(Ae(!0),ir(Lr,null,bh(r.value,o=>(Ae(),Ia(sl(B_),{key:o.i,x:o.x,y:o.y,w:o.w,h:o.h,i:o.i},{default:gg(()=>[["line","bar","scatter","pie"].includes(i(o.i).type)?(Ae(),Ia(SQ,{key:0,visualization:i(o.i)},null,8,["visualization"])):i(o.i).type==="table"?(Ae(),Ia(IQ,{key:1,visualization:i(o.i)},null,8,["visualization"])):i(o.i).type==="flowchart"?(Ae(),Ia(Odt,{key:2,visualization:i(o.i)},null,8,["visualization"])):Mo("",!0)]),_:2},1032,["x","y","w","h","i"]))),128))]),_:1},8,["layout"])]))}}),$dt=Uf(Fdt,[["__scopeId","data-v-d8ade72c"]]),Ndt="";async function zdt(){const e=await fetch(`${Ndt}/state`);if(!e.ok)throw new Error("Failed to fetch canvas state");return e.json()}function Hdt(e,t=2e3){const r=async()=>{try{const n=await zdt();e(n)}catch(n){console.error("Error polling canvas state:",n)}};r();const i=setInterval(r,t);return()=>clearInterval(i)}const Wdt={class:"app"},Gdt={key:0,class:"empty-state"},qdt=jo({__name:"App",setup(e){const t=ol([]);let r=null;return bl(()=>{r=Hdt(i=>{t.value=i.visualizations})}),Se(()=>t.value,i=>{i.length>0&&i[0]?.title?document.title=i[0].title:document.title="chat-canvas"},{deep:!0}),Kv(()=>{r&&r()}),(i,n)=>(Ae(),ir("div",Wdt,[t.value.length===0?(Ae(),ir("div",Gdt,[...n[0]||(n[0]=[Ze("h2",null,"No visualizations yet",-1),Ze("p",null,"Use the MCP tools to add charts to the canvas",-1)])])):(Ae(),Ia($dt,{key:1,visualizations:t.value},null,8,["visualizations"]))]))}}),Vdt=Uf(qdt,[["__scopeId","data-v-90de88ab"]]),Udt=l8(Vdt);Udt.mount("#app");export{ZO as $,Hh as A,NQ as B,ott as C,wS as D,Zr as E,HO as F,Nst as G,Hit as H,nM as I,Ynt as J,xJ as K,Hc as L,jdt as M,Gm as N,zJ as O,Hw as P,vM as Q,Iit as R,rg as S,$st as T,jf as U,jJ as V,Yf as W,Ft as X,Kt as Y,Dst as Z,A as _,ttt as a,gS as a$,Mit as a0,RM as a1,OM as a2,apt as a3,tpt as a4,ipt as a5,rpt as a6,Qdt as a7,Zl as a8,tS as a9,Jlt as aA,Lit as aB,Ydt as aC,Wm as aD,Lv as aE,H5 as aF,lE as aG,ed as aH,Klt as aI,Zlt as aJ,Zw as aK,bo as aL,LM as aM,lrt as aN,xf as aO,nst as aP,N5 as aQ,I5 as aR,lot as aS,kv as aT,cot as aU,Jf as aV,Rs as aW,Jot as aX,rL as aY,Cl as aZ,uot as a_,npt as aa,Jdt as ab,spt as ac,opt as ad,ept as ae,Cct as af,XN as ag,mpt as ah,Xnt as ai,Tr as aj,Jo as ak,fS as al,x$ as am,Al as an,Y5 as ao,se as ap,ca as aq,gut as ar,vpt as as,ypt as at,ppt as au,Wt as av,gpt as aw,Kct as ax,Uct as ay,Vct as az,JJ as b,sot as b0,dot as b1,tu as b2,ist as b3,kst as b4,yot as b5,_st as b6,dS as b7,OL as b8,Ht as b9,e1 as bA,$e as bB,A5 as ba,Ai as bb,ert as bc,Xw as bd,uR as be,Zf as bf,dR as bg,Kdt as bh,$Q as bi,Tst as bj,yst as bk,Ast as bl,$m as bm,aot as bn,pS as bo,$5 as bp,Lst as bq,Jc as br,ust as bs,$ut as bt,Qf as bu,Mv as bv,Qo as bw,KM as bx,vS as by,B5 as bz,Be as c,Ce as d,XO as e,xr as f,rtt as g,Ya as h,cn as i,eat as j,Kc as k,ht as l,X5 as m,Xdt as n,bpt as o,itt as p,ntt as q,_pt as r,ett as s,jnt as t,Sn as u,Wct as v,Wst as w,lpt as x,QJ as y,Zdt as z};
|