9003e02616337bf14b4a3857d40e0b2be6ad621cb15b8b49bddec47fd513245017d1295495ac718d311168dc3f8e012dc020bed8783564ed91f251c856e7a6 246 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. (function(ue,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(ue=typeof globalThis<"u"?globalThis:ue||self,e(ue["@kjgl/datav-vue3"]={},ue.Vue))})(this,function(ue,e){"use strict";var Hr=(t=>(t.transparent="rgba(0,0,0,0)",t.black="#000000",t.silver="#C0C0C0",t.gray="#808080",t.white="#FFFFFF",t.maroon="#800000",t.red="#FF0000",t.purple="#800080",t.fuchsia="#FF00FF",t.green="#008000",t.lime="#00FF00",t.olive="#808000",t.yellow="#FFFF00",t.navy="#000080",t.blue="#0000FF",t.teal="#008080",t.aqua="#00FFFF",t.aliceblue="#f0f8ff",t.antiquewhite="#faebd7",t.aquamarine="#7fffd4",t.azure="#f0ffff",t.beige="#f5f5dc",t.bisque="#ffe4c4",t.blanchedalmond="#ffebcd",t.blueviolet="#8a2be2",t.brown="#a52a2a",t.burlywood="#deb887",t.cadetblue="#5f9ea0",t.chartreuse="#7fff00",t.chocolate="#d2691e",t.coral="#ff7f50",t.cornflowerblue="#6495ed",t.cornsilk="#fff8dc",t.crimson="#dc143c",t.cyan="#00ffff",t.darkblue="#00008b",t.darkcyan="#008b8b",t.darkgoldenrod="#b8860b",t.darkgray="#a9a9a9",t.darkgreen="#006400",t.darkgrey="#a9a9a9",t.darkkhaki="#bdb76b",t.darkmagenta="#8b008b",t.darkolivegreen="#556b2f",t.darkorange="#ff8c00",t.darkorchid="#9932cc",t.darkred="#8b0000",t.darksalmon="#e9967a",t.darkseagreen="#8fbc8f",t.darkslateblue="#483d8b",t.darkslategray="#2f4f4f",t.darkslategrey="#2f4f4f",t.darkturquoise="#00ced1",t.darkviolet="#9400d3",t.deeppink="#ff1493",t.deepskyblue="#00bfff",t.dimgray="#696969",t.dimgrey="#696969",t.dodgerblue="#1e90ff",t.firebrick="#b22222",t.floralwhite="#fffaf0",t.forestgreen="#228b22",t.gainsboro="#dcdcdc",t.ghostwhite="#f8f8ff",t.gold="#ffd700",t.goldenrod="#daa520",t.greenyellow="#adff2f",t.grey="#808080",t.honeydew="#f0fff0",t.hotpink="#ff69b4",t.indianred="#cd5c5c",t.indigo="#4b0082",t.ivory="#fffff0",t.khaki="#f0e68c",t.lavender="#e6e6fa",t.lavenderblush="#fff0f5",t.lawngreen="#7cfc00",t.lemonchiffon="#fffacd",t.lightblue="#add8e6",t.lightcoral="#f08080",t.lightcyan="#e0ffff",t.lightgoldenrodyellow="#fafad2",t.lightgray="#d3d3d3",t.lightgreen="#90ee90",t.lightgrey="#d3d3d3",t.lightpink="#ffb6c1",t.lightsalmon="#ffa07a",t.lightseagreen="#20b2aa",t.lightskyblue="#87cefa",t.lightslategray="#778899",t.lightslategrey="#778899",t.lightsteelblue="#b0c4de",t.lightyellow="#ffffe0",t.limegreen="#32cd32",t.linen="#faf0e6",t.magenta="#ff00ff",t.mediumaquamarine="#66cdaa",t.mediumblue="#0000cd",t.mediumorchid="#ba55d3",t.mediumpurple="#9370db",t.mediumseagreen="#3cb371",t.mediumslateblue="#7b68ee",t.mediumspringgreen="#00fa9a",t.mediumturquoise="#48d1cc",t.mediumvioletred="#c71585",t.midnightblue="#191970",t.mintcream="#f5fffa",t.mistyrose="#ffe4e1",t.moccasin="#ffe4b5",t.navajowhite="#ffdead",t.oldlace="#fdf5e6",t.olivedrab="#6b8e23",t.orange="#ffa500",t.orangered="#ff4500",t.orchid="#da70d6",t.palegoldenrod="#eee8aa",t.palegreen="#98fb98",t.paleturquoise="#afeeee",t.palevioletred="#db7093",t.papayawhip="#ffefd5",t.peachpuff="#ffdab9",t.peru="#cd853f",t.pink="#ffc0cb",t.plum="#dda0dd",t.powderblue="#b0e0e6",t.rosybrown="#bc8f8f",t.royalblue="#4169e1",t.saddlebrown="#8b4513",t.salmon="#fa8072",t.sandybrown="#f4a460",t.seagreen="#2e8b57",t.seashell="#fff5ee",t.sienna="#a0522d",t.skyblue="#87ceeb",t.slateblue="#6a5acd",t.slategray="#708090",t.snow="#fffafa",t.springgreen="#00ff7f",t.steelblue="#4682b4",t.tan="#d2b48c",t.thistle="#d8bfd8",t.tomato="#ff6347",t.turquoise="#40e0d0",t.violet="#ee82ee",t.wheat="#f5deb3",t.whitesmoke="#f5f5f5",t.yellowgreen="#9acd32",t))(Hr||{});function rt(t){return typeof t!="string"?!1:(t=t.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))}function to(t){return typeof t!="string"?!1:(t=t.toLowerCase(),/^(rgb\(|RGB\()/.test(t))}function Ur(t){return typeof t!="string"?!1:(t=t.toLowerCase(),/^(rgba|RGBA)/.test(t))}function Xr(t){return/^(rgb|rgba|RGB|RGBA)/.test(t)}function ro(t){return Hr[t]}function Qr(t){if(rt(t)||Xr(t))return t;const n=ro(t);if(!n)throw new Error(`Color: Invalid Input of ${t}`);return n}function no(t){t=t.replace("#",""),t.length===3&&(t=Array.from(t).map(o=>o+o).join(""));const n=t.split("");return new Array(3).fill(0).map((o,r)=>parseInt(`0x${n[r*2]}${n[r*2+1]}`))}function ao(t){return t.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(n=>parseInt(n))}function Te(t){const n=Qr(t).toLowerCase();return rt(n)?no(n):ao(n)}function Yr(t){const n=Qr(t);return Ur(n)?Number(n.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function lr(t){const n=Te(t);return n&&[...n,Yr(t)]}function oo(t,n){const o=Te(t);return typeof n=="number"?`rgba(${o.join(",")},${n})`:`rgb(${o.join(",")})`}function io(t){if(rt(t))return t;const n=Te(t),o=r=>Number(r).toString(16).padStart(2,"0");return`#${n.map(o).join("")}`}function nt(t){if(!Array.isArray(t))throw new Error(`getColorFromRgbValue: ${t} is not an array`);const{length:n}=t;if(n!==3&&n!==4)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(n===3?"rgb(":"rgba(")+t.join(",")+")"}function lo(t,n=0){let o=lr(t);return o=o.map((r,a)=>a===3?r:r-Math.ceil(2.55*n)).map(r=>r<0?0:r),nt(o)}function sr(t,n=0){let o=lr(t);return o=o.map((r,a)=>a===3?r:r+Math.ceil(2.55*n)).map(r=>r>255?255:r),nt(o)}function Ce(t,n=100){const o=Te(t);return nt([...o,n/100])}const so=Object.freeze(Object.defineProperty({__proto__:null,darken:lo,fade:Ce,getColorFromRgbValue:nt,getOpacity:Yr,getRgbValue:Te,getRgbaValue:lr,isHex:rt,isRgb:to,isRgbOrRgba:Xr,isRgba:Ur,lighten:sr,toHex:io,toRgb:oo},Symbol.toStringTag,{value:"Module"})),Ve=(t,n)=>{const o=t.__vccOpts||t;for(const[r,a]of n)o[r]=a;return o},co={},fo={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function uo(t,n){return e.openBlock(),e.createElementBlock("svg",fo,n[0]||(n[0]=[e.createElementVNode("g",{style:{transform:"translate(2px, 2px)"}},[e.createElementVNode("g",null,[e.createElementVNode("path",{"data-type":"shape",d:"M0,0 L0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-bg"})]),e.createElementVNode("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19",class:"dv-button-svg-line"})],-1)]))}const ho=Ve(co,[["render",uo]]),po={},go={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function mo(t,n){return e.openBlock(),e.createElementBlock("svg",go,n[0]||(n[0]=[e.createStaticVNode('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L164.1,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L0,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M1.1,34 L1.1,0" class="dv-button-svg-line"></path></g>',1)]))}const yo=Ve(po,[["render",mo]]),vo={},bo={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Co(t,n){return e.openBlock(),e.createElementBlock("svg",bo,n[0]||(n[0]=[e.createStaticVNode('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M1,1 L1,33 L162,33 L162,1" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L0,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,0 L10,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,0 L153,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L153,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L163,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L0,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,34 L10,34" class="dv-button-svg-line"></path></g>',1)]))}const xo=Ve(vo,[["render",Co]]),$o={},ko={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function _o(t,n){return e.openBlock(),e.createElementBlock("svg",ko,n[0]||(n[0]=[e.createElementVNode("g",{style:{transform:"translate(2px, 2px)"}},[e.createElementVNode("g",null,[e.createElementVNode("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L0,0",class:"dv-button-svg-bg"})]),e.createElementVNode("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),e.createElementVNode("path",{"data-type":"polyline",d:"M184.1,0 L0,0 L0,34.7",class:"dv-button-svg-line"})],-1)]))}const Po=Ve($o,[["render",_o]]),wo={},Ao={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"};function No(t,n){return e.openBlock(),e.createElementBlock("svg",Ao,n[0]||(n[0]=[e.createElementVNode("g",{style:{transform:"translate(2px, 2px)"}},[e.createElementVNode("g",null,[e.createElementVNode("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L15,0 L0,15",class:"dv-button-svg-bg"})]),e.createElementVNode("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),e.createElementVNode("path",{"data-type":"polyline",d:"M183,0 L15,0 L0,15 L0,34",class:"dv-button-svg-line"})],-1)]))}const Lo=Ve(wo,[["render",No]]),So={},Bo={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"};function Eo(t,n){return e.openBlock(),e.createElementBlock("svg",Bo,n[0]||(n[0]=[e.createStaticVNode('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L81.6,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L81.4,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L81.6,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L81.4,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,1 L10,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,1 L153,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,33 L10,33" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,33 L153,33" class="dv-button-svg-line"></path></g>',1)]))}const Vo=Ve(So,[["render",Eo]]),Oo={class:"dv-button-wrapper"},Mo={class:"dv-button"},Ro={class:"dv-button-svg-container"},Go={class:"dv-button-text"},Kr=e.defineComponent({components:{Border1:ho,Border2:yo,Border3:xo,Border4:Po,Border5:Lo,Border6:Vo},__name:"index",props:{color:{default:"#2058c7"},fontColor:{default:""},bg:{type:Boolean,default:!0},border:{default:"Border1"},fontSize:{default:14}},setup(t){e.useCssVars(k=>({"108fc75d":e.unref(i),"45ef2fd4":k.color,fc71f308:e.unref(r),"6ca41ab4":e.unref(o),"1faf6725":e.unref(a),"9aee3820":e.unref(l)}));const n=t,o=e.computed(()=>sr(n.color,40)),r=e.computed(()=>n.fontColor===""?n.color:n.fontColor),a=e.computed(()=>sr(r.value,40)),l=e.computed(()=>n.bg?.1:0),i=e.computed(()=>`${n.fontSize}px`);return(k,C)=>(e.openBlock(),e.createElementBlock("div",Oo,[e.createElementVNode("button",Mo,[e.createElementVNode("div",Ro,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.border)))]),e.createElementVNode("div",Go,[e.renderSlot(k.$slots,"default")])])]))}}),at={install(t){t.component("DvButton",Kr)}};function Do(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ot(t){return typeof t=="function"?t():e.unref(t)}const Fo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const To=Object.prototype.toString,Wo=t=>To.call(t)==="[object Object]",cr=()=>{};function jo(t,n){function o(...r){return new Promise((a,l)=>{Promise.resolve(t(()=>n.apply(this,r),{fn:n,thisArg:this,args:r})).then(a).catch(l)})}return o}function zo(t,n={}){let o,r,a=cr;const l=k=>{clearTimeout(k),a(),a=cr};return k=>{const C=ot(t),j=ot(n.maxWait);return o&&l(o),C<=0||j!==void 0&&j<=0?(r&&(l(r),r=null),Promise.resolve(k())):new Promise((W,U)=>{a=n.rejectOnCancel?U:W,j&&!r&&(r=setTimeout(()=>{o&&l(o),r=null,W(k())},j)),o=setTimeout(()=>{r&&l(r),r=null,W(k())},C)})}}function qo(t,n=200,o={}){return jo(zo(n,o),t)}function Io(t){var n;const o=ot(t);return(n=o==null?void 0:o.$el)!=null?n:o}const Ho=Fo?window:void 0;function Uo(...t){let n,o,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,r,a]=t,n=Ho):[n,o,r,a]=t,!n)return cr;Array.isArray(o)||(o=[o]),Array.isArray(r)||(r=[r]);const l=[],i=()=>{l.forEach(W=>W()),l.length=0},k=(W,U,M,N)=>(W.addEventListener(U,M,N),()=>W.removeEventListener(U,M,N)),C=e.watch(()=>[Io(n),ot(a)],([W,U])=>{if(i(),!W)return;const M=Wo(U)?{...U}:U;l.push(...o.flatMap(N=>r.map(d=>k(W,N,d,M))))},{immediate:!0,flush:"post"}),j=()=>{C(),i()};return Do(j),j}function We(t,n){return arguments.length===1?Number.parseInt((Math.random()*t+1).toString(),10):Number.parseInt((Math.random()*(n-t+1)+t).toString(),10)}function Xo(t,n){const o=window.MutationObserver,r=new o(n);return r.observe(t,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),r}function it(t,n){const o=Math.abs(t[0]-n[0]),r=Math.abs(t[1]-n[1]);return Math.sqrt(o*o+r*r)}function De(t,n,o,r){return[t+Math.cos(r)*o,n+Math.sin(r)*o]}function Qo(t){return t.filter(n=>typeof n=="number")}function Yo(t){return t=Qo(t),t.reduce((n,o)=>n+o,0)}function Ko(t,n){const o=Math.abs(t.x-n.x),r=Math.abs(t.y-n.y);return Math.sqrt(o*o+r*r)}function Jr(t){const o=Array.from({length:t.length-1}).fill(0).map((r,a)=>[t[a],t[a+1]]).map(r=>Ko(r[0],r[1]));return Yo(o)}function Jo(t){return`${t.x},${t.y}`}function Zr(t){return t.map(Jo).join(" ")}function Le(t){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,n=>{const o=Math.random()*16|0;return(n==="x"?o:o&3|8).toString(16)})}function me(t,n){for(const o in n){if(t[o]&&typeof t[o]=="object"){me(t[o],n[o]);continue}if(typeof n[o]=="object"){t[o]=ye(n[o]);continue}t[o]=n[o]}return t}function ye(t,n){if(!t)return t;const o=Array.isArray(t)?[]:{};if(t&&typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]&&typeof t[r]=="object"?o[r]=ye(t[r]):o[r]=t[r]);return o}function ge(t,n,o){const r=e.ref(0),a=e.ref(0);let l,i=null,k=null;const C=(N=!0)=>new Promise(d=>{e.nextTick(()=>{k=t.value,r.value=t.value?t.value.clientWidth:0,a.value=t.value?t.value.clientHeight:0,t.value?(!r.value||!a.value)&&console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),typeof n=="function"&&N&&n(),d(!0)})}),j=()=>{l=qo(C,200)},W=()=>{i=Xo(k,l),Uo(window,"resize",l)},U=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)},M=async()=>{await C(!1),j(),W(),typeof o=="function"&&o()};return e.onMounted(()=>{M()}),e.onUnmounted(()=>{U()}),e.onActivated(M),e.onDeactivated(U),{width:r,height:a,initWH:C}}const Zo=["width","height"],ei=["d","fill"],ti=["fill","x","y"],ri=["xlink:href","width","height","x","y"],ni=["fill","x","y"],en={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(t){e.useCssVars(N=>({"51c9737a":e.unref(i)}));const n=t,o=e.ref(null),{width:r,height:a}=ge(o,C,k),l=e.reactive({defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1,sort:!0},mergedConfig:null,column:[]}),i=e.computed(()=>`${n.config.fontSize?n.config.fontSize:l.defaultConfig.fontSize}px`);e.watch(()=>n.config,()=>{j()},{deep:!0});function k(){j()}function C(){j()}function j(){W(),U(),M()}function W(){l.mergedConfig=me(ye(l.defaultConfig),n.config||{})}function U(){let{data:N}=l.mergedConfig;const{sort:d}=l.mergedConfig;N=ye(N),d&&N.sort(({value:F},{value:z})=>F>z?-1:F<z?1:0);const G=Math.max(...N.map(F=>F.value));N=N.map(F=>({...F,percent:G===0?0:F.value/G})),l.mergedConfig.data=N}function M(){const{imgSideLength:N,fontSize:d,data:G}=l.mergedConfig,F=G.length,z=r.value/(F+1),B=a.value-N-d-5,y=a.value-d-5;l.column=G.map((v,u)=>{const{percent:O}=v,w=z*(u+1),x=z*u,$=z*(u+2),f=y-B*O,E=B*O*.6+f,A=`
  2. M${x}, ${y}
  3. Q${w}, ${E} ${w},${f}
  4. M${w},${f}
  5. Q${w}, ${E} ${$},${y}
  6. L${x}, ${y}
  7. Z
  8. `,g=(y+f)/2+d/2;return{...v,d:A,x:w,y:f,textY:g}})}return(N,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"conicalColumnChart",ref:o,class:"dv-conical-column-chart"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(r),height:e.unref(a)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l).column,(G,F)=>(e.openBlock(),e.createElementBlock("g",{key:F},[e.createElementVNode("path",{d:G.d,fill:e.unref(l).mergedConfig.columnColor},null,8,ei),e.createElementVNode("text",{fill:e.unref(l).mergedConfig.textColor,x:G.x,y:e.unref(a)-4},e.toDisplayString(G.name),9,ti),e.unref(l).mergedConfig.img.length?(e.openBlock(),e.createElementBlock("image",{key:0,"xlink:href":e.unref(l).mergedConfig.img[F%e.unref(l).mergedConfig.img.length],width:e.unref(l).mergedConfig.imgSideLength,height:e.unref(l).mergedConfig.imgSideLength,x:G.x-e.unref(l).mergedConfig.imgSideLength/2,y:G.y-e.unref(l).mergedConfig.imgSideLength},null,8,ri)):e.createCommentVNode("",!0),e.unref(l).mergedConfig.showValue?(e.openBlock(),e.createElementBlock("text",{key:1,fill:e.unref(l).mergedConfig.textColor,x:G.x,y:G.textY},e.toDisplayString(G.value),9,ni)):e.createCommentVNode("",!0)]))),128))],8,Zo))],512))}},lt={install(t){t.component("DvConicalColumnChart",en)}},ai=["id"],oi=["offset","stop-color"],ii=["id","x2"],li=["offset","stop-color"],si=["x","y","rx","ry","stroke-width","stroke","width","height"],ci=["stroke-width","stroke-dasharray","stroke","points"],fi=["stroke","fill","x","y"],tn={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(t){const n=t,o=Le(),r=e.ref(null),a=e.reactive({gradientId1:`percent-pond-gradientId1-${o}`,gradientId2:`percent-pond-gradientId2-${o}`,width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}),l=e.computed(()=>{if(!a.mergedConfig)return 0;const{borderWidth:F}=a.mergedConfig;return a.width-F}),i=e.computed(()=>{if(!a.mergedConfig)return 0;const{borderWidth:F}=a.mergedConfig;return a.height-F}),k=e.computed(()=>{const F=a.height/2;if(!a.mergedConfig)return`0, ${F} 0, ${F}`;const{borderWidth:z,borderGap:B,value:y}=a.mergedConfig,v=(a.width-(z+B)*2)/100*y;return`
  9. ${z+B}, ${F}
  10. ${z+B+v}, ${F+.001}
  11. `}),C=e.computed(()=>{if(!a.mergedConfig)return 0;const{borderWidth:F,borderGap:z}=a.mergedConfig;return a.height-(F+z)*2}),j=e.computed(()=>{if(!a.mergedConfig)return[];const{colors:F}=a.mergedConfig,B=100/(F.length-1);return F.map((y,v)=>[B*v,y])}),W=e.computed(()=>a.mergedConfig&&a.mergedConfig.localGradient?a.gradientId1:a.gradientId2),U=e.computed(()=>{if(!a.mergedConfig)return"100%";const{value:F}=a.mergedConfig;return`${200-F}%`}),M=e.computed(()=>{if(!a.mergedConfig)return"";const{value:F,formatter:z}=a.mergedConfig;return z.replace("{value}",F)});e.watch(()=>n.config,()=>{G()},{deep:!0}),e.onMounted(()=>{N()});async function N(){await d(),n.config&&G()}async function d(){await e.nextTick();const{clientWidth:F,clientHeight:z}=r.value;a.width=F,a.height=z}function G(){a.mergedConfig=me(ye(a.defaultConfig),n.config||{})}return(F,z)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"percentPond",ref:r,class:"dv-percent-pond"},[(e.openBlock(),e.createElementBlock("svg",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:e.unref(a).gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(j),B=>(e.openBlock(),e.createElementBlock("stop",{key:B[0],offset:`${B[0]}%`,"stop-color":B[1]},null,8,oi))),128))],8,ai),e.createElementVNode("linearGradient",{id:e.unref(a).gradientId2,x1:"0%",y1:"0%",x2:e.unref(U),y2:"0%"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(j),B=>(e.openBlock(),e.createElementBlock("stop",{key:B[0],offset:`${B[0]}%`,"stop-color":B[1]},null,8,li))),128))],8,ii)]),e.createElementVNode("rect",{x:e.unref(a).mergedConfig?e.unref(a).mergedConfig.borderWidth/2:"0",y:e.unref(a).mergedConfig?e.unref(a).mergedConfig.borderWidth/2:"0",rx:e.unref(a).mergedConfig?e.unref(a).mergedConfig.borderRadius:"0",ry:e.unref(a).mergedConfig?e.unref(a).mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":e.unref(a).mergedConfig?e.unref(a).mergedConfig.borderWidth:"0",stroke:`url(#${e.unref(a).gradientId1})`,width:e.unref(l)>0?e.unref(l):0,height:e.unref(i)>0?e.unref(i):0},null,8,si),e.createElementVNode("polyline",{"stroke-width":e.unref(C),"stroke-dasharray":e.unref(a).mergedConfig?e.unref(a).mergedConfig.lineDash.join(","):"0",stroke:`url(#${e.unref(W)})`,points:e.unref(k)},null,8,ci),e.createElementVNode("text",{stroke:e.unref(a).mergedConfig?e.unref(a).mergedConfig.textColor:"#fff",fill:e.unref(a).mergedConfig?e.unref(a).mergedConfig.textColor:"#fff",x:e.unref(a).width/2,y:e.unref(a).height/2},e.toDisplayString(e.unref(M)),9,fi)]))],512))}},st={install(t){t.component("DvPercentPond",tn)}};function rn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ui(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),o}var ct={},nn={exports:{}};(function(t){function n(o){return o&&o.__esModule?o:{default:o}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(nn);var ve=nn.exports,fr={},ur={exports:{}},dr={exports:{}},hr={exports:{}},an;function ke(){return an||(an=1,function(t){function n(o){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,n(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(hr)),hr.exports}var pr={exports:{}},on;function di(){return on||(on=1,function(t){var n=ke().default;function o(r,a){if(n(r)!="object"||!r)return r;var l=r[Symbol.toPrimitive];if(l!==void 0){var i=l.call(r,a||"default");if(n(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(pr)),pr.exports}var ln;function hi(){return ln||(ln=1,function(t){var n=ke().default,o=di();function r(a){var l=o(a,"string");return n(l)=="symbol"?l:String(l)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(dr)),dr.exports}var sn;function Se(){return sn||(sn=1,function(t){var n=hi();function o(r,a,l){return a=n(a),a in r?Object.defineProperty(r,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[a]=l,r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(ur)),ur.exports}var gr={exports:{}},mr={exports:{}},yr={exports:{}},cn;function fn(){return cn||(cn=1,function(t){function n(o,r){(r==null||r>o.length)&&(r=o.length);for(var a=0,l=new Array(r);a<r;a++)l[a]=o[a];return l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(yr)),yr.exports}var un;function pi(){return un||(un=1,function(t){var n=fn();function o(r){if(Array.isArray(r))return n(r)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(mr)),mr.exports}var vr={exports:{}},dn;function gi(){return dn||(dn=1,function(t){function n(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(vr)),vr.exports}var br={exports:{}},hn;function pn(){return hn||(hn=1,function(t){var n=fn();function o(r,a){if(r){if(typeof r=="string")return n(r,a);var l=Object.prototype.toString.call(r).slice(8,-1);if(l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set")return Array.from(r);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return n(r,a)}}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(br)),br.exports}var Cr={exports:{}},gn;function mi(){return gn||(gn=1,function(t){function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  12. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Cr)),Cr.exports}var mn;function xe(){return mn||(mn=1,function(t){var n=pi(),o=gi(),r=pn(),a=mi();function l(i){return n(i)||o(i)||r(i)||a()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports}(gr)),gr.exports}var xr={exports:{}},yn;function je(){return yn||(yn=1,function(t){function n(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(xr)),xr.exports}const ze=ui(so);var $r={},kr={},_r={exports:{}},Pr={exports:{}},vn;function yi(){return vn||(vn=1,function(t){function n(o){if(Array.isArray(o))return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Pr)),Pr.exports}var wr={exports:{}},bn;function vi(){return bn||(bn=1,function(t){function n(o,r){var a=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(a!=null){var l,i,k,C,j=[],W=!0,U=!1;try{if(k=(a=a.call(o)).next,r===0){if(Object(a)!==a)return;W=!1}else for(;!(W=(l=k.call(a)).done)&&(j.push(l.value),j.length!==r);W=!0);}catch(M){U=!0,i=M}finally{try{if(!W&&a.return!=null&&(C=a.return(),Object(C)!==C))return}finally{if(U)throw i}}return j}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(wr)),wr.exports}var Ar={exports:{}},Cn;function bi(){return Cn||(Cn=1,function(t){function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  13. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Ar)),Ar.exports}var xn;function _e(){return xn||(xn=1,function(t){var n=yi(),o=vi(),r=pn(),a=bi();function l(i,k){return n(i)||o(i,k)||r(i,k)||a()}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports}(_r)),_r.exports}var $n;function Ci(){return $n||($n=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=z,t.getBezierCurveLength=B,t.default=void 0;var o=n(_e()),r=n(xe()),a=Math.sqrt,l=Math.pow,i=Math.ceil,k=Math.abs,C=50;function j(v){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,O=v.length-1,w=v[0],x=v[O][2],$=v.slice(1),f=$.map(function(H,X){var Z=X===0?w:$[X-1][2];return W.apply(void 0,[Z].concat((0,r.default)(H)))}),E=new Array(O).fill(C),A=d(f,E),g=F(A,f,$,u);return g.segmentPoints.push(x),g}function W(v,u,O,w){return function(x){var $=1-x,f=l($,3),E=l($,2),A=l(x,3),g=l(x,2);return[v[0]*f+3*u[0]*x*E+3*O[0]*g*$+w[0]*A,v[1]*f+3*u[1]*x*E+3*O[1]*g*$+w[1]*A]}}function U(v,u){var O=(0,o.default)(v,2),w=O[0],x=O[1],$=(0,o.default)(u,2),f=$[0],E=$[1];return a(l(w-f,2)+l(x-E,2))}function M(v){return v.reduce(function(u,O){return u+O},0)}function N(v){return v.map(function(u,O){return new Array(u.length-1).fill(0).map(function(w,x){return U(u[x],u[x+1])})})}function d(v,u){return v.map(function(O,w){var x=1/u[w];return new Array(u[w]).fill("").map(function($,f){return O(f*x)})})}function G(v,u){return v.map(function(O){return O.map(function(w){return k(w-u)})}).map(function(O){return M(O)}).reduce(function(O,w){return O+w},0)}function F(v,u,O,w){var x=4,$=1,f=function(){var g=v.reduce(function(Q,ee){return Q+ee.length},0);v.forEach(function(Q,ee){return Q.push(O[ee][2])});var H=N(v),X=H.reduce(function(Q,ee){return Q+ee.length},0),Z=H.map(function(Q){return M(Q)}),c=M(Z),q=c/X,m=G(H,q);if(m<=w)return"break";g=i(q/w*g*1.1);var p=Z.map(function(Q){return i(Q/c*g)});v=d(u,p),g=v.reduce(function(Q,ee){return Q+ee.length},0);var L=JSON.parse(JSON.stringify(v));L.forEach(function(Q,ee){return Q.push(O[ee][2])}),H=N(L),X=H.reduce(function(Q,ee){return Q+ee.length},0),Z=H.map(function(Q){return M(Q)}),c=M(Z),q=c/X;var J=1/g/10;u.forEach(function(Q,ee){for(var ae=p[ee],fe=new Array(ae).fill("").map(function(P,S){return S/p[ee]}),Y=0;Y<x;Y++)for(var ne=N([v[ee]])[0],ie=ne.map(function(P){return P-q}),le=0,D=0;D<ae;D++){if(D===0)return;le+=ie[D-1],fe[D]-=J*le,fe[D]>1&&(fe[D]=1),fe[D]<0&&(fe[D]=0),v[ee][D]=Q(fe[D])}}),x*=4,$++};do{var E=f();if(E==="break")break}while(x<=1025);return v=v.reduce(function(A,g){return A.concat(g)},[]),{segmentPoints:v,cycles:$,rounds:x}}function z(v){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!v)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(v instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if(typeof u!="number")return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var O=j(v,u),w=O.segmentPoints;return w}function B(v){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!v)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(v instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if(typeof u!="number")return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var O=j(v,u),w=O.segmentPoints,x=N([w])[0],$=M(x);return $}var y=z;t.default=y}(kr)),kr}var Nr={},kn;function xi(){return kn||(kn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(_e()),r=n(xe());function a(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.25,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25;if(!(j instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(j.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var N=j[0],d=j.length-1,G=new Array(d).fill(0).map(function(F,z){return[].concat((0,r.default)(l(j,z,W,U,M)),[j[z+1]])});return W&&i(G,N),G.unshift(j[0]),G}function l(j,W){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.25,d=j.length;if(!(d<3||W>=d)){var G=W-1;G<0&&(G=U?d+G:0);var F=W+1;F>=d&&(F=U?F-d:d-1);var z=W+2;z>=d&&(z=U?z-d:d-1);var B=j[G],y=j[W],v=j[F],u=j[z];return[[y[0]+M*(v[0]-B[0]),y[1]+M*(v[1]-B[1])],[v[0]-N*(u[0]-y[0]),v[1]-N*(u[1]-y[1])]]}}function i(j,W){var U=j[0],M=j.slice(-1)[0];return j.push([k(M[1],M[2]),k(U[0],W),W]),j}function k(j,W){var U=(0,o.default)(j,2),M=U[0],N=U[1],d=(0,o.default)(W,2),G=d[0],F=d[1],z=G-M,B=F-N;return[G+z,F+B]}var C=a;t.default=C}(Nr)),Nr}var _n;function Lr(){return _n||(_n=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return o.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return o.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return r.default}}),t.default=void 0;var o=Ci(),r=n(xi()),a={bezierCurveToPolyline:o.bezierCurveToPolyline,getBezierCurveLength:o.getBezierCurveLength,polylineToBezierCurve:r.default};t.default=a}($r)),$r}var Sr={},Pn;function $e(){return Pn||(Pn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=M,t.eliminateBlur=N,t.checkPointIsInCircle=d,t.getTwoPointDistance=G,t.checkPointIsInPolygon=F,t.checkPointIsInSector=z,t.checkPointIsNearPolyline=y,t.checkPointIsInRect=v,t.getRotatePointPos=u,t.getScalePointPos=O,t.getTranslatePointPos=w,t.getDistanceBetweenPointAndLine=x,t.getCircleRadianPoint=$,t.getRegularPolygonPoints=f,t.default=void 0;var o=n(xe()),r=n(_e()),a=n(ke()),l=Math.abs,i=Math.sqrt,k=Math.sin,C=Math.cos,j=Math.max,W=Math.min,U=Math.PI;function M(A){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A)return A;var H=JSON.parse,X=JSON.stringify;if(!g)return H(X(A));var Z=A instanceof Array?[]:{};if(A&&(0,a.default)(A)==="object")for(var c in A)A.hasOwnProperty(c)&&(A[c]&&(0,a.default)(A[c])==="object"?Z[c]=M(A[c],!0):Z[c]=A[c]);return Z}function N(A){return A.map(function(g){var H=(0,r.default)(g,2),X=H[0],Z=H[1];return[parseInt(X)+.5,parseInt(Z)+.5]})}function d(A,g,H,X){return G(A,[g,H])<=X}function G(A,g){var H=(0,r.default)(A,2),X=H[0],Z=H[1],c=(0,r.default)(g,2),q=c[0],m=c[1],p=l(X-q),L=l(Z-m);return i(p*p+L*L)}function F(A,g){for(var H=0,X=(0,r.default)(A,2),Z=X[0],c=X[1],q=g.length,m=1,p=g[0];m<=q;m++){var L=g[m%q];if(Z>W(p[0],L[0])&&Z<=j(p[0],L[0])&&c<=j(p[1],L[1])&&p[0]!==L[0]){var J=(Z-p[0])*(L[1]-p[1])/(L[0]-p[0])+p[1];(p[1]===L[1]||c<=J)&&H++}p=L}return H%2===1}function z(A,g,H,X,Z,c,q){if(!A||G(A,[g,H])>X)return!1;if(!q){var m=M([c,Z]),p=(0,r.default)(m,2);Z=p[0],c=p[1]}var L=Z>c;if(L){var J=[c,Z];Z=J[0],c=J[1]}var Q=c-Z;if(Q>=U*2)return!0;var ee=(0,r.default)(A,2),ae=ee[0],fe=ee[1],Y=$(g,H,X,Z),ne=(0,r.default)(Y,2),ie=ne[0],le=ne[1],D=$(g,H,X,c),P=(0,r.default)(D,2),S=P[0],R=P[1],I=[ae-g,fe-H],te=[ie-g,le-H],h=[S-g,R-H],T=Q>U;if(T){var s=M([h,te]),b=(0,r.default)(s,2);te=b[0],h=b[1]}var _=B(te,I)&&!B(h,I);return T&&(_=!_),L&&(_=!_),_}function B(A,g){var H=(0,r.default)(A,2),X=H[0],Z=H[1],c=(0,r.default)(g,2),q=c[0],m=c[1];return-Z*q+X*m>0}function y(A,g,H){var X=H/2,Z=g.map(function(m){var p=(0,r.default)(m,2),L=p[0],J=p[1];return[L,J-X]}),c=g.map(function(m){var p=(0,r.default)(m,2),L=p[0],J=p[1];return[L,J+X]}),q=[].concat((0,o.default)(Z),(0,o.default)(c.reverse()));return F(A,q)}function v(A,g,H,X,Z){var c=(0,r.default)(A,2),q=c[0],m=c[1];return!(q<g||m<H||q>g+X||m>H+Z)}function u(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1?arguments[1]:void 0,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!g)return!1;if(A%360===0)return g;var X=(0,r.default)(g,2),Z=X[0],c=X[1],q=(0,r.default)(H,2),m=q[0],p=q[1];return A*=U/180,[(Z-m)*C(A)-(c-p)*k(A)+m,(Z-m)*k(A)+(c-p)*C(A)+p]}function O(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[1,1],g=arguments.length>1?arguments[1]:void 0,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!g)return!1;if(A===1)return g;var X=(0,r.default)(g,2),Z=X[0],c=X[1],q=(0,r.default)(H,2),m=q[0],p=q[1],L=(0,r.default)(A,2),J=L[0],Q=L[1],ee=Z-m,ae=c-p;return[ee*J+m,ae*Q+p]}function w(A,g){if(!A||!g)return!1;var H=(0,r.default)(g,2),X=H[0],Z=H[1],c=(0,r.default)(A,2),q=c[0],m=c[1];return[X+q,Z+m]}function x(A,g,H){if(!A||!g||!H)return!1;var X=(0,r.default)(A,2),Z=X[0],c=X[1],q=(0,r.default)(g,2),m=q[0],p=q[1],L=(0,r.default)(H,2),J=L[0],Q=L[1],ee=Q-p,ae=m-J,fe=p*(J-m)-m*(Q-p),Y=l(ee*Z+ae*c+fe),ne=i(ee*ee+ae*ae);return Y/ne}function $(A,g,H,X){return[A+C(X)*H,g+k(X)*H]}function f(A,g,H,X){var Z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:U*-.5,c=U*2/X,q=new Array(X).fill("").map(function(m,p){return p*c+Z});return q.map(function(m){return $(A,g,H,m)})}var E={deepClone:M,eliminateBlur:N,checkPointIsInCircle:d,checkPointIsInPolygon:F,checkPointIsInSector:z,checkPointIsNearPolyline:y,getTwoPointDistance:G,getRotatePointPos:u,getScalePointPos:O,getTranslatePointPos:w,getCircleRadianPoint:$,getRegularPolygonPoints:f,getDistanceBetweenPointAndLine:x};t.default=E}(Sr)),Sr}var Br={},Er={},wn;function $i(){return wn||(wn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.drawPolylinePath=r,t.drawBezierCurvePath=a,t.default=void 0;var o=n(xe());function r(i,k){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!i||k.length<2)return!1;C&&i.beginPath(),k.forEach(function(W,U){return W&&(U===0?i.moveTo.apply(i,(0,o.default)(W)):i.lineTo.apply(i,(0,o.default)(W)))}),j&&i.closePath()}function a(i,k){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!i||!k)return!1;j&&i.beginPath(),C&&i.moveTo.apply(i,(0,o.default)(C)),k.forEach(function(U){return U&&i.bezierCurveTo.apply(i,(0,o.default)(U[0]).concat((0,o.default)(U[1]),(0,o.default)(U[2])))}),W&&i.closePath()}var l={drawPolylinePath:r,drawBezierCurvePath:a};t.default=l}(Er)),Er}var An;function Vr(){return An||(An=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.extendNewGraph=O,t.default=t.text=t.bezierCurve=t.smoothline=t.polyline=t.regPolygon=t.sector=t.arc=t.ring=t.rect=t.ellipse=t.circle=void 0;var o=n(xe()),r=n(_e()),a=n(Lr()),l=$e(),i=$i(),k=a.default.polylineToBezierCurve,C=a.default.bezierCurveToPolyline,j={shape:{rx:0,ry:0,r:0},validator:function(x){var $=x.shape,f=$.rx,E=$.ry,A=$.r;return typeof f!="number"||typeof E!="number"||typeof A!="number"?(console.error("Circle shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.rx,g=E.ry,H=E.r;f.arc(A,g,H>0?H:.01,0,Math.PI*2),f.fill(),f.stroke(),f.closePath()},hoverCheck:function(x,$){var f=$.shape,E=f.rx,A=f.ry,g=f.r;return(0,l.checkPointIsInCircle)(x,E,A,g)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape;this.attr("shape",{rx:A.rx+f,ry:A.ry+E})}};t.circle=j;var W={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(x){var $=x.shape,f=$.rx,E=$.ry,A=$.hr,g=$.vr;return typeof f!="number"||typeof E!="number"||typeof A!="number"||typeof g!="number"?(console.error("Ellipse shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.rx,g=E.ry,H=E.hr,X=E.vr;f.ellipse(A,g,H>0?H:.01,X>0?X:.01,0,0,Math.PI*2),f.fill(),f.stroke(),f.closePath()},hoverCheck:function(x,$){var f=$.shape,E=f.rx,A=f.ry,g=f.hr,H=f.vr,X=Math.max(g,H),Z=Math.min(g,H),c=Math.sqrt(X*X-Z*Z),q=[E-c,A],m=[E+c,A],p=(0,l.getTwoPointDistance)(x,q)+(0,l.getTwoPointDistance)(x,m);return p<=2*X},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape;this.attr("shape",{rx:A.rx+f,ry:A.ry+E})}};t.ellipse=W;var U={shape:{x:0,y:0,w:0,h:0},validator:function(x){var $=x.shape,f=$.x,E=$.y,A=$.w,g=$.h;return typeof f!="number"||typeof E!="number"||typeof A!="number"||typeof g!="number"?(console.error("Rect shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.x,g=E.y,H=E.w,X=E.h;f.rect(A,g,H,X),f.fill(),f.stroke(),f.closePath()},hoverCheck:function(x,$){var f=$.shape,E=f.x,A=f.y,g=f.w,H=f.h;return(0,l.checkPointIsInRect)(x,E,A,g,H)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.x,g=f.y,H=f.w,X=f.h;E.graphCenter=[A+H/2,g+X/2]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape;this.attr("shape",{x:A.x+f,y:A.y+E})}};t.rect=U;var M={shape:{rx:0,ry:0,r:0},validator:function(x){var $=x.shape,f=$.rx,E=$.ry,A=$.r;return typeof f!="number"||typeof E!="number"||typeof A!="number"?(console.error("Ring shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.rx,g=E.ry,H=E.r;f.arc(A,g,H>0?H:.01,0,Math.PI*2),f.stroke(),f.closePath()},hoverCheck:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry,H=f.r,X=E.lineWidth,Z=X/2,c=H-Z,q=H+Z,m=(0,l.getTwoPointDistance)(x,[A,g]);return m>=c&&m<=q},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape;this.attr("shape",{rx:A.rx+f,ry:A.ry+E})}};t.ring=M;var N={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(x){var $=x.shape,f=["rx","ry","r","startAngle","endAngle"];return f.find(function(E){return typeof $[E]!="number"})?(console.error("Arc shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.rx,g=E.ry,H=E.r,X=E.startAngle,Z=E.endAngle,c=E.clockWise;f.arc(A,g,H>0?H:.001,X,Z,!c),f.stroke(),f.closePath()},hoverCheck:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry,H=f.r,X=f.startAngle,Z=f.endAngle,c=f.clockWise,q=E.lineWidth,m=q/2,p=H-m,L=H+m;return!(0,l.checkPointIsInSector)(x,A,g,p,X,Z,c)&&(0,l.checkPointIsInSector)(x,A,g,L,X,Z,c)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape;this.attr("shape",{rx:A.rx+f,ry:A.ry+E})}};t.arc=N;var d={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(x){var $=x.shape,f=["rx","ry","r","startAngle","endAngle"];return f.find(function(E){return typeof $[E]!="number"})?(console.error("Sector shape configuration is abnormal!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape;f.beginPath();var A=E.rx,g=E.ry,H=E.r,X=E.startAngle,Z=E.endAngle,c=E.clockWise;f.arc(A,g,H>0?H:.01,X,Z,!c),f.lineTo(A,g),f.closePath(),f.stroke(),f.fill()},hoverCheck:function(x,$){var f=$.shape,E=f.rx,A=f.ry,g=f.r,H=f.startAngle,X=f.endAngle,Z=f.clockWise;return(0,l.checkPointIsInSector)(x,E,A,g,H,X,Z)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=A.rx,H=A.ry;this.attr("shape",{rx:g+f,ry:H+E})}};t.sector=d;var G={shape:{rx:0,ry:0,r:0,side:0},validator:function(x){var $=x.shape,f=$.side,E=["rx","ry","r","side"];return E.find(function(A){return typeof $[A]!="number"})?(console.error("RegPolygon shape configuration is abnormal!"),!1):f<3?(console.error("RegPolygon at least trigon!"),!1):!0},draw:function(x,$){var f=x.ctx,E=$.shape,A=$.cache;f.beginPath();var g=E.rx,H=E.ry,X=E.r,Z=E.side;if(!A.points||A.rx!==g||A.ry!==H||A.r!==X||A.side!==Z){var c=(0,l.getRegularPolygonPoints)(g,H,X,Z);Object.assign(A,{points:c,rx:g,ry:H,r:X,side:Z})}var q=A.points;(0,i.drawPolylinePath)(f,q),f.closePath(),f.stroke(),f.fill()},hoverCheck:function(x,$){var f=$.cache,E=f.points;return(0,l.checkPointIsInPolygon)(x,E)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.rx,g=f.ry;E.graphCenter=[A,g]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=$.cache,H=A.rx,X=A.ry;g.rx+=f,g.ry+=E,this.attr("shape",{rx:H+f,ry:X+E}),g.points=g.points.map(function(Z){var c=(0,r.default)(Z,2),q=c[0],m=c[1];return[q+f,m+E]})}};t.regPolygon=G;var F={shape:{points:[],close:!1},validator:function(x){var $=x.shape,f=$.points;return f instanceof Array?!0:(console.error("Polyline points should be an array!"),!1)},draw:function(x,$){var f=x.ctx,E=$.shape,A=$.style.lineWidth;f.beginPath();var g=E.points,H=E.close;A===1&&(g=(0,l.eliminateBlur)(g)),(0,i.drawPolylinePath)(f,g),H&&(f.closePath(),f.fill()),f.stroke()},hoverCheck:function(x,$){var f=$.shape,E=$.style,A=f.points,g=f.close,H=E.lineWidth;return g?(0,l.checkPointIsInPolygon)(x,A):(0,l.checkPointIsNearPolyline)(x,A,H)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.points;E.graphCenter=A[0]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=A.points,H=g.map(function(X){var Z=(0,r.default)(X,2),c=Z[0],q=Z[1];return[c+f,q+E]});this.attr("shape",{points:H})}};t.polyline=F;var z={shape:{points:[],close:!1},validator:function(x){var $=x.shape,f=$.points;return f instanceof Array?!0:(console.error("Smoothline points should be an array!"),!1)},draw:function(x,$){var f=x.ctx,E=$.shape,A=$.cache,g=E.points,H=E.close;if(!A.points||A.points.toString()!==g.toString()){var X=k(g,H),Z=C(X);Object.assign(A,{points:(0,l.deepClone)(g,!0),bezierCurve:X,hoverPoints:Z})}var c=A.bezierCurve;f.beginPath(),(0,i.drawBezierCurvePath)(f,c.slice(1),c[0]),H&&(f.closePath(),f.fill()),f.stroke()},hoverCheck:function(x,$){var f=$.cache,E=$.shape,A=$.style,g=f.hoverPoints,H=E.close,X=A.lineWidth;return H?(0,l.checkPointIsInPolygon)(x,g):(0,l.checkPointIsNearPolyline)(x,g,X)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.points;E.graphCenter=A[0]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=$.cache,H=A.points,X=H.map(function(p){var L=(0,r.default)(p,2),J=L[0],Q=L[1];return[J+f,Q+E]});g.points=X;var Z=(0,r.default)(g.bezierCurve[0],2),c=Z[0],q=Z[1],m=g.bezierCurve.slice(1);g.bezierCurve=[[c+f,q+E]].concat((0,o.default)(m.map(function(p){return p.map(function(L){var J=(0,r.default)(L,2),Q=J[0],ee=J[1];return[Q+f,ee+E]})}))),g.hoverPoints=g.hoverPoints.map(function(p){var L=(0,r.default)(p,2),J=L[0],Q=L[1];return[J+f,Q+E]}),this.attr("shape",{points:X})}};t.smoothline=z;var B={shape:{points:[],close:!1},validator:function(x){var $=x.shape,f=$.points;return f instanceof Array?!0:(console.error("BezierCurve points should be an array!"),!1)},draw:function(x,$){var f=x.ctx,E=$.shape,A=$.cache,g=E.points,H=E.close;if(!A.points||A.points.toString()!==g.toString()){var X=C(g,20);Object.assign(A,{points:(0,l.deepClone)(g,!0),hoverPoints:X})}f.beginPath(),(0,i.drawBezierCurvePath)(f,g.slice(1),g[0]),H&&(f.closePath(),f.fill()),f.stroke()},hoverCheck:function(x,$){var f=$.cache,E=$.shape,A=$.style,g=f.hoverPoints,H=E.close,X=A.lineWidth;return H?(0,l.checkPointIsInPolygon)(x,g):(0,l.checkPointIsNearPolyline)(x,g,X)},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.points;E.graphCenter=A[0]},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=$.cache,H=A.points,X=(0,r.default)(H[0],2),Z=X[0],c=X[1],q=H.slice(1),m=[[Z+f,c+E]].concat((0,o.default)(q.map(function(p){return p.map(function(L){var J=(0,r.default)(L,2),Q=J[0],ee=J[1];return[Q+f,ee+E]})})));g.points=m,g.hoverPoints=g.hoverPoints.map(function(p){var L=(0,r.default)(p,2),J=L[0],Q=L[1];return[J+f,Q+E]}),this.attr("shape",{points:m})}};t.bezierCurve=B;var y={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(x){var $=x.shape,f=$.content,E=$.position,A=$.rowGap;return typeof f!="string"?(console.error("Text content should be a string!"),!1):E instanceof Array?typeof A!="number"?(console.error("Text rowGap should be a number!"),!1):!0:(console.error("Text position should be an array!"),!1)},draw:function(x,$){var f=x.ctx,E=$.shape,A=E.content,g=E.position,H=E.maxWidth,X=E.rowGap,Z=f.textBaseline,c=f.font,q=parseInt(c.replace(/\D/g,"")),m=g,p=(0,r.default)(m,2),L=p[0],J=p[1];A=A.split(`
  14. `);var Q=A.length,ee=q+X,ae=Q*ee-X,fe=0;Z==="middle"&&(fe=ae/2,J+=q/2),Z==="bottom"&&(fe=ae,J+=q),g=new Array(Q).fill(0).map(function(Y,ne){return[L,J+ne*ee-fe]}),f.beginPath(),A.forEach(function(Y,ne){f.fillText.apply(f,[Y].concat((0,o.default)(g[ne]),[H])),f.strokeText.apply(f,[Y].concat((0,o.default)(g[ne]),[H]))}),f.closePath()},hoverCheck:function(x,$){return $.shape,$.style,!1},setGraphCenter:function(x,$){var f=$.shape,E=$.style,A=f.position;E.graphCenter=(0,o.default)(A)},move:function(x,$){var f=x.movementX,E=x.movementY,A=$.shape,g=(0,r.default)(A.position,2),H=g[0],X=g[1];this.attr("shape",{position:[H+f,X+E]})}};t.text=y;var v=new Map([["circle",j],["ellipse",W],["rect",U],["ring",M],["arc",N],["sector",d],["regPolygon",G],["polyline",F],["smoothline",z],["bezierCurve",B],["text",y]]),u=v;t.default=u;function O(w,x){if(!w||!x){console.error("ExtendNewGraph Missing Parameters!");return}if(!x.shape){console.error("Required attribute of shape to extendNewGraph!");return}if(!x.validator){console.error("Required function of validator to extendNewGraph!");return}if(!x.draw){console.error("Required function of draw to extendNewGraph!");return}v.set(w,x)}}(Br)),Br}var Or={},Mr={exports:{}},Nn;function ki(){return Nn||(Nn=1,function(t){var n=ke().default;function o(){t.exports=o=function(){return a},t.exports.__esModule=!0,t.exports.default=t.exports;var r,a={},l=Object.prototype,i=l.hasOwnProperty,k=Object.defineProperty||function(m,p,L){m[p]=L.value},C=typeof Symbol=="function"?Symbol:{},j=C.iterator||"@@iterator",W=C.asyncIterator||"@@asyncIterator",U=C.toStringTag||"@@toStringTag";function M(m,p,L){return Object.defineProperty(m,p,{value:L,enumerable:!0,configurable:!0,writable:!0}),m[p]}try{M({},"")}catch{M=function(L,J,Q){return L[J]=Q}}function N(m,p,L,J){var Q=p&&p.prototype instanceof v?p:v,ee=Object.create(Q.prototype),ae=new c(J||[]);return k(ee,"_invoke",{value:g(m,L,ae)}),ee}function d(m,p,L){try{return{type:"normal",arg:m.call(p,L)}}catch(J){return{type:"throw",arg:J}}}a.wrap=N;var G="suspendedStart",F="suspendedYield",z="executing",B="completed",y={};function v(){}function u(){}function O(){}var w={};M(w,j,function(){return this});var x=Object.getPrototypeOf,$=x&&x(x(q([])));$&&$!==l&&i.call($,j)&&(w=$);var f=O.prototype=v.prototype=Object.create(w);function E(m){["next","throw","return"].forEach(function(p){M(m,p,function(L){return this._invoke(p,L)})})}function A(m,p){function L(Q,ee,ae,fe){var Y=d(m[Q],m,ee);if(Y.type!=="throw"){var ne=Y.arg,ie=ne.value;return ie&&n(ie)=="object"&&i.call(ie,"__await")?p.resolve(ie.__await).then(function(le){L("next",le,ae,fe)},function(le){L("throw",le,ae,fe)}):p.resolve(ie).then(function(le){ne.value=le,ae(ne)},function(le){return L("throw",le,ae,fe)})}fe(Y.arg)}var J;k(this,"_invoke",{value:function(ee,ae){function fe(){return new p(function(Y,ne){L(ee,ae,Y,ne)})}return J=J?J.then(fe,fe):fe()}})}function g(m,p,L){var J=G;return function(Q,ee){if(J===z)throw new Error("Generator is already running");if(J===B){if(Q==="throw")throw ee;return{value:r,done:!0}}for(L.method=Q,L.arg=ee;;){var ae=L.delegate;if(ae){var fe=H(ae,L);if(fe){if(fe===y)continue;return fe}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(J===G)throw J=B,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);J=z;var Y=d(m,p,L);if(Y.type==="normal"){if(J=L.done?B:F,Y.arg===y)continue;return{value:Y.arg,done:L.done}}Y.type==="throw"&&(J=B,L.method="throw",L.arg=Y.arg)}}}function H(m,p){var L=p.method,J=m.iterator[L];if(J===r)return p.delegate=null,L==="throw"&&m.iterator.return&&(p.method="return",p.arg=r,H(m,p),p.method==="throw")||L!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+L+"' method")),y;var Q=d(J,m.iterator,p.arg);if(Q.type==="throw")return p.method="throw",p.arg=Q.arg,p.delegate=null,y;var ee=Q.arg;return ee?ee.done?(p[m.resultName]=ee.value,p.next=m.nextLoc,p.method!=="return"&&(p.method="next",p.arg=r),p.delegate=null,y):ee:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,y)}function X(m){var p={tryLoc:m[0]};1 in m&&(p.catchLoc=m[1]),2 in m&&(p.finallyLoc=m[2],p.afterLoc=m[3]),this.tryEntries.push(p)}function Z(m){var p=m.completion||{};p.type="normal",delete p.arg,m.completion=p}function c(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(X,this),this.reset(!0)}function q(m){if(m||m===""){var p=m[j];if(p)return p.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length)){var L=-1,J=function Q(){for(;++L<m.length;)if(i.call(m,L))return Q.value=m[L],Q.done=!1,Q;return Q.value=r,Q.done=!0,Q};return J.next=J}}throw new TypeError(n(m)+" is not iterable")}return u.prototype=O,k(f,"constructor",{value:O,configurable:!0}),k(O,"constructor",{value:u,configurable:!0}),u.displayName=M(O,U,"GeneratorFunction"),a.isGeneratorFunction=function(m){var p=typeof m=="function"&&m.constructor;return!!p&&(p===u||(p.displayName||p.name)==="GeneratorFunction")},a.mark=function(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,O):(m.__proto__=O,M(m,U,"GeneratorFunction")),m.prototype=Object.create(f),m},a.awrap=function(m){return{__await:m}},E(A.prototype),M(A.prototype,W,function(){return this}),a.AsyncIterator=A,a.async=function(m,p,L,J,Q){Q===void 0&&(Q=Promise);var ee=new A(N(m,p,L,J),Q);return a.isGeneratorFunction(p)?ee:ee.next().then(function(ae){return ae.done?ae.value:ee.next()})},E(f),M(f,U,"Generator"),M(f,j,function(){return this}),M(f,"toString",function(){return"[object Generator]"}),a.keys=function(m){var p=Object(m),L=[];for(var J in p)L.push(J);return L.reverse(),function Q(){for(;L.length;){var ee=L.pop();if(ee in p)return Q.value=ee,Q.done=!1,Q}return Q.done=!0,Q}},a.values=q,c.prototype={constructor:c,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(Z),!p)for(var L in this)L.charAt(0)==="t"&&i.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=r)},stop:function(){this.done=!0;var p=this.tryEntries[0].completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var L=this;function J(ne,ie){return ae.type="throw",ae.arg=p,L.next=ne,ie&&(L.method="next",L.arg=r),!!ie}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var ee=this.tryEntries[Q],ae=ee.completion;if(ee.tryLoc==="root")return J("end");if(ee.tryLoc<=this.prev){var fe=i.call(ee,"catchLoc"),Y=i.call(ee,"finallyLoc");if(fe&&Y){if(this.prev<ee.catchLoc)return J(ee.catchLoc,!0);if(this.prev<ee.finallyLoc)return J(ee.finallyLoc)}else if(fe){if(this.prev<ee.catchLoc)return J(ee.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<ee.finallyLoc)return J(ee.finallyLoc)}}}},abrupt:function(p,L){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.tryLoc<=this.prev&&i.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var ee=Q;break}}ee&&(p==="break"||p==="continue")&&ee.tryLoc<=L&&L<=ee.finallyLoc&&(ee=null);var ae=ee?ee.completion:{};return ae.type=p,ae.arg=L,ee?(this.method="next",this.next=ee.finallyLoc,y):this.complete(ae)},complete:function(p,L){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&L&&(this.next=L),y},finish:function(p){for(var L=this.tryEntries.length-1;L>=0;--L){var J=this.tryEntries[L];if(J.finallyLoc===p)return this.complete(J.completion,J.afterLoc),Z(J),y}},catch:function(p){for(var L=this.tryEntries.length-1;L>=0;--L){var J=this.tryEntries[L];if(J.tryLoc===p){var Q=J.completion;if(Q.type==="throw"){var ee=Q.arg;Z(J)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(p,L,J){return this.delegate={iterator:q(p),resultName:L,nextLoc:J},this.method==="next"&&(this.arg=r),y}},a}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(Mr)),Mr.exports}var Rr,Ln;function _i(){if(Ln)return Rr;Ln=1;var t=ki()();Rr=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}return Rr}var Gr={exports:{}},Sn;function Pi(){return Sn||(Sn=1,function(t){function n(r,a,l,i,k,C,j){try{var W=r[C](j),U=W.value}catch(M){l(M);return}W.done?a(U):Promise.resolve(U).then(i,k)}function o(r){return function(){var a=this,l=arguments;return new Promise(function(i,k){var C=r.apply(a,l);function j(U){n(C,i,k,j,W,"next",U)}function W(U){n(C,i,k,j,W,"throw",U)}j(void 0)})}}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(Gr)),Gr.exports}var Dr={},Bn;function wi(){return Bn||(Bn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(xe()),r=n(je()),a=ze,l=$e(),i=function N(d){(0,r.default)(this,N),this.colorProcessor(d);var G={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,G,d)};t.default=i,i.prototype.colorProcessor=function(N){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,G=d?a.getColorFromRgbValue:a.getRgbaValue,F=["fill","stroke","shadowColor"],z=Object.keys(N),B=z.filter(function(O){return F.find(function(w){return w===O})});B.forEach(function(O){return N[O]=G(N[O])});var y=N.gradientColor,v=N.colors;if(y&&(N.gradientColor=y.map(function(O){return G(O)})),v){var u=Object.keys(v);u.forEach(function(O){return v[O]=G(v[O])})}},i.prototype.initStyle=function(N){k(N,this),j(N,this),W(N,this)};function k(N,d){N.save();var G=d.graphCenter,F=d.rotate,z=d.scale,B=d.translate;G instanceof Array&&(N.translate.apply(N,(0,o.default)(G)),F&&N.rotate(F*Math.PI/180),z instanceof Array&&N.scale.apply(N,(0,o.default)(z)),B&&N.translate.apply(N,(0,o.default)(B)),N.translate(-G[0],-G[1]))}var C=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function j(N,d){var G=d.fill,F=d.stroke,z=d.shadowColor,B=d.opacity;C.forEach(function(f){(f||typeof f=="number")&&(N[f]=d[f])}),G=(0,o.default)(G),F=(0,o.default)(F),z=(0,o.default)(z),G[3]*=B,F[3]*=B,z[3]*=B,N.fillStyle=(0,a.getColorFromRgbValue)(G),N.strokeStyle=(0,a.getColorFromRgbValue)(F),N.shadowColor=(0,a.getColorFromRgbValue)(z);var y=d.lineDash,v=d.shadowBlur;y&&(y=y.map(function(f){return f>=0?f:0}),N.setLineDash(y)),typeof v=="number"&&(N.shadowBlur=v>0?v:.001);var u=d.fontStyle,O=d.fontVarient,w=d.fontWeight,x=d.fontSize,$=d.fontFamily;N.font=u+" "+O+" "+w+" "+x+"px "+$}function W(N,d){if(U(d)){var G=d.gradientColor,F=d.gradientParams,z=d.gradientType,B=d.gradientWith,y=d.gradientStops,v=d.opacity;G=G.map(function(O){var w=O[3]*v,x=(0,o.default)(O);return x[3]=w,x}),G=G.map(function(O){return(0,a.getColorFromRgbValue)(O)}),y==="auto"&&(y=M(G));var u=N["create".concat(z.slice(0,1).toUpperCase()+z.slice(1),"Gradient")].apply(N,(0,o.default)(F));y.forEach(function(O,w){return u.addColorStop(O,G[w])}),N["".concat(B,"Style")]=u}}function U(N){var d=N.gradientColor,G=N.gradientParams,F=N.gradientType,z=N.gradientWith,B=N.gradientStops;if(!d||!G)return!1;if(d.length===1)return console.warn("The gradient needs to provide at least two colors"),!1;if(F!=="linear"&&F!=="radial")return console.warn("GradientType only supports linear or radial, current value is "+F),!1;var y=G.length;return F==="linear"&&y!==4||F==="radial"&&y!==6?(console.warn("The expected length of gradientParams is "+(F==="linear"?"4":"6")),!1):z!=="fill"&&z!=="stroke"?(console.warn("GradientWith only supports fill or stroke, current value is "+z),!1):B!=="auto"&&!(B instanceof Array)?(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+B),!1):!0}function M(N){var d=1/(N.length-1);return N.map(function(G,F){return d*F})}i.prototype.restoreTransform=function(N){N.restore()},i.prototype.update=function(N){this.colorProcessor(N),Object.assign(this,N)},i.prototype.getStyle=function(){var N=(0,l.deepClone)(this,!0);return this.colorProcessor(N,!0),N}}(Dr)),Dr}var Fr={},Tr={},En;function Ai(){return En||(En=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.easeInOutBounce=t.easeOutBounce=t.easeInBounce=t.easeInOutElastic=t.easeOutElastic=t.easeInElastic=t.easeInOutBack=t.easeOutBack=t.easeInBack=t.easeInOutQuint=t.easeOutQuint=t.easeInQuint=t.easeInOutQuart=t.easeOutQuart=t.easeInQuart=t.easeInOutCubic=t.easeOutCubic=t.easeInCubic=t.easeInOutQuad=t.easeOutQuad=t.easeInQuad=t.easeInOutSine=t.easeOutSine=t.easeInSine=t.linear=void 0;var n=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];t.linear=n;var o=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];t.easeInSine=o;var r=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];t.easeOutSine=r;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];t.easeInOutSine=a;var l=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];t.easeInQuad=l;var i=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];t.easeOutQuad=i;var k=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];t.easeInOutQuad=k;var C=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];t.easeInCubic=C;var j=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];t.easeOutCubic=j;var W=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];t.easeInOutCubic=W;var U=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];t.easeInQuart=U;var M=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];t.easeOutQuart=M;var N=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];t.easeInOutQuart=N;var d=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];t.easeInQuint=d;var G=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];t.easeOutQuint=G;var F=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];t.easeInOutQuint=F;var z=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];t.easeInBack=z;var B=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];t.easeOutBack=B;var y=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];t.easeInOutBack=y;var v=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];t.easeInElastic=v;var u=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];t.easeOutElastic=u;var O=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];t.easeInOutElastic=O;var w=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];t.easeInBounce=w;var x=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];t.easeOutBounce=x;var $=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];t.easeInOutBounce=$;var f=new Map([["linear",n],["easeInSine",o],["easeOutSine",r],["easeInOutSine",a],["easeInQuad",l],["easeOutQuad",i],["easeInOutQuad",k],["easeInCubic",C],["easeOutCubic",j],["easeInOutCubic",W],["easeInQuart",U],["easeOutQuart",M],["easeInOutQuart",N],["easeInQuint",d],["easeOutQuint",G],["easeInOutQuint",F],["easeInBack",z],["easeOutBack",B],["easeInOutBack",y],["easeInElastic",v],["easeOutElastic",u],["easeInOutElastic",O],["easeInBounce",w],["easeOutBounce",x],["easeInOutBounce",$]]);t.default=f}(Tr)),Tr}var Vn;function Ni(){return Vn||(Vn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.transition=i,t.injectNewCurve=y,t.default=void 0;var o=n(_e()),r=n(ke()),a=n(Ai()),l="linear";function i(u){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!k.apply(void 0,arguments))return!1;try{var f=C(u),E=j(f,x);return!$||typeof w=="number"?d(O,w,E):B(O,w,E)}catch{return console.warn("Transition parameter may be abnormal!"),[w]}}function k(u){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30;if(!u||O===!1||w===!1||!x)return console.error("transition: Missing Parameters!"),!1;if((0,r.default)(O)!==(0,r.default)(w))return console.error("transition: Inconsistent Status Types!"),!1;var $=(0,r.default)(w);return $==="string"||$==="boolean"||!u.length?(console.error("transition: Unsupported Data Type of State!"),!1):(!a.default.has(u)&&!(u instanceof Array)&&console.warn("transition: Transition curve not found, default curve will be used!"),!0)}function C(u){var O="";return a.default.has(u)?O=a.default.get(u):u instanceof Array?O=u:O=a.default.get(l),O}function j(u,O){var w=1/(O-1),x=new Array(O).fill(0).map(function(f,E){return E*w}),$=x.map(function(f){return W(u,f)});return $}function W(u,O){var w=U(u,O),x=M(w,O);return N(w,x)}function U(u,O){var w=u.length-1,x="",$="";u.findIndex(function(H,X){if(X!==w){x=H,$=u[X+1];var Z=x[0][0],c=$[0][0];return O>=Z&&O<c}});var f=x[0],E=x[2]||x[0],A=$[1]||$[0],g=$[0];return[f,E,A,g]}function M(u,O){var w=u[0][0],x=u[3][0],$=x-w,f=O-w;return f/$}function N(u,O){var w=(0,o.default)(u,4),x=(0,o.default)(w[0],2),$=x[1],f=(0,o.default)(w[1],2),E=f[1],A=(0,o.default)(w[2],2),g=A[1],H=(0,o.default)(w[3],2),X=H[1],Z=Math.pow,c=1-O,q=$*Z(c,3),m=3*E*O*Z(c,2),p=3*g*Z(O,2)*c,L=X*Z(O,3);return 1-(q+m+p+L)}function d(u,O,w){var x="object";return typeof u=="number"&&(x="number"),u instanceof Array&&(x="array"),x==="number"?G(u,O,w):x==="array"?F(u,O,w):x==="object"?z(u,O,w):w.map(function($){return O})}function G(u,O,w){var x=O-u;return w.map(function($){return u+x*$})}function F(u,O,w){var x=O.map(function($,f){return typeof $!="number"?!1:$-u[f]});return w.map(function($){return x.map(function(f,E){return f===!1?O[E]:u[E]+f*$})})}function z(u,O,w){var x=Object.keys(O),$=x.map(function(A){return u[A]}),f=x.map(function(A){return O[A]}),E=F($,f,w);return E.map(function(A){var g={};return A.forEach(function(H,X){return g[x[X]]=H}),g})}function B(u,O,w){var x=d(u,O,w),$=function(g){var H=u[g],X=O[g];if((0,r.default)(X)!=="object")return"continue";var Z=B(H,X,w);x.forEach(function(c,q){return c[g]=Z[q]})};for(var f in O)var E=$(f);return x}function y(u,O){if(!u||!O){console.error("InjectNewCurve Missing Parameters!");return}a.default.set(u,O)}var v=i;t.default=v}(Fr)),Fr}var On;function Li(){return On||(On=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(_i()),r=n(Pi()),a=n(ke()),l=n(xe()),i=n(je()),k=n(wi()),C=n(Ni()),j=$e(),W=function M(N,d){(0,i.default)(this,M),d=(0,j.deepClone)(d,!0);var G={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},F={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};d.shape||(d.shape={}),d.style||(d.style={});var z=Object.assign({},N.shape,d.shape);Object.assign(G,d,F),Object.assign(this,N,G),this.shape=z,this.style=new k.default(d.style),this.addedProcessor()};t.default=W,W.prototype.addedProcessor=function(){typeof this.setGraphCenter=="function"&&this.setGraphCenter(null,this),typeof this.added=="function"&&this.added(this)},W.prototype.drawProcessor=function(M,N){var d=M.ctx;N.style.initStyle(d),typeof this.beforeDraw=="function"&&this.beforeDraw(this,M),N.draw(M,N),typeof this.drawed=="function"&&this.drawed(this,M),N.style.restoreTransform(d)},W.prototype.hoverCheckProcessor=function(M,N){var d=N.hoverRect,G=N.style,F=N.hoverCheck,z=G.graphCenter,B=G.rotate,y=G.scale,v=G.translate;return z&&(B&&(M=(0,j.getRotatePointPos)(-B,M,z)),y&&(M=(0,j.getScalePointPos)(y.map(function(u){return 1/u}),M,z)),v&&(M=(0,j.getTranslatePointPos)(v.map(function(u){return u*-1}),M))),d?j.checkPointIsInRect.apply(void 0,[M].concat((0,l.default)(d))):F(M,this)},W.prototype.moveProcessor=function(M){this.move(M,this),typeof this.beforeMove=="function"&&this.beforeMove(M,this),typeof this.setGraphCenter=="function"&&this.setGraphCenter(M,this),typeof this.moved=="function"&&this.moved(M,this)},W.prototype.attr=function(M){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!M||N===void 0)return!1;var d=(0,a.default)(this[M])==="object";d&&(N=(0,j.deepClone)(N,!0));var G=this.render;M==="style"?this.style.update(N):d?Object.assign(this[M],N):this[M]=N,M==="index"&&G.sortGraphsByIndex(),G.drawAllGraph()},W.prototype.animation=function(){var M=(0,r.default)(o.default.mark(function N(d,G){var F,z,B,y,v,u,O,w,x,$=arguments;return o.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(F=$.length>2&&$[2]!==void 0?$[2]:!1,!(d!=="shape"&&d!=="style")){E.next=4;break}return console.error("Only supported shape and style animation!"),E.abrupt("return");case 4:if(G=(0,j.deepClone)(G,!0),d==="style"&&this.style.colorProcessor(G),z=this[d],B=Object.keys(G),y={},B.forEach(function(A){return y[A]=z[A]}),v=this.animationFrame,u=this.animationCurve,O=this.animationDelay,w=(0,C.default)(u,y,G,v,!0),this.animationRoot.push(z),this.animationKeys.push(B),this.animationFrameState.push(w),!F){E.next=17;break}return E.abrupt("return");case 17:if(!(O>0)){E.next=20;break}return E.next=20,U(O);case 20:return x=this.render,E.abrupt("return",new Promise(function(){var A=(0,r.default)(o.default.mark(function g(H){return o.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,x.launchAnimation();case 2:H();case 3:case"end":return Z.stop()}},g)}));return function(g){return A.apply(this,arguments)}}()));case 22:case"end":return E.stop()}},N,this)}));return function(N,d){return M.apply(this,arguments)}}(),W.prototype.turnNextAnimationFrame=function(M){var N=this.animationDelay,d=this.animationRoot,G=this.animationKeys,F=this.animationFrameState,z=this.animationPause;z||Date.now()-M<N||(d.forEach(function(B,y){G[y].forEach(function(v){B[v]=F[y][0][v]})}),F.forEach(function(B,y){B.shift();var v=B.length===0;v&&(d[y]=null),v&&(G[y]=null)}),this.animationFrameState=F.filter(function(B){return B.length}),this.animationRoot=d.filter(function(B){return B}),this.animationKeys=G.filter(function(B){return B}))},W.prototype.animationEnd=function(){var M=this.animationFrameState,N=this.animationKeys,d=this.animationRoot,G=this.render;return d.forEach(function(F,z){var B=N[z],y=M[z].pop();B.forEach(function(v){return F[v]=y[v]})}),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],G.drawAllGraph()},W.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},W.prototype.playAnimation=function(){var M=this.render;return this.attr("animationPause",!1),new Promise(function(){var N=(0,r.default)(o.default.mark(function d(G){return o.default.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,M.launchAnimation();case 2:G();case 3:case"end":return z.stop()}},d)}));return function(d){return N.apply(this,arguments)}}())},W.prototype.delProcessor=function(M){var N=this,d=M.graphs,G=d.findIndex(function(F){return F===N});G!==-1&&(typeof this.beforeDelete=="function"&&this.beforeDelete(this),d.splice(G,1,null),typeof this.deleted=="function"&&this.deleted(this))};function U(M){return new Promise(function(N){setTimeout(N,M)})}}(Or)),Or}var Mn;function Si(){return Mn||(Mn=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(Se()),r=n(xe()),a=n(je()),l=n(ze),i=n(Lr()),k=$e(),C=n(Vr()),j=n(Li());function W(B,y){var v=Object.keys(B);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(B);y&&(u=u.filter(function(O){return Object.getOwnPropertyDescriptor(B,O).enumerable})),v.push.apply(v,u)}return v}function U(B){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?W(v,!0).forEach(function(u){(0,o.default)(B,u,v[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(v)):W(v).forEach(function(u){Object.defineProperty(B,u,Object.getOwnPropertyDescriptor(v,u))})}return B}var M=function B(y){if((0,a.default)(this,B),!y){console.error("CRender Missing parameters!");return}var v=y.getContext("2d"),u=y.clientWidth,O=y.clientHeight,w=[u,O];y.setAttribute("width",u),y.setAttribute("height",O),this.ctx=v,this.area=w,this.animationStatus=!1,this.graphs=[],this.color=l.default,this.bezierCurve=i.default,y.addEventListener("mousedown",G.bind(this)),y.addEventListener("mousemove",F.bind(this)),y.addEventListener("mouseup",z.bind(this))};t.default=M,M.prototype.clearArea=function(){var B,y=this.area;(B=this.ctx).clearRect.apply(B,[0,0].concat((0,r.default)(y)))},M.prototype.add=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=B.name;if(!y){console.error("add Missing parameters!");return}var v=C.default.get(y);if(!v){console.warn("No corresponding graph configuration found!");return}var u=new j.default(v,B);if(u.validator(u))return u.render=this,this.graphs.push(u),this.sortGraphsByIndex(),this.drawAllGraph(),u},M.prototype.sortGraphsByIndex=function(){var B=this.graphs;B.sort(function(y,v){if(y.index>v.index)return 1;if(y.index===v.index)return 0;if(y.index<v.index)return-1})},M.prototype.delGraph=function(B){typeof B.delProcessor=="function"&&(B.delProcessor(this),this.graphs=this.graphs.filter(function(y){return y}),this.drawAllGraph())},M.prototype.delAllGraph=function(){var B=this;this.graphs.forEach(function(y){return y.delProcessor(B)}),this.graphs=this.graphs.filter(function(y){return y}),this.drawAllGraph()},M.prototype.drawAllGraph=function(){var B=this;this.clearArea(),this.graphs.filter(function(y){return y&&y.visible}).forEach(function(y){return y.drawProcessor(B,y)})},M.prototype.launchAnimation=function(){var B=this,y=this.animationStatus;if(!y)return this.animationStatus=!0,new Promise(function(v){N.call(B,function(){B.animationStatus=!1,v()},Date.now())})};function N(B,y){var v=this.graphs;if(!d(v)){B();return}v.forEach(function(u){return u.turnNextAnimationFrame(y)}),this.drawAllGraph(),requestAnimationFrame(N.bind(this,B,y))}function d(B){return B.find(function(y){return!y.animationPause&&y.animationFrameState.length})}function G(B){var y=this.graphs,v=y.find(function(u){return u.status==="hover"});v&&(v.status="active")}function F(B){var y=B.offsetX,v=B.offsetY,u=[y,v],O=this.graphs,w=O.find(function(g){return g.status==="active"||g.status==="drag"});if(w){if(!w.drag)return;if(typeof w.move!="function"){console.error("No move method is provided, cannot be dragged!");return}w.moveProcessor(B),w.status="drag";return}var x=O.find(function(g){return g.status==="hover"}),$=O.filter(function(g){return g.hover&&(typeof g.hoverCheck=="function"||g.hoverRect)}),f=$.find(function(g){return g.hoverCheckProcessor(u,g)});f?document.body.style.cursor=f.style.hoverCursor:document.body.style.cursor="default";var E=!1,A=!1;if(x&&(E=typeof x.mouseOuter=="function"),f&&(A=typeof f.mouseEnter=="function"),!(!f&&!x)){if(!f&&x){E&&x.mouseOuter(B,x),x.status="static";return}if(!(f&&f===x)){if(f&&!x){A&&f.mouseEnter(B,f),f.status="hover";return}f&&x&&f!==x&&(E&&x.mouseOuter(B,x),x.status="static",A&&f.mouseEnter(B,f),f.status="hover")}}}function z(B){var y=this.graphs,v=y.find(function(O){return O.status==="active"}),u=y.find(function(O){return O.status==="drag"});v&&typeof v.click=="function"&&v.click(B,v),y.forEach(function(O){return O&&(O.status="static")}),v&&(v.status="hover"),u&&(u.status="hover")}M.prototype.clone=function(B){var y=B.style.getStyle(),v=U({},B,{style:y});return delete v.render,v=(0,k.deepClone)(v,!0),this.add(v)}}(fr)),fr}(function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CRender",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"extendNewGraph",{enumerable:!0,get:function(){return r.extendNewGraph}}),t.default=void 0;var o=n(Si()),r=Vr(),a=o.default;t.default=a})(ct);const Rn=rn(ct),Bi={class:"dv-water-pond-level"},Ei={key:0},Vi=["id"],Oi=["offset","stop-color"],Mi=["stroke","fill","x","y"],Ri=["cx","cy","rx","ry","stroke"],Gi=["rx","ry","width","height","stroke"],Gn={__name:"index",props:{config:Object,default:()=>({})},setup(t){const n=t,o=Le(),r=e.ref(null),a=e.reactive({gradientId:`water-level-pond-${o}`,defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}),l=e.computed(()=>{const{shape:y}=a.mergedConfig;return y==="round"?"50%":y==="rect"?"0":y==="roundRect"?"10px":"0"}),i=e.computed(()=>{const{shape:y}=a.mergedConfig;return y||"rect"});e.watch(()=>n.config,()=>{a.renderer.delAllGraph(),a.waves=[],setTimeout(j,0)},{deep:!0}),e.onMounted(()=>{k()}),e.onBeforeUnmount(()=>{a.renderer.delAllGraph(),a.waves=[]});function k(){C(),n.config&&j()}function C(){a.renderer=new Rn(r.value)}function j(){W(),U(),M(),N(),B()}function W(){a.mergedConfig=me(ye(a.defaultConfig),n.config)}function U(){const{colors:y}=a.mergedConfig,u=100/(y.length-1);a.svgBorderGradient=y.map((O,w)=>[u*w,O])}function M(){const{data:y,formatter:v}=a.mergedConfig;if(!y.length){a.details="";return}const u=Math.max(...y);a.details=v.replace("{value}",u)}function N(){const y=d(),v=F();a.waves=y.map(u=>a.renderer.add({name:"smoothline",animationFrame:300,shape:u,style:v,drawed:z}))}function d(){const{waveNum:y,waveHeight:v,data:u}=a.mergedConfig,[O,w]=a.renderer.area,x=y*4+4,$=O/y/2;return u.map(f=>{let E=Array.from({length:x}).fill(0).map((A,g)=>{const H=O-$*g,X=(1-f/100)*w,Z=g%2===0?X:X-v;return[H,Z]});return E=E.map(A=>G(A,[$*2,0])),{points:E}})}function G([y,v],[u,O]){return[y+u,v+O]}function F(){const y=a.renderer.area[1];return{gradientColor:a.mergedConfig.colors,gradientType:"linear",gradientParams:[0,0,0,y],gradientWith:"fill",opacity:a.mergedConfig.waveOpacity,translate:[0,0]}}function z({shape:{points:y}},{ctx:v,area:u}){const O=y[0],w=y.slice(-1)[0],x=u[1];v.lineTo(w[0],x),v.lineTo(O[0],x),v.closePath(),v.fill()}async function B(y=1){if(a.animation)return;a.animation=!0;const v=a.renderer.area[0];a.waves.forEach(u=>{u.attr("style",{translate:[0,0]}),u.animation("style",{translate:[v,0]},!0)}),await a.renderer.launchAnimation(),a.animation=!1,a.renderer.graphs.length&&B(y+1)}return(y,v)=>(e.openBlock(),e.createElementBlock("div",Bi,[e.unref(a).renderer?(e.openBlock(),e.createElementBlock("svg",Ei,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:e.unref(a).gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).svgBorderGradient,u=>(e.openBlock(),e.createElementBlock("stop",{key:u[0],offset:u[0],"stop-color":u[1]},null,8,Oi))),128))],8,Vi)]),e.unref(a).renderer?(e.openBlock(),e.createElementBlock("text",{key:0,stroke:`url(#${e.unref(a).gradientId})`,fill:`url(#${e.unref(a).gradientId})`,x:e.unref(a).renderer.area[0]/2+8,y:e.unref(a).renderer.area[1]/2+8},e.toDisplayString(e.unref(a).details),9,Mi)):e.createCommentVNode("",!0),!e.unref(i)||e.unref(i)==="round"?(e.openBlock(),e.createElementBlock("ellipse",{key:1,cx:e.unref(a).renderer.area[0]/2+8,cy:e.unref(a).renderer.area[1]/2+8,rx:e.unref(a).renderer.area[0]/2+5,ry:e.unref(a).renderer.area[1]/2+5,stroke:`url(#${e.unref(a).gradientId})`},null,8,Ri)):(e.openBlock(),e.createElementBlock("rect",{key:2,x:"2",y:"2",rx:e.unref(i)==="roundRect"?10:0,ry:e.unref(i)==="roundRect"?10:0,width:e.unref(a).renderer.area[0]+12,height:e.unref(a).renderer.area[1]+12,stroke:`url(#${e.unref(a).gradientId})`},null,8,Gi))])):e.createCommentVNode("",!0),e.createElementVNode("canvas",{ref_key:"waterPondLevel",ref:r,style:e.normalizeStyle(`border-radius: ${e.unref(l)};`)},null,4)]))}},ft={install(t){t.component("DvWaterLevelPond",Gn)}},Di={},Fi={class:"dv-loading"},Ti={class:"loading-tip"};function Wi(t,n){return e.openBlock(),e.createElementBlock("div",Fi,[n[0]||(n[0]=e.createStaticVNode('<svg width="50px" height="50px"><circle cx="25" cy="25" r="20" fill="transparent" stroke-width="3" stroke-dasharray="31.415, 31.415" stroke="#02bcfe" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="0, 25 25;360, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#02bcfe;#3be6cb;#02bcfe" dur="3s" repeatCount="indefinite"></animate></circle><circle cx="25" cy="25" r="10" fill="transparent" stroke-width="3" stroke-dasharray="15.7, 15.7" stroke="#3be6cb" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="360, 25 25;0, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#3be6cb;#02bcfe;#3be6cb" dur="3s" repeatCount="indefinite"></animate></circle></svg>',1)),e.createElementVNode("div",Ti,[e.renderSlot(t.$slots,"default")])])}const Dn=Ve(Di,[["render",Wi]]),ut={install(t){t.component("DvLoading",Dn)}},ji=["width","height"],zi=["id"],qi=["id"],Ii=["id","cx","cy"],Hi=["values","dur"],Ui=["dur"],Xi=["id"],Qi=["xlink:href","fill"],Yi=["xlink:href","fill","mask"],Ki=["xlink:href","width","height","x","y"],Ji=["fill","x","y"],Zi=["id","d"],el=["xlink:href","stroke-width","stroke"],tl=["id"],rl=["r","fill"],nl=["dur","path"],al=["xlink:href","stroke-width","stroke","mask"],ol=["from","to","dur"],Fn={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(t){const n=t,o=Le(),r=e.ref(null),{width:a,height:l}=ge(r,j,C),i=e.reactive({unique:Math.random(),flylineGradientId:`flyline-gradient-id-${o}`,haloGradientId:`halo-gradient-id-${o}`,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null});let k;e.onMounted(()=>{k=e.getCurrentInstance()}),e.watch(()=>n.config,()=>{W()},{deep:!0});function C(){W()}function j(){W()}async function W(){U(),M(),N(),await z()}function U(){const y=me(ye(i.defaultConfig),n.config||{}),{points:v,lines:u,halo:O,text:w,icon:x,line:$}=y;y.points=v.map(f=>(f.halo=me(ye(O),f.halo||{}),f.text=me(ye(w),f.text||{}),f.icon=me(ye(x),f.icon||{}),f)),y.lines=u.map(f=>me(ye($),f)),i.mergedConfig=y}function M(){const{relative:y,points:v}=i.mergedConfig;i.flylinePoints=v.map((u,O)=>{const{coordinate:[w,x],halo:$,icon:f,text:E}=u;y&&(u.coordinate=[w*a.value,x*l.value]),u.halo.time=We(...$.duration)/10;const{width:A,height:g}=f;u.icon.x=u.coordinate[0]-A/2,u.icon.y=u.coordinate[1]-g/2;const[H,X]=E.offset;return u.text.x=u.coordinate[0]+H,u.text.y=u.coordinate[1]+X,u.key=`${u.coordinate.toString()}${O}`,u})}function N(){const{points:y,lines:v}=i.mergedConfig;i.flylines=v.map(u=>{const{source:O,target:w,duration:x}=u,$=y.find(({name:X})=>X===O).coordinate,f=y.find(({name:X})=>X===w).coordinate,E=d($,f).map(X=>X.map(Z=>Number.parseFloat(Z.toFixed(10)))),A=`M${E[0].toString()} Q${E[1].toString()} ${E[2].toString()}`,g=`path${E.toString()}`,H=We(...x)/10;return{...u,path:E,key:g,d:A,time:H}})}function d(y,v){const u=G(y,v);return[y,u,v]}function G([y,v],[u,O]){const{curvature:w,k:x}=i.mergedConfig,[$,f]=[(y+u)/2,(v+O)/2],A=it([y,v],[u,O])/w,g=A/2;let[H,X]=[$,f];do H+=g,X=F(x,[$,f],H)[1];while(it([$,f],[H,X])<A);return[H,X]}function F(y,[v,u],O){const w=u-y*v+y*O;return[O,w]}async function z(){await e.nextTick(),i.flylineLengths=i.flylines.map(({key:y})=>k.proxy.$refs[y][0].getTotalLength())}function B({offsetX:y,offsetY:v}){if(!n.dev)return;const u=(y/a.value).toFixed(2),O=(v/l.value).toFixed(2);console.warn(`dv-flyline-chart-enhanced DEV:
  15. Click Position is [${y}, ${v}]
  16. Relative Position is [${u}, ${O}]`)}return(y,v)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flylineChartEnhanced",ref:r,class:"dv-flyline-chart-enhanced",style:e.normalizeStyle(`background-image: url(${e.unref(i).mergedConfig?e.unref(i).mergedConfig.bgImgSrc:""})`),onClick:B},[e.unref(i).flylines.length?(e.openBlock(),e.createElementBlock("svg",{key:0,width:e.unref(a),height:e.unref(l)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:e.unref(i).flylineGradientId,cx:"50%",cy:"50%",r:"50%"},v[0]||(v[0]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,zi),e.createElementVNode("radialGradient",{id:e.unref(i).haloGradientId,cx:"50%",cy:"50%",r:"50%"},v[1]||(v[1]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,qi)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).flylinePoints,u=>(e.openBlock(),e.createElementBlock("g",{key:u.key+Math.random()},[e.createElementVNode("defs",null,[u.halo.show?(e.openBlock(),e.createElementBlock("circle",{key:0,id:`halo${e.unref(i).unique}${u.key}`,cx:u.coordinate[0],cy:u.coordinate[1]},[e.createElementVNode("animate",{attributeName:"r",values:`1;${u.halo.radius}`,dur:`${u.halo.time}s`,repeatCount:"indefinite"},null,8,Hi),e.createElementVNode("animate",{attributeName:"opacity",values:"1;0",dur:`${u.halo.time}s`,repeatCount:"indefinite"},null,8,Ui)],8,Ii)):e.createCommentVNode("",!0)]),e.createElementVNode("mask",{id:`mask${e.unref(i).unique}${u.key}`},[u.halo.show?(e.openBlock(),e.createElementBlock("use",{key:0,"xlink:href":`#halo${e.unref(i).unique}${u.key}`,fill:`url(#${e.unref(i).haloGradientId})`},null,8,Qi)):e.createCommentVNode("",!0)],8,Xi),u.halo.show?(e.openBlock(),e.createElementBlock("use",{key:0,"xlink:href":`#halo${e.unref(i).unique}${u.key}`,fill:u.halo.color,mask:`url(#mask${e.unref(i).unique}${u.key})`},null,8,Yi)):e.createCommentVNode("",!0),u.icon.show?(e.openBlock(),e.createElementBlock("image",{key:1,"xlink:href":u.icon.src,width:u.icon.width,height:u.icon.height,x:u.icon.x,y:u.icon.y},null,8,Ki)):e.createCommentVNode("",!0),u.text.show?(e.openBlock(),e.createElementBlock("text",{key:2,style:e.normalizeStyle(`fontSize:${u.text.fontSize}px;color:${u.text.color}`),fill:u.text.color,x:u.text.x,y:u.text.y},e.toDisplayString(u.name),13,Ji)):e.createCommentVNode("",!0)]))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).flylines,(u,O)=>(e.openBlock(),e.createElementBlock("g",{key:u.key+Math.random()},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:u.key,ref_for:!0,ref:u.key,d:u.d,fill:"transparent"},null,8,Zi)]),e.createElementVNode("use",{"xlink:href":`#${u.key}`,"stroke-width":u.width,stroke:u.orbitColor},null,8,el),e.createElementVNode("mask",{id:`mask${e.unref(i).unique}${u.key}`},[e.createElementVNode("circle",{cx:"0",cy:"0",r:u.radius,fill:`url(#${e.unref(i).flylineGradientId})`},[e.createElementVNode("animateMotion",{dur:u.time,path:u.d,rotate:"auto",repeatCount:"indefinite"},null,8,nl)],8,rl)],8,tl),e.unref(i).flylineLengths[O]?(e.openBlock(),e.createElementBlock("use",{key:0,"xlink:href":`#${u.key}`,"stroke-width":u.width,stroke:u.color,mask:`url(#mask${e.unref(i).unique}${u.key})`},[e.createElementVNode("animate",{attributeName:"stroke-dasharray",from:`0, ${e.unref(i).flylineLengths[O]}`,to:`${e.unref(i).flylineLengths[O]}, 0`,dur:u.time,repeatCount:"indefinite"},null,8,ol)],8,al)):e.createCommentVNode("",!0)]))),128))],8,ji)):e.createCommentVNode("",!0)],4))}},dt={install(t){t.component("DvFlylineChartEnhanced",Fn)}},il=["width","height"],ll=["id"],sl=["id"],cl=["id","cx","cy"],fl=["values","dur"],ul=["dur"],dl=["xlink:href","width","height","x","y"],hl=["id"],pl=["xlink:href","fill"],gl=["xlink:href","fill","mask"],ml=["id","d"],yl=["xlink:href","stroke-width","stroke"],vl=["xlink:href","stroke-width","stroke","mask"],bl=["from","to","dur"],Cl=["id"],xl=["r","fill"],$l=["dur","path"],kl=["xlink:href","width","height","x","y"],_l=["fill","x","y"],Tn={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(t){const n=t,o=Le(),r=e.ref(null),{width:a,height:l}=ge(r,j,C),i=e.reactive({unique:Math.random(),maskId:`flyline-mask-id-${o}`,maskCircleId:`mask-circle-id-${o}`,gradientId:`gradient-id-${o}`,gradient2Id:`gradient2-id-${o}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]});let k;e.onMounted(()=>{k=e.getCurrentInstance()}),e.watch(()=>n.config,()=>{W()},{deep:!0});function C(){W()}function j(){W()}async function W(){U(),M(),await F(),z(),B()}function U(){const v=me(ye(i.defaultConfig),n.config||{}),{points:u}=v;v.points=u.map(O=>Array.isArray(O)?{position:O,text:""}:O),i.mergedConfig=v}function M(){let{centerPoint:v,points:u}=i.mergedConfig;const{relative:O}=i.mergedConfig;u=u.map(({position:w})=>w),O&&(v=[a.value*v[0],l.value*v[1]],u=u.map(([w,x])=>[a.value*w,l.value*x])),i.paths=u.map(w=>N(v,w))}function N(v,u){const O=d(v,u);return[u,O,v]}function d([v,u],[O,w]){const{curvature:x,k:$}=i.mergedConfig,[f,E]=[(v+O)/2,(u+w)/2],g=it([v,u],[O,w])/x,H=g/2;let[X,Z]=[f,E];do X+=H,Z=G($,[f,E],X)[1];while(it([f,E],[X,Z])<g);return[X,Z]}function G(v,[u,O],w){const x=O-v*u+v*w;return[w,x]}async function F(){await e.nextTick(),i.lengths=i.paths.map((v,u)=>k.proxy.$refs[`path${u}`][0].getTotalLength())}function z(){const{duration:v,points:u}=i.mergedConfig;i.times=u.map(()=>We(...v)/10)}function B(){const{points:v}=i.mergedConfig;i.texts=v.map(({text:u})=>u)}function y({offsetX:v,offsetY:u}){if(!n.dev)return;const O=(v/a.value).toFixed(2),w=(u/l.value).toFixed(2);console.warn(`dv-flyline-chart DEV:
  17. Click Position is [${v}, ${u}]
  18. Relative Position is [${O}, ${w}]`)}return(v,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flylineChart",ref:r,class:"dv-flyline-chart",style:e.normalizeStyle(`background-image: url(${e.unref(i).mergedConfig?e.unref(i).mergedConfig.bgImgUrl:""})`),onClick:y},[e.unref(i).mergedConfig?(e.openBlock(),e.createElementBlock("svg",{key:0,width:e.unref(a),height:e.unref(l)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:e.unref(i).gradientId,cx:"50%",cy:"50%",r:"50%"},u[0]||(u[0]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)]),8,ll),e.createElementVNode("radialGradient",{id:e.unref(i).gradient2Id,cx:"50%",cy:"50%",r:"50%"},u[1]||(u[1]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1)]),8,sl),e.unref(i).paths[0]?(e.openBlock(),e.createElementBlock("circle",{key:0,id:`circle${e.unref(i).paths[0].toString()}`,cx:e.unref(i).paths[0][2][0],cy:e.unref(i).paths[0][2][1]},[e.createElementVNode("animate",{attributeName:"r",values:`1;${e.unref(i).mergedConfig.halo.radius}`,dur:`${e.unref(i).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,fl),e.createElementVNode("animate",{attributeName:"opacity",values:"1;0",dur:`${e.unref(i).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,ul)],8,cl)):e.createCommentVNode("",!0)]),e.unref(i).paths[0]?(e.openBlock(),e.createElementBlock("image",{key:0,"xlink:href":e.unref(i).mergedConfig.centerPointImg.url,width:e.unref(i).mergedConfig.centerPointImg.width,height:e.unref(i).mergedConfig.centerPointImg.height,x:e.unref(i).paths[0][2][0]-e.unref(i).mergedConfig.centerPointImg.width/2,y:e.unref(i).paths[0][2][1]-e.unref(i).mergedConfig.centerPointImg.height/2},null,8,dl)):e.createCommentVNode("",!0),e.createElementVNode("mask",{id:`maskhalo${e.unref(i).paths[0].toString()}`},[e.unref(i).paths[0]?(e.openBlock(),e.createElementBlock("use",{key:0,"xlink:href":`#circle${e.unref(i).paths[0].toString()}`,fill:`url(#${e.unref(i).gradient2Id})`},null,8,pl)):e.createCommentVNode("",!0)],8,hl),e.unref(i).paths[0]&&e.unref(i).mergedConfig.halo.show?(e.openBlock(),e.createElementBlock("use",{key:1,"xlink:href":`#circle${e.unref(i).paths[0].toString()}`,fill:e.unref(i).mergedConfig.halo.color,mask:`url(#maskhalo${e.unref(i).paths[0].toString()})`},null,8,gl)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).paths,(O,w)=>(e.openBlock(),e.createElementBlock("g",{key:w},[e.createElementVNode("defs",null,[e.createElementVNode("path",{id:`path${O.toString()}`,ref_for:!0,ref:`path${w}`,d:`M${O[0].toString()} Q${O[1].toString()} ${O[2].toString()}`,fill:"transparent"},null,8,ml)]),e.createElementVNode("use",{"xlink:href":`#path${O.toString()}`,"stroke-width":e.unref(i).mergedConfig.lineWidth,stroke:e.unref(i).mergedConfig.orbitColor},null,8,yl),e.unref(i).lengths[w]?(e.openBlock(),e.createElementBlock("use",{key:0,"xlink:href":`#path${O.toString()}`,"stroke-width":e.unref(i).mergedConfig.lineWidth,stroke:e.unref(i).mergedConfig.flylineColor,mask:`url(#mask${e.unref(i).unique}${O.toString()})`},[e.createElementVNode("animate",{attributeName:"stroke-dasharray",from:`0, ${e.unref(i).lengths[w]}`,to:`${e.unref(i).lengths[w]}, 0`,dur:e.unref(i).times[w]||0,repeatCount:"indefinite"},null,8,bl)],8,vl)):e.createCommentVNode("",!0),e.createElementVNode("mask",{id:`mask${e.unref(i).unique}${O.toString()}`},[e.createElementVNode("circle",{cx:"0",cy:"0",r:e.unref(i).mergedConfig.flylineRadius,fill:`url(#${e.unref(i).gradientId})`},[e.createElementVNode("animateMotion",{dur:e.unref(i).times[w]||0,path:`M${O[0].toString()} Q${O[1].toString()} ${O[2].toString()}`,rotate:"auto",repeatCount:"indefinite"},null,8,$l)],8,xl)],8,Cl),e.createElementVNode("image",{"xlink:href":e.unref(i).mergedConfig.pointsImg.url,width:e.unref(i).mergedConfig.pointsImg.width,height:e.unref(i).mergedConfig.pointsImg.height,x:O[0][0]-e.unref(i).mergedConfig.pointsImg.width/2,y:O[0][1]-e.unref(i).mergedConfig.pointsImg.height/2},null,8,kl),e.createElementVNode("text",{style:e.normalizeStyle(`fontSize:${e.unref(i).mergedConfig.text.fontSize}px;`),fill:e.unref(i).mergedConfig.text.color,x:O[0][0]+e.unref(i).mergedConfig.text.offset[0],y:O[0][1]+e.unref(i).mergedConfig.text.offset[1]},e.toDisplayString(e.unref(i).texts[w]),13,_l)]))),128))],8,il)):e.createCommentVNode("",!0)],4))}},ht={install(t){t.component("DvFlylineChart",Tn)}},Pl={class:"ranking-info"},wl={class:"rank"},Al=["innerHTML"],Nl={class:"ranking-value"},Ll={class:"ranking-column"},Wn=Ve({__name:"index",props:{config:{type:Object,default:()=>({})}},setup(t){e.useCssVars(B=>({fdc8fe50:e.unref(i),"442085aa":e.unref(l),ca44414a:e.unref(C),"31d0b588":e.unref(k)}));const n=t,o=e.ref(null),{height:r}=ge(o,W,j),a=e.reactive({defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null,textColor:"#fff",color:"#1370fb",fontSize:13},mergedConfig:null,rowsData:[],rows:[],heights:[],avgHeight:0,animationIndex:0,animationHandler:"",updater:0});e.watch(()=>n.config,()=>{z(),U()},{deep:!0});const l=e.computed(()=>n.config.textColor?n.config.textColor:a.defaultConfig.textColor),i=e.computed(()=>n.config.color?n.config.color:a.defaultConfig.color),k=e.computed(()=>Ce(i.value,50)),C=e.computed(()=>`${n.config.fontSize?n.config.fontSize:a.defaultConfig.fontSize}px`);e.onUnmounted(()=>{z()});function j(){U()}function W(){a.mergedConfig&&d(!0)}function U(){M(),N(),d(),F(!0)}function M(){a.mergedConfig=me(ye(a.defaultConfig),n.config||{})}function N(){let{data:B}=a.mergedConfig;const{rowNum:y,sort:v}=a.mergedConfig;v&&B.sort(({value:E},{value:A})=>E>A?-1:E<A?1:0);const u=B.map(({value:E})=>E),O=Math.min(...u)||0,w=Math.abs(O),$=(Math.max(...u)||0)+w;B=B.map((E,A)=>({...E,ranking:A+1,percent:(E.value+w)/$*100}));const f=B.length;f>y&&f<2*y&&(B=[...B,...B]),B=B.map((E,A)=>({...E,scroll:A})),a.rowsData=B,a.rows=B}function d(B=!1){const{rowNum:y,data:v}=a.mergedConfig,u=r.value/y;a.avgHeight=u,B||(a.heights=Array.from({length:v.length}).fill(u))}const G=e.computed(()=>a.mergedConfig.carousel==="single");async function F(B=!1){const{waitTime:y,rowNum:v}=a.mergedConfig,u=a.rowsData.length;if(v>=u)return;const{updater:O}=a;if(B&&(await new Promise(f=>setTimeout(f,y)),O!==a.updater))return;const w=G.value?1:v,x=a.rowsData.slice(a.animationIndex);if(x.push(...a.rowsData.slice(0,a.animationIndex)),a.rows=x.slice(0,G.value?v+1:v*2),a.heights=Array.from({length:u}).fill(a.avgHeight),await new Promise(f=>setTimeout(f,300)),O!==a.updater)return;a.heights.fill(0,0,w),a.animationIndex+=w;const $=a.animationIndex-u;$>=0&&(a.animationIndex=$),a.animationHandler=setTimeout(F,y-300)}function z(){a.updater=(a.updater+1)%999999,a.animationHandler&&clearTimeout(a.animationHandler)}return(B,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollRankingBoard",ref:o,class:"dv-scroll-ranking-board"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).rows,(v,u)=>(e.openBlock(),e.createElementBlock("div",{key:v.toString()+v.scroll,class:"row-item",style:e.normalizeStyle(`height: ${e.unref(a).heights[u]}px;`)},[e.createElementVNode("div",Pl,[e.createElementVNode("div",wl," No."+e.toDisplayString(v.ranking),1),e.createElementVNode("div",{class:"info-name",innerHTML:v.name},null,8,Al),e.createElementVNode("div",Nl,e.toDisplayString(e.unref(a).mergedConfig.valueFormatter?e.unref(a).mergedConfig.valueFormatter(v):v.value+e.unref(a).mergedConfig.unit),1)]),e.createElementVNode("div",Ll,[e.createElementVNode("div",{class:"inside-column",style:e.normalizeStyle(`width: ${v.percent}%;`)},y[0]||(y[0]=[e.createElementVNode("div",{class:"shine"},null,-1)]),4)])],4))),128))],512))}},[["__scopeId","data-v-26f5f75f"]]),pt={install(t){t.component("DvScrollRankingBoard",Wn)}},Sl=["align","innerHTML"],Bl=["align","onClick","onMouseenter","innerHTML"],jn={__name:"index",props:{config:{type:Object,default:()=>({})}},emits:["mouseover","click","getFirstRow"],setup(t,{expose:n,emit:o}){const r=t,a=o,l=e.ref(null),{width:i,height:k}=ge(l,M,U),C=e.reactive({defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1});e.watch(()=>r.config,()=>{u(),N()},{deep:!0}),e.onUnmounted(()=>{u()}),n({updateRows:O});function j(w,x,$,f){const{ceils:E,rowIndex:A}=$;a("click",{row:E,ceil:f,rowIndex:A,columnIndex:x})}function W(w,x,$,f,E){if(w){const{ceils:A,rowIndex:g}=f;a("mouseover",{row:A,ceil:E,rowIndex:g,columnIndex:$})}C.mergedConfig.hoverPause&&(w?u():v(!0))}function U(){N()}function M(){C.mergedConfig&&(z(),B())}function N(){d(),G(),F(),z(),B(),y(),v(!0)}function d(){C.mergedConfig=me(ye(C.defaultConfig),r.config||{})}function G(){let{header:w}=C.mergedConfig;const{index:x,indexHeader:$}=C.mergedConfig;if(!w.length){w=[];return}w=[...w],x&&w.unshift($),C.header=w}function F(){let{data:w}=C.mergedConfig;const{index:x,headerBGC:$,rowNum:f}=C.mergedConfig;x&&(w=w.map((A,g)=>{A=[...A];const H=`<span class="index" style="background-color: ${$};">${g+1}</span>`;return A.unshift(H),A})),w=w.map((A,g)=>({ceils:A,rowIndex:g}));const E=w.length;E>f&&E<2*f&&(w=[...w,...w]),w=w.map((A,g)=>({...A,scroll:g})),C.rowsData=w,C.rows=w}function z(){const{columnWidth:w,header:x}=C.mergedConfig,$=w.reduce((g,H)=>g+H,0);let f=0;C.rowsData[0]?f=C.rowsData[0].ceils.length:x.length&&(f=x.length);const E=(i.value-$)/(f-w.length),A=Array.from({length:f}).fill(E);C.widths=me(A,w)}function B(w=!1){const{headerHeight:x,rowNum:$,data:f}=C.mergedConfig;let E=k.value;C.header.length&&(E-=x);const A=E/$;C.avgHeight=A,w||(C.heights=Array.from({length:f.length}).fill(A))}function y(){const w=C.header.length,x=Array.from({length:w}).fill("left"),{align:$}=C.mergedConfig;C.aligns=me(x,$)}async function v(w=!1){C.needCalc&&(F(),B(),C.needCalc=!1);const{waitTime:x,carousel:$,rowNum:f}=C.mergedConfig,{updater:E}=C,A=C.rowsData.length;if(f>=A||(w&&await new Promise(Z=>setTimeout(Z,x)),E!==C.updater))return;const g=$==="single"?1:f,H=C.rowsData.slice(C.animationIndex);if(H.push(...C.rowsData.slice(0,C.animationIndex)),C.rows=H.slice(0,$==="page"?f*2:f+1),C.heights=Array.from({length:A}).fill(C.avgHeight),await new Promise(Z=>setTimeout(Z,300)),E!==C.updater)return;C.heights.splice(0,g,...Array.from({length:g}).fill(0)),C.animationIndex+=g;const X=C.animationIndex-A;X>=0&&(C.animationIndex=X),C.animationHandler=setTimeout(v,x-300),a("getFirstRow",H[1])}function u(){C.updater=(C.updater+1)%999999,C.animationHandler&&clearTimeout(C.animationHandler)}function O(w,x){C.mergedConfig={...C.mergedConfig,data:[...w]},C.needCalc=!0,typeof x=="number"&&(C.animationIndex=x),C.animationHandler||v(!0)}return(w,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollBoard",ref:l,class:"dv-scroll-board"},[e.unref(C).header.length&&e.unref(C).mergedConfig?(e.openBlock(),e.createElementBlock("div",{key:0,class:"header",style:e.normalizeStyle(`background-color: ${e.unref(C).mergedConfig.headerBGC};`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).header,($,f)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}${f}`,class:"header-item",style:e.normalizeStyle(`
  19. height: ${e.unref(C).mergedConfig.headerHeight}px;
  20. line-height: ${e.unref(C).mergedConfig.headerHeight}px;
  21. width: ${e.unref(C).widths[f]}px;
  22. `),align:e.unref(C).aligns[f],innerHTML:$},null,12,Sl))),128))],4)):e.createCommentVNode("",!0),e.unref(C).mergedConfig?(e.openBlock(),e.createElementBlock("div",{key:1,class:"rows",style:e.normalizeStyle(`height: ${e.unref(k)-(e.unref(C).header.length?e.unref(C).mergedConfig.headerHeight:0)}px;`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C).rows,($,f)=>(e.openBlock(),e.createElementBlock("div",{key:`${$.toString()}${$.scroll}`,class:"row-item",style:e.normalizeStyle(`
  23. height: ${e.unref(C).heights[f]}px;
  24. line-height: ${e.unref(C).heights[f]}px;
  25. background-color: ${e.unref(C).mergedConfig[$.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]};
  26. `)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.ceils,(E,A)=>(e.openBlock(),e.createElementBlock("div",{key:`${E}${f}${A}`,class:"ceil",style:e.normalizeStyle(`width: ${e.unref(C).widths[A]}px;`),align:e.unref(C).aligns[A],onClick:g=>j(f,A,$,E),onMouseenter:g=>W(!0,f,A,$,E),onMouseleave:x[0]||(x[0]=g=>W(!1)),innerHTML:E},null,44,Bl))),128))],4))),128))],4)):e.createCommentVNode("",!0)],512))}},gt={install(t){t.component("DvScrollBoard",jn)}};var zn={},Wr={},Pe={},qn;function we(){if(qn)return Pe;qn=1;var t=ve;Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.filterNonNumber=a,Pe.deepMerge=l,Pe.mulAdd=i,Pe.mergeSameStackData=k,Pe.getTwoPointDistance=C,Pe.getLinearGradientColor=j,Pe.getPolylineLength=W,Pe.getPointToLineDistance=U,Pe.initNeedSeries=M,Pe.radianToAngle=N;var n=t(xe()),o=t(ke()),r=$e();function a(d){return d.filter(function(G){return typeof G=="number"})}function l(d,G){for(var F in G){if(d[F]&&(0,o.default)(d[F])==="object"){l(d[F],G[F]);continue}if((0,o.default)(G[F])==="object"){d[F]=(0,r.deepClone)(G[F],!0);continue}d[F]=G[F]}return d}function i(d){return d=a(d),d.reduce(function(G,F){return G+F},0)}function k(d,G){var F=d.stack;if(!F)return(0,n.default)(d.data);var z=G.filter(function(u){var O=u.stack;return O===F}),B=z.findIndex(function(u){var O=u.data;return O===d.data}),y=z.splice(0,B+1).map(function(u){var O=u.data;return O}),v=y[0].length;return new Array(v).fill(0).map(function(u,O){return i(y.map(function(w){return w[O]}))})}function C(d,G){var F=Math.abs(d[0]-G[0]),z=Math.abs(d[1]-G[1]);return Math.sqrt(F*F+z*z)}function j(d,G,F,z){if(!(!d||!G||!F||!z.length)){var B=z;typeof B=="string"&&(B=[z,z]);var y=d.createLinearGradient.apply(d,(0,n.default)(G).concat((0,n.default)(F))),v=1/(B.length-1);return B.forEach(function(u,O){return y.addColorStop(v*O,u)}),y}}function W(d){var G=new Array(d.length-1).fill(0).map(function(z,B){return[d[B],d[B+1]]}),F=G.map(function(z){return C.apply(void 0,(0,n.default)(z))});return i(F)}function U(d,G,F){var z=C(d,G),B=C(d,F),y=C(G,F);return .5*Math.sqrt((z+B+y)*(z+B-y)*(z+y-B)*(B+y-z))/y}function M(d,G,F){return d=d.filter(function(z){var B=z.type;return B===F}),d=d.map(function(z){return l((0,r.deepClone)(G,!0),z)}),d.filter(function(z){var B=z.show;return B})}function N(d){return d/Math.PI*180}return Pe}var In=ve,El=In(Se()),Hn=In(xe()),mt=ct,Vl=Vr(),qe=$e(),Ol=ze,Ml=we();function Un(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,r)}return o}function Xn(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Un(Object(o),!0).forEach(function(r){(0,El.default)(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Un(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}var Rl={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(n){var o=n.shape,r=["rx","ry","ir","or","startAngle","endAngle"];return r.find(function(a){return typeof o[a]!="number"})?(console.error("Pie shape configuration is abnormal!"),!1):!0},draw:function(n,o){var r=n.ctx,a=o.shape;r.beginPath();var l=a.rx,i=a.ry,k=a.ir,C=a.or,j=a.startAngle,W=a.endAngle,U=a.clockWise;l=parseInt(l)+.5,i=parseInt(i)+.5,r.arc(l,i,k>0?k:0,j,W,!U);var M=(0,qe.getCircleRadianPoint)(l,i,C,W).map(function(d){return parseInt(d)+.5}),N=(0,qe.getCircleRadianPoint)(l,i,k,j).map(function(d){return parseInt(d)+.5});r.lineTo.apply(r,(0,Hn.default)(M)),r.arc(l,i,C>0?C:0,W,j,U),r.lineTo.apply(r,(0,Hn.default)(N)),r.closePath(),r.stroke(),r.fill()}},Gl={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(n){var o=n.shape,r=["rx","ry","r","startAngle","endAngle"];return r.find(function(a){return typeof o[a]!="number"})?(console.error("AgArc shape configuration is abnormal!"),!1):!0},draw:function(n,o){var r=n.ctx,a=o.shape,l=o.style,i=l.gradient;i=i.map(function(w){return(0,Ol.getColorFromRgbValue)(w)}),i.length===1&&(i=[i[0],i[0]]);var k=i.length-1,C=a.gradientStartAngle,j=a.gradientEndAngle,W=a.startAngle,U=a.endAngle,M=a.r,N=a.rx,d=a.ry;C===null&&(C=W),j===null&&(j=U);var G=(j-C)/k;G===Math.PI*2&&(G=Math.PI*2-.001);for(var F=0;F<k;F++){r.beginPath();var z=(0,qe.getCircleRadianPoint)(N,d,M,W+G*F),B=(0,qe.getCircleRadianPoint)(N,d,M,W+G*(F+1)),y=(0,Ml.getLinearGradientColor)(r,z,B,[i[F],i[F+1]]),v=W+G*F,u=W+G*(F+1),O=!1;if(u>U&&(u=U,O=!0),r.arc(N,d,M,v,u),r.strokeStyle=y,r.stroke(),O)break}}},Dl={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(n){var o=n.shape,r=o.number,a=o.content,l=o.position;return!(r instanceof Array)||typeof a!="string"||!(l instanceof Array)?(console.error("NumberText shape configuration is abnormal!"),!1):!0},draw:function(n,o){var r=n.ctx,a=o.shape,l=a.number,i=a.content,k=a.toFixed,C=a.rowGap,j=a.formatter,W=i.split("{nt}"),U="";W.forEach(function(M,N){var d=l[N];typeof d!="number"&&(d=""),typeof d=="number"&&(d=d.toFixed(k),typeof j=="function"&&(d=j(d))),U+=M+(d||"")}),Vl.text.draw({ctx:r},{shape:Xn(Xn({},a),{},{content:U,rowGap:C})})}},Fl={shape:{x:0,y:0,w:0,h:0},validator:function(n){var o=n.shape,r=o.x,a=o.y,l=o.w,i=o.h;return typeof r!="number"||typeof a!="number"||typeof l!="number"||typeof i!="number"?(console.error("lineIcon shape configuration is abnormal!"),!1):!0},draw:function(n,o){var r=n.ctx,a=o.shape;r.beginPath();var l=a.x,i=a.y,k=a.w,C=a.h,j=C/2;r.strokeStyle=r.fillStyle,r.moveTo(l,i+j),r.lineTo(l+k,i+j),r.lineWidth=1,r.stroke(),r.beginPath();var W=j-5*2;W<=0&&(W=3),r.arc(l+k/2,i+j,W,0,Math.PI*2),r.lineWidth=5,r.stroke(),r.fillStyle="#fff",r.fill()},hoverCheck:function(n,o){var r=o.shape,a=r.x,l=r.y,i=r.w,k=r.h;return(0,qe.checkPointIsInRect)(n,a,l,i,k)},setGraphCenter:function(n,o){var r=o.shape,a=o.style,l=r.x,i=r.y,k=r.w,C=r.h;a.graphCenter=[l+k/2,i+C/2]}};(0,mt.extendNewGraph)("pie",Rl),(0,mt.extendNewGraph)("agArc",Gl),(0,mt.extendNewGraph)("numberText",Dl),(0,mt.extendNewGraph)("lineIcon",Fl);var jr={},yt={},zr={},Ie={},Qn;function Tl(){if(Qn)return Ie;Qn=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.colorConfig=void 0;var t=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];return Ie.colorConfig=t,Ie}var He={},Yn;function Wl(){if(Yn)return He;Yn=1,Object.defineProperty(He,"__esModule",{value:!0}),He.gridConfig=void 0;var t={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};return He.gridConfig=t,He}var Re={},Kn;function jl(){if(Kn)return Re;Kn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.yAxisConfig=Re.xAxisConfig=void 0;var t={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};Re.xAxisConfig=t;var n={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};return Re.yAxisConfig=n,Re}var Ue={},Jn;function zl(){if(Jn)return Ue;Jn=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.titleConfig=void 0;var t={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return Ue.titleConfig=t,Ue}var Xe={},Zn;function ql(){if(Zn)return Xe;Zn=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.lineConfig=void 0;var t={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return Xe.lineConfig=t,Xe}var Qe={},ea;function Il(){if(ea)return Qe;ea=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.barConfig=void 0;var t={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};return Qe.barConfig=t,Qe}var Ye={},ta;function ra(){if(ta)return Ye;ta=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.pieConfig=void 0;var t={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};return Ye.pieConfig=t,Ye}var Ke={},na;function Hl(){if(na)return Ke;na=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.radarAxisConfig=void 0;var t={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};return Ke.radarAxisConfig=t,Ke}var Je={},aa;function Ul(){if(aa)return Je;aa=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.radarConfig=void 0;var t={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};return Je.radarConfig=t,Je}var Ze={},oa;function ia(){if(oa)return Ze;oa=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.gaugeConfig=void 0;var t={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-(Math.PI/4)*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return Ze.gaugeConfig=t,Ze}var et={},la;function Xl(){if(la)return et;la=1,Object.defineProperty(et,"__esModule",{value:!0}),et.legendConfig=void 0;var t={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return et.legendConfig=t,et}var sa;function Be(){return sa||(sa=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=d,Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return n.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return o.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return r.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return r.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return l.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return i.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return k.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return C.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return j.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return W.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return U.legendConfig}}),t.keys=void 0;var n=Tl(),o=Wl(),r=jl(),a=zl(),l=ql(),i=Il(),k=ra(),C=Hl(),j=Ul(),W=ia(),U=Xl(),M=we(),N={colorConfig:n.colorConfig,gridConfig:o.gridConfig,xAxisConfig:r.xAxisConfig,yAxisConfig:r.yAxisConfig,titleConfig:a.titleConfig,lineConfig:l.lineConfig,barConfig:i.barConfig,pieConfig:k.pieConfig,radarAxisConfig:C.radarAxisConfig,radarConfig:j.radarConfig,gaugeConfig:W.gaugeConfig,legendConfig:U.legendConfig};function d(F,z){if(!N["".concat(F,"Config")]){console.warn("Change default config Error - Invalid key!");return}(0,M.deepMerge)(N["".concat(F,"Config")],z)}var G=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];t.keys=G}(zr)),zr}var ca;function Ql(){if(ca)return yt;ca=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.mergeColor=r;var t=Be(),n=$e(),o=we();function r(a){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(0,n.deepClone)(t.colorConfig,!0),k=l.color,C=l.series;if(C||(C=[]),k||(k=[]),l.color=k=(0,o.deepMerge)(i,k),!!C.length){var j=k.length;C.forEach(function(N,d){N.color||(N.color=k[d%j])});var W=C.filter(function(N){var d=N.type;return d==="pie"});W.forEach(function(N){return N.data.forEach(function(d,G){return d.color=k[G%j]})});var U=C.filter(function(N){var d=N.type;return d==="gauge"});U.forEach(function(N){return N.data.forEach(function(d,G){return d.color=k[G%j]})});var M=C.filter(function(N){var d=N.type,G=N.independentColor;return d==="bar"&&G});M.forEach(function(N){N.independentColors||(N.independentColors=k)})}}return yt}var vt={},Fe={},fa;function Ee(){if(fa)return Fe;fa=1;var t=ve;Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.doUpdate=W,Fe.Updater=void 0;var n=t(xe()),o=t(ke()),r=t(je()),a=function U(M,N){(0,r.default)(this,U);var d=M.chart,G=M.key,F=M.getGraphConfig;if(typeof F!="function"){console.warn("Updater need function getGraphConfig!");return}d[G]||(this.graphs=d[G]=[]),Object.assign(this,M),this.update(N)};Fe.Updater=a,a.prototype.update=function(U){var M=this,N=this.graphs,d=this.beforeUpdate;if(l(this,U),!!U.length){var G=(0,o.default)(d);U.forEach(function(F,z){G==="function"&&d(N,F,z,M);var B=N[z];B?i(B,F,z,M):C(N,F,z,M)})}};function l(U,M){var N=U.graphs,d=U.chart.render,G=N.length,F=M.length;if(G>F){var z=N.splice(F);z.forEach(function(B){return B.forEach(function(y){return d.delGraph(y)})})}}function i(U,M,N,d){var G=d.getGraphConfig,F=d.chart.render,z=d.beforeChange,B=G(M,d);k(U,B,F),U.forEach(function(y,v){var u=B[v];typeof z=="function"&&z(y,u),j(y,u)})}function k(U,M,N){var d=U.length,G=M.length;if(G>d){var F=U.slice(-1)[0],z=G-d,B=new Array(z).fill(0).map(function(v){return N.clone(F)});U.push.apply(U,(0,n.default)(B))}else if(G<d){var y=U.splice(G);y.forEach(function(v){return N.delGraph(v)})}}function C(U,M,N,d){var G=d.getGraphConfig,F=d.getStartGraphConfig,z=d.chart,B=z.render,y=null;typeof F=="function"&&(y=F(M,d));var v=G(M,d);if(v.length){y?(U[N]=y.map(function(O){return B.add(O)}),U[N].forEach(function(O,w){var x=v[w];j(O,x)})):U[N]=v.map(function(O){return B.add(O)});var u=d.afterAddGraph;typeof u=="function"&&u(U[N])}}function j(U,M){var N=Object.keys(M);N.forEach(function(d){d==="shape"||d==="style"?U.animation(d,M[d],!0):U[d]=M[d]})}function W(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=U.chart,N=U.series,d=U.key,G=U.getGraphConfig,F=U.getStartGraphConfig,z=U.beforeChange,B=U.beforeUpdate,y=U.afterAddGraph;M[d]?M[d].update(N):M[d]=new a({chart:M,key:d,getGraphConfig:G,getStartGraphConfig:F,beforeChange:z,beforeUpdate:B,afterAddGraph:y},N)}return Fe}var ua;function Yl(){if(ua)return vt;ua=1;var t=ve;Object.defineProperty(vt,"__esModule",{value:!0}),vt.title=i;var n=t(_e()),o=Ee(),r=$e(),a=Be(),l=we();function i(W){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=[];U.title&&(M[0]=(0,l.deepMerge)((0,r.deepClone)(a.titleConfig,!0),U.title)),(0,o.doUpdate)({chart:W,series:M,key:"title",getGraphConfig:k})}function k(W,U){var M=a.titleConfig.animationCurve,N=a.titleConfig.animationFrame,d=a.titleConfig.rLevel,G=C(W,U),F=j(W);return[{name:"text",index:d,visible:W.show,animationCurve:M,animationFrame:N,shape:G,style:F}]}function C(W,U){var M=W.offset,N=W.text,d=U.chart.gridArea,G=d.x,F=d.y,z=d.w,B=(0,n.default)(M,2),y=B[0],v=B[1];return{content:N,position:[G+z/2+y,F+v]}}function j(W){var U=W.style;return U}return vt}var bt={},da;function Kl(){if(da)return bt;da=1;var t=ve;Object.defineProperty(bt,"__esModule",{value:!0}),bt.grid=j;var n=t(_e()),o=t(Se()),r=Ee(),a=$e(),l=Be(),i=we();function k(d,G){var F=Object.keys(d);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(d);G&&(z=z.filter(function(B){return Object.getOwnPropertyDescriptor(d,B).enumerable})),F.push.apply(F,z)}return F}function C(d){for(var G=1;G<arguments.length;G++){var F=arguments[G]!=null?arguments[G]:{};G%2?k(Object(F),!0).forEach(function(z){(0,o.default)(d,z,F[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(F)):k(Object(F)).forEach(function(z){Object.defineProperty(d,z,Object.getOwnPropertyDescriptor(F,z))})}return d}function j(d){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=G.grid;F=(0,i.deepMerge)((0,a.deepClone)(l.gridConfig,!0),F||{}),(0,r.doUpdate)({chart:d,series:[F],key:"grid",getGraphConfig:W})}function W(d,G){var F=d.animationCurve,z=d.animationFrame,B=d.rLevel,y=U(d,G),v=N(d);return G.chart.gridArea=C({},y),[{name:"rect",index:B,animationCurve:F,animationFrame:z,shape:y,style:v}]}function U(d,G){var F=(0,n.default)(G.chart.render.area,2),z=F[0],B=F[1],y=M(d.left,z),v=M(d.right,z),u=M(d.top,B),O=M(d.bottom,B),w=z-y-v,x=B-u-O;return{x:y,y:u,w,h:x}}function M(d,G){return typeof d=="number"?d:typeof d!="string"?0:G*parseInt(d)/100}function N(d){var G=d.style;return G}return bt}var Ct={},ha;function Jl(){if(ha)return Ct;ha=1;var t=ve;Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.axis=d;var n=t(ke()),o=t(_e()),r=t(Se()),a=t(xe()),l=Ee(),i=Be(),k=we(),C=$e();function j(s,b){var _=Object.keys(s);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(s);b&&(V=V.filter(function(K){return Object.getOwnPropertyDescriptor(s,K).enumerable})),_.push.apply(_,V)}return _}function W(s){for(var b=1;b<arguments.length;b++){var _=arguments[b]!=null?arguments[b]:{};b%2?j(Object(_),!0).forEach(function(V){(0,r.default)(s,V,_[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(_)):j(Object(_)).forEach(function(V){Object.defineProperty(s,V,Object.getOwnPropertyDescriptor(_,V))})}return s}var U={xAxisConfig:i.xAxisConfig,yAxisConfig:i.yAxisConfig},M=Math.abs,N=Math.pow;function d(s){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=b.xAxis,V=b.yAxis,K=b.series,re=[];_&&V&&K&&(re=G(_,V),re=F(re),re=re.filter(function(oe){var se=oe.show;return se}),re=z(re),re=B(re,K),re=X(re),re=Z(re,s),re=c(re),re=m(re),re=p(re,s)),(0,l.doUpdate)({chart:s,series:re,key:"axisLine",getGraphConfig:L}),(0,l.doUpdate)({chart:s,series:re,key:"axisTick",getGraphConfig:ee}),(0,l.doUpdate)({chart:s,series:re,key:"axisLabel",getGraphConfig:Y}),(0,l.doUpdate)({chart:s,series:re,key:"axisName",getGraphConfig:P}),(0,l.doUpdate)({chart:s,series:re,key:"splitLine",getGraphConfig:te}),s.axisData=re}function G(s,b){var _=[],V=[];if(s instanceof Array){var K;(K=_).push.apply(K,(0,a.default)(s))}else _.push(s);if(b instanceof Array){var re;(re=V).push.apply(re,(0,a.default)(b))}else V.push(b);return _.splice(2),V.splice(2),_=_.map(function(oe,se){return W(W({},oe),{},{index:se,axis:"x"})}),V=V.map(function(oe,se){return W(W({},oe),{},{index:se,axis:"y"})}),[].concat((0,a.default)(_),(0,a.default)(V))}function F(s){var b=s.filter(function(V){var K=V.axis;return K==="x"}),_=s.filter(function(V){var K=V.axis;return K==="y"});return b=b.map(function(V){return(0,k.deepMerge)((0,C.deepClone)(i.xAxisConfig),V)}),_=_.map(function(V){return(0,k.deepMerge)((0,C.deepClone)(i.yAxisConfig),V)}),[].concat((0,a.default)(b),(0,a.default)(_))}function z(s){var b=s.filter(function(V){var K=V.data;return K==="value"}),_=s.filter(function(V){var K=V.data;return K!=="value"});return b.forEach(function(V){typeof V.boundaryGap!="boolean"&&(V.boundaryGap=!1)}),_.forEach(function(V){typeof V.boundaryGap!="boolean"&&(V.boundaryGap=!0)}),[].concat((0,a.default)(b),(0,a.default)(_))}function B(s,b){var _=s.filter(function(K){var re=K.data;return re==="value"}),V=s.filter(function(K){var re=K.data;return re instanceof Array});return _=y(_,b),V=g(V),[].concat((0,a.default)(_),(0,a.default)(V))}function y(s,b){return s.map(function(_){var V=v(_,b),K=w(_,V),re=(0,o.default)(K,2),oe=re[0],se=re[1],ce=H(oe,se,_),de=_.axisLabel.formatter,he=[];return oe<0&&se>0?he=f(oe,se,ce):he=E(oe,se,ce),he=he.map(function(pe){return parseFloat(pe.toFixed(2))}),W(W({},_),{},{maxValue:he.slice(-1)[0],minValue:he[0],label:A(he,de)})})}function v(s,b){if(b=b.filter(function(oe){var se=oe.show,ce=oe.type;return!(se===!1||ce==="pie")}),b.length===0)return[0,0];var _=s.index,V=s.axis;b=O(b);var K=V+"Axis",re=b.filter(function(oe){return oe[K]===_});return re.length||(re=b),u(re)}function u(s){if(s){var b=Math.min.apply(Math,(0,a.default)(s.map(function(V){var K=V.data;return Math.min.apply(Math,(0,a.default)((0,k.filterNonNumber)(K)))}))),_=Math.max.apply(Math,(0,a.default)(s.map(function(V){var K=V.data;return Math.max.apply(Math,(0,a.default)((0,k.filterNonNumber)(K)))})));return[b,_]}}function O(s){var b=(0,C.deepClone)(s,!0);return s.forEach(function(_,V){var K=(0,k.mergeSameStackData)(_,s);b[V].data=K}),b}function w(s,b){var _=s.min,V=s.max,K=s.axis,re=(0,o.default)(b,2),oe=re[0],se=re[1],ce=(0,n.default)(_),de=(0,n.default)(V);if($(_)||(_=U[K+"AxisConfig"].min,ce="string"),$(V)||(V=U[K+"AxisConfig"].max,de="string"),ce==="string"){_=parseInt(oe-M(oe*parseFloat(_)/100));var he=x(_);_=parseFloat((_/he-.1).toFixed(1))*he}if(de==="string"){V=parseInt(se+M(se*parseFloat(V)/100));var pe=x(V);V=parseFloat((V/pe+.1).toFixed(1))*pe}return[_,V]}function x(s){var b=M(s).toString(),_=b.length,V=b.replace(/0*$/g,"").indexOf("0"),K=_-1;return V!==-1&&(K-=V),N(10,K)}function $(s){var b=(0,n.default)(s),_=b==="string"&&/^\d+%$/.test(s),V=b==="number";return _||V}function f(s,b,_){var V=[],K=[],re=0,oe=0;do V.push(re-=_);while(re>s);do K.push(oe+=_);while(oe<b);return[].concat((0,a.default)(V.reverse()),[0],(0,a.default)(K))}function E(s,b,_){var V=[s],K=s;do V.push(K+=_);while(K<b);return V}function A(s,b){return b&&(typeof b=="string"&&(s=s.map(function(_){return b.replace("{value}",_)})),typeof b=="function"&&(s=s.map(function(_,V){return b({value:_,index:V})}))),s}function g(s){return s.map(function(b){var _=b.data,V=b.axisLabel.formatter;return W(W({},b),{},{label:A(_,V)})})}function H(s,b,_){var V=_.interval,K=_.minInterval,re=_.maxInterval,oe=_.splitNumber,se=_.axis,ce=U[se+"AxisConfig"];if(typeof V!="number"&&(V=ce.interval),typeof K!="number"&&(K=ce.minInterval),typeof re!="number"&&(re=ce.maxInterval),typeof oe!="number"&&(oe=ce.splitNumber),typeof V=="number")return V;var de=parseInt((b-s)/(oe-1));return de.toString().length>1&&(de=parseInt(de.toString().replace(/\d$/,"0"))),de===0&&(de=1),typeof K=="number"&&de<K?K:typeof re=="number"&&de>re?re:de}function X(s){var b=s.filter(function(V){var K=V.axis;return K==="x"}),_=s.filter(function(V){var K=V.axis;return K==="y"});return b[0]&&!b[0].position&&(b[0].position=i.xAxisConfig.position),b[1]&&!b[1].position&&(b[1].position=b[0].position==="bottom"?"top":"bottom"),_[0]&&!_[0].position&&(_[0].position=i.yAxisConfig.position),_[1]&&!_[1].position&&(_[1].position=_[0].position==="left"?"right":"left"),[].concat((0,a.default)(b),(0,a.default)(_))}function Z(s,b){var _=b.gridArea,V=_.x,K=_.y,re=_.w,oe=_.h;return s=s.map(function(se){var ce=se.position,de=[];return ce==="left"?de=[[V,K],[V,K+oe]].reverse():ce==="right"?de=[[V+re,K],[V+re,K+oe]].reverse():ce==="top"?de=[[V,K],[V+re,K]]:ce==="bottom"&&(de=[[V,K+oe],[V+re,K+oe]]),W(W({},se),{},{linePosition:de})}),s}function c(s,b){return s.map(function(_){var V=_.axis,K=_.linePosition,re=_.position,oe=_.label,se=_.boundaryGap;typeof se!="boolean"&&(se=U[V+"AxisConfig"].boundaryGap);var ce=oe.length,de=(0,o.default)(K,2),he=(0,o.default)(de[0],2),pe=he[0],be=he[1],Oe=(0,o.default)(de[1],2),Ge=Oe[0],Me=Oe[1],Af=V==="x"?Ge-pe:Me-be,or=Af/(se?ce:ce-1),eo=new Array(ce).fill(0).map(function(Sf,ir){return V==="x"?[pe+or*(se?ir+.5:ir),be]:[pe,be+or*(se?ir+.5:ir)]}),Nf=q(V,se,re,eo,or);return W(W({},_),{},{tickPosition:eo,tickLinePosition:Nf,tickGap:or})})}function q(s,b,_,V,K){var re=s==="x"?1:0,oe=5;s==="x"&&_==="top"&&(oe=-5),s==="y"&&_==="left"&&(oe=-5);var se=V.map(function(ce){var de=(0,C.deepClone)(ce);return de[re]+=oe,[(0,C.deepClone)(ce),de]});return b&&(re=s==="x"?0:1,oe=K/2,se.forEach(function(ce){var de=(0,o.default)(ce,2),he=de[0],pe=de[1];he[re]+=oe,pe[re]+=oe})),se}function m(s,b){return s.map(function(_){var V=_.nameGap,K=_.nameLocation,re=_.position,oe=_.linePosition,se=(0,o.default)(oe,2),ce=se[0],de=se[1],he=(0,a.default)(ce);K==="end"&&(he=(0,a.default)(de)),K==="center"&&(he[0]=(ce[0]+de[0])/2,he[1]=(ce[1]+de[1])/2);var pe=0;re==="top"&&K==="center"&&(pe=1),re==="bottom"&&K==="center"&&(pe=1),re==="left"&&K!=="center"&&(pe=1),re==="right"&&K!=="center"&&(pe=1);var be=V;return re==="top"&&K!=="end"&&(be*=-1),re==="left"&&K!=="start"&&(be*=-1),re==="bottom"&&K==="start"&&(be*=-1),re==="right"&&K==="end"&&(be*=-1),he[pe]+=be,W(W({},_),{},{namePosition:he})})}function p(s,b){var _=b.gridArea,V=_.w,K=_.h;return s.map(function(re){var oe=re.tickLinePosition,se=re.position,ce=re.boundaryGap,de=0,he=V;(se==="top"||se==="bottom")&&(de=1),(se==="top"||se==="bottom")&&(he=K),(se==="right"||se==="bottom")&&(he*=-1);var pe=oe.map(function(be){var Oe=(0,o.default)(be,1),Ge=Oe[0],Me=(0,a.default)(Ge);return Me[de]+=he,[(0,a.default)(Ge),Me]});return ce||pe.shift(),W(W({},re),{},{splitLinePosition:pe})})}function L(s){var b=s.animationCurve,_=s.animationFrame,V=s.rLevel;return[{name:"polyline",index:V,visible:s.axisLine.show,animationCurve:b,animationFrame:_,shape:J(s),style:Q(s)}]}function J(s){var b=s.linePosition;return{points:b}}function Q(s){return s.axisLine.style}function ee(s){var b=s.animationCurve,_=s.animationFrame,V=s.rLevel,K=ae(s),re=fe(s);return K.map(function(oe){return{name:"polyline",index:V,visible:s.axisTick.show,animationCurve:b,animationFrame:_,shape:oe,style:re}})}function ae(s){var b=s.tickLinePosition;return b.map(function(_){return{points:_}})}function fe(s){return s.axisTick.style}function Y(s){var b=s.animationCurve,_=s.animationFrame,V=s.rLevel,K=ne(s),re=le(s,K);return K.map(function(oe,se){return{name:"text",index:V,visible:s.axisLabel.show,animationCurve:b,animationFrame:_,shape:oe,style:re[se],setGraphCenter:function(){}}})}function ne(s){var b=s.label,_=s.tickPosition,V=s.position;return _.map(function(K,re){return{position:ie(K,V),content:b[re].toString()}})}function ie(s,b){var _=0,V=10;return(b==="top"||b==="bottom")&&(_=1),(b==="top"||b==="left")&&(V=-10),s=(0,C.deepClone)(s),s[_]+=V,s}function le(s,b){var _=s.position,V=s.axisLabel.style,K=D(_);V=(0,k.deepMerge)(K,V);var re=b.map(function(oe){var se=oe.position;return W(W({},V),{},{graphCenter:se})});return re}function D(s){if(s==="left")return{textAlign:"right",textBaseline:"middle"};if(s==="right")return{textAlign:"left",textBaseline:"middle"};if(s==="top")return{textAlign:"center",textBaseline:"bottom"};if(s==="bottom")return{textAlign:"center",textBaseline:"top"}}function P(s){var b=s.animationCurve,_=s.animationFrame,V=s.rLevel;return[{name:"text",index:V,animationCurve:b,animationFrame:_,shape:S(s),style:R(s)}]}function S(s){var b=s.name,_=s.namePosition;return{content:b,position:_}}function R(s){var b=s.nameLocation,_=s.position,V=s.nameTextStyle,K=I(_,b);return(0,k.deepMerge)(K,V)}function I(s,b){if(s==="top"&&b==="start"||s==="bottom"&&b==="start"||s==="left"&&b==="center")return{textAlign:"right",textBaseline:"middle"};if(s==="top"&&b==="end"||s==="bottom"&&b==="end"||s==="right"&&b==="center")return{textAlign:"left",textBaseline:"middle"};if(s==="top"&&b==="center"||s==="left"&&b==="end"||s==="right"&&b==="end")return{textAlign:"center",textBaseline:"bottom"};if(s==="bottom"&&b==="center"||s==="left"&&b==="start"||s==="right"&&b==="start")return{textAlign:"center",textBaseline:"top"}}function te(s){var b=s.animationCurve,_=s.animationFrame,V=s.rLevel,K=h(s),re=T(s);return K.map(function(oe){return{name:"polyline",index:V,visible:s.splitLine.show,animationCurve:b,animationFrame:_,shape:oe,style:re}})}function h(s){var b=s.splitLinePosition;return b.map(function(_){return{points:_}})}function T(s){return s.splitLine.style}return Ct}var xt={},pa;function Zl(){if(pa)return xt;pa=1;var t=ve;Object.defineProperty(xt,"__esModule",{value:!0}),xt.line=N;var n=t(ke()),o=t(_e()),r=t(xe()),a=t(Se()),l=Ee(),i=Be(),k=t(Lr()),C=we();function j(Y,ne){var ie=Object.keys(Y);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(Y);ne&&(le=le.filter(function(D){return Object.getOwnPropertyDescriptor(Y,D).enumerable})),ie.push.apply(ie,le)}return ie}function W(Y){for(var ne=1;ne<arguments.length;ne++){var ie=arguments[ne]!=null?arguments[ne]:{};ne%2?j(Object(ie),!0).forEach(function(le){(0,a.default)(Y,le,ie[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(ie)):j(Object(ie)).forEach(function(le){Object.defineProperty(Y,le,Object.getOwnPropertyDescriptor(ie,le))})}return Y}var U=k.default.polylineToBezierCurve,M=k.default.getBezierCurveLength;function N(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=ne.xAxis,le=ne.yAxis,D=ne.series,P=[];ie&&le&&D&&(P=(0,C.initNeedSeries)(D,i.lineConfig,"line"),P=d(P,Y)),(0,l.doUpdate)({chart:Y,series:P,key:"lineArea",getGraphConfig:y,getStartGraphConfig:x,beforeUpdate:$,beforeChange:f}),(0,l.doUpdate)({chart:Y,series:P,key:"line",getGraphConfig:E,getStartGraphConfig:X,beforeUpdate:$,beforeChange:f}),(0,l.doUpdate)({chart:Y,series:P,key:"linePoint",getGraphConfig:Z,getStartGraphConfig:m}),(0,l.doUpdate)({chart:Y,series:P,key:"lineLabel",getGraphConfig:p})}function d(Y,ne){var ie=ne.axisData;return Y.map(function(le){var D=(0,C.mergeSameStackData)(le,Y);D=G(le,D);var P=F(le,ie),S=z(D,P),R=B(P);return W(W({},le),{},{linePosition:S.filter(function(I){return I}),lineFillBottomPos:R})})}function G(Y,ne){var ie=Y.data;return ne.map(function(le,D){return typeof ie[D]=="number"?le:null})}function F(Y,ne){var ie=Y.xAxisIndex,le=Y.yAxisIndex,D=ne.find(function(S){var R=S.axis,I=S.index;return R==="x"&&I===ie}),P=ne.find(function(S){var R=S.axis,I=S.index;return R==="y"&&I===le});return[D,P]}function z(Y,ne){var ie=ne.findIndex(function(re){var oe=re.data;return oe==="value"}),le=ne[ie],D=ne[1-ie],P=le.linePosition,S=le.axis,R=D.tickPosition,I=R.length,te=S==="x"?0:1,h=P[0][te],T=P[1][te],s=T-h,b=le.maxValue,_=le.minValue,V=b-_,K=new Array(I).fill(0).map(function(re,oe){var se=Y[oe];if(typeof se!="number")return null;var ce=(se-_)/V;return V===0&&(ce=0),ce*s+h});return K.map(function(re,oe){if(oe>=I||typeof re!="number")return null;var se=[re,R[oe][1-te]];return te===0||se.reverse(),se})}function B(Y){var ne=Y.find(function(T){var s=T.data;return s==="value"}),ie=ne.axis,le=ne.linePosition,D=ne.minValue,P=ne.maxValue,S=ie==="x"?0:1,R=le[0][S];if(D<0&&P>0){var I=P-D,te=Math.abs(le[0][S]-le[1][S]),h=Math.abs(D)/I*te;ie==="y"&&(h*=-1),R+=h}return{changeIndex:S,changeValue:R}}function y(Y){var ne=Y.animationCurve,ie=Y.animationFrame,le=Y.lineFillBottomPos,D=Y.rLevel;return[{name:A(Y),index:D,animationCurve:ne,animationFrame:ie,visible:Y.lineArea.show,lineFillBottomPos:le,shape:v(Y),style:u(Y),drawed:w}]}function v(Y){var ne=Y.linePosition;return{points:ne}}function u(Y){var ne=Y.lineArea,ie=Y.color,le=ne.gradient,D=ne.style,P=[D.fill||ie],S=(0,C.deepMerge)(P,le);S.length===1&&S.push(S[0]);var R=O(Y);return D=W(W({},D),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,C.deepMerge)({gradientColor:S,gradientParams:R,gradientType:"linear",gradientWith:"fill"},D)}function O(Y){var ne=Y.lineFillBottomPos,ie=Y.linePosition,le=ne.changeIndex,D=ne.changeValue,P=ie.map(function(te){return te[le]}),S=Math.max.apply(Math,(0,r.default)(P)),R=Math.min.apply(Math,(0,r.default)(P)),I=S;return le===1&&(I=R),le===1?[0,I,0,D]:[I,0,D,0]}function w(Y,ne){var ie=Y.lineFillBottomPos,le=Y.shape,D=ne.ctx,P=le.points,S=ie.changeIndex,R=ie.changeValue,I=(0,r.default)(P[P.length-1]),te=(0,r.default)(P[0]);I[S]=R,te[S]=R,D.lineTo.apply(D,(0,r.default)(I)),D.lineTo.apply(D,(0,r.default)(te)),D.closePath(),D.fill()}function x(Y){var ne=y(Y)[0],ie=W({},ne.style);return ie.opacity=0,ne.style=ie,[ne]}function $(Y,ne,ie,le){var D=Y[ie];if(D){var P=A(ne),S=le.chart.render,R=D[0].name,I=P!==R;I&&(D.forEach(function(te){return S.delGraph(te)}),Y[ie]=null)}}function f(Y,ne){var ie=ne.shape.points,le=Y.shape.points,D=le.length,P=ie.length;if(P>D){var S=le.slice(-1)[0],R=new Array(P-D).fill(0).map(function(I){return(0,r.default)(S)});le.push.apply(le,(0,r.default)(R))}else P<D&&le.splice(P)}function E(Y){var ne=Y.animationCurve,ie=Y.animationFrame,le=Y.rLevel;return[{name:A(Y),index:le+1,animationCurve:ne,animationFrame:ie,shape:v(Y),style:g(Y)}]}function A(Y){var ne=Y.smooth;return ne?"smoothline":"polyline"}function g(Y){var ne=Y.lineStyle,ie=Y.color,le=Y.smooth,D=Y.linePosition,P=H(D,le);return(0,C.deepMerge)({stroke:ie,lineDash:[P,0]},ne)}function H(Y){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!ne)return(0,C.getPolylineLength)(Y);var ie=U(Y);return M(ie)}function X(Y){var ne=Y.lineStyle.lineDash,ie=E(Y)[0],le=ie.style.lineDash;return ne?le=[0,0]:le=(0,r.default)(le).reverse(),ie.style.lineDash=le,[ie]}function Z(Y){var ne=Y.animationCurve,ie=Y.animationFrame,le=Y.rLevel,D=c(Y),P=q(Y);return D.map(function(S){return{name:"circle",index:le+2,visible:Y.linePoint.show,animationCurve:ne,animationFrame:ie,shape:S,style:P}})}function c(Y){var ne=Y.linePosition,ie=Y.linePoint.radius;return ne.map(function(le){var D=(0,o.default)(le,2),P=D[0],S=D[1];return{r:ie,rx:P,ry:S}})}function q(Y){var ne=Y.color,ie=Y.linePoint.style;return(0,C.deepMerge)({stroke:ne},ie)}function m(Y){var ne=Z(Y);return ne.forEach(function(ie){ie.shape.r=.1}),ne}function p(Y){var ne=Y.animationCurve,ie=Y.animationFrame,le=Y.rLevel,D=L(Y),P=fe(Y);return D.map(function(S,R){return{name:"text",index:le+3,visible:Y.label.show,animationCurve:ne,animationFrame:ie,shape:S,style:P}})}function L(Y){var ne=ae(Y),ie=J(Y);return ne.map(function(le,D){return{content:le,position:ie[D]}})}function J(Y){var ne=Y.linePosition,ie=Y.lineFillBottomPos,le=Y.label,D=le.position,P=le.offset,S=ie.changeIndex,R=ie.changeValue;return ne.map(function(I){if(D==="bottom"&&(I=(0,r.default)(I),I[S]=R),D==="center"){var te=(0,r.default)(I);te[S]=R,I=ee(I,te)}return Q(I,P)})}function Q(Y,ne){var ie=(0,o.default)(Y,2),le=ie[0],D=ie[1],P=(0,o.default)(ne,2),S=P[0],R=P[1];return[le+S,D+R]}function ee(Y,ne){var ie=(0,o.default)(Y,2),le=ie[0],D=ie[1],P=(0,o.default)(ne,2),S=P[0],R=P[1];return[(le+S)/2,(D+R)/2]}function ae(Y){var ne=Y.data,ie=Y.label.formatter;if(ne=ne.filter(function(D){return typeof D=="number"}).map(function(D){return D.toString()}),!ie)return ne;var le=(0,n.default)(ie);return le==="string"?ne.map(function(D){return ie.replace("{value}",D)}):le==="function"?ne.map(function(D,P){return ie({value:D,index:P})}):ne}function fe(Y){var ne=Y.color,ie=Y.label.style;return(0,C.deepMerge)({fill:ne},ie)}return xt}var $t={},ga;function es(){if(ga)return $t;ga=1;var t=ve;Object.defineProperty($t,"__esModule",{value:!0}),$t.bar=U;var n=t(ke()),o=t(Se()),r=t(_e()),a=t(xe()),l=Ee(),i=Be(),k=$e(),C=we();function j(h,T){var s=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);T&&(b=b.filter(function(_){return Object.getOwnPropertyDescriptor(h,_).enumerable})),s.push.apply(s,b)}return s}function W(h){for(var T=1;T<arguments.length;T++){var s=arguments[T]!=null?arguments[T]:{};T%2?j(Object(s),!0).forEach(function(b){(0,o.default)(h,b,s[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(s)):j(Object(s)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(s,b))})}return h}function U(h){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=T.xAxis,b=T.yAxis,_=T.series,V=[];s&&b&&_&&(V=(0,C.initNeedSeries)(_,i.barConfig,"bar"),V=M(V,h),V=N(V),V=w(V)),(0,l.doUpdate)({chart:h,series:V.slice(-1),key:"backgroundBar",getGraphConfig:H}),V.reverse(),(0,l.doUpdate)({chart:h,series:V,key:"bar",getGraphConfig:q,getStartGraphConfig:fe,beforeUpdate:le}),(0,l.doUpdate)({chart:h,series:V,key:"barLabel",getGraphConfig:D})}function M(h,T){var s=T.axisData;return h.forEach(function(b){var _=b.xAxisIndex,V=b.yAxisIndex;typeof _!="number"&&(_=0),typeof V!="number"&&(V=0);var K=s.find(function(ce){var de=ce.axis,he=ce.index;return"".concat(de).concat(he)==="x".concat(_)}),re=s.find(function(ce){var de=ce.axis,he=ce.index;return"".concat(de).concat(he)==="y".concat(V)}),oe=[K,re],se=oe.findIndex(function(ce){var de=ce.data;return de==="value"});b.valueAxis=oe[se],b.labelAxis=oe[1-se]}),h}function N(h,T){var s=G(h);return s.forEach(function(b){d(b),z(b),B(b),y(b),O(b)}),h}function d(h){var T=F(h);T=T.map(function(b){return{stack:b,index:-1}});var s=0;h.forEach(function(b){var _=b.stack;if(!_)b.barIndex=s,s++;else{var V=T.find(function(K){var re=K.stack;return re===_});V.index===-1&&(V.index=s,s++),b.barIndex=V.index}})}function G(h){var T=h.map(function(s){var b=s.labelAxis,_=b.axis,V=b.index;return _+V});return T=(0,a.default)(new Set(T)),T.map(function(s){return h.filter(function(b){var _=b.labelAxis,V=_.axis,K=_.index;return V+K===s})})}function F(h){var T=[];return h.forEach(function(s){var b=s.stack;b&&T.push(b)}),(0,a.default)(new Set(T))}function z(h){var T=(0,a.default)(new Set(h.map(function(s){var b=s.barIndex;return b}))).length;h.forEach(function(s){return s.barNum=T})}function B(h){var T=h.slice(-1)[0],s=T.barCategoryGap,b=T.labelAxis.tickGap,_=0;typeof s=="number"?_=s:_=(1-parseInt(s)/100)*b,h.forEach(function(V){return V.barCategoryWidth=_})}function y(h){var T=h.slice(-1)[0],s=T.barCategoryWidth,b=T.barWidth,_=T.barGap,V=T.barNum,K=[];typeof b=="number"||b!=="auto"?K=v(s,b,_):b==="auto"&&(K=u(s,b,_,V));var re=K,oe=(0,r.default)(re,2),se=oe[0],ce=oe[1];h.forEach(function(de){de.barWidth=se,de.barGap=ce})}function v(h,T,s){var b=0,_=0;return typeof T=="number"?b=T:b=parseInt(T)/100*h,typeof s=="number"?_=s:_=parseInt(s)/100*b,[b,_]}function u(h,T,s,b){var _=0,V=0,K=h/b;if(typeof s=="number")V=s,_=K-V;else{var re=10+parseInt(s)/10;re===0?(_=K*2,V=-_):(_=K/re*10,V=K-_)}return[_,V]}function O(h){var T=h.slice(-1)[0],s=T.barGap,b=T.barWidth,_=T.barNum,V=(s+b)*_-s;h.forEach(function(K){return K.barAllWidthAndGap=V})}function w(h,T){return h=$(h),h=x(h),h=E(h),h=A(h),h}function x(h){return h.map(function(T){var s=T.labelAxis,b=T.barAllWidthAndGap,_=T.barGap,V=T.barWidth,K=T.barIndex,re=s.tickGap,oe=s.tickPosition,se=s.axis,ce=se==="x"?0:1,de=oe.map(function(he,pe){var be=oe[pe][ce]-re/2,Oe=be+(re-b)/2;return Oe+(K+.5)*V+K*_});return W(W({},T),{},{barLabelAxisPos:de})})}function $(h){return h.map(function(T){var s=(0,C.mergeSameStackData)(T,h);s=f(T,s);var b=T.valueAxis,_=b.axis,V=b.minValue,K=b.maxValue,re=b.linePosition,oe=g(V,K,V<0?0:V,re,_),se=s.map(function(de){return g(V,K,de,re,_)}),ce=se.map(function(de){return[oe,de]});return W(W({},T),{},{barValueAxisPos:ce})})}function f(h,T){var s=h.data;return T.map(function(b,_){return typeof s[_]=="number"?b:null}).filter(function(b){return b!==null})}function E(h){return h.map(function(T){var s=T.barLabelAxisPos,b=T.data;return b.forEach(function(_,V){typeof _!="number"&&(s[V]=null)}),W(W({},T),{},{barLabelAxisPos:s.filter(function(_){return _!==null})})})}function A(h){return h.forEach(function(T){var s=T.data,b=T.barLabelAxisPos,_=T.barValueAxisPos,V=s.filter(function(re){return typeof re=="number"}).length,K=b.length;K>V&&(b.splice(V),_.splice(V))}),h}function g(h,T,s,b,_){if(typeof s!="number")return null;var V=T-h,K=_==="x"?0:1,re=b[1][K]-b[0][K],oe=(s-h)/V;V===0&&(oe=0);var se=oe*re;return se+b[0][K]}function H(h){var T=h.animationCurve,s=h.animationFrame,b=h.rLevel,_=X(h),V=c(h);return _.map(function(K){return{name:"rect",index:b,visible:h.backgroundBar.show,animationCurve:T,animationFrame:s,shape:K,style:V}})}function X(h){var T=h.labelAxis,s=h.valueAxis,b=T.tickPosition,_=s.axis,V=s.linePosition,K=Z(h),re=K/2,oe=_==="x"?0:1,se=b.map(function(pe){return pe[1-oe]}),ce=[V[0][oe],V[1][oe]],de=ce[0],he=ce[1];return se.map(function(pe){return _==="x"?{x:de,y:pe-re,w:he-de,h:K}:{x:pe-re,y:he,w:K,h:de-he}})}function Z(h){var T=h.barAllWidthAndGap,s=h.barCategoryWidth,b=h.backgroundBar,_=b.width;return typeof _=="number"?_:_==="auto"?T:parseInt(_)/100*s}function c(h){return h.backgroundBar.style}function q(h){var T=h.barLabelAxisPos,s=h.animationCurve,b=h.animationFrame,_=h.rLevel,V=m(h);return T.map(function(K,re){return{name:V,index:_,animationCurve:s,animationFrame:b,shape:p(h,re),style:ee(h,re)}})}function m(h){var T=h.shapeType;return T==="leftEchelon"||T==="rightEchelon"?"polyline":"rect"}function p(h,T){var s=h.shapeType;return s==="leftEchelon"?L(h,T):s==="rightEchelon"?J(h,T):Q(h,T)}function L(h,T){var s=h.barValueAxisPos,b=h.barLabelAxisPos,_=h.barWidth,V=h.echelonOffset,K=(0,r.default)(s[T],2),re=K[0],oe=K[1],se=b[T],ce=_/2,de=h.valueAxis.axis,he=[];return de==="x"?(he[0]=[oe,se-ce],he[1]=[oe,se+ce],he[2]=[re,se+ce],he[3]=[re+V,se-ce],oe-re<V&&he.splice(3,1)):(he[0]=[se-ce,oe],he[1]=[se+ce,oe],he[2]=[se+ce,re],he[3]=[se-ce,re-V],re-oe<V&&he.splice(3,1)),{points:he,close:!0}}function J(h,T){var s=h.barValueAxisPos,b=h.barLabelAxisPos,_=h.barWidth,V=h.echelonOffset,K=(0,r.default)(s[T],2),re=K[0],oe=K[1],se=b[T],ce=_/2,de=h.valueAxis.axis,he=[];return de==="x"?(he[0]=[oe,se+ce],he[1]=[oe,se-ce],he[2]=[re,se-ce],he[3]=[re+V,se+ce],oe-re<V&&he.splice(2,1)):(he[0]=[se+ce,oe],he[1]=[se-ce,oe],he[2]=[se-ce,re],he[3]=[se+ce,re-V],re-oe<V&&he.splice(2,1)),{points:he,close:!0}}function Q(h,T){var s=h.barValueAxisPos,b=h.barLabelAxisPos,_=h.barWidth,V=(0,r.default)(s[T],2),K=V[0],re=V[1],oe=b[T],se=h.valueAxis.axis,ce={};return se==="x"?(ce.x=K,ce.y=oe-_/2,ce.w=re-K,ce.h=_):(ce.x=oe-_/2,ce.y=re,ce.w=_,ce.h=K-re),ce}function ee(h,T){var s=h.barStyle,b=h.gradient,_=h.color,V=h.independentColor,K=h.independentColors,re=[s.fill||_],oe=(0,C.deepMerge)(re,b.color);if(V){var se=K[T%K.length];oe=se instanceof Array?se:[se]}oe.length===1&&oe.push(oe[0]);var ce=ae(h,T);return(0,C.deepMerge)({gradientColor:oe,gradientParams:ce,gradientType:"linear",gradientWith:"fill"},s)}function ae(h,T){var s=h.barValueAxisPos,b=h.barLabelAxisPos,_=h.data,V=h.valueAxis,K=V.linePosition,re=V.axis,oe=(0,r.default)(s[T],2),se=oe[0],ce=oe[1],de=b[T],he=_[T],pe=(0,r.default)(K,2),be=pe[0],Oe=pe[1],Ge=re==="x"?0:1,Me=ce;return h.gradient.local||(Me=he<0?be[Ge]:Oe[Ge]),re==="y"?[de,Me,de,se]:[Me,de,se,de]}function fe(h){var T=q(h),s=h.shapeType;return T.forEach(function(b){var _=b.shape;s==="leftEchelon"?_=Y(_,h):s==="rightEchelon"?_=ne(_,h):_=ie(_,h),b.shape=_}),T}function Y(h,T){var s=T.valueAxis.axis;h=(0,k.deepClone)(h);var b=h,_=b.points,V=s==="x"?0:1,K=_[2][V];return _.forEach(function(re){return re[V]=K}),h}function ne(h,T){var s=T.valueAxis.axis;h=(0,k.deepClone)(h);var b=h,_=b.points,V=s==="x"?0:1,K=_[2][V];return _.forEach(function(re){return re[V]=K}),h}function ie(h,T){var s=T.valueAxis.axis,b=h.x,_=h.y,V=h.w,K=h.h;return s==="x"?V=0:(_=_+K,K=0),{x:b,y:_,w:V,h:K}}function le(h,T,s,b){var _=b.chart.render,V=m(T);h[s]&&h[s][0].name!==V&&(h[s].forEach(function(K){return _.delGraph(K)}),h[s]=null)}function D(h){var T=h.animationCurve,s=h.animationFrame,b=h.rLevel,_=P(h),V=te(h);return _.map(function(K){return{name:"text",index:b,visible:h.label.show,animationCurve:T,animationFrame:s,shape:K,style:V}})}function P(h){var T=S(h),s=R(h);return s.map(function(b,_){return{position:b,content:T[_]}})}function S(h){var T=h.data,s=h.label,b=s.formatter;if(T=T.filter(function(V){return typeof V=="number"}).map(function(V){return V.toString()}),!b)return T;var _=(0,n.default)(b);return _==="string"?T.map(function(V){return b.replace("{value}",V)}):_==="function"?T.map(function(V,K){return b({value:V,index:K})}):T}function R(h){var T=h.label,s=h.barValueAxisPos,b=h.barLabelAxisPos,_=T.position,V=T.offset,K=h.valueAxis.axis;return s.map(function(re,oe){var se=(0,r.default)(re,2),ce=se[0],de=se[1],he=b[oe],pe=[de,he];return _==="bottom"&&(pe=[ce,he]),_==="center"&&(pe=[(ce+de)/2,he]),K==="y"&&pe.reverse(),I(pe,V)})}function I(h,T){var s=(0,r.default)(h,2),b=s[0],_=s[1],V=(0,r.default)(T,2),K=V[0],re=V[1];return[b+K,_+re]}function te(h){var T=h.color,s=h.label.style,b=h.gradient.color;return b.length&&(T=b[0]),s=(0,C.deepMerge)({fill:T},s),s}return $t}var kt={},ma;function ts(){if(ma)return kt;ma=1;var t=ve;Object.defineProperty(kt,"__esModule",{value:!0}),kt.pie=U;var n=t(Se()),o=t(ke()),r=t(_e()),a=t(xe()),l=Ee(),i=ra(),k=$e(),C=we();function j(P,S){var R=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);S&&(I=I.filter(function(te){return Object.getOwnPropertyDescriptor(P,te).enumerable})),R.push.apply(R,I)}return R}function W(P){for(var S=1;S<arguments.length;S++){var R=arguments[S]!=null?arguments[S]:{};S%2?j(Object(R),!0).forEach(function(I){(0,n.default)(P,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(R)):j(Object(R)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(R,I))})}return P}function U(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=S.series;R||(R=[]);var I=(0,C.initNeedSeries)(R,i.pieConfig,"pie");I=M(I,P),I=N(I,P),I=G(I),I=B(I),I=u(I),I=w(I),I=$(I),I=f(I),(0,l.doUpdate)({chart:P,series:I,key:"pie",getGraphConfig:Z,getStartGraphConfig:c,beforeChange:q}),(0,l.doUpdate)({chart:P,series:I,key:"pieInsideLabel",getGraphConfig:L}),(0,l.doUpdate)({chart:P,series:I,key:"pieOutsideLabelLine",getGraphConfig:ee,getStartGraphConfig:ae}),(0,l.doUpdate)({chart:P,series:I,key:"pieOutsideLabel",getGraphConfig:ne,getStartGraphConfig:ie})}function M(P,S){var R=S.render.area;return P.forEach(function(I){var te=I.center;te=te.map(function(h,T){return typeof h=="number"?h:parseInt(h)/100*R[T]}),I.center=te}),P}function N(P,S){var R=Math.min.apply(Math,(0,a.default)(S.render.area))/2;return P.forEach(function(I){var te=I.radius,h=I.data;te=d(te,R),h.forEach(function(T){var s=T.radius;s||(s=te),s=d(s,R),T.radius=s}),I.radius=te}),P}function d(P,S){return P instanceof Array||(P=[0,P]),P=P.map(function(R){return typeof R=="number"?R:parseInt(R)/100*S}),P}function G(P,S){var R=P.filter(function(I){var te=I.roseType;return te});return R.forEach(function(I){var te=I.radius,h=I.data,T=I.roseSort,s=z(I),b=(0,a.default)(h);h=F(h),h.forEach(function(_,V){_.radius[1]=te[1]-s*V}),T?h.reverse():I.data=b,I.roseIncrement=s}),P}function F(P){return P.sort(function(S,R){var I=S.value,te=R.value;if(I===te)return 0;if(I>te)return-1;if(I<te)return 1})}function z(P){var S=P.radius,R=P.roseIncrement;if(typeof R=="number")return R;if(R==="auto"){var I=P.data,te=I.reduce(function(s,b){var _=b.radius;return[].concat((0,a.default)(s),(0,a.default)(_))},[]),h=Math.min.apply(Math,(0,a.default)(te)),T=Math.max.apply(Math,(0,a.default)(te));return(T-h)*.6/(I.length-1||1)}return parseInt(R)/100*S[1]}function B(P){return P.forEach(function(S){var R=S.data,I=S.percentToFixed,te=v(R);R.forEach(function(T){var s=T.value;T.percent=s/te*100,T.percentForLabel=y(s/te*100,I)});var h=(0,C.mulAdd)(R.slice(0,-1).map(function(T){var s=T.percent;return s}));R.slice(-1)[0].percent=100-h,R.slice(-1)[0].percentForLabel=y(100-h,I)}),P}function y(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=P.toString(),I=R.split("."),te=I[1]||"0",h=te.slice(0,S);return I[1]=h,parseFloat(I.join("."))}function v(P){return(0,C.mulAdd)(P.map(function(S){var R=S.value;return R}))}function u(P){return P.forEach(function(S){var R=S.startAngle,I=S.data;I.forEach(function(te,h){var T=O(I,h),s=(0,r.default)(T,2),b=s[0],_=s[1];te.startAngle=R+b,te.endAngle=R+_})}),P}function O(P,S){var R=Math.PI*2,I=P.slice(0,S+1),te=(0,C.mulAdd)(I.map(function(s){var b=s.percent;return b})),h=P[S].percent,T=te-h;return[R*T/100,R*te/100]}function w(P){return P.forEach(function(S){var R=S.data;R.forEach(function(I){I.insideLabelPos=x(S,I)})}),P}function x(P,S){var R=P.center,I=S.startAngle,te=S.endAngle,h=(0,r.default)(S.radius,2),T=h[0],s=h[1],b=(T+s)/2,_=(I+te)/2;return k.getCircleRadianPoint.apply(void 0,(0,a.default)(R).concat([b,_]))}function $(P){return P.forEach(function(S){var R=S.data,I=S.center;R.forEach(function(te){var h=te.startAngle,T=te.endAngle,s=te.radius,b=(h+T)/2,_=k.getCircleRadianPoint.apply(void 0,(0,a.default)(I).concat([s[1],b]));te.edgeCenterPos=_})}),P}function f(P){return P.forEach(function(S){var R=g(S),I=g(S,!1);R=H(R),I=H(I),X(R,S),X(I,S,!1)}),P}function E(P){var S=P.outsideLabel.labelLineBendGap,R=A(P);return typeof S!="number"&&(S=parseInt(S)/100*R),S+R}function A(P){var S=P.data,R=S.map(function(I){var te=(0,r.default)(I.radius,2);te[0];var h=te[1];return h});return Math.max.apply(Math,(0,a.default)(R))}function g(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=P.data,I=P.center,te=I[0];return R.filter(function(h){var T=h.edgeCenterPos,s=T[0];return S?s<=te:s>te})}function H(P){return P.sort(function(S,R){var I=(0,r.default)(S.edgeCenterPos,2);I[0];var te=I[1],h=(0,r.default)(R.edgeCenterPos,2);h[0];var T=h[1];if(te>T)return 1;if(te<T)return-1;if(te===T)return 0}),P}function X(P,S){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,I=S.center,te=S.outsideLabel,h=E(S);P.forEach(function(T){var s=T.edgeCenterPos,b=T.startAngle,_=T.endAngle,V=te.labelLineEndLength,K=(b+_)/2,re=k.getCircleRadianPoint.apply(void 0,(0,a.default)(I).concat([h,K])),oe=(0,a.default)(re);oe[0]+=V*(R?-1:1),T.labelLine=[s,re,oe],T.labelLineLength=(0,C.getPolylineLength)(T.labelLine),T.align={textAlign:"left",textBaseline:"middle"},R&&(T.align.textAlign="right")})}function Z(P){var S=P.data,R=P.animationCurve,I=P.animationFrame,te=P.rLevel;return S.map(function(h,T){return{name:"pie",index:te,animationCurve:R,animationFrame:I,shape:m(P,T),style:p(P,T)}})}function c(P){var S=P.animationDelayGap,R=P.startAnimationCurve,I=Z(P);return I.forEach(function(te,h){te.animationCurve=R,te.animationDelay=h*S,te.shape.or=te.shape.ir}),I}function q(P){P.animationDelay=0}function m(P,S){var R=P.center,I=P.data,te=I[S],h=te.radius,T=te.startAngle,s=te.endAngle;return{startAngle:T,endAngle:s,ir:h[0],or:h[1],rx:R[0],ry:R[1]}}function p(P,S){var R=P.pieStyle,I=P.data,te=I[S],h=te.color;return(0,C.deepMerge)({fill:h},R)}function L(P){var S=P.animationCurve,R=P.animationFrame,I=P.data,te=P.rLevel;return I.map(function(h,T){return{name:"text",index:te,visible:P.insideLabel.show,animationCurve:S,animationFrame:R,shape:J(P,T),style:Q(P)}})}function J(P,S){var R=P.insideLabel,I=P.data,te=R.formatter,h=I[S],T=(0,o.default)(te),s="";return T==="string"&&(s=te.replace("{name}",h.name),s=s.replace("{percent}",h.percentForLabel),s=s.replace("{value}",h.value)),T==="function"&&(s=te(h)),{content:s,position:h.insideLabelPos}}function Q(P,S){var R=P.insideLabel.style;return R}function ee(P){var S=P.animationCurve,R=P.animationFrame,I=P.data,te=P.rLevel;return I.map(function(h,T){return{name:"polyline",index:te,visible:P.outsideLabel.show,animationCurve:S,animationFrame:R,shape:fe(P,T),style:Y(P,T)}})}function ae(P){var S=P.data,R=ee(P);return R.forEach(function(I,te){I.style.lineDash=[0,S[te].labelLineLength]}),R}function fe(P,S){var R=P.data,I=R[S];return{points:I.labelLine}}function Y(P,S){var R=P.outsideLabel,I=P.data,te=R.labelLineStyle,h=I[S].color;return(0,C.deepMerge)({stroke:h,lineDash:[I[S].labelLineLength,0]},te)}function ne(P){var S=P.animationCurve,R=P.animationFrame,I=P.data,te=P.rLevel;return I.map(function(h,T){return{name:"text",index:te,visible:P.outsideLabel.show,animationCurve:S,animationFrame:R,shape:le(P,T),style:D(P,T)}})}function ie(P){var S=P.data,R=ne(P);return R.forEach(function(I,te){I.shape.position=S[te].labelLine[1]}),R}function le(P,S){var R=P.outsideLabel,I=P.data,te=R.formatter,h=I[S],T=h.labelLine,s=h.name,b=h.percentForLabel,_=h.value,V=(0,o.default)(te),K="";return V==="string"&&(K=te.replace("{name}",s),K=K.replace("{percent}",b),K=K.replace("{value}",_)),V==="function"&&(K=te(I[S])),{content:K,position:T[2]}}function D(P,S){var R=P.outsideLabel,I=P.data,te=I[S],h=te.color,T=te.align,s=R.style;return(0,C.deepMerge)(W({fill:h},T),s)}return kt}var _t={},ya;function rs(){if(ya)return _t;ya=1;var t=ve;Object.defineProperty(_t,"__esModule",{value:!0}),_t.radarAxis=W;var n=t(_e()),o=t(Se()),r=t(xe()),a=Ee(),l=Be(),i=$e(),k=we();function C(c,q){var m=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);q&&(p=p.filter(function(L){return Object.getOwnPropertyDescriptor(c,L).enumerable})),m.push.apply(m,p)}return m}function j(c){for(var q=1;q<arguments.length;q++){var m=arguments[q]!=null?arguments[q]:{};q%2?C(Object(m),!0).forEach(function(p){(0,o.default)(c,p,m[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(m)):C(Object(m)).forEach(function(p){Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(m,p))})}return c}function W(c){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=q.radar,p=[];m&&(p=U(m),p=M(p,c),p=N(p,c),p=d(p),p=G(p),p=F(p),p=[p]);var L=p;p.length&&!p[0].show&&(L=[]),(0,a.doUpdate)({chart:c,series:L,key:"radarAxisSplitArea",getGraphConfig:z,beforeUpdate:v,beforeChange:u}),(0,a.doUpdate)({chart:c,series:L,key:"radarAxisSplitLine",getGraphConfig:O,beforeUpdate:$,beforeChange:f}),(0,a.doUpdate)({chart:c,series:L,key:"radarAxisLine",getGraphConfig:E}),(0,a.doUpdate)({chart:c,series:L,key:"radarAxisLable",getGraphConfig:H}),c.radarAxis=p[0]}function U(c){return(0,k.deepMerge)((0,i.deepClone)(l.radarAxisConfig),c)}function M(c,q){var m=q.render.area,p=c.center;return c.centerPos=p.map(function(L,J){return typeof L=="number"?L:parseInt(L)/100*m[J]}),c}function N(c,q){var m=q.render.area,p=c.splitNum,L=c.radius,J=Math.min.apply(Math,(0,r.default)(m))/2;typeof L!="number"&&(L=parseInt(L)/100*J);var Q=L/p;return c.ringRadius=new Array(p).fill(0).map(function(ee,ae){return Q*(ae+1)}),c.radius=L,c}function d(c){var q=c.indicator,m=c.centerPos,p=c.radius,L=c.startAngle,J=Math.PI*2,Q=q.length,ee=J/Q,ae=new Array(Q).fill(0).map(function(fe,Y){return ee*Y+L});return c.axisLineAngles=ae,c.axisLinePosition=ae.map(function(fe){return i.getCircleRadianPoint.apply(void 0,(0,r.default)(m).concat([p,fe]))}),c}function G(c){var q=c.ringRadius,m=q[0]/2;return c.areaRadius=q.map(function(p){return p-m}),c}function F(c){var q=c.axisLineAngles,m=c.centerPos,p=c.radius,L=c.axisLabel;return p+=L.labelGap,c.axisLabelPosition=q.map(function(J){return i.getCircleRadianPoint.apply(void 0,(0,r.default)(m).concat([p,J]))}),c}function z(c){var q=c.areaRadius,m=c.polygon,p=c.animationCurve,L=c.animationFrame,J=c.rLevel,Q=m?"regPolygon":"ring";return q.map(function(ee,ae){return{name:Q,index:J,visible:c.splitArea.show,animationCurve:p,animationFrame:L,shape:B(c,ae),style:y(c,ae)}})}function B(c,q){var m=c.polygon,p=c.areaRadius,L=c.indicator,J=c.centerPos,Q=L.length,ee={rx:J[0],ry:J[1],r:p[q]};return m&&(ee.side=Q),ee}function y(c,q){var m=c.splitArea,p=c.ringRadius,L=c.axisLineAngles,J=c.polygon,Q=c.centerPos,ee=m.color,ae=m.style;ae=j({fill:"rgba(0, 0, 0, 0)"},ae);var fe=p[0]-0;if(J){var Y=i.getCircleRadianPoint.apply(void 0,(0,r.default)(Q).concat([p[0],L[0]])),ne=i.getCircleRadianPoint.apply(void 0,(0,r.default)(Q).concat([p[0],L[1]]));fe=(0,k.getPointToLineDistance)(Q,Y,ne)}if(ae=(0,k.deepMerge)((0,i.deepClone)(ae,!0),{lineWidth:fe}),!ee.length)return ae;var ie=ee.length;return(0,k.deepMerge)(ae,{stroke:ee[q%ie]})}function v(c,q,m,p){var L=c[m];if(L){var J=p.chart.render,Q=q.polygon,ee=L[0].name,ae=Q?"regPolygon":"ring",fe=ae!==ee;fe&&(L.forEach(function(Y){return J.delGraph(Y)}),c[m]=null)}}function u(c,q){var m=q.shape.side;typeof m=="number"&&(c.shape.side=m)}function O(c){var q=c.ringRadius,m=c.polygon,p=c.animationCurve,L=c.animationFrame,J=c.rLevel,Q=m?"regPolygon":"ring";return q.map(function(ee,ae){return{name:Q,index:J,animationCurve:p,animationFrame:L,visible:c.splitLine.show,shape:w(c,ae),style:x(c,ae)}})}function w(c,q){var m=c.ringRadius,p=c.centerPos,L=c.indicator,J=c.polygon,Q={rx:p[0],ry:p[1],r:m[q]},ee=L.length;return J&&(Q.side=ee),Q}function x(c,q){var m=c.splitLine,p=m.color,L=m.style;if(L=j({fill:"rgba(0, 0, 0, 0)"},L),!p.length)return L;var J=p.length;return(0,k.deepMerge)(L,{stroke:p[q%J]})}function $(c,q,m,p){var L=c[m];if(L){var J=p.chart.render,Q=q.polygon,ee=L[0].name,ae=Q?"regPolygon":"ring",fe=ae!==ee;fe&&(L.forEach(function(Y){return J.delGraph(Y)}),c[m]=null)}}function f(c,q){var m=q.shape.side;typeof m=="number"&&(c.shape.side=m)}function E(c){var q=c.axisLinePosition,m=c.animationCurve,p=c.animationFrame,L=c.rLevel;return q.map(function(J,Q){return{name:"polyline",index:L,visible:c.axisLine.show,animationCurve:m,animationFrame:p,shape:A(c,Q),style:g(c,Q)}})}function A(c,q){var m=c.centerPos,p=c.axisLinePosition,L=[m,p[q]];return{points:L}}function g(c,q){var m=c.axisLine,p=m.color,L=m.style;if(!p.length)return L;var J=p.length;return(0,k.deepMerge)(L,{stroke:p[q%J]})}function H(c){var q=c.axisLabelPosition,m=c.animationCurve,p=c.animationFrame,L=c.rLevel;return q.map(function(J,Q){return{name:"text",index:L,visible:c.axisLabel.show,animationCurve:m,animationFrame:p,shape:X(c,Q),style:Z(c,Q)}})}function X(c,q){var m=c.axisLabelPosition,p=c.indicator;return{content:p[q].name,position:m[q]}}function Z(c,q){var m=c.axisLabel,p=(0,n.default)(c.centerPos,2),L=p[0],J=p[1],Q=c.axisLabelPosition,ee=m.color,ae=m.style,fe=(0,n.default)(Q[q],2),Y=fe[0],ne=fe[1],ie=Y>L?"left":"right",le=ne>J?"top":"bottom";if(ae=(0,k.deepMerge)({textAlign:ie,textBaseline:le},ae),!ee.length)return ae;var D=ee.length;return(0,k.deepMerge)(ae,{fill:ee[q%D]})}return _t}var Pt={},va;function ns(){if(va)return Pt;va=1;var t=ve;Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.radar=M;var n=t(Se()),o=t(ke()),r=t(_e()),a=t(xe()),l=Ee(),i=Be(),k=$e(),C=ze,j=we();function W(g,H){var X=Object.keys(g);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(g);H&&(Z=Z.filter(function(c){return Object.getOwnPropertyDescriptor(g,c).enumerable})),X.push.apply(X,Z)}return X}function U(g){for(var H=1;H<arguments.length;H++){var X=arguments[H]!=null?arguments[H]:{};H%2?W(Object(X),!0).forEach(function(Z){(0,n.default)(g,Z,X[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(X)):W(Object(X)).forEach(function(Z){Object.defineProperty(g,Z,Object.getOwnPropertyDescriptor(X,Z))})}return g}function M(g){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=H.series;X||(X=[]);var Z=(0,j.initNeedSeries)(X,i.radarConfig,"radar");Z=N(Z,g),Z=d(Z,g),Z=G(Z,g),(0,l.doUpdate)({chart:g,series:Z,key:"radar",getGraphConfig:F,getStartGraphConfig:z,beforeChange:v}),(0,l.doUpdate)({chart:g,series:Z,key:"radarPoint",getGraphConfig:u,getStartGraphConfig:O}),(0,l.doUpdate)({chart:g,series:Z,key:"radarLabel",getGraphConfig:$})}function N(g,H){var X=H.radarAxis;if(!X)return[];var Z=X.indicator,c=X.axisLineAngles,q=X.radius,m=X.centerPos;return g.forEach(function(p){var L=p.data;p.dataRadius=[],p.radarPosition=Z.map(function(J,Q){var ee=J.max,ae=J.min,fe=L[Q];typeof ee!="number"&&(ee=fe),typeof ae!="number"&&(ae=0),typeof fe!="number"&&(fe=ae);var Y=(fe-ae)/(ee-ae)*q;return p.dataRadius[Q]=Y,k.getCircleRadianPoint.apply(void 0,(0,a.default)(m).concat([Y,c[Q]]))})}),g}function d(g,H){var X=H.radarAxis;if(!X)return[];var Z=X.centerPos,c=X.axisLineAngles;return g.forEach(function(q){var m=q.dataRadius,p=q.label,L=p.labelGap;q.labelPosition=m.map(function(J,Q){return k.getCircleRadianPoint.apply(void 0,(0,a.default)(Z).concat([J+L,c[Q]]))})}),g}function G(g,H){var X=H.radarAxis;if(!X)return[];var Z=(0,r.default)(X.centerPos,2),c=Z[0],q=Z[1];return g.forEach(function(m){var p=m.labelPosition,L=p.map(function(J){var Q=(0,r.default)(J,2),ee=Q[0],ae=Q[1],fe=ee>c?"left":"right",Y=ae>q?"top":"bottom";return{textAlign:fe,textBaseline:Y}});m.labelAlign=L}),g}function F(g){var H=g.animationCurve,X=g.animationFrame,Z=g.rLevel;return[{name:"polyline",index:Z,animationCurve:H,animationFrame:X,shape:B(g),style:y(g)}]}function z(g,H){var X=H.chart.radarAxis.centerPos,Z=F(g)[0],c=Z.shape.points.length,q=new Array(c).fill(0).map(function(m){return(0,a.default)(X)});return Z.shape.points=q,[Z]}function B(g){var H=g.radarPosition;return{points:H,close:!0}}function y(g){var H=g.radarStyle,X=g.color,Z=(0,C.getRgbaValue)(X);Z[3]=.5;var c={stroke:X,fill:(0,C.getColorFromRgbValue)(Z)};return(0,j.deepMerge)(c,H)}function v(g,H){var X=H.shape,Z=g.shape.points,c=Z.length,q=X.points.length;if(q>c){var m=Z.slice(-1)[0],p=new Array(q-c).fill(0).map(function(L){return(0,a.default)(m)});Z.push.apply(Z,(0,a.default)(p))}else q<c&&Z.splice(q)}function u(g){var H=g.radarPosition,X=g.animationCurve,Z=g.animationFrame,c=g.rLevel;return H.map(function(q,m){return{name:"circle",index:c,animationCurve:X,animationFrame:Z,visible:g.point.show,shape:w(g,m),style:x(g)}})}function O(g){var H=u(g);return H.forEach(function(X){return X.shape.r=.01}),H}function w(g,H){var X=g.radarPosition,Z=g.point,c=Z.radius,q=X[H];return{rx:q[0],ry:q[1],r:c}}function x(g,H){var X=g.point,Z=g.color,c=X.style;return(0,j.deepMerge)({stroke:Z},c)}function $(g){var H=g.labelPosition,X=g.animationCurve,Z=g.animationFrame,c=g.rLevel;return H.map(function(q,m){return{name:"text",index:c,visible:g.label.show,animationCurve:X,animationFrame:Z,shape:f(g,m),style:A(g,m)}})}function f(g,H){var X=g.labelPosition,Z=g.label,c=g.data,q=Z.offset,m=Z.formatter,p=E(X[H],q),L=c[H]?c[H].toString():"0",J=(0,o.default)(m);return J==="string"&&(L=m.replace("{value}",L)),J==="function"&&(L=m(L)),{content:L,position:p}}function E(g,H){var X=(0,r.default)(g,2),Z=X[0],c=X[1],q=(0,r.default)(H,2),m=q[0],p=q[1];return[Z+m,c+p]}function A(g,H){var X=g.label,Z=g.color,c=g.labelAlign,q=X.style,m=U({fill:Z},c[H]);return(0,j.deepMerge)(m,q)}return Pt}var wt={},ba;function as(){if(ba)return wt;ba=1;var t=ve;Object.defineProperty(wt,"__esModule",{value:!0}),wt.gauge=M;var n=t(Se()),o=t(ke()),r=t(_e()),a=t(xe()),l=Ee(),i=ia(),k=$e(),C=we(),j=ze;function W(D,P){var S=Object.keys(D);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(D);P&&(R=R.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),S.push.apply(S,R)}return S}function U(D){for(var P=1;P<arguments.length;P++){var S=arguments[P]!=null?arguments[P]:{};P%2?W(Object(S),!0).forEach(function(R){(0,n.default)(D,R,S[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(S)):W(Object(S)).forEach(function(R){Object.defineProperty(D,R,Object.getOwnPropertyDescriptor(S,R))})}return D}function M(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=P.series;S||(S=[]);var R=(0,C.initNeedSeries)(S,i.gaugeConfig,"gauge");R=N(R,D),R=d(R,D),R=G(R,D),R=F(R),R=z(R),R=B(R),R=y(R),R=v(R),R=u(R),R=O(R),(0,l.doUpdate)({chart:D,series:R,key:"gaugeAxisTick",getGraphConfig:x}),(0,l.doUpdate)({chart:D,series:R,key:"gaugeAxisLabel",getGraphConfig:E}),(0,l.doUpdate)({chart:D,series:R,key:"gaugeBackgroundArc",getGraphConfig:H,getStartGraphConfig:c}),(0,l.doUpdate)({chart:D,series:R,key:"gaugeArc",getGraphConfig:q,getStartGraphConfig:L,beforeChange:J}),(0,l.doUpdate)({chart:D,series:R,key:"gaugePointer",getGraphConfig:Q,getStartGraphConfig:Y}),(0,l.doUpdate)({chart:D,series:R,key:"gaugeDetails",getGraphConfig:ne})}function N(D,P){var S=P.render.area;return D.forEach(function(R){var I=R.center;I=I.map(function(te,h){return typeof te=="number"?te:parseInt(te)/100*S[h]}),R.center=I}),D}function d(D,P){var S=P.render.area,R=Math.min.apply(Math,(0,a.default)(S))/2;return D.forEach(function(I){var te=I.radius;typeof te!="number"&&(te=parseInt(te)/100*R),I.radius=te}),D}function G(D,P){var S=P.render.area,R=Math.min.apply(Math,(0,a.default)(S))/2;return D.forEach(function(I){var te=I.radius,h=I.data,T=I.arcLineWidth;h.forEach(function(s){var b=s.radius,_=s.lineWidth;b||(b=te),typeof b!="number"&&(b=parseInt(b)/100*R),s.radius=b,_||(_=T),s.lineWidth=_})}),D}function F(D,P){return D.forEach(function(S){var R=S.startAngle,I=S.endAngle,te=S.data,h=S.min,T=S.max,s=I-R,b=T-h;te.forEach(function(_){var V=_.value,K=Math.abs((V-h)/b*s);_.startAngle=R,_.endAngle=R+K})}),D}function z(D,P){return D.forEach(function(S){var R=S.data;R.forEach(function(I){var te=I.color,h=I.gradient;(!h||!h.length)&&(h=te),h instanceof Array||(h=[h]),I.gradient=h})}),D}function B(D,P){return D.forEach(function(S){var R=S.startAngle,I=S.endAngle,te=S.splitNum,h=S.center,T=S.radius,s=S.arcLineWidth,b=S.axisTick,_=b.tickLength,V=b.style.lineWidth,K=I-R,re=T-s/2,oe=re-_,se=K/(te-1),ce=2*Math.PI*T*K/(Math.PI*2),de=Math.ceil(V/2)/ce*K;S.tickAngles=[],S.tickInnerRadius=[],S.tickPosition=new Array(te).fill(0).map(function(he,pe){var be=R+se*pe;return pe===0&&(be+=de),pe===te-1&&(be-=de),S.tickAngles[pe]=be,S.tickInnerRadius[pe]=oe,[k.getCircleRadianPoint.apply(void 0,(0,a.default)(h).concat([re,be])),k.getCircleRadianPoint.apply(void 0,(0,a.default)(h).concat([oe,be]))]})}),D}function y(D,P){return D.forEach(function(S){var R=S.center,I=S.tickInnerRadius,te=S.tickAngles,h=S.axisLabel.labelGap,T=te.map(function(b,_){return k.getCircleRadianPoint.apply(void 0,(0,a.default)(R).concat([I[_]-h,te[_]]))}),s=T.map(function(b){var _=(0,r.default)(b,2),V=_[0],K=_[1];return{textAlign:V>R[0]?"right":"left",textBaseline:K>R[1]?"bottom":"top"}});S.labelPosition=T,S.labelAlign=s}),D}function v(D,P){return D.forEach(function(S){var R=S.axisLabel,I=S.min,te=S.max,h=S.splitNum,T=R.data,s=R.formatter,b=(te-I)/(h-1),_=new Array(h).fill(0).map(function(K,re){return parseInt(I+b*re)}),V=(0,o.default)(s);T=(0,C.deepMerge)(_,T).map(function(K,re){var oe=K;return V==="string"&&(oe=s.replace("{value}",K)),V==="function"&&(oe=s({value:K,index:re})),oe}),R.data=T}),D}function u(D,P){return D.forEach(function(S){var R=S.data,I=S.details,te=S.center,h=I.position,T=I.offset,s=R.map(function(b){var _=b.startAngle,V=b.endAngle,K=b.radius,re=null;return h==="center"?re=te:h==="start"?re=k.getCircleRadianPoint.apply(void 0,(0,a.default)(te).concat([K,_])):h==="end"&&(re=k.getCircleRadianPoint.apply(void 0,(0,a.default)(te).concat([K,V]))),w(re,T)});S.detailsPosition=s}),D}function O(D,P){return D.forEach(function(S){var R=S.data,I=S.details,te=I.formatter,h=(0,o.default)(te),T=R.map(function(s){var b=s.value;return h==="string"&&(b=te.replace("{value}","{nt}"),b=b.replace("{name}",s.name)),h==="function"&&(b=te(s)),b.toString()});S.detailsContent=T}),D}function w(D,P){var S=(0,r.default)(D,2),R=S[0],I=S[1],te=(0,r.default)(P,2),h=te[0],T=te[1];return[R+h,I+T]}function x(D){var P=D.tickPosition,S=D.animationCurve,R=D.animationFrame,I=D.rLevel;return P.map(function(te,h){return{name:"polyline",index:I,visible:D.axisTick.show,animationCurve:S,animationFrame:R,shape:$(D,h),style:f(D)}})}function $(D,P){var S=D.tickPosition;return{points:S[P]}}function f(D,P){var S=D.axisTick.style;return S}function E(D){var P=D.labelPosition,S=D.animationCurve,R=D.animationFrame,I=D.rLevel;return P.map(function(te,h){return{name:"text",index:I,visible:D.axisLabel.show,animationCurve:S,animationFrame:R,shape:A(D,h),style:g(D,h)}})}function A(D,P){var S=D.labelPosition,R=D.axisLabel.data;return{content:R[P].toString(),position:S[P]}}function g(D,P){var S=D.labelAlign,R=D.axisLabel,I=R.style;return(0,C.deepMerge)(U({},S[P]),I)}function H(D){var P=D.animationCurve,S=D.animationFrame,R=D.rLevel;return[{name:"arc",index:R,visible:D.backgroundArc.show,animationCurve:P,animationFrame:S,shape:X(D),style:Z(D)}]}function X(D){var P=D.startAngle,S=D.endAngle,R=D.center,I=D.radius;return{rx:R[0],ry:R[1],r:I,startAngle:P,endAngle:S}}function Z(D){var P=D.backgroundArc,S=D.arcLineWidth,R=P.style;return(0,C.deepMerge)({lineWidth:S},R)}function c(D){var P=H(D)[0],S=U({},P.shape);return S.endAngle=P.shape.startAngle,P.shape=S,[P]}function q(D){var P=D.data,S=D.animationCurve,R=D.animationFrame,I=D.rLevel;return P.map(function(te,h){return{name:"agArc",index:I,animationCurve:S,animationFrame:R,shape:m(D,h),style:p(D,h)}})}function m(D,P){var S=D.data,R=D.center,I=D.endAngle,te=S[P],h=te.radius,T=te.startAngle,s=te.endAngle,b=te.localGradient;return b&&(I=s),{rx:R[0],ry:R[1],r:h,startAngle:T,endAngle:s,gradientEndAngle:I}}function p(D,P){var S=D.data,R=D.dataItemStyle,I=S[P],te=I.lineWidth,h=I.gradient;return h=h.map(function(T){return(0,j.getRgbaValue)(T)}),(0,C.deepMerge)({lineWidth:te,gradient:h},R)}function L(D){var P=q(D);return P.map(function(S){var R=U({},S.shape);R.endAngle=S.shape.startAngle,S.shape=R}),P}function J(D,P){var S=D.style.gradient,R=S.length,I=P.style.gradient.length;if(R>I)S.splice(I);else{var te=S.slice(-1)[0];S.push.apply(S,(0,a.default)(new Array(I-R).fill(0).map(function(h){return(0,a.default)(te)})))}}function Q(D){var P=D.animationCurve,S=D.animationFrame,R=D.center,I=D.rLevel;return[{name:"polyline",index:I,visible:D.pointer.show,animationCurve:P,animationFrame:S,shape:ee(D),style:ae(D),setGraphCenter:function(h,T){T.style.graphCenter=R}}]}function ee(D){var P=D.center;return{points:fe(P),close:!0}}function ae(D){var P=D.startAngle,S=D.endAngle,R=D.min,I=D.max,te=D.data,h=D.pointer,T=D.center,s=h.valueIndex,b=h.style,_=te[s]?te[s].value:0,V=(_-R)/(I-R)*(S-P)+P+Math.PI/2;return(0,C.deepMerge)({rotate:(0,C.radianToAngle)(V),scale:[1,1],graphCenter:T},b)}function fe(D){var P=(0,r.default)(D,2),S=P[0],R=P[1],I=[S,R-40],te=[S+5,R],h=[S,R+10],T=[S-5,R];return[I,te,h,T]}function Y(D){var P=D.startAngle,S=Q(D)[0];return S.style.rotate=(0,C.radianToAngle)(P+Math.PI/2),[S]}function ne(D){var P=D.detailsPosition,S=D.animationCurve,R=D.animationFrame,I=D.rLevel,te=D.details.show;return P.map(function(h,T){return{name:"numberText",index:I,visible:te,animationCurve:S,animationFrame:R,shape:ie(D,T),style:le(D,T)}})}function ie(D,P){var S=D.detailsPosition,R=D.detailsContent,I=D.data,te=D.details,h=S[P],T=R[P],s=I[P].value,b=te.valueToFixed;return{number:[s],content:T,position:h,toFixed:b}}function le(D,P){var S=D.details,R=D.data,I=S.style,te=R[P].color;return(0,C.deepMerge)({fill:te},I)}return wt}var At={},Ca;function os(){if(Ca)return At;Ca=1;var t=ve;Object.defineProperty(At,"__esModule",{value:!0}),At.legend=C;var n=t(Se()),o=t(_e()),r=t(ke()),a=Ee(),l=$e(),i=Be(),k=we();function C(c){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=q.legend;m?(m=(0,k.deepMerge)((0,l.deepClone)(i.legendConfig,!0),m),m=j(m),m=W(m,q,c),m=U(m,c),m=d(m,c),m=[m]):m=[],(0,a.doUpdate)({chart:c,series:m,key:"legendIcon",getGraphConfig:$}),(0,a.doUpdate)({chart:c,series:m,key:"legendText",getGraphConfig:A})}function j(c){var q=c.data;return c.data=q.map(function(m){var p=(0,r.default)(m);return p==="string"?{name:m}:p==="object"?m:{name:""}}),c}function W(c,q,m){var p=q.series,L=m.legendStatus,J=c.data.filter(function(Q){var ee=Q.name,ae=p.find(function(fe){var Y=fe.name;return ee===Y});return ae?(Q.color||(Q.color=ae.color),Q.icon||(Q.icon=ae.type),Q):!1});return(!L||L.length!==c.data.length)&&(L=new Array(c.data.length).fill(!0)),J.forEach(function(Q,ee){return Q.status=L[ee]}),c.data=J,m.legendStatus=L,c}function U(c,q){var m=q.render.ctx,p=c.data,L=c.textStyle,J=c.textUnselectedStyle;return p.forEach(function(Q){var ee=Q.status,ae=Q.name;Q.textWidth=M(m,ae,ee?L:J)}),c}function M(c,q,m){return c.font=N(m),c.measureText(q).width}function N(c){var q=c.fontFamily,m=c.fontSize;return"".concat(m,"px ").concat(q)}function d(c,q){var m=c.orient;return m==="vertical"?u(c,q):G(c,q),c}function G(c,q){var m=c.iconHeight,p=c.itemGap,L=F(c,q),J=L.map(function(ae){return B(ae,c,q)}),Q=y(c,q),ee={textAlign:"left",textBaseline:"middle"};L.forEach(function(ae,fe){return ae.forEach(function(Y){var ne=Y.iconPosition,ie=Y.textPosition,le=J[fe],D=Q+fe*(p+m);Y.iconPosition=v(ne,[le,D]),Y.textPosition=v(ie,[le,D]),Y.align=ee})})}function F(c,q){var m=c.data,p=c.iconWidth,L=q.render.area[0],J=0,Q=[[]];return m.forEach(function(ee,ae){var fe=z(J,ae,c),Y=fe+p+5+ee.textWidth;Y>=L&&(J=ae,fe=z(J,ae,c),Q.push([])),ee.iconPosition=[fe,0],ee.textPosition=[fe+p+5,0],Q.slice(-1)[0].push(ee)}),Q}function z(c,q,m){var p=m.data,L=m.iconWidth,J=m.itemGap,Q=p.slice(c,q);return(0,k.mulAdd)(Q.map(function(ee){var ae=ee.textWidth;return ae}))+(q-c)*(J+5+L)}function B(c,q,m){var p=q.left,L=q.right,J=q.iconWidth,Q=q.itemGap,ee=m.render.area[0],ae=c.length,fe=(0,k.mulAdd)(c.map(function(ne){var ie=ne.textWidth;return ie}))+ae*(5+J)+(ae-1)*Q,Y=[p,L].findIndex(function(ne){return ne!=="auto"});return Y===-1?(ee-fe)/2:Y===0?typeof p=="number"?p:parseInt(p)/100*ee:(typeof L!="number"&&(L=parseInt(L)/100*ee),ee-(fe+L))}function y(c,q){var m=c.top,p=c.bottom,L=c.iconHeight,J=q.render.area[1],Q=[m,p].findIndex(function(ne){return ne!=="auto"}),ee=L/2;if(Q===-1){var ae=q.gridArea,fe=ae.y,Y=ae.h;return fe+Y+45-ee}else return Q===0?typeof m=="number"?m-ee:parseInt(m)/100*J-ee:(typeof p!="number"&&(p=parseInt(p)/100*J),J-p-ee)}function v(c,q){var m=(0,o.default)(c,2),p=m[0],L=m[1],J=(0,o.default)(q,2),Q=J[0],ee=J[1];return[p+Q,L+ee]}function u(c,q){var m=O(c,q),p=(0,o.default)(m,2),L=p[0],J=p[1],Q=w(c,q);x(c,L);var ee={textAlign:"left",textBaseline:"middle"};c.data.forEach(function(ae){var fe=ae.textPosition,Y=ae.iconPosition;ae.textPosition=v(fe,[J,Q]),ae.iconPosition=v(Y,[J,Q]),ae.align=ee})}function O(c,q){var m=c.left,p=c.right,L=q.render.area[0],J=[m,p].findIndex(function(ee){return ee!=="auto"});if(J===-1)return[!0,L-10];var Q=[m,p][J];return typeof Q!="number"&&(Q=parseInt(Q)/100*L),[!!J,Q]}function w(c,q){var m=c.iconHeight,p=c.itemGap,L=c.data,J=c.top,Q=c.bottom,ee=q.render.area[1],ae=L.length,fe=ae*m+(ae-1)*p,Y=[J,Q].findIndex(function(ie){return ie!=="auto"});if(Y===-1)return(ee-fe)/2;var ne=[J,Q][Y];return typeof ne!="number"&&(ne=parseInt(ne)/100*ee),Y===1&&(ne=ee-ne-fe),ne}function x(c,q){var m=c.data,p=c.iconWidth,L=c.iconHeight,J=c.itemGap,Q=L/2;m.forEach(function(ee,ae){var fe=ee.textWidth,Y=(L+J)*ae+Q,ne=q?0-p:0,ie=q?ne-5-fe:p+5;ee.iconPosition=[ne,Y],ee.textPosition=[ie,Y]})}function $(c,q){var m=c.data,p=c.selectAble,L=c.animationCurve,J=c.animationFrame,Q=c.rLevel;return m.map(function(ee,ae){return(0,n.default)({name:ee.icon==="line"?"lineIcon":"rect",index:Q,visible:c.show,hover:p,click:p,animationCurve:L,animationFrame:J,shape:f(c,ae),style:E(c,ae)},"click",Z(c,ae,q))})}function f(c,q){var m=c.data,p=c.iconWidth,L=c.iconHeight,J=(0,o.default)(m[q].iconPosition,2),Q=J[0],ee=J[1],ae=L/2;return{x:Q,y:ee-ae,w:p,h:L}}function E(c,q){var m=c.data,p=c.iconStyle,L=c.iconUnselectedStyle,J=m[q],Q=J.status,ee=J.color,ae=Q?p:L;return(0,k.deepMerge)({fill:ee},ae)}function A(c,q){var m=c.data,p=c.selectAble,L=c.animationCurve,J=c.animationFrame,Q=c.rLevel;return m.map(function(ee,ae){return{name:"text",index:Q,visible:c.show,hover:p,animationCurve:L,animationFrame:J,hoverRect:X(c,ae),shape:g(c,ae),style:H(c,ae),click:Z(c,ae,q)}})}function g(c,q){var m=c.data[q],p=m.textPosition,L=m.name;return{content:L,position:p}}function H(c,q){var m=c.textStyle,p=c.textUnselectedStyle,L=c.data[q],J=L.status,Q=L.align,ee=J?m:p;return(0,k.deepMerge)((0,l.deepClone)(ee,!0),Q)}function X(c,q){var m=c.textStyle,p=c.textUnselectedStyle,L=c.data[q],J=L.status,Q=(0,o.default)(L.textPosition,2),ee=Q[0],ae=Q[1],fe=L.textWidth,Y=J?m:p,ne=Y.fontSize;return[ee,ae-ne/2,fe,ne]}function Z(c,q,m){var p=c.data[q].name;return function(){var L=m.chart,J=L.legendStatus,Q=L.option,ee=!J[q],ae=Q.series.find(function(fe){var Y=fe.name;return Y===p});ae.show=ee,J[q]=ee,m.chart.setOption(Q)}}return At}var xa;function is(){return xa||(xa=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeColor",{enumerable:!0,get:function(){return n.mergeColor}}),Object.defineProperty(t,"title",{enumerable:!0,get:function(){return o.title}}),Object.defineProperty(t,"grid",{enumerable:!0,get:function(){return r.grid}}),Object.defineProperty(t,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return l.line}}),Object.defineProperty(t,"bar",{enumerable:!0,get:function(){return i.bar}}),Object.defineProperty(t,"pie",{enumerable:!0,get:function(){return k.pie}}),Object.defineProperty(t,"radarAxis",{enumerable:!0,get:function(){return C.radarAxis}}),Object.defineProperty(t,"radar",{enumerable:!0,get:function(){return j.radar}}),Object.defineProperty(t,"gauge",{enumerable:!0,get:function(){return W.gauge}}),Object.defineProperty(t,"legend",{enumerable:!0,get:function(){return U.legend}});var n=Ql(),o=Yl(),r=Kl(),a=Jl(),l=Zl(),i=es(),k=ts(),C=rs(),j=ns(),W=as(),U=os()}(jr)),jr}var $a;function ls(){return $a||($a=1,function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(ke()),r=n(je()),a=n(ct),l=$e(),i=is(),k=function C(j){if((0,r.default)(this,C),!j)return console.error("Charts Missing parameters!"),!1;var W=j.clientWidth,U=j.clientHeight,M=document.createElement("canvas");M.setAttribute("width",W),M.setAttribute("height",U),j.appendChild(M);var N={container:j,canvas:M,render:new a.default(M),option:null};Object.assign(this,N)};t.default=k,k.prototype.setOption=function(C){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!C||(0,o.default)(C)!=="object")return console.error("setOption Missing parameters!"),!1;j&&this.render.graphs.forEach(function(U){return U.animationEnd()});var W=(0,l.deepClone)(C,!0);(0,i.mergeColor)(this,W),(0,i.grid)(this,W),(0,i.axis)(this,W),(0,i.radarAxis)(this,W),(0,i.title)(this,W),(0,i.bar)(this,W),(0,i.line)(this,W),(0,i.pie)(this,W),(0,i.radar)(this,W),(0,i.gauge)(this,W),(0,i.legend)(this,W),this.option=C,this.render.launchAnimation()},k.prototype.resize=function(){var C=this.container,j=this.canvas,W=this.render,U=this.option,M=C.clientWidth,N=C.clientHeight;j.setAttribute("width",M),j.setAttribute("height",N),W.area=[M,N],this.setOption(U)}}(Wr)),Wr}(function(t){var n=ve;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"changeDefaultConfig",{enumerable:!0,get:function(){return r.changeDefaultConfig}}),t.default=void 0;var o=n(ls()),r=Be(),a=o.default;t.default=a})(zn);const ka=rn(zn),_a={__name:"index",props:{option:{type:Object,default:()=>({})}},setup(t){const n=t,o=e.ref(null),r=e.ref(null);let a=e.reactive({});ge(r,k,l),e.watch(()=>n.option,()=>{a&&a.setOption(n.option,!0)},{deep:!0});function l(){i()}function i(){a=new ka(r.value),n.option&&a.setOption(n.option)}function k(){a&&a.resize()}return(C,j)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"chartsContainerRef",ref:o,class:"dv-charts-container"},[e.createElementVNode("div",{ref_key:"chartRef",ref:r,class:"charts-canvas-container"},null,512)],512))}},Nt={install(t){t.component("DvCharts",_a)}},ss={class:"dv-capsule-chart"},cs={class:"label-column"},fs={class:"capsule-container"},us={key:0,class:"capsule-item-value"},ds={class:"unit-label"},hs={key:0,class:"unit-text"},Pa={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(t){e.useCssVars(C=>({"1b634ae3":e.unref(a),"63348aba":e.unref(r)}));const n=t,o=e.reactive({defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1,textColor:"#fff",fontSize:12,labelNum:6},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]});e.watch(()=>n.config,()=>{l()},{deep:!0});const r=e.computed(()=>`${n.config.fontSize?n.config.fontSize:o.defaultConfig.fontSize}px`),a=e.computed(()=>n.config.textColor?n.config.textColor:o.defaultConfig.textColor);function l(){i(),k()}function i(){o.mergedConfig=me(ye(o.defaultConfig),n.config||{})}function k(){const{data:C,labelNum:j}=o.mergedConfig;if(!C.length||C.length===0){o.labelData=[],o.capsuleLength=[];return}const W=C.map(({value:d})=>d),U=Math.max(...W);o.capsuleValue=W,o.capsuleLength=W.map(d=>U?d/U:0);const M=U/5,N=Array.from(new Set(Array.from({length:j}).fill(0).map((d,G)=>Math.ceil(G*M))));o.labelData=N,o.labelDataLength=Array.from(N).map(d=>U?d/U:0)}return e.onMounted(()=>{l()}),(C,j)=>(e.openBlock(),e.createElementBlock("div",ss,[e.unref(o).mergedConfig?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",cs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).mergedConfig.data,W=>(e.openBlock(),e.createElementBlock("div",{key:W.name},e.toDisplayString(W.name),1))),128)),j[0]||(j[0]=e.createElementVNode("div",null," ",-1))]),e.createElementVNode("div",fs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).capsuleLength,(W,U)=>(e.openBlock(),e.createElementBlock("div",{key:U,class:"capsule-item"},[e.createElementVNode("div",{class:"capsule-item-column",style:e.normalizeStyle(`width: ${W*100}%; background-color: ${e.unref(o).mergedConfig.colors[U%e.unref(o).mergedConfig.colors.length]};`)},[e.unref(o).mergedConfig.showValue?(e.openBlock(),e.createElementBlock("div",us,e.toDisplayString(e.unref(o).capsuleValue[U]),1)):e.createCommentVNode("",!0)],4)]))),128)),e.createElementVNode("div",ds,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).labelData,(W,U)=>(e.openBlock(),e.createElementBlock("div",{key:W+U},e.toDisplayString(W),1))),128))])]),e.unref(o).mergedConfig.unit?(e.openBlock(),e.createElementBlock("div",hs,e.toDisplayString(e.unref(o).mergedConfig.unit),1)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))}},Lt={install(t){t.component("DvCapsuleChart",Pa)}},ps={class:"dv-digital-flop"},qr={__name:"index",props:{config:{type:Object,default:()=>{}}},setup(t){const n=t,o=e.ref(null),r=e.reactive({renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null});e.watch(()=>n.config,()=>{W()},{deep:!0}),e.onMounted(()=>{a()});function a(){l(),i(),k()}function l(){r.renderer=new Rn(o.value)}function i(){r.mergedConfig=me(ye(r.defaultConfig),n.config||{})}function k(){const M=C(),N=j();r.graph=r.renderer.add({name:"numberText",animationCurve:r.mergedConfig.animationCurve,animationFrame:r.mergedConfig.animationFrame,shape:M,style:N})}function C(){const{number:M,content:N,toFixed:d,textAlign:G,rowGap:F,formatter:z}=r.mergedConfig,[B,y]=r.renderer.area,v=[B/2,y/2];return G==="left"&&(v[0]=0),G==="right"&&(v[0]=B),{number:M,content:N,toFixed:d,position:v,rowGap:F,formatter:z}}function j(){const{style:M,textAlign:N}=r.mergedConfig;return me(M,{textAlign:N,textBaseline:"middle"})}function W(){if(r.graph.animationEnd(),i(),!r.graph)return;const{animationCurve:M,animationFrame:N}=r.mergedConfig,d=C(),G=j();U(r.graph,d),r.graph.animationCurve=M,r.graph.animationFrame=N,r.graph.animation("style",G,!0),r.graph.animation("shape",d)}function U(M,N){const d=M.shape.number.length,G=N.number.length;d!==G&&(M.shape.number=N.number)}return(M,N)=>(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("canvas",{ref_key:"digitalFlop",ref:o},null,512)]))}},gs={class:"dv-active-ring-chart"},ms={class:"active-ring-info"},ys={key:0},wa={__name:"index",props:{config:{type:Object,default:()=>({})},isDigitalFlop:{type:Boolean,default:!0}},setup(t){e.useCssVars(z=>({"18d51787":e.unref(j)}));const n=t,o=e.ref(null),r=e.reactive({defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],textColor:"#fff",digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,numToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}),a=e.computed(()=>{if(!r.mergedConfig)return 0;const{data:z,showOriginValue:B}=r.mergedConfig,y=z.map(({value:u})=>u);let v;if(B)v=y[r.activeIndex];else{const u=y.reduce((w,x)=>w+x,0);v=Number.parseFloat(y[r.activeIndex]/u*100)||0}return v}),l=e.computed(()=>{if(!r.mergedConfig)return a.value.toFixed(r.defaultConfig.numToFixed);const{numToFixed:z,showOriginValue:B}=r.mergedConfig;return`${B?a.value.toFixed(z):`${a.value.toFixed(z)}%`}`}),i=e.computed(()=>{if(!r.mergedConfig)return{};const{digitalFlopStyle:z,digitalFlopToFixed:B,showOriginValue:y,digitalFlopUnit:v}=r.mergedConfig;return{content:y?`{nt}${v}`:`{nt}${v||"%"}`,number:[a.value],style:z,toFixed:B}}),k=e.computed(()=>r.mergedConfig?r.mergedConfig.data[r.activeIndex].name:""),C=e.computed(()=>r.mergedConfig?`font-size: ${r.mergedConfig.digitalFlopStyle.fontSize}px;`:""),j=e.computed(()=>n.config.textColor?n.config.textColor:r.defaultConfig.textColor);e.watch(()=>n.config,()=>{clearTimeout(r.animationHandler),r.activeIndex=0,M(),N()},{deep:!0}),e.onMounted(()=>{W()}),e.onUnmounted(()=>{clearTimeout(r.animationHandler)});function W(){U(),M(),N()}function U(){r.chart=new ka(o.value)}function M(){r.mergedConfig=me(ye(r.defaultConfig),n.config||{})}function N(){const z=d();r.chart.setOption(z,!0),F()}function d(){const z=G();return r.mergedConfig.data.forEach(B=>{B.radius=z}),{series:[{type:"pie",...r.mergedConfig,outsideLabel:{show:!1}}],color:r.mergedConfig.color}}function G(z=!1){const{radius:B,activeRadius:y,lineWidth:v}=r.mergedConfig,u=Math.min(...r.chart.render.area)/2,O=v/2;let w=z?y:B;typeof w!="number"&&(w=Number.parseInt(w)/100*u);const x=w-O,$=w+O;return[x,$]}function F(){const z=G(),B=G(!0),y=d(),{data:v}=y.series[0];v.forEach((O,w)=>{w===r.activeIndex?O.radius=B:O.radius=z}),r.chart.setOption(y,!0);const{activeTimeGap:u}=y.series[0];r.animationHandler=setTimeout(()=>{r.activeIndex+=1,r.activeIndex>=v.length&&(r.activeIndex=0),F()},u)}return(z,B)=>(e.openBlock(),e.createElementBlock("div",gs,[e.createElementVNode("div",{ref_key:"activeRingChart",ref:o,class:"active-ring-chart-container"},null,512),e.createElementVNode("div",ms,[t.isDigitalFlop?(e.openBlock(),e.createElementBlock("div",ys,[e.createVNode(qr,{config:e.unref(i)},null,8,["config"])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"active-ring-name",style:e.normalizeStyle(e.unref(C))},e.toDisplayString(e.unref(l)),5)),e.createElementVNode("div",{class:"active-ring-name",style:e.normalizeStyle(e.unref(C))},e.toDisplayString(e.unref(k)),5)])]))}},St={install(t){t.component("DvActiveRingChart",wa)}},Bt={install(t){t.component("DvDigitalFlop",qr)}},Aa=e.defineComponent({__name:"index",setup(t){const n=e.ref(null),o=e.reactive({allWidth:0,scale:0,datavRoot:"",ready:!1});function r(){const{width:k,height:C}=screen;o.allWidth=k,n.value&&(n.value.style.width=`${k}px`,n.value.style.height=`${C}px`)}function a(){const k=document.body.clientWidth;n.value&&(n.value.style.transform=`scale(${k/o.allWidth})`)}function l(){a()}function i(){r(),a(),o.ready=!0}return ge(n,l,i),(k,C)=>(e.openBlock(),e.createElementBlock("div",{id:"dv-full-screen-container",ref_key:"fullScreenContainer",ref:n},[e.unref(o).ready?e.renderSlot(k.$slots,"default",{key:0}):e.createCommentVNode("",!0)],512))}}),Et={install(t){t.component("DvFullScreenContainer",Aa)}},vs=["width","height"],bs=["fill","x","y","width","height"],Cs=["values","begin"],xs=["fill","x","y","width","height"],$s=["values"],ks=["values"],_s=["values"],Ps=["values"],ws=["fill","x","y","height"],As=["values"],Na=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref(null),r=e.reactive([200,50]),a=e.ref(4),l=e.ref(20),i=e.ref(2.5),k=e.ref(i.value/2),C=e.reactive(["#fff","#0de7c2"]),j=e.reactive({mergedColor:[],rects:[],points:[],svgScale:[1,1]});function W(){z()}function U(){z()}const{width:M,height:N}=ge(o,W,U);function d(){const[y,v]=r,u=y/(l.value+1),O=v/(a.value+1),w=Array.from({length:a.value}).fill(0).map((x,$)=>Array.from({length:l.value}).fill(0).map((f,E)=>[u*(E+1),O*($+1)]));j.points=w.reduce((x,$)=>[...x,...$],[])}function G(){const y=j.points[l.value*2-1],v=j.points[l.value*2-3];j.rects=[y,v]}function F(){const[y,v]=r;j.svgScale=[M.value/y,N.value/v]}function z(){d(),G(),F()}function B(){j.mergedColor=me(ye(C),n.color||[])}return e.watch(()=>n.color,()=>{B()},{deep:!0}),e.onMounted(()=>{B()}),(y,v)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dvDecoration1",ref:o,class:"dv-decoration-1"},[(e.openBlock(),e.createElementBlock("svg",{width:`${e.unref(r)[0]}px`,height:`${e.unref(r)[1]}px`,style:e.normalizeStyle(`transform:scale(${e.unref(j).svgScale[0]}, ${e.unref(j).svgScale[1]});`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(j).points,u=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[Math.random()>.6?(e.openBlock(),e.createElementBlock("rect",{key:0,fill:e.unref(j).mergedColor[0],x:u[0]-e.unref(k),y:u[1]-e.unref(k),width:e.unref(i),height:e.unref(i)},[Math.random()>.6?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"fill",values:`${e.unref(j).mergedColor[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,Cs)):e.createCommentVNode("",!0)],8,bs)):e.createCommentVNode("",!0)],64))),128)),e.unref(j).rects[0]?(e.openBlock(),e.createElementBlock("rect",{key:0,fill:e.unref(j).mergedColor[1],x:e.unref(j).rects[0][0]-e.unref(i),y:e.unref(j).rects[0][1]-e.unref(i),width:e.unref(i)*2,height:e.unref(i)*2},[e.createElementVNode("animate",{attributeName:"width",values:`0;${e.unref(i)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,$s),e.createElementVNode("animate",{attributeName:"height",values:`0;${e.unref(i)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,ks),e.createElementVNode("animate",{attributeName:"x",values:`${e.unref(j).rects[0][0]};${e.unref(j).rects[0][0]-e.unref(i)}`,dur:"2s",repeatCount:"indefinite"},null,8,_s),e.createElementVNode("animate",{attributeName:"y",values:`${e.unref(j).rects[0][1]};${e.unref(j).rects[0][1]-e.unref(i)}`,dur:"2s",repeatCount:"indefinite"},null,8,Ps)],8,xs)):e.createCommentVNode("",!0),e.unref(j).rects[1]?(e.openBlock(),e.createElementBlock("rect",{key:1,fill:e.unref(j).mergedColor[1],x:e.unref(j).rects[1][0]-40,y:e.unref(j).rects[1][1]-e.unref(i),width:40,height:e.unref(i)*2},[v[0]||(v[0]=e.createElementVNode("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null,-1)),e.createElementVNode("animate",{attributeName:"x",values:`${e.unref(j).rects[1][0]};${e.unref(j).rects[1][0]-40};${e.unref(j).rects[1][0]}`,dur:"2s",repeatCount:"indefinite"},null,8,As)],8,ws)):e.createCommentVNode("",!0)],12,vs))],512))}}),Vt={install(t){t.component("DvDecoration1",Na)}},Ns=["width","height"],Ls=["x","y","width","height","fill"],Ss=["attributeName","to","dur"],Bs=["x","y","fill"],Es=["attributeName","to","dur"],La=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},setup(t){const n=t,o=e.ref(null),r=e.reactive({x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]});function a(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}function l(){j()}function i(){j()}const{width:k,height:C}=ge(o,l,i);function j(){n.reverse?(r.w=1,r.h=C.value,r.x=k.value/2,r.y=0):(r.w=k.value,r.h=1,r.x=0,r.y=C.value/2)}return e.watch(()=>n.color,()=>{a()},{deep:!0}),e.watch(()=>n.reverse,()=>{j()}),e.onMounted(()=>{a()}),(W,U)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration2",ref:o,class:"dv-decoration-2"},[(e.openBlock(),e.createElementBlock("svg",{width:`${e.unref(k)}px`,height:`${e.unref(C)}px`},[e.createElementVNode("rect",{x:e.unref(r).x,y:e.unref(r).y,width:e.unref(r).w,height:e.unref(r).h,fill:e.unref(r).mergedColor[0]},[e.createElementVNode("animate",{attributeName:t.reverse?"height":"width",from:"0",to:t.reverse?e.unref(C):e.unref(k),dur:`${t.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,Ss)],8,Ls),e.createElementVNode("rect",{x:e.unref(r).x,y:e.unref(r).y,width:"1",height:"1",fill:e.unref(r).mergedColor[1]},[e.createElementVNode("animate",{attributeName:t.reverse?"y":"x",from:"0",to:t.reverse?e.unref(C):e.unref(k),dur:`${t.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,Es)],8,Bs)],8,Ns))],512))}}),Ot={install(t){t.component("DvDecoration2",La)}},Vs=["width","height"],Os=["fill","x","y"],Ms=["values","dur","begin"],Mt=7,Sa=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref(null),r=e.reactive({svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:Mt,halfPointSideLength:Mt/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]});function a(){const[M,N]=r.svgWH,d=M/(r.rowPoints+1),G=N/(r.rowNum+1),F=Array.from({length:r.rowNum}).fill(0).map((z,B)=>Array.from({length:r.rowPoints}).fill(0).map((y,v)=>[d*(v+1),G*(B+1)]));r.points=F.reduce((z,B)=>[...z,...B],[])}function l(){i()}function i(){a(),W()}function k(){i()}const{width:C,height:j}=ge(o,k,l);function W(){const[M,N]=r.svgWH;r.svgScale=[C.value/M,j.value/N]}function U(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}return e.watch(()=>n.color,()=>{U()},{deep:!0}),e.onMounted(()=>{U()}),(M,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration3",ref:o,class:"dv-decoration-3"},[(e.openBlock(),e.createElementBlock("svg",{width:`${e.unref(r).svgWH[0]}px`,height:`${e.unref(r).svgWH[1]}px`,style:e.normalizeStyle(`transform:scale(${e.unref(r).svgScale[0]},${e.unref(r).svgScale[1]});`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).points,d=>(e.openBlock(),e.createElementBlock("rect",{key:d,fill:e.unref(r).mergedColor[0],x:d[0]-e.unref(r).halfPointSideLength,y:d[1]-e.unref(r).halfPointSideLength,width:Mt,height:Mt},[Math.random()>.6?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"fill",values:`${e.unref(r).mergedColor.join(";")}`,dur:`${Math.random()+1}s`,begin:Math.random()*2,repeatCount:"indefinite"},null,8,Ms)):e.createCommentVNode("",!0)],8,Os))),128))],12,Vs))],512))}}),Rt={install(t){t.component("DvDecoration3",Sa)}},Rs=["width","height"],Gs=["stroke","points"],Ds=["stroke","points"],Ba=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},setup(t){const n=t,o=e.ref(null),r=e.reactive({defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]});function a(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}const{width:l,height:i}=ge(o);return e.watch(()=>n.color,()=>{a()},{deep:!0}),e.onMounted(()=>{a()}),(k,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration3",ref:o,class:"dv-decoration-4"},[e.createElementVNode("div",{class:e.normalizeClass(`container ${t.reverse?"reverse":"normal"}`),style:e.normalizeStyle(t.reverse?`width:${e.unref(l)}px;height:5px;animation-duration:${t.dur}s`:`width:5px;height:${e.unref(i)}px;animation-duration:${t.dur}s`)},[(e.openBlock(),e.createElementBlock("svg",{width:t.reverse?e.unref(l):5,height:t.reverse?5:e.unref(i)},[e.createElementVNode("polyline",{stroke:e.unref(r).mergedColor[0],points:t.reverse?`0, 2.5 ${e.unref(l)}, 2.5`:`2.5, 0 2.5, ${e.unref(i)}`},null,8,Gs),e.createElementVNode("polyline",{class:"bold-line",stroke:e.unref(r).mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:t.reverse?`0, 2.5 ${e.unref(l)}, 2.5`:`2.5, 0 2.5, ${e.unref(i)}`},null,8,Ds)],8,Rs))],6)],512))}}),Gt={install(t){t.component("DvDecoration4",Ba)}},Fs=["width","height"],Ts=["stroke","points"],Ws=["from","to","dur"],js=["stroke","points"],zs=["from","to","dur"],Ea=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},setup(t){const n=t,o=e.ref(null),r=e.reactive({line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});function a(){C()}function l(){C()}const{width:i,height:k}=ge(o,l,a);function C(){const W=[{x:0,y:k.value*.2},{x:i.value*.18,y:k.value*.2},{x:i.value*.2,y:k.value*.4},{x:i.value*.25,y:k.value*.4},{x:i.value*.27,y:k.value*.6},{x:i.value*.72,y:k.value*.6},{x:i.value*.75,y:k.value*.4},{x:i.value*.8,y:k.value*.4},{x:i.value*.82,y:k.value*.2},{x:i.value,y:k.value*.2}],U=[{x:i.value*.3,y:k.value*.8},{x:i.value*.7,y:k.value*.8}],M=Jr(W),N=Jr(U);r.line1Points=Zr(W),r.line2Points=Zr(U),r.line1Length=M,r.line2Length=N}function j(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}return e.watch(()=>n.color,()=>{j()},{deep:!0}),e.onMounted(()=>{j()}),(W,U)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration5",ref:o,class:"dv-decoration-5"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(i),height:e.unref(k)},[e.createElementVNode("polyline",{fill:"transparent",stroke:e.unref(r).mergedColor[0],"stroke-width":"3",points:e.unref(r).line1Points},[e.createElementVNode("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${e.unref(r).line1Length/2}, 0, ${e.unref(r).line1Length/2}`,to:`0, 0, ${e.unref(r).line1Length}, 0`,dur:`${t.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,Ws)],8,Ts),e.createElementVNode("polyline",{fill:"transparent",stroke:e.unref(r).mergedColor[1],"stroke-width":"2",points:e.unref(r).line2Points},[e.createElementVNode("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${e.unref(r).line2Length/2}, 0, ${e.unref(r).line2Length/2}`,to:`0, 0, ${e.unref(r).line2Length}, 0`,dur:`${t.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,zs)],8,js)],8,Fs))],512))}}),Dt={install(t){t.component("DvDecoration5",Ea)}},qs=["width","height"],Is=["fill","x","y","height"],Hs=["values","dur"],Us=["values","dur"],Ir=7,Va=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref(null),r=e.reactive({svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:Ir,halfRectWidth:Ir/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]});e.watch(()=>n.color,()=>{U()},{deep:!0}),e.onMounted(()=>{U()});const{width:a,height:l}=ge(o,W,i);function i(){k()}function k(){C(),j()}function C(){const[M,N]=r.svgWH,d=M/(r.rowPoints+1),G=N/(r.rowNum+1),F=Array.from({length:r.rowNum}).fill(0).map((B,y)=>Array.from({length:r.rowPoints}).fill(0).map((v,u)=>[d*(u+1),G*(y+1)]));r.points=F.reduce((B,y)=>[...B,...y],[]);const z=r.heights=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map(()=>Math.random()>.8?We(.7*N,N):We(.2*N,.5*N));r.minHeights=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map((B,y)=>z[y]*Math.random()),r.randoms=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map(()=>Math.random()+1.5)}function j(){const[M,N]=r.svgWH;r.svgScale=[a.value/M,l.value/N]}function W(){k()}function U(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}return(M,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration6",ref:o,class:"dv-decoration-6"},[(e.openBlock(),e.createElementBlock("svg",{width:`${e.unref(r).svgWH[0]}px`,height:`${e.unref(r).svgWH[1]}px`,style:e.normalizeStyle(`transform:scale(${e.unref(r).svgScale[0]},${e.unref(r).svgScale[1]});`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).points,(d,G)=>(e.openBlock(),e.createElementBlock("rect",{key:G,fill:e.unref(r).mergedColor[Math.random()>.5?0:1],x:d[0]-e.unref(r).halfRectWidth,y:d[1]-e.unref(r).heights[G]/2,width:Ir,height:e.unref(r).heights[G]},[e.createElementVNode("animate",{attributeName:"y",values:`${d[1]-e.unref(r).minHeights[G]/2};${d[1]-e.unref(r).heights[G]/2};${d[1]-e.unref(r).minHeights[G]/2}`,dur:`${e.unref(r).randoms[G]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,Hs),e.createElementVNode("animate",{attributeName:"height",values:`${e.unref(r).minHeights[G]};${e.unref(r).heights[G]};${e.unref(r).minHeights[G]}`,dur:`${e.unref(r).randoms[G]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,Us)],8,Is))),128))],12,qs))],512))}}),Ft={install(t){t.component("DvDecoration6",Va)}},Xs={class:"dv-decoration-7"},Qs={width:"21px",height:"20px"},Ys=["stroke"],Ks=["stroke"],Js={width:"21px",height:"20px"},Zs=["stroke"],ec=["stroke"],Oa=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.reactive({defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]});e.watch(()=>n.color,()=>{r()},{deep:!0}),e.onMounted(()=>{r()});function r(){o.mergedColor=me(ye(o.defaultColor),n.color||[])}return(a,l)=>(e.openBlock(),e.createElementBlock("div",Xs,[(e.openBlock(),e.createElementBlock("svg",Qs,[e.createElementVNode("polyline",{"stroke-width":"4",fill:"transparent",stroke:e.unref(o).mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,Ys),e.createElementVNode("polyline",{"stroke-width":"2",fill:"transparent",stroke:e.unref(o).mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,Ks)])),e.renderSlot(a.$slots,"default"),(e.openBlock(),e.createElementBlock("svg",Js,[e.createElementVNode("polyline",{"stroke-width":"4",fill:"transparent",stroke:e.unref(o).mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,Zs),e.createElementVNode("polyline",{"stroke-width":"2",fill:"transparent",stroke:e.unref(o).mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,ec)]))]))}}),Tt={install(t){t.component("DvDecoration7",Oa)}},tc=["width","height"],rc=["stroke","points"],nc=["stroke","points"],ac=["stroke","points"],Ma=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(null),r=e.reactive({defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});e.watch(()=>n.color,()=>{k()},{deep:!0}),e.onMounted(()=>{k()});const{width:a,height:l}=ge(o);function i(C){return n.reverse?a.value-C:C}function k(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}return(C,j)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration8",ref:o,class:"dv-decoration-8"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(a),height:e.unref(l)},[e.createElementVNode("polyline",{stroke:e.unref(r).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${i(0)}, 0 ${i(30)}, ${e.unref(l)/2}`},null,8,rc),e.createElementVNode("polyline",{stroke:e.unref(r).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${i(20)}, 0 ${i(50)}, ${e.unref(l)/2} ${i(e.unref(a))}, ${e.unref(l)/2}`},null,8,nc),e.createElementVNode("polyline",{stroke:e.unref(r).mergedColor[1],fill:"transparent","stroke-width":"3",points:`${i(0)}, ${e.unref(l)-3}, ${i(200)}, ${e.unref(l)-3}`},null,8,ac)],8,tc))],512))}}),Wt={install(t){t.component("DvDecoration8",Ma)}},oc=["width","height"],ic=["id"],lc=["stroke"],sc=["dur"],cc=["stroke"],fc=["dur"],uc=["stroke"],dc=["xlink:href","stroke","fill"],hc=["dur","begin"],pc=["stroke"],Ra={__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},setup(t){const n=t,o=Le(),r=e.ref(null),a=e.reactive({polygonId:`decoration-9-polygon-${o}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]});e.watch(()=>n.color,()=>{W()},{deep:!0}),e.onMounted(()=>{W()});const{width:l,height:i}=ge(r,j,k);function k(){C()}function C(){const[U,M]=a.svgWH;a.svgScale=[l.value/U,i.value/M]}function j(){C()}function W(){a.mergedColor=me(ye(a.defaultColor),n.color||[])}return(U,M)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration9",ref:r,class:"dv-decoration-9"},[(e.openBlock(),e.createElementBlock("svg",{width:`${e.unref(a).svgWH[0]}px`,height:`${e.unref(a).svgWH[1]}px`,style:e.normalizeStyle(`transform:scale(${e.unref(a).svgScale[0]},${e.unref(a).svgScale[1]});`)},[e.createElementVNode("defs",null,[e.createElementVNode("polygon",{id:e.unref(a).polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,ic)]),e.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.unref(a).mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[e.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${t.dur}s`,repeatCount:"indefinite"},null,8,sc)],8,lc),e.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.unref(a).mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[e.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${t.dur}s`,repeatCount:"indefinite"},null,8,fc)],8,cc),e.createElementVNode("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:e.unref(Ce)(e.unref(a).mergedColor[1]||e.unref(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,uc),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(new Array(20).fill(0),(N,d)=>(e.openBlock(),e.createElementBlock("use",{key:d,"xlink:href":`#${e.unref(a).polygonId}`,stroke:e.unref(a).mergedColor[1],fill:Math.random()>.4?"transparent":e.unref(a).mergedColor[0]},[e.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${t.dur}s`,begin:`${d*t.dur/20}s`,repeatCount:"indefinite"},null,8,hc)],8,dc))),128)),e.createElementVNode("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:e.unref(Ce)(e.unref(a).mergedColor[1]||e.unref(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,pc)],12,oc)),e.renderSlot(U.$slots,"default")],512))}},jt={install(t){t.component("DvDecoration9",Ra)}},gc=["width","height"],mc=["stroke","points"],yc=["stroke","points","stroke-dasharray"],vc=["id","values","begin"],bc=["values","begin"],Cc=["stroke","points","stroke-dasharray"],xc=["id","values","begin"],$c=["values","begin"],kc=["stroke","points","stroke-dasharray"],_c=["id","values","begin"],Pc=["values","begin"],wc=["cy","fill"],Ac=["id","values","begin"],Nc=["cx","cy","fill"],Lc=["id","values","begin"],Sc=["values","begin"],Bc=["cx","cy","fill"],Ec=["id","values","begin"],Vc=["values","begin"],Oc=["cx","cy","fill"],Mc=["id","values","begin"],Rc=["values","begin"],Ga=e.defineComponent({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=Le(),r=e.ref(null),a=e.reactive({animationId1:`d10ani1${o}`,animationId2:`d10ani2${o}`,animationId3:`d10ani3${o}`,animationId4:`d10ani4${o}`,animationId5:`d10ani5${o}`,animationId6:`d10ani6${o}`,animationId7:`d10ani7${o}`,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}),{width:l,height:i}=ge(r);e.watch(()=>n.color,()=>{k()},{deep:!0}),e.onMounted(()=>{k()});function k(){a.mergedColor=me(ye(a.defaultColor),n.color||[])}return(C,j)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration10",ref:r,class:"dv-decoration-10"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(l),height:e.unref(i)},[e.createElementVNode("polyline",{stroke:e.unref(a).mergedColor[1],"stroke-width":"2",points:`0, ${e.unref(i)/2} ${e.unref(l)}, ${e.unref(i)/2}`},null,8,mc),e.createElementVNode("polyline",{stroke:e.unref(a).mergedColor[0],"stroke-width":"2",points:`5, ${e.unref(i)/2} ${e.unref(l)*.2-3}, ${e.unref(i)/2}`,"stroke-dasharray":`0, ${e.unref(l)*.2}`,fill:"freeze"},[e.createElementVNode("animate",{id:e.unref(a).animationId2,attributeName:"stroke-dasharray",values:`0, ${e.unref(l)*.2};${e.unref(l)*.2}, 0;`,dur:"3s",begin:`${e.unref(a).animationId1}.end`,fill:"freeze"},null,8,vc),e.createElementVNode("animate",{attributeName:"stroke-dasharray",values:`${e.unref(l)*.2}, 0;0, ${e.unref(l)*.2}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,bc)],8,yc),e.createElementVNode("polyline",{stroke:e.unref(a).mergedColor[0],"stroke-width":"2",points:`${e.unref(l)*.2+3}, ${e.unref(i)/2} ${e.unref(l)*.8-3}, ${e.unref(i)/2}`,"stroke-dasharray":`0, ${e.unref(l)*.6}`},[e.createElementVNode("animate",{id:e.unref(a).animationId4,attributeName:"stroke-dasharray",values:`0, ${e.unref(l)*.6};${e.unref(l)*.6}, 0`,dur:"3s",begin:`${e.unref(a).animationId3}.end + 1s`,fill:"freeze"},null,8,xc),e.createElementVNode("animate",{attributeName:"stroke-dasharray",values:`${e.unref(l)*.6}, 0;0, ${e.unref(l)*.6}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,$c)],8,Cc),e.createElementVNode("polyline",{stroke:e.unref(a).mergedColor[0],"stroke-width":"2",points:`${e.unref(l)*.8+3}, ${e.unref(i)/2} ${e.unref(l)-5}, ${e.unref(i)/2}`,"stroke-dasharray":`0, ${e.unref(l)*.2}`},[e.createElementVNode("animate",{id:e.unref(a).animationId6,attributeName:"stroke-dasharray",values:`0, ${e.unref(l)*.2};${e.unref(l)*.2}, 0`,dur:"3s",begin:`${e.unref(a).animationId5}.end + 1s`,fill:"freeze"},null,8,_c),e.createElementVNode("animate",{attributeName:"stroke-dasharray",values:`${e.unref(l)*.2}, 0;0, ${e.unref(l)*.3}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,Pc)],8,kc),e.createElementVNode("circle",{cx:"2",cy:e.unref(i)/2,r:"2",fill:e.unref(a).mergedColor[1]},[e.createElementVNode("animate",{id:e.unref(a).animationId1,attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[0]}`,begin:`0s;${e.unref(a).animationId7}.end`,dur:"0.3s",fill:"freeze"},null,8,Ac)],8,wc),e.createElementVNode("circle",{cx:e.unref(l)*.2,cy:e.unref(i)/2,r:"2",fill:e.unref(a).mergedColor[1]},[e.createElementVNode("animate",{id:e.unref(a).animationId3,attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[0]}`,begin:`${e.unref(a).animationId2}.end`,dur:"0.3s",fill:"freeze"},null,8,Lc),e.createElementVNode("animate",{attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[1]}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,Sc)],8,Nc),e.createElementVNode("circle",{cx:e.unref(l)*.8,cy:e.unref(i)/2,r:"2",fill:e.unref(a).mergedColor[1]},[e.createElementVNode("animate",{id:e.unref(a).animationId5,attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[0]}`,begin:`${e.unref(a).animationId4}.end`,dur:"0.3s",fill:"freeze"},null,8,Ec),e.createElementVNode("animate",{attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[1]}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,Vc)],8,Bc),e.createElementVNode("circle",{cx:e.unref(l)-2,cy:e.unref(i)/2,r:"2",fill:e.unref(a).mergedColor[1]},[e.createElementVNode("animate",{id:e.unref(a).animationId7,attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[0]}`,begin:`${e.unref(a).animationId6}.end`,dur:"0.3s",fill:"freeze"},null,8,Mc),e.createElementVNode("animate",{attributeName:"fill",values:`${e.unref(a).mergedColor[1]};${e.unref(a).mergedColor[1]}`,dur:"0.01s",begin:`${e.unref(a).animationId7}.end`,fill:"freeze"},null,8,Rc)],8,Oc)],8,gc))],512))}}),zt={install(t){t.component("DvDecoration10",Ga)}},Gc=["width","height"],Dc=["fill","stroke"],Fc=["fill","stroke","points"],Tc=["fill","stroke","points"],Wc=["fill","stroke","points"],jc=["fill","stroke","points"],zc=["stroke","points"],qc=["stroke","points"],Ic={class:"decoration-content"},Da={__name:"index",props:{color:{type:Array,default:()=>[]}},setup(t){const n=t,o=e.ref(null),r=e.reactive({defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}),{width:a,height:l}=ge(o);e.watch(()=>n.color,()=>{i()},{deep:!0}),e.onMounted(()=>{i()});function i(){r.mergedColor=me(ye(r.defaultColor),n.color||[])}return(k,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration11",ref:o,class:"dv-decoration-11"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(a),height:e.unref(l)},[e.createElementVNode("polygon",{fill:e.unref(Ce)(e.unref(r).mergedColor[1]||e.unref(r).defaultColor[1],10),stroke:e.unref(r).mergedColor[1],points:"20 10, 25 4, 55 4 60 10"},null,8,Dc),e.createElementVNode("polygon",{fill:e.unref(Ce)(e.unref(r).mergedColor[1]||e.unref(r).defaultColor[1],10),stroke:e.unref(r).mergedColor[1],points:`20 ${e.unref(l)-10}, 25 ${e.unref(l)-4}, 55 ${e.unref(l)-4} 60 ${e.unref(l)-10}`},null,8,Fc),e.createElementVNode("polygon",{fill:e.unref(Ce)(e.unref(r).mergedColor[1]||e.unref(r).defaultColor[1],10),stroke:e.unref(r).mergedColor[1],points:`${e.unref(a)-20} 10, ${e.unref(a)-25} 4, ${e.unref(a)-55} 4 ${e.unref(a)-60} 10`},null,8,Tc),e.createElementVNode("polygon",{fill:e.unref(Ce)(e.unref(r).mergedColor[1]||e.unref(r).defaultColor[1],10),stroke:e.unref(r).mergedColor[1],points:`${e.unref(a)-20} ${e.unref(l)-10}, ${e.unref(a)-25} ${e.unref(l)-4}, ${e.unref(a)-55} ${e.unref(l)-4} ${e.unref(a)-60} ${e.unref(l)-10}`},null,8,Wc),e.createElementVNode("polygon",{fill:e.unref(Ce)(e.unref(r).mergedColor[0]||e.unref(r).defaultColor[0],20),stroke:e.unref(r).mergedColor[0],points:`
  27. 20 10, 5 ${e.unref(l)/2} 20 ${e.unref(l)-10}
  28. ${e.unref(a)-20} ${e.unref(l)-10} ${e.unref(a)-5} ${e.unref(l)/2} ${e.unref(a)-20} 10
  29. `},null,8,jc),e.createElementVNode("polyline",{fill:"transparent",stroke:e.unref(Ce)(e.unref(r).mergedColor[0]||e.unref(r).defaultColor[0],70),points:`25 18, 15 ${e.unref(l)/2} 25 ${e.unref(l)-18}`},null,8,zc),e.createElementVNode("polyline",{fill:"transparent",stroke:e.unref(Ce)(e.unref(r).mergedColor[0]||e.unref(r).defaultColor[0],70),points:`${e.unref(a)-25} 18, ${e.unref(a)-15} ${e.unref(l)/2} ${e.unref(a)-25} ${e.unref(l)-18}`},null,8,qc)],8,Gc)),e.createElementVNode("div",Ic,[e.renderSlot(k.$slots,"default")])],512))}},qt={install(t){t.component("DvDecoration11",Da)}},Hc=["width","height"],Uc=["id"],Xc=["stroke","stroke-width","d"],Qc=["id"],Yc=["stop-color"],Kc=["r","cx","cy","stroke"],Jc=["cx","cy","fill"],Zc=["values","dur"],ef=["dur"],tf=["cx","cy","fill"],rf={key:0},nf=["points","stroke"],af=["d","stroke"],of=["xlink:href"],lf=["values","dur"],sf={class:"decoration-content"},Fa={__name:"index",props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},setup(t){const n=t,o=Le(),r=e.ref(null),{width:a,height:l}=ge(r,()=>{},F),i=e.reactive({gId:`decoration-12-g-${o}`,gradientId:`decoration-12-gradient-${o}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}),k=e.computed(()=>a.value/2),C=e.computed(()=>l.value/2);e.watch(()=>n.color,()=>{W(),M()},{deep:!0});function j(){W(),U(),M(),N(),d(),G()}function W(){i.mergedColor=me(ye(i.defaultColor),n.color||[])}function U(){const z=-Math.PI/2,B=i.sectorAngle/i.segment,y=a.value/4;let v=De(k.value,C.value,y,z);i.pathD=Array.from({length:i.segment}).fill("").map((u,O)=>{const w=De(k.value,C.value,y,z-(O+1)*B).map($=>Number.parseFloat($.toFixed(5))),x=`M${v.join(",")} A${y}, ${y} 0 0 0 ${w.join(",")}`;return v=w,x})}function M(){const z=100/(i.segment-1);i.pathColor=Array.from({length:i.segment}).fill(i.mergedColor[0]).map((B,y)=>Ce(i.mergedColor[0],100-y*z))}function N(){const z=(a.value/2-i.ringWidth/2)/i.ringNum;i.circleR=Array.from({length:i.ringNum}).fill(0).map((B,y)=>z*(y+1))}function d(){const z=Math.PI/6,B=a.value/2;i.splitLinePoints=Array.from({length:6}).fill("").map((y,v)=>{const u=z*(v+1),O=u+Math.PI,w=De(k.value,C.value,B,u),x=De(k.value,C.value,B,O);return`${w.join(",")} ${x.join(",")}`})}function G(){const z=Math.PI/6,B=a.value/2-1;i.arcD=Array.from({length:4}).fill("").map((y,v)=>{const u=z*(3*v+1),O=u+z,w=De(k.value,C.value,B,u),x=De(k.value,C.value,B,O);return`M${w.join(",")} A${k.value}, ${C.value} 0 0 1 ${x.join(",")}`})}function F(){j()}return(z,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"decoration12",ref:r,class:"dv-decoration-12"},[(e.openBlock(),e.createElementBlock("svg",{width:e.unref(a),height:e.unref(l)},[e.createElementVNode("defs",null,[e.createElementVNode("g",{id:e.unref(i).gId},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).pathD,(y,v)=>(e.openBlock(),e.createElementBlock("path",{key:y,stroke:e.unref(i).pathColor[v],"stroke-width":e.unref(a)/2,fill:"transparent",d:y},null,8,Xc))),128))],8,Uc),e.createElementVNode("radialGradient",{id:e.unref(i).gradientId,cx:"50%",cy:"50%",r:"50%"},[B[0]||(B[0]=e.createElementVNode("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(Ce)(e.unref(i).mergedColor[1]||e.unref(i).defaultColor[1],30),"stop-opacity":"1"},null,8,Yc)],8,Qc)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).circleR,y=>(e.openBlock(),e.createElementBlock("circle",{key:y,r:y,cx:e.unref(k),cy:e.unref(C),stroke:e.unref(i).mergedColor[1],"stroke-width":.8,fill:"transparent"},null,8,Kc))),128)),e.createElementVNode("circle",{r:"1",cx:e.unref(k),cy:e.unref(C),stroke:"transparent",fill:`url(#${e.unref(i).gradientId})`},[e.createElementVNode("animate",{attributeName:"r",values:`1;${e.unref(a)/2}`,dur:`${t.haloDur}s`,repeatCount:"indefinite"},null,8,Zc),e.createElementVNode("animate",{attributeName:"opacity",values:"1;0",dur:`${t.haloDur}s`,repeatCount:"indefinite"},null,8,ef)],8,Jc),e.createElementVNode("circle",{r:"2",cx:e.unref(k),cy:e.unref(C),fill:e.unref(i).mergedColor[1]},null,8,tf),e.unref(i).showSplitLine?(e.openBlock(),e.createElementBlock("g",rf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).splitLinePoints,y=>(e.openBlock(),e.createElementBlock("polyline",{key:y,points:y,stroke:e.unref(i).mergedColor[1],"stroke-width":.5,opacity:"50"},null,8,nf))),128))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).arcD,y=>(e.openBlock(),e.createElementBlock("path",{key:y,d:y,stroke:e.unref(i).mergedColor[1],"stroke-width":"2.3",fill:"transparent"},null,8,af))),128)),e.createElementVNode("use",{"xlink:href":`#${e.unref(i).gId}`},[e.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${e.unref(k)} ${e.unref(C)};360, ${e.unref(k)} ${e.unref(C)}`,dur:`${t.scanDur}s`,repeatCount:"indefinite"},null,8,lf)],8,of)],8,Hc)),e.createElementVNode("div",sf,[e.renderSlot(z.$slots,"default")])],512))}},It={install(t){t.component("DvDecoration12",Fa)}},Ae={color:{type:Array,default:()=>[]},backgroundColor:{type:String,default:"transparent"}};function Ne(t,n){return e.computed(()=>n.value.length===0?t:n.value)}const cf=["left-top","right-top","left-bottom","right-bottom"],ff=["#4fd2dd","#235fa7"],Ta=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),o=Ne(ff,e.toRef(t,"color")),{width:r,height:a,initWH:l}=ge(n);return{width:r,height:a,initWH:l,mergedColor:o,borderBox1:n}},render(){const{backgroundColor:t,width:n,height:o,mergedColor:r,$slots:a}=this;return e.createVNode("div",{ref:"borderBox1",class:"dv-border-box-1"},[e.createVNode("svg",{class:"dv-border",width:n,height:o},[e.createVNode("polygon",{fill:t,points:`10, 27 10, ${o-27} 13, ${o-24} 13, ${o-21} 24, ${o-11}
  30. 38, ${o-11} 41, ${o-8} 73, ${o-8} 75, ${o-10} 81, ${o-10}
  31. 85, ${o-6} ${n-85}, ${o-6} ${n-81}, ${o-10} ${n-75}, ${o-10}
  32. ${n-73}, ${o-8} ${n-41}, ${o-8} ${n-38}, ${o-11}
  33. ${n-10}, ${o-27} ${n-10}, 27 ${n-13}, 25 ${n-13}, 21
  34. ${n-24}, 11 ${n-38}, 11 ${n-41}, 8 ${n-73}, 8 ${n-75}, 10
  35. ${n-81}, 10 ${n-85}, 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24`},null)]),cf.map(l=>e.createVNode("svg",{key:l,width:"150px",height:"150px",class:`${l} dv-border`},[e.createVNode("polygon",{fill:r[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"},[e.createVNode("animate",{attributeName:"fill",values:`${r[0]};${r[1]};${r[0]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{fill:r[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"},[e.createVNode("animate",{attributeName:"fill",values:`${r[1]};${r[0]};${r[1]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{fill:r[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"},[e.createVNode("animate",{attributeName:"fill",values:`${r[0]};${r[1]};transparent`,dur:"1s",begin:"0s",repeatCount:"indefinite"},null)])])),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(a,"default")])])}}),Ht={install(t){t.component("DvBorderBox1",Ta)}},uf=["#fff","rgba(255, 255, 255, 0.6)"],Wa=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),o=Ne(uf,e.toRef(t,"color")),{width:r,height:a,initWH:l}=ge(n);return{width:r,height:a,initWH:l,mergedColor:o,borderBox2:n}},render(){const{$slots:t,backgroundColor:n,width:o,height:r,mergedColor:a}=this;return e.createVNode("div",{ref:"borderBox2",class:"dv-border-box-2"},[e.createVNode("svg",{class:"dv-border-svg-container",width:o,height:r},[e.createVNode("polygon",{fill:n,points:`
  36. 7, 7 ${o-7}, 7 ${o-7}, ${r-7} 7, ${r-7}
  37. `},null),e.createVNode("polyline",{stroke:a[0],points:`2, 2 ${o-2} ,2 ${o-2}, ${r-2} 2, ${r-2} 2, 2`},null),e.createVNode("polyline",{stroke:a[1],points:`6, 6 ${o-6}, 6 ${o-6}, ${r-6} 6, ${r-6} 6, 6`},null),e.createVNode("circle",{fill:a[0],cx:"11",cy:"11",r:"1"},null),e.createVNode("circle",{fill:a[0],cx:o-11,cy:"11",r:"1"},null),e.createVNode("circle",{fill:a[0],cx:o-11,cy:r-11,r:"1"},null),e.createVNode("circle",{fill:a[0],cx:"11",cy:r-11,r:"1"},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Ut={install(t){t.component("DvBorderBox2",Wa)}},df=["#2862b7","#2862b7"],ja=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(df,e.toRef(t,"color"));return{width:o,height:r,mergedColor:l,initWH:a,borderBox3:n}},render(){const{$slots:t,width:n,height:o,backgroundColor:r,mergedColor:a}=this;return e.createVNode("div",{ref:"borderBox3",class:"dv-border-box-3"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("polygon",{fill:r,points:`
  38. 23, 23 ${n-24}, 23 ${n-24}, ${o-24} 23, ${o-24}
  39. `},null),e.createVNode("polyline",{class:"dv-bb3-line1",stroke:a[0],points:`4, 4 ${n-22} ,4 ${n-22}, ${o-22} 4, ${o-22} 4, 4`},null),e.createVNode("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`10, 10 ${n-16}, 10 ${n-16}, ${o-16} 10, ${o-16} 10, 10`},null),e.createVNode("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`16, 16 ${n-10}, 16 ${n-10}, ${o-10} 16, ${o-10} 16, 16`},null),e.createVNode("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`22, 22 ${n-4}, 22 ${n-4}, ${o-4} 22, ${o-4} 22, 22`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Xt={install(t){t.component("DvBorderBox3",ja)}},hf={...Ae,reverse:{type:Boolean,default:!1}},pf=["red","rgba(0,0,255,0.8)"],za=e.defineComponent({props:hf,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(pf,e.toRef(t,"color"));return{width:o,height:r,initWH:a,mergedColor:l,borderBox4:n}},render(){const{$slots:t,backgroundColor:n,reverse:o,width:r,height:a,mergedColor:l}=this;return e.createVNode("div",{ref:"borderBox4",class:"dv-border-box-4"},[e.createVNode("svg",{class:`dv-border-svg-container ${o&&"dv-reverse"}`,width:r,height:a},[e.createVNode("polygon",{fill:n,points:`
  40. ${r-15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24
  41. 16, 42 16, ${a-32} 41, ${a-7} ${r-15}, ${a-7}
  42. `},null),e.createVNode("polyline",{class:"dv-bb4-line-1",stroke:l[0],points:`145, ${a-5} 40, ${a-5} 10, ${a-35}
  43. 10, 40 40, 5 150, 5 170, 20 ${r-15}, 20`},null),e.createVNode("polyline",{stroke:l[1],class:"dv-bb4-line-2",points:`245, ${a-1} 36, ${a-1} 14, ${a-23}
  44. 14, ${a-100}`},null),e.createVNode("polyline",{class:"dv-bb4-line-3",stroke:l[0],points:`7, ${a-40} 7, ${a-75}`},null),e.createVNode("polyline",{class:"dv-bb4-line-4",stroke:l[0],points:"28, 24 13, 41 13, 64"},null),e.createVNode("polyline",{class:"dv-bb4-line-5",stroke:l[0],points:"5, 45 5, 140"},null),e.createVNode("polyline",{class:"dv-bb4-line-6",stroke:l[1],points:"14, 75 14, 180"},null),e.createVNode("polyline",{class:"dv-bb4-line-7",stroke:l[1],points:"55, 11 147, 11 167, 26 250, 26"},null),e.createVNode("polyline",{class:"dv-bb4-line-8",stroke:l[1],points:"158, 5 173, 16"},null),e.createVNode("polyline",{class:"dv-bb4-line-9",stroke:l[0],points:`200, 17 ${r-10}, 17`},null),e.createVNode("polyline",{class:"dv-bb4-line-10",stroke:l[1],points:`385, 17 ${r-10}, 17`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Qt={install(t){t.component("DvBorderBox4",za)}},gf={...Ae,reverse:{type:Boolean,default:!1}},mf=["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],qa=e.defineComponent({props:gf,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(mf,e.toRef(t,"color"));return{width:o,height:r,initWH:a,mergedColor:l,borderBox5:n}},render(){const{$slots:t,width:n,height:o,mergedColor:r,backgroundColor:a,reverse:l}=this;return e.createVNode("div",{ref:"borderBox5",class:"dv-border-box-5"},[e.createVNode("svg",{class:`dv-border-svg-container ${l&&"dv-reverse"}`,width:n,height:o},[e.createVNode("polygon",{fill:a,points:`
  45. 10, 22 ${n-22}, 22 ${n-22}, ${o-86} ${n-84}, ${o-24} 10, ${o-24}
  46. `},null),e.createVNode("polyline",{class:"dv-bb5-line-1",stroke:r[0],points:`8, 5 ${n-5}, 5 ${n-5}, ${o-100}
  47. ${n-100}, ${o-5} 8, ${o-5} 8, 5`},null),e.createVNode("polyline",{class:"dv-bb5-line-2",stroke:r[1],points:`3, 5 ${n-20}, 5 ${n-20}, ${o-60}
  48. ${n-74}, ${o-5} 3, ${o-5} 3, 5`},null),e.createVNode("polyline",{class:"dv-bb5-line-3",stroke:r[1],points:`50, 13 ${n-35}, 13`},null),e.createVNode("polyline",{class:"dv-bb5-line-4",stroke:r[1],points:`15, 20 ${n-35}, 20`},null),e.createVNode("polyline",{class:"dv-bb5-line-5",stroke:r[1],points:`15, ${o-20} ${n-110}, ${o-20}`},null),e.createVNode("polyline",{class:"dv-bb5-line-6",stroke:r[1],points:`15, ${o-13} ${n-110}, ${o-13}`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Yt={install(t){t.component("DvBorderBox5",qa)}},yf=["rgba(255, 255, 255, 0.35)","gray"],Ia=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(yf,e.toRef(t,"color"));return{width:o,height:r,initWH:a,mergedColor:l,borderBox6:n}},render(){const{$slots:t,width:n,height:o,mergedColor:r,backgroundColor:a}=this;return e.createVNode("div",{ref:"borderBox6",class:"dv-border-box-6"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("polygon",{fill:a,points:`
  49. 9, 7 ${n-9}, 7 ${n-9}, ${o-7} 9, ${o-7}
  50. `},null),e.createVNode("circle",{fill:r[1],cx:"5",cy:"5",r:"2"},null),e.createVNode("circle",{fill:r[1],cx:n-5,cy:"5",r:"2"},null),e.createVNode("circle",{fill:r[1],cx:n-5,cy:o-5,r:"2"},null),e.createVNode("circle",{fill:r[1],cx:"5",cy:o-5,r:"2"},null),e.createVNode("polyline",{stroke:r[0],points:`10, 4 ${n-10}, 4`},null),e.createVNode("polyline",{stroke:r[0],points:`10, ${o-4} ${n-10}, ${o-4}`},null),e.createVNode("polyline",{stroke:r[0],points:`5, 70 5, ${o-70}`},null),e.createVNode("polyline",{stroke:r[0],points:`${n-5}, 70 ${n-5}, ${o-70}`},null),e.createVNode("polyline",{stroke:r[0],points:"3, 10, 3, 50"},null),e.createVNode("polyline",{stroke:r[0],points:"7, 30 7, 80"},null),e.createVNode("polyline",{stroke:r[0],points:`${n-3}, 10 ${n-3}, 50`},null),e.createVNode("polyline",{stroke:r[0],points:`${n-7}, 30 ${n-7}, 80`},null),e.createVNode("polyline",{stroke:r[0],points:`3, ${o-10} 3, ${o-50}`},null),e.createVNode("polyline",{stroke:r[0],points:`7, ${o-30} 7, ${o-80}`},null),e.createVNode("polyline",{stroke:r[0],points:`${n-3}, ${o-10} ${n-3}, ${o-50}`},null),e.createVNode("polyline",{stroke:r[0],points:`${n-7}, ${o-30} ${n-7}, ${o-80}`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Kt={install(t){t.component("DvBorderBox6",Ia)}},vf=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],Ha=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(vf,e.toRef(t,"color"));return{width:o,height:r,initWH:a,mergedColor:l,borderBox7:n}},render(){const{$slots:t,width:n,height:o,mergedColor:r,backgroundColor:a}=this;return e.createVNode("div",{ref:"borderBox7",class:"dv-border-box-7",style:`box-shadow: inset 0 0 40px ${r[0]}; border: 1px solid ${r[0]}; background-color: ${a}`},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:"0, 25 0, 0 25, 0"},null),e.createVNode("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`${n-25}, 0 ${n}, 0 ${n}, 25`},null),e.createVNode("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`${n-25}, ${o} ${n}, ${o} ${n}, ${o-25}`},null),e.createVNode("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`0, ${o-25} 0, ${o} 25, ${o}`},null),e.createVNode("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:"0, 10 0, 0 10, 0"},null),e.createVNode("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`${n-10}, 0 ${n}, 0 ${n}, 10`},null),e.createVNode("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`${n-10}, ${o} ${n}, ${o} ${n}, ${o-10}`},null),e.createVNode("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`0, ${o-10} 0, ${o} 10, ${o}`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Jt={install(t){t.component("DvBorderBox7",Ha)}},bf={...Ae,reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},Cf=["#235fa7","#4fd2dd"],Ua=e.defineComponent({props:bf,setup(t){const n=Le(),o=e.ref(null),r=e.reactive({path:`border-box-8-path-${n}`,gradient:`border-box-8-gradient-${n}`,mask:`border-box-8-mask-${n}`}),{width:a,height:l,initWH:i}=ge(o),k=e.computed(()=>(a.value+l.value-5)*2),C=e.computed(()=>t.reverse?`M 2.5, 2.5 L 2.5, ${l.value-2.5} L ${a.value-2.5}, ${l.value-2.5} L ${a.value-2.5}, 2.5 L 2.5, 2.5`:`M2.5, 2.5 L${a.value-2.5}, 2.5 L${a.value-2.5}, ${l.value-2.5} L2.5, ${l.value-2.5} L2.5, 2.5`),j=Ne(Cf,e.toRef(t,"color"));return{width:a,height:l,initWH:i,state:r,mergedColor:j,pathD:C,length:k,borderBox8:o}},render(){const{$slots:t,width:n,height:o,state:r,mergedColor:a,pathD:l,length:i,backgroundColor:k,dur:C}=this;return e.createVNode("div",{ref:"borderBox8",class:"dv-border-box-8"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("defs",null,[e.createVNode("path",{id:r.path,d:l,fill:"transparent"},null),e.createVNode("radialGradient",{id:r.gradient,cx:"50%",cy:"50%",r:"50%"},[e.createVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null),e.createVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null)]),e.createVNode("mask",{id:r.mask},[e.createVNode("circle",{cx:"0",cy:"0",r:"150",fill:`url(#${r.gradient})`},[e.h("animateMotion",{dur:`${C}s`,path:l,rotate:"auto",repeatCount:"indefinite"})])])]),e.createVNode("polygon",{fill:k,points:`5, 5 ${n-5}, 5 ${n-5} ${o-5} 5, ${o-5}`},null),e.createVNode("use",{stroke:a[0],"stroke-width":"1","xlink:href":`#${r.path}`},null),e.createVNode("use",{stroke:a[1],"stroke-width":"3","xlink:href":`#${r.path}`,mask:`url(#${r.mask})`},[e.createVNode("animate",{attributeName:"stroke-dasharray",from:`0, ${i}`,to:`${i}, 0`,dur:`${C}s`,repeatCount:"indefinite"},null)])]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),Zt={install(t){t.component("DvBorderBox8",Ua)}},xf=["#11eefd","#0078d2"],Xa=e.defineComponent({props:Ae,setup(t){const n=Le(),o=e.ref(null),{width:r,height:a,initWH:l}=ge(o),i=e.reactive({gradientId:`border-box-9-gradient-${n}`,maskId:`border-box-9-mask-${n}`}),k=Ne(xf,e.toRef(t,"color"));return{width:r,height:a,initWH:l,state:i,mergedColor:k,borderBox9:o}},render(){const{$slots:t,width:n,height:o,state:r,mergedColor:a,backgroundColor:l}=this;return e.createVNode("div",{ref:"borderBox9",class:"dv-border-box-9"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("defs",null,[e.createVNode("linearGradient",{id:r.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[e.createVNode("animate",{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),e.createVNode("stop",{offset:"0%","stop-color":a[0]},[e.createVNode("animate",{attributeName:"stop-color",values:`${a[0]};${a[1]};${a[0]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("stop",{offset:"100%","stop-color":a[1]},[e.createVNode("animate",{attributeName:"stop-color",values:`${a[1]};${a[0]};${a[1]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)])]),e.createVNode("mask",{id:r.maskId},[e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${o*.4} 8, 3, ${n*.4+7}, 3`},null),e.createVNode("polyline",{fill:"#fff",points:`8, ${o*.15} 8, 3, ${n*.1+7}, 3
  51. ${n*.1}, 8 14, 8 14, ${o*.15-7}
  52. `},null),e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${n*.5}, 3 ${n-3}, 3, ${n-3}, ${o*.25}`},null),e.createVNode("polyline",{fill:"#fff",points:`
  53. ${n*.52}, 3 ${n*.58}, 3
  54. ${n*.58-7}, 9 ${n*.52+7}, 9
  55. `},null),e.createVNode("polyline",{fill:"#fff",points:`
  56. ${n*.9}, 3 ${n-3}, 3 ${n-3}, ${o*.1}
  57. ${n-9}, ${o*.1-7} ${n-9}, 9 ${n*.9+7}, 9
  58. `},null),e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${o*.5} 8, ${o-3} ${n*.3+7}, ${o-3}`},null),e.createVNode("polyline",{fill:"#fff",points:`
  59. 8, ${o*.55} 8, ${o*.7}
  60. 2, ${o*.7-7} 2, ${o*.55+7}
  61. `},null),e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${n*.35}, ${o-3} ${n-3}, ${o-3} ${n-3}, ${o*.35}`},null),e.createVNode("polyline",{fill:"#fff",points:`
  62. ${n*.92}, ${o-3} ${n-3}, ${o-3} ${n-3}, ${o*.8}
  63. ${n-9}, ${o*.8+7} ${n-9}, ${o-9} ${n*.92+7}, ${o-9}
  64. `},null)])]),e.createVNode("polygon",{fill:l,points:`
  65. 15, 9 ${n*.1+1}, 9 ${n*.1+4}, 6 ${n*.52+2}, 6
  66. ${n*.52+6}, 10 ${n*.58-7}, 10 ${n*.58-2}, 6
  67. ${n*.9+2}, 6 ${n*.9+6}, 10 ${n-10}, 10 ${n-10}, ${o*.1-6}
  68. ${n-6}, ${o*.1-1} ${n-6}, ${o*.8+1} ${n-10}, ${o*.8+6}
  69. ${n-10}, ${o-10} ${n*.92+7}, ${o-10} ${n*.92+2}, ${o-6}
  70. 11, ${o-6} 11, ${o*.15-2} 15, ${o*.15-7}
  71. `},null),e.createVNode("rect",{x:"0",y:"0",width:n,height:o,fill:`url(#${r.gradientId})`,mask:`url(#${r.maskId})`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),er={install(t){t.component("DvBorderBox9",Xa)}},$f=["left-top","right-top","left-bottom","right-bottom"],kf=["#1d48c4","#d3e1f8"],Qa=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(kf,e.toRef(t,"color"));return{width:o,height:r,initWH:a,mergedColor:l,borderBox10:n}},render(){const{$slots:t,width:n,height:o,mergedColor:r,backgroundColor:a}=this;return e.createVNode("div",{ref:"borderBox10",class:"dv-border-box-10",style:`box-shadow: inset 0 0 25px 3px ${r[0]}`},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("polygon",{fill:a,points:`
  72. 4, 0 ${n-4}, 0 ${n}, 4 ${n}, ${o-4} ${n-4}, ${o}
  73. 4, ${o} 0, ${o-4} 0, 4
  74. `},null)]),$f.map(l=>e.createVNode("svg",{width:"150px",height:"150px",class:`${l} dv-border-svg-container`},[e.createVNode("polygon",{fill:r[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"},null)])),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),tr={install(t){t.component("DvBorderBox10",Qa)}},_f={...Ae,title:{type:String,default:""},titleWidth:{type:Number,default:250},animate:{type:Boolean,default:!0}},Ya=["#8aaafb","#1f33a2"],Ka=e.defineComponent({props:_f,setup(t){const n=Le(),o=e.ref(null),{width:r,height:a,initWH:l}=ge(o),i=e.ref(`border-box-11-filterId-${n}`),k=Ne(Ya,e.toRef(t,"color"));return{width:r,height:a,initWH:l,filterId:i,mergedColor:k,borderBox11:o}},render(){const{$slots:t,width:n,height:o,filterId:r,mergedColor:a,backgroundColor:l,title:i,titleWidth:k,animate:C}=this;return e.createVNode("div",{ref:"borderBox11",class:"dv-border-box-11"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("defs",null,[e.createVNode("filter",{id:r,height:"150%",width:"150%",x:"-25%",y:"-25%"},[e.createVNode("feMorphology",{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"},null),e.createVNode("feGaussianBlur",{in:"thicken",stdDeviation:"3",result:"blurred"},null),e.createVNode("feFlood",{"flood-color":a[1],result:"glowColor"},null),e.createVNode("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),e.createVNode("feMerge",null,[e.createVNode("feMergeNode",{in:"softGlowColored"},null),e.createVNode("feMergeNode",{in:"SourceGraphic"},null)])])]),e.createVNode("polygon",{fill:l,points:`
  75. 20, 32 ${n*.5-k/2}, 32 ${n*.5-k/2+20}, 53
  76. ${n*.5+k/2-20}, 53 ${n*.5+k/2}, 32
  77. ${n-20}, 32 ${n-8}, 48 ${n-8}, ${o-25} ${n-20}, ${o-8}
  78. 20, ${o-8} 8, ${o-25} 8, 50
  79. `},null),e.createVNode("polyline",{stroke:a[0],filter:`url(#${r})`,points:`
  80. ${(n-k)/2}, 30
  81. 20, 30 7, 50 7, ${50+(o-167)/2}
  82. 13, ${55+(o-167)/2} 13, ${135+(o-167)/2}
  83. 7, ${140+(o-167)/2} 7, ${o-27}
  84. 20, ${o-7} ${n-20}, ${o-7} ${n-7}, ${o-27}
  85. ${n-7}, ${140+(o-167)/2} ${n-13}, ${135+(o-167)/2}
  86. ${n-13}, ${55+(o-167)/2} ${n-7}, ${50+(o-167)/2}
  87. ${n-7}, 50 ${n-20}, 30 ${(n+k)/2}, 30
  88. ${(n+k)/2-20}, 7 ${(n-k)/2+20}, 7
  89. ${(n-k)/2}, 30 ${(n-k)/2+20}, 52
  90. ${(n+k)/2-20}, 52 ${(n+k)/2}, 30
  91. `},null),e.createVNode("polygon",{stroke:a[0],fill:"transparent",points:`
  92. ${(n+k)/2-5}, 30 ${(n+k)/2-21}, 11
  93. ${(n+k)/2-27}, 11 ${(n+k)/2-8}, 34
  94. `},null),e.createVNode("polygon",{stroke:a[0],fill:"transparent",points:`
  95. ${(n-k)/2+5}, 30 ${(n-k)/2+22}, 49
  96. ${(n-k)/2+28}, 49 ${(n-k)/2+8}, 26
  97. `},null),e.createVNode("polygon",{stroke:a[0],fill:Ce(a[1]||Ya[1],30),filter:`url(#${r})`,points:`
  98. ${(n+k)/2-11}, 37 ${(n+k)/2-32}, 11
  99. ${(n-k)/2+23}, 11 ${(n-k)/2+11}, 23
  100. ${(n-k)/2+33}, 49 ${(n+k)/2-22}, 49
  101. `},null),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"1",points:`
  102. ${(n-k)/2-10}, 37 ${(n-k)/2-31}, 37
  103. ${(n-k)/2-25}, 46 ${(n-k)/2-4}, 46
  104. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.7",points:`
  105. ${(n-k)/2-40}, 37 ${(n-k)/2-61}, 37
  106. ${(n-k)/2-55}, 46 ${(n-k)/2-34}, 46
  107. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.5",points:`
  108. ${(n-k)/2-70}, 37 ${(n-k)/2-91}, 37
  109. ${(n-k)/2-85}, 46 ${(n-k)/2-64}, 46
  110. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"1",points:`
  111. ${(n+k)/2+30}, 37 ${(n+k)/2+9}, 37
  112. ${(n+k)/2+3}, 46 ${(n+k)/2+24}, 46
  113. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.7",points:`
  114. ${(n+k)/2+60}, 37 ${(n+k)/2+39}, 37
  115. ${(n+k)/2+33}, 46 ${(n+k)/2+54}, 46
  116. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.5",points:`
  117. ${(n+k)/2+90}, 37 ${(n+k)/2+69}, 37
  118. ${(n+k)/2+63}, 46 ${(n+k)/2+84}, 46
  119. `},[C&&e.createVNode("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("text",{class:"dv-border-box-11-title",x:`${n/2}`,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},[i]),e.createVNode("polygon",{fill:a[0],filter:`url(#${r})`,points:`
  120. 7, ${53+(o-167)/2} 11, ${57+(o-167)/2}
  121. 11, ${133+(o-167)/2} 7, ${137+(o-167)/2}
  122. `},null),e.createVNode("polygon",{fill:a[0],filter:`url(#${r})`,points:`
  123. ${n-7}, ${53+(o-167)/2} ${n-11}, ${57+(o-167)/2}
  124. ${n-11}, ${133+(o-167)/2} ${n-7}, ${137+(o-167)/2}
  125. `},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),rr={install(t){t.component("DvBorderBox11",Ka)}},tt=["#2e6099","#7ce7fd"],Ja=e.defineComponent({props:Ae,setup(t){const n=Le(),o=e.ref(null),{width:r,height:a,initWH:l}=ge(o),i=e.ref(`borderr-box-12-filterId-${n}`),k=Ne(tt,e.toRef(t,"color"));return{width:r,height:a,filterId:i,mergedColor:k,initWH:l,borderBox12:o}},render(){const{$slots:t,width:n,height:o,filterId:r,mergedColor:a,backgroundColor:l}=this;return e.createVNode("div",{ref:"borderBox12",class:"dv-border-box-12"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("defs",null,[e.createVNode("filter",{id:r,height:"150%",width:"150%",x:"-25%",y:"-25%"},[e.createVNode("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null),e.createVNode("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null),e.createVNode("feFlood",{"flood-color":Ce(a[1]||tt[1],70),result:"glowColor"},[e.createVNode("animate",{attributeName:"flood-color",values:`
  126. ${Ce(a[1]||tt[1],70)};
  127. ${Ce(a[1]||tt[1],30)};
  128. ${Ce(a[1]||tt[1],70)};
  129. `,dur:"3s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),e.createVNode("feMerge",null,[e.createVNode("feMergeNode",{in:"softGlowColored"},null),e.createVNode("feMergeNode",{in:"SourceGraphic"},null)])])]),n&&o&&e.createVNode("path",{fill:l,"stroke-width":"2",stroke:a[0],d:`
  130. M15 5 L ${n-15} 5 Q ${n-5} 5, ${n-5} 15
  131. L ${n-5} ${o-15} Q ${n-5} ${o-5}, ${n-15} ${o-5}
  132. L 15, ${o-5} Q 5 ${o-5} 5 ${o-15} L 5 15
  133. Q 5 5 15 5
  134. `},null),e.createVNode("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"},null),e.createVNode("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`M ${n-20} 5 L ${n-15} 5 Q ${n-5} 5 ${n-5} 15 L ${n-5} 20`},null),e.createVNode("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`
  135. M ${n-20} ${o-5} L ${n-15} ${o-5}
  136. Q ${n-5} ${o-5} ${n-5} ${o-15}
  137. L ${n-5} ${o-20}
  138. `},null),e.createVNode("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`
  139. M 20 ${o-5} L 15 ${o-5}
  140. Q 5 ${o-5} 5 ${o-15}
  141. L 5 ${o-20}
  142. `},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),nr={install(t){t.component("DvBorderBox12",Ja)}},Pf=["#6586ec","#2cf7fe"],Za=e.defineComponent({props:Ae,setup(t){const n=e.ref(null),{width:o,height:r,initWH:a}=ge(n),l=Ne(Pf,e.toRef(t,"color"));return{width:o,height:r,mergedColor:l,initWH:a,borderBox13:n}},render(){const{$slots:t,width:n,height:o,mergedColor:r,backgroundColor:a}=this;return e.createVNode("div",{ref:"borderBox13",class:"dv-border-box-13"},[e.createVNode("svg",{class:"dv-border-svg-container",width:n,height:o},[e.createVNode("path",{fill:a,stroke:r[0],d:`
  143. M 5 20 L 5 10 L 12 3 L 60 3 L 68 10
  144. L ${n-20} 10 L ${n-5} 25
  145. L ${n-5} ${o-5} L 20 ${o-5}
  146. L 5 ${o-20} L 5 20
  147. `},null),e.createVNode("path",{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:r[0],d:"M 16 9 L 61 9"},null),e.createVNode("path",{fill:"transparent",stroke:r[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"},null),e.createVNode("path",{fill:"transparent",stroke:r[1],d:`M ${n-5} ${o-30} L ${n-5} ${o-5} L ${n-30} ${o-5}`},null)]),e.createVNode("div",{class:"border-box-content"},[e.renderSlot(t,"default")])])}}),ar={install(t){t.component("DvBorderBox13",Za)}},wf={install(t){var n,o,r,a,l,i,k,C,j,W,U,M,N,d,G,F,z,B,y,v,u,O,w,x,$,f,E,A,g,H,X,Z,c,q,m,p,L,J,Q;(n=at.install)==null||n.call(at,t),(o=lt.install)==null||o.call(lt,t),(r=st.install)==null||r.call(st,t),(a=ft.install)==null||a.call(ft,t),(l=ut.install)==null||l.call(ut,t),(i=dt.install)==null||i.call(dt,t),(k=ht.install)==null||k.call(ht,t),(C=pt.install)==null||C.call(pt,t),(j=gt.install)==null||j.call(gt,t),(W=Nt.install)==null||W.call(Nt,t),(U=Lt.install)==null||U.call(Lt,t),(M=St.install)==null||M.call(St,t),(N=Bt.install)==null||N.call(Bt,t),(d=Et.install)==null||d.call(Et,t),(G=Vt.install)==null||G.call(Vt,t),(F=Ot.install)==null||F.call(Ot,t),(z=Rt.install)==null||z.call(Rt,t),(B=Gt.install)==null||B.call(Gt,t),(y=Dt.install)==null||y.call(Dt,t),(v=Ft.install)==null||v.call(Ft,t),(u=Tt.install)==null||u.call(Tt,t),(O=Wt.install)==null||O.call(Wt,t),(w=jt.install)==null||w.call(jt,t),(x=zt.install)==null||x.call(zt,t),($=qt.install)==null||$.call(qt,t),(f=It.install)==null||f.call(It,t),(E=Ht.install)==null||E.call(Ht,t),(A=Ut.install)==null||A.call(Ut,t),(g=Xt.install)==null||g.call(Xt,t),(H=Qt.install)==null||H.call(Qt,t),(X=Yt.install)==null||X.call(Yt,t),(Z=Kt.install)==null||Z.call(Kt,t),(c=Jt.install)==null||c.call(Jt,t),(q=Zt.install)==null||q.call(Zt,t),(m=er.install)==null||m.call(er,t),(p=tr.install)==null||p.call(tr,t),(L=rr.install)==null||L.call(rr,t),(J=nr.install)==null||J.call(nr,t),(Q=ar.install)==null||Q.call(ar,t)}};ue.ActiveRingChart=wa,ue.ActiveRingChartPlugin=St,ue.BorderBox1=Ta,ue.BorderBox10=Qa,ue.BorderBox10Plugin=tr,ue.BorderBox11=Ka,ue.BorderBox11Plugin=rr,ue.BorderBox12=Ja,ue.BorderBox12Plugin=nr,ue.BorderBox13=Za,ue.BorderBox13Plugin=ar,ue.BorderBox1Plugin=Ht,ue.BorderBox2=Wa,ue.BorderBox2Plugin=Ut,ue.BorderBox3=ja,ue.BorderBox3Plugin=Xt,ue.BorderBox4=za,ue.BorderBox4Plugin=Qt,ue.BorderBox5=qa,ue.BorderBox5Plugin=Yt,ue.BorderBox6=Ia,ue.BorderBox6Plugin=Kt,ue.BorderBox7=Ha,ue.BorderBox7Plugin=Jt,ue.BorderBox8=Ua,ue.BorderBox8Plugin=Zt,ue.BorderBox9=Xa,ue.BorderBox9Plugin=er,ue.Button=Kr,ue.ButtonPlugin=at,ue.CapsuleChart=Pa,ue.CapsuleChartPlugin=Lt,ue.Charts=_a,ue.ChartsPlugin=Nt,ue.ConicalColumnChart=en,ue.ConicalColumnChartPlugin=lt,ue.Decoration1=Na,ue.Decoration10=Ga,ue.Decoration10Plugin=zt,ue.Decoration11=Da,ue.Decoration11Plugin=qt,ue.Decoration12=Fa,ue.Decoration12Plugin=It,ue.Decoration1Plugin=Vt,ue.Decoration2=La,ue.Decoration2Plugin=Ot,ue.Decoration3=Sa,ue.Decoration3Plugin=Rt,ue.Decoration4=Ba,ue.Decoration4Plugin=Gt,ue.Decoration5=Ea,ue.Decoration5Plugin=Dt,ue.Decoration6=Va,ue.Decoration6Plugin=Ft,ue.Decoration7=Oa,ue.Decoration7Plugin=Tt,ue.Decoration8=Ma,ue.Decoration8Plugin=Wt,ue.Decoration9=Ra,ue.Decoration9Plugin=jt,ue.DigitalFlop=qr,ue.DigitalFlopPlugin=Bt,ue.FlylineChart=Tn,ue.FlylineChartEnhanced=Fn,ue.FlylineChartEnhancedPlugin=dt,ue.FlylineChartPlugin=ht,ue.FullScreenContainer=Aa,ue.FullScreenContainerPlugin=Et,ue.Loading=Dn,ue.LoadingPlugin=ut,ue.PercentPond=tn,ue.PercentPondPlugin=st,ue.ScrollBoard=jn,ue.ScrollBoardPlugin=gt,ue.ScrollRankingBoard=Wn,ue.ScrollRankingBoardPlugin=pt,ue.WaterLevelPond=Gn,ue.WaterLevelPondPlugin=ft,ue.default=wf,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});