@ecan-bi/datav 1.2.88 → 1.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2968 -2905
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +32 -32
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/radio/Radio.vue.d.ts +12 -4
- package/types/control/radio/index.d.ts +12 -4
- package/types/control/radio/props.d.ts +8 -3
- package/types/table/table/Table.vue.d.ts +10 -1
- package/types/table/table/index.d.ts +10 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.2.
|
|
2
|
-
(function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q["@ecan/bi-datav"]={},q.Vue,q["echarts/core"],q.ResizeDetector,q.AntDesignVue,null,null,q.LodashEs,q.Dayjs,q.Axios,q.Mitt,null,null,null,q["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,q["echarts/renderers"],q["echarts/charts"],q["echarts/components"],null,q.Echarts,null,null,q.Xlsx,q.big.js))})(this,function(q,a,ze,Ca,ie,wd,kd,Pe,Te,C0,w0,Ad,Td,Bd,wa,Ed,_d,Dd,Rd,pt,at,be,Id,k0,Od,Ld,Ft,A0){var u0,h0,g0,m0;"use strict";function T0(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const B0=T0(k0),E0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function _0(e,n){function t(r){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function o(){const r=Object.create(null);return E0.forEach(i=>{r[i]=t(i)}),r}return o()}function D0(e,n,t){let o=null;a.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(o=ze.throttle(()=>{i.resize()},100),Ca.addListener(r,o)),f(()=>{o&&r&&Ca.removeListener(r,o)})})}const R0={autoresize:Boolean},I0="ecLoadingOptions";function O0(e,n,t){const o=a.inject(I0,{}),r=a.computed(()=>({...a.unref(o),...t==null?void 0:t.value}));a.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const L0={loading:Boolean,loadingOptions:Object},Nd="",N0=/^on[^a-z]/,M0=e=>N0.test(e);function F0(e){const n={};for(const t in e)M0(t)||(n[t]=e[t]);return n}const z0="x-vue-echarts",P0="ecTheme",H0="ecInitOptions",q0="ecUpdateOptions",lt=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...R0,...L0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),s=a.inject(P0,null),l=a.inject(H0,null),f=a.inject(q0,null),{autoresize:c,manualUpdate:u,loading:x,loadingOptions:d}=a.toRefs(e),h=a.computed(()=>i.value||e.option||Object.create(null)),m=a.computed(()=>e.theme||a.unref(s)||{}),g=a.computed(()=>e.initOptions||a.unref(l)||{}),v=a.computed(()=>e.updateOptions||a.unref(f)||{}),E=a.computed(()=>F0(n));function b(R){if(r.value||!o.value)return;const L=r.value=ze.init(o.value,m.value,g.value);e.group&&(L.group=e.group);let M=t;M||(M={},Object.keys(n).filter(_=>_.indexOf("on")===0&&_.length>2).forEach(_=>{const S=_.charAt(2).toLowerCase()+_.slice(3);M[S]=n[_]})),Object.keys(M).forEach(_=>{const S=M[_];S&&(_.indexOf("zr:")===0?L.getZr().on(_.slice(3).toLowerCase(),S):L.on(_.toLowerCase(),S))});function B(){if(L&&!L.isDisposed())try{L.resize()}catch(_){if(_.message==="Cannot read property 'get' of undefined")return;throw _}}function w(){L.setOption(R||h.value,v.value)}c.value?a.nextTick(()=>{B(),w()}):w()}function p(R,L){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,L||{}):b(R)}function y(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;a.watch(u,R=>{typeof A=="function"&&(A(),A=null),R||(A=a.watch(()=>e.option,L=>{L&&(r.value?r.value.setOption(L,v.value):b())},{deep:!0}))},{immediate:!0}),a.watch([m,g],()=>{y(),b()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const C=_0(r,b);return O0(r,x,d),D0(r,c,o),a.onMounted(()=>{e.option&&b()}),a.onUnmounted(y),{chart:r,root:o,setOption:p,nonEventAttrs:E,...C}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(z0,e)}});function $e(e,n){V0(e)&&(e="100%");var t=j0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function V0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function j0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function G0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ut(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dn(e){return e.length===1?"0"+e:String(e)}function W0(e,n,t){return{r:$e(e,255)*255,g:$e(n,255)*255,b:$e(t,255)*255}}function un(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function U0(e,n,t){var o,r,i;if(e=$e(e,360),n=$e(n,100),t=$e(t,100),n===0)r=t,i=t,o=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;o=un(l,s,e+1/3),r=un(l,s,e),i=un(l,s,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function $0(e,n,t){e=$e(e,255),n=$e(n,255),t=$e(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),i=0,s=o,l=o-r,f=o===0?0:l/o;if(o===r)i=0;else{switch(o){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function Z0(e,n,t){e=$e(e,360)*6,n=$e(n,100),t=$e(t,100);var o=Math.floor(e),r=e-o,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=o%6,c=[t,s,i,i,l,t][f],u=[l,t,t,s,i,i][f],x=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:x*255}}function Y0(e,n,t,o){var r=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function ka(e){return He(e)/255}function He(e){return parseInt(e,16)}var Aa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function zt(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Q0(e)),typeof e=="object"&&(rt(e.r)&&rt(e.g)&&rt(e.b)?(n=W0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):rt(e.h)&&rt(e.s)&&rt(e.v)?(o=Ut(e.s),r=Ut(e.v),n=Z0(e.h,o,r),s=!0,l="hsv"):rt(e.h)&&rt(e.s)&&rt(e.l)&&(o=Ut(e.s),i=Ut(e.l),n=U0(e.h,o,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=G0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var K0="[-\\+]?\\d+%?",X0="[-\\+]?\\d*\\.\\d+%?",st="(?:".concat(X0,")|(?:").concat(K0,")"),hn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),gn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),Qe={CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+hn),rgba:new RegExp("rgba"+gn),hsl:new RegExp("hsl"+hn),hsla:new RegExp("hsla"+gn),hsv:new RegExp("hsv"+hn),hsva:new RegExp("hsva"+gn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Q0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Aa[e])e=Aa[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=Qe.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=Qe.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Qe.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=Qe.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Qe.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=Qe.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Qe.hex8.exec(e),t?{r:He(t[1]),g:He(t[2]),b:He(t[3]),a:ka(t[4]),format:n?"name":"hex8"}:(t=Qe.hex6.exec(e),t?{r:He(t[1]),g:He(t[2]),b:He(t[3]),format:n?"name":"hex"}:(t=Qe.hex4.exec(e),t?{r:He(t[1]+t[1]),g:He(t[2]+t[2]),b:He(t[3]+t[3]),a:ka(t[4]+t[4]),format:n?"name":"hex8"}:(t=Qe.hex3.exec(e),t?{r:He(t[1]+t[1]),g:He(t[2]+t[2]),b:He(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function rt(e){return!!Qe.CSS_UNIT.exec(String(e))}var $t=2,Ta=.16,J0=.05,el=.05,tl=.15,Ba=5,Ea=4,nl=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function _a(e){var n=e.r,t=e.g,o=e.b,r=$0(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function Zt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(Y0(n,t,o,!1))}function ol(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function Da(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-$t*n:Math.round(e.h)+$t*n:o=t?Math.round(e.h)+$t*n:Math.round(e.h)-$t*n,o<0?o+=360:o>=360&&(o-=360),o}function Ra(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-Ta*n:n===Ea?o=e.s+Ta:o=e.s+J0*n,o>1&&(o=1),t&&n===Ba&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function Ia(e,n,t){var o;return t?o=e.v+el*n:o=e.v-tl*n,o>1&&(o=1),Number(o.toFixed(2))}function mn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=zt(e),r=Ba;r>0;r-=1){var i=_a(o),s=Zt(zt({h:Da(i,r,!0),s:Ra(i,r,!0),v:Ia(i,r,!0)}));t.push(s)}t.push(Zt(o));for(var l=1;l<=Ea;l+=1){var f=_a(o),c=Zt(zt({h:Da(f,l),s:Ra(f,l),v:Ia(f,l)}));t.push(c)}return n.theme==="dark"?nl.map(function(u){var x=u.index,d=u.opacity,h=Zt(ol(zt(n.backgroundColor||"#141414"),zt(t[x]),d*100));return h}):t}var xn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},yn={},pn={};Object.keys(xn).forEach(function(e){yn[e]=mn(xn[e]),yn[e].primary=yn[e][5],pn[e]=mn(xn[e],{theme:"dark",backgroundColor:"#141414"}),pn[e].primary=pn[e][5]});var Oa=[],Pt=[],al="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function rl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function il(e,n){if(n=n||{},e===void 0)throw new Error(al);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=Oa.indexOf(o);r===-1&&(r=Oa.push(o)-1,Pt[r]={});var i;return Pt[r]!==void 0&&Pt[r][t]!==void 0?i=Pt[r][t]:(i=Pt[r][t]=rl(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function La(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){ll(e,r,t[r])})}return e}function ll(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function sl(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function cl(e,n){sl(e,"[@ant-design/icons-vue] ".concat(n))}function Na(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function bn(e,n,t){return t?a.h(e.tag,La({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return bn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,La({key:n},e.attrs),(e.children||[]).map(function(o,r){return bn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Ma(e){return mn(e)[0]}function Fa(e){return e?Array.isArray(e)?e:[e]:[]}var fl=`
|
|
1
|
+
/*! @ecan-bi/datav@1.2.90 */
|
|
2
|
+
(function(q,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],o):(q=typeof globalThis<"u"?globalThis:q||self,o(q["@ecan/bi-datav"]={},q.Vue,q["echarts/core"],q.ResizeDetector,q.AntDesignVue,null,null,q.LodashEs,q.Dayjs,q.Axios,q.Mitt,null,null,null,q["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,q["echarts/renderers"],q["echarts/charts"],q["echarts/components"],null,q.Echarts,null,null,q.Xlsx,q.big.js))})(this,function(q,o,Ge,Da,ie,kd,Td,Ne,Te,T0,B0,Bd,Ed,_d,Ia,Dd,Id,Rd,Od,At,ct,be,Ld,E0,Nd,zd,Vt,_0){var p0,b0,v0,S0;"use strict";function D0(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const I0=D0(E0),R0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function O0(e,n){function t(r){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return R0.forEach(i=>{r[i]=t(i)}),r}return a()}function L0(e,n,t){let a=null;o.watch([t,e,n],([r,i,s],l,f)=>{r&&i&&s&&(a=Ge.throttle(()=>{i.resize()},100),Da.addListener(r,a)),f(()=>{a&&r&&Da.removeListener(r,a)})})}const N0={autoresize:Boolean},z0="ecLoadingOptions";function F0(e,n,t){const a=o.inject(z0,{}),r=o.computed(()=>({...o.unref(a),...t==null?void 0:t.value}));o.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const M0={loading:Boolean,loadingOptions:Object},Fd="",P0=/^on[^a-z]/,H0=e=>P0.test(e);function q0(e){const n={};for(const t in e)H0(t)||(n[t]=e[t]);return n}const V0="x-vue-echarts",j0="ecTheme",G0="ecInitOptions",W0="ecUpdateOptions",ut=o.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...N0,...M0},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const a=o.shallowRef(),r=o.shallowRef(),i=o.shallowRef(),s=o.inject(j0,null),l=o.inject(G0,null),f=o.inject(W0,null),{autoresize:c,manualUpdate:u,loading:x,loadingOptions:d}=o.toRefs(e),h=o.computed(()=>i.value||e.option||Object.create(null)),m=o.computed(()=>e.theme||o.unref(s)||{}),g=o.computed(()=>e.initOptions||o.unref(l)||{}),v=o.computed(()=>e.updateOptions||o.unref(f)||{}),E=o.computed(()=>q0(n));function b(R){if(r.value||!a.value)return;const L=r.value=Ge.init(a.value,m.value,g.value);e.group&&(L.group=e.group);let z=t;z||(z={},Object.keys(n).filter(_=>_.indexOf("on")===0&&_.length>2).forEach(_=>{const S=_.charAt(2).toLowerCase()+_.slice(3);z[S]=n[_]})),Object.keys(z).forEach(_=>{const S=z[_];S&&(_.indexOf("zr:")===0?L.getZr().on(_.slice(3).toLowerCase(),S):L.on(_.toLowerCase(),S))});function B(){if(L&&!L.isDisposed())try{L.resize()}catch(_){if(_.message==="Cannot read property 'get' of undefined")return;throw _}}function w(){L.setOption(R||h.value,v.value)}c.value?o.nextTick(()=>{B(),w()}):w()}function p(R,L){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,L||{}):b(R)}function y(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;o.watch(u,R=>{typeof k=="function"&&(k(),k=null),R||(k=o.watch(()=>e.option,L=>{L&&(r.value?r.value.setOption(L,v.value):b())},{deep:!0}))},{immediate:!0}),o.watch([m,g],()=>{y(),b()},{deep:!0}),o.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const C=O0(r,b);return F0(r,x,d),L0(r,c,a),o.onMounted(()=>{e.option&&b()}),o.onUnmounted(y),{chart:r,root:a,setOption:p,nonEventAttrs:E,...C}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",o.h(V0,e)}});function Ke(e,n){U0(e)&&(e="100%");var t=$0(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function U0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Z0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Kt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xn(e){return e.length===1?"0"+e:String(e)}function Y0(e,n,t){return{r:Ke(e,255)*255,g:Ke(n,255)*255,b:Ke(t,255)*255}}function yn(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function K0(e,n,t){var a,r,i;if(e=Ke(e,360),n=Ke(n,100),t=Ke(t,100),n===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+n):t+n-t*n,l=2*t-s;a=yn(l,s,e+1/3),r=yn(l,s,e),i=yn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Q0(e,n,t){e=Ke(e,255),n=Ke(n,255),t=Ke(t,255);var a=Math.max(e,n,t),r=Math.min(e,n,t),i=0,s=a,l=a-r,f=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:s}}function X0(e,n,t){e=Ke(e,360)*6,n=Ke(n,100),t=Ke(t,100);var a=Math.floor(e),r=e-a,i=t*(1-n),s=t*(1-r*n),l=t*(1-(1-r)*n),f=a%6,c=[t,s,i,i,l,t][f],u=[l,t,t,s,i,i][f],x=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:x*255}}function J0(e,n,t,a){var r=[xn(Math.round(e).toString(16)),xn(Math.round(n).toString(16)),xn(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ra(e){return We(e)/255}function We(e){return parseInt(e,16)}var Oa={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function jt(e){var n={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=nl(e)),typeof e=="object"&&(ft(e.r)&&ft(e.g)&&ft(e.b)?(n=Y0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ft(e.h)&&ft(e.s)&&ft(e.v)?(a=Kt(e.s),r=Kt(e.v),n=X0(e.h,a,r),s=!0,l="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(a=Kt(e.s),i=Kt(e.l),n=K0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=Z0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var el="[-\\+]?\\d+%?",tl="[-\\+]?\\d*\\.\\d+%?",ht="(?:".concat(tl,")|(?:").concat(el,")"),pn="[\\s|\\(]+(".concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")\\s*\\)?"),bn="[\\s|\\(]+(".concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")[,|\\s]+(").concat(ht,")\\s*\\)?"),ot={CSS_UNIT:new RegExp(ht),rgb:new RegExp("rgb"+pn),rgba:new RegExp("rgba"+bn),hsl:new RegExp("hsl"+pn),hsla:new RegExp("hsla"+bn),hsv:new RegExp("hsv"+pn),hsva:new RegExp("hsva"+bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Oa[e])e=Oa[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=ot.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=ot.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ot.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=ot.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ot.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=ot.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ot.hex8.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),a:Ra(t[4]),format:n?"name":"hex8"}:(t=ot.hex6.exec(e),t?{r:We(t[1]),g:We(t[2]),b:We(t[3]),format:n?"name":"hex"}:(t=ot.hex4.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),a:Ra(t[4]+t[4]),format:n?"name":"hex8"}:(t=ot.hex3.exec(e),t?{r:We(t[1]+t[1]),g:We(t[2]+t[2]),b:We(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function ft(e){return!!ot.CSS_UNIT.exec(String(e))}var Qt=2,La=.16,ol=.05,al=.05,rl=.15,Na=5,za=4,il=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Fa(e){var n=e.r,t=e.g,a=e.b,r=Q0(n,t,a);return{h:r.h*360,s:r.s,v:r.v}}function Xt(e){var n=e.r,t=e.g,a=e.b;return"#".concat(J0(n,t,a,!1))}function ll(e,n,t){var a=t/100,r={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return r}function Ma(e,n,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Qt*n:Math.round(e.h)+Qt*n:a=t?Math.round(e.h)+Qt*n:Math.round(e.h)-Qt*n,a<0?a+=360:a>=360&&(a-=360),a}function Pa(e,n,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-La*n:n===za?a=e.s+La:a=e.s+ol*n,a>1&&(a=1),t&&n===Na&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ha(e,n,t){var a;return t?a=e.v+al*n:a=e.v-rl*n,a>1&&(a=1),Number(a.toFixed(2))}function vn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=jt(e),r=Na;r>0;r-=1){var i=Fa(a),s=Xt(jt({h:Ma(i,r,!0),s:Pa(i,r,!0),v:Ha(i,r,!0)}));t.push(s)}t.push(Xt(a));for(var l=1;l<=za;l+=1){var f=Fa(a),c=Xt(jt({h:Ma(f,l),s:Pa(f,l),v:Ha(f,l)}));t.push(c)}return n.theme==="dark"?il.map(function(u){var x=u.index,d=u.opacity,h=Xt(ll(jt(n.backgroundColor||"#141414"),jt(t[x]),d*100));return h}):t}var Sn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Cn={},wn={};Object.keys(Sn).forEach(function(e){Cn[e]=vn(Sn[e]),Cn[e].primary=Cn[e][5],wn[e]=vn(Sn[e],{theme:"dark",backgroundColor:"#141414"}),wn[e].primary=wn[e][5]});var qa=[],Gt=[],sl="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function cl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function fl(e,n){if(n=n||{},e===void 0)throw new Error(sl);var t=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),r=qa.indexOf(a);r===-1&&(r=qa.push(a)-1,Gt[r]={});var i;return Gt[r]!==void 0&&Gt[r][t]!==void 0?i=Gt[r][t]:(i=Gt[r][t]=cl(),t==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Va(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){dl(e,r,t[r])})}return e}function dl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ul(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function hl(e,n){ul(e,"[@ant-design/icons-vue] ".concat(n))}function ja(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function An(e,n,t){return t?o.h(e.tag,Va({key:n},t,e.attrs),(e.children||[]).map(function(a,r){return An(a,"".concat(n,"-").concat(e.tag,"-").concat(r))})):o.h(e.tag,Va({key:n},e.attrs),(e.children||[]).map(function(a,r){return An(a,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Ga(e){return vn(e)[0]}function Wa(e){return e?Array.isArray(e)?e:[e]:[]}var gl=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bl(e,n){if(e){if(typeof e=="string")return qa(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qa(e,n)}}function qa(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function El(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(o.push(s.value),!(n&&o.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return o}}function _l(e){if(Array.isArray(e))return e}function Va(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Sn(e,r,t[r])})}return e}function Sn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Dl(e,n){if(e==null)return{};var t=Rl(e,n),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],!(n.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(t[o]=e[o])}return t}function Rl(e,n){if(e==null)return{};var t={},o=Object.keys(e),r,i;for(i=0;i<o.length;i++)r=o[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ha("#1890ff");var wt=function(n,t){var o,r=Va({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,x=r.onClick,d=Dl(r,kl),h=(o={anticon:!0},Sn(o,"anticon-".concat(s.name),!!s.name),Sn(o,i,i),o),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&x&&(g=-1,d.tabindex=g);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=Fa(u),b=Al(E,2),p=b[0],y=b[1];return a.createVNode("span",Va({role:"img","aria-label":s.name},d,{onClick:x,class:h}),[a.createVNode(vn,{class:m,icon:s,primaryColor:p,secondaryColor:y,style:v},null)])};wt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},wt.displayName="AntdIcon",wt.inheritAttrs=!1,wt.getTwoToneColor=wl,wt.setTwoToneColor=Ha;const ja=wt;var Il={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Ol=Il;function Ga(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Ll(e,r,t[r])})}return e}function Ll(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Cn=function(n,t){var o=Ga({},n,t.attrs);return a.createVNode(ja,Ga({},o,{icon:Ol}),null)};Cn.displayName="CloseOutlined",Cn.inheritAttrs=!1;const Nl=Cn;var Ml={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Fl=Ml;function Wa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){zl(e,r,t[r])})}return e}function zl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var wn=function(n,t){var o=Wa({},n,t.attrs);return a.createVNode(ja,Wa({},o,{icon:Fl}),null)};wn.displayName="LoadingOutlined",wn.inheritAttrs=!1;const Pl=wn,Hl=a.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ie.Spin},setup(){return{indicator:a.h(Pl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Md="",de=(e,n)=>{const t=e.__vccOpts||e;for(const[o,r]of n)t[o]=r;return t},ql={class:"spin-wrapper"};function Vl(e,n,t,o,r,i){const s=a.resolveComponent("a-spin");return a.openBlock(),a.createElementBlock("div",ql,[e.spinning?(a.openBlock(),a.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):a.renderSlot(e.$slots,"default",{key:1})])}const kt=de(Hl,[["render",Vl]]),jl=a.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ie.Skeleton}});function Gl(e,n,t,o,r,i){const s=a.resolveComponent("a-skeleton");return a.openBlock(),a.createBlock(s,{active:"",loading:e.loading},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Kt=de(jl,[["render",Gl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ge=(e,n)=>{if(e.install=t=>{for(const o of[e,...Object.values(n??{})])t.component(o.name,o)},n)for(const[t,o]of Object.entries(n))e[t]=o;return e},ve={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},xe=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const o=e[t];n[t]={type:o==null?void 0:o.constructor,default:o}}return n},kn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},An=xe(kn),Wl=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],pe=(e,n=[])=>{const t=Pe.without(Wl,...n);return a.computed(()=>Pe.pick(e,t))},Tn="EVENT_BUS",Oe="GLOBAL_CONFIG",Se="GLOBAL_MODEL",Re="REQUEST_MODEL",Ua="GLOBAL_TOKEN",qt="REFRESH_PAGE",$a="MODAL_MODEL",ct="LOADED_DATA",Je=18,Za="ygt",Ya=((u0=window==null?void 0:window.config)==null?void 0:u0.indicatorURL)||"";(h0=window==null?void 0:window.config)!=null&&h0.uploadPath;const Ka=((g0=window==null?void 0:window.config)==null?void 0:g0.routerBaseURL)||"./",Ul=((m0=window==null?void 0:window.config)==null?void 0:m0.erdURL)||"",_e=(e,n)=>{a.watch(()=>e.id,t=>{const o=a.inject(Tn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&o.onEvent(t,n)},{immediate:!0})},Ce=e=>{const n=e.events,t=e.id,o=a.inject(Tn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=a.inject(Oe,{touchEventId:a.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=o;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},At=(e,n)=>{let{name:t="name",value:o="value",type:r="type"}=n||{};t=t==null?void 0:t.trim(),o=o==null?void 0:o.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const u=e[c],x=u[t]||"",d=u[o]||"",h=u[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:x,value:d,...u}),i.set(h,m)}else i.set(h,[{name:x,value:d,...u}])}const l=[],f=[];for(const[c,u]of i)if(f.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const x of u)l.includes(x.name)||l.push(x.name);else l.push(...u.map(x=>x.name));return{dimensions:l,dataset:f}};var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $l(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function o(){return this instanceof o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),t}var Qa={exports:{}};function Zl(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bn={exports:{}};const Yl=$l(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ja;function ce(){return Ja||(Ja=1,function(e,n){(function(t,o){e.exports=o()})(le,function(){var t=t||function(o,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof le<"u"&&le.crypto&&(i=le.crypto),!i&&typeof Zl=="function")try{i=Yl}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(p){var y;return b.prototype=p,y=new b,b.prototype=null,y}}(),f={},c=f.lib={},u=c.Base=function(){return{extend:function(b){var p=l(this);return b&&p.mixIn(b),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var p in b)b.hasOwnProperty(p)&&(this[p]=b[p]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=u.extend({init:function(b,p){b=this.words=b||[],p!=r?this.sigBytes=p:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var p=this.words,y=b.words,A=this.sigBytes,C=b.sigBytes;if(this.clamp(),A%4)for(var R=0;R<C;R++){var L=y[R>>>2]>>>24-R%4*8&255;p[A+R>>>2]|=L<<24-(A+R)%4*8}else for(var M=0;M<C;M+=4)p[A+M>>>2]=y[M>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,p=this.sigBytes;b[p>>>2]&=4294967295<<32-p%4*8,b.length=o.ceil(p/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var p=[],y=0;y<b;y+=4)p.push(s());return new x.init(p,b)}}),d=f.enc={},h=d.Hex={stringify:function(b){for(var p=b.words,y=b.sigBytes,A=[],C=0;C<y;C++){var R=p[C>>>2]>>>24-C%4*8&255;A.push((R>>>4).toString(16)),A.push((R&15).toString(16))}return A.join("")},parse:function(b){for(var p=b.length,y=[],A=0;A<p;A+=2)y[A>>>3]|=parseInt(b.substr(A,2),16)<<24-A%8*4;return new x.init(y,p/2)}},m=d.Latin1={stringify:function(b){for(var p=b.words,y=b.sigBytes,A=[],C=0;C<y;C++){var R=p[C>>>2]>>>24-C%4*8&255;A.push(String.fromCharCode(R))}return A.join("")},parse:function(b){for(var p=b.length,y=[],A=0;A<p;A++)y[A>>>2]|=(b.charCodeAt(A)&255)<<24-A%4*8;return new x.init(y,p)}},g=d.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var p,y=this._data,A=y.words,C=y.sigBytes,R=this.blockSize,L=R*4,M=C/L;b?M=o.ceil(M):M=o.max((M|0)-this._minBufferSize,0);var B=M*R,w=o.min(B*4,C);if(B){for(var _=0;_<B;_+=R)this._doProcessBlock(A,_);p=A.splice(0,B),y.sigBytes-=w}return new x.init(p,w)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(b){return function(p,y){return new b.init(y).finalize(p)}},_createHmacHelper:function(b){return function(p,y){return new E.HMAC.init(b,y).finalize(p)}}});var E=f.algo={};return f}(Math);return t})}(Bn)),Bn.exports}var En={exports:{}},er;function Xt(){return er||(er=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),f.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=o?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,x=[],d=0;d<u;d++){var h=c[d];x.push(h.high),x.push(h.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),x=u.length,d=0;d<x;d++)u[d]=u[d].clone();return c}})}(),t})}(En)),En.exports}var _n={exports:{}},tr;function Kl(){return tr||(tr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(){if(typeof ArrayBuffer=="function"){var o=t,r=o.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,u=[],x=0;x<c;x++)u[x>>>2]|=f[x]<<24-x%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(_n)),_n.exports}var Dn={exports:{}},nr;function Xl(){return nr||(nr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,u=f.sigBytes,x=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=f.charCodeAt(x)<<16-x%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,x=[],d=0;d<u;d+=2){var h=l(c[d>>>2]>>>16-d%4*8&65535);x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=l(f.charCodeAt(x)<<16-x%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Dn)),Dn.exports}var Rn={exports:{}},or;function Tt(){return or||(or=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64={stringify:function(f){var c=f.words,u=f.sigBytes,x=this._map;f.clamp();for(var d=[],h=0;h<u;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)d.push(x.charAt(E>>>6*(3-b)&63));var p=x.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(f){var c=f.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var d=0;d<u.length;d++)x[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return l(f,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64})}(Rn)),Rn.exports}var In={exports:{}},ar;function Ql(){return ar||(ar=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.enc;s.Base64url={stringify:function(f,c=!0){var u=f.words,x=f.sigBytes,d=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<x;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,E=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|v<<8|E,p=0;p<4&&m+p*.75<x;p++)h.push(d.charAt(b>>>6*(3-p)&63));var y=d.charAt(64);if(y)for(;h.length%4;)h.push(y);return h.join("")},parse:function(f,c=!0){var u=f.length,x=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<x.length;h++)d[x.charCodeAt(h)]=h}var m=x.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(u=g)}return l(f,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64url})}(In)),In.exports}var On={exports:{}},rr;function Bt(){return rr||(rr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=o.abs(o.sin(g+1))*4294967296|0})();var u=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var E=0;E<16;E++){var b=v+E,p=g[b];g[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,A=g[v+0],C=g[v+1],R=g[v+2],L=g[v+3],M=g[v+4],B=g[v+5],w=g[v+6],_=g[v+7],S=g[v+8],D=g[v+9],F=g[v+10],O=g[v+11],z=g[v+12],H=g[v+13],j=g[v+14],P=g[v+15],k=y[0],I=y[1],T=y[2],N=y[3];k=x(k,I,T,N,A,7,c[0]),N=x(N,k,I,T,C,12,c[1]),T=x(T,N,k,I,R,17,c[2]),I=x(I,T,N,k,L,22,c[3]),k=x(k,I,T,N,M,7,c[4]),N=x(N,k,I,T,B,12,c[5]),T=x(T,N,k,I,w,17,c[6]),I=x(I,T,N,k,_,22,c[7]),k=x(k,I,T,N,S,7,c[8]),N=x(N,k,I,T,D,12,c[9]),T=x(T,N,k,I,F,17,c[10]),I=x(I,T,N,k,O,22,c[11]),k=x(k,I,T,N,z,7,c[12]),N=x(N,k,I,T,H,12,c[13]),T=x(T,N,k,I,j,17,c[14]),I=x(I,T,N,k,P,22,c[15]),k=d(k,I,T,N,C,5,c[16]),N=d(N,k,I,T,w,9,c[17]),T=d(T,N,k,I,O,14,c[18]),I=d(I,T,N,k,A,20,c[19]),k=d(k,I,T,N,B,5,c[20]),N=d(N,k,I,T,F,9,c[21]),T=d(T,N,k,I,P,14,c[22]),I=d(I,T,N,k,M,20,c[23]),k=d(k,I,T,N,D,5,c[24]),N=d(N,k,I,T,j,9,c[25]),T=d(T,N,k,I,L,14,c[26]),I=d(I,T,N,k,S,20,c[27]),k=d(k,I,T,N,H,5,c[28]),N=d(N,k,I,T,R,9,c[29]),T=d(T,N,k,I,_,14,c[30]),I=d(I,T,N,k,z,20,c[31]),k=h(k,I,T,N,B,4,c[32]),N=h(N,k,I,T,S,11,c[33]),T=h(T,N,k,I,O,16,c[34]),I=h(I,T,N,k,j,23,c[35]),k=h(k,I,T,N,C,4,c[36]),N=h(N,k,I,T,M,11,c[37]),T=h(T,N,k,I,_,16,c[38]),I=h(I,T,N,k,F,23,c[39]),k=h(k,I,T,N,H,4,c[40]),N=h(N,k,I,T,A,11,c[41]),T=h(T,N,k,I,L,16,c[42]),I=h(I,T,N,k,w,23,c[43]),k=h(k,I,T,N,D,4,c[44]),N=h(N,k,I,T,z,11,c[45]),T=h(T,N,k,I,P,16,c[46]),I=h(I,T,N,k,R,23,c[47]),k=m(k,I,T,N,A,6,c[48]),N=m(N,k,I,T,_,10,c[49]),T=m(T,N,k,I,j,15,c[50]),I=m(I,T,N,k,B,21,c[51]),k=m(k,I,T,N,z,6,c[52]),N=m(N,k,I,T,L,10,c[53]),T=m(T,N,k,I,F,15,c[54]),I=m(I,T,N,k,C,21,c[55]),k=m(k,I,T,N,S,6,c[56]),N=m(N,k,I,T,P,10,c[57]),T=m(T,N,k,I,w,15,c[58]),I=m(I,T,N,k,H,21,c[59]),k=m(k,I,T,N,M,6,c[60]),N=m(N,k,I,T,O,10,c[61]),T=m(T,N,k,I,R,15,c[62]),I=m(I,T,N,k,D,21,c[63]),y[0]=y[0]+k|0,y[1]=y[1]+I|0,y[2]=y[2]+T|0,y[3]=y[3]+N|0},_doFinalize:function(){var g=this._data,v=g.words,E=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var p=o.floor(E/4294967296),y=E;v[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var A=this._hash,C=A.words,R=0;R<4;R++){var L=C[R];C[R]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return A},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,v,E,b,p,y,A){var C=g+(v&E|~v&b)+p+A;return(C<<y|C>>>32-y)+v}function d(g,v,E,b,p,y,A){var C=g+(v&b|E&~b)+p+A;return(C<<y|C>>>32-y)+v}function h(g,v,E,b,p,y,A){var C=g+(v^E^b)+p+A;return(C<<y|C>>>32-y)+v}function m(g,v,E,b,p,y,A){var C=g+(E^(v|~b))+p+A;return(C<<y|C>>>32-y)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(On)),On.exports}var Ln={exports:{}},ir;function Nn(){return ir||(ir=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.Hasher,l=o.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,x){for(var d=this._hash.words,h=d[0],m=d[1],g=d[2],v=d[3],E=d[4],b=0;b<80;b++){if(b<16)f[b]=u[x+b]|0;else{var p=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=p<<1|p>>>31}var y=(h<<5|h>>>27)+E+f[b];b<20?y+=(m&g|~m&v)+1518500249:b<40?y+=(m^g^v)+1859775393:b<60?y+=(m&g|m&v|g&v)-1894007588:y+=(m^g^v)-899497514,E=v,v=g,g=m<<30|m>>>2,m=h,h=y}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+v|0,d[4]=d[4]+E|0},_doFinalize:function(){var u=this._data,x=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return x[h>>>5]|=128<<24-h%32,x[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),x[(h+64>>>9<<4)+15]=d,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});o.SHA1=s._createHelper(c),o.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Ln)),Ln.exports}var Mn={exports:{}},lr;function sr(){return lr||(lr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],u=[];(function(){function h(E){for(var b=o.sqrt(E),p=2;p<=b;p++)if(!(E%p))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(o.pow(g,1/2))),u[v]=m(o.pow(g,1/3)),v++),g++})();var x=[],d=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],E=g[1],b=g[2],p=g[3],y=g[4],A=g[5],C=g[6],R=g[7],L=0;L<64;L++){if(L<16)x[L]=h[m+L]|0;else{var M=x[L-15],B=(M<<25|M>>>7)^(M<<14|M>>>18)^M>>>3,w=x[L-2],_=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;x[L]=B+x[L-7]+_+x[L-16]}var S=y&A^~y&C,D=v&E^v&b^E&b,F=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),O=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),z=R+O+S+u[L]+x[L],H=F+D;R=C,C=A,A=y,y=p+z|0,p=b,b=E,E=v,v=z+H|0}g[0]=g[0]+v|0,g[1]=g[1]+E|0,g[2]=g[2]+b|0,g[3]=g[3]+p|0,g[4]=g[4]+y|0,g[5]=g[5]+A|0,g[6]=g[6]+C|0,g[7]=g[7]+R|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=o.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(d),r.HmacSHA256=l._createHmacHelper(d)}(Math),t.SHA256})}(Mn)),Mn.exports}var Fn={exports:{}},cr;function Jl(){return cr||(cr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),sr())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=o.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});o.SHA224=l._createHelper(f),o.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Fn)),Fn.exports}var zn={exports:{}},fr;function dr(){return fr||(fr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Xt())})(le,function(t){return function(){var o=t,r=o.lib,i=r.Hasher,s=o.x64,l=s.Word,f=s.WordArray,c=o.algo;function u(){return l.create.apply(l,arguments)}var x=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var m=0;m<80;m++)d[m]=u()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var v=this._hash.words,E=v[0],b=v[1],p=v[2],y=v[3],A=v[4],C=v[5],R=v[6],L=v[7],M=E.high,B=E.low,w=b.high,_=b.low,S=p.high,D=p.low,F=y.high,O=y.low,z=A.high,H=A.low,j=C.high,P=C.low,k=R.high,I=R.low,T=L.high,N=L.low,W=M,$=B,ne=w,Y=_,X=S,K=D,J=F,ae=O,he=z,fe=H,De=j,Fe=P,Ne=k,Ve=I,je=T,Xe=N,Ee=0;Ee<80;Ee++){var ke,V,U=d[Ee];if(Ee<16)V=U.high=m[g+Ee*2]|0,ke=U.low=m[g+Ee*2+1]|0;else{var Z=d[Ee-15],ee=Z.high,te=Z.low,Q=(ee>>>1|te<<31)^(ee>>>8|te<<24)^ee>>>7,oe=(te>>>1|ee<<31)^(te>>>8|ee<<24)^(te>>>7|ee<<25),me=d[Ee-2],ue=me.high,ye=me.low,Ge=(ue>>>19|ye<<13)^(ue<<3|ye>>>29)^ue>>>6,We=(ye>>>19|ue<<13)^(ye<<3|ue>>>29)^(ye>>>6|ue<<26),nt=d[Ee-7],St=nt.high,Gt=nt.low,Wt=d[Ee-16],Sa=Wt.high,x0=Wt.low;ke=oe+Gt,V=Q+St+(ke>>>0<oe>>>0?1:0),ke=ke+We,V=V+Ge+(ke>>>0<We>>>0?1:0),ke=ke+x0,V=V+Sa+(ke>>>0<x0>>>0?1:0),U.high=V,U.low=ke}var md=he&De^~he&Ne,y0=fe&Fe^~fe&Ve,xd=W&ne^W&X^ne&X,yd=$&Y^$&K^Y&K,pd=(W>>>28|$<<4)^(W<<30|$>>>2)^(W<<25|$>>>7),p0=($>>>28|W<<4)^($<<30|W>>>2)^($<<25|W>>>7),bd=(he>>>14|fe<<18)^(he>>>18|fe<<14)^(he<<23|fe>>>9),vd=(fe>>>14|he<<18)^(fe>>>18|he<<14)^(fe<<23|he>>>9),b0=x[Ee],Sd=b0.high,v0=b0.low,Ue=Xe+vd,yt=je+bd+(Ue>>>0<Xe>>>0?1:0),Ue=Ue+y0,yt=yt+md+(Ue>>>0<y0>>>0?1:0),Ue=Ue+v0,yt=yt+Sd+(Ue>>>0<v0>>>0?1:0),Ue=Ue+ke,yt=yt+V+(Ue>>>0<ke>>>0?1:0),S0=p0+yd,Cd=pd+xd+(S0>>>0<p0>>>0?1:0);je=Ne,Xe=Ve,Ne=De,Ve=Fe,De=he,Fe=fe,fe=ae+Ue|0,he=J+yt+(fe>>>0<ae>>>0?1:0)|0,J=X,ae=K,X=ne,K=Y,ne=W,Y=$,$=Ue+S0|0,W=yt+Cd+($>>>0<Ue>>>0?1:0)|0}B=E.low=B+$,E.high=M+W+(B>>>0<$>>>0?1:0),_=b.low=_+Y,b.high=w+ne+(_>>>0<Y>>>0?1:0),D=p.low=D+K,p.high=S+X+(D>>>0<K>>>0?1:0),O=y.low=O+ae,y.high=F+J+(O>>>0<ae>>>0?1:0),H=A.low=H+fe,A.high=z+he+(H>>>0<fe>>>0?1:0),P=C.low=P+Fe,C.high=j+De+(P>>>0<Fe>>>0?1:0),I=R.low=I+Ve,R.high=k+Ne+(I>>>0<Ve>>>0?1:0),N=L.low=N+Xe,L.high=T+je+(N>>>0<Xe>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,E=m.sigBytes*8;g[E>>>5]|=128<<24-E%32,g[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(E+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});o.SHA512=i._createHelper(h),o.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(zn)),zn.exports}var Pn={exports:{}},ur;function es(){return ur||(ur=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Xt(),dr())})(le,function(t){return function(){var o=t,r=o.x64,i=r.Word,s=r.WordArray,l=o.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=f._doFinalize.call(this);return u.sigBytes-=16,u}});o.SHA384=f._createHelper(c),o.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(Pn)),Pn.exports}var Hn={exports:{}},hr;function ts(){return hr||(hr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Xt())})(le,function(t){return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,u=r.algo,x=[],d=[],h=[];(function(){for(var v=1,E=0,b=0;b<24;b++){x[v+5*E]=(b+1)*(b+2)/2%64;var p=E%5,y=(2*v+3*E)%5;v=p,E=y}for(var v=0;v<5;v++)for(var E=0;E<5;E++)d[v+5*E]=E+(2*v+3*E)%5*5;for(var A=1,C=0;C<24;C++){for(var R=0,L=0,M=0;M<7;M++){if(A&1){var B=(1<<M)-1;B<32?L^=1<<B:R^=1<<B-32}A&128?A=A<<1^113:A<<=1}h[C]=c.create(R,L)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],E=0;E<25;E++)v[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,E){for(var b=this._state,p=this.blockSize/2,y=0;y<p;y++){var A=v[E+2*y],C=v[E+2*y+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var R=b[y];R.high^=C,R.low^=A}for(var L=0;L<24;L++){for(var M=0;M<5;M++){for(var B=0,w=0,_=0;_<5;_++){var R=b[M+5*_];B^=R.high,w^=R.low}var S=m[M];S.high=B,S.low=w}for(var M=0;M<5;M++)for(var D=m[(M+4)%5],F=m[(M+1)%5],O=F.high,z=F.low,B=D.high^(O<<1|z>>>31),w=D.low^(z<<1|O>>>31),_=0;_<5;_++){var R=b[M+5*_];R.high^=B,R.low^=w}for(var H=1;H<25;H++){var B,w,R=b[H],j=R.high,P=R.low,k=x[H];k<32?(B=j<<k|P>>>32-k,w=P<<k|j>>>32-k):(B=P<<k-32|j>>>64-k,w=j<<k-32|P>>>64-k);var I=m[d[H]];I.high=B,I.low=w}var T=m[0],N=b[0];T.high=N.high,T.low=N.low;for(var M=0;M<5;M++)for(var _=0;_<5;_++){var H=M+5*_,R=b[H],W=m[H],$=m[(M+1)%5+5*_],ne=m[(M+2)%5+5*_];R.high=W.high^~$.high&ne.high,R.low=W.low^~$.low&ne.low}var R=b[0],Y=h[L];R.high^=Y.high,R.low^=Y.low}},_doFinalize:function(){var v=this._data,E=v.words;this._nDataBytes*8;var b=v.sigBytes*8,p=this.blockSize*32;E[b>>>5]|=1<<24-b%32,E[(o.ceil((b+1)/p)*p>>>5)-1]|=128,v.sigBytes=E.length*4,this._process();for(var y=this._state,A=this.cfg.outputLength/8,C=A/8,R=[],L=0;L<C;L++){var M=y[L],B=M.high,w=M.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,R.push(w),R.push(B)}return new s.init(R,A)},clone:function(){for(var v=l.clone.call(this),E=v._state=this._state.slice(0),b=0;b<25;b++)E[b]=E[b].clone();return v}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Hn)),Hn.exports}var qn={exports:{}},gr;function ns(){return gr||(gr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){/** @preserve
|
|
56
|
+
`,Ua=!1,ml=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gl;o.nextTick(function(){Ua||(typeof window<"u"&&window.document&&window.document.documentElement&&fl(n,{prepend:!0}),Ua=!0)})},xl=["icon","primaryColor","secondaryColor"];function yl(e,n){if(e==null)return{};var t=pl(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function pl(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}function Jt(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){bl(e,r,t[r])})}return e}function bl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vl(e){var n=e.primaryColor,t=e.secondaryColor;Wt.primaryColor=n,Wt.secondaryColor=t||Ga(n),Wt.calculated=!!t}function Sl(){return Jt({},Wt)}var Bt=function(n,t){var a=Jt({},n,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=yl(a,xl),f=Wt;if(i&&(f={primaryColor:i,secondaryColor:s||Ga(i)}),ml(),hl(ja(r),"icon should be icon definiton, but got ".concat(r)),!ja(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=Jt({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),An(c.icon,"svg-".concat(c.name),Jt({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Bt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Bt.inheritAttrs=!1,Bt.displayName="IconBase",Bt.getTwoToneColors=Sl,Bt.setTwoToneColors=vl;const kn=Bt;function Cl(e,n){return Tl(e)||kl(e,n)||Al(e,n)||wl()}function wl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Al(e,n){if(e){if(typeof e=="string")return $a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $a(e,n)}}function $a(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function kl(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Tl(e){if(Array.isArray(e))return e}function Za(e){var n=Wa(e),t=Cl(n,2),a=t[0],r=t[1];return kn.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Bl(){var e=kn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var El=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function _l(e,n){return Ol(e)||Rl(e,n)||Il(e,n)||Dl()}function Dl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Il(e,n){if(e){if(typeof e=="string")return Ya(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ya(e,n)}}function Ya(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Rl(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(n&&a.length===n));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Ol(e){if(Array.isArray(e))return e}function Ka(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Tn(e,r,t[r])})}return e}function Tn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ll(e,n){if(e==null)return{};var t=Nl(e,n),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Nl(e,n){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(n.indexOf(r)>=0)&&(t[r]=e[r]);return t}Za("#1890ff");var Et=function(n,t){var a,r=Ka({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,x=r.onClick,d=Ll(r,El),h=(a={anticon:!0},Tn(a,"anticon-".concat(s.name),!!s.name),Tn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&x&&(g=-1,d.tabindex=g);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=Wa(u),b=_l(E,2),p=b[0],y=b[1];return o.createVNode("span",Ka({role:"img","aria-label":s.name},d,{onClick:x,class:h}),[o.createVNode(kn,{class:m,icon:s,primaryColor:p,secondaryColor:y,style:v},null)])};Et.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Et.displayName="AntdIcon",Et.inheritAttrs=!1,Et.getTwoToneColor=Bl,Et.setTwoToneColor=Za;const Qa=Et;var zl={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Fl=zl;function Xa(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Ml(e,r,t[r])})}return e}function Ml(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Bn=function(n,t){var a=Xa({},n,t.attrs);return o.createVNode(Qa,Xa({},a,{icon:Fl}),null)};Bn.displayName="CloseOutlined",Bn.inheritAttrs=!1;const Pl=Bn;var Hl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const ql=Hl;function Ja(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Vl(e,r,t[r])})}return e}function Vl(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var En=function(n,t){var a=Ja({},n,t.attrs);return o.createVNode(Qa,Ja({},a,{icon:ql}),null)};En.displayName="LoadingOutlined",En.inheritAttrs=!1;const jl=En,Gl=o.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ie.Spin},setup(){return{indicator:o.h(jl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Md="",ue=(e,n)=>{const t=e.__vccOpts||e;for(const[a,r]of n)t[a]=r;return t},Wl={class:"spin-wrapper"};function Ul(e,n,t,a,r,i){const s=o.resolveComponent("a-spin");return o.openBlock(),o.createElementBlock("div",Wl,[e.spinning?(o.openBlock(),o.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):o.renderSlot(e.$slots,"default",{key:1})])}const _t=ue(Gl,[["render",Ul]]),$l=o.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ie.Skeleton}});function Zl(e,n,t,a,r,i){const s=o.resolveComponent("a-skeleton");return o.openBlock(),o.createBlock(s,{active:"",loading:e.loading},{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const en=ue($l,[["render",Zl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ge=(e,n)=>{if(e.install=t=>{for(const a of[e,...Object.values(n??{})])t.component(a.name,a)},n)for(const[t,a]of Object.entries(n))e[t]=a;return e},ve={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},me=e=>{const n={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];n[t]={type:a==null?void 0:a.constructor,default:a}}return n},_n={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Dn=me(_n),Yl=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],pe=(e,n=[])=>{const t=Ne.without(Yl,...n);return o.computed(()=>Ne.pick(e,t))},In="EVENT_BUS",ze="GLOBAL_CONFIG",Ce="GLOBAL_MODEL",Oe="REQUEST_MODEL",er="GLOBAL_TOKEN",Ut="REFRESH_PAGE",tr="MODAL_MODEL",gt="LOADED_DATA",at=18,nr="ygt",or=((p0=window==null?void 0:window.config)==null?void 0:p0.indicatorURL)||"";(b0=window==null?void 0:window.config)!=null&&b0.uploadPath;const ar=((v0=window==null?void 0:window.config)==null?void 0:v0.routerBaseURL)||"./",Kl=((S0=window==null?void 0:window.config)==null?void 0:S0.erdURL)||"",_e=(e,n)=>{o.watch(()=>e.id,t=>{const a=o.inject(In,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,n)},{immediate:!0})},we=e=>{const n=e.events,t=e.id,a=o.inject(In,{emitEvent:(i,s)=>{}}),{touchEventId:r}=o.inject(ze,{touchEventId:o.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;n.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Dt=(e,n)=>{let{name:t="name",value:a="value",type:r="type"}=n||{};t=t==null?void 0:t.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const u=e[c],x=u[t]||"",d=u[a]||"",h=u[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:x,value:d,...u}),i.set(h,m)}else i.set(h,[{name:x,value:d,...u}])}const l=[],f=[];for(const[c,u]of i)if(f.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const x of u)l.includes(x.name)||l.push(x.name);else l.push(...u.map(x=>x.name));return{dimensions:l,dataset:f}};var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ql(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),t}var ir={exports:{}};function Xl(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Rn={exports:{}};const Jl=Ql(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lr;function ce(){return lr||(lr=1,function(e,n){(function(t,a){e.exports=a()})(le,function(){var t=t||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof le<"u"&&le.crypto&&(i=le.crypto),!i&&typeof Xl=="function")try{i=Jl}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(p){var y;return b.prototype=p,y=new b,b.prototype=null,y}}(),f={},c=f.lib={},u=c.Base=function(){return{extend:function(b){var p=l(this);return b&&p.mixIn(b),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var p in b)b.hasOwnProperty(p)&&(this[p]=b[p]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=u.extend({init:function(b,p){b=this.words=b||[],p!=r?this.sigBytes=p:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var p=this.words,y=b.words,k=this.sigBytes,C=b.sigBytes;if(this.clamp(),k%4)for(var R=0;R<C;R++){var L=y[R>>>2]>>>24-R%4*8&255;p[k+R>>>2]|=L<<24-(k+R)%4*8}else for(var z=0;z<C;z+=4)p[k+z>>>2]=y[z>>>2];return this.sigBytes+=C,this},clamp:function(){var b=this.words,p=this.sigBytes;b[p>>>2]&=4294967295<<32-p%4*8,b.length=a.ceil(p/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var p=[],y=0;y<b;y+=4)p.push(s());return new x.init(p,b)}}),d=f.enc={},h=d.Hex={stringify:function(b){for(var p=b.words,y=b.sigBytes,k=[],C=0;C<y;C++){var R=p[C>>>2]>>>24-C%4*8&255;k.push((R>>>4).toString(16)),k.push((R&15).toString(16))}return k.join("")},parse:function(b){for(var p=b.length,y=[],k=0;k<p;k+=2)y[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new x.init(y,p/2)}},m=d.Latin1={stringify:function(b){for(var p=b.words,y=b.sigBytes,k=[],C=0;C<y;C++){var R=p[C>>>2]>>>24-C%4*8&255;k.push(String.fromCharCode(R))}return k.join("")},parse:function(b){for(var p=b.length,y=[],k=0;k<p;k++)y[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new x.init(y,p)}},g=d.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var p,y=this._data,k=y.words,C=y.sigBytes,R=this.blockSize,L=R*4,z=C/L;b?z=a.ceil(z):z=a.max((z|0)-this._minBufferSize,0);var B=z*R,w=a.min(B*4,C);if(B){for(var _=0;_<B;_+=R)this._doProcessBlock(k,_);p=k.splice(0,B),y.sigBytes-=w}return new x.init(p,w)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(b){return function(p,y){return new b.init(y).finalize(p)}},_createHmacHelper:function(b){return function(p,y){return new E.HMAC.init(b,y).finalize(p)}}});var E=f.algo={};return f}(Math);return t})}(Rn)),Rn.exports}var On={exports:{}},sr;function tn(){return sr||(sr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),f.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=a?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,x=[],d=0;d<u;d++){var h=c[d];x.push(h.high),x.push(h.low)}return l.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),x=u.length,d=0;d<x;d++)u[d]=u[d].clone();return c}})}(),t})}(On)),On.exports}var Ln={exports:{}},cr;function es(){return cr||(cr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,u=[],x=0;x<c;x++)u[x>>>2]|=f[x]<<24-x%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Ln)),Ln.exports}var Nn={exports:{}},fr;function ts(){return fr||(fr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,u=f.sigBytes,x=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=f.charCodeAt(x)<<16-x%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,x=[],d=0;d<u;d+=2){var h=l(c[d>>>2]>>>16-d%4*8&65535);x.push(String.fromCharCode(h))}return x.join("")},parse:function(f){for(var c=f.length,u=[],x=0;x<c;x++)u[x>>>1]|=l(f.charCodeAt(x)<<16-x%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Nn)),Nn.exports}var zn={exports:{}},dr;function It(){return dr||(dr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(f){var c=f.words,u=f.sigBytes,x=this._map;f.clamp();for(var d=[],h=0;h<u;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|g<<8|v,b=0;b<4&&h+b*.75<u;b++)d.push(x.charAt(E>>>6*(3-b)&63));var p=x.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(f){var c=f.length,u=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var d=0;d<u.length;d++)x[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return l(f,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64})}(zn)),zn.exports}var Fn={exports:{}},ur;function ns(){return ur||(ur=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(f,c=!0){var u=f.words,x=f.sigBytes,d=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<x;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,E=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|v<<8|E,p=0;p<4&&m+p*.75<x;p++)h.push(d.charAt(b>>>6*(3-p)&63));var y=d.charAt(64);if(y)for(;h.length%4;)h.push(y);return h.join("")},parse:function(f,c=!0){var u=f.length,x=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<x.length;h++)d[x.charCodeAt(h)]=h}var m=x.charAt(64);if(m){var g=f.indexOf(m);g!==-1&&(u=g)}return l(f,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,u){for(var x=[],d=0,h=0;h<c;h++)if(h%4){var m=u[f.charCodeAt(h-1)]<<h%4*2,g=u[f.charCodeAt(h)]>>>6-h%4*2,v=m|g;x[d>>>2]|=v<<24-d%4*8,d++}return i.create(x,d)}}(),t.enc.Base64url})}(Fn)),Fn.exports}var Mn={exports:{}},hr;function Rt(){return hr||(hr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var u=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var E=0;E<16;E++){var b=v+E,p=g[b];g[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var y=this._hash.words,k=g[v+0],C=g[v+1],R=g[v+2],L=g[v+3],z=g[v+4],B=g[v+5],w=g[v+6],_=g[v+7],S=g[v+8],D=g[v+9],F=g[v+10],O=g[v+11],P=g[v+12],H=g[v+13],j=g[v+14],M=g[v+15],A=y[0],I=y[1],T=y[2],N=y[3];A=x(A,I,T,N,k,7,c[0]),N=x(N,A,I,T,C,12,c[1]),T=x(T,N,A,I,R,17,c[2]),I=x(I,T,N,A,L,22,c[3]),A=x(A,I,T,N,z,7,c[4]),N=x(N,A,I,T,B,12,c[5]),T=x(T,N,A,I,w,17,c[6]),I=x(I,T,N,A,_,22,c[7]),A=x(A,I,T,N,S,7,c[8]),N=x(N,A,I,T,D,12,c[9]),T=x(T,N,A,I,F,17,c[10]),I=x(I,T,N,A,O,22,c[11]),A=x(A,I,T,N,P,7,c[12]),N=x(N,A,I,T,H,12,c[13]),T=x(T,N,A,I,j,17,c[14]),I=x(I,T,N,A,M,22,c[15]),A=d(A,I,T,N,C,5,c[16]),N=d(N,A,I,T,w,9,c[17]),T=d(T,N,A,I,O,14,c[18]),I=d(I,T,N,A,k,20,c[19]),A=d(A,I,T,N,B,5,c[20]),N=d(N,A,I,T,F,9,c[21]),T=d(T,N,A,I,M,14,c[22]),I=d(I,T,N,A,z,20,c[23]),A=d(A,I,T,N,D,5,c[24]),N=d(N,A,I,T,j,9,c[25]),T=d(T,N,A,I,L,14,c[26]),I=d(I,T,N,A,S,20,c[27]),A=d(A,I,T,N,H,5,c[28]),N=d(N,A,I,T,R,9,c[29]),T=d(T,N,A,I,_,14,c[30]),I=d(I,T,N,A,P,20,c[31]),A=h(A,I,T,N,B,4,c[32]),N=h(N,A,I,T,S,11,c[33]),T=h(T,N,A,I,O,16,c[34]),I=h(I,T,N,A,j,23,c[35]),A=h(A,I,T,N,C,4,c[36]),N=h(N,A,I,T,z,11,c[37]),T=h(T,N,A,I,_,16,c[38]),I=h(I,T,N,A,F,23,c[39]),A=h(A,I,T,N,H,4,c[40]),N=h(N,A,I,T,k,11,c[41]),T=h(T,N,A,I,L,16,c[42]),I=h(I,T,N,A,w,23,c[43]),A=h(A,I,T,N,D,4,c[44]),N=h(N,A,I,T,P,11,c[45]),T=h(T,N,A,I,M,16,c[46]),I=h(I,T,N,A,R,23,c[47]),A=m(A,I,T,N,k,6,c[48]),N=m(N,A,I,T,_,10,c[49]),T=m(T,N,A,I,j,15,c[50]),I=m(I,T,N,A,B,21,c[51]),A=m(A,I,T,N,P,6,c[52]),N=m(N,A,I,T,L,10,c[53]),T=m(T,N,A,I,F,15,c[54]),I=m(I,T,N,A,C,21,c[55]),A=m(A,I,T,N,S,6,c[56]),N=m(N,A,I,T,M,10,c[57]),T=m(T,N,A,I,w,15,c[58]),I=m(I,T,N,A,H,21,c[59]),A=m(A,I,T,N,z,6,c[60]),N=m(N,A,I,T,O,10,c[61]),T=m(T,N,A,I,R,15,c[62]),I=m(I,T,N,A,D,21,c[63]),y[0]=y[0]+A|0,y[1]=y[1]+I|0,y[2]=y[2]+T|0,y[3]=y[3]+N|0},_doFinalize:function(){var g=this._data,v=g.words,E=this._nDataBytes*8,b=g.sigBytes*8;v[b>>>5]|=128<<24-b%32;var p=a.floor(E/4294967296),y=E;v[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,C=k.words,R=0;R<4;R++){var L=C[R];C[R]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return k},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function x(g,v,E,b,p,y,k){var C=g+(v&E|~v&b)+p+k;return(C<<y|C>>>32-y)+v}function d(g,v,E,b,p,y,k){var C=g+(v&b|E&~b)+p+k;return(C<<y|C>>>32-y)+v}function h(g,v,E,b,p,y,k){var C=g+(v^E^b)+p+k;return(C<<y|C>>>32-y)+v}function m(g,v,E,b,p,y,k){var C=g+(E^(v|~b))+p+k;return(C<<y|C>>>32-y)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(Mn)),Mn.exports}var Pn={exports:{}},gr;function Hn(){return gr||(gr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,x){for(var d=this._hash.words,h=d[0],m=d[1],g=d[2],v=d[3],E=d[4],b=0;b<80;b++){if(b<16)f[b]=u[x+b]|0;else{var p=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=p<<1|p>>>31}var y=(h<<5|h>>>27)+E+f[b];b<20?y+=(m&g|~m&v)+1518500249:b<40?y+=(m^g^v)+1859775393:b<60?y+=(m&g|m&v|g&v)-1894007588:y+=(m^g^v)-899497514,E=v,v=g,g=m<<30|m>>>2,m=h,h=y}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+v|0,d[4]=d[4]+E|0},_doFinalize:function(){var u=this._data,x=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return x[h>>>5]|=128<<24-h%32,x[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),x[(h+64>>>9<<4)+15]=d,u.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Pn)),Pn.exports}var qn={exports:{}},mr;function xr(){return mr||(mr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],u=[];(function(){function h(E){for(var b=a.sqrt(E),p=2;p<=b;p++)if(!(E%p))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var g=2,v=0;v<64;)h(g)&&(v<8&&(c[v]=m(a.pow(g,1/2))),u[v]=m(a.pow(g,1/3)),v++),g++})();var x=[],d=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,v=g[0],E=g[1],b=g[2],p=g[3],y=g[4],k=g[5],C=g[6],R=g[7],L=0;L<64;L++){if(L<16)x[L]=h[m+L]|0;else{var z=x[L-15],B=(z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3,w=x[L-2],_=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;x[L]=B+x[L-7]+_+x[L-16]}var S=y&k^~y&C,D=v&E^v&b^E&b,F=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),O=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),P=R+O+S+u[L]+x[L],H=F+D;R=C,C=k,k=y,y=p+P|0,p=b,b=E,E=v,v=P+H|0}g[0]=g[0]+v|0,g[1]=g[1]+E|0,g[2]=g[2]+b|0,g[3]=g[3]+p|0,g[4]=g[4]+y|0,g[5]=g[5]+k|0,g[6]=g[6]+C|0,g[7]=g[7]+R|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,v=h.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(d),r.HmacSHA256=l._createHmacHelper(d)}(Math),t.SHA256})}(qn)),qn.exports}var Vn={exports:{}},yr;function os(){return yr||(yr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),xr())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(f),a.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Vn)),Vn.exports}var jn={exports:{}},pr;function br(){return pr||(pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn())})(le,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,f=s.WordArray,c=a.algo;function u(){return l.create.apply(l,arguments)}var x=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var m=0;m<80;m++)d[m]=u()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var v=this._hash.words,E=v[0],b=v[1],p=v[2],y=v[3],k=v[4],C=v[5],R=v[6],L=v[7],z=E.high,B=E.low,w=b.high,_=b.low,S=p.high,D=p.low,F=y.high,O=y.low,P=k.high,H=k.low,j=C.high,M=C.low,A=R.high,I=R.low,T=L.high,N=L.low,U=z,$=B,ne=w,Y=_,Q=S,Z=D,J=F,ae=O,he=P,fe=H,Ie=j,He=M,qe=A,$e=I,Ze=T,et=N,Ee=0;Ee<80;Ee++){var Se,Re,je=d[Ee];if(Ee<16)Re=je.high=m[g+Ee*2]|0,Se=je.low=m[g+Ee*2+1]|0;else{var tt=d[Ee-15],Me=tt.high,Ve=tt.low,V=(Me>>>1|Ve<<31)^(Me>>>8|Ve<<24)^Me>>>7,W=(Ve>>>1|Me<<31)^(Ve>>>8|Me<<24)^(Ve>>>7|Me<<25),K=d[Ee-2],te=K.high,oe=K.low,ee=(te>>>19|oe<<13)^(te<<3|oe>>>29)^te>>>6,X=(oe>>>19|te<<13)^(oe<<3|te>>>29)^(oe>>>6|te<<26),de=d[Ee-7],ye=de.high,xe=de.low,De=d[Ee-16],nt=De.high,lt=De.low;Se=W+xe,Re=V+ye+(Se>>>0<W>>>0?1:0),Se=Se+X,Re=Re+ee+(Se>>>0<X>>>0?1:0),Se=Se+lt,Re=Re+nt+(Se>>>0<lt>>>0?1:0),je.high=Re,je.low=Se}var Ea=he&Ie^~he&qe,Ct=fe&He^~fe&$e,Yt=U&ne^U&Q^ne&Q,mn=$&Y^$&Z^Y&Z,_a=(U>>>28|$<<4)^(U<<30|$>>>2)^(U<<25|$>>>7),C0=($>>>28|U<<4)^($<<30|U>>>2)^($<<25|U>>>7),Sd=(he>>>14|fe<<18)^(he>>>18|fe<<14)^(he<<23|fe>>>9),Cd=(fe>>>14|he<<18)^(fe>>>18|he<<14)^(fe<<23|he>>>9),w0=x[Ee],wd=w0.high,A0=w0.low,Ye=et+Cd,wt=Ze+Sd+(Ye>>>0<et>>>0?1:0),Ye=Ye+Ct,wt=wt+Ea+(Ye>>>0<Ct>>>0?1:0),Ye=Ye+A0,wt=wt+wd+(Ye>>>0<A0>>>0?1:0),Ye=Ye+Se,wt=wt+Re+(Ye>>>0<Se>>>0?1:0),k0=C0+mn,Ad=_a+Yt+(k0>>>0<C0>>>0?1:0);Ze=qe,et=$e,qe=Ie,$e=He,Ie=he,He=fe,fe=ae+Ye|0,he=J+wt+(fe>>>0<ae>>>0?1:0)|0,J=Q,ae=Z,Q=ne,Z=Y,ne=U,Y=$,$=Ye+k0|0,U=wt+Ad+($>>>0<Ye>>>0?1:0)|0}B=E.low=B+$,E.high=z+U+(B>>>0<$>>>0?1:0),_=b.low=_+Y,b.high=w+ne+(_>>>0<Y>>>0?1:0),D=p.low=D+Z,p.high=S+Q+(D>>>0<Z>>>0?1:0),O=y.low=O+ae,y.high=F+J+(O>>>0<ae>>>0?1:0),H=k.low=H+fe,k.high=P+he+(H>>>0<fe>>>0?1:0),M=C.low=M+He,C.high=j+Ie+(M>>>0<He>>>0?1:0),I=R.low=I+$e,R.high=A+qe+(I>>>0<$e>>>0?1:0),N=L.low=N+et,L.high=T+Ze+(N>>>0<et>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,E=m.sigBytes*8;g[E>>>5]|=128<<24-E%32,g[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(E+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(jn)),jn.exports}var Gn={exports:{}},vr;function as(){return vr||(vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn(),br())})(le,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=f._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=f._createHelper(c),a.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}(Gn)),Gn.exports}var Wn={exports:{}},Sr;function rs(){return Sr||(Sr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),tn())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,u=r.algo,x=[],d=[],h=[];(function(){for(var v=1,E=0,b=0;b<24;b++){x[v+5*E]=(b+1)*(b+2)/2%64;var p=E%5,y=(2*v+3*E)%5;v=p,E=y}for(var v=0;v<5;v++)for(var E=0;E<5;E++)d[v+5*E]=E+(2*v+3*E)%5*5;for(var k=1,C=0;C<24;C++){for(var R=0,L=0,z=0;z<7;z++){if(k&1){var B=(1<<z)-1;B<32?L^=1<<B:R^=1<<B-32}k&128?k=k<<1^113:k<<=1}h[C]=c.create(R,L)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var g=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],E=0;E<25;E++)v[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,E){for(var b=this._state,p=this.blockSize/2,y=0;y<p;y++){var k=v[E+2*y],C=v[E+2*y+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var R=b[y];R.high^=C,R.low^=k}for(var L=0;L<24;L++){for(var z=0;z<5;z++){for(var B=0,w=0,_=0;_<5;_++){var R=b[z+5*_];B^=R.high,w^=R.low}var S=m[z];S.high=B,S.low=w}for(var z=0;z<5;z++)for(var D=m[(z+4)%5],F=m[(z+1)%5],O=F.high,P=F.low,B=D.high^(O<<1|P>>>31),w=D.low^(P<<1|O>>>31),_=0;_<5;_++){var R=b[z+5*_];R.high^=B,R.low^=w}for(var H=1;H<25;H++){var B,w,R=b[H],j=R.high,M=R.low,A=x[H];A<32?(B=j<<A|M>>>32-A,w=M<<A|j>>>32-A):(B=M<<A-32|j>>>64-A,w=j<<A-32|M>>>64-A);var I=m[d[H]];I.high=B,I.low=w}var T=m[0],N=b[0];T.high=N.high,T.low=N.low;for(var z=0;z<5;z++)for(var _=0;_<5;_++){var H=z+5*_,R=b[H],U=m[H],$=m[(z+1)%5+5*_],ne=m[(z+2)%5+5*_];R.high=U.high^~$.high&ne.high,R.low=U.low^~$.low&ne.low}var R=b[0],Y=h[L];R.high^=Y.high,R.low^=Y.low}},_doFinalize:function(){var v=this._data,E=v.words;this._nDataBytes*8;var b=v.sigBytes*8,p=this.blockSize*32;E[b>>>5]|=1<<24-b%32,E[(a.ceil((b+1)/p)*p>>>5)-1]|=128,v.sigBytes=E.length*4,this._process();for(var y=this._state,k=this.cfg.outputLength/8,C=k/8,R=[],L=0;L<C;L++){var z=y[L],B=z.high,w=z.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,R.push(w),R.push(B)}return new s.init(R,k)},clone:function(){for(var v=l.clone.call(this),E=v._state=this._state.slice(0),b=0;b<25;b++)E[b]=E[b].clone();return v}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Wn)),Wn.exports}var Un={exports:{}},Cr;function is(){return Cr||(Cr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -64,56 +64,56 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(o){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,R){for(var L=0;L<16;L++){var M=R+L,B=C[M];C[M]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var w=this._hash.words,_=h.words,S=m.words,D=c.words,F=u.words,O=x.words,z=d.words,H,j,P,k,I,T,N,W,$,ne;T=H=w[0],N=j=w[1],W=P=w[2],$=k=w[3],ne=I=w[4];for(var Y,L=0;L<80;L+=1)Y=H+C[R+D[L]]|0,L<16?Y+=v(j,P,k)+_[0]:L<32?Y+=E(j,P,k)+_[1]:L<48?Y+=b(j,P,k)+_[2]:L<64?Y+=p(j,P,k)+_[3]:Y+=y(j,P,k)+_[4],Y=Y|0,Y=A(Y,O[L]),Y=Y+I|0,H=I,I=k,k=A(P,10),P=j,j=Y,Y=T+C[R+F[L]]|0,L<16?Y+=y(N,W,$)+S[0]:L<32?Y+=p(N,W,$)+S[1]:L<48?Y+=b(N,W,$)+S[2]:L<64?Y+=E(N,W,$)+S[3]:Y+=v(N,W,$)+S[4],Y=Y|0,Y=A(Y,z[L]),Y=Y+ne|0,T=ne,ne=$,$=A(W,10),W=N,N=Y;Y=w[1]+P+$|0,w[1]=w[2]+k+ne|0,w[2]=w[3]+I+T|0,w[3]=w[4]+H+N|0,w[4]=w[0]+j+W|0,w[0]=Y},_doFinalize:function(){var C=this._data,R=C.words,L=this._nDataBytes*8,M=C.sigBytes*8;R[M>>>5]|=128<<24-M%32,R[(M+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,C.sigBytes=(R.length+1)*4,this._process();for(var B=this._hash,w=B.words,_=0;_<5;_++){var S=w[_];w[_]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return B},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,R,L){return C^R^L}function E(C,R,L){return C&R|~C&L}function b(C,R,L){return(C|~R)^L}function p(C,R,L){return C&L|R&~L}function y(C,R,L){return C^(R|~L)}function A(C,R){return C<<R|C>>>32-R}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(qn)),qn.exports}var Vn={exports:{}},mr;function jn(){return mr||(mr=1,function(e,n){(function(t,o){e.exports=o(ce())})(le,function(t){(function(){var o=t,r=o.lib,i=r.Base,s=o.enc,l=s.Utf8,f=o.algo;f.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var x=c.blockSize,d=x*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),g=h.words,v=m.words,E=0;E<x;E++)g[E]^=1549556828,v[E]^=909522486;h.sigBytes=m.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,x=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(x));return d}})})()})}(Vn)),Vn.exports}var Gn={exports:{}},xr;function os(){return xr||(xr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Nn(),jn())})(le,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.SHA1,c=l.HMAC,u=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,d){for(var h=this.cfg,m=c.create(h.hasher,x),g=s.create(),v=s.create([1]),E=g.words,b=v.words,p=h.keySize,y=h.iterations;E.length<p;){var A=m.update(d).finalize(v);m.reset();for(var C=A.words,R=C.length,L=A,M=1;M<y;M++){L=m.finalize(L),m.reset();for(var B=L.words,w=0;w<R;w++)C[w]^=B[w]}g.concat(A),b[0]++}return g.sigBytes=p*4,g}});o.PBKDF2=function(x,d,h){return u.create(h).compute(x,d)}}(),t.PBKDF2})}(Gn)),Gn.exports}var Wn={exports:{}},yr;function bt(){return yr||(yr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Nn(),jn())})(le,function(t){return function(){var o=t,r=o.lib,i=r.Base,s=r.WordArray,l=o.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,x){for(var d,h=this.cfg,m=h.hasher.create(),g=s.create(),v=g.words,E=h.keySize,b=h.iterations;v.length<E;){d&&m.update(d),d=m.update(u).finalize(x),m.reset();for(var p=1;p<b;p++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=E*4,g}});o.EvpKDF=function(u,x,d){return c.create(d).compute(u,x)}}(),t.EvpKDF})}(Wn)),Wn.exports}var Un={exports:{}},pr;function Ie(){return pr||(pr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),bt())})(le,function(t){t.lib.Cipher||function(o){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var u=c.Base64,x=r.algo,d=x.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(B,w){return this.create(this._ENC_XFORM_MODE,B,w)},createDecryptor:function(B,w){return this.create(this._DEC_XFORM_MODE,B,w)},init:function(B,w,_){this.cfg=this.cfg.extend(_),this._xformMode=B,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(w){return typeof w=="string"?M:C}return function(w){return{encrypt:function(_,S,D){return B(S).encrypt(w,_,S,D)},decrypt:function(_,S,D){return B(S).decrypt(w,_,S,D)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(B,w){return this.Encryptor.create(B,w)},createDecryptor:function(B,w){return this.Decryptor.create(B,w)},init:function(B,w){this._cipher=B,this._iv=w}}),v=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(_,S){var D=this._cipher,F=D.blockSize;w.call(this,_,S,F),D.encryptBlock(_,S),this._prevBlock=_.slice(S,S+F)}}),B.Decryptor=B.extend({processBlock:function(_,S){var D=this._cipher,F=D.blockSize,O=_.slice(S,S+F);D.decryptBlock(_,S),w.call(this,_,S,F),this._prevBlock=O}});function w(_,S,D){var F,O=this._iv;O?(F=O,this._iv=o):F=this._prevBlock;for(var z=0;z<D;z++)_[S+z]^=F[z]}return B}(),E=r.pad={},b=E.Pkcs7={pad:function(B,w){for(var _=w*4,S=_-B.sigBytes%_,D=S<<24|S<<16|S<<8|S,F=[],O=0;O<S;O+=4)F.push(D);var z=l.create(F,S);B.concat(z)},unpad:function(B){var w=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:b}),reset:function(){var B;h.reset.call(this);var w=this.cfg,_=w.iv,S=w.mode;this._xformMode==this._ENC_XFORM_MODE?B=S.createEncryptor:(B=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,_&&_.words):(this._mode=B.call(S,this,_&&_.words),this._mode.__creator=B)},_doProcessBlock:function(B,w){this._mode.processBlock(B,w)},_doFinalize:function(){var B,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),w.unpad(B)),B},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),y=r.format={},A=y.OpenSSL={stringify:function(B){var w,_=B.ciphertext,S=B.salt;return S?w=l.create([1398893684,1701076831]).concat(S).concat(_):w=_,w.toString(u)},parse:function(B){var w,_=u.parse(B),S=_.words;return S[0]==1398893684&&S[1]==1701076831&&(w=l.create(S.slice(2,4)),S.splice(0,4),_.sigBytes-=16),p.create({ciphertext:_,salt:w})}},C=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(B,w,_,S){S=this.cfg.extend(S);var D=B.createEncryptor(_,S),F=D.finalize(w),O=D.cfg;return p.create({ciphertext:F,key:_,iv:O.iv,algorithm:B,mode:O.mode,padding:O.padding,blockSize:B.blockSize,formatter:S.format})},decrypt:function(B,w,_,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=B.createDecryptor(_,S).finalize(w.ciphertext);return D},_parse:function(B,w){return typeof B=="string"?w.parse(B,this):B}}),R=r.kdf={},L=R.OpenSSL={execute:function(B,w,_,S){S||(S=l.random(64/8));var D=d.create({keySize:w+_}).compute(B,S),F=l.create(D.words.slice(w),_*4);return D.sigBytes=w*4,p.create({key:D,iv:F,salt:S})}},M=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:L}),encrypt:function(B,w,_,S){S=this.cfg.extend(S);var D=S.kdf.execute(_,B.keySize,B.ivSize);S.iv=D.iv;var F=C.encrypt.call(this,B,w,D.key,S);return F.mixIn(D),F},decrypt:function(B,w,_,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=S.kdf.execute(_,B.keySize,B.ivSize,w.salt);S.iv=D.iv;var F=C.decrypt.call(this,B,w,D.key,S);return F}})}()})}(Un)),Un.exports}var $n={exports:{}},br;function as(){return br||(br=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.mode.CFB=function(){var o=t.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),o.Decryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var x=0;x<l;x++)i[s+x]^=c[x]}return o}(),t.mode.CFB})}($n)),$n.exports}var Zn={exports:{}},vr;function rs(){return vr||(vr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.mode.CTR=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var x=u.slice(0);l.encryptBlock(x,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)i[s+d]^=x[d]}});return o.Decryptor=r,o}(),t.mode.CTR})}(Zn)),Zn.exports}var Yn={exports:{}},Sr;function is(){return Sr||(Sr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){/** @preserve
|
|
67
|
+
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),x=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,R){for(var L=0;L<16;L++){var z=R+L,B=C[z];C[z]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var w=this._hash.words,_=h.words,S=m.words,D=c.words,F=u.words,O=x.words,P=d.words,H,j,M,A,I,T,N,U,$,ne;T=H=w[0],N=j=w[1],U=M=w[2],$=A=w[3],ne=I=w[4];for(var Y,L=0;L<80;L+=1)Y=H+C[R+D[L]]|0,L<16?Y+=v(j,M,A)+_[0]:L<32?Y+=E(j,M,A)+_[1]:L<48?Y+=b(j,M,A)+_[2]:L<64?Y+=p(j,M,A)+_[3]:Y+=y(j,M,A)+_[4],Y=Y|0,Y=k(Y,O[L]),Y=Y+I|0,H=I,I=A,A=k(M,10),M=j,j=Y,Y=T+C[R+F[L]]|0,L<16?Y+=y(N,U,$)+S[0]:L<32?Y+=p(N,U,$)+S[1]:L<48?Y+=b(N,U,$)+S[2]:L<64?Y+=E(N,U,$)+S[3]:Y+=v(N,U,$)+S[4],Y=Y|0,Y=k(Y,P[L]),Y=Y+ne|0,T=ne,ne=$,$=k(U,10),U=N,N=Y;Y=w[1]+M+$|0,w[1]=w[2]+A+ne|0,w[2]=w[3]+I+T|0,w[3]=w[4]+H+N|0,w[4]=w[0]+j+U|0,w[0]=Y},_doFinalize:function(){var C=this._data,R=C.words,L=this._nDataBytes*8,z=C.sigBytes*8;R[z>>>5]|=128<<24-z%32,R[(z+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,C.sigBytes=(R.length+1)*4,this._process();for(var B=this._hash,w=B.words,_=0;_<5;_++){var S=w[_];w[_]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return B},clone:function(){var C=l.clone.call(this);return C._hash=this._hash.clone(),C}});function v(C,R,L){return C^R^L}function E(C,R,L){return C&R|~C&L}function b(C,R,L){return(C|~R)^L}function p(C,R,L){return C&L|R&~L}function y(C,R,L){return C^(R|~L)}function k(C,R){return C<<R|C>>>32-R}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(Un)),Un.exports}var $n={exports:{}},wr;function Zn(){return wr||(wr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,f=a.algo;f.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var x=c.blockSize,d=x*4;u.sigBytes>d&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),g=h.words,v=m.words,E=0;E<x;E++)g[E]^=1549556828,v[E]^=909522486;h.sigBytes=m.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,x=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(x));return d}})})()})}($n)),$n.exports}var Yn={exports:{}},Ar;function ls(){return Ar||(Ar=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Hn(),Zn())})(le,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.SHA1,c=l.HMAC,u=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,d){for(var h=this.cfg,m=c.create(h.hasher,x),g=s.create(),v=s.create([1]),E=g.words,b=v.words,p=h.keySize,y=h.iterations;E.length<p;){var k=m.update(d).finalize(v);m.reset();for(var C=k.words,R=C.length,L=k,z=1;z<y;z++){L=m.finalize(L),m.reset();for(var B=L.words,w=0;w<R;w++)C[w]^=B[w]}g.concat(k),b[0]++}return g.sigBytes=p*4,g}});a.PBKDF2=function(x,d,h){return u.create(h).compute(x,d)}}(),t.PBKDF2})}(Yn)),Yn.exports}var Kn={exports:{}},kr;function kt(){return kr||(kr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Hn(),Zn())})(le,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,x){for(var d,h=this.cfg,m=h.hasher.create(),g=s.create(),v=g.words,E=h.keySize,b=h.iterations;v.length<E;){d&&m.update(d),d=m.update(u).finalize(x),m.reset();for(var p=1;p<b;p++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=E*4,g}});a.EvpKDF=function(u,x,d){return c.create(d).compute(u,x)}}(),t.EvpKDF})}(Kn)),Kn.exports}var Qn={exports:{}},Tr;function Le(){return Tr||(Tr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),kt())})(le,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var u=c.Base64,x=r.algo,d=x.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(B,w){return this.create(this._ENC_XFORM_MODE,B,w)},createDecryptor:function(B,w){return this.create(this._DEC_XFORM_MODE,B,w)},init:function(B,w,_){this.cfg=this.cfg.extend(_),this._xformMode=B,this._key=w,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(w){return typeof w=="string"?z:C}return function(w){return{encrypt:function(_,S,D){return B(S).encrypt(w,_,S,D)},decrypt:function(_,S,D){return B(S).decrypt(w,_,S,D)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(B,w){return this.Encryptor.create(B,w)},createDecryptor:function(B,w){return this.Decryptor.create(B,w)},init:function(B,w){this._cipher=B,this._iv=w}}),v=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(_,S){var D=this._cipher,F=D.blockSize;w.call(this,_,S,F),D.encryptBlock(_,S),this._prevBlock=_.slice(S,S+F)}}),B.Decryptor=B.extend({processBlock:function(_,S){var D=this._cipher,F=D.blockSize,O=_.slice(S,S+F);D.decryptBlock(_,S),w.call(this,_,S,F),this._prevBlock=O}});function w(_,S,D){var F,O=this._iv;O?(F=O,this._iv=a):F=this._prevBlock;for(var P=0;P<D;P++)_[S+P]^=F[P]}return B}(),E=r.pad={},b=E.Pkcs7={pad:function(B,w){for(var _=w*4,S=_-B.sigBytes%_,D=S<<24|S<<16|S<<8|S,F=[],O=0;O<S;O+=4)F.push(D);var P=l.create(F,S);B.concat(P)},unpad:function(B){var w=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:b}),reset:function(){var B;h.reset.call(this);var w=this.cfg,_=w.iv,S=w.mode;this._xformMode==this._ENC_XFORM_MODE?B=S.createEncryptor:(B=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,_&&_.words):(this._mode=B.call(S,this,_&&_.words),this._mode.__creator=B)},_doProcessBlock:function(B,w){this._mode.processBlock(B,w)},_doFinalize:function(){var B,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),w.unpad(B)),B},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),y=r.format={},k=y.OpenSSL={stringify:function(B){var w,_=B.ciphertext,S=B.salt;return S?w=l.create([1398893684,1701076831]).concat(S).concat(_):w=_,w.toString(u)},parse:function(B){var w,_=u.parse(B),S=_.words;return S[0]==1398893684&&S[1]==1701076831&&(w=l.create(S.slice(2,4)),S.splice(0,4),_.sigBytes-=16),p.create({ciphertext:_,salt:w})}},C=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(B,w,_,S){S=this.cfg.extend(S);var D=B.createEncryptor(_,S),F=D.finalize(w),O=D.cfg;return p.create({ciphertext:F,key:_,iv:O.iv,algorithm:B,mode:O.mode,padding:O.padding,blockSize:B.blockSize,formatter:S.format})},decrypt:function(B,w,_,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=B.createDecryptor(_,S).finalize(w.ciphertext);return D},_parse:function(B,w){return typeof B=="string"?w.parse(B,this):B}}),R=r.kdf={},L=R.OpenSSL={execute:function(B,w,_,S){S||(S=l.random(64/8));var D=d.create({keySize:w+_}).compute(B,S),F=l.create(D.words.slice(w),_*4);return D.sigBytes=w*4,p.create({key:D,iv:F,salt:S})}},z=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:L}),encrypt:function(B,w,_,S){S=this.cfg.extend(S);var D=S.kdf.execute(_,B.keySize,B.ivSize);S.iv=D.iv;var F=C.encrypt.call(this,B,w,D.key,S);return F.mixIn(D),F},decrypt:function(B,w,_,S){S=this.cfg.extend(S),w=this._parse(w,S.format);var D=S.kdf.execute(_,B.keySize,B.ivSize,w.salt);S.iv=D.iv;var F=C.decrypt.call(this,B,w,D.key,S);return F}})}()})}(Qn)),Qn.exports}var Xn={exports:{}},Br;function ss(){return Br||(Br=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.mode.CFB=function(){var a=t.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var x=0;x<l;x++)i[s+x]^=c[x]}return a}(),t.mode.CFB})}(Xn)),Xn.exports}var Jn={exports:{}},Er;function cs(){return Er||(Er=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.mode.CTR=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var x=u.slice(0);l.encryptBlock(x,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)i[s+d]^=x[d]}});return a.Decryptor=r,a}(),t.mode.CTR})}(Jn)),Jn.exports}var eo={exports:{}},_r;function fs(){return _r||(_r=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){/** @preserve
|
|
68
68
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
69
69
|
* derived from CryptoJS.mode.CTR
|
|
70
70
|
* Jan Hruby jhruby.web@gmail.com
|
|
71
|
-
*/return t.mode.CTRGladman=function(){var o=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,u=l&255;f===255?(f=0,c===255?(c=0,u===255?u=0:++u):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=o.Encryptor=o.extend({processBlock:function(l,f){var c=this._cipher,u=c.blockSize,x=this._iv,d=this._counter;x&&(d=this._counter=x.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var m=0;m<u;m++)l[f+m]^=h[m]}});return o.Decryptor=s,o}(),t.mode.CTRGladman})}(Yn)),Yn.exports}var Kn={exports:{}},Cr;function ls(){return Cr||(Cr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.mode.OFB=function(){var o=t.lib.BlockCipherMode.extend(),r=o.Encryptor=o.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var x=0;x<f;x++)i[s+x]^=u[x]}});return o.Decryptor=r,o}(),t.mode.OFB})}(Kn)),Kn.exports}var Xn={exports:{}},wr;function ss(){return wr||(wr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.mode.ECB=function(){var o=t.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),o.Decryptor=o.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),o}(),t.mode.ECB})}(Xn)),Xn.exports}var Qn={exports:{}},kr;function cs(){return kr||(kr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.pad.AnsiX923={pad:function(o,r){var i=o.sigBytes,s=r*4,l=s-i%s,f=i+l-1;o.clamp(),o.words[f>>>2]|=l<<24-f%4*8,o.sigBytes+=l},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Ansix923})}(Qn)),Qn.exports}var Jn={exports:{}},Ar;function fs(){return Ar||(Ar=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.pad.Iso10126={pad:function(o,r){var i=r*4,s=i-o.sigBytes%i;o.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(o){var r=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=r}},t.pad.Iso10126})}(Jn)),Jn.exports}var eo={exports:{}},Tr;function ds(){return Tr||(Tr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.pad.Iso97971={pad:function(o,r){o.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(o,r)},unpad:function(o){t.pad.ZeroPadding.unpad(o),o.sigBytes--}},t.pad.Iso97971})}(eo)),eo.exports}var to={exports:{}},Br;function us(){return Br||(Br=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.pad.ZeroPadding={pad:function(o,r){var i=r*4;o.clamp(),o.sigBytes+=i-(o.sigBytes%i||i)},unpad:function(o){for(var r=o.words,i=o.sigBytes-1,i=o.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){o.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(to)),to.exports}var no={exports:{}},Er;function hs(){return Er||(Er=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(no)),no.exports}var oo={exports:{}},_r;function gs(){return _r||(_r=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Ie())})(le,function(t){return function(o){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(u){return u.ciphertext.toString(f)},parse:function(u){var x=f.parse(u);return s.create({ciphertext:x})}}}(),t.format.Hex})}(oo)),oo.exports}var ao={exports:{}},Dr;function ms(){return Dr||(Dr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Tt(),Bt(),bt(),Ie())})(le,function(t){return function(){var o=t,r=o.lib,i=r.BlockCipher,s=o.algo,l=[],f=[],c=[],u=[],x=[],d=[],h=[],m=[],g=[],v=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var A=0,C=0,y=0;y<256;y++){var R=C^C<<1^C<<2^C<<3^C<<4;R=R>>>8^R&255^99,l[A]=R,f[R]=A;var L=p[A],M=p[L],B=p[M],w=p[R]*257^R*16843008;c[A]=w<<24|w>>>8,u[A]=w<<16|w>>>16,x[A]=w<<8|w>>>24,d[A]=w;var w=B*16843009^M*65537^L*257^A*16843008;h[R]=w<<24|w>>>8,m[R]=w<<16|w>>>16,g[R]=w<<8|w>>>24,v[R]=w,A?(A=L^p[p[p[B^L]]],C^=p[p[C]]):A=C=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,A=y.words,C=y.sigBytes/4,R=this._nRounds=C+6,L=(R+1)*4,M=this._keySchedule=[],B=0;B<L;B++)B<C?M[B]=A[B]:(p=M[B-1],B%C?C>6&&B%C==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=E[B/C|0]<<24),M[B]=M[B-C]^p);for(var w=this._invKeySchedule=[],_=0;_<L;_++){var B=L-_;if(_%4)var p=M[B];else var p=M[B-4];_<4||B<=4?w[_]=p:w[_]=h[l[p>>>24]]^m[l[p>>>16&255]]^g[l[p>>>8&255]]^v[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,u,x,d,l)},decryptBlock:function(p,y){var A=p[y+1];p[y+1]=p[y+3],p[y+3]=A,this._doCryptBlock(p,y,this._invKeySchedule,h,m,g,v,f);var A=p[y+1];p[y+1]=p[y+3],p[y+3]=A},_doCryptBlock:function(p,y,A,C,R,L,M,B){for(var w=this._nRounds,_=p[y]^A[0],S=p[y+1]^A[1],D=p[y+2]^A[2],F=p[y+3]^A[3],O=4,z=1;z<w;z++){var H=C[_>>>24]^R[S>>>16&255]^L[D>>>8&255]^M[F&255]^A[O++],j=C[S>>>24]^R[D>>>16&255]^L[F>>>8&255]^M[_&255]^A[O++],P=C[D>>>24]^R[F>>>16&255]^L[_>>>8&255]^M[S&255]^A[O++],k=C[F>>>24]^R[_>>>16&255]^L[S>>>8&255]^M[D&255]^A[O++];_=H,S=j,D=P,F=k}var H=(B[_>>>24]<<24|B[S>>>16&255]<<16|B[D>>>8&255]<<8|B[F&255])^A[O++],j=(B[S>>>24]<<24|B[D>>>16&255]<<16|B[F>>>8&255]<<8|B[_&255])^A[O++],P=(B[D>>>24]<<24|B[F>>>16&255]<<16|B[_>>>8&255]<<8|B[S&255])^A[O++],k=(B[F>>>24]<<24|B[_>>>16&255]<<16|B[S>>>8&255]<<8|B[D&255])^A[O++];p[y]=H,p[y+1]=j,p[y+2]=P,p[y+3]=k},keySize:256/32});o.AES=i._createHelper(b)}(),t.AES})}(ao)),ao.exports}var ro={exports:{}},Rr;function xs(){return Rr||(Rr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Tt(),Bt(),bt(),Ie())})(le,function(t){return function(){var o=t,r=o.lib,i=r.WordArray,s=r.BlockCipher,l=o.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var E=this._key,b=E.words,p=[],y=0;y<56;y++){var A=f[y]-1;p[y]=b[A>>>5]>>>31-A%32&1}for(var C=this._subKeys=[],R=0;R<16;R++){for(var L=C[R]=[],M=u[R],y=0;y<24;y++)L[y/6|0]|=p[(c[y]-1+M)%28]<<31-y%6,L[4+(y/6|0)]|=p[28+(c[y+24]-1+M)%28]<<31-y%6;L[0]=L[0]<<1|L[0]>>>31;for(var y=1;y<7;y++)L[y]=L[y]>>>(y-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var B=this._invSubKeys=[],y=0;y<16;y++)B[y]=C[15-y]},encryptBlock:function(E,b){this._doCryptBlock(E,b,this._subKeys)},decryptBlock:function(E,b){this._doCryptBlock(E,b,this._invSubKeys)},_doCryptBlock:function(E,b,p){this._lBlock=E[b],this._rBlock=E[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var A=p[y],C=this._lBlock,R=this._rBlock,L=0,M=0;M<8;M++)L|=x[M][((R^A[M])&d[M])>>>0];this._lBlock=R,this._rBlock=C^L}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[b]=this._lBlock,E[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,b){var p=(this._lBlock>>>E^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<E}function g(E,b){var p=(this._rBlock>>>E^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<E}o.DES=s._createHelper(h);var v=l.TripleDES=s.extend({_doReset:function(){var E=this._key,b=E.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=b.slice(0,2),y=b.length<4?b.slice(0,2):b.slice(2,4),A=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(y)),this._des3=h.createEncryptor(i.create(A))},encryptBlock:function(E,b){this._des1.encryptBlock(E,b),this._des2.decryptBlock(E,b),this._des3.encryptBlock(E,b)},decryptBlock:function(E,b){this._des3.decryptBlock(E,b),this._des2.encryptBlock(E,b),this._des1.decryptBlock(E,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=s._createHelper(v)}(),t.TripleDES})}(ro)),ro.exports}var io={exports:{}},Ir;function ys(){return Ir||(Ir=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Tt(),Bt(),bt(),Ie())})(le,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=s.RC4=i.extend({_doReset:function(){for(var u=this._key,x=u.words,d=u.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var v=m%d,E=x[v>>>2]>>>24-v%4*8&255;g=(g+h[m]+E)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,x){u[x]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,x=this._i,d=this._j,h=0,m=0;m<4;m++){x=(x+1)%256,d=(d+u[x])%256;var g=u[x];u[x]=u[d],u[d]=g,h|=u[(u[x]+u[d])%256]<<24-m*8}return this._i=x,this._j=d,h}o.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});o.RC4Drop=i._createHelper(c)}(),t.RC4})}(io)),io.exports}var lo={exports:{}},Or;function ps(){return Or||(Or=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Tt(),Bt(),bt(),Ie())})(le,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],u=s.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,h=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(h){var E=h.words,b=E[0],p=E[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|A&4294901760,R=A<<16|y&65535;v[0]^=y,v[1]^=C,v[2]^=A,v[3]^=R,v[4]^=y,v[5]^=C,v[6]^=A,v[7]^=R;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,E=g>>>16,b=((v*v>>>17)+v*E>>>15)+E*E,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.Rabbit=i._createHelper(u)}(),t.Rabbit})}(lo)),lo.exports}var so={exports:{}},Lr;function bs(){return Lr||(Lr=1,function(e,n){(function(t,o,r){e.exports=o(ce(),Tt(),Bt(),bt(),Ie())})(le,function(t){return function(){var o=t,r=o.lib,i=r.StreamCipher,s=o.algo,l=[],f=[],c=[],u=s.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,h=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(h){var E=h.words,b=E[0],p=E[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|A&4294901760,R=A<<16|y&65535;g[0]^=y,g[1]^=C,g[2]^=A,g[3]^=R,g[4]^=y,g[5]^=C,g[6]^=A,g[7]^=R;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,E=g>>>16,b=((v*v>>>17)+v*E>>>15)+E*E,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}o.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(so)),so.exports}(function(e,n){(function(t,o,r){e.exports=o(ce(),Xt(),Kl(),Xl(),Tt(),Ql(),Bt(),Nn(),sr(),Jl(),dr(),es(),ts(),ns(),jn(),os(),bt(),Ie(),as(),rs(),is(),ls(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),xs(),ys(),ps(),bs())})(le,function(t){return t})})(Qa);var vs=Qa.exports;const qe=Xa(vs);var Ss="0123456789abcdefghijklmnopqrstuvwxyz";function it(e){return Ss.charAt(e)}function Cs(e,n){return e&n}function Qt(e,n){return e|n}function Nr(e,n){return e^n}function Mr(e,n){return e&~n}function ws(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function ks(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr="=";function Jt(e){var n,t,o="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),o+=Et.charAt(t>>6)+Et.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),o+=Et.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),o+=Et.charAt(t>>2)+Et.charAt((t&3)<<4));(o.length&3)>0;)o+=Fr;return o}function zr(e){var n="",t,o=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Fr;++t){var i=Et.indexOf(e.charAt(t));i<0||(o==0?(n+=it(i>>2),r=i&3,o=1):o==1?(n+=it(r<<2|i>>4),r=i&15,o=2):o==2?(n+=it(r),n+=it(i>>2),r=i&3,o=3):(n+=it(r<<2|i>>4),n+=it(i&15),o=0))}return o==1&&(n+=it(r<<2)),n}var _t,As={decode:function(e){var n;if(_t===void 0){var t="0123456789ABCDEF",o=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(n,t){for(var
|
|
75
|
-
`}r&&(
|
|
76
|
-
`,l="",f=n+1;f<t;++f){for(var c=this.get(f),u=f==t-1?r:0,x=7;x>=u;--x)l+=c>>x&1?"1":"0";if(l.length>
|
|
77
|
-
`;
|
|
78
|
-
`,this.sub!==null){n+=" ";for(var o=0,r=this.sub.length;o<r;++o)t+=this.sub[o].toPrettyString(n)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var t=n.get(),o=t&127;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(o===0)return null;t=0;for(var r=0;r<o;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,o=this.length*2;return n.substr(t,o)},e.decode=function(n){var t;n instanceof fo?t=n:t=new fo(n,0);var o=new fo(t),r=new Hr(t),i=e.decodeLength(t),s=t.pos,l=s-o.pos,f=null,c=function(){var x=[];if(i!==null){for(var d=s+i;t.pos<d;)x[x.length]=e.decode(t);if(t.pos!=d)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;x[x.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return x};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var u=0;u<f.length;++u)if(f[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(o,l,i,r,f)},e}(),Hr=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var o=new Vt;do t=n.get(),o.mulAdd(128,t&127);while(t&128);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),ft,_s=0xdeadbeefcafe,qr=(_s&16777215)==15715070,Me=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ds=(1<<26)/Me[Me.length-1],re=function(){function e(n,t,o){n!=null&&(typeof n=="number"?this.fromNumber(n,t,o):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);var o=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=it(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&o,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=it(r));return i?s:"0"},e.prototype.negate=function(){var n=se();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var o=this.t;if(t=o-n.t,t!=0)return this.s<0?-t:t;for(;--o>=0;)if((t=this[o]-n[o])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+tn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=se();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var o;return n<256||t.isEven()?o=new Vr(t):o=new jr(t),this.exp(n,o)},e.prototype.clone=function(){var n=se();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,t=[];t[0]=this.s;var o=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(o<this.DB&&(r=this[n]>>o)!=(this.s&this.DM)>>o&&(t[i++]=r|this.s<<this.DB-o);n>=0;)o<8?(r=(this[n]&(1<<o)-1)<<8-o,r|=this[--n]>>(o+=this.DB-8)):(r=this[n]>>(o-=8)&255,o<=0&&(o+=this.DB,--n)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=se();return this.bitwiseTo(n,Cs,t),t},e.prototype.or=function(n){var t=se();return this.bitwiseTo(n,Qt,t),t},e.prototype.xor=function(n){var t=se();return this.bitwiseTo(n,Nr,t),t},e.prototype.andNot=function(n){var t=se();return this.bitwiseTo(n,Mr,t),t},e.prototype.not=function(){for(var n=se(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=se();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=se();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+ws(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,o=0;o<this.t;++o)n+=ks(this[o]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,Qt)},e.prototype.clearBit=function(n){return this.changeBit(n,Mr)},e.prototype.flipBit=function(n){return this.changeBit(n,Nr)},e.prototype.add=function(n){var t=se();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=se();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=se();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=se();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=se();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=se(),o=se();return this.divRemTo(n,t,o),[t,o]},e.prototype.modPow=function(n,t){var o=n.bitLength(),r,i=dt(1),s;if(o<=0)return i;o<18?r=1:o<48?r=3:o<144?r=4:o<768?r=5:r=6,o<8?s=new Vr(t):t.isEven()?s=new Is(t):s=new jr(t);var l=[],f=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var x=se();for(s.sqrTo(l[1],x);f<=u;)l[f]=se(),s.mulTo(x,l[f-2],l[f]),f+=2}var d=n.t-1,h,m=!0,g=se(),v;for(o=tn(n[d])-1;d>=0;){for(o>=c?h=n[d]>>o-c&u:(h=(n[d]&(1<<o+1)-1)<<c-o,d>0&&(h|=n[d-1]>>this.DB+o-c)),f=r;!(h&1);)h>>=1,--f;if((o-=f)<0&&(o+=this.DB,--d),m)l[h].copyTo(i),m=!1;else{for(;f>1;)s.sqrTo(i,g),s.sqrTo(g,i),f-=2;f>0?s.sqrTo(i,g):(v=i,i=g,g=v),s.mulTo(g,l[h],i)}for(;d>=0&&!(n[d]&1<<o);)s.sqrTo(i,g),v=i,i=g,g=v,--o<0&&(o=this.DB-1,--d)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var o=n.clone(),r=this.clone(),i=dt(1),s=dt(0),l=dt(0),f=dt(1);o.signum()!=0;){for(;o.isEven();)o.rShiftTo(1,o),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);o.compareTo(r)>=0?(o.subTo(r,o),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(o,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Rs)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),o=n.s<0?n.negate():n.clone();if(t.compareTo(o)<0){var r=t;t=o,o=r}var i=t.getLowestSetBit(),s=o.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),o.rShiftTo(s,o));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return s>0&&o.lShiftTo(s,o),o},e.prototype.isProbablePrime=function(n){var t,o=this.abs();if(o.t==1&&o[0]<=Me[Me.length-1]){for(t=0;t<Me.length;++t)if(o[0]==Me[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<Me.length;){for(var r=Me[t],i=t+1;i<Me.length&&r<Ds;)r*=Me[i++];for(r=o.modInt(r);t<i;)if(r%Me[t++]==0)return!1}return o.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var o;if(t==16)o=4;else if(t==8)o=3;else if(t==256)o=8;else if(t==2)o=1;else if(t==32)o=5;else if(t==4)o=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=o==8?+n[r]&255:Wr(n,r);if(l<0){n.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+o>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=o,s>=this.DB&&(s-=this.DB)}o==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var o;for(o=this.t-1;o>=0;--o)t[o+n]=this[o];for(o=n-1;o>=0;--o)t[o]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var o=n;o<this.t;++o)t[o-n]=this[o];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var o=n%this.DB,r=this.DB-o,i=(1<<r)-1,s=Math.floor(n/this.DB),l=this.s<<o&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<o;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var o=Math.floor(n/this.DB);if(o>=this.t){t.t=0;return}var r=n%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[o]>>r;for(var l=o+1;l<this.t;++l)t[l-o-1]|=(this[l]&s)<<i,t[l-o]=this[l]>>r;r>0&&(t[this.t-o-1]|=(this.s&s)<<i),t.t=this.t-o,t.clamp()},e.prototype.subTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]-n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r-=n[o],t[o++]=r&this.DM,r>>=this.DB;r-=n.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},e.prototype.multiplyTo=function(n,t){var o=this.abs(),r=n.abs(),i=o.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+o.t]=o.am(0,r[i],t,i,0,o.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),o=n.t=2*t.t;--o>=0;)n[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],n,2*o,0,1);(n[o+t.t]+=t.am(o+1,2*t[o],n,2*o+1,r,t.t-o-1))>=t.DV&&(n[o+t.t]-=t.DV,n[o+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(o,t[o],n,2*o,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,o){var r=n.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),o!=null&&this.copyTo(o);return}o==null&&(o=se());var s=se(),l=this.s,f=n.s,c=this.DB-tn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,o)):(r.copyTo(s),i.copyTo(o));var u=s.t,x=s[u-1];if(x!=0){var d=x*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,g=1<<this.F2,v=o.t,E=v-u,b=t??se();for(s.dlShiftTo(E,b),o.compareTo(b)>=0&&(o[o.t++]=1,o.subTo(b,o)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--E>=0;){var p=o[--v]==x?this.DM:Math.floor(o[v]*h+(o[v-1]+g)*m);if((o[v]+=s.am(0,p,o,E,0,u))<p)for(s.dlShiftTo(E,b),o.subTo(b,o);o[v]<--p;)o.subTo(b,o)}t!=null&&(o.drShiftTo(u,t),l!=f&&e.ZERO.subTo(t,t)),o.t=u,o.clamp(),c>0&&o.rShiftTo(c,o),l<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var o=se(),r=se(),i=t.convert(this),s=tn(n)-1;for(i.copyTo(o);--s>=0;)if(t.sqrTo(o,r),(n&1<<s)>0)t.mulTo(r,i,o);else{var l=o;o=r,r=l}return t.revert(o)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),o=Math.pow(n,t),r=dt(o),i=se(),s=se(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(o+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var o=this.chunkSize(t),r=Math.pow(t,o),i=!1,s=0,l=0,f=0;f<n.length;++f){var c=Wr(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=o&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,o){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Qt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,o){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)o[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.s&this.DM,r=s;r<this.t;++r)o[r]=t(this[r],i);o.t=this.t}else{for(i=this.s&this.DM,r=s;r<n.t;++r)o[r]=t(i,n[r]);o.t=n.t}o.s=t(this.s,n.s),o.clamp()},e.prototype.changeBit=function(n,t){var o=e.ONE.shiftLeft(n);return this.bitwiseTo(o,t,o),o},e.prototype.addTo=function(n,t){for(var o=0,r=0,i=Math.min(n.t,this.t);o<i;)r+=this[o]+n[o],t[o++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<n.t;)r+=n[o],t[o++]=r&this.DM,r>>=this.DB;r+=n.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,o){var r=Math.min(this.t+n.t,t);for(o.s=0,o.t=r;r>0;)o[--r]=0;for(var i=o.t-this.t;r<i;++r)o[r+this.t]=this.am(0,n[r],o,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],o,r,0,t-r);o.clamp()},e.prototype.multiplyUpperTo=function(n,t,o){--t;var r=o.t=this.t+n.t-t;for(o.s=0;--r>=0;)o[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)o[this.t+r-t]=this.am(t-r,n[r],o,0,0,this.t+r-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,o=this.s<0?n-1:0;if(this.t>0)if(t==0)o=this[0]%n;else for(var r=this.t-1;r>=0;--r)o=(t*o+this[r])%n;return o},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),o=t.getLowestSetBit();if(o<=0)return!1;var r=t.shiftRight(o);n=n+1>>1,n>Me.length&&(n=Me.length);for(var i=se(),s=0;s<n;++s){i.fromInt(Me[Math.floor(Math.random()*Me.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<o&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=se();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var o=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(o.compareTo(r)<0){var i=o;o=r,r=i}var s=o.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(o);return}s<l&&(l=s),l>0&&(o.rShiftTo(l,o),r.rShiftTo(l,r));var f=function(){(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),o.compareTo(r)>=0?(o.subTo(r,o),o.rShiftTo(1,o)):(r.subTo(o,r),r.rShiftTo(1,r)),o.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,o,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,o),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),Qt,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Rs=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Vr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),jr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=se();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(re.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var o=n[t]&32767,r=o*this.mpl+((o*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(o=t+this.m.t,n[o]+=this.m.am(0,r,n,t,0,this.m.t);n[o]>=n.DV;)n[o]-=n.DV,n[++o]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Is=function(){function e(n){this.m=n,this.r2=se(),this.q3=se(),re.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,o){n.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function se(){return new re(null)}function Ae(e,n){return new re(e,n)}var Gr=typeof navigator<"u";Gr&&qr&&navigator.appName=="Microsoft Internet Explorer"?(re.prototype.am=function(n,t,o,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,u=this[n++]>>15,x=f*c+u*l;c=l*c+((x&32767)<<15)+o[r]+(i&1073741823),i=(c>>>30)+(x>>>15)+f*u+(i>>>30),o[r++]=c&1073741823}return i},ft=30):Gr&&qr&&navigator.appName!="Netscape"?(re.prototype.am=function(n,t,o,r,i,s){for(;--s>=0;){var l=t*this[n++]+o[r]+i;i=Math.floor(l/67108864),o[r++]=l&67108863}return i},ft=26):(re.prototype.am=function(n,t,o,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,u=this[n++]>>14,x=f*c+u*l;c=l*c+((x&16383)<<14)+o[r]+i,i=(c>>28)+(x>>14)+f*u,o[r++]=c&268435455}return i},ft=28),re.prototype.DB=ft,re.prototype.DM=(1<<ft)-1,re.prototype.DV=1<<ft;var uo=52;re.prototype.FV=Math.pow(2,uo),re.prototype.F1=uo-ft,re.prototype.F2=2*ft-uo;var en=[],It,Ze;for(It="0".charCodeAt(0),Ze=0;Ze<=9;++Ze)en[It++]=Ze;for(It="a".charCodeAt(0),Ze=10;Ze<36;++Ze)en[It++]=Ze;for(It="A".charCodeAt(0),Ze=10;Ze<36;++Ze)en[It++]=Ze;function Wr(e,n){var t=en[e.charCodeAt(n)];return t??-1}function dt(e){var n=se();return n.fromInt(e),n}function tn(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}re.ZERO=dt(0),re.ONE=dt(1);var Os=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,o,r;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+n[t%n.length]&255,r=this.S[t],this.S[t]=this.S[o],this.S[o]=r;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function Ls(){return new Os}var Ur=256,nn,ut=null,et;if(ut==null){ut=[],et=0;var on=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ho=new Uint32Array(256);for(window.crypto.getRandomValues(ho),on=0;on<ho.length;++on)ut[et++]=ho[on]&255}var an=0,rn=function(e){if(an=an||0,an>=256||et>=Ur){window.removeEventListener?window.removeEventListener("mousemove",rn,!1):window.detachEvent&&window.detachEvent("onmousemove",rn);return}try{var n=e.x+e.y;ut[et++]=n&255,an+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",rn,!1):window.attachEvent&&window.attachEvent("onmousemove",rn))}function Ns(){if(nn==null){for(nn=Ls();et<Ur;){var e=Math.floor(65536*Math.random());ut[et++]=e&255}for(nn.init(ut),et=0;et<ut.length;++et)ut[et]=0;et=0}return nn.next()}var go=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Ns()},e}();function Ms(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,o="",r=0;r<t;r+=2)o+="ff";var i="0001"+o+"00"+e;return Ae(i,16)}function Fs(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],o=e.length-1;o>=0&&n>0;){var r=e.charCodeAt(o--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new go,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new re(t)}var zs=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),o=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ae(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,o=Fs(n,t);if(o==null)return null;var r=this.doPublic(o);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,o){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ae(n,16),this.e=parseInt(t,16),this.d=Ae(o,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,o,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=Ae(n,16),this.e=parseInt(t,16),this.d=Ae(o,16),this.p=Ae(r,16),this.q=Ae(i,16),this.dmp1=Ae(s,16),this.dmq1=Ae(l,16),this.coeff=Ae(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var o=new go,r=n>>1;this.e=parseInt(t,16);for(var i=new re(t,16);;){for(;this.p=new re(n-r,1,o),!(this.p.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new re(r,1,o),!(this.q.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(re.ONE),f=this.q.subtract(re.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(re.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=Ae(n,16),o=this.doPrivate(t);return o==null?null:Ps(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,o){var r=new go,i=n>>1;this.e=parseInt(t,16);var s=new re(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var d=l.p;l.p=l.q,l.q=d}var h=l.p.subtract(re.ONE),m=l.q.subtract(re.ONE),g=h.multiply(m);g.gcd(s).compareTo(re.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){o()},0)):setTimeout(f,0)},u=function(){l.q=se(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},x=function(){l.p=se(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,o){var r=Hs(o),i=r+t(n).toString(),s=Ms(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,o){var r=Ae(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=qs(s);return l==o(n).toString()},e}();function Ps(e,n){for(var t=e.toByteArray(),o=0;o<t.length&&t[o]==0;)++o;if(t.length-o!=n-1||t[o]!=2)return null;for(++o;t[o]!=0;)if(++o>=t.length)return null;for(var r="";++o<t.length;){var i=t[o]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[o+1]&63),++o):(r+=String.fromCharCode((i&15)<<12|(t[o+1]&63)<<6|t[o+2]&63),o+=2)}return r}var ln={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Hs(e){return ln[e]||""}function qs(e){for(var n in ln)if(ln.hasOwnProperty(n)){var t=ln[n],o=t.length;if(e.substr(0,o)==t)return e.substr(o)}return e}/*!
|
|
71
|
+
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,u=l&255;f===255?(f=0,c===255?(c=0,u===255?u=0:++u):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=u}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,f){var c=this._cipher,u=c.blockSize,x=this._iv,d=this._counter;x&&(d=this._counter=x.slice(0),this._iv=void 0),i(d);var h=d.slice(0);c.encryptBlock(h,0);for(var m=0;m<u;m++)l[f+m]^=h[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(eo)),eo.exports}var to={exports:{}},Dr;function ds(){return Dr||(Dr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.mode.OFB=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(u,0);for(var x=0;x<f;x++)i[s+x]^=u[x]}});return a.Decryptor=r,a}(),t.mode.OFB})}(to)),to.exports}var no={exports:{}},Ir;function us(){return Ir||(Ir=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.mode.ECB=function(){var a=t.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),t.mode.ECB})}(no)),no.exports}var oo={exports:{}},Rr;function hs(){return Rr||(Rr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,f=i+l-1;a.clamp(),a.words[f>>>2]|=l<<24-f%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(oo)),oo.exports}var ao={exports:{}},Or;function gs(){return Or||(Or=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Iso10126})}(ao)),ao.exports}var ro={exports:{}},Lr;function ms(){return Lr||(Lr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.Iso97971={pad:function(a,r){a.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(a,r)},unpad:function(a){t.pad.ZeroPadding.unpad(a),a.sigBytes--}},t.pad.Iso97971})}(ro)),ro.exports}var io={exports:{}},Nr;function xs(){return Nr||(Nr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(io)),io.exports}var lo={exports:{}},zr;function ys(){return zr||(zr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(lo)),lo.exports}var so={exports:{}},Fr;function ps(){return Fr||(Fr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Le())})(le,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(u){return u.ciphertext.toString(f)},parse:function(u){var x=f.parse(u);return s.create({ciphertext:x})}}}(),t.format.Hex})}(so)),so.exports}var co={exports:{}},Mr;function bs(){return Mr||(Mr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],u=[],x=[],d=[],h=[],m=[],g=[],v=[];(function(){for(var p=[],y=0;y<256;y++)y<128?p[y]=y<<1:p[y]=y<<1^283;for(var k=0,C=0,y=0;y<256;y++){var R=C^C<<1^C<<2^C<<3^C<<4;R=R>>>8^R&255^99,l[k]=R,f[R]=k;var L=p[k],z=p[L],B=p[z],w=p[R]*257^R*16843008;c[k]=w<<24|w>>>8,u[k]=w<<16|w>>>16,x[k]=w<<8|w>>>24,d[k]=w;var w=B*16843009^z*65537^L*257^k*16843008;h[R]=w<<24|w>>>8,m[R]=w<<16|w>>>16,g[R]=w<<8|w>>>24,v[R]=w,k?(k=L^p[p[p[B^L]]],C^=p[p[C]]):k=C=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,k=y.words,C=y.sigBytes/4,R=this._nRounds=C+6,L=(R+1)*4,z=this._keySchedule=[],B=0;B<L;B++)B<C?z[B]=k[B]:(p=z[B-1],B%C?C>6&&B%C==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=E[B/C|0]<<24),z[B]=z[B-C]^p);for(var w=this._invKeySchedule=[],_=0;_<L;_++){var B=L-_;if(_%4)var p=z[B];else var p=z[B-4];_<4||B<=4?w[_]=p:w[_]=h[l[p>>>24]]^m[l[p>>>16&255]]^g[l[p>>>8&255]]^v[l[p&255]]}}},encryptBlock:function(p,y){this._doCryptBlock(p,y,this._keySchedule,c,u,x,d,l)},decryptBlock:function(p,y){var k=p[y+1];p[y+1]=p[y+3],p[y+3]=k,this._doCryptBlock(p,y,this._invKeySchedule,h,m,g,v,f);var k=p[y+1];p[y+1]=p[y+3],p[y+3]=k},_doCryptBlock:function(p,y,k,C,R,L,z,B){for(var w=this._nRounds,_=p[y]^k[0],S=p[y+1]^k[1],D=p[y+2]^k[2],F=p[y+3]^k[3],O=4,P=1;P<w;P++){var H=C[_>>>24]^R[S>>>16&255]^L[D>>>8&255]^z[F&255]^k[O++],j=C[S>>>24]^R[D>>>16&255]^L[F>>>8&255]^z[_&255]^k[O++],M=C[D>>>24]^R[F>>>16&255]^L[_>>>8&255]^z[S&255]^k[O++],A=C[F>>>24]^R[_>>>16&255]^L[S>>>8&255]^z[D&255]^k[O++];_=H,S=j,D=M,F=A}var H=(B[_>>>24]<<24|B[S>>>16&255]<<16|B[D>>>8&255]<<8|B[F&255])^k[O++],j=(B[S>>>24]<<24|B[D>>>16&255]<<16|B[F>>>8&255]<<8|B[_&255])^k[O++],M=(B[D>>>24]<<24|B[F>>>16&255]<<16|B[_>>>8&255]<<8|B[S&255])^k[O++],A=(B[F>>>24]<<24|B[_>>>16&255]<<16|B[S>>>8&255]<<8|B[D&255])^k[O++];p[y]=H,p[y+1]=j,p[y+2]=M,p[y+3]=A},keySize:256/32});a.AES=i._createHelper(b)}(),t.AES})}(co)),co.exports}var fo={exports:{}},Pr;function vs(){return Pr||(Pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var E=this._key,b=E.words,p=[],y=0;y<56;y++){var k=f[y]-1;p[y]=b[k>>>5]>>>31-k%32&1}for(var C=this._subKeys=[],R=0;R<16;R++){for(var L=C[R]=[],z=u[R],y=0;y<24;y++)L[y/6|0]|=p[(c[y]-1+z)%28]<<31-y%6,L[4+(y/6|0)]|=p[28+(c[y+24]-1+z)%28]<<31-y%6;L[0]=L[0]<<1|L[0]>>>31;for(var y=1;y<7;y++)L[y]=L[y]>>>(y-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var B=this._invSubKeys=[],y=0;y<16;y++)B[y]=C[15-y]},encryptBlock:function(E,b){this._doCryptBlock(E,b,this._subKeys)},decryptBlock:function(E,b){this._doCryptBlock(E,b,this._invSubKeys)},_doCryptBlock:function(E,b,p){this._lBlock=E[b],this._rBlock=E[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var y=0;y<16;y++){for(var k=p[y],C=this._lBlock,R=this._rBlock,L=0,z=0;z<8;z++)L|=x[z][((R^k[z])&d[z])>>>0];this._lBlock=R,this._rBlock=C^L}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[b]=this._lBlock,E[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,b){var p=(this._lBlock>>>E^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<E}function g(E,b){var p=(this._rBlock>>>E^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<E}a.DES=s._createHelper(h);var v=l.TripleDES=s.extend({_doReset:function(){var E=this._key,b=E.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=b.slice(0,2),y=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(y)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(E,b){this._des1.encryptBlock(E,b),this._des2.decryptBlock(E,b),this._des3.encryptBlock(E,b)},decryptBlock:function(E,b){this._des3.decryptBlock(E,b),this._des2.encryptBlock(E,b),this._des1.decryptBlock(E,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(fo)),fo.exports}var uo={exports:{}},Hr;function Ss(){return Hr||(Hr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var u=this._key,x=u.words,d=u.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var v=m%d,E=x[v>>>2]>>>24-v%4*8&255;g=(g+h[m]+E)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,x){u[x]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,x=this._i,d=this._j,h=0,m=0;m<4;m++){x=(x+1)%256,d=(d+u[x])%256;var g=u[x];u[x]=u[d],u[d]=g,h|=u[(u[x]+u[d])%256]<<24-m*8}return this._i=x,this._j=d,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(uo)),uo.exports}var ho={exports:{}},qr;function Cs(){return qr||(qr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],u=s.Rabbit=i.extend({_doReset:function(){for(var d=this._key.words,h=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var g=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(h){var E=h.words,b=E[0],p=E[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|k&4294901760,R=k<<16|y&65535;v[0]^=y,v[1]^=C,v[2]^=k,v[3]^=R,v[4]^=y,v[5]^=C,v[6]^=k,v[7]^=R;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,E=g>>>16,b=((v*v>>>17)+v*E>>>15)+E*E,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(u)}(),t.Rabbit})}(ho)),ho.exports}var go={exports:{}},Vr;function ws(){return Vr||(Vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Rt(),kt(),Le())})(le,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],u=s.RabbitLegacy=i.extend({_doReset:function(){var d=this._key.words,h=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],g=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(h){var E=h.words,b=E[0],p=E[1],y=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,C=y>>>16|k&4294901760,R=k<<16|y&65535;g[0]^=y,g[1]^=C,g[2]^=k,g[3]^=R,g[4]^=y,g[5]^=C,g[6]^=k,g[7]^=R;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(d,h){var m=this._X;x.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,d[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function x(){for(var d=this._X,h=this._C,m=0;m<8;m++)f[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<f[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<f[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<f[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<f[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<f[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<f[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<f[6]>>>0?1:0)|0,this._b=h[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=d[m]+h[m],v=g&65535,E=g>>>16,b=((v*v>>>17)+v*E>>>15)+E*E,p=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^p}d[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,d[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,d[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,d[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,d[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,d[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,d[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,d[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(go)),go.exports}(function(e,n){(function(t,a,r){e.exports=a(ce(),tn(),es(),ts(),It(),ns(),Rt(),Hn(),xr(),os(),br(),as(),rs(),is(),Zn(),ls(),kt(),Le(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),xs(),ys(),ps(),bs(),vs(),Ss(),Cs(),ws())})(le,function(t){return t})})(ir);var As=ir.exports;const Ue=rr(As);var ks="0123456789abcdefghijklmnopqrstuvwxyz";function dt(e){return ks.charAt(e)}function Ts(e,n){return e&n}function nn(e,n){return e|n}function jr(e,n){return e^n}function Gr(e,n){return e&~n}function Bs(e){if(e==0)return-1;var n=0;return e&65535||(e>>=16,n+=16),e&255||(e>>=8,n+=8),e&15||(e>>=4,n+=4),e&3||(e>>=2,n+=2),e&1||++n,n}function Es(e){for(var n=0;e!=0;)e&=e-1,++n;return n}var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wr="=";function on(e){var n,t,a="";for(n=0;n+3<=e.length;n+=3)t=parseInt(e.substring(n,n+3),16),a+=Ot.charAt(t>>6)+Ot.charAt(t&63);for(n+1==e.length?(t=parseInt(e.substring(n,n+1),16),a+=Ot.charAt(t<<2)):n+2==e.length&&(t=parseInt(e.substring(n,n+2),16),a+=Ot.charAt(t>>2)+Ot.charAt((t&3)<<4));(a.length&3)>0;)a+=Wr;return a}function Ur(e){var n="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Wr;++t){var i=Ot.indexOf(e.charAt(t));i<0||(a==0?(n+=dt(i>>2),r=i&3,a=1):a==1?(n+=dt(r<<2|i>>4),r=i&15,a=2):a==2?(n+=dt(r),n+=dt(i>>2),r=i&3,a=3):(n+=dt(r<<2|i>>4),n+=dt(i&15),a=0))}return a==1&&(n+=dt(r<<2)),n}var Lt,_s={decode:function(e){var n;if(Lt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Lt={},n=0;n<16;++n)Lt[t.charAt(n)]=n;for(t=t.toLowerCase(),n=10;n<16;++n)Lt[t.charAt(n)]=n;for(n=0;n<a.length;++n)Lt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Lt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},Tt,mo={decode:function(e){var n;if(Tt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(Tt=Object.create(null),n=0;n<64;++n)Tt[t.charAt(n)]=n;for(Tt["-"]=62,Tt._=63,n=0;n<a.length;++n)Tt[a.charAt(n)]=-1}var r=[],i=0,s=0;for(n=0;n<e.length;++n){var l=e.charAt(n);if(l=="=")break;if(l=Tt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+n);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var n=mo.re.exec(e);if(n)if(n[1])e=n[1];else if(n[2])e=n[2];else throw new Error("RegExp out of sync");return mo.decode(e)}},Nt=1e13,$t=function(){function e(n){this.buf=[+n||0]}return e.prototype.mulAdd=function(n,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*n+t,s<Nt?t=0:(t=0|s/Nt,s-=t*Nt),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(n){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-n,i<0?(i+=Nt,n=1):n=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(n){if((n||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,a=t[t.length-1].toString(),r=t.length-2;r>=0;--r)a+=(Nt+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var n=this.buf,t=0,a=n.length-1;a>=0;--a)t=t*Nt+n[a];return t},e.prototype.simplify=function(){var n=this.buf;return n.length==1?n[0]:this},e}(),$r="…",Ds=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Is=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function zt(e,n){return e.length>n&&(e=e.substring(0,n)+$r),e}var xo=function(){function e(n,t){this.hexDigits="0123456789ABCDEF",n instanceof e?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}return e.prototype.get=function(n){if(n===void 0&&(n=this.pos++),n>=this.enc.length)throw new Error("Requesting byte offset ".concat(n," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(n):this.enc[n]},e.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(n&15)},e.prototype.hexDump=function(n,t,a){for(var r="",i=n;i<t;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
|
+
`;break;default:r+=" "}return r},e.prototype.isASCII=function(n,t){for(var a=n;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(n,t){for(var a="",r=n;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(n,t){for(var a="",r=n;r<t;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(n,t){for(var a="",r,i,s=n;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(n,t,a){var r=this.parseStringISO(n,t),i=(a?Ds:Is).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(n,t){for(var a=this.get(n),r=a>127,i=r?255:0,s,l="";a==i&&++n<t;)a=this.get(n);if(s=t-n,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
+
`}r&&(a=a-256);for(var f=new $t(a),c=n+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.toString()},e.prototype.parseBitString=function(n,t,a){for(var r=this.get(n),i=(t-n-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",f=n+1;f<t;++f){for(var c=this.get(f),u=f==t-1?r:0,x=7;x>=u;--x)l+=c>>x&1?"1":"0";if(l.length>a)return s+zt(l,a)}return s+l},e.prototype.parseOctetString=function(n,t,a){if(this.isASCII(n,t))return zt(this.parseStringISO(n,t),a);var r=t-n,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(t=n+a);for(var s=n;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=$r),i},e.prototype.parseOID=function(n,t,a){for(var r="",i=new $t,s=0,l=n;l<t;++l){var f=this.get(l);if(i.mulAdd(128,f&127),s+=7,!(f&128)){if(r==="")if(i=i.simplify(),i instanceof $t)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-c*40)}else r+="."+i.toString();if(r.length>a)return zt(r,a);i=new $t,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Rs=function(){function e(n,t,a,r,i){if(!(r instanceof Zr))throw new Error("Invalid tag value.");this.stream=n,this.header=t,this.length=a,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(n){if(this.tag===void 0)return null;n===void 0&&(n=1/0);var t=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,n);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+a,n);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,n);case 6:return this.stream.parseOID(t,t+a,n);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return zt(this.stream.parseStringUTF(t,t+a),n);case 18:case 19:case 20:case 21:case 22:case 26:return zt(this.stream.parseStringISO(t,t+a),n);case 30:return zt(this.stream.parseStringBMP(t,t+a),n);case 23:case 24:return this.stream.parseTime(t,t+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(n){n===void 0&&(n="");var t=n+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
|
|
78
|
+
`,this.sub!==null){n+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(n)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(n){var t=n.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(n.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+n.get();return t},e.prototype.getHexStringValue=function(){var n=this.toHexString(),t=this.header*2,a=this.length*2;return n.substr(t,a)},e.decode=function(n){var t;n instanceof xo?t=n:t=new xo(n,0);var a=new xo(t),r=new Zr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var x=[];if(i!==null){for(var d=s+i;t.pos<d;)x[x.length]=e.decode(t);if(t.pos!=d)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;x[x.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return x};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var u=0;u<f.length;++u)if(f[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(a,l,i,r,f)},e}(),Zr=function(){function e(n){var t=n.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new $t;do t=n.get(),a.mulAdd(128,t&127);while(t&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),mt,Os=0xdeadbeefcafe,Yr=(Os&16777215)==15715070,Pe=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ls=(1<<26)/Pe[Pe.length-1],re=function(){function e(n,t,a){n!=null&&(typeof n=="number"?this.fromNumber(n,t,a):t==null&&typeof n!="string"?this.fromString(n,256):this.fromString(n,t))}return e.prototype.toString=function(n){if(this.s<0)return"-"+this.negate().toString(n);var t;if(n==16)t=4;else if(n==8)t=3;else if(n==2)t=1;else if(n==32)t=5;else if(n==4)t=2;else return this.toRadix(n);var a=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=dt(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&a,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=dt(r));return i?s:"0"},e.prototype.negate=function(){var n=se();return e.ZERO.subTo(this,n),n},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(n){var t=this.s-n.s;if(t!=0)return t;var a=this.t;if(t=a-n.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-n[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+rn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(n){var t=se();return this.abs().divRemTo(n,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&n.subTo(t,t),t},e.prototype.modPowInt=function(n,t){var a;return n<256||t.isEven()?a=new Kr(t):a=new Qr(t),this.exp(n,a)},e.prototype.clone=function(){var n=se();return this.copyTo(n),n},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var n=this.t,t=[];t[0]=this.s;var a=this.DB-n*this.DB%8,r,i=0;if(n-- >0)for(a<this.DB&&(r=this[n]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);n>=0;)a<8?(r=(this[n]&(1<<a)-1)<<8-a,r|=this[--n]>>(a+=this.DB-8)):(r=this[n]>>(a-=8)&255,a<=0&&(a+=this.DB,--n)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(n){return this.compareTo(n)==0},e.prototype.min=function(n){return this.compareTo(n)<0?this:n},e.prototype.max=function(n){return this.compareTo(n)>0?this:n},e.prototype.and=function(n){var t=se();return this.bitwiseTo(n,Ts,t),t},e.prototype.or=function(n){var t=se();return this.bitwiseTo(n,nn,t),t},e.prototype.xor=function(n){var t=se();return this.bitwiseTo(n,jr,t),t},e.prototype.andNot=function(n){var t=se();return this.bitwiseTo(n,Gr,t),t},e.prototype.not=function(){for(var n=se(),t=0;t<this.t;++t)n[t]=this.DM&~this[t];return n.t=this.t,n.s=~this.s,n},e.prototype.shiftLeft=function(n){var t=se();return n<0?this.rShiftTo(-n,t):this.lShiftTo(n,t),t},e.prototype.shiftRight=function(n){var t=se();return n<0?this.lShiftTo(-n,t):this.rShiftTo(n,t),t},e.prototype.getLowestSetBit=function(){for(var n=0;n<this.t;++n)if(this[n]!=0)return n*this.DB+Bs(this[n]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var n=0,t=this.s&this.DM,a=0;a<this.t;++a)n+=Es(this[a]^t);return n},e.prototype.testBit=function(n){var t=Math.floor(n/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<n%this.DB)!=0},e.prototype.setBit=function(n){return this.changeBit(n,nn)},e.prototype.clearBit=function(n){return this.changeBit(n,Gr)},e.prototype.flipBit=function(n){return this.changeBit(n,jr)},e.prototype.add=function(n){var t=se();return this.addTo(n,t),t},e.prototype.subtract=function(n){var t=se();return this.subTo(n,t),t},e.prototype.multiply=function(n){var t=se();return this.multiplyTo(n,t),t},e.prototype.divide=function(n){var t=se();return this.divRemTo(n,t,null),t},e.prototype.remainder=function(n){var t=se();return this.divRemTo(n,null,t),t},e.prototype.divideAndRemainder=function(n){var t=se(),a=se();return this.divRemTo(n,t,a),[t,a]},e.prototype.modPow=function(n,t){var a=n.bitLength(),r,i=xt(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new Kr(t):t.isEven()?s=new zs(t):s=new Qr(t);var l=[],f=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var x=se();for(s.sqrTo(l[1],x);f<=u;)l[f]=se(),s.mulTo(x,l[f-2],l[f]),f+=2}var d=n.t-1,h,m=!0,g=se(),v;for(a=rn(n[d])-1;d>=0;){for(a>=c?h=n[d]>>a-c&u:(h=(n[d]&(1<<a+1)-1)<<c-a,d>0&&(h|=n[d-1]>>this.DB+a-c)),f=r;!(h&1);)h>>=1,--f;if((a-=f)<0&&(a+=this.DB,--d),m)l[h].copyTo(i),m=!1;else{for(;f>1;)s.sqrTo(i,g),s.sqrTo(g,i),f-=2;f>0?s.sqrTo(i,g):(v=i,i=g,g=v),s.mulTo(g,l[h],i)}for(;d>=0&&!(n[d]&1<<a);)s.sqrTo(i,g),v=i,i=g,g=v,--a<0&&(a=this.DB-1,--d)}return s.revert(i)},e.prototype.modInverse=function(n){var t=n.isEven();if(this.isEven()&&t||n.signum()==0)return e.ZERO;for(var a=n.clone(),r=this.clone(),i=xt(1),s=xt(0),l=xt(0),f=xt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(n,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(n,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(n,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(n,f),f.rShiftTo(1,f);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(a,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(n)>=0)return f.subtract(n);if(f.signum()<0)f.addTo(n,f);else return f;return f.signum()<0?f.add(n):f},e.prototype.pow=function(n){return this.exp(n,new Ns)},e.prototype.gcd=function(n){var t=this.s<0?this.negate():this.clone(),a=n.s<0?n.negate():n.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var i=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(n){var t,a=this.abs();if(a.t==1&&a[0]<=Pe[Pe.length-1]){for(t=0;t<Pe.length;++t)if(a[0]==Pe[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Pe.length;){for(var r=Pe[t],i=t+1;i<Pe.length&&r<Ls;)r*=Pe[i++];for(r=a.modInt(r);t<i;)if(r%Pe[t++]==0)return!1}return a.millerRabin(n)},e.prototype.copyTo=function(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t,n.s=this.s},e.prototype.fromInt=function(n){this.t=1,this.s=n<0?-1:0,n>0?this[0]=n:n<-1?this[0]=n+this.DV:this.t=0},e.prototype.fromString=function(n,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(n,t);return}this.t=0,this.s=0;for(var r=n.length,i=!1,s=0;--r>=0;){var l=a==8?+n[r]&255:Jr(n,r);if(l<0){n.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+n[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t},e.prototype.dlShiftTo=function(n,t){var a;for(a=this.t-1;a>=0;--a)t[a+n]=this[a];for(a=n-1;a>=0;--a)t[a]=0;t.t=this.t+n,t.s=this.s},e.prototype.drShiftTo=function(n,t){for(var a=n;a<this.t;++a)t[a-n]=this[a];t.t=Math.max(this.t-n,0),t.s=this.s},e.prototype.lShiftTo=function(n,t){for(var a=n%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(n/this.DB),l=this.s<<a&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<a;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(n,t){t.s=this.s;var a=Math.floor(n/this.DB);if(a>=this.t){t.t=0;return}var r=n%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)t[l-a-1]|=(this[l]&s)<<i,t[l-a]=this[l]>>r;r>0&&(t[this.t-a-1]|=(this.s&s)<<i),t.t=this.t-a,t.clamp()},e.prototype.subTo=function(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]-n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r-=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r-=n[a],t[a++]=r&this.DM,r>>=this.DB;r-=n.s}t.s=r<0?-1:0,r<-1?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(n,t){var a=this.abs(),r=n.abs(),i=a.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+a.t]=a.am(0,r[i],t,i,0,a.t);t.s=0,t.clamp(),this.s!=n.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(n){for(var t=this.abs(),a=n.t=2*t.t;--a>=0;)n[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],n,2*a,0,1);(n[a+t.t]+=t.am(a+1,2*t[a],n,2*a+1,r,t.t-a-1))>=t.DV&&(n[a+t.t]-=t.DV,n[a+t.t+1]=1)}n.t>0&&(n[n.t-1]+=t.am(a,t[a],n,2*a,0,1)),n.s=0,n.clamp()},e.prototype.divRemTo=function(n,t,a){var r=n.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=se());var s=se(),l=this.s,f=n.s,c=this.DB-rn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,x=s[u-1];if(x!=0){var d=x*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,g=1<<this.F2,v=a.t,E=v-u,b=t??se();for(s.dlShiftTo(E,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(u,b),b.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--E>=0;){var p=a[--v]==x?this.DM:Math.floor(a[v]*h+(a[v-1]+g)*m);if((a[v]+=s.am(0,p,a,E,0,u))<p)for(s.dlShiftTo(E,b),a.subTo(b,a);a[v]<--p;)a.subTo(b,a)}t!=null&&(a.drShiftTo(u,t),l!=f&&e.ZERO.subTo(t,t)),a.t=u,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var n=this[0];if(!(n&1))return 0;var t=n&3;return t=t*(2-(n&15)*t)&15,t=t*(2-(n&255)*t)&255,t=t*(2-((n&65535)*t&65535))&65535,t=t*(2-n*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(n,t){if(n>4294967295||n<1)return e.ONE;var a=se(),r=se(),i=t.convert(this),s=rn(n)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(n&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},e.prototype.toRadix=function(n){if(n==null&&(n=10),this.signum()==0||n<2||n>36)return"0";var t=this.chunkSize(n),a=Math.pow(n,t),r=xt(a),i=se(),s=se(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(n).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(n)+l},e.prototype.fromRadix=function(n,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),i=!1,s=0,l=0,f=0;f<n.length;++f){var c=Jr(n,f);if(c<0){n.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(n,t,a){if(typeof t=="number")if(n<2)this.fromInt(1);else for(this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),nn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>n&&this.subTo(e.ONE.shiftLeft(n-1),this);else{var r=[],i=n&7;r.length=(n>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(n,t,a){var r,i,s=Math.min(n.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],n[r]);if(n.t<this.t){for(i=n.s&this.DM,r=s;r<this.t;++r)a[r]=t(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<n.t;++r)a[r]=t(i,n[r]);a.t=n.t}a.s=t(this.s,n.s),a.clamp()},e.prototype.changeBit=function(n,t){var a=e.ONE.shiftLeft(n);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(n,t){for(var a=0,r=0,i=Math.min(n.t,this.t);a<i;)r+=this[a]+n[a],t[a++]=r&this.DM,r>>=this.DB;if(n.t<this.t){for(r+=n.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<n.t;)r+=n[a],t[a++]=r&this.DM,r>>=this.DB;r+=n.s}t.s=r<0?-1:0,r>0?t[a++]=r:r<-1&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(n){this[this.t]=this.am(0,n-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(n,t){if(n!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=n;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(n,t,a){var r=Math.min(this.t+n.t,t);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,n[r],a,r,0,this.t);for(var i=Math.min(n.t,t);r<i;++r)this.am(0,n[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(n,t,a){--t;var r=a.t=this.t+n.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<n.t;++r)a[this.t+r-t]=this.am(t-r,n[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(n){if(n<=0)return 0;var t=this.DV%n,a=this.s<0?n-1:0;if(this.t>0)if(t==0)a=this[0]%n;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%n;return a},e.prototype.millerRabin=function(n){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);n=n+1>>1,n>Pe.length&&(n=Pe.length);for(var i=se(),s=0;s<n;++s){i.fromInt(Pe[Math.floor(Math.random()*Pe.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<a&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var n=se();return this.squareTo(n),n},e.prototype.gcda=function(n,t){var a=this.s<0?this.negate():this.clone(),r=n.s<0?n.negate():n.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var f=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(n,t,a,r){if(typeof t=="number")if(n<2)this.fromInt(1);else{this.fromNumber(n,a),this.testBit(n-1)||this.bitwiseTo(e.ONE.shiftLeft(n-1),nn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>n&&i.subTo(e.ONE.shiftLeft(n-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=n&7;l.length=(n>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Ns=function(){function e(){}return e.prototype.convert=function(n){return n},e.prototype.revert=function(n){return n},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a)},e.prototype.sqrTo=function(n,t){n.squareTo(t)},e}(),Kr=function(){function e(n){this.m=n}return e.prototype.convert=function(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),Qr=function(){function e(n){this.m=n,this.mp=n.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<n.DB-15)-1,this.mt2=2*n.t}return e.prototype.convert=function(n){var t=se();return n.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),n.s<0&&t.compareTo(re.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(n){var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(n){for(;n.t<=this.mt2;)n[n.t++]=0;for(var t=0;t<this.m.t;++t){var a=n[t]&32767,r=a*this.mpl+((a*this.mph+(n[t]>>15)*this.mpl&this.um)<<15)&n.DM;for(a=t+this.m.t,n[a]+=this.m.am(0,r,n,t,0,this.m.t);n[a]>=n.DV;)n[a]-=n.DV,n[++a]++}n.clamp(),n.drShiftTo(this.m.t,n),n.compareTo(this.m)>=0&&n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}(),zs=function(){function e(n){this.m=n,this.r2=se(),this.q3=se(),re.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n)}return e.prototype.convert=function(n){if(n.s<0||n.t>2*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var t=se();return n.copyTo(t),this.reduce(t),t},e.prototype.revert=function(n){return n},e.prototype.reduce=function(n){for(n.drShiftTo(this.m.t-1,this.r2),n.t>this.m.t+1&&(n.t=this.m.t+1,n.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);n.compareTo(this.r2)<0;)n.dAddOffset(1,this.m.t+1);for(n.subTo(this.r2,n);n.compareTo(this.m)>=0;)n.subTo(this.m,n)},e.prototype.mulTo=function(n,t,a){n.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(n,t){n.squareTo(t),this.reduce(t)},e}();function se(){return new re(null)}function ke(e,n){return new re(e,n)}var Xr=typeof navigator<"u";Xr&&Yr&&navigator.appName=="Microsoft Internet Explorer"?(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[n]&32767,u=this[n++]>>15,x=f*c+u*l;c=l*c+((x&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(x>>>15)+f*u+(i>>>30),a[r++]=c&1073741823}return i},mt=30):Xr&&Yr&&navigator.appName!="Netscape"?(re.prototype.am=function(n,t,a,r,i,s){for(;--s>=0;){var l=t*this[n++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},mt=26):(re.prototype.am=function(n,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[n]&16383,u=this[n++]>>14,x=f*c+u*l;c=l*c+((x&16383)<<14)+a[r]+i,i=(c>>28)+(x>>14)+f*u,a[r++]=c&268435455}return i},mt=28),re.prototype.DB=mt,re.prototype.DM=(1<<mt)-1,re.prototype.DV=1<<mt;var yo=52;re.prototype.FV=Math.pow(2,yo),re.prototype.F1=yo-mt,re.prototype.F2=2*mt-yo;var an=[],Ft,Qe;for(Ft="0".charCodeAt(0),Qe=0;Qe<=9;++Qe)an[Ft++]=Qe;for(Ft="a".charCodeAt(0),Qe=10;Qe<36;++Qe)an[Ft++]=Qe;for(Ft="A".charCodeAt(0),Qe=10;Qe<36;++Qe)an[Ft++]=Qe;function Jr(e,n){var t=an[e.charCodeAt(n)];return t??-1}function xt(e){var n=se();return n.fromInt(e),n}function rn(e){var n=1,t;return(t=e>>>16)!=0&&(e=t,n+=16),(t=e>>8)!=0&&(e=t,n+=8),(t=e>>4)!=0&&(e=t,n+=4),(t=e>>2)!=0&&(e=t,n+=2),(t=e>>1)!=0&&(e=t,n+=1),n}re.ZERO=xt(0),re.ONE=xt(1);var Fs=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(n){var t,a,r;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+n[t%n.length]&255,r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var n;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,n=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=n,this.S[n+this.S[this.i]&255]},e}();function Ms(){return new Fs}var ei=256,ln,yt=null,rt;if(yt==null){yt=[],rt=0;var sn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var po=new Uint32Array(256);for(window.crypto.getRandomValues(po),sn=0;sn<po.length;++sn)yt[rt++]=po[sn]&255}var cn=0,fn=function(e){if(cn=cn||0,cn>=256||rt>=ei){window.removeEventListener?window.removeEventListener("mousemove",fn,!1):window.detachEvent&&window.detachEvent("onmousemove",fn);return}try{var n=e.x+e.y;yt[rt++]=n&255,cn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",fn,!1):window.attachEvent&&window.attachEvent("onmousemove",fn))}function Ps(){if(ln==null){for(ln=Ms();rt<ei;){var e=Math.floor(65536*Math.random());yt[rt++]=e&255}for(ln.init(yt),rt=0;rt<yt.length;++rt)yt[rt]=0;rt=0}return ln.next()}var bo=function(){function e(){}return e.prototype.nextBytes=function(n){for(var t=0;t<n.length;++t)n[t]=Ps()},e}();function Hs(e,n){if(n<e.length+22)return console.error("Message too long for RSA"),null;for(var t=n-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return ke(i,16)}function qs(e,n){if(n<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&n>0;){var r=e.charCodeAt(a--);r<128?t[--n]=r:r>127&&r<2048?(t[--n]=r&63|128,t[--n]=r>>6|192):(t[--n]=r&63|128,t[--n]=r>>6&63|128,t[--n]=r>>12|224)}t[--n]=0;for(var i=new bo,s=[];n>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--n]=s[0]}return t[--n]=2,t[--n]=0,new re(t)}var Vs=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(n){return n.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(n){if(this.p==null||this.q==null)return n.modPow(this.d,this.n);for(var t=n.mod(this.p).modPow(this.dmp1,this.p),a=n.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(a)<0;)t=t.add(this.p);return t.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(n,t){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ke(n,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(n){var t=this.n.bitLength()+7>>3,a=qs(n,t);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(n,t,a){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ke(n,16),this.e=parseInt(t,16),this.d=ke(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(n,t,a,r,i,s,l,f){n!=null&&t!=null&&n.length>0&&t.length>0?(this.n=ke(n,16),this.e=parseInt(t,16),this.d=ke(a,16),this.p=ke(r,16),this.q=ke(i,16),this.dmp1=ke(s,16),this.dmq1=ke(l,16),this.coeff=ke(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var a=new bo,r=n>>1;this.e=parseInt(t,16);for(var i=new re(t,16);;){for(;this.p=new re(n-r,1,a),!(this.p.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new re(r,1,a),!(this.q.subtract(re.ONE).gcd(i).compareTo(re.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(re.ONE),f=this.q.subtract(re.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(re.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(n){var t=ke(n,16),a=this.doPrivate(t);return a==null?null:js(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(n,t,a){var r=new bo,i=n>>1;this.e=parseInt(t,16);var s=new re(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var d=l.p;l.p=l.q,l.q=d}var h=l.p.subtract(re.ONE),m=l.q.subtract(re.ONE),g=h.multiply(m);g.gcd(s).compareTo(re.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},u=function(){l.q=se(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},x=function(){l.p=se(),l.p.fromNumberAsync(n-i,1,r,function(){l.p.subtract(re.ONE).gcda(s,function(d){d.compareTo(re.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(x,0)})})};setTimeout(x,0)};setTimeout(f,0)},e.prototype.sign=function(n,t,a){var r=Gs(a),i=r+t(n).toString(),s=Hs(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(n,t,a){var r=ke(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ws(s);return l==a(n).toString()},e}();function js(e,n){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=n-1||t[a]!=2)return null;for(++a;t[a]!=0;)if(++a>=t.length)return null;for(var r="";++a<t.length;){var i=t[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(t[a+1]&63)<<6|t[a+2]&63),a+=2)}return r}var dn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Gs(e){return dn[e]||""}function Ws(e){for(var n in dn)if(dn.hasOwnProperty(n)){var t=dn[n],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var Be={};Be.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var
|
|
83
|
+
*/var Be={};Be.lang={extend:function(e,n,t){if(!n||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==Object.prototype.constructor&&(n.prototype.constructor=n),t){var r;for(r in t)e.prototype[r]=t[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,f){for(r=0;r<s.length;r=r+1){var c=s[r],u=f[c];typeof u=="function"&&u!=Object.prototype[c]&&(l[c]=u)}})}catch{}i(e.prototype,t)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),o=t.length;o%2==1?o+=1:n.match(/^[0-7]/)||(o+=2);for(var r="",i=0;i<o;i++)r+="f";var s=new re(r,16),l=s.xor(e).add(re.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=G,t=n.asn1,o=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,x=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,b=t.DERSet,p=t.DERTaggedObject,y=t.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var C=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":")==-1)throw"undefined key: "+C;if(C=="bool")return new o(e[C]);if(C=="int")return new r(e[C]);if(C=="bitstr")return new i(e[C]);if(C=="octstr")return new s(e[C]);if(C=="null")return new l(e[C]);if(C=="oid")return new f(e[C]);if(C=="enum")return new c(e[C]);if(C=="utf8str")return new u(e[C]);if(C=="numstr")return new x(e[C]);if(C=="prnstr")return new d(e[C]);if(C=="telstr")return new h(e[C]);if(C=="ia5str")return new m(e[C]);if(C=="utctime")return new g(e[C]);if(C=="gentime")return new v(e[C]);if(C=="seq"){for(var R=e[C],L=[],M=0;M<R.length;M++){var B=y(R[M]);L.push(B)}return new E({array:L})}if(C=="set"){for(var R=e[C],L=[],M=0;M<R.length;M++){var B=y(R[M]);L.push(B)}return new b({array:L})}if(C=="tag"){var w=e[C];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var _=y(w[2]);return new p({tag:w[0],explicit:w[1],obj:_})}else{var S={};if(w.explicit!==void 0&&(S.explicit=w.explicit),w.tag!==void 0&&(S.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=y(w.obj),new p(S)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),o=n%40,r=t+"."+o,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new re(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new re(l,10),u=c.toString(2),x=7-u.length%7;x==7&&(x=0);for(var d="",h=0;h<x;h++)d+="0";u=d+u;for(var h=0;h<u.length-1;h+=7){var m=u.substr(h,7);h!=u.length-7&&(m="1"+m),f+=n(parseInt(m,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var o="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);o+=n(i),r.splice(0,2);for(var s=0;s<r.length;s++)o+=t(r[s]);return o},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var o=t.length/2;if(o>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var r=128+o;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Be.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,o){var r=this.zeroPadding,i=this.localDateToUTC(n),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),u=r(String(i.getMinutes()),2),x=r(String(i.getSeconds()),2),d=s+l+f+c+u+x;if(o===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,o,r,i,s){var l=new Date(Date.UTC(n,t-1,o,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Be.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Be.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Be.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Be.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,o){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+o},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var o=8-t.length%8;o==8&&(o=0);for(var r=0;r<=o;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+o+i},this.setByBooleanArray=function(t){for(var o="",r=0;r<t.length;r++)t[r]==!0?o+="1":o+="0";this.setByBinaryString(o)},this.newFalseArray=function(t){for(var o=new Array(t),r=0;r<t;r++)o[r]=!1;return o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Be.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Be.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Be.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var n=function(o){var r=o.toString(16);return r.length==1&&(r="0"+r),r},t=function(o){var r="",i=new re(o,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),r+=n(parseInt(u,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueOidString=function(o){if(!o.match(/^[0-9.]+$/))throw"malformed oid string: "+o;var r="",i=o.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(o){var r=G.asn1.x509.OID.name2oid(o);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+o},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Be.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Be.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Be.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Be.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Be.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Be.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Be.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Be.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Be.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n+=o.getEncodedHex()}return this.hV=n,this.hV}},Be.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++){var o=this.asn1Array[t];n.push(o.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Be.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,o){this.hT=t,this.isExplicit=n,this.asn1Object=o,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=o.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Be.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Vs=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(o[i]=r[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function o(){this.constructor=n}n.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),$r=function(e){Vs(n,e);function n(t){var o=e.call(this)||this;return t&&(typeof t=="string"?o.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&o.parsePropertiesFrom(t)),o}return n.prototype.parseKey=function(t){try{var o=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?As.decode(t):co.unarmor(t),l=Es.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){o=l.sub[1].getHexStringValue(),this.n=Ae(o,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ae(f,16);var c=l.sub[4].getHexStringValue();this.p=Ae(c,16);var u=l.sub[5].getHexStringValue();this.q=Ae(u,16);var x=l.sub[6].getHexStringValue();this.dmp1=Ae(x,16);var d=l.sub[7].getHexStringValue();this.dmq1=Ae(d,16);var h=l.sub[8].getHexStringValue();this.coeff=Ae(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];o=g.sub[0].getHexStringValue(),this.n=Ae(o,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else o=l.sub[0].getHexStringValue(),this.n=Ae(o,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},o=new G.asn1.DERSequence(t);return o.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return Jt(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),o=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+o.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return Jt(this.getPublicBaseKey())},n.wordwrap=function(t,o){if(o=o||64,!t)return t;var r="(.{1,"+o+`})( +|$
|
|
91
|
-
?)|(.{1,`+
|
|
90
|
+
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var n=e.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(e){var n=e.toString(16);if(n.substr(0,1)!="-")n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n);else{var t=n.substr(1),a=t.length;a%2==1?a+=1:n.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new re(r,16),l=s.xor(e).add(re.ONE);n=l.toString(16).replace(/^-/,"")}return n},this.getPEMStringFromHex=function(e,n){return hextopem(e,n)},this.newObject=function(e){var n=G,t=n.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,x=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,b=t.DERSet,p=t.DERTaggedObject,y=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var C=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+C+":")==-1)throw"undefined key: "+C;if(C=="bool")return new a(e[C]);if(C=="int")return new r(e[C]);if(C=="bitstr")return new i(e[C]);if(C=="octstr")return new s(e[C]);if(C=="null")return new l(e[C]);if(C=="oid")return new f(e[C]);if(C=="enum")return new c(e[C]);if(C=="utf8str")return new u(e[C]);if(C=="numstr")return new x(e[C]);if(C=="prnstr")return new d(e[C]);if(C=="telstr")return new h(e[C]);if(C=="ia5str")return new m(e[C]);if(C=="utctime")return new g(e[C]);if(C=="gentime")return new v(e[C]);if(C=="seq"){for(var R=e[C],L=[],z=0;z<R.length;z++){var B=y(R[z]);L.push(B)}return new E({array:L})}if(C=="set"){for(var R=e[C],L=[],z=0;z<R.length;z++){var B=y(R[z]);L.push(B)}return new b({array:L})}if(C=="tag"){var w=e[C];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var _=y(w[2]);return new p({tag:w[0],explicit:w[1],obj:_})}else{var S={};if(w.explicit!==void 0&&(S.explicit=w.explicit),w.tag!==void 0&&(S.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return S.obj=y(w.obj),new p(S)}}},this.jsonToASN1HEX=function(e){var n=this.newObject(e);return n.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",n=parseInt(e.substr(0,2),16),t=Math.floor(n/40),a=n%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new re(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var n=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new re(l,10),u=c.toString(2),x=7-u.length%7;x==7&&(x=0);for(var d="",h=0;h<x;h++)d+="0";u=d+u;for(var h=0;h<u.length-1;h+=7){var m=u.substr(h,7);h!=u.length-7&&(m="1"+m),f+=n(parseInt(m,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=n(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var n=this.hV.length/2,t=n.toString(16);if(t.length%2==1&&(t="0"+t),n<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+n.toString(16);var r=128+a;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(this.s)},this.setStringHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Be.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(n){utc=n.getTime()+n.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(n,t,a){var r=this.zeroPadding,i=this.localDateToUTC(n),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),u=r(String(i.getMinutes()),2),x=r(String(i.getSeconds()),2),d=s+l+f+c+u+x;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(n,t){return n.length>=t?n:new Array(t-n.length+1).join("0")+n},this.getString=function(){return this.s},this.setString=function(n){this.hTLV=null,this.isModified=!0,this.s=n,this.hV=stohex(n)},this.setByDateValue=function(n,t,a,r,i,s){var l=new Date(Date.UTC(n,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Be.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array=n},this.appendASN1Object=function(n){this.hTLV=null,this.isModified=!0,this.asn1Array.push(n)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Be.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Be.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Be.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+n.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Be.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var n=G.asn1.ASN1Util.newObject(e.obj);e.hex=n.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Be.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Be.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var n=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new re(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var u=s.substr(c,7);c!=s.length-7&&(u="1"+u),r+=n(parseInt(u,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=n(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Be.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(n){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(n)},this.setByInteger=function(n){var t=new re(String(n),10);this.setByBigInteger(t)},this.setValueHex=function(n){this.hV=n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Be.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Be.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Be.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Be.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Be.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Be.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Be.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(n){this.hTLV=null,this.isModified=!0,this.date=n,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Be.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var n="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n+=a.getEncodedHex()}return this.hV=n,this.hV}},Be.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var n=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];n.push(a.getEncodedHex())}return this.sortFlag==!0&&n.sort(),this.hV=n.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Be.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(n,t,a){this.hT=t,this.isExplicit=n,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Be.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Us=globalThis&&globalThis.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ti=function(e){Us(n,e);function n(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(n.hasPrivateKeyProperty(t)||n.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return n.prototype.parseKey=function(t){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?_s.decode(t):mo.unarmor(t),l=Rs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=ke(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=ke(f,16);var c=l.sub[4].getHexStringValue();this.p=ke(c,16);var u=l.sub[5].getHexStringValue();this.q=ke(u,16);var x=l.sub[6].getHexStringValue();this.dmp1=ke(x,16);var d=l.sub[7].getHexStringValue();this.dmq1=ke(d,16);var h=l.sub[8].getHexStringValue();this.coeff=ke(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=ke(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=ke(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},n.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(t);return a.getEncodedHex()},n.prototype.getPrivateBaseKeyB64=function(){return on(this.getPrivateBaseKey())},n.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},n.prototype.getPublicBaseKeyB64=function(){return on(this.getPublicBaseKey())},n.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
91
|
+
?)|(.{1,`+a+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},n.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(
|
|
97
|
-
`),xo=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Js=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},sn=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},ec=(e,n=2)=>{const t=e+"",o=parseFloat(t);return isNaN(o)?e:o.toFixed(n)},tc=(e,n)=>Ke(n,e),Nt=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let o=0;o<t;o++){const r=n[o];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},cn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),jt=e=>{const{leftAxisList:n=[],rightAxisList:t=[],queryColumnList:o=[],indicators:r=[]}=e;return[...n,...t,...o,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},Ye=(e,n)=>{let t=!0;const o=jt(e);return o!=null&&o.length&&(t=o.map(r=>n[r.id]).every(r=>r)),t},fn=(e,n)=>{const t={dayjs:Te,...n};let o="";const r=[];for(const l in t)o+=`${l},`,r.push(t[l]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},we=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let u=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=u.match(x);for(let h=0;h<d.length;h++){const m=d[h],g=s[m];g!=null&&typeof g!="function"&&(u=u.replace(m,g))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=fn(u,t)),e=e.replace(c,u)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Le=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Oe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=a.inject(Se,{getGlobalModel:m=>{}}),x=we(t),d=async(m={})=>{if(!x||!o||!r)return;let g={};i.forEach(y=>{const{key:A,value:C}=y;if(typeof C=="object"&&C!=null&&C.id){let R={};const{id:L,prop:M,propKey:B,operate:w}=C;L==="THIS"?R=u(a.unref(c))||{}:R=u(L)||{};const _=a.unref(R[M]);let S=null;if(["date","range"].some(F=>Nt(R==null?void 0:R.type,F))){const{value:F,type:O,mode:z}=w||{};if(F&&O&&z)switch(O){case"add":S=a.unref(_).add(F,z);break;case"minus":S=a.unref(_).subtract(F,z);break}S==null&&(S=a.unref(_)),S=(S==null?void 0:S.format((B==null?void 0:B.trim())||R.format))||""}else Object.prototype.toString.call(_)==="[object Object]"?B?S=_[B]:S=M?_[M]:_:Nt(R==null?void 0:R.type,"select")&&a.unref(_)&&M&&Array.isArray(a.unref(_))?S=a.unref(_).map(F=>Object.prototype.hasOwnProperty.call(F,M)?F[M]:F):S=_;g[A]=S}else typeof C=="string"&&(g[A]=we(C))}),g={...window.config.requestParams,...m,...g};let v="";const E=Object.keys(g),b=E.length-1,p=E.length;E.forEach((y,A)=>{let C=g[y];Object.prototype.toString.call(C)==="[object Object]"&&(C=JSON.stringify(C)),A===0?p!==1?v+=`?${y}=${C}&`:v+=`?${y}=${C}`:A===b?v+=`${y}=${C}`:v+=`${y}=${C}&`});try{const y=["get","head"].includes(o),A={};let C=y?x+v:x;g.dataSqlId&&!C.includes("dataSqlId")&&(C+=`${C.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(A.signal=g.signal);const R=await ot({baseURL:a.unref(f)||"",url:C,method:o,headers:r,data:y?{}:g,...A});return n(R),R}catch(y){console.error(y)}},h=l&&setInterval(d,s*1e3);return a.onUnmounted(()=>{clearInterval(h)}),d},ht=(e=[],n,t=!1)=>{let{name:o="name",types:r=[]}=n||{};o=(o==null?void 0:o.trim())||o;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const x=[];for(let h=0;h<f;h++){const m=r[h],{label:g,value:v}=m,E={...e[0],value:e[0][v]};i.add(g),x.push(E)}const d=e[0][o]||"";s.set(d,x)}else for(let x=0;x<l;x++){const d=e[x],h=d[o];i.add(h);for(let m=0;m<f;m++){const g=r[m],{label:v,value:E}=g,b={...d,value:d[E]};if(s.has(v)){const p=s.get(v);p.push(b),s.set(v,p)}else s.set(v,[b])}}const c=Array.from(i),u=[];for(const[x,d]of s)u.push({name:x,data:d});return console.log("dimensions",c),console.log("dataset",u),{dimensions:c,dataset:u}},gt=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},ei=(e,n)=>{const t=`${Ka}/preview?pageId=${n}`,o=`${Ka}/${n}`;return e==="preview"?t:o},Ke=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=fn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},tt=(e={})=>{const{requestToken:n}=a.inject(Ua,{requestToken:()=>{}}),{setLoadedData:t}=a.inject(ct,{setLoadedData:(d,h)=>{}});e.dataType==="indicator"&&n();const o=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:E}=d;return{label:h,columnName:m,location:g,show:v,calcType:"COLUMN",hrpIndexCode:E}},r=(d,h)=>Object.prototype.hasOwnProperty.call(d,h),i=d=>{r(d,"dataType")&&(d.fieldType==="DATE"&&(d.label=d.fieldName),d.dataType==="component"&&(d.fieldValue="${"+d.fieldValue+"}"),delete d.dataType),r(d,"activeKey")&&delete d.activeKey,r(d,"radioValue")&&delete d.radioValue},s=d=>{const h=[];return d!=null&&d.length&&Pe.cloneDeep(d).forEach(m=>{if(m.join&&m.conditions){const g=!m.conditions.some(v=>v.join&&v.conditions);m.conditions.forEach((v,E)=>{i(v),g?E<m.conditions.length-1?h.push({join:m.join,...v}):h.push(v):v.join&&v.conditions?h.push({conditions:s([v]),join:m.join}):h.push(v)})}else i(m),h.push(m)}),h},l=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:E,calcType:b="COLUMN",builtInFormula:p,builtInValueSource:y,builtInCalcWay:A,formula:C,conditions:R,aggregate:L}=d;let M;if(R&&(M=s(R)),b==="COMPONENT"){const B={};return x(B,y),{label:h.trim(),columnName:m,show:v,calcType:b,componentAlias:A,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:m,location:g,show:v,calcType:b,hrpIndexCode:E,aggregate:L,builtInFormula:p,builtInValueSource:y,builtInCalcWay:A,formula:C,conditions:M}},f=d=>{const h=[];for(const m of d)m.conditions?h.push(...f(m.conditions)):(m==null?void 0:m.dataType)==="component"&&h.push(m);return h},{getGlobalModel:c}=a.inject(Se,{getGlobalModel:d=>{}}),u=d=>{if(!d)return[];const{controlList:h=[],classificationList:m=[],rowHeaderList:g=[],seriesList:v=[],leftAxisList:E=[],rightAxisList:b=[],queryColumnList:p=[],indicators:y=[]}=d,A=[...m,...g,...v,...E,...b,...p,...y],C=[];for(const B of A){const w=f((B==null?void 0:B.conditions)||[]);if(w!=null&&w.length){const _=w.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>({conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0}));if(_!=null&&_.length)for(const S of _)C.find(D=>D.keyName===S.keyName)||C.push(S)}}const R=h.concat(C),L=R.length,M=[];for(let B=0;B<L;B++){const w=R[B];if(w.mode==="cascade")continue;const{id:_,keyName:S,conditionLabel:D,conditionKey:F,conditionValueType:O,prop:z,rule:H="NONE",notGlobal:j=!1}=w;let P=S||_;P&&z&&(P+=`-${z}`);const k={rule:H,label:D,fieldName:F,fieldValue:"",valueType:O,alias:P,globalCondition:!j};x(k,_,z),M.push(k)}for(let B=M.length-1;B>=0;B--){const w=M[B];w.globalCondition||M.find(S=>S.alias===w.alias&&S.globalCondition)&&M.splice(B,1)}return M};function x(d,h,m){var y,A,C;const g=c(h)||{},{value:v,format:E="YYYY-MM-DD",type:b="",useCurrentTime:p}=g||{};Nt(g.type,"date")?(p?v?d.fieldValue=(y=a.unref(v))==null?void 0:y.format(E):d.fieldValue=Te().format(E):d.fieldValue=(A=a.unref(v))==null?void 0:A.format(E),d.dateFormat=E):b==="ecanRangePicker"&&m?(m==="startTime"?d.rule="GREATER_EQUAL":m==="endTime"&&(d.rule="LESS_EQUAL"),m==="endTime"&&p?d.fieldValue=Te().format(E):d.fieldValue=(C=a.unref(g[m]))==null?void 0:C.format(E),d.dateFormat=E):d.fieldValue=a.unref(v)}return async(d={})=>{var N,W,$,ne,Y,X;t(e.id,!1);const{graphicConfig:h,type:m,isGroupTable:g=!1}=e;let{source:v,dataViewId:E,plugin:b="1",layer:p,chartType:y,classificationList:A=[],rowHeaderList:C=[],seriesList:R=[],leftAxisList:L=[],rightAxisList:M=[],queryColumnList:B=[],indicators:w=[],controlList:_=[],formFields:S={},idxLibMode:D,preview:F=!1}=h||{},O=[];(h==null?void 0:h.pageMode)==="design"?O=h.sqlConditions??[]:O=u(h),p==null&&(Nt(m,["table"])?p="1":Nt(m,["select","checkbox","radio"])?p="3":p="2");let z,H="";if(Array.isArray(A)&&A.length>0){const K=A.length;for(let J=0;J<K;J++){const ae=A[J]||{},{label:he="",name:fe="",show:De=!1,sort:Fe,customGroup:Ne,conditions:Ve,dateFormat:je,typeGuid:Xe="",truncations:Ee=[]}=ae;if(De||K===1){H=Xe,z={label:he.trim(),columnName:fe,show:De,sort:Fe,customGroup:Ne,conditions:s(Ve),typeGuid:Xe},je&&(z.dateFormat=je),fe==="the_date"&&!z.dateFormat&&(z.dateFormat="YYYY-MM");const ke={};if(Array.isArray(Ee)&&Ee.length>0){const V=Ee.length;for(let U=0;U<V;U++){const Z=Ee[U]||{},{rule:ee="",num:te=0,name:Q=""}=Z;ee&&te&&(ke.num=te,ke.rule=ee,Q&&(ke.otherGroupName=Q))}}(N=Object.keys(ke))!=null&&N.length&&(z.truncation=ke);break}}}let j;if(Array.isArray(R)&&R.length>0){const K=R.length;for(let J=0;J<K;J++){const ae=R[J]||{},{label:he="",name:fe="",show:De=!1,sort:Fe,customGroup:Ne,conditions:Ve}=ae;if(De||K===1){j={label:he.trim(),columnName:fe,show:De,sort:Fe,customGroup:Ne,conditions:s(Ve)};break}}}const P=[];B==null||B.forEach(K=>{P.push(o(K))});const k=[];L==null||L.forEach(K=>{K.location="LEFT",k.push(l(K))}),M==null||M.forEach(K=>{K.location="RIGHT",k.push(l(K))}),w==null||w.forEach(K=>{K.location="LEFT",k.push(l(K))});const I=[];if(Array.isArray(C)&&C.length>0){const K=C.length;for(let J=0;J<K;J++){const ae=C[J]||{},{label:he="",name:fe="",show:De=!1,sort:Fe,customGroup:Ne,conditions:Ve,truncations:je,typeGuid:Xe=""}=ae;let Ee=Fe;if(d.sort){const{field:U,order:Z}=d.sort,ee=k.find(te=>te.label===U);ee&&(Ee={columnName:ee.columnName,label:d.sort.field,order:Z.toUpperCase(),type:"NORMAL"})}const ke={label:he.trim(),columnName:fe,show:De,sort:Ee,customGroup:Ne,conditions:s(Ve),typeGuid:Xe},V={};if(Array.isArray(je)&&je.length>0){const U=je.length;for(let Z=0;Z<U;Z++){const ee=je[Z]||{},{rule:te="",num:Q=0,name:oe=""}=ee;te&&Q&&(V.num=Q,V.rule=te,oe&&(V.otherGroupName=oe))}}(W=Object.keys(V))!=null&&W.length&&(ke.truncation=V),I.push(ke)}}if(Nt(m,["text","proportion"])&&(y="zb"),g){if(I.length===0||k.length===0)return;y="grouptable"}else{if(p==="1"&&P.length===0)return;if(p==="2"&&k.length===0)return;if(p==="3"&&(!H||!S.labelField||!S.valueField))return}let T=($=window==null?void 0:window.config)==null?void 0:$.pageId;if(!T){const{pathname:K}=window==null?void 0:window.location;if(K){const J=K.split("/");J!=null&&J.length&&(T=J[J.length-1])}}if((ne=Object.keys(S))!=null&&ne.length){const K=_.find(ae=>ae.mode==="cascade"),J={};if(K){const ae=c(K.id)||{};if(ae!=null&&ae.itemCodes)J.parentItemCodes=ae.itemCodes;else return}try{return await ot.post(`${Ya}/diagram/formData`,{source:v,dataViewId:E,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:H,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:T,sqlConditions:O,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...J},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:Za}})}catch(ae){console.error(ae)}finally{}}else try{return await ot.post(`${Ya}/diagram`,{source:v,dataViewId:E,plugin:b,layer:p,chartType:y,classification:z,series:j,indicatorList:k,queryColumns:g?[]:P,pageFlag:!0,pageId:T,sqlConditions:O.map(J=>{const{fieldValue:ae}=J,he={};return ae&&Array.isArray(ae)&&(he.fieldValue=JSON.stringify(ae)),{...J,...he}}),idxLibMode:D,preview:F,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(X=window==null?void 0:window.config)==null?void 0:X.indicatorToken,operateContext:Za}})}catch(K){console.error(K)}finally{}}},nc=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];o[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},oc=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...An},setup(e){const{width:n,height:t}=a.inject(Oe,{width:null,height:null}),o=a.inject("setPageHeight",y=>{}),r=a.inject("isMobile",!1),i=a.computed(()=>{const y={};return r||(y.width=n.value,y.height=t.value),{...y,backgroundColor:e.backgroundColor,backgroundImage:gt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=a.ref(0),l=a.ref(0),f=a.ref(0),c=a.ref(0),u=a.ref(!1),x=a.ref();let d;const h=()=>new Promise(y=>{a.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),y()})}),m=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${f.value}px`,x.value.style.height=`${c.value}px`)};a.watch([n,t],async()=>{await h(),m(),v(),window.addEventListener("resize",E),b(),u.value=!0},{immediate:!0});const g=a.ref({});a.provide("scaleValue",g);const v=()=>{if(r){x.value.style.width="100%",x.value.style.height="auto",o("auto");return}const y=document.body.clientWidth,A=document.body.clientHeight,C=s.value||f.value,R=l.value||c.value,L=y/C;let M=A/R;(s.value!==1920||l.value!==1080)&&(M=l.value/s.value*y/R),g.value={widthScale:L,heightScale:M},x.value&&(x.value.style.transform=`scale(${L}, ${M})`),o(M)},E=Pe.debounce(async()=>{await h(),v()},100),b=()=>{const y=window.MutationObserver;d=new y(E),d.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return a.onMounted(()=>{u.value=!1}),a.onUnmounted(()=>{window.removeEventListener("resize",E),p()}),{style:i,container:x,ready:u}}}),Pd="",ac={id:"container",ref:"container"};function rc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",ac,[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"page-config",style:a.normalizeStyle(e.style)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)):a.createCommentVNode("",!0)],512)}const ti=ge(de(oc,[["render",rc],["__scopeId","data-v-b496b36e"]])),yo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},po=xe(yo),ic=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...po},setup(e,{expose:n}){nc();const t=a.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),o=a.ref(),r=()=>{o.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{r()}),a.onMounted(()=>{r()});const i=a.computed(()=>we(e.contextRequestUrl)),s=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),f=a.computed(()=>e.width),c=a.computed(()=>e.height),u=a.ref("");a.provide(Oe,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:u,width:f,height:c});const x=a.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});a.provide("setPageHeight",T=>{let N=T;t.value||(N=parseFloat(c.value)*T+"px"),x.value.height=N}),a.provide("isMobile",t.value),a.provide("getContainerMap",()=>e.containerMap),a.provide("getCombinationMap",()=>e.combinationMap);const d=a.ref(),h=new Map;console.log("globalModel",h);const m=T=>h.get(T),g=(T,N)=>{d.value=N,h.set(T,N)},v=()=>{d.value=null};a.provide(Se,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:v,interactiveData:d});const E=a.ref({}),b=(T,N)=>{E.value[T]=N};a.provide(ct,{loadedData:E,setLoadedData:b});const p=[],y=()=>{p.pop()},A=T=>{p.push(T)},C=new Map,R=T=>C.get(T),L=(T,N)=>{C.set(T,N)};a.provide($a,{popUseModalIds:y,pushUseModalIds:A,getModalModel:R,setModalModel:L});const M=w0(),B=new Set,w=(T,N)=>{B.add(T),M.on(T,W=>typeof N[W]=="function"&&N[W]()),a.onBeforeUnmount(()=>{_(T)})},_=T=>{B.delete(T),M.off(T)},S=(T,N)=>{if(T==="PAGE"){const W=p.length;let $=[];if(W===0)$=[...B];else{const ne=p[W-1];$=[...R(ne)]}$.forEach(ne=>{M.emit(ne,N)})}else M.emit(T,N)};a.provide(Tn,{onEvent:w,offEvent:_,emitEvent:S});const D=a.ref(0),F=()=>{D.value=a.unref(D)+1};a.provide(Ua,{requestToken:F});const O=new Map,z=new Map,H=({requestFn:T=()=>{},sortNum:N=0,id:W=""})=>{if(O.has(N)){const $=O.get(N);$==null||$.push(T)}else O.set(N,[T]);z.set(W,T)},j=T=>new Promise((N,W)=>{const $=T.map(ne=>ne());Promise.all($).then(ne=>{N(ne)}).catch(ne=>{W(ne)})}),P=T=>new Promise(async(N,W)=>{if(T){if(typeof T=="string"){const $=z.get(T);if(typeof $=="function"){const ne=ot.interceptors.response.use(Y=>(N(Y),Y),Y=>(W(Y),Promise.reject(Y)));$(),ot.interceptors.response.eject(ne)}}}else{const $=Array.from(O);$.sort((Y,X)=>X[0]-Y[0]);const ne=$.length;try{e.pageMode!=="design"&&a.unref(D)>0;for(let Y=0;Y<ne;Y++){const X=$[Y][1];await j(X)}}catch(Y){console.error(Y)}finally{O.clear(),N(null)}}});a.provide(Re,{setRequest:H,touchRequest:P});const k=()=>{M.emit(qt)};a.provide(qt,{emitRefreshPage:k});const I=T=>{M.on(qt,()=>T()),a.onMounted(()=>{M.off(qt)})};return a.onBeforeUnmount(()=>{O==null||O.clear(),z==null||z.clear()}),n({touchRequest:P,getGlobalModel:m,onRefreshPage:I}),{providerConfig:o,configStyle:x}}}),qd="";function lc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:a.normalizeStyle(e.configStyle)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ni=ge(de(ic,[["render",lc],["__scopeId","data-v-7cceb095"]])),bo={...ve,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},vo=xe(bo),oi=["refreshData","click","valueChange"],ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",ri="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",So=a.defineComponent({name:"EcanText",components:{Skeleton:Kt},props:{...vo},setup(e,{expose:n}){const t=a.ref(!1),o=pe(e),r=a.ref({}),i=a.computed(()=>e.variableFontSize||"14px"),s=a.computed(()=>"-"+a.unref(i));a.watch(()=>[e.data,e.dataType],([w,_])=>{_==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=a.inject(Se,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{setLoadedData:c}=a.inject(ct,{setLoadedData:(w,_)=>{}}),u=a.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:_,gradientOffset:S,gradientAngle:D,color:F}=e;w+=`background: linear-gradient(${D}, ${F}, ${_||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return w}),x=a.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:_,gradientOffset:S,gradientAngle:D,color:F}=e,O=_||"transparent";w.background=`linear-gradient(${D}, ${F}, ${O} ${S*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),d=a.computed(()=>{var z;if(a.unref(t))return"NaN";const w=a.unref(r),_=e.increaseColor||e.color,S=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g," ");const F=D.match(/\{(.+?)\}/g)||[];let O="";if(F==null||F.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const H=parseFloat(D),j=H*100,P=h(j.toFixed(2));H>=0?D=`<span style="color: ${P||_||"#ED6643"};font-size:${a.unref(i)};display: inline-block;${a.unref(u)}">
|
|
96
|
+
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(Vs),vo,$s=typeof process<"u"?(vo=process.env)===null||vo===void 0?void 0:vo.npm_package_version:void 0,Zs=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ti(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Ur(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return on(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,a){try{return on(this.getKey().sign(n,t,a))}catch{return!1}},e.prototype.verify=function(n,t,a){try{return this.getKey().verify(n,Ur(t),a)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new ti,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=$s,e}();const ni=new Zs,Mt=Ys();function Ys(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const oi=Ue.enc.Utf8.parse("ABCDEF1234123412");function Ks(e,n){n=n||Mt;const t=Ue.enc.Utf8.parse(n);let a="";switch(typeof e){case"string":a=Ue.enc.Utf8.parse(e);break;case"object":a=Ue.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ue.enc.Utf8.parse(e.toString())}return Ue.AES.encrypt(a,t,{iv:oi,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding}).toString()}function ai(e,n){n=n||Mt;const t=Ue.enc.Utf8.parse(n),a=Ue.AES.decrypt(e,t,{iv:oi,mode:Ue.mode.CBC,padding:Ue.pad.ZeroPadding});return Ue.enc.Utf8.stringify(a).toString()}function Qs(e){ni.setPublicKey(e)}function Xs(e){return ni.encrypt(e)}function ri(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of t)if(new RegExp(a).test(e))return!0;return!1}function Js(e){const{paramType:n,data:t,params:a,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=Pt(a,"string"):e.data=Pt(t,"string"):["get","delete"].includes(r)?e.params=Pt(a,"string"):e.data=Pt(t)}function Pt(e,n){let t=e||{};if(n==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}Qs("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Xs(Mt);return{c:Ks(t,Mt),p:r}}window.getEncryptParam=Pt;function ec(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ri(e.url)&&(e.data instanceof FormData?e.data=tc(e.data):Js(e))}function tc(e){const n=e.entries(),t=new FormData,a={};for(const i of n){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=Pt(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Mt,window.xhaesDecrypt=ai;function ii(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ri(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ai(e.data.data.content,Mt);e.data=JSON.parse(a)}}const li=window.config.requestErrorTip,st=T0.create({timeout:1e3*180});st.interceptors.request.use(e=>{const{requestParams:n={}}=window.config;return n!=null&&n.pltToken&&(e.headers["Plt-Token"]=n.pltToken),ec(e),e},e=>Promise.reject(e)),st.interceptors.response.use(e=>{var n,t,a;return li&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ie.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),ii(e),e},e=>{if(ii(e==null?void 0:e.response),li)if(e.message.includes("timeout"))ie.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ie.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ie.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const nc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),So=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},oc=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},un=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},ac=(e,n=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(n)},rc=(e,n)=>Je(n,e),Ht=(e,n)=>{if(typeof e=="string"&&typeof n=="string")return e.toLocaleLowerCase().includes(n.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(n)){const t=n.length;for(let a=0;a<t;a++){const r=n[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},hn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Zt=e=>{const{leftAxisList:n=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...n,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},Xe=(e,n)=>{let t=!0;const a=Zt(e);return a!=null&&a.length&&(t=a.map(r=>n[r.id]).every(r=>r)),t},gn=(e,n)=>{const t={dayjs:Te,...n};let a="";const r=[];for(const l in t)a+=`${l},`,r.push(t[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Ae=(e="",{textData:n,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...n},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let u=c.slice(1,-1).trim();const x=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=u.match(x);for(let h=0;h<d.length;h++){const m=d[h],g=s[m];g!=null&&typeof g!="function"&&(u=u.replace(m,g))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=gn(u,t)),e=e.replace(c,u)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Fe=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=o.inject(ze,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=o.inject(Ce,{getGlobalModel:m=>{}}),x=Ae(t),d=async(m={})=>{if(!x||!a||!r)return;let g={};i.forEach(y=>{const{key:k,value:C}=y;if(typeof C=="object"&&C!=null&&C.id){let R={};const{id:L,prop:z,propKey:B,operate:w}=C;L==="THIS"?R=u(o.unref(c))||{}:R=u(L)||{};const _=o.unref(R[z]);let S=null;if(["date","range"].some(F=>Ht(R==null?void 0:R.type,F))){const{value:F,type:O,mode:P}=w||{};if(F&&O&&P)switch(O){case"add":S=o.unref(_).add(F,P);break;case"minus":S=o.unref(_).subtract(F,P);break}S==null&&(S=o.unref(_)),S=(S==null?void 0:S.format((B==null?void 0:B.trim())||R.format))||""}else Object.prototype.toString.call(_)==="[object Object]"?B?S=_[B]:S=z?_[z]:_:Ht(R==null?void 0:R.type,"select")&&o.unref(_)&&z&&Array.isArray(o.unref(_))?S=o.unref(_).map(F=>Object.prototype.hasOwnProperty.call(F,z)?F[z]:F):S=_;g[k]=S}else typeof C=="string"&&(g[k]=Ae(C))}),g={...window.config.requestParams,...m,...g};let v="";const E=Object.keys(g),b=E.length-1,p=E.length;E.forEach((y,k)=>{let C=g[y];Object.prototype.toString.call(C)==="[object Object]"&&(C=JSON.stringify(C)),k===0?p!==1?v+=`?${y}=${C}&`:v+=`?${y}=${C}`:k===b?v+=`${y}=${C}`:v+=`${y}=${C}&`});try{const y=["get","head"].includes(a),k={};let C=y?x+v:x;g.dataSqlId&&!C.includes("dataSqlId")&&(C+=`${C.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(k.signal=g.signal);const R=await st({baseURL:o.unref(f)||"",url:C,method:a,headers:r,data:y?{}:g,...k});return n(R),R}catch(y){console.error(y)}},h=l&&setInterval(d,s*1e3);return o.onUnmounted(()=>{clearInterval(h)}),d},pt=(e=[],n,t=!1)=>{let{name:a="name",types:r=[]}=n||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const x=[];for(let h=0;h<f;h++){const m=r[h],{label:g,value:v}=m,E={...e[0],value:e[0][v]};i.add(g),x.push(E)}const d=e[0][a]||"";s.set(d,x)}else for(let x=0;x<l;x++){const d=e[x],h=d[a];i.add(h);for(let m=0;m<f;m++){const g=r[m],{label:v,value:E}=g,b={...d,value:d[E]};if(s.has(v)){const p=s.get(v);p.push(b),s.set(v,p)}else s.set(v,[b])}}const c=Array.from(i),u=[];for(const[x,d]of s)u.push({name:x,data:d});return{dimensions:c,dataset:u}},bt=(e,n=!1)=>{var a;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,n&&(t=`url(${t})`),t},si=(e,n)=>{const t=`${ar}/preview?pageId=${n}`,a=`${ar}/${n}`;return e==="preview"?t:a},Je=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,n);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=gn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},it=(e={})=>{const{requestToken:n}=o.inject(er,{requestToken:()=>{}}),{setLoadedData:t}=o.inject(gt,{setLoadedData:(d,h)=>{}});e.dataType==="indicator"&&n();const a=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:E}=d;return{label:h,columnName:m,location:g,show:v,calcType:"COLUMN",hrpIndexCode:E}},r=(d,h)=>Object.prototype.hasOwnProperty.call(d,h),i=d=>{r(d,"dataType")&&(d.fieldType==="DATE"&&(d.label=d.fieldName),d.dataType==="component"&&(d.fieldValue="${"+d.fieldValue+"}"),delete d.dataType),r(d,"activeKey")&&delete d.activeKey,r(d,"radioValue")&&delete d.radioValue},s=d=>{const h=[];return d!=null&&d.length&&Ne.cloneDeep(d).forEach(m=>{if(m.join&&m.conditions){const g=!m.conditions.some(v=>v.join&&v.conditions);m.conditions.forEach((v,E)=>{i(v),g?E<m.conditions.length-1?h.push({join:m.join,...v}):h.push(v):v.join&&v.conditions?h.push({conditions:s([v]),join:m.join}):h.push(v)})}else i(m),h.push(m)}),h},l=(d={})=>{const{label:h,name:m,location:g,show:v,indexCode:E,calcType:b="COLUMN",builtInFormula:p,builtInValueSource:y,builtInCalcWay:k,formula:C,conditions:R,aggregate:L}=d;let z;if(R&&(z=s(R)),b==="COMPONENT"){const B={};return x(B,y),{label:h.trim(),columnName:m,show:v,calcType:b,componentAlias:k,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:m,location:g,show:v,calcType:b,hrpIndexCode:E,aggregate:L,builtInFormula:p,builtInValueSource:y,builtInCalcWay:k,formula:C,conditions:z}},f=d=>{const h=[];for(const m of d)m.conditions?h.push(...f(m.conditions)):(m==null?void 0:m.dataType)==="component"&&h.push(m);return h},{getGlobalModel:c}=o.inject(Ce,{getGlobalModel:d=>{}}),u=d=>{if(!d)return[];const{controlList:h=[],classificationList:m=[],rowHeaderList:g=[],seriesList:v=[],leftAxisList:E=[],rightAxisList:b=[],queryColumnList:p=[],indicators:y=[]}=d,k=[...m,...g,...v,...E,...b,...p,...y],C=[];for(const B of k){const w=f((B==null?void 0:B.conditions)||[]);if(w!=null&&w.length){const _=w.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>({conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0}));if(_!=null&&_.length)for(const S of _)C.find(D=>D.keyName===S.keyName)||C.push(S)}}const R=h.concat(C),L=R.length,z=[];for(let B=0;B<L;B++){const w=R[B];if(w.mode==="cascade")continue;const{id:_,keyName:S,conditionLabel:D,conditionKey:F,conditionValueType:O,prop:P,rule:H="NONE",notGlobal:j=!1}=w;let M=S||_;M&&P&&(M+=`-${P}`);const A={rule:H,label:D,fieldName:F,fieldValue:"",valueType:O,alias:M,globalCondition:!j};x(A,_,P),z.push(A)}for(let B=z.length-1;B>=0;B--){const w=z[B];w.globalCondition||z.find(S=>S.alias===w.alias&&S.globalCondition)&&z.splice(B,1)}return z};function x(d,h,m){var y,k,C;const g=c(h)||{},{value:v,format:E="YYYY-MM-DD",type:b="",useCurrentTime:p}=g||{};Ht(g.type,"date")?(p?v?d.fieldValue=(y=o.unref(v))==null?void 0:y.format(E):d.fieldValue=Te().format(E):d.fieldValue=(k=o.unref(v))==null?void 0:k.format(E),d.dateFormat=E):b==="ecanRangePicker"&&m?(m==="startTime"?d.rule="GREATER_EQUAL":m==="endTime"&&(d.rule="LESS_EQUAL"),m==="endTime"&&p?d.fieldValue=Te().format(E):d.fieldValue=(C=o.unref(g[m]))==null?void 0:C.format(E),d.dateFormat=E):d.fieldValue=o.unref(v)}return async(d={})=>{var N,U,$,ne,Y,Q;t(e.id,!1);const{graphicConfig:h,type:m,isGroupTable:g=!1}=e;let{source:v,dataViewId:E,plugin:b="1",layer:p,chartType:y,classificationList:k=[],rowHeaderList:C=[],seriesList:R=[],leftAxisList:L=[],rightAxisList:z=[],queryColumnList:B=[],indicators:w=[],controlList:_=[],formFields:S={},idxLibMode:D,preview:F=!1}=h||{},O=[];(h==null?void 0:h.pageMode)==="design"?O=h.sqlConditions??[]:O=u(h),p==null&&(Ht(m,["table"])?p="1":Ht(m,["select","checkbox","radio"])?p="3":p="2");let P,H="";if(Array.isArray(k)&&k.length>0){const Z=k.length;for(let J=0;J<Z;J++){const ae=k[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e,dateFormat:Ze,typeGuid:et="",truncations:Ee=[]}=ae;if(Ie||Z===1){H=et,P={label:he.trim(),columnName:fe,show:Ie,sort:He,customGroup:qe,conditions:s($e),typeGuid:et},Ze&&(P.dateFormat=Ze),fe==="the_date"&&!P.dateFormat&&(P.dateFormat="YYYY-MM");const Se={};if(Array.isArray(Ee)&&Ee.length>0){const Re=Ee.length;for(let je=0;je<Re;je++){const tt=Ee[je]||{},{rule:Me="",num:Ve=0,name:V=""}=tt;Me&&Ve&&(Se.num=Ve,Se.rule=Me,V&&(Se.otherGroupName=V))}}(N=Object.keys(Se))!=null&&N.length&&(P.truncation=Se);break}}}let j;if(Array.isArray(R)&&R.length>0){const Z=R.length;for(let J=0;J<Z;J++){const ae=R[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e}=ae;if(Ie||Z===1){j={label:he.trim(),columnName:fe,show:Ie,sort:He,customGroup:qe,conditions:s($e)};break}}}const M=[];B==null||B.forEach(Z=>{M.push(a(Z))});const A=[];L==null||L.forEach(Z=>{Z.location="LEFT",A.push(l(Z))}),z==null||z.forEach(Z=>{Z.location="RIGHT",A.push(l(Z))}),w==null||w.forEach(Z=>{Z.location="LEFT",A.push(l(Z))});const I=[];if(Array.isArray(C)&&C.length>0){const Z=C.length;for(let J=0;J<Z;J++){const ae=C[J]||{},{label:he="",name:fe="",show:Ie=!1,sort:He,customGroup:qe,conditions:$e,truncations:Ze,typeGuid:et=""}=ae;let Ee=He;if(d.sort){const{field:je,order:tt}=d.sort,Me=A.find(Ve=>Ve.label===je);Me&&(Ee={columnName:Me.columnName,label:d.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const Se={label:he.trim(),columnName:fe,show:Ie,sort:Ee,customGroup:qe,conditions:s($e),typeGuid:et},Re={};if(Array.isArray(Ze)&&Ze.length>0){const je=Ze.length;for(let tt=0;tt<je;tt++){const Me=Ze[tt]||{},{rule:Ve="",num:V=0,name:W=""}=Me;Ve&&V&&(Re.num=V,Re.rule=Ve,W&&(Re.otherGroupName=W))}}(U=Object.keys(Re))!=null&&U.length&&(Se.truncation=Re),I.push(Se)}}if(Ht(m,["text","proportion"])&&(y="zb"),g){if(I.length===0||A.length===0)return;y="grouptable"}else{if(p==="1"&&M.length===0)return;if(p==="2"&&A.length===0)return;if(p==="3"&&(!H||!S.labelField||!S.valueField))return}let T=($=window==null?void 0:window.config)==null?void 0:$.pageId;if(!T){const{pathname:Z}=window==null?void 0:window.location;if(Z){const J=Z.split("/");J!=null&&J.length&&(T=J[J.length-1])}}if((ne=Object.keys(S))!=null&&ne.length){const Z=_.find(ae=>ae.mode==="cascade"),J={};if(Z){const ae=c(Z.id)||{};if(ae!=null&&ae.itemCodes)J.parentItemCodes=ae.itemCodes;else return}try{return await st.post(`${or}/diagram/formData`,{source:v,dataViewId:E,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:H,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:T,sqlConditions:O,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...J},{headers:{Authentication:(Y=window==null?void 0:window.config)==null?void 0:Y.indicatorToken,operateContext:nr}})}catch(ae){console.error(ae)}finally{}}else try{return await st.post(`${or}/diagram`,{source:v,dataViewId:E,plugin:b,layer:p,chartType:y,classification:P,series:j,indicatorList:A,queryColumns:g?[]:M,pageFlag:!0,pageId:T,sqlConditions:O.map(J=>{const{fieldValue:ae}=J,he={};return ae&&Array.isArray(ae)&&(he.fieldValue=JSON.stringify(ae)),{...J,...he}}),idxLibMode:D,preview:F,rowHeaders:I,keyName:e.keyName},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:nr}})}catch(Z){console.error(Z)}finally{}}},ic=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,a={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},lc=o.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Dn},setup(e){const{width:n,height:t}=o.inject(ze,{width:null,height:null}),a=o.inject("setPageHeight",y=>{}),r=o.inject("isMobile",!1),i=o.computed(()=>{const y={};return r||(y.width=n.value,y.height=t.value),{...y,backgroundColor:e.backgroundColor,backgroundImage:bt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=o.ref(0),l=o.ref(0),f=o.ref(0),c=o.ref(0),u=o.ref(!1),x=o.ref();let d;const h=()=>new Promise(y=>{o.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=x.value.clientWidth,l.value=x.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),y()})}),m=()=>{s.value&&l.value?(x.value.style.width=`${s.value}px`,x.value.style.height=`${l.value}px`):(x.value.style.width=`${f.value}px`,x.value.style.height=`${c.value}px`)};o.watch([n,t],async()=>{await h(),m(),v(),window.addEventListener("resize",E),b(),u.value=!0},{immediate:!0});const g=o.ref({});o.provide("scaleValue",g);const v=()=>{if(r){x.value.style.width="100%",x.value.style.height="auto",a("auto");return}const y=document.body.clientWidth,k=document.body.clientHeight,C=s.value||f.value,R=l.value||c.value,L=y/C;let z=k/R;(s.value!==1920||l.value!==1080)&&(z=l.value/s.value*y/R),g.value={widthScale:L,heightScale:z},x.value&&(x.value.style.transform=`scale(${L}, ${z})`),a(z)},E=Ne.debounce(async()=>{await h(),v()},100),b=()=>{const y=window.MutationObserver;d=new y(E),d.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return o.onMounted(()=>{u.value=!1}),o.onUnmounted(()=>{window.removeEventListener("resize",E),p()}),{style:i,container:x,ready:u}}}),qd="",sc={id:"container",ref:"container"};function cc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",sc,[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"page-config",style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)):o.createCommentVNode("",!0)],512)}const ci=ge(ue(lc,[["render",cc],["__scopeId","data-v-b496b36e"]])),Co={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},wo=me(Co),fc=o.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...wo},setup(e,{expose:n}){ic();const t=o.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=o.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)};o.watch(()=>e.theme,()=>{r()}),o.onMounted(()=>{r()});const i=o.computed(()=>Ae(e.contextRequestUrl)),s=o.computed(()=>e.pageMode),l=o.computed(()=>e.theme),f=o.computed(()=>e.width),c=o.computed(()=>e.height),u=o.ref("");o.provide(ze,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:u,width:f,height:c});const x=o.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});o.provide("setPageHeight",T=>{let N=T;t.value||(N=parseFloat(c.value)*T+"px"),x.value.height=N}),o.provide("isMobile",t.value),o.provide("getContainerMap",()=>e.containerMap),o.provide("getCombinationMap",()=>e.combinationMap);const d=o.ref(),h=new Map;console.log("globalModel",h);const m=T=>h.get(T),g=(T,N)=>{d.value=N,h.set(T,N)},v=()=>{d.value=null};o.provide(Ce,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:v,interactiveData:d});const E=o.ref({}),b=(T,N)=>{E.value[T]=N};o.provide(gt,{loadedData:E,setLoadedData:b});const p=[],y=()=>{p.pop()},k=T=>{p.push(T)},C=new Map,R=T=>C.get(T),L=(T,N)=>{C.set(T,N)};o.provide(tr,{popUseModalIds:y,pushUseModalIds:k,getModalModel:R,setModalModel:L});const z=B0(),B=new Set,w=(T,N)=>{B.add(T),z.on(T,U=>typeof N[U]=="function"&&N[U]()),o.onBeforeUnmount(()=>{_(T)})},_=T=>{B.delete(T),z.off(T)},S=(T,N)=>{if(T==="PAGE"){const U=p.length;let $=[];if(U===0)$=[...B];else{const ne=p[U-1];$=[...R(ne)]}$.forEach(ne=>{z.emit(ne,N)})}else z.emit(T,N)};o.provide(In,{onEvent:w,offEvent:_,emitEvent:S});const D=o.ref(0),F=()=>{D.value=o.unref(D)+1};o.provide(er,{requestToken:F});const O=new Map,P=new Map,H=({requestFn:T=()=>{},sortNum:N=0,id:U=""})=>{if(O.has(N)){const $=O.get(N);$==null||$.push(T)}else O.set(N,[T]);P.set(U,T)},j=T=>new Promise((N,U)=>{const $=T.map(ne=>ne());Promise.all($).then(ne=>{N(ne)}).catch(ne=>{U(ne)})}),M=T=>new Promise(async(N,U)=>{if(T){if(typeof T=="string"){const $=P.get(T);if(typeof $=="function"){const ne=st.interceptors.response.use(Y=>(N(Y),Y),Y=>(U(Y),Promise.reject(Y)));$(),st.interceptors.response.eject(ne)}}}else{const $=Array.from(O);$.sort((Y,Q)=>Q[0]-Y[0]);const ne=$.length;try{e.pageMode!=="design"&&o.unref(D)>0;for(let Y=0;Y<ne;Y++){const Q=$[Y][1];await j(Q)}}catch(Y){console.error(Y)}finally{O.clear(),N(null)}}});o.provide(Oe,{setRequest:H,touchRequest:M});const A=()=>{z.emit(Ut)};o.provide(Ut,{emitRefreshPage:A});const I=T=>{z.on(Ut,()=>T()),o.onMounted(()=>{z.off(Ut)})};return o.onBeforeUnmount(()=>{O==null||O.clear(),P==null||P.clear()}),n({touchRequest:M,getGlobalModel:m,onRefreshPage:I}),{providerConfig:a,configStyle:x}}}),jd="";function dc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:o.normalizeStyle(e.configStyle)},[o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const fi=ge(ue(fc,[["render",dc],["__scopeId","data-v-7cceb095"]])),Ao={...ve,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},ko=me(Ao),di=["refreshData","click","valueChange"],To="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Bo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Eo=o.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...ko},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref({}),i=o.computed(()=>e.variableFontSize||"14px"),s=o.computed(()=>"-"+o.unref(i));o.watch(()=>[e.data,e.dataType],([w,_])=>{_==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=o.inject(Ce,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{setLoadedData:c}=o.inject(gt,{setLoadedData:(w,_)=>{}}),u=o.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:_,gradientOffset:S,gradientAngle:D,color:F}=e;w+=`background: linear-gradient(${D}, ${F}, ${_||"transparent"} ${S*100}%);-webkit-background-clip: text;color: transparent;`}return w}),x=o.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:_,gradientOffset:S,gradientAngle:D,color:F}=e,O=_||"transparent";w.background=`linear-gradient(${D}, ${F}, ${O} ${S*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),d=o.computed(()=>{var P;if(o.unref(t))return"NaN";const w=o.unref(r),_=e.increaseColor||e.color,S=e.declineColor||e.color;let D=e.text;D=D==null?void 0:D.replace(/\n|\\n/g,"<br/>"),D=D==null?void 0:D.replace(/\s(?!\{) | (?!\})\s/g," ");const F=D.match(/\{(.+?)\}/g)||[];let O="";if(F==null||F.length===0){if(D&&e.format==="percentage"&&!isNaN(+D)){const H=parseFloat(D),j=H*100,M=h(j.toFixed(2));H>=0?D=`<span style="color: ${M||_||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
|
|
98
98
|
<div class="percentage-img-box">
|
|
99
|
-
<img style="width: ${
|
|
99
|
+
<img style="width: ${o.unref(i)};filter: ${`drop-shadow(${M||_||"#ED6643"} ${o.unref(i)} 0px)`};" src="${To}"/>
|
|
100
100
|
</div>
|
|
101
|
-
<span style="color: ${
|
|
102
|
-
</span>`:D=`<span style="color: ${
|
|
101
|
+
<span style="color: ${M||e.color};${o.unref(u)}">${Math.abs(+j).toFixed(2)}%</span>
|
|
102
|
+
</span>`:D=`<span style="color: ${M||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${
|
|
104
|
+
<img style="width: ${o.unref(i)};filter: ${`drop-shadow(${M||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${Bo}"/>
|
|
105
105
|
</div>
|
|
106
|
-
<span style="color: ${
|
|
107
|
-
</span>`}O=D}for(let H=0;H<F.length;H++){const j=F[H],
|
|
106
|
+
<span style="color: ${M||e.color};${o.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+j).toFixed(2)}%</span>
|
|
107
|
+
</span>`}O=D}for(let H=0;H<F.length;H++){const j=F[H],M=(P=j==null?void 0:j.slice(1,j.length-1))==null?void 0:P.trim();let A=M;const I=M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let N=0;N<I.length;N++){const U=I[N],$=w[U];$&&(A=M.replace(U,$))}if(/\(.*\)/g.test(A)){const N=gn(A);N!=null&&(A=N)}let T=A;if(T===M&&(T=e.variableDefaultValue),T!=null){const N=e.format;if(N==="percentage")if(T=+T,isNaN(T))D=D.replace(j,`<span style="color:${h("0.00")||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">0%</span>`);else if(T>=0){T=T*100;const U=h(T.toFixed(2));D=D.replace(j,`<span style="color: ${U||_||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${
|
|
109
|
+
<img style="width: ${o.unref(i)};filter: ${`drop-shadow(${U||_||"#ED6643"} ${o.unref(i)} 0px)`};" src="${To}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${
|
|
112
|
-
</span>`)}else{T=T*100;const
|
|
111
|
+
<span style="color: ${U||e.color};${o.unref(u)}">${Math.abs(+T).toFixed(2)}%</span>
|
|
112
|
+
</span>`)}else{T=T*100;const U=h(T.toFixed(2));D=D.replace(j,`<span style="color: ${U||S||"#6ACB97"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${
|
|
114
|
+
<img style="width: ${o.unref(i)};filter: ${`drop-shadow(${U||S||"#6ACB97"} ${o.unref(i)} 0px)`};" src="${Bo}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${
|
|
117
|
-
</span>`)}else e.format==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${a.unref(i)};${a.unref(u)}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=xo(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${a.unref(i)};${a.unref(u)}">${T}</span>`))):N==="thousands"?(T=+T,isNaN(T)||(T=Js(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${a.unref(i)};${a.unref(u)}">${T}</span>`))):D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${a.unref(i)};${a.unref(u)}">${T}</span>`)}}if(O||(O=`<span style="color: ${h(D)};${a.unref(u)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:j}=e;let P="position:relative;";H&&(P+=`top:${H};`),j&&(P+=`margin-left:${j};`),O+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${a.unref(u)}'>${e.unitText}</span>`}return O});function h(w){let _="",S=!1;const{targetValue:D,targetShow:F,notExpectColor:O}=e;if(F){switch(e.targetRule){case"equal":w!==D&&(S=!0);break;case"greater":w<=D&&(S=!0);break;case"greater_equal":w<D&&(S=!0);break;case"less":w>=D&&(S=!0);break;case"less_equal":w>D&&(S=!0);break}S&&(_=O)}return _}const{pageMode:m}=a.inject(Oe,{pageMode:"normal"}),g=Le(e),v=a.ref(!1),E=async()=>{var w;try{v.value=!0;const _=await g();r.value=((w=_==null?void 0:_.data)==null?void 0:w.data)||{}}catch(_){console.error(_)}finally{v.value=!1}},b=(w={})=>{r.value=w},p=w=>{const _=e.id,S=l(_);f(_,{...S,value:w||""})},y=tt(e),A=async()=>{var w;try{v.value=!0;const _=await y(),{data:S}=(_==null?void 0:_.data)||{};if(S){t.value=!1;const{columns:D=[],rows:F=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let O={};if(D.length>0){const z=D.find(H=>!!H);z&&(O={value:isNaN(F[z])?0:F[z]||0})}p(O==null?void 0:O.value),b(O)}else t.value=!0,p("NaN"),b({value:"NaN"})}catch(_){console.error(_)}finally{v.value=!1,c(e.id,!0)}},C=()=>{switch(e.dataType){case"indicator":A();break;case"request":E();break}},{setRequest:R}=a.inject(Re,{setRequest:({id:w,sortNum:_,requestFn:S})=>{}});typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),_e(e,{refreshData:C}),n({refreshData:C});const L=Ce(e),M=L("click",()=>{if(!e.linkPage&&!e.href)return;const w=e.linkPage||"",_=ei(a.unref(m),w),S=e.href;let D=S||_;D=we(D);const F=e.target;F&&(F!=="event"?window.open(D,"_"+F):window.parent.postMessage({type:"openPage",url:S},"*"))}),B=L("valueChange",()=>{});return a.watch(()=>d.value,(w,_)=>{w!==_&&B()}),{style:o,myText:d,loading:v,click:M,textIndent:s,vFontSize:i,gradientStyle:x}}}),ii=()=>{a.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},li=So.setup;So.setup=li?(e,n)=>(ii(),li(e,n)):ii;const jd="",sc=["innerHTML"];function cc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"ecan-text",style:a.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,sc))}const si=ge(de(So,[["render",cc],["__scopeId","data-v-3cbb70ab"]])),fc=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),Wd="",dc={class:"red"};function uc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",dc,a.toDisplayString(e.text),1)}const ci=ge(de(fc,[["render",uc],["__scopeId","data-v-4dd9c03e"]])),Co={...ve,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},wo=xe(Co),fi=["timeChange"],hc=a.defineComponent({name:"EcanTimeDisplay",props:{...wo},setup(e){const n=pe(e),t=()=>{const{format:c,operate:u}=e;let x=Te();if(u){const{type:d,value:h,mode:m}=u;switch(d){case"add":x=x.add(h,m);break;case"minus":x=x.subtract(h,m)}}return x.format(c)},o=a.ref();a.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),a.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ce(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:x}=e.updateInterval||{};u&&(c=c*u);const d={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*d[x]),r=setInterval(()=>{o.value=t(),l()},c)};return _e(e,{timeChange:l}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),$d="";function gc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"time-display",style:a.normalizeStyle(e.style)},a.toDisplayString(e.time),5)}const di=ge(de(hc,[["render",gc],["__scopeId","data-v-b628fca2"]])),ko={...ve,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},Ao=xe(ko),ui=["refreshData","click"],mc=a.defineComponent({name:"EcanList",components:{Skeleton:Kt},props:{...Ao},setup(e){const n=a.ref(e.data),t=pe(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:xo,percentage:sn,contrast:sn}[m](h)||"",i=(h,m)=>{const g=parseFloat(h+"");if(m!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},s=Le(e),l=a.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{l.value=!0;const m=await s();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{l.value=!1}},c=()=>{f()},x=Ce(e)("click",()=>{});_e(e,{refreshData:c});const{setRequest:d}=a.inject(Re,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:l,click:x}}}),Yd="",Kd="",xc=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),yc={key:0,class:"title"},pc={key:0,class:"ranking"},bc={key:1,class:"ecan-list-content"},vc={key:0,class:"ranking"},Sc=xc(()=>a.createElementVNode("div",{class:"icon"},null,-1)),Cc={class:"sort"},wc={key:2,class:"empty"};function kc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(s,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",yc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,l=>(a.openBlock(),a.createElementBlock("div",{class:"title-inner",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(a.openBlock(),a.createElementBlock("div",pc)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"column",key:f.key||c,style:a.normalizeStyle({color:f.titleColor,...e.columnStyle})},a.toDisplayString(f.title),5))),128))],4))),128))])):a.createCommentVNode("",!0),e.dataSource.length>0?(a.openBlock(),a.createElementBlock("div",bc,[e.useTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title-placeholder",style:a.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(a.openBlock(),a.createElementBlock("div",{class:"item",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",vc,[Sc,a.createElementVNode("div",Cc," Top "+a.toDisplayString(f+1),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,c=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",wc," 暂无数据 "))]),_:1},8,["loading"])],4)}const hi=ge(de(mc,[["render",kc],["__scopeId","data-v-7aa27677"]])),To={...ve,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Bo=xe(To),gi=["refreshData","click"],Ac=a.defineComponent({name:"EcanProportion",components:{AProgress:ie.Progress,Skeleton:Kt},props:{...Bo},setup(e,{expose:n}){const t=a.ref(!1),{pageMode:o}=a.inject(Oe,{pageMode:"normal"}),r=pe(e),i=a.computed(()=>{const y=e.width;return parseFloat(y)}),s=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(o)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=a.computed(()=>{const y=a.unref(s),A=+e.variableDefaultValue;if(y==null)return isNaN(A)?0:A;const C=e.text.match(/\{.+\}/g)||[];let R;const L=new Set(Object.keys(y));for(let M=0;M<C.length;M++){const B=C[M],w=B.slice(1,B.length-1);if(L.has(w)){R=y[w];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(A)?R=0:R=A*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),f=a.computed(()=>{var L;let y=e.text;if(y==="")return a.unref(l);const A=e.variableDefaultValue,C=a.unref(s),R=y.match(/\{.+\}/g)||[];for(let M=0;M<R.length;M++){const B=R[M];let w=B.slice(1,B.length-1);const _=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,S=B.match(_);for(let F=0;F<(S==null?void 0:S.length);F++){const O=(L=S[F])==null?void 0:L.trim();C[O]!=null&&(w=w.replace(O,C[O]))}let D=w;try{/\(.*\)/g.test(w)&&(D=fn(w))}catch(F){console.error(F)}typeof+D=="number"&&!isNaN(+D)?(D=+D*100,e.decimalFormat&&(D=D.toFixed(2))):D=A,y=y.replace(B,D+"")}return a.unref(t)?"NaN":y}),c=Le(e),u=a.ref(!1),x=async()=>{var y;if(e.dataType==="request")try{u.value=!0;const A=await c();s.value=((y=A==null?void 0:A.data)==null?void 0:y.data)||{}}catch(A){console.error(A)}finally{u.value=!1}},d=(y={})=>{s.value=y},h=tt(e),m=async()=>{var y;try{u.value=!0;const A=await h(),{data:C}=(A==null?void 0:A.data)||{};if(C){t.value=!1;const{columns:R=[],rows:L=[]}=((y=A==null?void 0:A.data)==null?void 0:y.data)??{};let M={};if(R.length>0){const B=R.find(w=>!!w);B&&(M={percent:L[B]})}d(M)}else t.value=!0,d({percent:"NaN"})}catch(A){console.error(A)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};_e(e,{refreshData:g}),n({refreshData:g});const E=Ce(e)("click",()=>{}),{setRequest:b}=a.inject(Re,{setRequest:({id:y,sortNum:A,requestFn:C})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const p=a.computed(()=>{const{gradientShow:y,gradientColor:A,gradientOffset:C,strokeColor:R}=e;let L=R;return y&&A&&(L={"0%":R,[`${C*100}%`]:A}),L});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:E,customStrokeColor:p}}}),Qd="";function Tc(e,n,t,o,r,i){const s=a.resolveComponent("skeleton"),l=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5)):a.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const mi=ge(de(Ac,[["render",Tc],["__scopeId","data-v-cf942b5f"]])),Eo={...ve,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},_o=xe(Eo),xi=["inputChange","inputBlur"],Bc=a.defineComponent({name:"EcanInput",components:{AInput:ie.Input},props:{..._o},setup(e){const n=pe(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(Se,{getGlobalModel:c=>{},setGlobalModel:(c,u)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},s=Ce(e),l=Pe.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),e1="";function Ec(e,n,t,o,r,i){const s=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:a.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const yi=ge(de(Bc,[["render",Ec]])),Do={...ve,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Ro=xe(Do),pi=["dateChange"],Io=a.defineComponent({name:"EcanDatePicker",props:{...Ro},components:{ADatePicker:ie.DatePicker},setup(e){const n=a.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=pe(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,h,m])=>{let g=null;if(d?g=Te(we(d)):h&&(g=Te()),m&&g){const{type:v,value:E,mode:b}=m;switch(v){case"add":g=g.add(E,b);break;case"minus":g=g.subtract(E,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=a.inject(Se,{setGlobalModel:(d,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ce(e)("dateChange",()=>{}),f=()=>{a.unref(r)&&l()};_e(e,{dateChange:l});const c=a.ref({}),u=a.ref({}),x=d=>{d?setTimeout(()=>{u.value=a.unref(c)},300):u.value={}};return a.onMounted(()=>{setTimeout(()=>{const d=document.querySelector(`#ecan-date-picker-${e.id}`);if(d){const h=d.getBoundingClientRect(),m=parseFloat(a.unref(n).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:o,myValue:r,locale:wa,change:f,scaleValue:n,popupStyle:c,customStyle:u,openChange:x}}}),bi=()=>{a.useCssVars(e=>({"678f746e":e.optionFontSize}))},vi=Io.setup;Io.setup=vi?(e,n)=>(bi(),vi(e,n)):bi;const n1="",o1="",_c=["id"];function Dc(e,n,t,o,r,i){const s=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[a.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,_c)}const Si=ge(de(Io,[["render",Dc],["__scopeId","data-v-3b46cbbe"]])),Oo={...ve,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},Lo=xe(Oo),Ci=["dateChange"];var wi={exports:{}};(function(e,n){(function(t,o){e.exports=o()})(le,function(){var t="month",o="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===o?this.add(3*c,t):l.bind(this)(c,u)};var f=s.startOf;s.startOf=function(c,u){var x=this.$utils(),d=!!x.u(u)||u;if(x.p(c)===o){var h=this.quarter()-1;return d?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return f.bind(this)(c,u)}}})})(wi);var Rc=wi.exports;const Ic=Xa(Rc);Te.extend(Ic);const No=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ie.RangePicker},props:{...Lo},setup(e){const n=pe(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref([null,null]);a.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,y,A,C,R,L])=>{let M=null,B=null;if(A&&(M=Te().subtract(C,R),B=Te()),p&&(M=Te(we(p))),y&&(B=Te(we(y))),L){const{type:w,value:_,mode:S}=L;switch(w){case"add":M=M&&M.add(_,S),B=B&&B.add(_,S);break;case"minus":M=M&&M.subtract(_,S),B=B&&B.subtract(_,S)}}o.value=[M,B]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1],s="";const l=(p,y,A)=>{Array.isArray(p)?(r=p[0],i=p[1],s=A.range):(r=null,i=null)},f=p=>{let y=!1,{limitStartTime:A,limitEndTime:C}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(A=we(A,{codeData:R}),C=we(C,{codeData:R}),A&&C?y=!(Te(A)<p&&p<Te(C)):A?y=Te(A)>p:C&&(y=Te(C)<p),!e.isAllowSpanYear&&s){let L=null;if(s==="start"?L=r:s==="end"&&(L=i),L){const M=L.startOf("year"),B=L.endOf("year");y=!(M<=p&&p<B)}}return y},{getGlobalModel:c,setGlobalModel:u}=a.inject(Se,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}}),x=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),d=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:x,endTime:d});const h=Ce(e);let m=!1;const g=h("dateChange",()=>{}),v=p=>{const y=a.unref(o),A=y&&y[0]&&y[1];p===!1&&m===!0&&A&&(g(),m=!1),p||(s="")},E=()=>{m=!0};return _e(e,{dateChange:()=>{const{associated:p}=e;if(p){const y=c(p)||{};if(y){const{value:A}=y;if(A)switch(a.unref(A)){case"month":o.value=[Te().startOf("month"),Te().endOf("month")];break;case"quarter":o.value=[Te().startOf("quarter"),Te().endOf("quarter")];break;case"year":o.value=[Te().startOf("year"),Te().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:wa,dateChange:g,myValue:o,disabledDate:f,calendarChange:l,openChange:v,change:E}}}),ki=()=>{a.useCssVars(e=>({"454f10ac":e.optionFontSize}))},Ai=No.setup;No.setup=Ai?(e,n)=>(ki(),Ai(e,n)):ki;const r1="",i1="";function Oc(e,n,t,o,r,i){const s=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Ti=ge(de(No,[["render",Oc],["__scopeId","data-v-ca49f365"]])),Mo={...ve,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Fo=xe(Mo),Bi=["click"],Lc=a.defineComponent({name:"EcanButton",components:{AButton:ie.Button},props:{...Fo},setup(e){const n=pe(e),o=Ce(e)("click",()=>{const f=a.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=a.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=a.computed(()=>we(e.text)),s=a.computed(()=>we(e.href)||null),l=a.computed(()=>{const f=e.target;if(!(f==="event"||a.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:o,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),s1="";function Nc(e,n,t,o,r,i){const s=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:a.normalizeStyle(e.buttonStyle),class:a.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Ei=ge(de(Lc,[["render",Nc]])),zo={...ve,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Po=xe(zo),_i=["checkboxChange"],Mc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ie.CheckboxGroup},props:{...Po},setup(e,{expose:n}){const t=pe(e),o=a.ref([]),r=a.ref([]),i=v=>{const E=e.value;let b=[];v.forEach(p=>{p.checked&&b.push(p.value)}),typeof E=="string"&&E!==""?b=b.concat(E.split(",")):Array.isArray(E)&&(b=b.concat(E)),o.value=v,r.value=b};a.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Le(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const v=await s(),E=((p=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(E)},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const x=Ce(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),d=tt(e),h=async()=>{var v;try{const E=await d(),{data:b}=(E==null?void 0:E.data)||{};if(b){const y=(((v=E==null?void 0:E.data)==null?void 0:v.data)??[]).map(A=>({label:A.label,value:A.value}));i(y)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=a.inject(Re,{setRequest:({id:v,sortNum:E,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:o,style:t,myValue:r,checkboxChange:x}}}),f1="";function Fc(e,n,t,o,r,i){const s=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Di=ge(de(Mc,[["render",Fc]])),Ho={...ve,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},qo=xe(Ho),Ri=["selectChange","refreshData"],zc=a.defineComponent({name:"EcanSelect",components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},props:{...qo},setup(e,{expose:n}){const t=pe(e),o=()=>document.getElementById("ProviderConfig")||document.body,r=Le(e),i=a.ref(e.data||[]),s=a.ref(),l=a.computed({get:()=>{var D;const{mode:S}=e;return(D=a.unref(i))!=null&&D.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}});a.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:D,value:F}=e;S==="multiple"||S==="tags"||S==="combobox"?F?s.value=F.split(","):D&&(s.value=[a.unref(i)[0]]):F?s.value=F:D&&(s.value=a.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(S,D)=>{const F=f.label,O=f.value;let z;const H=D[F],j=D[O];return H!=null?z=H:j!=null&&(z=j),(z==null?void 0:z.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},u=S=>{const{label:D,value:F,options:O}=e.dataFieldNames;if(O&&Array.isArray(S))if(S.some(z=>O in z)){const z={},H=[];S.forEach(j=>{z[j[O]]||(z[j[O]]=[]),z[j[O]].push({[D]:j[D],[F]:j[F]})});for(const j in z)H.push({[D]:j,[O]:z[j]});return H}else return S;else if(!O)return S},x=a.ref(!1),d=async()=>{var S,D;if(e.dataType==="request"){x.value=!0;try{const F=await r();if(i.value=u(((D=(S=F==null?void 0:F.data)==null?void 0:S.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let O=a.unref(i)[0];if(f.options){const z=O[f.options];z&&z.length&&(O=z[0])}s.value=O[f.value]}}catch(F){console.error(F)}finally{x.value=!1}}},{getGlobalModel:h,setGlobalModel:m}=a.inject(Se,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}}),{setLoadedData:g,loadedData:v}=a.inject(ct,{setLoadedData:(S,D)=>{},loadedData:{}}),E=a.computed(()=>{let S=s.value;if(e.valueType==="label"&&a.unref(s)&&a.unref(i)){const D=f.label,F=f.value;if(e.mode==="multiple")S=a.unref(i).filter(O=>a.unref(s).includes(O[F])).map(O=>O[D]);else{const O=a.unref(i).find(z=>a.unref(s)===z[F]);O&&(S=O[D])}}return S}),b=a.ref([]),p=a.computed(()=>{const S={};if(e.mode!=="multiple"){const D=a.unref(b).find(F=>F.value===a.unref(s));D&&(S.itemCodes=D.item_codes)}return S});m(e.id,{type:e.type,value:E,...a.unref(p)});const A=Ce(e)("selectChange",()=>{const S=e.id,D=h(S);m(S,{...D,...a.unref(p),RECORD:E})}),C=(S=[])=>{if(i.value=u(S),e.selectFirstOption){let D=a.unref(i)[0];if(f.options){const F=D[f.options];F&&F.length&&(D=F[0])}s.value=D[f.value]}},R=tt(e),L=async()=>{var S;try{x.value=!0;const D=await R(),{data:F}=(D==null?void 0:D.data)||{},O=f.label,z=f.value;if(F){const H=((S=D==null?void 0:D.data)==null?void 0:S.data)??[];b.value=H;const j=H.map(I=>({[O]:I.label,[z]:I.value})),{id:P}=e,k=h(P);m(P,{...k,...a.unref(p)}),g(P,!0),C(j)}else C([])}catch(D){console.error(D)}finally{x.value=!1}},M=a.computed(()=>{var S,D;return(D=(S=e==null?void 0:e.graphicConfig)==null?void 0:S.controlList)==null?void 0:D.find(F=>F.mode==="cascade")}),B=a.ref(!1);a.watch(v,S=>{!a.unref(B)&&a.unref(M)&&S[a.unref(M).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{a.unref(M)?a.unref(v)[a.unref(M).id]&&L():L();break}case"request":d();break}};_e(e,{selectChange:A,refreshData:w});const{setRequest:_}=a.inject(Re,{setRequest:({id:S,sortNum:D,requestFn:F})=>{}});return typeof _=="function"&&_({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{style:t,getPopupContainer:o,myValue:s,selectChange:A,options:i,filterOption:c,loading:x,resultValue:l}}}),u1="",h1="";function Pc(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-select",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:a.normalizeStyle({fontSize:e.optionFontSize})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:f.value,label:f.label,style:a.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ii=ge(de(zc,[["render",Pc],["__scopeId","data-v-e59f5cca"]])),Vo={...ve,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},jo=xe(Vo),Oi=["selectChange","refreshData"],Hc={name:"EcanTreeSelect",components:{ATreeSelect:ie.TreeSelect},props:{...jo},setup(e){const n=pe(e),t=a.ref(e.data),o=(h,m)=>{const g=e.dataFieldNames,v=g.label,E=g.value;let b;const p=m[v],y=m[E];return p!=null?b=p:y!=null&&(b=y),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[a.unref(t)[0]]):m?r.value=m:g&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),s=Le(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const v=a.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const x=Ce(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});_e(e,{selectChange:x,refreshData:l});const{setRequest:d}=a.inject(Re,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:x}}},m1="",x1="";function qc(e,n,t,o,r,i){const s=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(s,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=l=>o.myValue=l),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Li=ge(de(Hc,[["render",qc],["__scopeId","data-v-37236421"]])),Go={...ve,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{}},Wo=xe(Go),Ni=["checkboxChange","click"],Vc=a.defineComponent({name:"EcanRadio",components:{ARadioGroup:ie.RadioGroup,ARadioButton:ie.RadioButton,ARadio:ie.Radio},props:{...Wo},setup(e,{expose:n}){const t=pe(e),o=a.ref([]),r=a.ref(""),i=p=>{const y=e.value;let A=[];p.forEach(C=>{C.checked&&A.push(C.value)}),typeof y=="string"&&y!==""?A=A.concat(y.split(",")):Array.isArray(y)&&(A=A.concat(y)),o.value=p,r.value=A[0]||""};a.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=Le(e),l=async()=>{var A,C;if(e.dataType!=="request")return;const p=await s(),y=((C=(A=p==null?void 0:p.data)==null?void 0:A.data)==null?void 0:C.rows)||[];i(y)},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}});c(e.id,{type:e.type,value:r});const u=Ce(e),x=u("checkboxChange",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})}),d=p=>{r.value=p,u("click",()=>{const y=f(e.id);c(e.id,{...y,RECORD:r})})()};a.watch(r,()=>{x()});const h=tt(e),m=async()=>{var p;try{const y=await h(),{data:A}=(y==null?void 0:y.data)||{};if(A){const R=(((p=y==null?void 0:y.data)==null?void 0:p.data)??[]).map(L=>({label:L.label,value:L.value}));i(R)}else i([])}catch(y){console.error(y)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=a.inject(Re,{setRequest:({id:p,sortNum:y,requestFn:A})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const E=p=>{r.value=p.value},b=a.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return n({refreshData:g}),{myOption:o,style:t,myValue:r,radioStyle:b,onClickButton:d,useImagePath:gt,tabChange:E}}}),p1="",b1="",jc=["onClick"];function Gc(e,n,t,o,r,i){const s=a.resolveComponent("a-radio"),l=a.resolveComponent("a-radio-button"),f=a.resolveComponent("a-radio-group");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ecan-radio",e.optionType]),style:a.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(a.openBlock(),a.createElementBlock("div",{key:0,class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myOption,(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabBarGutter}),key:u,onClick:a.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(c.label),5)],12,jc))),128))],4)):(a.openBlock(),a.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myOption,c=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.value},[e.optionType==="default"?(a.openBlock(),a.createBlock(s,{key:0,checked:c.checked,value:c.value,style:a.normalizeStyle(e.radioStyle)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value","style"])):e.optionType==="button"?(a.openBlock(),a.createBlock(l,{key:1,checked:c.checked,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.label),1)]),_:2},1032,["checked","value","onClick"])):a.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Mi=ge(de(Vc,[["render",Gc],["__scopeId","data-v-d8964d5f"]])),Uo={...ve,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie"},$o=xe(Uo),Fi=["click","refreshData","resetRecord"],Mt=async e=>{var f;const n=await ot.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},Zo={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333"},Yo=xe(Zo),zi=["showModal"];function Pi(e){var r,i;const{componentList:n,containerMap:t,combinationMap:o={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(o))!=null&&i.length){for(const x in t){const d=n.find(h=>h.id===x);if(d){cn(d,"parentId")||(d.parentId="",d.sourceLeft=d.left,d.sourceTop=d.top);for(const h in t[x])if(t[x][h])for(const m of t[x][h]){const g=n.find(v=>v.id===m);g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(d.sourceLeft||d.left)+"px",g.top=parseFloat(g.top)-parseFloat(d.sourceTop||d.top)+"px")}}}const s=Array.from(new Set(n.filter(x=>(!cn(x,"parentId")||x.parentId==="")&&x.combinationId).map(x=>x.combinationId))),l=[];for(const x of s){const d=o[x];if(d!=null&&d.length){const h=n.filter(m=>d.includes(m.id));if(h!=null&&h.length){const m=Uc(h);if(m){l.push({...m,id:x,keyName:x,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const g of h)g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(m.left)+"px",g.top=parseFloat(g.top)-parseFloat(m.top)+"px")}}}}l!=null&&l.length&&n.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=n.filter(x=>f.includes(x.type)&&!cn(x,"parentId")),u=[];for(const x of c)if(x){const d=x.id+"_vir";u.push({id:d,keyName:x.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:x.width,height:x.height,left:x.left,top:x.top,sourceLeft:x.left,sourceTop:x.top}),x.parentId=d,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=0,x.top=0}u!=null&&u.length&&n.unshift(...u);for(const x of n){const d=document.body.clientWidth;if(x.parentId===""&&["ecanBorder","ecanTabs"].includes(x.type))x.sourceWidth=parseFloat(x.width),x.height=(d/(x.sourceWidth/parseFloat(x.height))).toFixed(2)+"px",x.width="100%",x.position="relative",x.top="auto",x.left="auto";else{const h=n.find(m=>m.id===x.parentId);if((h==null?void 0:h.parentId)===""){const m=h.sourceWidth||parseFloat(h.width),g=d/m;x.scale=g,x.top=parseFloat(x.top)*g-parseFloat(x.height)*(1-g)/2+"px",x.left=parseFloat(x.left)*g-parseFloat(x.width)*(1-g)/2+"px"}}x.type==="ecanModal"&&(x.parentId="",x.fullModal=!0)}return Wc(n)}return n}function Wc(e){const t=e.filter(o=>o.parentId==="");if(t!=null&&t.length){const o=Pe.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<o.length-1;r++)for(let i=0;i<o.length-r-1;i++){let s=!1;if((o[i].sourceTop-o[i+1].sourceTop>50||Math.abs(o[i+1].sourceTop-o[i].sourceTop)<=50&&o[i].sourceLeft>o[i+1].sourceLeft)&&(s=!0),s){const l=o[i];o[i]=o[i+1],o[i+1]=l}}for(const r of o){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...o,...e]}return e}function Uc(e){const n=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],o=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return n&&t&&o&&r?{left:t.left,top:n.top,width:r.computedLeft-parseFloat(t.left)+"px",height:o.computedTop-parseFloat(n.top)+"px"}:null}const $c=a.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function Zc(e,n,t,o,r,i){return e.component.parentId?(a.openBlock(),a.createBlock(a.Teleport,{key:0,to:"#container_"+e.component.parentId},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.component.type),a.normalizeProps(a.mergeProps({key:1},e.component)),null,16))}const Yc=ge(de($c,[["render",Zc]])),Kc=a.defineComponent({name:"EcanModal",components:{AModal:ie.Modal,CloseOutlined:Nl,Render:Yc},props:{...Yo},setup(e,{emit:n}){const t=a.ref([]),o=a.inject("isMobile",!1),r=a.inject("getContainerMap",()=>{}),i=a.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=a.inject(Se,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=a.computed(()=>{const X=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[X]}}),u=e.fullModal?"1920px":e.width,x=e.fullModal?"1080px":e.height,d=e.originalWidth,h=e.originalHeight,m=a.ref("80%"),g=a.ref(0),v=a.ref(),E=a.ref(0),b=a.ref({}),p=pe(e),y=a.ref({}),A=a.ref(!1),C=a.ref();let R;const L=()=>{v.value=parseFloat(u)/parseFloat(d);const X=parseFloat(x)/parseFloat(h),K=document.body.offsetWidth,J=document.body.offsetHeight;g.value=K*a.unref(v),E.value=J*X,m.value=`${a.unref(v)*100}%`,b.value={width:`${a.unref(g)}px`,height:`${a.unref(E)}px`},y.value={...a.unref(p),backgroundImage:gt(e.backgroundImage,!0)},o?y.value={...y.value,width:"100%",height:"100%"}:y.value={...y.value,transform:`scale(${a.unref(g)/parseFloat(u)},${a.unref(E)/parseFloat(x)})`,width:u,height:x}},M=Pe.debounce(()=>{L()},100),B=()=>{const X=window.MutationObserver;R=new X(M),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},_=a.ref(!1),{touchRequest:S}=a.inject(Re,{touchRequest:()=>{}}),D=a.ref(""),F=()=>{var J;console.log("interactiveData",l);const{title:X}=e,K=(J=a.unref(l))==null?void 0:J.RECORD;return K?we(X,{textData:K},{useNewline:!1,useSpace:!1}):X},O=()=>{o&&(document.documentElement.style.overflow="hidden"),D.value=F(),_.value=!0},z=()=>{n("close"),o&&(document.documentElement.style.overflow="hidden auto",t.value=[]),_.value=!1},H=()=>{z()},j=()=>{z(),s()},{setModalModel:P,pushUseModalIds:k,popUseModalIds:I}=a.inject($a,{pushUseModalIds:X=>{},popUseModalIds:()=>{},setModalModel:(X,K)=>{}}),T=a.computed(()=>{if(o){const X=Pe.cloneDeep(e.componentList),K=r(),J=i();return Pi({componentList:X,containerMap:K,combinationMap:J})}else return e.componentList}),N=()=>{const X=e.id;let K=[];const J=e.componentList;Array.isArray(J)&&(K=J.map(ae=>ae.id),P(X,[...new Set(K)]))};a.watch(()=>_.value,async X=>{X?(A.value=!1,k(e.id),N(),await a.nextTick(()=>{L(),window.addEventListener("resize",M),B(),A.value=!0}),S()):(I(),window.removeEventListener("resize",M),w())});const W=a.computed(()=>a.unref(v)>=1),$=a.computed(()=>e.fullModal),ne=a.computed(()=>{let X="ecan-modal";return a.unref(W)&&(X+=" ecan-full-width-modal"),a.unref($)&&(X+=" ecan-full-modal"),X});return _e(e,{showModal:O}),{modalRef:C,containStyle:b,contentStyle:y,getContainer:f,modalStyle:c,modalWith:m,isFullModal:$,style:p,visible:_,showModal:O,onOk:H,onCancel:j,isFullWidth:W,wrapClassName:ne,ready:A,usedComponentList:T,isMobile:o,readyIds:t,hasOwn:cn,onComponentReady:X=>{t.value.push(X)},formatTitle:D}}}),C1="",w1="";function Xc(e,n,t,o,r,i){const s=a.resolveComponent("close-outlined"),l=a.resolveComponent("render"),f=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:a.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"contain",ref:"containRef",style:a.normalizeStyle(e.containStyle)},[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"content",style:a.normalizeStyle(e.contentStyle)},[a.createElementVNode("div",{class:"header-bar",style:a.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.formatTitle),5)):a.createCommentVNode("",!0),a.createVNode(s,{class:"close-icon",style:a.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])],4),e.usedComponentList.length?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.isMobile?"mobile-wrap":"")},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.usedComponentList,(c,u)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:c.id+u},[e.isMobile?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(a.openBlock(),a.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c.type),a.normalizeProps(a.mergeProps({key:1},c)),null,16))],64))),128))],2)):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):a.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const mt=ge(de(Kc,[["render",Xc],["__scopeId","data-v-4d60efbd"]]));ze.use([pt.CanvasRenderer,at.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const Qc=a.defineComponent({name:"EcanPie",props:{...$o},components:{Spin:kt,Echarts:lt,EcanModal:mt},setup(e,{expose:n}){const t=a.ref(!1),o=pe(e),r=a.ref([]),i=a.ref(),s=a.ref({}),l=a.computed(()=>{let{data:w=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const _=e.isUseLabelColors,S=e.colors;w=w.map((D,F)=>({label:_?{color:S[F]}:{},...D}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;t.value=!0,(_=i.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:_=>{const{marker:S,seriesName:D,name:F,value:O,percent:z,data:H}=_||{};return we(e.tooltipFormatter,{textData:{marker:S,name:F,value:O,percent:z,a:D,b:F,c:O,d:z,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:a.unref(s),color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Je:e.labelFontSize,position:e.labelPosition,formatter:Qs(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?Je:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:_}=r.value[0]||{};let S;if(_){const D=_.find(F=>F.name===w);D&&(S=D.value)}return we(e.legendFormatter,{textData:{name:w,value:S}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:x}=a.inject(Se,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:d}=a.inject(Oe,{pageMode:"normal"}),h=(w=[],_)=>{const{dataset:S}=At(w,_);r.value=S},m=(w=[],_)=>{const S=At(w,_);r.value=S.dataset};a.watch(()=>e.data,w=>{(e.dataType==="static"||a.unref(d)==="design")&&h(w)},{immediate:!0,deep:!0}),a.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const g=a.ref(!1),v=Le(e),E=async()=>{var w,_;if(e.dataType==="request")try{g.value=!0;const S=await v();h((_=(w=S==null?void 0:S.data)==null?void 0:w.data)==null?void 0:_.rows,e.valueTypeDataFieldNames)}catch(S){console.error(S)}finally{g.value=!1}},p=Ce(e)("click",w=>{const _=u(e.id);x(e.id,{..._,RECORD:w==null?void 0:w.data})}),y=tt(e),A=async()=>{var w;try{g.value=!0;const _=await y(),{data:S}=_.data||{};if(S){const{columns:D=[],rows:F=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let O=[];if(D.length>0){const z=D[0],H=D[1];O=F.map(j=>({name:j[z],value:isNaN(j[H])?0:j[H]||0}))}m(O)}}catch(_){console.error(_)}finally{g.value=!1}},{loadedData:C}=a.inject(ct,{loadedData:{}}),R=a.ref(!1);a.watch(C,w=>{if(e.dataType==="indicator"){const _=jt(e.graphicConfig);_!=null&&_.length&&(!a.unref(R)&&Ye(e.graphicConfig,w)?(R.value=!0,L()):Ye(e.graphicConfig,w)||(R.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":Ye(e.graphicConfig,a.unref(C))&&A();break;case"request":E();break}};_e(e,{resetRecord:()=>{const w=e.id,_=u(w);x(w,{..._,RECORD:""})},refreshData:L,click:p}),n({refreshData:L});const{setRequest:B}=a.inject(Re,{setRequest:w=>{}});return typeof B=="function"&&B({id:e.id,requestFn:L,sortNum:e.requestSort}),{option:l,style:o,click:p,onClose:c,loading:g,ecanModal:i}}}),A1="";function Jc(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Hi=ge(de(Qc,[["render",Jc]])),Ko={...ve,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:""},Xo=xe(Ko),qi=["click","refreshData","resetRecord"];ze.use([pt.CanvasRenderer,at.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const ef=a.defineComponent({name:"EcanLine",props:{...Xo},components:{Spin:kt,Echarts:lt,EcanModal:mt},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=pe(e),i=a.ref([]),s=a.ref([]),l=a.ref(),f=a.computed(()=>o.value?Je:12),c=a.ref({});let u;const x=a.ref([]),d=a.computed(()=>{const D=e.xAxisLabelFormatter,F=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;o.value=!0,(O=l.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:O=>{var P;const z=O.length;let H="",j=e.tooltipFormatter;u=(P=O[0])==null?void 0:P.data,j===""&&(j="{marker} {a} {c}");for(let k=0;k<z;k++){const{marker:I,seriesName:T,name:N,value:W,data:$}=O[k]||{};if(k===0){let ne=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(ne=(+N).toString()),H+=`${Ke(D,ne)}<br/>`}H+=we(j,{textData:{marker:I,name:N,value:W,a:T,b:N,c:W||0,...$}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:a.unref(s).map(O=>{let z={};return O&&typeof O=="object"?z={...O}:z={value:O},z}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(O){return typeof O=="string"&&O[0]==="0"&&!isNaN(+O)&&(O=(+O).toString()),Ke(D,O)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(O){return Ke(F,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Je:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map(O=>({name:O.name,icon:e.legendType}))},series:a.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:m,setGlobalModel:g}=a.inject(Se,{getGlobalModel:D=>{},setGlobalModel:(D,F)=>{}}),{pageMode:v}=a.inject(Oe,{pageMode:"normal"}),E=(D=[],F=!1)=>{let O;if(e.dataFieldConfigType==="key"){const P=F?e.keyTypeDataFieldNames:null;O=ht(D,P)}else if(e.dataFieldConfigType==="value"){const P=F?e.valueTypeDataFieldNames:null;O=At(D,P)}s.value=O.dimensions,x.value=O.dataset;const z=O.dataset,H=[],j=z.length;for(let P=0;P<j;P++){const k={};e.shadowColor&&(k.shadowColor=e.shadowColor,k.shadowBlur=e.shadowBlur,k.shadowOffsetY=e.shadowOffsetY,k.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...z[P],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[P]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[P],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...k}})}i.value=H},b=(D=[],F,O=!1)=>{const H=ht(D,O?F:null,!0);s.value=H.dimensions,x.value=H.dataset;const j=H.dataset,P=[],k=j.length;for(let I=0;I<k;I++){const T={};e.shadowColor&&(T.shadowColor=e.shadowColor,T.shadowBlur=e.shadowBlur,T.shadowOffsetY=e.shadowOffsetY,T.shadowOffsetX=e.shadowOffsetX),P.push({type:"line",...j[I],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[I]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[I],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...T}})}i.value=P};a.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize],([D])=>{(e.dataType==="static"||a.unref(v)==="design")&&E(D)},{immediate:!0,deep:!0});const p=a.ref(!1),y=Le(e),A=async()=>{var D,F;if(e.dataType==="request")try{p.value=!0;const O=await y();E((F=(D=O==null?void 0:O.data)==null?void 0:D.data)==null?void 0:F.rows,!0)}catch(O){console.error(O)}finally{p.value=!1}},R=Ce(e)("click",D=>{const F=m(e.id);g(e.id,{...F,RECORD:e.tooltipShow?u:D.data})}),L=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&R()};e.tooltipShow?c.value["zr:click"]=L:c.value.click=R;const M=tt(e),B=async()=>{var D;try{p.value=!0;const F=await M(),{columns:O=[],rows:z=[]}=((D=F==null?void 0:F.data)==null?void 0:D.data)??{};let H;O.length>0&&(H={name:O[0],types:O.slice(1).map(j=>({label:j,value:j}))}),b(z,H,!0)}catch(F){console.error(F)}finally{p.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":A();break}};_e(e,{refreshData:w,resetRecord:()=>{const D=e.id,F=m(D);g(D,{...F,RECORD:""})},click:R});const{setRequest:S}=a.inject(Re,{setRequest:D=>{}});return typeof S=="function"&&S({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{option:d,style:r,click:R,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),B1="";function tf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Vi=ge(de(ef,[["render",tf]])),Qo={...ve,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:""},Jo=xe(Qo),ji=["refreshData","click","resetRecord"];ze.use([pt.CanvasRenderer,at.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const nf=a.defineComponent({name:"EcanBar",props:{...Jo},components:{Spin:kt,Echarts:lt,EcanModal:mt,AModal:ie.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=pe(e),f=a.ref([]),c=a.ref(),u=a.computed(()=>o.value?Je:12),x=a.computed(()=>{const{gradientShow:P,gradientColors:k,gradientOffset:I,barBorderRadius:T}=e,N=a.unref(f),W=N.length,$=[];for(let ne=0;ne<W;ne++){const Y={...N[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:X=>{let K="",J=e.labelFormatter;J===""&&(J="{c}");const{seriesName:ae,name:he,value:fe,data:De}=X||{};return K+=we(J,{textData:{name:he,value:fe,a:ae,b:he,c:fe||0,...De}},{useNewline:!0,useSpace:!0}),K}},Y.itemStyle={},P&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:I,color:k[ne]},{offset:1,color:k[ne]}]}}),T){const X=T.split(",");if(X!=null&&X.length){const K=[];for(const J of X){const ae=parseFloat(J);isNaN(ae)||K.push(ae)}Y.itemStyle.borderRadius=K}}$.push(Y)}return $}),d=a.ref([]),h=a.ref(!1),m=a.computed(()=>{const P=e.yAxisLabelFormatter,k=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:T}=I||{};T&&T.length&&(s.value=T[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.value=!0,(I=c.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{const T=I.length;let N="",W=e.tooltipFormatter;W===""&&(W="{marker} {a} {c}");for(let $=0;$<T;$++){const{marker:ne,seriesName:Y,name:X,value:K,data:J}=I[$]||{};if($===0){let ae=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(ae=(+X).toString()),N+=`${Ke(k,ae)}<br/>`}N+=we(W,{textData:{marker:ne,name:X,value:K,a:Y,b:X,c:K||0,...J}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Je:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(f).map((I,T)=>({name:I.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(p),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),Ke(k,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(d):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(I){return Ke(P,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(x)}}),{pageMode:g}=a.inject(Oe,{pageMode:"normal"}),v=()=>{o.value=!1},E=(P=[],k=!1)=>{let I={};if(e.dataFieldConfigType==="key"){const T=k?e.keyTypeDataFieldNames:null;I=ht(P,T)}else if(e.dataFieldConfigType==="value"){const T=k?e.valueTypeDataFieldNames:null;I=At(P,T)}f.value=I.dataset,d.value=I.dimensions},b=(P=[],k,I=!1)=>{const N=ht(P,I?k:null,!0);f.value=N.dataset,d.value=N.dimensions},p=a.computed(()=>a.unref(d).map(P=>{let k={};return P&&typeof P=="object"?k={...P}:k={value:P},k}));a.watch(()=>[e.data,e.labelFormatter],([P])=>{(e.dataType==="static"||a.unref(g)==="design")&&E(P)},{immediate:!0,deep:!0});const y=Le(e),A=async()=>{var P,k;try{h.value=!0;const I=await y();E((k=(P=I==null?void 0:I.data)==null?void 0:P.data)==null?void 0:k.rows,!0)}catch(I){console.error(I)}finally{h.value=!1}},C=tt(e),R=async()=>{var P;try{h.value=!0;const k=await C(),{columns:I=[],rows:T=[]}=((P=k==null?void 0:k.data)==null?void 0:P.data)??{};let N;I.length>0&&(N={name:I[0],types:I.slice(1).map(W=>({label:W,value:W}))}),b(T,N,!0)}catch(k){console.error(k)}finally{h.value=!1}},{loadedData:L}=a.inject(ct,{loadedData:{}}),M=a.ref(!1);a.watch(L,P=>{if(e.dataType==="indicator"){const k=jt(e.graphicConfig);k!=null&&k.length&&(!a.unref(M)&&Ye(e.graphicConfig,P)?(M.value=!0,B()):Ye(e.graphicConfig,P)||(M.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":Ye(e.graphicConfig,a.unref(L))&&R();break;case"request":A();break}},w=(P,k)=>!!a.unref(s)[k.value].value.includes(P),_=async()=>{r.value=!1;const P=t.value.chart.getOption();for(let k=0;k<7;k++)await S(P,k)},S=(P,k)=>new Promise(I=>{setTimeout(()=>{const{series:T,color:N,xAxis:W}=P,$=t.value.chart,{splitArea:ne={}}=W[0]||{};T.forEach((Y,X)=>{const K=Y.data;let J="";k%2?J=N[X]+"a8":J=N[X],K[i.value].itemStyle={color:J}}),k%2?(ne.show=!0,ne.areaStyle.color=a.unref(s).map((Y,X)=>X===i.value?"#ff003b26":"")):ne.show=!1,$.setOption({series:T,xAxis:W}),I()},200)});n({refreshData:B});const D=Ce(e),{getGlobalModel:F,setGlobalModel:O}=a.inject(Se,{getGlobalModel:P=>{},setGlobalModel:(P,k)=>{}}),z=D("click",P=>{const k=F(e.id);O(e.id,{...k,RECORD:P.data})}),{setRequest:H}=a.inject(Re,{setRequest:P=>{}});return typeof H=="function"&&H({id:e.id,requestFn:B,sortNum:e.requestSort}),_e(e,{refreshData:B,click:z,resetRecord:()=>{const P=e.id,k=F(P);O(P,{...k,RECORD:""})}}),{option:m,style:l,refreshData:B,click:z,loading:h,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:_,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s}}}),_1="",D1="",of=e=>(a.pushScopeId("data-v-c6009d35"),e=e(),a.popScopeId(),e),af={class:"location-wrap"},rf=of(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function lf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),u=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",af,[rf,a.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(d,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Gi=ge(de(nf,[["render",lf],["__scopeId","data-v-c6009d35"]])),ea={...ve,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:""},ta=xe(ea),Wi=["click","refreshData","resetRecord"];ze.use([pt.CanvasRenderer,at.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent]);const sf=a.defineComponent({name:"EcanScatter",props:{...ta},components:{Spin:kt,Echarts:lt,EcanModal:mt},setup(e){const n=a.ref(!1),t=pe(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?Je:12),s=a.computed(()=>{const y=e.xAxisLabelFormatter,A=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var C;n.value=!0,(C=r.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(C){return typeof C=="string"&&C[0]==="0"&&!isNaN(+C)&&(C=(+C).toString()),Ke(y,C)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(C){return Ke(A,C)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(C){var _;const{marker:R,seriesName:L}=C,M=((_=C==null?void 0:C.data)==null?void 0:_.record)??{},{name:B,value:w}=M;return we(e.tooltipFormatter,{textData:{marker:R,seriesName:L,a:L,b:B,c:w,...M}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=a.inject(Se,{getGlobalModel:y=>{},setGlobalModel:(y,A)=>{}}),{pageMode:c}=a.inject(Oe,{pageMode:"normal"}),u=(y=[],A)=>{const{name:C="name",value:R="value"}=A||{};o.value=y.map(L=>({value:[L[C],L[R]],record:L}))};a.watch(()=>e.data,y=>{(e.dataType==="static"||a.unref(c)==="design")&&u(y)},{immediate:!0,deep:!0});const x=a.ref(!1),d=Le(e),h=async()=>{var y,A;if(e.dataType==="request"){x.value=!0;try{const C=await d();u((A=(y=C==null?void 0:C.data)==null?void 0:y.data)==null?void 0:A.rows,e.dataFieldNames)}catch(C){console.error(C)}finally{x.value=!1}}},m=()=>{n.value=!1},v=Ce(e)("click",y=>{const A=e.id,C=l(A);f(A,{...C,RECORD:y==null?void 0:y.data})});_e(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const y=e.id,A=l(y);f(y,{...A,RECORD:""})}});const{setRequest:p}=a.inject(Re,{setRequest:y=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:t,click:v,loading:x,onClose:m,ecanModal:r}}}),I1="";function cf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Ui=ge(de(sf,[["render",cf]])),na={...ve,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},oa=xe(na),ff=a.defineComponent({name:"EcanCustomGraph",props:{...oa},components:{Echarts:lt},setup(e){const n=pe(e),t=a.ref();return a.watch(()=>e.optionCode,o=>{try{const r=eval;t.value=r(o)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:B0}}});function df(e,n,t,o,r,i){const s=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const $i=ge(de(ff,[["render",df]])),aa={...ve,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:""},ra=xe(aa),Zi=["refreshData","click","resetRecord"];ze.use([pt.CanvasRenderer,at.BarChart,at.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const uf=a.defineComponent({name:"EcanComboGraph",props:{...ra},components:{Spin:kt,Echarts:lt,EcanModal:mt,AModal:ie.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),s=a.ref([]),l=pe(e),f=a.ref([]),c=a.ref([]),u=a.ref(),x=a.ref([]),d=a.computed(()=>o.value?Je:12),h=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const k=t.value.chart.getOption(),{xAxis:I}=k||{};I&&I.length&&(s.value=I[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var k;o.value=!0,(k=u.value)==null||k.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Je:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(x).map((k,I)=>({name:k.name,itemStyle:{color:e.colors[I]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:k=>{const I=k.length;let T="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const W=e.seriesTypes;for(let $=0;$<I;$++){const ne=W[$],{tooltipFormatter:Y}=ne||{},{marker:X,seriesName:K,name:J,value:ae,data:he}=k[$]||{};if($===0){let fe=J;typeof J=="string"&&J[0]==="0"&&!isNaN(+J)&&(fe=(+J).toString()),T+=`${Ke(e.xAxisLabelFormatter,fe)}<br/>`}T+=we(Y||N,{textData:{marker:X,name:J,value:ae,seriesName:K,a:K,b:J,c:ae||0,...he}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(k=>{let I={};return k&&typeof k=="object"?I={...k}:I={value:k},I}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(k){return typeof k=="string"&&k[0]==="0"&&!isNaN(+k)&&(k=(+k).toString()),Ke(e.xAxisLabelFormatter,k)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(p),series:a.unref(f)})),{pageMode:m}=a.inject(Oe,{pageMode:"normal"}),g=()=>{o.value=!1},v=(k=[],I=!1)=>{let T;if(e.dataFieldConfigType==="key"){const W=I?e.keyTypeDataFieldNames:null;T=ht(k,W)}else if(e.dataFieldConfigType==="value"){const W=I?e.valueTypeDataFieldNames:null;T=At(k,W)}c.value=T.dimensions;const N=T.dataset;x.value=T.dataset,f.value=b(N)},E=(k=[],I,T=!1)=>{const W=ht(k,T?I:null,!0);c.value=W.dimensions;const $=W.dataset;x.value=W.dataset,f.value=b($)};function b(k){const I=[],T=k.length,N=e.seriesTypes;for(let W=0;W<T;W++){const $=N[W],{type:ne,axisIndex:Y}=$||{};let X={type:ne,yAxisIndex:Y,...k[W]};if(ne==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.shadowOffsetX=e.shadowOffsetX),X={...X,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[W]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[W]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[W],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...K}}}if(ne==="bar"){const{gradientShow:K,gradientColors:J,gradientOffset:ae}=e,he={};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const De=[];for(const Fe of fe){const Ne=parseFloat(Fe);isNaN(Ne)||De.push(Ne)}he.borderRadius=De}}K&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[W]},{offset:ae,color:J[W]},{offset:1,color:J[W]}]}),X={...X,barWidth:e.barWidth,itemStyle:he}}I.push(X)}return I}a.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter],([k])=>{(e.dataType==="static"||a.unref(m)==="design")&&v(k)},{immediate:!0,deep:!0});const p=a.computed(()=>{const k=e.yAxis;return k==null?void 0:k.map(I=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(T){return Ke(I.axisLabelFormatter,T)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),y=a.ref(!1),A=Le(e),C=async()=>{var k,I;if(e.dataType==="request")try{y.value=!0;const T=await A();v((I=(k=T==null?void 0:T.data)==null?void 0:k.data)==null?void 0:I.rows,!0)}catch(T){console.error(T)}finally{y.value=!1}},R=tt(e),L=async()=>{var k;try{y.value=!0;const I=await R(),{columns:T=[],rows:N=[]}=((k=I==null?void 0:I.data)==null?void 0:k.data)??{};let W;T.length>0&&(W={name:T[0],types:T.slice(1).map($=>({label:$,value:$}))}),E(N,W,!0)}catch(I){console.error(I)}finally{y.value=!1}},{loadedData:M}=a.inject(ct,{loadedData:{}}),B=a.ref(!1);a.watch(M,k=>{if(e.dataType==="indicator"){const I=jt(e.graphicConfig);I!=null&&I.length&&(!a.unref(B)&&Ye(e.graphicConfig,k)?(B.value=!0,w()):Ye(e.graphicConfig,k)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":Ye(e.graphicConfig,a.unref(M))&&L();break;case"request":C();break}},_=(k,I)=>!!a.unref(s)[I.value].value.includes(k),S=async()=>{r.value=!1;const k=t.value.chart.getOption();for(let I=0;I<7;I++)await D(k,I)},D=(k,I)=>new Promise(T=>{setTimeout(()=>{const{series:N,color:W,xAxis:$}=k,ne=t.value.chart,{splitArea:Y={}}=$[0]||{};N.forEach((X,K)=>{const J=X.data;let ae="";I%2?ae=W[K]+"a8":ae=W[K],J[i.value].itemStyle={color:ae}}),I%2?(Y.show=!0,Y.areaStyle.color=a.unref(s).map((X,K)=>K===i.value?"#ff003b26":"")):Y.show=!1,ne.setOption({series:N,xAxis:$}),T()},200)});n({refreshData:w});const F=Ce(e),{getGlobalModel:O,setGlobalModel:z}=a.inject(Se,{getGlobalModel:k=>{},setGlobalModel:(k,I)=>{}}),H=F("click",k=>{const I=O(e.id);z(e.id,{...I,RECORD:k==null?void 0:k.data})}),{setRequest:j}=a.inject(Re,{setRequest:k=>{}});return typeof j=="function"&&j({id:e.id,requestFn:w,sortNum:e.requestSort}),_e(e,{resetRecord:()=>{const k=e.id,I=O(k);z(k,{...I,RECORD:""})},refreshData:w,click:H}),{style:l,option:h,click:H,loading:y,onClose:g,ecanModal:u,echartRef:t,handleLocationOk:S,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),N1="",M1="",hf=e=>(a.pushScopeId("data-v-3560d511"),e=e(),a.popScopeId(),e),gf={class:"location-wrap"},mf=hf(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function xf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),u=a.resolveComponent("a-select"),x=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",gf,[mf,a.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(d,h)=>(a.openBlock(),a.createBlock(c,{key:h,value:h},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Yi=ge(de(uf,[["render",xf],["__scopeId","data-v-3560d511"]])),ia={...ve,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:""},la=xe(ia),Ki=["refreshData","click","resetRecord"];ze.use([pt.CanvasRenderer,at.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const yf=a.defineComponent({name:"EcanRadar",props:{...la},components:{Spin:kt,Echarts:lt,EcanModal:mt},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=pe(e),i=a.ref([]),s=a.ref(),l=a.computed(()=>o.value?Je:12),f=a.ref({});let c;const u=a.ref([]),x=a.ref(e.valueTypeDataFieldNames.name),d=a.computed(()=>{const O=a.unref(u),z=O.length,H=[];for(let j=0;j<z;j++){const{name:P,data:k=[]}=O[j],I=[{name:P,value:k.map(N=>N.value)}],T={type:"radar",name:P,data:I,areaStyle:{color:e.colors[j],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow}};H.push(T)}return H}),h=a.computed(()=>{var P,k;const O=[],z={},H=a.unref(u),j=H.length;for(let I=0;I<j;I++){const{data:T=[]}=H[I];if(T!=null&&T.length)for(let N=0;N<T.length;N++)z[T[N][x.value]]?z[T[N][x.value]].push(T[N].value):z[T[N][x.value]]=[T[N].value]}if((P=i.value)!=null&&P.length)for(const I of i.value)O.push({name:I,max:(k=z[I])!=null&&k.length?Math.max(...z[I])*1.2:0});return O}),m=a.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Mt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;o.value=!0,(O=s.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:O=>{var j;let z="",H=e.tooltipFormatter;c=(j=O[0])==null?void 0:j.data,H===""&&(H="{marker} {a} {c}");for(let P=0;P<a.unref(h).length;P++){const k=a.unref(h)[P],{marker:I,seriesName:T,value:N}=O||{};P===0&&T&&(z+=`${T}<br/>`),z+=we(H,{textData:{marker:I,name:k.name,value:N[P],a:k.name,b:k.name,c:N[P]||0,type:T}},{useNewline:!0,useSpace:!0}),z+="<br/>"}return z},position:e.tooltipPosition||void 0},radar:{indicator:a.unref(h),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Je:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:a.unref(u).map(O=>({name:O.name,icon:e.legendType}))},series:a.unref(d)})),g=()=>{o.value=!1},{getGlobalModel:v,setGlobalModel:E}=a.inject(Se,{getGlobalModel:O=>{},setGlobalModel:(O,z)=>{}}),{pageMode:b}=a.inject(Oe,{pageMode:"normal"}),p=(O=[],z=!1)=>{let H;if(e.dataFieldConfigType==="key"){const j=z?e.keyTypeDataFieldNames:null;H=ht(O,j)}else if(e.dataFieldConfigType==="value"){const j=z?e.valueTypeDataFieldNames:null;H=At(O,j)}i.value=H.dimensions,u.value=H.dataset},y=(O=[],z,H=!1)=>{const P=ht(O,H?z:null,!0);i.value=P.dimensions,u.value=P.dataset};a.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([O])=>{(e.dataType==="static"||a.unref(b)==="design")&&p(O)},{immediate:!0,deep:!0});const A=a.ref(!1),C=Le(e),R=async()=>{var O,z;if(e.dataType==="request")try{A.value=!0;const H=await C();p((z=(O=H==null?void 0:H.data)==null?void 0:O.data)==null?void 0:z.rows,!0)}catch(H){console.error(H)}finally{A.value=!1}},M=Ce(e)("click",O=>{const z=v(e.id);E(e.id,{...z,RECORD:e.tooltipShow?c:O.data})}),B=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&M()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=M;const w=tt(e),_=async()=>{var O;try{A.value=!0;const z=await w(),{columns:H=[],rows:j=[]}=((O=z==null?void 0:z.data)==null?void 0:O.data)??{};let P;H.length>0&&(x.value=H[0],P={name:H[0],types:H.slice(1).map(k=>({label:k,value:k}))}),y(j,P,!0)}catch(z){console.error(z)}finally{A.value=!1}},S=()=>{switch(e.dataType){case"indicator":_();break;case"request":R();break}};_e(e,{refreshData:S,resetRecord:()=>{const O=e.id,z=v(O);E(O,{...z,RECORD:""})},click:M});const{setRequest:F}=a.inject(Re,{setRequest:O=>{}});return typeof F=="function"&&F({id:e.id,requestFn:S,sortNum:e.requestSort}),n({refreshData:S}),{option:m,style:r,click:M,loading:A,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),z1="";function pf(e,n,t,o,r,i){const s=a.resolveComponent("echarts"),l=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Xi=ge(de(yf,[["render",pf]])),bf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",vf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",Sf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Cf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",sa={...ve,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},ca=xe(sa),Qi=["click"],wf=a.defineComponent({name:"EcanBorder",props:{...ca},setup(e){const n=pe(e,["background"]),t=a.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:v,gradientOffset:E,gradientAngle:b,backgroundColor:p}=e;if(g){let y=v;return m&&(y="transparent"),y?{background:`linear-gradient(${b}, ${p}, ${y} ${E*100}%)`}:{}}else return{}}),o=a.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=a.inject(Oe,{theme:"light"}),i=a.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":bf,"../../assets/border-title-decoration-left2.png":vf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=a.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Sf,"../../assets/border-title-decoration-right2.png":Cf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=a.computed(()=>({width:"100%",height:"100%"})),c=a.computed(()=>{const{borderRadius:m}=e,g=[],v={};if(m){const E=m.split(",");for(const b of E)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(v.borderRadius=g.join(" ")),v}),x=Ce(e)("click",()=>{}),d=a.ref([]);a.watch(()=>e.data,m=>{d.value=m},{immediate:!0,deep:!0}),_e(e,{click:x});const{setGlobalModel:h}=a.inject(Se,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:d}),{style:n,gradientStyle:t,click:x,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:o}}}),H1="",xt=e=>(a.pushScopeId("data-v-8dd53b8f"),e=e(),a.popScopeId(),e),kf=["id"],Af=xt(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Tf=xt(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Bf=xt(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Ef=xt(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_f={class:"title-item"},Df=["src"],Rf={class:"title"},If=["src"],Of=xt(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Lf=xt(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Nf=xt(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Mf=xt(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Ff={key:2,class:"left-title"},zf={class:"title"};function Pf(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"no-title",style:a.normalizeStyle(e.borderStyle)},[e.useBorderModify?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[Af,Tf,Bf,Ef],64)):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0),e.mode==="top-title"?(a.openBlock(),a.createElementBlock("div",{key:1,class:"top-title",style:a.normalizeStyle(e.borderStyle)},[a.createElementVNode("div",{class:a.normalizeClass(["title-item-wrapper",e.titleMode])},[a.createElementVNode("div",_f,[a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Df),a.createElementVNode("div",Rf,a.toDisplayString(e.title),1),a.createElementVNode("img",{class:a.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,If)])],2),Of,Lf,Nf,Mf],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",Ff,[a.createElementVNode("div",zf,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],12,kf)}const Ji=ge(de(wf,[["render",Pf],["__scopeId","data-v-8dd53b8f"]])),fa={...ve,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},da=xe(fa),e0=["tabChange"],Hf=a.defineComponent({name:"EcanTabs",props:{...da},components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},setup(e){const n=pe(e),t=a.ref(0);a.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:o}=a.inject(Oe,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(a.unref(s))?a.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const m=a.unref(t)+1;m<=h?t.value=m:t.value=0,l.value=a.unref(s)[a.unref(t)],x()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const s=a.ref([]),l=a.ref({});a.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=Ce(e),{setGlobalModel:u}=a.inject(Se,{setGlobalModel:(h,m)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:x}=a.inject(qt,{emitRefreshPage:()=>{}}),d=c("tabChange",(h,m)=>{m!==a.unref(t)&&(l.value=h,t.value=m,x())});return _e(e,{tabChange:d}),{style:n,activeKey:t,isActive:f,tabChange:d,myData:s,useImagePath:gt}}}),V1="",qf=["id"],Vf=["onClick"];function jf(e,n,t,o,r,i){const s=a.resolveComponent("a-select-option"),l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style),id:"container_"+e.id},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:c,onClick:a.withModifiers(u=>e.tabChange(f,c),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(f.title),5)],12,Vf))),128)):e.tabType==="select"?(a.openBlock(),a.createBlock(l,{key:1,value:e.activeKey,style:a.normalizeStyle({width:e.tabWidth})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(f,c)=>(a.openBlock(),a.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(f,c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):a.createCommentVNode("",!0)],4)],12,qf)}const t0=ge(de(Hf,[["render",jf],["__scopeId","data-v-fbab260a"]])),ua={...ve,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},ha=xe(ua),n0=["click"],Gf=a.defineComponent({name:"EcanImage",props:{...ha},setup(e){const n=pe(e),t=a.computed(()=>gt(e.imgUrl)),{pageMode:o}=a.inject(Oe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=a.inject(Se,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=Ce(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=ei(a.unref(o),c),x=e.href;let d=x||u;d=we(d);const h=e.target;h&&(h!=="event"?window.open(d,"_"+h):window.parent.postMessage({type:"openPage",url:x},"*"))});return _e(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),G1="",Wf=["src"];function Uf(e,n,t,o,r,i){return e.myImgUrl!==""?(a.openBlock(),a.createElementBlock("img",{key:0,style:a.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Wf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const o0=ge(de(Gf,[["render",Uf],["__scopeId","data-v-3665dde7"]])),ga={...ve,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ma=xe(ga),$f=a.defineComponent({name:"EcanIframe",props:{...ma},setup(e){const n=pe(e),{contextRequestUrl:t}=a.inject(Oe,{contextRequestUrl:""}),o=a.computed(()=>{let r=we(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Ul||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),U1="",Zf=["src"];function Yf(e,n,t,o,r,i){return e.myLink?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:e.myLink,style:a.normalizeStyle(e.style)},null,12,Zf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const a0=ge(de($f,[["render",Yf],["__scopeId","data-v-19bc100c"]])),xa={...ve,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},ya=xe(xa),r0=["click","refreshData","resetRecord","exportTableData"],pa=a.defineComponent({name:"EcanTable",components:{Skeleton:Kt,AButton:ie.Button,AInput:ie.Input,ACheckboxGroup:ie.CheckboxGroup,ATable:ie.Table,ATableSummary:ie.TableSummary,ATableSummaryRow:ie.TableSummaryRow,ATableSummaryCell:ie.TableSummaryCell},props:{...ya},setup(e,{expose:n}){const t=a.ref(!1),o=Pe.cloneDeep(e.columns),r=a.ref(),i=a.ref(!1),s=pe(e),l=a.ref([]),f=a.computed(()=>e.scrollX),c=a.ref(0),u=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};a.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&a.nextTick(()=>{let U=parseFloat(e.height);const Z=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ee=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let Q=0;if(ee&&(U-=(ee==null?void 0:ee.clientHeight)||0),te&&e.isSummaryFixed&&(Q=(te==null?void 0:te.clientHeight)||0,U-=Q),e.paginationShow){let oe=0;oe=u(),oe&&(U-=oe)}(Z==null?void 0:Z.clientHeight)>U?c.value=U:c.value=0,a.nextTick(()=>{if(Q){const oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),me=(oe==null?void 0:oe.clientHeight)||0;Q!==me&&a.unref(c)&&(c.value=U+Q-me)}})})});const x=a.ref([]),d=a.ref([]),h=a.ref([]),m=a.ref(0),g=a.ref(1),v=a.ref(e.paginationPageSize||10),E=a.reactive([]),b=(V=[])=>{var U;if(console.log("_columns",V),Array.isArray(V)&&V.length>0){let Z=V.length;const ee=e.columnsFixedNum;e.dataType==="indicator"&&(o!=null&&o.length)&&V.forEach((te,Q)=>{if(o[Q])for(const oe in o[Q])["dataIndex"].includes(oe)||(te[oe]=o[Q][oe])});for(let te=Z-1;te>=0;te--)(U=V[te])!=null&&U.isHidden&&V.splice(te,1);Z=V.length;for(let te=0;te<Z;te++){const Q=V[te];te<ee?Q.fixed="left":Q.fixed=!1;const{cellAlign:oe="center",cellColor:me,dataIndex:ue,title:ye,tableFilter:Ge,headerCellAlign:We,headerCellColor:nt}=Q;Ge&&(E.push(ue),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[],Q.customFilterDropdown=!0,Q.onFilter=(St,Gt)=>Gt[ue].toString().toLowerCase().includes(St.toLowerCase())),Q.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:We||"center",color:nt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),Q.customCell=(St,Gt)=>({style:{textAlign:oe,color:me||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(k)===Gt&&e.clickHighlight},onClick:F("click",()=>{const Wt=e.id,Sa=O(Wt);St={dataIndex:ue,title:ye,...St},z(Wt,{...Sa,RECORD:St})})}),Array.isArray(Q.children)&&b(Q.children)}}},p=(V=[])=>(e.isUseSeq&&V.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(V),V);a.watch(v,()=>{g.value=1,W(!1)}),a.watch(r,V=>{i.value=!!V}),a.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=p(Pe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([V,U])=>{U==="static"&&(d.value=V)},{immediate:!0});const y=a.ref({}),A=V=>{if(Array.isArray(V)){const U=V.length,Z=E,ee=Z.length,te={};for(let oe=0;oe<U;oe++){const me=V[oe];for(let ue=0;ue<ee;ue++){const ye=Z[ue];if(te[ye])te[ye].add(me[ye]);else{const Ge=new Set;Ge.add(me[ye]),te[ye]=Ge}}}const Q={};for(const oe in te)if(Object.prototype.hasOwnProperty.call(te,oe)){const me=te[oe],ue=Array.from(me);Q[oe]=ue.map(ye=>({label:ye,value:ye}))}y.value=Q}};a.watch(()=>[e.isReverse,x.value,d.value],()=>{const V=a.unref(x),U=a.unref(d);if(A(U),e.isReverse){const{columns:Z,dataSource:ee}=C(Pe.cloneDeep(V),Pe.cloneDeep(U));h.value=Z,l.value=ee}else h.value=V,l.value=U},{immediate:!0});const C=(V,U)=>{const Z=V[0],ee=[{title:Z.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Q=0;Q<U.length;Q++){const oe=U[Q],me="col"+(Q+1);ee.push({title:oe[Z.dataIndex],dataIndex:me,key:me,align:"center"})}const te=[];for(let Q=1;Q<V.length;Q++){const oe=V[Q],me={col0:oe.title};for(let ue=0;ue<U.length;ue++){const ye=U[ue];me[`col${ue+1}`]=ye[oe.dataIndex]}te.push(me)}return{columns:ee,dataSource:te}},R=a.ref(""),L=Le(e),M=async(V=!0,U={})=>{var Z;try{V&&(t.value=!0),a.unref(R)&&(U.orderCondition=a.unref(R)),e.paginationShow&&(U={pageNum:a.unref(g),pageSize:a.unref(v)||"10",layer:"1",...U});const ee=await L(U),{rows:te=[],total:Q=0}=((Z=ee==null?void 0:ee.data)==null?void 0:Z.data)||{};if(m.value=Q,Array.isArray(te)&&(d.value=te),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:oe=[]}=e,me=oe.find(ue=>ue.key==="dataSqlId");if((me==null?void 0:me.value)==="xt_jxzebg"){const ue=te.filter(ye=>!ye.绩效总额).map(ye=>ye.ORG_NAME);ue!=null&&ue.length&&a.nextTick(()=>{ie.notification.warning({message:"提示",description:`当前时段${ue.join("、")}绩效数据为空`,duration:3})})}}}catch(ee){console.error(ee)}finally{t.value=!1}},B=({current:V},U,Z)=>{if(g.value=V,Z&&Object.keys(Z).length>0){const{field:ee,order:te}=Z,oe={ascend:"asc",descend:"desc"}[te];ee!=null&&oe!=null&&(R.value=ee+" "+oe)}W(!1)},w=a.computed(()=>{const V=e.simple,U=[e.paginationPosition],Z={};return e.isShowTotal&&(Z.showTotal=ee=>`共 ${ee} 条数据`),e.paginationShow&&{simple:V,position:U,total:a.unref(m),current:a.unref(g),pageSize:a.unref(v)||"10",showSizeChanger:!1,size:"large",...Z}}),_=V=>+V==1?"是":+V==0?"否":V,S=(V,U)=>{const{format:Z,retentiondigit:ee,customFormatter:te}=U;if(Z==null||Z==="")return V;const Q={money:xo,percentage:sn,contrast:sn,boolean:_,decimals:ec,custom:tc};return Z==="decimals"?Q[Z](V,ee)||"":Z==="custom"?Q[Z](V,te)||"":Q[Z](V)||""},D=(V,U)=>{const Z=parseFloat(V+"");if(U!=="contrast")return"";switch(!0){case Z>=0:return"goUp";case Z<0:return"goDown"}},F=Ce(e),{getGlobalModel:O,setGlobalModel:z}=a.inject(Se,{getGlobalModel:V=>{},setGlobalModel:(V,U)=>{}}),H=(V=[],U=[])=>{const Z=V.map(ee=>({title:ee,dataIndex:ee,key:ee}));x.value=p(Z),d.value=U},j=tt(e),P=async(V=!0)=>{var U,Z,ee,te;try{V&&(t.value=!0);const Q=a.unref(R).split(" "),oe=await j({sort:{order:Q[1],field:Q[0]}});H((Z=(U=oe==null?void 0:oe.data)==null?void 0:U.data)==null?void 0:Z.columns,(te=(ee=oe==null?void 0:oe.data)==null?void 0:ee.data)==null?void 0:te.rows)}catch(Q){console.error(Q)}finally{t.value=!1}},k=a.ref(-1),I=(V,U)=>({onClick:F("rowClick",()=>{const Z=e.id,ee=O(Z);z(Z,{...ee,RECORD:V}),k.value=U})}),{loadedData:T}=a.inject(ct,{loadedData:{}}),N=a.ref(!1);a.watch(T,V=>{if(e.dataType==="indicator"){const U=jt(e.graphicConfig);U!=null&&U.length&&(!a.unref(N)&&Ye(e.graphicConfig,V)?(N.value=!0,W()):Ye(e.graphicConfig,V)||(N.value=!1))}},{deep:!0});const W=(V=!0)=>{switch(e.dataType){case"request":M(V);break;case"indicator":Ye(e.graphicConfig,a.unref(T))&&P(V);break}},$=()=>{const V=e.id,U=O(V);z(V,{...U,RECORD:""})},ne=a.computed(()=>{const V=a.unref(h),U=[];let Z=0;for(let Q=0;Q<V.length;Q++){const oe=V[Q],{isCalcTotal:me}=oe;e.isUseSeq&&Q===0?U.push({...oe,total:"小计"}):me?(U.push({...oe,index:Q,total:0}),Z++):U.push({...oe})}if(Z===0)return[];const ee=a.unref(l),te=Y(U);for(let Q=0;Q<te.length;Q++){const oe=te[Q];let me=0;const{isCalcTotal:ue,dataIndex:ye}=oe;if(ue===!0){for(let Ge=0;Ge<ee.length;Ge++){const nt=+ee[Ge][ye];isNaN(nt)||(me=new A0.Big(me).add(nt).toNumber())}oe.total=me}}return te});function Y(V){var Z;const U=[];for(const ee of V)(Z=ee.children)!=null&&Z.length?U.push(...Y(ee.children)):U.push(ee);return U}const{setRequest:X}=a.inject(Re,{setRequest:V=>{}});typeof X=="function"&&X({id:e.id,requestFn:W,sortNum:e.requestSort}),n({refreshData:W});const K=(V="",U)=>we(V,U),J=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},ae=(V,U="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},he=(V,U)=>{V(U.filterCheckboxGroupValue)},fe=(V,U)=>{V({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},De=()=>{},Fe=V=>{const U=V.dataIndex;if(typeof U=="string"){let Z=a.unref(y)[U];const ee=a.unref(V.filterOptionsInputValue).trim();return Array.isArray(Z)?(Z=Z.filter(te=>typeof te.label=="string"?te.label.toLowerCase().includes(ee.toLowerCase()):!0),Z):[]}return[]},Ne=async()=>{var ye,Ge;const V="EXPORT_KEY";ie.message.loading({key:V,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const We={layer:"1"};a.unref(R)&&(We.orderCondition=a.unref(R));const nt=await L(We);U=((Ge=(ye=nt==null?void 0:nt.data)==null?void 0:ye.data)==null?void 0:Ge.rows)||{}}const Z=a.unref(h),ee=[],te=[];Z==null||Z.forEach(We=>{ee.push(We.dataIndex),te.push(We.title)});const Q=U.map(We=>Pe.pick(We,ee)),oe=Ft.utils.book_new(),me=Ft.utils.aoa_to_sheet([te]),ue=Ft.utils.sheet_add_json(me,Q,{skipHeader:!0,origin:"A2"});Ft.utils.book_append_sheet(oe,ue,"sheet"),Ft.writeFile(oe,"表格数据.xlsx"),ie.message.success({key:V,content:"导出成功"})},Ve=(V,U=2)=>{const Z=+V*100;return isNaN(Z)||Z<=0?0:Z>=100?100:Z.toFixed(U)};_e(e,{resetRecord:$,refreshData:W,exportTableData:Ne});const je=(V,U)=>{let Z=null;return e.stripedShow&&(Z=U%2===1?"table-striped":null),Z},Xe=a.computed(()=>{let V=0;const{height:U,isPageBottom:Z}=e;return Z&&U&&(V=parseFloat(U)-u()),V?V+"px":"100%"}),Ee=a.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),ke=a.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V});return{x:f,y:c,style:s,customRow:I,pagination:w,formatFn:S,contrastClass:D,tableChange:B,summaryList:ne,loading:t,onTouchHrefEvent:ae,handleHref:K,handleHrefTarget:J,useRowIndex:k,tableColumns:h,tableDataSource:l,useFilterOptions:Fe,useSetSelectedKeys:he,onResetFilter:fe,onSearchFilterOptions:De,exportTableData:Ne,handleProgressText:Ve,pageSizeVisible:i,pageSize:v,tableRef:r,rowClassName:je,tableHeight:Xe,tableHeaderBgColor:Ee,tableBodyBgColor:ke}}}),i0=()=>{a.useCssVars(e=>({"2cb836e1":e.stripedColor,"297b7f4f":e.paginationBgColor,"93599e58":e.paginationColor,"5a5de0a9":e.activePaginationBgColor,b99bbea4:e.activePaginationColor,"2cbc27ee":e.hoverBackgroundColor,"7b969e50":e.tableHeaderBgColor,"3715fde3":e.tableBodyBgColor}))},l0=pa.setup;pa.setup=l0?(e,n)=>(i0(),l0(e,n)):i0;const Z1="",Y1="",Kf=e=>(a.pushScopeId("data-v-1dca2709"),e=e(),a.popScopeId(),e),Xf=["id"],Qf={key:0,class:"table-tool"},Jf=a.createTextVNode("导出数据"),ed=a.createTextVNode(" 搜索 "),td=a.createTextVNode(" 重置 "),nd={key:0},od={key:1,class:"action-list"},ad=["href","target","onClick"],rd={key:2,class:"progress-cell"},id={key:0},ld={key:1},sd={class:"ant-pagination-options-quick-jumper"},cd=Kf(()=>a.createElementVNode("span",null,"条 / 页",-1));function fd(e,n,t,o,r,i){const s=a.resolveComponent("a-button"),l=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),u=a.resolveComponent("a-table-summary-row"),x=a.resolveComponent("a-table-summary"),d=a.resolveComponent("a-table"),h=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(h,{loading:e.loading},{default:a.withCtx(()=>{var m;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",Qf,[a.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[Jf]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(d,{ref:"tableRef",class:"table",style:a.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:g,selectedKeys:v,setSelectedKeys:E,confirm:b,clearFilters:p})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":y=>g.filterOptionsInputValue=y,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":y=>g.filterCheckboxGroupValue=y,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:y=>e.useSetSelectedKeys(E,g)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:a.withCtx(()=>[ed]),_:2},1032,["onClick"]),a.createVNode(s,{size:"small",style:{width:"90px"},onClick:a.withModifiers(y=>e.onResetFilter(p,g),["stop"])},{default:a.withCtx(()=>[td]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:g,index:v,text:E,record:b})=>{var p,y;return[g.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",nd,a.toDisplayString(v+1),1)):g.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",od,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(A,C)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:C},[a.createElementVNode("a",{href:e.handleHref(A.href,b),target:e.handleHrefTarget(A.target),style:a.normalizeStyle({color:A.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:R=>e.onTouchHrefEvent(A.target,e.handleHref(A.href,b))},a.toDisplayString(A.title),13,ad)]))),128))])):g.format==="progress"?(a.openBlock(),a.createElementBlock("div",rd,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(E,g.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:+e.handleProgressText(E)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(E,g.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(a.openBlock(),a.createElementBlock("span",id,a.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),1)):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass([e.contrastClass(E,g.format)])},a.toDisplayString(g.format!=null?e.formatFn(E,g):E),3),g.format==="contrast"?(a.openBlock(),a.createElementBlock("span",ld,a.toDisplayString(((y=g==null?void 0:g.customFormatter)==null?void 0:y.split("{value}")[1])||""),1)):a.createCommentVNode("",!0)],4))]}),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:a.withCtx(()=>[a.createVNode(u,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(g,v)=>(a.openBlock(),a.createBlock(c,{key:v,index:v,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:g.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(g.total,g.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):a.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",sd,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[a.vModelText,e.pageSize]]),cd])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Xf)}const s0=ge(de(pa,[["render",fd],["__scopeId","data-v-1dca2709"]])),ba={...ve,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},va=xe(ba),c0=["click"];ze.use([pt.CanvasRenderer,at.MapChart,at.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const dd=a.defineComponent({name:"EcanMap",components:{Echarts:lt},props:{...va},setup(e){const n=Le(e),t=Le({...e.tooltipRequestData,requestHeaders:{}}),o=a.ref(),r=a.ref(""),i=a.ref(""),s=pe(e,["backgroundImage"]),l=a.ref(),f=a.computed(()=>gt(e.geoBackgroundImage)),c=a.computed(()=>gt(e.backgroundImage)),u=a.computed(()=>e.geoBackgroundImage?{image:a.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=a.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+gt(S):"circle"}),d=S=>{let D=e.tooltipFormatter;const F=D.match(/\{(.+?)\}/g);if(F==null||F.length===0)return D;for(let O=0;O<F.length;O++){const z=F[O];let H=z.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,P=H.match(j);for(let k=0;k<P.length;k++){const I=P[k],T=S[I];T!=null&&(H=H.replace(I,T))}D=D.replace(z,H)}return D.split(`
|
|
118
|
-
`)},h=
|
|
116
|
+
<span style="color: ${U||e.color};${o.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+T).toFixed(2)}%</span>
|
|
117
|
+
</span>`)}else e.format==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=So(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):N==="thousands"?(T=+T,isNaN(T)||(T=oc(T),D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):D=D.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`)}}if(O||(O=`<span style="color: ${h(D)};${o.unref(u)}">${D}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:j}=e;let M="position:relative;";H&&(M+=`top:${H};`),j&&(M+=`margin-left:${j};`),O+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${M};${o.unref(u)}'>${e.unitText}</span>`}return O});function h(w){let _="",S=!1;const{targetValue:D,targetShow:F,notExpectColor:O}=e;if(F){switch(e.targetRule){case"equal":w!==D&&(S=!0);break;case"greater":w<=D&&(S=!0);break;case"greater_equal":w<D&&(S=!0);break;case"less":w>=D&&(S=!0);break;case"less_equal":w>D&&(S=!0);break}S&&(_=O)}return _}const{pageMode:m}=o.inject(ze,{pageMode:"normal"}),g=Fe(e),v=o.ref(!1),E=async()=>{var w;try{v.value=!0;const _=await g();r.value=((w=_==null?void 0:_.data)==null?void 0:w.data)||{}}catch(_){console.error(_)}finally{v.value=!1}},b=(w={})=>{r.value=w},p=w=>{const _=e.id,S=l(_);f(_,{...S,value:w||""})},y=it(e),k=async()=>{var w;try{v.value=!0;const _=await y(),{data:S}=(_==null?void 0:_.data)||{};if(S){t.value=!1;const{columns:D=[],rows:F=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let O={};if(D.length>0){const P=D.find(H=>!!H);P&&(O={value:isNaN(F[P])?0:F[P]||0})}p(O==null?void 0:O.value),b(O)}else t.value=!0,p("NaN"),b({value:"NaN"})}catch(_){console.error(_)}finally{v.value=!1,c(e.id,!0)}},C=()=>{switch(e.dataType){case"indicator":k();break;case"request":E();break}},{setRequest:R}=o.inject(Oe,{setRequest:({id:w,sortNum:_,requestFn:S})=>{}});typeof R=="function"&&R({id:e.id,requestFn:C,sortNum:e.requestSort}),_e(e,{refreshData:C}),n({refreshData:C});const L=we(e),z=L("click",()=>{if(!e.linkPage&&!e.href)return;const w=e.linkPage||"",_=si(o.unref(m),w),S=e.href;let D=S||_;D=Ae(D);const F=e.target;F&&(F!=="event"?window.open(D,"_"+F):window.parent.postMessage({type:"openPage",url:S},"*"))}),B=L("valueChange",()=>{});return o.watch(()=>d.value,(w,_)=>{w!==_&&B()}),{style:a,myText:d,loading:v,click:z,textIndent:s,vFontSize:i,gradientStyle:x}}}),ui=()=>{o.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},hi=Eo.setup;Eo.setup=hi?(e,n)=>(ui(),hi(e,n)):ui;const Wd="",uc=["innerHTML"];function hc(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return e.loading?(o.openBlock(),o.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"ecan-text",style:o.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},null,12,uc))}const gi=ge(ue(Eo,[["render",hc],["__scopeId","data-v-3cbb70ab"]])),gc=o.defineComponent({name:"EcanScrollText",setup(){return{text:o.ref("基础文本")}}}),$d="",mc={class:"red"};function xc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",mc,o.toDisplayString(e.text),1)}const mi=ge(ue(gc,[["render",xc],["__scopeId","data-v-4dd9c03e"]])),_o={...ve,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Do=me(_o),xi=["timeChange"],yc=o.defineComponent({name:"EcanTimeDisplay",props:{...Do},setup(e){const n=pe(e),t=()=>{const{format:c,operate:u}=e;let x=Te();if(u){const{type:d,value:h,mode:m}=u;switch(d){case"add":x=x.add(h,m);break;case"minus":x=x.subtract(h,m)}}return x.format(c)},a=o.ref();o.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),o.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=we(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:x}=e.updateInterval||{};u&&(c=c*u);const d={second:1,minute:60,hour:60*60,day:24*60*60};x&&(c=c*d[x]),r=setInterval(()=>{a.value=t(),l()},c)};return _e(e,{timeChange:l}),o.onMounted(()=>{f()}),o.onUnmounted(()=>{i()}),{style:n,time:a}}}),Yd="";function pc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"time-display",style:o.normalizeStyle(e.style)},o.toDisplayString(e.time),5)}const yi=ge(ue(yc,[["render",pc],["__scopeId","data-v-b628fca2"]])),Io={...ve,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},Ro=me(Io),pi=["refreshData","click"],bc=o.defineComponent({name:"EcanList",components:{Skeleton:en},props:{...Ro},setup(e){const n=o.ref(e.data),t=pe(e,["backgroundColor"]),a=o.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:So,percentage:un,contrast:un}[m](h)||"",i=(h,m)=>{const g=parseFloat(h+"");if(m!=="contrast")return"";switch(!0){case g>=0:return"goUp";case g<0:return"goDown"}},s=Fe(e),l=o.ref(!1),f=async()=>{var h;if(e.dataType==="request")try{l.value=!0;const m=await s();n.value=((h=m==null?void 0:m.data)==null?void 0:h.data.rows)||[]}catch(m){console.error(m)}finally{l.value=!1}},c=()=>{f()},x=we(e)("click",()=>{});_e(e,{refreshData:c});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:a,contrastClass:i,dataSource:n,loading:l,click:x}}}),Qd="",Xd="",vc=e=>(o.pushScopeId("data-v-7aa27677"),e=e(),o.popScopeId(),e),Sc={key:0,class:"title"},Cc={key:0,class:"ranking"},wc={key:1,class:"ecan-list-content"},Ac={key:0,class:"ranking"},kc=vc(()=>o.createElementVNode("div",{class:"icon"},null,-1)),Tc={class:"sort"},Bc={key:2,class:"empty"};function Ec(e,n,t,a,r,i){const s=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-list",style:o.normalizeStyle(e.style)},[o.createVNode(s,{loading:e.loading},{default:o.withCtx(()=>[e.useTitle?(o.openBlock(),o.createElementBlock("div",Sc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columnCount,l=>(o.openBlock(),o.createElementBlock("div",{class:"title-inner",style:o.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:l%e.columnCount!==0?e.itemColSpan:""}),key:l},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Cc)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"column",key:f.key||c,style:o.normalizeStyle({color:f.titleColor,...e.columnStyle})},o.toDisplayString(f.title),5))),128))],4))),128))])):o.createCommentVNode("",!0),e.dataSource.length>0?(o.openBlock(),o.createElementBlock("div",wc,[e.useTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"title-placeholder",style:o.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dataSource.slice(0,e.sliceCount),(l,f)=>(o.openBlock(),o.createElementBlock("div",{class:"item",style:o.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:l.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(o.openBlock(),o.createElementBlock("div",Ac,[kc,o.createElementVNode("div",Tc," Top "+o.toDisplayString(f+1),1)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.columns,c=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["column",e.contrastClass(l[c.key],c.format)]),key:c.key,style:o.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(l[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},o.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(l[c.key],c.format)),7))),128))],4))),128))])):(o.openBlock(),o.createElementBlock("div",Bc," 暂无数据 "))]),_:1},8,["loading"])],4)}const bi=ge(ue(bc,[["render",Ec],["__scopeId","data-v-7aa27677"]])),Oo={...ve,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Lo=me(Oo),vi=["refreshData","click"],_c=o.defineComponent({name:"EcanProportion",components:{AProgress:ie.Progress,Skeleton:en},props:{...Lo},setup(e,{expose:n}){const t=o.ref(!1),{pageMode:a}=o.inject(ze,{pageMode:"normal"}),r=pe(e),i=o.computed(()=>{const y=e.width;return parseFloat(y)}),s=o.ref({});o.watch(()=>e.data,()=>{(e.dataType==="static"||o.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=o.computed(()=>{const y=o.unref(s),k=+e.variableDefaultValue;if(y==null)return isNaN(k)?0:k;const C=e.text.match(/\{.+\}/g)||[];let R;const L=new Set(Object.keys(y));for(let z=0;z<C.length;z++){const B=C[z],w=B.slice(1,B.length-1);if(L.has(w)){R=y[w];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(k)?R=0:R=k*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),f=o.computed(()=>{var L;let y=e.text;if(y==="")return o.unref(l);const k=e.variableDefaultValue,C=o.unref(s),R=y.match(/\{.+\}/g)||[];for(let z=0;z<R.length;z++){const B=R[z];let w=B.slice(1,B.length-1);const _=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,S=B.match(_);for(let F=0;F<(S==null?void 0:S.length);F++){const O=(L=S[F])==null?void 0:L.trim();C[O]!=null&&(w=w.replace(O,C[O]))}let D=w;try{/\(.*\)/g.test(w)&&(D=gn(w))}catch(F){console.error(F)}typeof+D=="number"&&!isNaN(+D)?(D=+D*100,e.decimalFormat&&(D=D.toFixed(2))):D=k,y=y.replace(B,D+"")}return o.unref(t)?"NaN":y}),c=Fe(e),u=o.ref(!1),x=async()=>{var y;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((y=k==null?void 0:k.data)==null?void 0:y.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},d=(y={})=>{s.value=y},h=it(e),m=async()=>{var y;try{u.value=!0;const k=await h(),{data:C}=(k==null?void 0:k.data)||{};if(C){t.value=!1;const{columns:R=[],rows:L=[]}=((y=k==null?void 0:k.data)==null?void 0:y.data)??{};let z={};if(R.length>0){const B=R.find(w=>!!w);B&&(z={percent:L[B]})}d(z)}else t.value=!0,d({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":x();break}};_e(e,{refreshData:g}),n({refreshData:g});const E=we(e)("click",()=>{}),{setRequest:b}=o.inject(Oe,{setRequest:({id:y,sortNum:k,requestFn:C})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const p=o.computed(()=>{const{gradientShow:y,gradientColor:k,gradientOffset:C,strokeColor:R}=e;let L=R;return y&&k&&(L={"0%":R,[`${C*100}%`]:k}),L});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:E,customStrokeColor:p}}}),e1="";function Dc(e,n,t,a,r,i){const s=o.resolveComponent("skeleton"),l=o.resolveComponent("a-progress");return o.openBlock(),o.createElementBlock("div",{class:"ecan-proportion",style:o.normalizeStyle(e.style)},[o.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:o.withCtx(()=>[e.loading?(o.openBlock(),o.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(o.openBlock(),o.createElementBlock("div",{key:1,class:"format",style:o.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},o.toDisplayString(e.text),5)):o.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Si=ge(ue(_c,[["render",Dc],["__scopeId","data-v-cf942b5f"]])),No={...ve,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},zo=me(No),Ci=["inputChange","inputBlur"],Ic=o.defineComponent({name:"EcanInput",components:{AInput:ie.Input},props:{...zo},setup(e){const n=pe(e),t=o.ref("");o.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=o.inject(Ce,{getGlobalModel:c=>{},setGlobalModel:(c,u)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=a(e.id);r(e.id,{...c,RECORD:t})},s=we(e),l=Ne.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),n1="";function Rc(e,n,t,a,r,i){const s=o.resolveComponent("a-input");return o.openBlock(),o.createElementBlock("div",{class:"ecan-input",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:o.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const wi=ge(ue(Ic,[["render",Rc]])),Fo={...ve,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Mo=me(Fo),Ai=["dateChange"],Po=o.defineComponent({name:"EcanDatePicker",props:{...Mo},components:{ADatePicker:ie.DatePicker},setup(e){const n=o.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=o.ref(null);o.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,h,m])=>{let g=null;if(d?g=Te(Ae(d)):h&&(g=Te()),m&&g){const{type:v,value:E,mode:b}=m;switch(v){case"add":g=g.add(E,b);break;case"minus":g=g.subtract(E,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=o.inject(Ce,{setGlobalModel:(d,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=we(e)("dateChange",()=>{}),f=()=>{o.unref(r)&&l()};_e(e,{dateChange:l});const c=o.ref({}),u=o.ref({}),x=d=>{d?setTimeout(()=>{u.value=o.unref(c)},300):u.value={}};return o.onMounted(()=>{setTimeout(()=>{const d=document.querySelector(`#ecan-date-picker-${e.id}`);if(d){const h=d.getBoundingClientRect(),m=parseFloat(o.unref(n).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ia,change:f,scaleValue:n,popupStyle:c,customStyle:u,openChange:x}}}),ki=()=>{o.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ti=Po.setup;Po.setup=Ti?(e,n)=>(ki(),Ti(e,n)):ki;const a1="",r1="",Oc=["id"];function Lc(e,n,t,a,r,i){const s=o.resolveComponent("a-date-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-date-picker",style:o.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[o.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,Oc)}const Bi=ge(ue(Po,[["render",Lc],["__scopeId","data-v-d4ec0d66"]])),Ho={...ve,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},qo=me(Ho),Ei=["dateChange"];var _i={exports:{}};(function(e,n){(function(t,a){e.exports=a()})(le,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,t):l.bind(this)(c,u)};var f=s.startOf;s.startOf=function(c,u){var x=this.$utils(),d=!!x.u(u)||u;if(x.p(c)===a){var h=this.quarter()-1;return d?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return f.bind(this)(c,u)}}})})(_i);var Nc=_i.exports;const zc=rr(Nc);Te.extend(zc);const Vo=o.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ie.RangePicker},props:{...qo},setup(e){const n=pe(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=o.ref([null,null]);o.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([p,y,k,C,R,L])=>{let z=null,B=null;if(k&&(z=Te().subtract(C,R),B=Te()),p&&(z=Te(Ae(p))),y&&(B=Te(Ae(y))),L){const{type:w,value:_,mode:S}=L;switch(w){case"add":z=z&&z.add(_,S),B=B&&B.add(_,S);break;case"minus":z=z&&z.subtract(_,S),B=B&&B.subtract(_,S)}}a.value=[z,B]},{immediate:!0});let r=o.unref(a)[0],i=o.unref(a)[1],s="";const l=(p,y,k)=>{Array.isArray(p)?(r=p[0],i=p[1],s=k.range):(r=null,i=null)},f=p=>{let y=!1,{limitStartTime:k,limitEndTime:C}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(k=Ae(k,{codeData:R}),C=Ae(C,{codeData:R}),k&&C?y=!(Te(k)<p&&p<Te(C)):k?y=Te(k)>p:C&&(y=Te(C)<p),!e.isAllowSpanYear&&s){let L=null;if(s==="start"?L=r:s==="end"&&(L=i),L){const z=L.startOf("year"),B=L.endOf("year");y=!(z<=p&&p<B)}}return y},{getGlobalModel:c,setGlobalModel:u}=o.inject(Ce,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}}),x=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[0]:null),d=o.computed(()=>Array.isArray(o.unref(a))?o.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:x,endTime:d});const h=we(e);let m=!1;const g=h("dateChange",()=>{}),v=p=>{const y=o.unref(a),k=y&&y[0]&&y[1];p===!1&&m===!0&&k&&(g(),m=!1),p||(s="")},E=()=>{m=!0};return _e(e,{dateChange:()=>{const{associated:p}=e;if(p){const y=c(p)||{};if(y){const{value:k}=y;if(k)switch(o.unref(k)){case"month":a.value=[Te().startOf("month"),Te().endOf("month")];break;case"quarter":a.value=[Te().startOf("quarter"),Te().endOf("quarter")];break;case"year":a.value=[Te().startOf("year"),Te().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:Ia,dateChange:g,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:E}}}),Di=()=>{o.useCssVars(e=>({e3e95c76:e.optionFontSize}))},Ii=Vo.setup;Vo.setup=Ii?(e,n)=>(Di(),Ii(e,n)):Di;const l1="",s1="";function Fc(e,n,t,a,r,i){const s=o.resolveComponent("a-range-picker");return o.openBlock(),o.createElementBlock("div",{class:"ecan-range-picker",style:o.normalizeStyle(e.style)},[o.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Ri=ge(ue(Vo,[["render",Fc],["__scopeId","data-v-a0f75a64"]])),jo={...ve,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Go=me(jo),Oi=["click"],Mc=o.defineComponent({name:"EcanButton",components:{AButton:ie.Button},props:{...Go},setup(e){const n=pe(e),a=we(e)("click",()=>{const f=o.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=o.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=o.computed(()=>Ae(e.text)),s=o.computed(()=>Ae(e.href)||null),l=o.computed(()=>{const f=e.target;if(!(f==="event"||o.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:n,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),f1="";function Pc(e,n,t,a,r,i){const s=o.resolveComponent("a-button");return o.openBlock(),o.createElementBlock("div",{class:"ecan-button",style:o.normalizeStyle(e.style)},[o.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:o.normalizeStyle(e.buttonStyle),class:o.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:o.withCtx(()=>[o.createElementVNode("span",{style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},o.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Li=ge(ue(Mc,[["render",Pc]])),Wo={...ve,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Uo=me(Wo),Ni=["checkboxChange"],Hc=o.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ie.CheckboxGroup},props:{...Uo},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref([]),i=v=>{const E=e.value;let b=[];v.forEach(p=>{p.checked&&b.push(p.value)}),typeof E=="string"&&E!==""?b=b.concat(E.split(",")):Array.isArray(E)&&(b=b.concat(E)),a.value=v,r.value=b};o.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Fe(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const v=await s(),E=((p=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(E)},{getGlobalModel:f,setGlobalModel:c}=o.inject(Ce,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const x=we(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),d=it(e),h=async()=>{var v;try{const E=await d(),{data:b}=(E==null?void 0:E.data)||{};if(b){const y=(((v=E==null?void 0:E.data)==null?void 0:v.data)??[]).map(k=>({label:k.label,value:k.value}));i(y)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=o.inject(Oe,{setRequest:({id:v,sortNum:E,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),n({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:x}}}),u1="";function qc(e,n,t,a,r,i){const s=o.resolveComponent("a-checkbox-group");return o.openBlock(),o.createElementBlock("div",{class:"ecan-checkbox",style:o.normalizeStyle(e.style)},[o.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const zi=ge(ue(Hc,[["render",qc]])),$o={...ve,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Zo=me($o),Fi=["selectChange","refreshData"],Vc=o.defineComponent({name:"EcanSelect",components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},props:{...Zo},setup(e,{expose:n}){const t=pe(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Fe(e),i=o.ref(e.data||[]),s=o.ref(),l=o.computed({get:()=>{var D;const{mode:S}=e;return(D=o.unref(i))!=null&&D.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}});o.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:D,value:F}=e;S==="multiple"||S==="tags"||S==="combobox"?F?s.value=F.split(","):D&&(s.value=[o.unref(i)[0]]):F?s.value=F:D&&(s.value=o.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(S,D)=>{const F=f.label,O=f.value;let P;const H=D[F],j=D[O];return H!=null?P=H:j!=null&&(P=j),(P==null?void 0:P.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},u=S=>{const{label:D,value:F,options:O}=e.dataFieldNames;if(O&&Array.isArray(S))if(S.some(P=>O in P)){const P={},H=[];S.forEach(j=>{P[j[O]]||(P[j[O]]=[]),P[j[O]].push({[D]:j[D],[F]:j[F]})});for(const j in P)H.push({[D]:j,[O]:P[j]});return H}else return S;else if(!O)return S},x=o.ref(!1),d=async()=>{var S,D;if(e.dataType==="request"){x.value=!0;try{const F=await r();if(i.value=u(((D=(S=F==null?void 0:F.data)==null?void 0:S.data)==null?void 0:D.rows)||[]),e.selectFirstOption){let O=o.unref(i)[0];if(f.options){const P=O[f.options];P&&P.length&&(O=P[0])}s.value=O[f.value]}}catch(F){console.error(F)}finally{x.value=!1}}},{getGlobalModel:h,setGlobalModel:m}=o.inject(Ce,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}}),{setLoadedData:g,loadedData:v}=o.inject(gt,{setLoadedData:(S,D)=>{},loadedData:{}}),E=o.computed(()=>{let S=s.value;if(e.valueType==="label"&&o.unref(s)&&o.unref(i)){const D=f.label,F=f.value;if(e.mode==="multiple")S=o.unref(i).filter(O=>o.unref(s).includes(O[F])).map(O=>O[D]);else{const O=o.unref(i).find(P=>o.unref(s)===P[F]);O&&(S=O[D])}}return S}),b=o.ref([]),p=o.computed(()=>{const S={};if(e.mode!=="multiple"){const D=o.unref(b).find(F=>F.value===o.unref(s));D&&(S.itemCodes=D.item_codes)}return S});m(e.id,{type:e.type,value:E,...o.unref(p)});const k=we(e)("selectChange",()=>{const S=e.id,D=h(S);m(S,{...D,...o.unref(p),RECORD:E})}),C=(S=[])=>{if(i.value=u(S),e.selectFirstOption){let D=o.unref(i)[0];if(f.options){const F=D[f.options];F&&F.length&&(D=F[0])}s.value=D[f.value]}},R=it(e),L=async()=>{var S;try{x.value=!0;const D=await R(),{data:F}=(D==null?void 0:D.data)||{},O=f.label,P=f.value;if(F){const H=((S=D==null?void 0:D.data)==null?void 0:S.data)??[];b.value=H;const j=H.map(I=>({[O]:I.label,[P]:I.value})),{id:M}=e,A=h(M);m(M,{...A,...o.unref(p)}),g(M,!0),C(j)}else C([])}catch(D){console.error(D)}finally{x.value=!1}},z=o.computed(()=>{var S,D;return(D=(S=e==null?void 0:e.graphicConfig)==null?void 0:S.controlList)==null?void 0:D.find(F=>F.mode==="cascade")}),B=o.ref(!1);o.watch(v,S=>{!o.unref(B)&&o.unref(z)&&S[o.unref(z).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{o.unref(z)?o.unref(v)[o.unref(z).id]&&L():L();break}case"request":d();break}};_e(e,{selectChange:k,refreshData:w});const{setRequest:_}=o.inject(Oe,{setRequest:({id:S,sortNum:D,requestFn:F})=>{}});return typeof _=="function"&&_({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:c,loading:x,resultValue:l}}}),g1="",m1="";function jc(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-select",style:o.normalizeStyle(e.style)},[o.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":n[0]||(n[0]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:o.normalizeStyle({fontSize:e.optionFontSize})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.options,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:f.value,label:f.label,style:o.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Mi=ge(ue(Vc,[["render",jc],["__scopeId","data-v-e59f5cca"]])),Yo={...ve,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Ko=me(Yo),Pi=["selectChange","refreshData"],Gc={name:"EcanTreeSelect",components:{ATreeSelect:ie.TreeSelect},props:{...Ko},setup(e){const n=pe(e),t=o.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,v=g.label,E=g.value;let b;const p=m[v],y=m[E];return p!=null?b=p:y!=null&&(b=y),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=o.ref();o.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[o.unref(t)[0]]):m?r.value=m:g&&(r.value=o.unref(t)[0])},{immediate:!0});const i=o.ref(!1),s=Fe(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const v=o.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=o.inject(Ce,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const x=we(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});_e(e,{selectChange:x,refreshData:l});const{setRequest:d}=o.inject(Oe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return d({id:e.id,requestFn:l,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:x}}},y1="",p1="";function Wc(e,n,t,a,r,i){const s=o.resolveComponent("a-tree-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tree-select",style:o.normalizeStyle(a.style)},[o.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Hi=ge(ue(Gc,[["render",Wc],["__scopeId","data-v-37236421"]])),Qo={...ve,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},Xo=me(Qo),qi=["checkboxChange","click"],Uc=o.defineComponent({name:"EcanRadio",components:{ARadioGroup:ie.RadioGroup,ARadioButton:ie.RadioButton,ARadio:ie.Radio},props:{...Xo},setup(e,{expose:n}){const t=pe(e),a=o.ref([]),r=o.ref(""),i=p=>{const y=e.value;let k=[];typeof y=="string"&&y!==""?k=k.concat(y.split(",")):Array.isArray(y)&&(k=k.concat(y)),a.value=p,r.value=k[0]||""};o.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=Fe(e),l=async()=>{var k,C;if(e.dataType!=="request")return;const p=await s(),y=((C=(k=p==null?void 0:p.data)==null?void 0:k.data)==null?void 0:C.rows)||[];i(y)},{getGlobalModel:f,setGlobalModel:c}=o.inject(Ce,{getGlobalModel:p=>{},setGlobalModel:(p,y)=>{}});c(e.id,{type:e.type,value:r});const u=we(e),x=u("checkboxChange",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})}),d=p=>{r.value=p,u("click",()=>{const y=f(e.id);c(e.id,{...y,RECORD:r})})()};o.watch(r,()=>{x()});const h=it(e),m=async()=>{var p;try{const y=await h(),{data:k}=(y==null?void 0:y.data)||{};if(k){const R=(((p=y==null?void 0:y.data)==null?void 0:p.data)??[]).map(L=>({label:L.label,value:L.value}));i(R)}else i([])}catch(y){console.error(y)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=o.inject(Oe,{setRequest:({id:p,sortNum:y,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:g,sortNum:e.requestSort});const E=p=>{r.value=p.value},b=o.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return n({refreshData:g}),{myOption:a,style:t,myValue:r,radioStyle:b,onClickButton:d,useImagePath:bt,tabChange:E}}}),v1="",S1="",$c=["onClick"];function Zc(e,n,t,a,r,i){const s=o.resolveComponent("a-radio"),l=o.resolveComponent("a-radio-button"),f=o.resolveComponent("a-radio-group");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["ecan-radio",e.optionType]),style:o.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(o.openBlock(),o.createElementBlock("div",{key:0,class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,(c,u)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:o.withModifiers(x=>e.tabChange(c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(c.label),5)],12,$c))),128))],4)):(o.openBlock(),o.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":n[0]||(n[0]=c=>e.myValue=c)},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myOption,c=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.value},[e.optionType==="default"?(o.openBlock(),o.createBlock(s,{key:0,value:c.value,style:o.normalizeStyle(e.radioStyle)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(o.openBlock(),o.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):o.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Vi=ge(ue(Uc,[["render",Zc],["__scopeId","data-v-baa84768"]])),Jo={...ve,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie"},ea=me(Jo),ji=["click","refreshData","resetRecord"],qt=async e=>{var f;const n=await st.post(e,{},{responseType:"blob"}),{data:t,headers:a}=n,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},ta={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333"},na=me(ta),Gi=["showModal"];function Wi(e){var r,i;const{componentList:n,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const x in t){const d=n.find(h=>h.id===x);if(d){hn(d,"parentId")||(d.parentId="",d.sourceLeft=d.left,d.sourceTop=d.top);for(const h in t[x])if(t[x][h])for(const m of t[x][h]){const g=n.find(v=>v.id===m);g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(d.sourceLeft||d.left)+"px",g.top=parseFloat(g.top)-parseFloat(d.sourceTop||d.top)+"px")}}}const s=Array.from(new Set(n.filter(x=>(!hn(x,"parentId")||x.parentId==="")&&x.combinationId).map(x=>x.combinationId))),l=[];for(const x of s){const d=a[x];if(d!=null&&d.length){const h=n.filter(m=>d.includes(m.id));if(h!=null&&h.length){const m=Kc(h);if(m){l.push({...m,id:x,keyName:x,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const g of h)g&&(g.parentId=x,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=parseFloat(g.left)-parseFloat(m.left)+"px",g.top=parseFloat(g.top)-parseFloat(m.top)+"px")}}}}l!=null&&l.length&&n.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=n.filter(x=>f.includes(x.type)&&!hn(x,"parentId")),u=[];for(const x of c)if(x){const d=x.id+"_vir";u.push({id:d,keyName:x.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:x.width,height:x.height,left:x.left,top:x.top,sourceLeft:x.left,sourceTop:x.top}),x.parentId=d,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=0,x.top=0}u!=null&&u.length&&n.unshift(...u);for(const x of n){const d=document.body.clientWidth;if(x.parentId===""&&["ecanBorder","ecanTabs"].includes(x.type))x.sourceWidth=parseFloat(x.width),x.height=(d/(x.sourceWidth/parseFloat(x.height))).toFixed(2)+"px",x.width="100%",x.position="relative",x.top="auto",x.left="auto";else{const h=n.find(m=>m.id===x.parentId);if((h==null?void 0:h.parentId)===""){const m=h.sourceWidth||parseFloat(h.width),g=d/m;x.scale=g,x.top=parseFloat(x.top)*g-parseFloat(x.height)*(1-g)/2+"px",x.left=parseFloat(x.left)*g-parseFloat(x.width)*(1-g)/2+"px"}}x.type==="ecanModal"&&(x.parentId="",x.fullModal=!0)}return Yc(n)}return n}function Yc(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ne.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Kc(e){const n=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return n&&t&&a&&r?{left:t.left,top:n.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(n.top)+"px"}:null}const Qc=o.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:n}){n("ready",e.component.id)}});function Xc(e,n,t,a,r,i){return e.component.parentId?(o.openBlock(),o.createBlock(o.Teleport,{key:0,to:"#container_"+e.component.parentId},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.component.type),o.normalizeProps(o.mergeProps({key:1},e.component)),null,16))}const Jc=ge(ue(Qc,[["render",Xc]])),ef=o.defineComponent({name:"EcanModal",components:{AModal:ie.Modal,CloseOutlined:Pl,Render:Jc},props:{...na},setup(e,{emit:n}){const t=o.ref([]),a=o.inject("isMobile",!1),r=o.inject("getContainerMap",()=>{}),i=o.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=o.inject(Ce,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=o.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),u=e.fullModal?"1920px":e.width,x=e.fullModal?"1080px":e.height,d=e.originalWidth,h=e.originalHeight,m=o.ref("80%"),g=o.ref(0),v=o.ref(),E=o.ref(0),b=o.ref({}),p=pe(e),y=o.ref({}),k=o.ref(!1),C=o.ref();let R;const L=()=>{v.value=parseFloat(u)/parseFloat(d);const Q=parseFloat(x)/parseFloat(h),Z=document.body.offsetWidth,J=document.body.offsetHeight;g.value=Z*o.unref(v),E.value=J*Q,m.value=`${o.unref(v)*100}%`,b.value={width:`${o.unref(g)}px`,height:`${o.unref(E)}px`},y.value={...o.unref(p),backgroundImage:bt(e.backgroundImage,!0)},a?y.value={...y.value,width:"100%",height:"100%"}:y.value={...y.value,transform:`scale(${o.unref(g)/parseFloat(u)},${o.unref(E)/parseFloat(x)})`,width:u,height:x}},z=Ne.debounce(()=>{L()},100),B=()=>{const Q=window.MutationObserver;R=new Q(z),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},_=o.ref(!1),{touchRequest:S}=o.inject(Oe,{touchRequest:()=>{}}),D=o.ref(""),F=()=>{var J;console.log("interactiveData",l);const{title:Q}=e,Z=(J=o.unref(l))==null?void 0:J.RECORD;return Z?Ae(Q,{textData:Z},{useNewline:!1,useSpace:!1}):Q},O=()=>{a&&(document.documentElement.style.overflow="hidden"),D.value=F(),_.value=!0},P=()=>{n("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),_.value=!1},H=()=>{P()},j=()=>{P(),s()},{setModalModel:M,pushUseModalIds:A,popUseModalIds:I}=o.inject(tr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,Z)=>{}}),T=o.computed(()=>{if(a){const Q=Ne.cloneDeep(e.componentList),Z=r(),J=i();return Wi({componentList:Q,containerMap:Z,combinationMap:J})}else return e.componentList}),N=()=>{const Q=e.id;let Z=[];const J=e.componentList;Array.isArray(J)&&(Z=J.map(ae=>ae.id),M(Q,[...new Set(Z)]))};o.watch(()=>_.value,async Q=>{Q?(k.value=!1,A(e.id),N(),await o.nextTick(()=>{L(),window.addEventListener("resize",z),B(),k.value=!0}),S()):(I(),window.removeEventListener("resize",z),w())});const U=o.computed(()=>o.unref(v)>=1),$=o.computed(()=>e.fullModal),ne=o.computed(()=>{let Q="ecan-modal";return o.unref(U)&&(Q+=" ecan-full-width-modal"),o.unref($)&&(Q+=" ecan-full-modal"),Q});return _e(e,{showModal:O}),{modalRef:C,containStyle:b,contentStyle:y,getContainer:f,modalStyle:c,modalWith:m,isFullModal:$,style:p,visible:_,showModal:O,onOk:H,onCancel:j,isFullWidth:U,wrapClassName:ne,ready:k,usedComponentList:T,isMobile:a,readyIds:t,hasOwn:hn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:D}}}),A1="",k1="";function tf(e,n,t,a,r,i){const s=o.resolveComponent("close-outlined"),l=o.resolveComponent("render"),f=o.resolveComponent("a-modal");return o.openBlock(),o.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:o.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"contain",ref:"containRef",style:o.normalizeStyle(e.containStyle)},[e.ready?(o.openBlock(),o.createElementBlock("div",{key:0,class:"content",style:o.normalizeStyle(e.contentStyle)},[o.createElementVNode("div",{class:"header-bar",style:o.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(o.openBlock(),o.createElementBlock("div",{key:0,class:"ant-modal-title",style:o.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},o.toDisplayString(e.formatTitle),5)):o.createCommentVNode("",!0),o.createVNode(s,{class:"close-icon",style:o.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])],4),e.usedComponentList.length?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.isMobile?"mobile-wrap":"")},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.usedComponentList,(c,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:c.id+u},[e.isMobile?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(o.openBlock(),o.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.type),o.normalizeProps(o.mergeProps({key:1},c)),null,16))],64))),128))],2)):o.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):o.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const vt=ge(ue(ef,[["render",tf],["__scopeId","data-v-4d60efbd"]]));Ge.use([At.CanvasRenderer,ct.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const nf=o.defineComponent({name:"EcanPie",props:{...ea},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(!1),a=pe(e),r=o.ref([]),i=o.ref(),s=o.ref({}),l=o.computed(()=>{let{data:w=[]}=o.unref(r)[0]||{};if(Array.isArray(e.colors)){const _=e.isUseLabelColors,S=e.colors;w=w.map((D,F)=>({label:_?{color:S[F]}:{},...D}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;t.value=!0,(_=i.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:_=>{const{marker:S,seriesName:D,name:F,value:O,percent:P,data:H}=_||{};return Ae(e.tooltipFormatter,{textData:{marker:S,name:F,value:O,percent:P,a:D,b:F,c:O,d:P,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:o.unref(s),color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?at:e.labelFontSize,position:e.labelPosition,formatter:nc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:_}=r.value[0]||{};let S;if(_){const D=_.find(F=>F.name===w);D&&(S=D.value)}return Ae(e.legendFormatter,{textData:{name:w,value:S}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:x}=o.inject(Ce,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:d}=o.inject(ze,{pageMode:"normal"}),h=(w=[],_)=>{const{dataset:S}=Dt(w,_);r.value=S},m=(w=[],_)=>{const S=Dt(w,_);r.value=S.dataset};o.watch(()=>e.data,w=>{(e.dataType==="static"||o.unref(d)==="design")&&h(w)},{immediate:!0,deep:!0}),o.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const g=o.ref(!1),v=Fe(e),E=async()=>{var w,_;if(e.dataType==="request")try{g.value=!0;const S=await v();h((_=(w=S==null?void 0:S.data)==null?void 0:w.data)==null?void 0:_.rows,e.valueTypeDataFieldNames)}catch(S){console.error(S)}finally{g.value=!1}},p=we(e)("click",w=>{const _=u(e.id);x(e.id,{..._,RECORD:w==null?void 0:w.data})}),y=it(e),k=async()=>{var w;try{g.value=!0;const _=await y(),{data:S}=(_==null?void 0:_.data)||{};if(S){const{columns:D=[],rows:F=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let O=[];if(D.length>0){const P=D[0],H=D[1];O=F.map(j=>({name:j[P],value:isNaN(j[H])?0:j[H]||0}))}m(O)}}catch(_){console.error(_)}finally{g.value=!1}},{loadedData:C}=o.inject(gt,{loadedData:{}}),R=o.ref(!1);o.watch(C,w=>{if(e.dataType==="indicator"){const _=Zt(e.graphicConfig);_!=null&&_.length&&(!o.unref(R)&&Xe(e.graphicConfig,w)?(R.value=!0,L()):Xe(e.graphicConfig,w)||(R.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(C))&&k();break;case"request":E();break}};_e(e,{resetRecord:()=>{const w=e.id,_=u(w);x(w,{..._,RECORD:""})},refreshData:L,click:p}),n({refreshData:L});const{setRequest:B}=o.inject(Oe,{setRequest:w=>{}});return typeof B=="function"&&B({id:e.id,requestFn:L,sortNum:e.requestSort}),{option:l,style:a,click:p,onClose:c,loading:g,ecanModal:i}}}),B1="";function of(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Ui=ge(ue(nf,[["render",of]])),oa={...ve,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:""},aa=me(oa),$i=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const af=o.defineComponent({name:"EcanLine",props:{...aa},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref([]),l=o.ref(),f=o.computed(()=>a.value?at:12),c=o.ref({});let u;const x=o.ref([]),d=o.computed(()=>{const D=e.xAxisLabelFormatter,F=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;a.value=!0,(O=l.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:O=>{var M;const P=O.length;let H="",j=e.tooltipFormatter;u=(M=O[0])==null?void 0:M.data,j===""&&(j="{marker} {a} {c}");for(let A=0;A<P;A++){const{marker:I,seriesName:T,name:N,value:U,data:$}=O[A]||{};if(A===0){let ne=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(ne=(+N).toString()),H+=`${Je(D,ne)}<br/>`}H+=Ae(j,{textData:{marker:I,name:N,value:U,a:T,b:N,c:U||0,...$}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:o.unref(s).map(O=>{let P={};return O&&typeof O=="object"?P={...O}:P={value:O},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(O){return typeof O=="string"&&O[0]==="0"&&!isNaN(+O)&&(O=(+O).toString()),Je(D,O)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(O){return Je(F,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(x).map(O=>({name:O.name,icon:e.legendType}))},series:o.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=o.inject(Ce,{getGlobalModel:D=>{},setGlobalModel:(D,F)=>{}}),{pageMode:v}=o.inject(ze,{pageMode:"normal"}),E=(D=[],F=!1)=>{let O;if(e.dataFieldConfigType==="key"){const M=F?e.keyTypeDataFieldNames:null;O=pt(D,M)}else if(e.dataFieldConfigType==="value"){const M=F?e.valueTypeDataFieldNames:null;O=Dt(D,M)}s.value=O.dimensions,x.value=O.dataset;const P=O.dataset,H=[],j=P.length;for(let M=0;M<j;M++){const A={};e.shadowColor&&(A.shadowColor=e.shadowColor,A.shadowBlur=e.shadowBlur,A.shadowOffsetY=e.shadowOffsetY,A.shadowOffsetX=e.shadowOffsetX),H.push({type:"line",...P[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...A}})}i.value=H},b=(D=[],F,O=!1)=>{const H=pt(D,O?F:null,!0);s.value=H.dimensions,x.value=H.dataset;const j=H.dataset,M=[],A=j.length;for(let I=0;I<A;I++){const T={};e.shadowColor&&(T.shadowColor=e.shadowColor,T.shadowBlur=e.shadowBlur,T.shadowOffsetY=e.shadowOffsetY,T.shadowOffsetX=e.shadowOffsetX),M.push({type:"line",...j[I],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[I]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[I],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...T}})}i.value=M};o.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize],([D])=>{(e.dataType==="static"||o.unref(v)==="design")&&E(D)},{immediate:!0,deep:!0});const p=o.ref(!1),y=Fe(e),k=async()=>{var D,F;if(e.dataType==="request")try{p.value=!0;const O=await y();E((F=(D=O==null?void 0:O.data)==null?void 0:D.data)==null?void 0:F.rows,!0)}catch(O){console.error(O)}finally{p.value=!1}},R=we(e)("click",D=>{const F=m(e.id);g(e.id,{...F,RECORD:e.tooltipShow?u:D.data})}),L=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&R()};e.tooltipShow?c.value["zr:click"]=L:c.value.click=R;const z=it(e),B=async()=>{var D;try{p.value=!0;const F=await z(),{columns:O=[],rows:P=[]}=((D=F==null?void 0:F.data)==null?void 0:D.data)??{};let H;O.length>0&&(H={name:O[0],types:O.slice(1).map(j=>({label:j,value:j}))}),b(P,H,!0)}catch(F){console.error(F)}finally{p.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":k();break}};_e(e,{refreshData:w,resetRecord:()=>{const D=e.id,F=m(D);g(D,{...F,RECORD:""})},click:R});const{setRequest:S}=o.inject(Oe,{setRequest:D=>{}});return typeof S=="function"&&S({id:e.id,requestFn:w,sortNum:e.requestSort}),n({refreshData:w}),{option:d,style:r,click:R,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),_1="";function rf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Zi=ge(ue(af,[["render",rf]])),ra={...ve,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:""},ia=me(ra),Yi=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const lf=o.defineComponent({name:"EcanBar",props:{...ia},components:{Spin:_t,Echarts:ut,EcanModal:vt,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref(),u=o.computed(()=>a.value?at:12),x=o.computed(()=>{const{gradientShow:M,gradientColors:A,gradientOffset:I,barBorderRadius:T}=e,N=o.unref(f),U=N.length,$=[];for(let ne=0;ne<U;ne++){const Y={...N[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Y.stack="stack"),Y.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let Z="",J=e.labelFormatter;J===""&&(J="{c}");const{seriesName:ae,name:he,value:fe,data:Ie}=Q||{};return Z+=Ae(J,{textData:{name:he,value:fe,a:ae,b:he,c:fe||0,...Ie}},{useNewline:!0,useSpace:!0}),Z}},Y.itemStyle={},M&&(Y.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:I,color:A[ne]},{offset:1,color:A[ne]}]}}),T){const Q=T.split(",");if(Q!=null&&Q.length){const Z=[];for(const J of Q){const ae=parseFloat(J);isNaN(ae)||Z.push(ae)}Y.itemStyle.borderRadius=Z}}$.push(Y)}return $}),d=o.ref([]),h=o.ref(!1),m=o.computed(()=>{const M=e.yAxisLabelFormatter,A=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:T}=I||{};T&&T.length&&(s.value=T[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;a.value=!0,(I=c.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{const T=I.length;let N="",U=e.tooltipFormatter;U===""&&(U="{marker} {a} {c}");for(let $=0;$<T;$++){const{marker:ne,seriesName:Y,name:Q,value:Z,data:J}=I[$]||{};if($===0){let ae=Q;typeof Q=="string"&&Q[0]==="0"&&!isNaN(+Q)&&(ae=(+Q).toString()),N+=`${Je(A,ae)}<br/>`}N+=Ae(U,{textData:{marker:ne,name:Q,value:Z,a:Y,b:Q,c:Z||0,...J}},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(f).map((I,T)=>({name:I.name,itemStyle:{color:e.colors[T]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:o.unref(p),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),Je(A,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?o.unref(d):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(I){return Je(M,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:o.unref(x)}}),{pageMode:g}=o.inject(ze,{pageMode:"normal"}),v=()=>{a.value=!1},E=(M=[],A=!1)=>{let I={};if(e.dataFieldConfigType==="key"){const T=A?e.keyTypeDataFieldNames:null;I=pt(M,T)}else if(e.dataFieldConfigType==="value"){const T=A?e.valueTypeDataFieldNames:null;I=Dt(M,T)}f.value=I.dataset,d.value=I.dimensions},b=(M=[],A,I=!1)=>{const N=pt(M,I?A:null,!0);f.value=N.dataset,d.value=N.dimensions},p=o.computed(()=>o.unref(d).map(M=>{let A={};return M&&typeof M=="object"?A={...M}:A={value:M},A}));o.watch(()=>[e.data,e.labelFormatter],([M])=>{(e.dataType==="static"||o.unref(g)==="design")&&E(M)},{immediate:!0,deep:!0});const y=Fe(e),k=async()=>{var M,A;try{h.value=!0;const I=await y();E((A=(M=I==null?void 0:I.data)==null?void 0:M.data)==null?void 0:A.rows,!0)}catch(I){console.error(I)}finally{h.value=!1}},C=it(e),R=async()=>{var M;try{h.value=!0;const A=await C(),{columns:I=[],rows:T=[]}=((M=A==null?void 0:A.data)==null?void 0:M.data)??{};let N;I.length>0&&(N={name:I[0],types:I.slice(1).map(U=>({label:U,value:U}))}),b(T,N,!0)}catch(A){console.error(A)}finally{h.value=!1}},{loadedData:L}=o.inject(gt,{loadedData:{}}),z=o.ref(!1);o.watch(L,M=>{if(e.dataType==="indicator"){const A=Zt(e.graphicConfig);A!=null&&A.length&&(!o.unref(z)&&Xe(e.graphicConfig,M)?(z.value=!0,B()):Xe(e.graphicConfig,M)||(z.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(L))&&R();break;case"request":k();break}},w=(M,A)=>!!o.unref(s)[A.value].value.includes(M),_=async()=>{r.value=!1;const M=t.value.chart.getOption();for(let A=0;A<7;A++)await S(M,A)},S=(M,A)=>new Promise(I=>{setTimeout(()=>{const{series:T,color:N,xAxis:U}=M,$=t.value.chart,{splitArea:ne={}}=U[0]||{};T.forEach((Y,Q)=>{const Z=Y.data;let J="";A%2?J=N[Q]+"a8":J=N[Q],Z[i.value].itemStyle={color:J}}),A%2?(ne.show=!0,ne.areaStyle.color=o.unref(s).map((Y,Q)=>Q===i.value?"#ff003b26":"")):ne.show=!1,$.setOption({series:T,xAxis:U}),I()},200)});n({refreshData:B});const D=we(e),{getGlobalModel:F,setGlobalModel:O}=o.inject(Ce,{getGlobalModel:M=>{},setGlobalModel:(M,A)=>{}}),P=D("click",M=>{const A=F(e.id);O(e.id,{...A,RECORD:M.data})}),{setRequest:H}=o.inject(Oe,{setRequest:M=>{}});return typeof H=="function"&&H({id:e.id,requestFn:B,sortNum:e.requestSort}),_e(e,{refreshData:B,click:P,resetRecord:()=>{const M=e.id,A=F(M);O(M,{...A,RECORD:""})}}),{option:m,style:l,refreshData:B,click:P,loading:h,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:_,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s}}}),I1="",R1="",sf=e=>(o.pushScopeId("data-v-c6009d35"),e=e(),o.popScopeId(),e),cf={class:"location-wrap"},ff=sf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function df(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),x=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{class:"ecan-bar",style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",cf,[ff,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Ki=ge(ue(lf,[["render",df],["__scopeId","data-v-c6009d35"]])),la={...ve,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:""},sa=me(la),Qi=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent]);const uf=o.defineComponent({name:"EcanScatter",props:{...sa},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e){const n=o.ref(!1),t=pe(e),a=o.ref([]),r=o.ref(),i=o.computed(()=>n.value?at:12),s=o.computed(()=>{const y=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var C;n.value=!0,(C=r.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(C){return typeof C=="string"&&C[0]==="0"&&!isNaN(+C)&&(C=(+C).toString()),Je(y,C)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(C){return Je(k,C)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(C){var _;const{marker:R,seriesName:L}=C,z=((_=C==null?void 0:C.data)==null?void 0:_.record)??{},{name:B,value:w}=z;return Ae(e.tooltipFormatter,{textData:{marker:R,seriesName:L,a:L,b:B,c:w,...z}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:o.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:l,setGlobalModel:f}=o.inject(Ce,{getGlobalModel:y=>{},setGlobalModel:(y,k)=>{}}),{pageMode:c}=o.inject(ze,{pageMode:"normal"}),u=(y=[],k)=>{const{name:C="name",value:R="value"}=k||{};a.value=y.map(L=>({value:[L[C],L[R]],record:L}))};o.watch(()=>e.data,y=>{(e.dataType==="static"||o.unref(c)==="design")&&u(y)},{immediate:!0,deep:!0});const x=o.ref(!1),d=Fe(e),h=async()=>{var y,k;if(e.dataType==="request"){x.value=!0;try{const C=await d();u((k=(y=C==null?void 0:C.data)==null?void 0:y.data)==null?void 0:k.rows,e.dataFieldNames)}catch(C){console.error(C)}finally{x.value=!1}}},m=()=>{n.value=!1},v=we(e)("click",y=>{const k=e.id,C=l(k);f(k,{...C,RECORD:y==null?void 0:y.data})});_e(e,{refreshData:()=>{h()},click:v,resetRecord:()=>{const y=e.id,k=l(y);f(y,{...k,RECORD:""})}});const{setRequest:p}=o.inject(Oe,{setRequest:y=>{}});return typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:t,click:v,loading:x,onClose:m,ecanModal:r}}}),L1="";function hf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Xi=ge(ue(uf,[["render",hf]])),ca={...ve,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},fa=me(ca),gf=o.defineComponent({name:"EcanCustomGraph",props:{...fa},components:{Echarts:ut},setup(e){const n=pe(e),t=o.ref();return o.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:I0}}});function mf(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const Ji=ge(ue(gf,[["render",mf]])),da={...ve,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:""},ua=me(da),e0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,ct.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent]);const xf=o.defineComponent({name:"EcanComboGraph",props:{...ua},components:{Spin:_t,Echarts:ut,EcanModal:vt,AModal:ie.Modal},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=o.ref(!1),i=o.ref(null),s=o.ref([]),l=pe(e),f=o.ref([]),c=o.ref([]),u=o.ref(),x=o.ref([]),d=o.computed(()=>a.value?at:12),h=o.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const A=t.value.chart.getOption(),{xAxis:I}=A||{};I&&I.length&&(s.value=I[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var A;a.value=!0,(A=u.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(x).map((A,I)=>({name:A.name,itemStyle:{color:e.colors[I]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:A=>{const I=A.length;let T="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const U=e.seriesTypes;for(let $=0;$<I;$++){const ne=U[$],{tooltipFormatter:Y}=ne||{},{marker:Q,seriesName:Z,name:J,value:ae,data:he}=A[$]||{};if($===0){let fe=J;typeof J=="string"&&J[0]==="0"&&!isNaN(+J)&&(fe=(+J).toString()),T+=`${Je(e.xAxisLabelFormatter,fe)}<br/>`}T+=Ae(Y||N,{textData:{marker:Q,name:J,value:ae,seriesName:Z,a:Z,b:J,c:ae||0,...he}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:o.unref(c).map(A=>{let I={};return A&&typeof A=="object"?I={...A}:I={value:A},I}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(A){return typeof A=="string"&&A[0]==="0"&&!isNaN(+A)&&(A=(+A).toString()),Je(e.xAxisLabelFormatter,A)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:o.unref(p),series:o.unref(f)})),{pageMode:m}=o.inject(ze,{pageMode:"normal"}),g=()=>{a.value=!1},v=(A=[],I=!1)=>{let T;if(e.dataFieldConfigType==="key"){const U=I?e.keyTypeDataFieldNames:null;T=pt(A,U)}else if(e.dataFieldConfigType==="value"){const U=I?e.valueTypeDataFieldNames:null;T=Dt(A,U)}c.value=T.dimensions;const N=T.dataset;x.value=T.dataset,f.value=b(N)},E=(A=[],I,T=!1)=>{const U=pt(A,T?I:null,!0);c.value=U.dimensions;const $=U.dataset;x.value=U.dataset,f.value=b($)};function b(A){const I=[],T=A.length,N=e.seriesTypes;for(let U=0;U<T;U++){const $=N[U],{type:ne,axisIndex:Y}=$||{};let Q={type:ne,yAxisIndex:Y,...A[U]};if(ne==="line"){const Z={};e.shadowColor&&(Z.shadowColor=e.shadowColor,Z.shadowBlur=e.shadowBlur,Z.shadowOffsetY=e.shadowOffsetY,Z.shadowOffsetX=e.shadowOffsetX),Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Z}}}if(ne==="bar"){const{gradientShow:Z,gradientColors:J,gradientOffset:ae}=e,he={};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const Ie=[];for(const He of fe){const qe=parseFloat(He);isNaN(qe)||Ie.push(qe)}he.borderRadius=Ie}}Z&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:ae,color:J[U]},{offset:1,color:J[U]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:he}}I.push(Q)}return I}o.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter],([A])=>{(e.dataType==="static"||o.unref(m)==="design")&&v(A)},{immediate:!0,deep:!0});const p=o.computed(()=>{const A=e.yAxis;return A==null?void 0:A.map(I=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(T){return Je(I.axisLabelFormatter,T)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),y=o.ref(!1),k=Fe(e),C=async()=>{var A,I;if(e.dataType==="request")try{y.value=!0;const T=await k();v((I=(A=T==null?void 0:T.data)==null?void 0:A.data)==null?void 0:I.rows,!0)}catch(T){console.error(T)}finally{y.value=!1}},R=it(e),L=async()=>{var A;try{y.value=!0;const I=await R(),{columns:T=[],rows:N=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};let U;T.length>0&&(U={name:T[0],types:T.slice(1).map($=>({label:$,value:$}))}),E(N,U,!0)}catch(I){console.error(I)}finally{y.value=!1}},{loadedData:z}=o.inject(gt,{loadedData:{}}),B=o.ref(!1);o.watch(z,A=>{if(e.dataType==="indicator"){const I=Zt(e.graphicConfig);I!=null&&I.length&&(!o.unref(B)&&Xe(e.graphicConfig,A)?(B.value=!0,w()):Xe(e.graphicConfig,A)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(z))&&L();break;case"request":C();break}},_=(A,I)=>!!o.unref(s)[I.value].value.includes(A),S=async()=>{r.value=!1;const A=t.value.chart.getOption();for(let I=0;I<7;I++)await D(A,I)},D=(A,I)=>new Promise(T=>{setTimeout(()=>{const{series:N,color:U,xAxis:$}=A,ne=t.value.chart,{splitArea:Y={}}=$[0]||{};N.forEach((Q,Z)=>{const J=Q.data;let ae="";I%2?ae=U[Z]+"a8":ae=U[Z],J[i.value].itemStyle={color:ae}}),I%2?(Y.show=!0,Y.areaStyle.color=o.unref(s).map((Q,Z)=>Z===i.value?"#ff003b26":"")):Y.show=!1,ne.setOption({series:N,xAxis:$}),T()},200)});n({refreshData:w});const F=we(e),{getGlobalModel:O,setGlobalModel:P}=o.inject(Ce,{getGlobalModel:A=>{},setGlobalModel:(A,I)=>{}}),H=F("click",A=>{const I=O(e.id);P(e.id,{...I,RECORD:A==null?void 0:A.data})}),{setRequest:j}=o.inject(Oe,{setRequest:A=>{}});return typeof j=="function"&&j({id:e.id,requestFn:w,sortNum:e.requestSort}),_e(e,{resetRecord:()=>{const A=e.id,I=O(A);P(A,{...I,RECORD:""})},refreshData:w,click:H}),{style:l,option:h,click:H,loading:y,onClose:g,ecanModal:u,echartRef:t,handleLocationOk:S,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:s}}}),F1="",M1="",yf=e=>(o.pushScopeId("data-v-3560d511"),e=e(),o.popScopeId(),e),pf={class:"location-wrap"},bf=yf(()=>o.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function vf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal"),c=o.resolveComponent("a-select-option"),u=o.resolveComponent("a-select"),x=o.resolveComponent("a-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),o.createVNode(x,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=d=>e.locationVisible=d),title:"快速定位",onOk:e.handleLocationOk},{default:o.withCtx(()=>[o.createElementVNode("div",pf,[bf,o.createVNode(u,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=d=>e.locationValue=d),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.locationNames,(d,h)=>(o.openBlock(),o.createBlock(c,{key:h,value:h},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const t0=ge(ue(xf,[["render",vf],["__scopeId","data-v-3560d511"]])),ha={...ve,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:""},ga=me(ha),n0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Sf=o.defineComponent({name:"EcanRadar",props:{...ga},components:{Spin:_t,Echarts:ut,EcanModal:vt},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=pe(e),i=o.ref([]),s=o.ref(),l=o.computed(()=>a.value?at:12),f=o.ref({});let c;const u=o.ref([]),x=o.ref(e.valueTypeDataFieldNames.name),d=o.computed(()=>{const O=o.unref(u),P=O.length,H=[];for(let j=0;j<P;j++){const{name:M,data:A=[]}=O[j],I=[{name:M,value:A.map(N=>N.value)}],T={type:"radar",name:M,data:I,areaStyle:{color:e.colors[j],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow}};H.push(T)}return H}),h=o.computed(()=>{var M,A;const O=[],P={},H=o.unref(u),j=H.length;for(let I=0;I<j;I++){const{data:T=[]}=H[I];if(T!=null&&T.length)for(let N=0;N<T.length;N++)P[T[N][x.value]]?P[T[N][x.value]].push(T[N].value):P[T[N][x.value]]=[T[N].value]}if((M=i.value)!=null&&M.length)for(const I of i.value)O.push({name:I,max:(A=P[I])!=null&&A.length?Math.max(...P[I])*1.2:0});return O}),m=o.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;a.value=!0,(O=s.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ie.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:O=>{var j;let P="",H=e.tooltipFormatter;c=(j=O[0])==null?void 0:j.data,H===""&&(H="{marker} {a} {c}");for(let M=0;M<o.unref(h).length;M++){const A=o.unref(h)[M],{marker:I,seriesName:T,value:N}=O||{};M===0&&T&&(P+=`${T}<br/>`),P+=Ae(H,{textData:{marker:I,name:A.name,value:N[M],a:A.name,b:A.name,c:N[M]||0,type:T}},{useNewline:!0,useSpace:!0}),P+="<br/>"}return P},position:e.tooltipPosition||void 0},radar:{indicator:o.unref(h),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?at:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:o.unref(u).map(O=>({name:O.name,icon:e.legendType}))},series:o.unref(d)})),g=()=>{a.value=!1},{getGlobalModel:v,setGlobalModel:E}=o.inject(Ce,{getGlobalModel:O=>{},setGlobalModel:(O,P)=>{}}),{pageMode:b}=o.inject(ze,{pageMode:"normal"}),p=(O=[],P=!1)=>{let H;if(e.dataFieldConfigType==="key"){const j=P?e.keyTypeDataFieldNames:null;H=pt(O,j)}else if(e.dataFieldConfigType==="value"){const j=P?e.valueTypeDataFieldNames:null;H=Dt(O,j)}i.value=H.dimensions,u.value=H.dataset},y=(O=[],P,H=!1)=>{const M=pt(O,H?P:null,!0);i.value=M.dimensions,u.value=M.dataset};o.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([O])=>{(e.dataType==="static"||o.unref(b)==="design")&&p(O)},{immediate:!0,deep:!0});const k=o.ref(!1),C=Fe(e),R=async()=>{var O,P;if(e.dataType==="request")try{k.value=!0;const H=await C();p((P=(O=H==null?void 0:H.data)==null?void 0:O.data)==null?void 0:P.rows,!0)}catch(H){console.error(H)}finally{k.value=!1}},z=we(e)("click",O=>{const P=v(e.id);E(e.id,{...P,RECORD:e.tooltipShow?c:O.data})}),B=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&z()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=z;const w=it(e),_=async()=>{var O;try{k.value=!0;const P=await w(),{columns:H=[],rows:j=[]}=((O=P==null?void 0:P.data)==null?void 0:O.data)??{};let M;H.length>0&&(x.value=H[0],M={name:H[0],types:H.slice(1).map(A=>({label:A,value:A}))}),y(j,M,!0)}catch(P){console.error(P)}finally{k.value=!1}},S=()=>{switch(e.dataType){case"indicator":_();break;case"request":R();break}};_e(e,{refreshData:S,resetRecord:()=>{const O=e.id,P=v(O);E(O,{...P,RECORD:""})},click:z});const{setRequest:F}=o.inject(Oe,{setRequest:O=>{}});return typeof F=="function"&&F({id:e.id,requestFn:S,sortNum:e.requestSort}),n({refreshData:S}),{option:m,style:r,click:z,loading:k,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),H1="";function Cf(e,n,t,a,r,i){const s=o.resolveComponent("echarts"),l=o.resolveComponent("spin"),f=o.resolveComponent("ecan-modal");return o.openBlock(),o.createElementBlock("div",{style:o.normalizeStyle(e.style)},[o.createVNode(l,{spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,o.mergeProps({ref:"echartRef",option:e.option,autoresize:""},o.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),o.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:o.withCtx(()=>[o.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:o.withCtx(()=>[o.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const o0=ge(ue(Sf,[["render",Cf]])),wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",ma={...ve,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},xa=me(ma),a0=["click"],Bf=o.defineComponent({name:"EcanBorder",props:{...xa},setup(e){const n=pe(e,["background"]),t=o.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:v,gradientOffset:E,gradientAngle:b,backgroundColor:p}=e;if(g){let y=v;return m&&(y="transparent"),y?{background:`linear-gradient(${b}, ${p}, ${y} ${E*100}%)`}:{}}else return{}}),a=o.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=o.inject(ze,{theme:"light"}),i=o.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":wf,"../../assets/border-title-decoration-left2.png":Af})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=o.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":kf,"../../assets/border-title-decoration-right2.png":Tf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=o.computed(()=>({width:"100%",height:"100%"})),c=o.computed(()=>{const{borderRadius:m}=e,g=[],v={};if(m){const E=m.split(",");for(const b of E)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(v.borderRadius=g.join(" ")),v}),x=we(e)("click",()=>{}),d=o.ref([]);o.watch(()=>e.data,m=>{d.value=m},{immediate:!0,deep:!0}),_e(e,{click:x});const{setGlobalModel:h}=o.inject(Ce,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:d}),{style:n,gradientStyle:t,click:x,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),V1="",St=e=>(o.pushScopeId("data-v-8dd53b8f"),e=e(),o.popScopeId(),e),Ef=["id"],_f=St(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),Df=St(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),If=St(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=St(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Of={class:"title-item"},Lf=["src"],Nf={class:"title"},zf=["src"],Ff=St(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),Mf=St(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pf=St(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=St(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),qf={key:2,class:"left-title"},Vf={class:"title"};function jf(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",{class:"ecan-border",style:o.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"no-title",style:o.normalizeStyle(e.borderStyle)},[e.useBorderModify?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[_f,Df,If,Rf],64)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),e.mode==="top-title"?(o.openBlock(),o.createElementBlock("div",{key:1,class:"top-title",style:o.normalizeStyle(e.borderStyle)},[o.createElementVNode("div",{class:o.normalizeClass(["title-item-wrapper",e.titleMode])},[o.createElementVNode("div",Of,[o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Lf),o.createElementVNode("div",Nf,o.toDisplayString(e.title),1),o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,zf)])],2),Ff,Mf,Pf,Hf],4)):o.createCommentVNode("",!0),e.mode==="left-title"?(o.openBlock(),o.createElementBlock("div",qf,[o.createElementVNode("div",Vf,[o.createElementVNode("span",null,o.toDisplayString(e.title),1)])])):o.createCommentVNode("",!0)],12,Ef)}const r0=ge(ue(Bf,[["render",jf],["__scopeId","data-v-8dd53b8f"]])),ya={...ve,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},pa=me(ya),i0=["tabChange"],Gf=o.defineComponent({name:"EcanTabs",props:{...pa},components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},setup(e){const n=pe(e),t=o.ref(0);o.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=o.inject(ze,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(o.unref(s))?o.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const m=o.unref(t)+1;m<=h?t.value=m:t.value=0,l.value=o.unref(s)[o.unref(t)],x()},e.autoSwitchInterval*1e3))};o.onMounted(()=>{o.unref(a)!=="design"&&i()}),o.onBeforeUnmount(()=>{clearInterval(r)});const s=o.ref([]),l=o.ref({});o.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const f=h=>t.value===h,c=we(e),{setGlobalModel:u}=o.inject(Ce,{setGlobalModel:(h,m)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:x}=o.inject(Ut,{emitRefreshPage:()=>{}}),d=c("tabChange",(h,m)=>{m!==o.unref(t)&&(l.value=h,t.value=m,x())});return _e(e,{tabChange:d}),{style:n,activeKey:t,isActive:f,tabChange:d,myData:s,useImagePath:bt}}}),G1="",Wf=["id"],Uf=["onClick"];function $f(e,n,t,a,r,i){const s=o.resolveComponent("a-select-option"),l=o.resolveComponent("a-select");return o.openBlock(),o.createElementBlock("div",{class:"ecan-tabs",style:o.normalizeStyle(e.style),id:"container_"+e.id},[o.createElementVNode("div",{class:"tabs-header",style:o.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createElementBlock("div",{class:"tab",style:o.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:c,onClick:o.withModifiers(u=>e.tabChange(f,c),["prevent","stop"])},[o.createElementVNode("div",{class:"tab-inner",style:o.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},o.toDisplayString(f.title),5)],12,Uf))),128)):e.tabType==="select"?(o.openBlock(),o.createBlock(l,{key:1,value:e.activeKey,style:o.normalizeStyle({width:e.tabWidth})},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.myData,(f,c)=>(o.openBlock(),o.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(f,c)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):o.createCommentVNode("",!0)],4)],12,Wf)}const l0=ge(ue(Gf,[["render",$f],["__scopeId","data-v-fbab260a"]])),ba={...ve,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},va=me(ba),s0=["click"],Zf=o.defineComponent({name:"EcanImage",props:{...va},setup(e){const n=pe(e),t=o.computed(()=>bt(e.imgUrl)),{pageMode:a}=o.inject(ze,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=o.inject(Ce,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=we(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=si(o.unref(a),c),x=e.href;let d=x||u;d=Ae(d);const h=e.target;h&&(h!=="event"?window.open(d,"_"+h):window.parent.postMessage({type:"openPage",url:x},"*"))});return _e(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),U1="",Yf=["src"];function Kf(e,n,t,a,r,i){return e.myImgUrl!==""?(o.openBlock(),o.createElementBlock("img",{key:0,style:o.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Yf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"image-placeholder",style:o.normalizeStyle(e.style)}," 请上传图片 ",4))}const c0=ge(ue(Zf,[["render",Kf],["__scopeId","data-v-3665dde7"]])),Sa={...ve,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ca=me(Sa),Qf=o.defineComponent({name:"EcanIframe",props:{...Ca},setup(e){const n=pe(e),{contextRequestUrl:t}=o.inject(ze,{contextRequestUrl:""}),a=o.computed(()=>{let r=Ae(e.link);if(e.linkType==="erd"&&r!=null){let i=o.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Kl||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:a}}}),Z1="",Xf=["src"];function Jf(e,n,t,a,r,i){return e.myLink?(o.openBlock(),o.createElementBlock("iframe",{key:0,src:e.myLink,style:o.normalizeStyle(e.style)},null,12,Xf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"iframe-placeholder",style:o.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const f0=ge(ue(Qf,[["render",Jf],["__scopeId","data-v-19bc100c"]])),wa={...ve,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Aa=me(wa),d0=["click","refreshData","resetRecord","exportTableData"],ka=o.defineComponent({name:"EcanTable",components:{Skeleton:en,AButton:ie.Button,AInput:ie.Input,ACheckboxGroup:ie.CheckboxGroup,ATable:ie.Table,ATableSummary:ie.TableSummary,ATableSummaryRow:ie.TableSummaryRow,ATableSummaryCell:ie.TableSummaryCell},props:{...Aa},setup(e,{expose:n}){const t=o.ref(!1),a=o.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=o.ref(),i=o.ref(!1),s=pe(e),l=o.ref([]),f=o.computed(()=>e.scrollX),c=o.ref(0),u=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};o.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&o.nextTick(()=>{let W=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),te=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),oe=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ee=0;if(te&&(W-=(te==null?void 0:te.clientHeight)||0),oe&&e.isSummaryFixed&&(ee=(oe==null?void 0:oe.clientHeight)||0,W-=ee),e.paginationShow){let X=0;X=u(),X&&(W-=X)}(K==null?void 0:K.clientHeight)>W?c.value=W:c.value=0,o.nextTick(()=>{if(ee){const X=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(X==null?void 0:X.clientHeight)||0;ee!==de&&o.unref(c)&&(c.value=W+ee-de)}})})});const x=o.ref([]),d=o.ref([]),h=o.ref([]),m=o.ref([]),g=o.ref(0),v=o.ref(1),E=o.ref(e.paginationPageSize||10),b=o.reactive([]),p=(V=[])=>{var W,K;if(Array.isArray(V)&&V.length>0){let te=V.length;const oe=e.columnsFixedNum;if(e.dataType==="indicator"&&((W=o.unref(a))!=null&&W.length)){const{graphicConfig:{indicators:ee=[]}}=e;V.forEach((X,de)=>{if(o.unref(a)[de])for(const De in o.unref(a)[de])["dataIndex","title"].includes(De)||(X[De]=o.unref(a)[de][De]);const ye=ee.find(De=>De.label===X.title),{showLabel:xe=""}=ye||{};xe&&(X.title=xe)})}for(let ee=te-1;ee>=0;ee--)(K=V[ee])!=null&&K.isHidden&&V.splice(ee,1);te=V.length;for(let ee=0;ee<te;ee++){const X=V[ee];ee<oe?X.fixed="left":X.fixed=!1;const{cellAlign:de="center",cellColor:ye,dataIndex:xe,title:De,tableFilter:nt,headerCellAlign:lt,headerCellColor:Ea}=X;nt&&(b.push(xe),X.filterOptionsInputValue="",X.filterCheckboxGroupValue=[],X.customFilterDropdown=!0,X.onFilter=(Ct,Yt)=>Yt[xe].toString().toLowerCase().includes(Ct.toLowerCase())),X.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:lt||"center",color:Ea||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),X.customCell=(Ct,Yt)=>({style:{textAlign:de,color:ye||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:o.unref($)===Yt&&e.clickHighlight},onClick:M("click",()=>{const mn=e.id,_a=A(mn);Ct={dataIndex:xe,title:De,...Ct},I(mn,{..._a,RECORD:Ct})})}),Array.isArray(X.children)&&p(X.children)}}},y=(V=[])=>{var K;let W=Ne.cloneDeep(V);return(K=o.unref(m))!=null&&K.length&&(W=Ne.cloneDeep(o.unref(m))),e.isUseSeq&&W.unshift({title:"序号",dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p(W),W};o.watch(E,()=>{v.value=1,Z(!1)}),o.watch(r,V=>{i.value=!!V}),o.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{x.value=y(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),o.watch(()=>[e.data,e.dataType],([V,W])=>{W==="static"&&(d.value=V)},{immediate:!0});const k=o.ref({}),C=V=>{if(Array.isArray(V)){const W=V.length,K=b,te=K.length,oe={};for(let X=0;X<W;X++){const de=V[X];for(let ye=0;ye<te;ye++){const xe=K[ye];if(oe[xe])oe[xe].add(de[xe]);else{const De=new Set;De.add(de[xe]),oe[xe]=De}}}const ee={};for(const X in oe)if(Object.prototype.hasOwnProperty.call(oe,X)){const de=oe[X],ye=Array.from(de);ee[X]=ye.map(xe=>({label:xe,value:xe}))}k.value=ee}};o.watch(()=>[e.isReverse,x.value,d.value],()=>{const V=o.unref(x),W=o.unref(d);if(C(W),e.isReverse){const{columns:K,dataSource:te}=R(Ne.cloneDeep(V),Ne.cloneDeep(W));h.value=K,l.value=te}else h.value=V,l.value=W},{immediate:!0});const R=(V,W)=>{const K=V[0],te=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ee=0;ee<W.length;ee++){const X=W[ee],de="col"+(ee+1);te.push({title:X[K.dataIndex],dataIndex:de,key:de,align:"center"})}const oe=[];for(let ee=1;ee<V.length;ee++){const X=V[ee],de={col0:X.title};for(let ye=0;ye<W.length;ye++){const xe=W[ye];de[`col${ye+1}`]=xe[X.dataIndex]}oe.push(de)}return{columns:te,dataSource:oe}},L=o.ref(""),z=Fe(e),B=async(V=!0,W={})=>{var K;try{V&&(t.value=!0),o.unref(L)&&(W.orderCondition=o.unref(L)),e.paginationShow&&(W={pageNum:o.unref(v),pageSize:o.unref(E)||"10",layer:"1",...W});const te=await z(W),{rows:oe=[],total:ee=0}=((K=te==null?void 0:te.data)==null?void 0:K.data)||{};if(g.value=ee,Array.isArray(oe)&&(d.value=oe),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:X=[]}=e,de=X.find(ye=>ye.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const ye=oe.filter(xe=>!xe.绩效总额).map(xe=>xe.ORG_NAME);ye!=null&&ye.length&&o.nextTick(()=>{ie.notification.warning({message:"提示",description:`当前时段${ye.join("、")}绩效数据为空`,duration:3})})}}}catch(te){console.error(te)}finally{t.value=!1}},w=({current:V},W,K)=>{if(v.value=V,K&&Object.keys(K).length>0){const{field:te,order:oe}=K,X={ascend:"asc",descend:"desc"}[oe];te!=null&&X!=null&&(L.value=te+" "+X)}Z(!1)},_=o.computed(()=>{const V=e.simple,W=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=te=>`共 ${te} 条数据`),e.paginationShow&&{simple:V,position:W,total:o.unref(g),current:o.unref(v),pageSize:o.unref(E)||"10",showSizeChanger:!1,size:"large",...K}}),S=V=>+V==1?"是":+V==0?"否":V,D=(V,W)=>{const{format:K,retentiondigit:te,customFormatter:oe}=W;if(K==null||K==="")return V;const ee={money:So,percentage:un,contrast:un,boolean:S,decimals:ac,custom:rc};return ee[K]?K==="decimals"?ee[K](V,te)||"":K==="custom"?ee[K](V,oe)||"":ee[K](V)||"":""},F=V=>V==="contrast"?"upDown":"",O=V=>{const{text:W,format:K,declineColor:te="#39cf93",increaseColor:oe="#ff512e"}=V;if(K==="contrast"){const ee={fontSize:e.fontSize},X=parseFloat(W+"");return X>=0?ee.color=oe:X<0&&(ee.color=te),ee}else return{}},P=o.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),H=V=>{const{text:W,declineColor:K="#39cf93",increaseColor:te="#ff512e"}=V,{fontSize:oe}=e,ee=parseFloat(W+""),X={width:oe,verticalAlign:"unset"};return ee>=0?X.filter=`drop-shadow(${te||"#ff512e"} ${oe} -1px)`:ee<0&&(X.filter=`drop-shadow(${K||"#39cf93"} ${oe} -1px)`),X},j=V=>{const W=parseFloat(V+"");if(W>=0)return To;if(W<0)return Bo},M=we(e),{getGlobalModel:A,setGlobalModel:I}=o.inject(Ce,{getGlobalModel:V=>{},setGlobalModel:(V,W)=>{}}),T=(V=[],W=[])=>{const K=V.map(te=>({title:te,dataIndex:te,key:te}));m.value=Ne.cloneDeep(K),x.value=y(K),d.value=W},N=it(e),U=async(V=!0)=>{var W,K,te,oe;try{V&&(t.value=!0);const ee=o.unref(L).split(" "),X=await N({sort:{order:ee[1],field:ee[0]}});T((K=(W=X==null?void 0:X.data)==null?void 0:W.data)==null?void 0:K.columns,(oe=(te=X==null?void 0:X.data)==null?void 0:te.data)==null?void 0:oe.rows)}catch(ee){console.error(ee)}finally{t.value=!1}},$=o.ref(-1),ne=(V,W)=>({onClick:M("rowClick",()=>{const K=e.id,te=A(K);I(K,{...te,RECORD:V}),$.value=W})}),{loadedData:Y}=o.inject(gt,{loadedData:{}}),Q=o.ref(!1);o.watch(Y,V=>{if(e.dataType==="indicator"){const W=Zt(e.graphicConfig);W!=null&&W.length&&(!o.unref(Q)&&Xe(e.graphicConfig,V)?(Q.value=!0,Z()):Xe(e.graphicConfig,V)||(Q.value=!1))}},{deep:!0});const Z=(V=!0)=>{switch(e.dataType){case"request":B(V);break;case"indicator":Xe(e.graphicConfig,o.unref(Y))&&U(V);break}},J=()=>{const V=e.id,W=A(V);I(V,{...W,RECORD:""})},ae=o.computed(()=>{const V=o.unref(h),W=[];let K=0;for(let ee=0;ee<V.length;ee++){const X=V[ee],{isCalcTotal:de}=X;e.isUseSeq&&ee===0?W.push({...X,total:"小计"}):de?(W.push({...X,index:ee,total:0}),K++):W.push({...X})}if(K===0)return[];const te=o.unref(l),oe=he(W);for(let ee=0;ee<oe.length;ee++){const X=oe[ee];let de=0;const{isCalcTotal:ye,dataIndex:xe}=X;if(ye===!0){for(let De=0;De<te.length;De++){const lt=+te[De][xe];isNaN(lt)||(de=new _0.Big(de).add(lt).toNumber())}X.total=de}}return oe});function he(V){var K;const W=[];for(const te of V)(K=te.children)!=null&&K.length?W.push(...he(te.children)):W.push(te);return W}const{setRequest:fe}=o.inject(Oe,{setRequest:V=>{}});typeof fe=="function"&&fe({id:e.id,requestFn:Z,sortNum:e.requestSort}),n({refreshData:Z});const Ie=(V="",W)=>Ae(V,W),He=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},qe=(V,W="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:W},"*")},$e=(V,W)=>{V(W.filterCheckboxGroupValue)},Ze=(V,W)=>{V({confirm:!0}),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[]},et=()=>{},Ee=V=>{const W=V.dataIndex;if(typeof W=="string"){let K=o.unref(k)[W];const te=o.unref(V.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(oe=>typeof oe.label=="string"?oe.label.toLowerCase().includes(te.toLowerCase()):!0),K):[]}return[]},Se=async()=>{var xe,De;const V="EXPORT_KEY";ie.message.loading({key:V,content:"正在导出...",duration:0});let W=[];if(e.dataType==="static")W=e.data;else if(e.dataType==="request"){const nt={layer:"1"};o.unref(L)&&(nt.orderCondition=o.unref(L));const lt=await z(nt);W=((De=(xe=lt==null?void 0:lt.data)==null?void 0:xe.data)==null?void 0:De.rows)||{}}const K=o.unref(h),te=[],oe=[];K==null||K.forEach(nt=>{te.push(nt.dataIndex),oe.push(nt.title)});const ee=W.map(nt=>Ne.pick(nt,te)),X=Vt.utils.book_new(),de=Vt.utils.aoa_to_sheet([oe]),ye=Vt.utils.sheet_add_json(de,ee,{skipHeader:!0,origin:"A2"});Vt.utils.book_append_sheet(X,ye,"sheet"),Vt.writeFile(X,"表格数据.xlsx"),ie.message.success({key:V,content:"导出成功"})},Re=(V,W=2)=>{const K=+V*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(W)};_e(e,{resetRecord:J,refreshData:Z,exportTableData:Se});const je=(V,W)=>{let K=null;return e.stripedShow&&(K=W%2===1?"table-striped":null),K},tt=o.computed(()=>{let V=0;const{height:W,isPageBottom:K}=e;return K&&W&&(V=parseFloat(W)-u()),V?V+"px":"100%"}),Me=o.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ve=o.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V});return{x:f,y:c,style:s,customRow:ne,pagination:_,formatFn:D,contrastClass:F,tableChange:w,summaryList:ae,loading:t,onTouchHrefEvent:qe,handleHref:Ie,handleHrefTarget:He,useRowIndex:$,tableColumns:h,tableDataSource:l,useFilterOptions:Ee,useSetSelectedKeys:$e,onResetFilter:Ze,onSearchFilterOptions:et,exportTableData:Se,handleProgressText:Re,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:je,tableHeight:tt,tableHeaderBgColor:Me,tableBodyBgColor:Ve,getChgStyle:O,chgBoxStyle:P,getChgBoxImgStyle:H,getChgBoxImgSrc:j}}}),u0=()=>{o.useCssVars(e=>({"76f57d52":e.stripedColor,"1d24d104":e.paginationBgColor,"06fb88c3":e.paginationColor,"30a2d998":e.activePaginationBgColor,"76ee895d":e.activePaginationColor,"12886d5f":e.hoverBackgroundColor,"0ef4c2ee":e.tableHeaderBgColor,"090eb858":e.tableBodyBgColor}))},h0=ka.setup;ka.setup=h0?(e,n)=>(u0(),h0(e,n)):u0;const K1="",Q1="",ed=e=>(o.pushScopeId("data-v-0c460f27"),e=e(),o.popScopeId(),e),td=["id"],nd={key:0,class:"table-tool"},od=o.createTextVNode("导出数据"),ad=o.createTextVNode(" 搜索 "),rd=o.createTextVNode(" 重置 "),id={key:0},ld={key:1,class:"action-list"},sd=["href","target","onClick"],cd={key:2,class:"progress-cell"},fd={key:0},dd=["src"],ud={key:1},hd=["src"],gd={class:"ant-pagination-options-quick-jumper"},md=ed(()=>o.createElementVNode("span",null,"条 / 页",-1));function xd(e,n,t,a,r,i){const s=o.resolveComponent("a-button"),l=o.resolveComponent("a-input"),f=o.resolveComponent("a-checkbox-group"),c=o.resolveComponent("a-table-summary-cell"),u=o.resolveComponent("a-table-summary-row"),x=o.resolveComponent("a-table-summary"),d=o.resolveComponent("a-table"),h=o.resolveComponent("skeleton");return o.openBlock(),o.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:o.normalizeStyle(e.style)},[o.createVNode(h,{loading:e.loading},{default:o.withCtx(()=>{var m;return[e.isUseExport?(o.openBlock(),o.createElementBlock("div",nd,[o.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:o.withCtx(()=>[od]),_:1},8,["onClick"])])):o.createCommentVNode("",!0),o.createVNode(d,{ref:"tableRef",class:"table",style:o.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:o.withCtx(({column:g,selectedKeys:v,setSelectedKeys:E,confirm:b,clearFilters:p})=>[o.createElementVNode("div",{class:"ecan-table-filter",style:o.normalizeStyle({height:e.filterDropdownHeight})},[o.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":y=>g.filterOptionsInputValue=y,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),o.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":y=>g.filterCheckboxGroupValue=y,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:y=>e.useSetSelectedKeys(E,g)},null,8,["value","onUpdate:value","options","onChange"]),o.createElementVNode("div",null,[o.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:o.withCtx(()=>[ad]),_:2},1032,["onClick"]),o.createVNode(s,{size:"small",style:{width:"90px"},onClick:o.withModifiers(y=>e.onResetFilter(p,g),["stop"])},{default:o.withCtx(()=>[rd]),_:2},1032,["onClick"])])],4)]),bodyCell:o.withCtx(({column:g,index:v,text:E,record:b})=>{var p,y;return[g.dataIndex==="SEQ"?(o.openBlock(),o.createElementBlock("span",id,o.toDisplayString(v+1),1)):g.dataIndex==="ACTION"?(o.openBlock(),o.createElementBlock("div",ld,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.actionList,(k,C)=>(o.openBlock(),o.createElementBlock("div",{class:"action",key:C},[o.createElementVNode("a",{href:e.handleHref(k.href,b),target:e.handleHrefTarget(k.target),style:o.normalizeStyle({color:k.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:R=>e.onTouchHrefEvent(k.target,e.handleHref(k.href,b))},o.toDisplayString(k.title),13,sd)]))),128))])):g.format==="progress"?(o.openBlock(),o.createElementBlock("div",cd,[o.createElementVNode("div",{class:"progress",style:o.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(E,g.progressTextDecimalPlaces)}%`})},null,4),o.createElementVNode("div",{class:"progress-text",style:o.normalizeStyle({color:+e.handleProgressText(E)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},o.toDisplayString(e.handleProgressText(E,g.progressTextDecimalPlaces))+"% ",5)])):(o.openBlock(),o.createElementBlock("div",{key:3,style:o.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",fd,o.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),1)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle(e.getChgStyle({...g,text:E}))},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:E})),src:e.getChgBoxImgSrc(E)},null,12,dd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(g.format!=null?e.formatFn(E,g):E),1)],6),g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",ud,o.toDisplayString(((y=g==null?void 0:g.customFormatter)==null?void 0:y.split("{value}")[1])||""),1)):o.createCommentVNode("",!0)],4))]}),summary:o.withCtx(()=>[e.summaryList.length>0?(o.openBlock(),o.createBlock(x,{key:0,fixed:e.isSummaryFixed},{default:o.withCtx(()=>[o.createVNode(u,null,{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.summaryList,(g,v)=>(o.openBlock(),o.createBlock(c,{key:v,index:v,style:o.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass([e.contrastClass(g.format)]),style:o.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(e.chgBoxStyle)},[o.createElementVNode("img",{style:o.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,hd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):o.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[o.createElementVNode("div",gd,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[o.vModelText,e.pageSize]]),md])],8,["to"])):o.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,td)}const g0=ge(ue(ka,[["render",xd],["__scopeId","data-v-0c460f27"]])),Ta={...ve,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Ba=me(Ta),m0=["click"];Ge.use([At.CanvasRenderer,ct.MapChart,ct.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const yd=o.defineComponent({name:"EcanMap",components:{Echarts:ut},props:{...Ba},setup(e){const n=Fe(e),t=Fe({...e.tooltipRequestData,requestHeaders:{}}),a=o.ref(),r=o.ref(""),i=o.ref(""),s=pe(e,["backgroundImage"]),l=o.ref(),f=o.computed(()=>bt(e.geoBackgroundImage)),c=o.computed(()=>bt(e.backgroundImage)),u=o.computed(()=>e.geoBackgroundImage?{image:o.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),x=o.computed(()=>{const S=e.symbolImage;return e.symbolImage?"image://"+bt(S):"circle"}),d=S=>{let D=e.tooltipFormatter;const F=D.match(/\{(.+?)\}/g);if(F==null||F.length===0)return D;for(let O=0;O<F.length;O++){const P=F[O];let H=P.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,M=H.match(j);for(let A=0;A<M.length;A++){const I=M[A],T=S[I];T!=null&&(H=H.replace(I,T))}D=D.replace(P,H)}return D.split(`
|
|
118
|
+
`)},h=o.ref(!1),m=o.ref("");let g=new AbortController;const v=(S,D)=>{const F=g.signal;h.value=!0,r.value=S,t({name:S,signal:F}).then(O=>{var P,H;if(O){const j=((H=(P=O==null?void 0:O.data)==null?void 0:P.data)==null?void 0:H.rows)||[];let M="";for(const A of j){const I=d(A)||[];if(I!=null&&I.length)for(const T of I)M+=`<div style="word-break: break-all;white-space: normal;">${T}</div>`}M=`<div style="max-width:200px;">${M}</div>`,i.value=M,D(o.unref(m),M)}else F.aborted?i.value="Loading":i.value=S,D(o.unref(m),i.value);h.value=!1})},E=o.computed(()=>{const S=e.geoCenter;let D;return typeof S=="string"&&S!==""&&(D=S.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:o.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:D,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(F,O,P)=>{m.value=O;const{name:H=""}=F,{requestUrl:j}=e.tooltipRequestData;if(!j)return H;if(o.unref(h))o.unref(r)!==H&&(g.abort(),g=new AbortController);else{if(o.unref(r)===H)return o.unref(i);v(H,P)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:o.unref(u),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:o.unref(x),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=o.ref(!1),p=async()=>{var F;b.value=!1;const S=e.mapJson,D=`map-${e.id}`;if(S!=null&&S.path){const O=await st(((F=window==null?void 0:window.config)==null?void 0:F.uploadPath)+S.path);Ge.registerMap(D,(O==null?void 0:O.data)||{})}else Ge.registerMap(D,{});b.value=!0};o.watch(()=>e.mapJson,()=>{p()},{immediate:!0,deep:!0});const y=async()=>{var S,D;if(e.dataType==="request"){b.value=!1;try{const F=await n(),O=((D=(S=F==null?void 0:F.data)==null?void 0:S.data)==null?void 0:D.rows)||{},P=`map-${e.id}`;if(O!=null&&O.path){const H=await st(O.path);Ge.registerMap(P,(H==null?void 0:H.data)||{})}else Ge.registerMap(P,{})}catch(F){console.error(F)}finally{b.value=!0}}},k=()=>{switch(e.dataType){case"request":y();break}},{getGlobalModel:C,setGlobalModel:R}=o.inject(Ce,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}}),z=we(e)("click",()=>{const S=C(e.id);R(e.id,{...S,RECORD:o.unref(a)})});_e(e,{refreshData:k});const{setRequest:B}=o.inject(Oe,{setRequest:S=>{}});return typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{o.unref(a)&&z()},onMouseOver:(S={})=>{S.componentType==="geo"&&S.region?a.value=S.region:a.value=null}}}}),J1="",pd=["src"];function bd(e,n,t,a,r,i){const s=o.resolveComponent("echarts");return o.openBlock(),o.createElementBlock("div",{class:"ecan-map",style:o.normalizeStyle(e.style)},[e.isLoadedData?(o.openBlock(),o.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,pd),[[o.vShow,!1]])],4)}const x0=ge(ue(yd,[["render",bd],["__scopeId","data-v-10f150ac"]])),y0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Ki,EcanBorder:r0,EcanButton:Li,EcanCheckbox:zi,EcanComboGraph:t0,EcanCustomGraph:Ji,EcanDatePicker:Bi,EcanIframe:f0,EcanImage:c0,EcanInput:wi,EcanLine:Zi,EcanList:bi,EcanMap:x0,EcanModal:vt,EcanPageConfig:ci,EcanPie:Ui,EcanProportion:Si,EcanProviderConfig:fi,EcanRadar:o0,EcanRadio:Vi,EcanRangePicker:Ri,EcanScatter:Xi,EcanScrollText:mi,EcanSelect:Mi,EcanTable:g0,EcanTabs:l0,EcanText:gi,EcanTimeDisplay:yi,EcanTreeSelect:Hi,barComponentProps:ia,barEvents:Yi,barProps:ra,borderComponentProps:xa,borderEvents:a0,borderProps:ma,buttonComponentProps:Go,buttonEvents:Oi,buttonProps:jo,checkboxComponentProps:Uo,checkboxEvents:Ni,checkboxProps:Wo,comboGraphComponentProps:ua,comboGraphEvents:e0,comboGraphProps:da,customGraphComponentProps:fa,customGraphProps:ca,datePickerComponentProps:Mo,datePickerEvents:Ai,datePickerProps:Fo,iframeComponentProps:Ca,iframeProps:Sa,imageComponentProps:va,imageEvents:s0,imageProps:ba,inputComponentProps:zo,inputEvents:Ci,inputProps:No,lineComponentProps:aa,lineEvents:$i,lineProps:oa,listComponentProps:Ro,listEvents:pi,listProps:Io,mapComponentProps:Ba,mapEvents:m0,mapProps:Ta,modalComponentProps:na,modalEvents:Gi,modalProps:ta,pageConfig:_n,pageConfigComponentProps:Dn,pieComponentProps:ea,pieEvents:ji,pieProps:Jo,proportionComponentProps:Lo,proportionEvents:vi,proportionProps:Oo,providerConfig:Co,providerConfigComponentProps:wo,radarComponentProps:ga,radarEvents:n0,radarProps:ha,radioComponentProps:Xo,radioEvents:qi,radioProps:Qo,rangePickerComponentProps:qo,rangePickerEvents:Ei,rangePickerProps:Ho,scatterComponentProps:sa,scatterEvents:Qi,scatterProps:la,selectComponentProps:Zo,selectEvents:Fi,selectProps:$o,tableComponentProps:Aa,tableEvents:d0,tableProps:wa,tabsComponentProps:pa,tabsEvents:i0,tabsProps:ya,textComponentProps:ko,textEvents:di,textProps:Ao,timeDisplayComponentProps:Do,timeDisplayEvents:xi,timeDisplayProps:_o,treeSelectComponentProps:Ko,treeSelectEvents:Pi,treeSelectProps:Yo},Symbol.toStringTag,{value:"Module"})),vd={install:e=>{Object.keys(y0).forEach(n=>{const t=y0[n];t.install&&e.use(t)})}};q.EcanBar=Ki,q.EcanBorder=r0,q.EcanButton=Li,q.EcanCheckbox=zi,q.EcanComboGraph=t0,q.EcanCustomGraph=Ji,q.EcanDatePicker=Bi,q.EcanIframe=f0,q.EcanImage=c0,q.EcanInput=wi,q.EcanLine=Zi,q.EcanList=bi,q.EcanMap=x0,q.EcanModal=vt,q.EcanPageConfig=ci,q.EcanPie=Ui,q.EcanProportion=Si,q.EcanProviderConfig=fi,q.EcanRadar=o0,q.EcanRadio=Vi,q.EcanRangePicker=Ri,q.EcanScatter=Xi,q.EcanScrollText=mi,q.EcanSelect=Mi,q.EcanTable=g0,q.EcanTabs=l0,q.EcanText=gi,q.EcanTimeDisplay=yi,q.EcanTreeSelect=Hi,q.barComponentProps=ia,q.barEvents=Yi,q.barProps=ra,q.borderComponentProps=xa,q.borderEvents=a0,q.borderProps=ma,q.buttonComponentProps=Go,q.buttonEvents=Oi,q.buttonProps=jo,q.checkboxComponentProps=Uo,q.checkboxEvents=Ni,q.checkboxProps=Wo,q.comboGraphComponentProps=ua,q.comboGraphEvents=e0,q.comboGraphProps=da,q.compatibleMobileList=Wi,q.customGraphComponentProps=fa,q.customGraphProps=ca,q.datePickerComponentProps=Mo,q.datePickerEvents=Ai,q.datePickerProps=Fo,q.default=vd,q.iframeComponentProps=Ca,q.iframeProps=Sa,q.imageComponentProps=va,q.imageEvents=s0,q.imageProps=ba,q.inputComponentProps=zo,q.inputEvents=Ci,q.inputProps=No,q.lineComponentProps=aa,q.lineEvents=$i,q.lineProps=oa,q.listComponentProps=Ro,q.listEvents=pi,q.listProps=Io,q.mapComponentProps=Ba,q.mapEvents=m0,q.mapProps=Ta,q.modalComponentProps=na,q.modalEvents=Gi,q.modalProps=ta,q.pageConfig=_n,q.pageConfigComponentProps=Dn,q.pieComponentProps=ea,q.pieEvents=ji,q.pieProps=Jo,q.proportionComponentProps=Lo,q.proportionEvents=vi,q.proportionProps=Oo,q.providerConfig=Co,q.providerConfigComponentProps=wo,q.radarComponentProps=ga,q.radarEvents=n0,q.radarProps=ha,q.radioComponentProps=Xo,q.radioEvents=qi,q.radioProps=Qo,q.rangePickerComponentProps=qo,q.rangePickerEvents=Ei,q.rangePickerProps=Ho,q.scatterComponentProps=sa,q.scatterEvents=Qi,q.scatterProps=la,q.selectComponentProps=Zo,q.selectEvents=Fi,q.selectProps=$o,q.tableComponentProps=Aa,q.tableEvents=d0,q.tableProps=wa,q.tabsComponentProps=pa,q.tabsEvents=i0,q.tabsProps=ya,q.textComponentProps=ko,q.textEvents=di,q.textProps=Ao,q.timeDisplayComponentProps=Do,q.timeDisplayEvents=xi,q.timeDisplayProps=_o,q.treeSelectComponentProps=Ko,q.treeSelectEvents=Pi,q.treeSelectProps=Yo,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
119
|
//# sourceMappingURL=index.umd.js.map
|