@ecan-bi/datav 1.2.97 → 1.3.0
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 +5580 -5090
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +35 -35
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +2 -1
- package/types/graph/bar/Bar.vue.d.ts +3 -0
- package/types/graph/bar/index.d.ts +3 -0
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +3 -0
- package/types/graph/combo-graph/index.d.ts +3 -0
- package/types/text/list/List.vue.d.ts +110 -7
- package/types/text/list/MarqueeScroll.vue.d.ts +34 -0
- package/types/text/list/index.d.ts +110 -7
- package/types/text/list/props.d.ts +51 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.
|
|
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,Ra,ie,Rd,Id,Ne,Ce,T0,B0,Ld,Od,Nd,Ia,Md,Fd,zd,Pd,At,ct,me,Hd,E0,qd,Vd,jt,D0){var b0,v0,S0,C0;"use strict";function _0(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 R0=_0(E0),I0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function L0(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 I0.forEach(i=>{r[i]=t(i)}),r}return a()}function O0(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),Ra.addListener(r,a)),f(()=>{a&&r&&Ra.removeListener(r,a)})})}const N0={autoresize:Boolean},M0="ecLoadingOptions";function F0(e,n,t){const a=o.inject(M0,{}),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 z0={loading:Boolean,loadingOptions:Object},jd="",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",U0="ecUpdateOptions",ht=o.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...N0,...z0},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(U0,null),{autoresize:c,manualUpdate:u,loading:y,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)||{}),S=o.computed(()=>e.updateOptions||o.unref(f)||{}),_=o.computed(()=>q0(n));function b(E){if(r.value||!a.value)return;const O=r.value=Ge.init(a.value,m.value,g.value);e.group&&(O.group=e.group);let N=t;N||(N={},Object.keys(n).filter(D=>D.indexOf("on")===0&&D.length>2).forEach(D=>{const v=D.charAt(2).toLowerCase()+D.slice(3);N[v]=n[D]})),Object.keys(N).forEach(D=>{const v=N[D];v&&(D.indexOf("zr:")===0?O.getZr().on(D.slice(3).toLowerCase(),v):O.on(D.toLowerCase(),v))});function B(){if(O&&!O.isDisposed())try{O.resize()}catch(D){if(D.message==="Cannot read property 'get' of undefined")return;throw D}}function C(){O.setOption(E||h.value,S.value)}c.value?o.nextTick(()=>{B(),C()}):C()}function p(E,O){e.manualUpdate&&(i.value=E),r.value?r.value.setOption(E,O||{}):b(E)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let w=null;o.watch(u,E=>{typeof w=="function"&&(w(),w=null),E||(w=o.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,S.value):b())},{deep:!0}))},{immediate:!0}),o.watch([m,g],()=>{x(),b()},{deep:!0}),o.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=L0(r,b);return F0(r,y,d),O0(r,c,a),o.onMounted(()=>{e.option&&b()}),o.onUnmounted(x),{chart:r,root:a,setOption:p,nonEventAttrs:_,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",o.h(V0,e)}});function Qe(e,n){W0(e)&&(e="100%");var t=Z0(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 W0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Z0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function Y0(e,n,t){return{r:Qe(e,255)*255,g:Qe(n,255)*255,b:Qe(t,255)*255}}function vn(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=Qe(e,360),n=Qe(n,100),t=Qe(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=vn(l,s,e+1/3),r=vn(l,s,e),i=vn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Q0(e,n,t){e=Qe(e,255),n=Qe(n,255),t=Qe(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 J0(e,n,t){e=Qe(e,360)*6,n=Qe(n,100),t=Qe(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],y=[i,i,l,t,t,s][f];return{r:c*255,g:u*255,b:y*255}}function X0(e,n,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(n).toString(16)),bn(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 La(e){return Ue(e)/255}function Ue(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 Gt(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=Qt(e.s),r=Qt(e.v),n=J0(e.h,a,r),s=!0,l="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(a=Qt(e.s),i=Qt(e.l),n=K0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=$0(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+%?",gt="(?:".concat(tl,")|(?:").concat(el,")"),Sn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),ot={CSS_UNIT:new RegExp(gt),rgb:new RegExp("rgb"+Sn),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Sn),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Sn),hsva:new RegExp("hsva"+Cn),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:Ue(t[1]),g:Ue(t[2]),b:Ue(t[3]),a:La(t[4]),format:n?"name":"hex8"}:(t=ot.hex6.exec(e),t?{r:Ue(t[1]),g:Ue(t[2]),b:Ue(t[3]),format:n?"name":"hex"}:(t=ot.hex4.exec(e),t?{r:Ue(t[1]+t[1]),g:Ue(t[2]+t[2]),b:Ue(t[3]+t[3]),a:La(t[4]+t[4]),format:n?"name":"hex8"}:(t=ot.hex3.exec(e),t?{r:Ue(t[1]+t[1]),g:Ue(t[2]+t[2]),b:Ue(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function ft(e){return!!ot.CSS_UNIT.exec(String(e))}var Jt=2,Na=.16,ol=.05,al=.05,rl=.15,Ma=5,Fa=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 za(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(X0(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 Pa(e,n,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Jt*n:Math.round(e.h)+Jt*n:a=t?Math.round(e.h)+Jt*n:Math.round(e.h)-Jt*n,a<0?a+=360:a>=360&&(a-=360),a}function Ha(e,n,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Na*n:n===Fa?a=e.s+Na:a=e.s+ol*n,a>1&&(a=1),t&&n===Ma&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function qa(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 wn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Gt(e),r=Ma;r>0;r-=1){var i=za(a),s=Xt(Gt({h:Pa(i,r,!0),s:Ha(i,r,!0),v:qa(i,r,!0)}));t.push(s)}t.push(Xt(a));for(var l=1;l<=Fa;l+=1){var f=za(a),c=Xt(Gt({h:Pa(f,l),s:Ha(f,l),v:qa(f,l)}));t.push(c)}return n.theme==="dark"?il.map(function(u){var y=u.index,d=u.opacity,h=Xt(ll(Gt(n.backgroundColor||"#141414"),Gt(t[y]),d*100));return h}):t}var An={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"},kn={},Tn={};Object.keys(An).forEach(function(e){kn[e]=wn(An[e]),kn[e].primary=kn[e][5],Tn[e]=wn(An[e],{theme:"dark",backgroundColor:"#141414"}),Tn[e].primary=Tn[e][5]});var Va=[],Ut=[],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=Va.indexOf(a);r===-1&&(r=Va.push(a)-1,Ut[r]={});var i;return Ut[r]!==void 0&&Ut[r][t]!==void 0?i=Ut[r][t]:(i=Ut[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 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){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 Ga(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?o.h(e.tag,ja({key:n},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(n,"-").concat(e.tag,"-").concat(r))})):o.h(e.tag,ja({key:n},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Ua(e){return wn(e)[0]}function Wa(e){return e?Array.isArray(e)?e:[e]:[]}var gl=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.0 */
|
|
2
|
+
(function(H,n){typeof exports=="object"&&typeof module<"u"?n(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"],n):(H=typeof globalThis<"u"?globalThis:H||self,n(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,n,$e,Ra,se,au,ru,Pe,ke,I0,R0,iu,lu,su,_a,cu,fu,du,uu,kt,ct,ye,hu,_0,gu,mu,jt,O0){var w0,A0,k0,T0;"use strict";function L0(e){const o=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(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const N0=L0(_0),M0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function z0(e,o){function t(r){return(...i)=>{if(e.value||o(),!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 M0.forEach(i=>{r[i]=t(i)}),r}return a()}function F0(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=$e.throttle(()=>{i.resize()},100),Ra.addListener(r,a)),d(()=>{a&&r&&Ra.removeListener(r,a)})})}const P0={autoresize:Boolean},q0="ecLoadingOptions";function H0(e,o,t){const a=n.inject(q0,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const V0={loading:Boolean,loadingOptions:Object},yu="",j0=/^on[^a-z]/,U0=e=>j0.test(e);function G0(e){const o={};for(const t in e)U0(t)||(o[t]=e[t]);return o}const W0="x-vue-echarts",$0="ecTheme",Z0="ecInitOptions",Y0="ecUpdateOptions",ht=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...P0,...V0},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject($0,null),l=n.inject(Z0,null),d=n.inject(Y0,null),{autoresize:c,manualUpdate:u,loading:h,loadingOptions:f}=n.toRefs(e),g=n.computed(()=>i.value||e.option||Object.create(null)),y=n.computed(()=>e.theme||n.unref(s)||{}),m=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(d)||{}),E=n.computed(()=>G0(o));function p(B){if(r.value||!a.value)return;const L=r.value=$e.init(a.value,y.value,m.value);e.group&&(L.group=e.group);let R=t;R||(R={},Object.keys(o).filter(T=>T.indexOf("on")===0&&T.length>2).forEach(T=>{const w=T.charAt(2).toLowerCase()+T.slice(3);R[w]=o[T]})),Object.keys(R).forEach(T=>{const w=R[T];w&&(T.indexOf("zr:")===0?L.getZr().on(T.slice(3).toLowerCase(),w):L.on(T.toLowerCase(),w))});function C(){if(L&&!L.isDisposed())try{L.resize()}catch(T){if(T.message==="Cannot read property 'get' of undefined")return;throw T}}function S(){L.setOption(B||g.value,v.value)}c.value?n.nextTick(()=>{C(),S()}):S()}function b(B,L){e.manualUpdate&&(i.value=B),r.value?r.value.setOption(B,L||{}):p(B)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let A=null;n.watch(u,B=>{typeof A=="function"&&(A(),A=null),B||(A=n.watch(()=>e.option,L=>{L&&(r.value?r.value.setOption(L,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([y,m],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=z0(r,p);return H0(r,h,f),F0(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(W0,e)}});function Je(e,o){K0(e)&&(e="100%");var t=Q0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function K0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Q0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function J0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function X0(e,o,t){return{r:Je(e,255)*255,g:Je(o,255)*255,b:Je(t,255)*255}}function vn(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function el(e,o,t){var a,r,i;if(e=Je(e,360),o=Je(o,100),t=Je(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=vn(l,s,e+1/3),r=vn(l,s,e),i=vn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function tl(e,o,t){e=Je(e,255),o=Je(o,255),t=Je(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function nl(e,o,t){e=Je(e,360)*6,o=Je(o,100),t=Je(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),d=a%6,c=[t,s,i,i,l,t][d],u=[l,t,t,s,i,i][d],h=[i,i,l,t,t,s][d];return{r:c*255,g:u*255,b:h*255}}function ol(e,o,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(o).toString(16)),bn(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 Oa(e){return Ze(e)/255}function Ze(e){return parseInt(e,16)}var La={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 Ut(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=il(e)),typeof e=="object"&&(ft(e.r)&&ft(e.g)&&ft(e.b)?(o=X0(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=Qt(e.s),r=Qt(e.v),o=nl(e.h,a,r),s=!0,l="hsv"):ft(e.h)&&ft(e.s)&&ft(e.l)&&(a=Qt(e.s),i=Qt(e.l),o=el(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=J0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var al="[-\\+]?\\d+%?",rl="[-\\+]?\\d*\\.\\d+%?",gt="(?:".concat(rl,")|(?:").concat(al,")"),Sn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")[,|\\s]+(").concat(gt,")\\s*\\)?"),at={CSS_UNIT:new RegExp(gt),rgb:new RegExp("rgb"+Sn),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Sn),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Sn),hsva:new RegExp("hsva"+Cn),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 il(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(La[e])e=La[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=at.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=at.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=at.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=at.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=at.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=at.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=at.hex8.exec(e),t?{r:Ze(t[1]),g:Ze(t[2]),b:Ze(t[3]),a:Oa(t[4]),format:o?"name":"hex8"}:(t=at.hex6.exec(e),t?{r:Ze(t[1]),g:Ze(t[2]),b:Ze(t[3]),format:o?"name":"hex"}:(t=at.hex4.exec(e),t?{r:Ze(t[1]+t[1]),g:Ze(t[2]+t[2]),b:Ze(t[3]+t[3]),a:Oa(t[4]+t[4]),format:o?"name":"hex8"}:(t=at.hex3.exec(e),t?{r:Ze(t[1]+t[1]),g:Ze(t[2]+t[2]),b:Ze(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function ft(e){return!!at.CSS_UNIT.exec(String(e))}var Jt=2,Na=.16,ll=.05,sl=.05,cl=.15,Ma=5,za=4,fl=[{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 o=e.r,t=e.g,a=e.b,r=tl(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function Xt(e){var o=e.r,t=e.g,a=e.b;return"#".concat(ol(o,t,a,!1))}function dl(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function Pa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Jt*o:Math.round(e.h)+Jt*o:a=t?Math.round(e.h)+Jt*o:Math.round(e.h)-Jt*o,a<0?a+=360:a>=360&&(a-=360),a}function qa(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Na*o:o===za?a=e.s+Na:a=e.s+ll*o,a>1&&(a=1),t&&o===Ma&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ha(e,o,t){var a;return t?a=e.v+sl*o:a=e.v-cl*o,a>1&&(a=1),Number(a.toFixed(2))}function wn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Ut(e),r=Ma;r>0;r-=1){var i=Fa(a),s=Xt(Ut({h:Pa(i,r,!0),s:qa(i,r,!0),v:Ha(i,r,!0)}));t.push(s)}t.push(Xt(a));for(var l=1;l<=za;l+=1){var d=Fa(a),c=Xt(Ut({h:Pa(d,l),s:qa(d,l),v:Ha(d,l)}));t.push(c)}return o.theme==="dark"?fl.map(function(u){var h=u.index,f=u.opacity,g=Xt(dl(Ut(o.backgroundColor||"#141414"),Ut(t[h]),f*100));return g}):t}var An={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"},kn={},Tn={};Object.keys(An).forEach(function(e){kn[e]=wn(An[e]),kn[e].primary=kn[e][5],Tn[e]=wn(An[e],{theme:"dark",backgroundColor:"#141414"}),Tn[e].primary=Tn[e][5]});var Va=[],Gt=[],ul="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function hl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function gl(e,o){if(o=o||{},e===void 0)throw new Error(ul);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Va.indexOf(a);r===-1&&(r=Va.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]=hl(),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 ja(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},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,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function yl(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function xl(e,o){yl(e,"[@ant-design/icons-vue] ".concat(o))}function Ua(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Bn(e,o,t){return t?n.h(e.tag,ja({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,ja({key:o},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ga(e){return wn(e)[0]}function Wa(e){return e?Array.isArray(e)?e:[e]:[]}var pl=`
|
|
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 Rl(e,n){if(e){if(typeof e=="string")return Ka(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 Ka(e,n)}}function Ka(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 Il(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 Ll(e){if(Array.isArray(e))return e}function Qa(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){Dn(e,r,t[r])})}return e}function Dn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ol(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}Ya("#1890ff");var Dt=function(n,t){var a,r=Qa({},n,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,u=r.twoToneColor,y=r.onClick,d=Ol(r,El),h=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,d.tabindex=g);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,_=Wa(u),b=Dl(_,2),p=b[0],x=b[1];return o.createVNode("span",Qa({role:"img","aria-label":s.name},d,{onClick:y,class:h}),[o.createVNode(En,{class:m,icon:s,primaryColor:p,secondaryColor:x,style:S},null)])};Dt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Dt.displayName="AntdIcon",Dt.inheritAttrs=!1,Dt.getTwoToneColor=Bl,Dt.setTwoToneColor=Ya;const Ja=Dt;var Ml={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=Ml;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){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 _n=function(n,t){var a=Xa({},n,t.attrs);return o.createVNode(Ja,Xa({},a,{icon:Fl}),null)};_n.displayName="CloseOutlined",_n.inheritAttrs=!1;const Pl=_n;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 er(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 Rn=function(n,t){var a=er({},n,t.attrs);return o.createVNode(Ja,er({},a,{icon:ql}),null)};Rn.displayName="LoadingOutlined",Rn.inheritAttrs=!1;const jl=Rn,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})}}}),Gd="",ue=(e,n)=>{const t=e.__vccOpts||e;for(const[a,r]of n)t[a]=r;return t},Ul={class:"spin-wrapper"};function Wl(e,n,t,a,r,i){const s=o.resolveComponent("a-spin");return o.openBlock(),o.createElementBlock("div",Ul,[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",Wl]]),Zl=o.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ie.Skeleton}});function $l(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 tn=ue(Zl,[["render",$l]]);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"},xe=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},In={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Ln=xe(In),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"],be=(e,n=[])=>{const t=Ne.without(Yl,...n);return o.computed(()=>Ne.pick(e,t))},On="EVENT_BUS",Me="GLOBAL_CONFIG",we="GLOBAL_MODEL",Le="REQUEST_MODEL",tr="GLOBAL_TOKEN",Zt="REFRESH_PAGE",nr="MODAL_MODEL",mt="LOADED_DATA",at=18,or="ygt",ar=((b0=window==null?void 0:window.config)==null?void 0:b0.indicatorURL)||"";(v0=window==null?void 0:window.config)!=null&&v0.uploadPath;const rr=((S0=window==null?void 0:window.config)==null?void 0:S0.routerBaseURL)||"./",Kl=((C0=window==null?void 0:window.config)==null?void 0:C0.erdURL)||"",De=(e,n)=>{o.watch(()=>e.id,t=>{const a=o.inject(On,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,n)},{immediate:!0})},Ae=e=>{const n=e.events,t=e.id,a=o.inject(On,{emitEvent:(i,s)=>{}}),{touchEventId:r}=o.inject(Me,{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)}})}},Rt=(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],y=u[t]||"",d=u[a]||"",h=u[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:d,...u}),i.set(h,m)}else i.set(h,[{name:y,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 y of u)l.includes(y.name)||l.push(y.name);else l.push(...u.map(y=>y.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 ir(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 lr={exports:{}};function Jl(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 Nn={exports:{}};const Xl=Ql(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var sr;function ce(){return sr||(sr=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 Jl=="function")try{i=Xl}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 x;return b.prototype=p,x=new b,b.prototype=null,x}}(),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)}}}(),y=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,x=b.words,w=this.sigBytes,k=b.sigBytes;if(this.clamp(),w%4)for(var E=0;E<k;E++){var O=x[E>>>2]>>>24-E%4*8&255;p[w+E>>>2]|=O<<24-(w+E)%4*8}else for(var N=0;N<k;N+=4)p[w+N>>>2]=x[N>>>2];return this.sigBytes+=k,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=[],x=0;x<b;x+=4)p.push(s());return new y.init(p,b)}}),d=f.enc={},h=d.Hex={stringify:function(b){for(var p=b.words,x=b.sigBytes,w=[],k=0;k<x;k++){var E=p[k>>>2]>>>24-k%4*8&255;w.push((E>>>4).toString(16)),w.push((E&15).toString(16))}return w.join("")},parse:function(b){for(var p=b.length,x=[],w=0;w<p;w+=2)x[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new y.init(x,p/2)}},m=d.Latin1={stringify:function(b){for(var p=b.words,x=b.sigBytes,w=[],k=0;k<x;k++){var E=p[k>>>2]>>>24-k%4*8&255;w.push(String.fromCharCode(E))}return w.join("")},parse:function(b){for(var p=b.length,x=[],w=0;w<p;w++)x[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new y.init(x,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)))}},S=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new y.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,x=this._data,w=x.words,k=x.sigBytes,E=this.blockSize,O=E*4,N=k/O;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var B=N*E,C=a.min(B*4,k);if(B){for(var D=0;D<B;D+=E)this._doProcessBlock(w,D);p=w.splice(0,B),x.sigBytes-=C}return new y.init(p,C)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.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,x){return new b.init(x).finalize(p)}},_createHmacHelper:function(b){return function(p,x){return new _.HMAC.init(b,x).finalize(p)}}});var _=f.algo={};return f}(Math);return t})}(Nn)),Nn.exports}var Mn={exports:{}},cr;function nn(){return cr||(cr=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,y=[],d=0;d<u;d++){var h=c[d];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),y=u.length,d=0;d<y;d++)u[d]=u[d].clone();return c}})}(),t})}(Mn)),Mn.exports}var Fn={exports:{}},fr;function es(){return fr||(fr=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=[],y=0;y<c;y++)u[y>>>2]|=f[y]<<24-y%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Fn)),Fn.exports}var zn={exports:{}},dr;function ts(){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.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,u=f.sigBytes,y=[],d=0;d<u;d+=2){var h=c[d>>>2]>>>16-d%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,u=[],y=0;y<c;y++)u[y>>>1]|=f.charCodeAt(y)<<16-y%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,u=f.sigBytes,y=[],d=0;d<u;d+=2){var h=l(c[d>>>2]>>>16-d%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(f){for(var c=f.length,u=[],y=0;y<c;y++)u[y>>>1]|=l(f.charCodeAt(y)<<16-y%2*16);return i.create(u,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(zn)),zn.exports}var Pn={exports:{}},ur;function It(){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.Base64={stringify:function(f){var c=f.words,u=f.sigBytes,y=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,S=c[h+2>>>2]>>>24-(h+2)%4*8&255,_=m<<16|g<<8|S,b=0;b<4&&h+b*.75<u;b++)d.push(y.charAt(_>>>6*(3-b)&63));var p=y.charAt(64);if(p)for(;d.length%4;)d.push(p);return d.join("")},parse:function(f){var c=f.length,u=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var d=0;d<u.length;d++)y[u.charCodeAt(d)]=d}var h=u.charAt(64);if(h){var m=f.indexOf(h);m!==-1&&(c=m)}return l(f,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,u){for(var y=[],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,S=m|g;y[d>>>2]|=S<<24-d%4*8,d++}return i.create(y,d)}}(),t.enc.Base64})}(Pn)),Pn.exports}var Hn={exports:{}},hr;function ns(){return hr||(hr=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,y=f.sigBytes,d=c?this._safe_map:this._map;f.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=u[m>>>2]>>>24-m%4*8&255,S=u[m+1>>>2]>>>24-(m+1)%4*8&255,_=u[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|S<<8|_,p=0;p<4&&m+p*.75<y;p++)h.push(d.charAt(b>>>6*(3-p)&63));var x=d.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(f,c=!0){var u=f.length,y=c?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<y.length;h++)d[y.charCodeAt(h)]=h}var m=y.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 y=[],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,S=m|g;y[d>>>2]|=S<<24-d%4*8,d++}return i.create(y,d)}}(),t.enc.Base64url})}(Hn)),Hn.exports}var qn={exports:{}},gr;function Lt(){return gr||(gr=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,S){for(var _=0;_<16;_++){var b=S+_,p=g[b];g[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var x=this._hash.words,w=g[S+0],k=g[S+1],E=g[S+2],O=g[S+3],N=g[S+4],B=g[S+5],C=g[S+6],D=g[S+7],v=g[S+8],I=g[S+9],F=g[S+10],L=g[S+11],z=g[S+12],H=g[S+13],j=g[S+14],P=g[S+15],A=x[0],R=x[1],T=x[2],M=x[3];A=y(A,R,T,M,w,7,c[0]),M=y(M,A,R,T,k,12,c[1]),T=y(T,M,A,R,E,17,c[2]),R=y(R,T,M,A,O,22,c[3]),A=y(A,R,T,M,N,7,c[4]),M=y(M,A,R,T,B,12,c[5]),T=y(T,M,A,R,C,17,c[6]),R=y(R,T,M,A,D,22,c[7]),A=y(A,R,T,M,v,7,c[8]),M=y(M,A,R,T,I,12,c[9]),T=y(T,M,A,R,F,17,c[10]),R=y(R,T,M,A,L,22,c[11]),A=y(A,R,T,M,z,7,c[12]),M=y(M,A,R,T,H,12,c[13]),T=y(T,M,A,R,j,17,c[14]),R=y(R,T,M,A,P,22,c[15]),A=d(A,R,T,M,k,5,c[16]),M=d(M,A,R,T,C,9,c[17]),T=d(T,M,A,R,L,14,c[18]),R=d(R,T,M,A,w,20,c[19]),A=d(A,R,T,M,B,5,c[20]),M=d(M,A,R,T,F,9,c[21]),T=d(T,M,A,R,P,14,c[22]),R=d(R,T,M,A,N,20,c[23]),A=d(A,R,T,M,I,5,c[24]),M=d(M,A,R,T,j,9,c[25]),T=d(T,M,A,R,O,14,c[26]),R=d(R,T,M,A,v,20,c[27]),A=d(A,R,T,M,H,5,c[28]),M=d(M,A,R,T,E,9,c[29]),T=d(T,M,A,R,D,14,c[30]),R=d(R,T,M,A,z,20,c[31]),A=h(A,R,T,M,B,4,c[32]),M=h(M,A,R,T,v,11,c[33]),T=h(T,M,A,R,L,16,c[34]),R=h(R,T,M,A,j,23,c[35]),A=h(A,R,T,M,k,4,c[36]),M=h(M,A,R,T,N,11,c[37]),T=h(T,M,A,R,D,16,c[38]),R=h(R,T,M,A,F,23,c[39]),A=h(A,R,T,M,H,4,c[40]),M=h(M,A,R,T,w,11,c[41]),T=h(T,M,A,R,O,16,c[42]),R=h(R,T,M,A,C,23,c[43]),A=h(A,R,T,M,I,4,c[44]),M=h(M,A,R,T,z,11,c[45]),T=h(T,M,A,R,P,16,c[46]),R=h(R,T,M,A,E,23,c[47]),A=m(A,R,T,M,w,6,c[48]),M=m(M,A,R,T,D,10,c[49]),T=m(T,M,A,R,j,15,c[50]),R=m(R,T,M,A,B,21,c[51]),A=m(A,R,T,M,z,6,c[52]),M=m(M,A,R,T,O,10,c[53]),T=m(T,M,A,R,F,15,c[54]),R=m(R,T,M,A,k,21,c[55]),A=m(A,R,T,M,v,6,c[56]),M=m(M,A,R,T,P,10,c[57]),T=m(T,M,A,R,C,15,c[58]),R=m(R,T,M,A,H,21,c[59]),A=m(A,R,T,M,N,6,c[60]),M=m(M,A,R,T,L,10,c[61]),T=m(T,M,A,R,E,15,c[62]),R=m(R,T,M,A,I,21,c[63]),x[0]=x[0]+A|0,x[1]=x[1]+R|0,x[2]=x[2]+T|0,x[3]=x[3]+M|0},_doFinalize:function(){var g=this._data,S=g.words,_=this._nDataBytes*8,b=g.sigBytes*8;S[b>>>5]|=128<<24-b%32;var p=a.floor(_/4294967296),x=_;S[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var w=this._hash,k=w.words,E=0;E<4;E++){var O=k[E];k[E]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return w},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,S,_,b,p,x,w){var k=g+(S&_|~S&b)+p+w;return(k<<x|k>>>32-x)+S}function d(g,S,_,b,p,x,w){var k=g+(S&b|_&~b)+p+w;return(k<<x|k>>>32-x)+S}function h(g,S,_,b,p,x,w){var k=g+(S^_^b)+p+w;return(k<<x|k>>>32-x)+S}function m(g,S,_,b,p,x,w){var k=g+(_^(S|~b))+p+w;return(k<<x|k>>>32-x)+S}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(qn)),qn.exports}var Vn={exports:{}},mr;function jn(){return mr||(mr=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,y){for(var d=this._hash.words,h=d[0],m=d[1],g=d[2],S=d[3],_=d[4],b=0;b<80;b++){if(b<16)f[b]=u[y+b]|0;else{var p=f[b-3]^f[b-8]^f[b-14]^f[b-16];f[b]=p<<1|p>>>31}var x=(h<<5|h>>>27)+_+f[b];b<20?x+=(m&g|~m&S)+1518500249:b<40?x+=(m^g^S)+1859775393:b<60?x+=(m&g|m&S|g&S)-1894007588:x+=(m^g^S)-899497514,_=S,S=g,g=m<<30|m>>>2,m=h,h=x}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+g|0,d[3]=d[3]+S|0,d[4]=d[4]+_|0},_doFinalize:function(){var u=this._data,y=u.words,d=this._nDataBytes*8,h=u.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),y[(h+64>>>9<<4)+15]=d,u.sigBytes=y.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})}(Vn)),Vn.exports}var Gn={exports:{}},yr;function xr(){return yr||(yr=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(_){for(var b=a.sqrt(_),p=2;p<=b;p++)if(!(_%p))return!1;return!0}function m(_){return(_-(_|0))*4294967296|0}for(var g=2,S=0;S<64;)h(g)&&(S<8&&(c[S]=m(a.pow(g,1/2))),u[S]=m(a.pow(g,1/3)),S++),g++})();var y=[],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,S=g[0],_=g[1],b=g[2],p=g[3],x=g[4],w=g[5],k=g[6],E=g[7],O=0;O<64;O++){if(O<16)y[O]=h[m+O]|0;else{var N=y[O-15],B=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,C=y[O-2],D=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;y[O]=B+y[O-7]+D+y[O-16]}var v=x&w^~x&k,I=S&_^S&b^_&b,F=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),L=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),z=E+L+v+u[O]+y[O],H=F+I;E=k,k=w,w=x,x=p+z|0,p=b,b=_,_=S,S=z+H|0}g[0]=g[0]+S|0,g[1]=g[1]+_|0,g[2]=g[2]+b|0,g[3]=g[3]+p|0,g[4]=g[4]+x|0,g[5]=g[5]+w|0,g[6]=g[6]+k|0,g[7]=g[7]+E|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,S=h.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(g/4294967296),m[(S+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})}(Gn)),Gn.exports}var Un={exports:{}},pr;function os(){return pr||(pr=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})}(Un)),Un.exports}var Wn={exports:{}},br;function vr(){return br||(br=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn())})(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 y=[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 S=this._hash.words,_=S[0],b=S[1],p=S[2],x=S[3],w=S[4],k=S[5],E=S[6],O=S[7],N=_.high,B=_.low,C=b.high,D=b.low,v=p.high,I=p.low,F=x.high,L=x.low,z=w.high,H=w.low,j=k.high,P=k.low,A=E.high,R=E.low,T=O.high,M=O.low,U=N,Z=B,ne=C,$=D,Q=v,K=I,X=F,oe=L,he=z,fe=H,_e=j,He=P,qe=A,Ze=R,$e=T,tt=M,Ee=0;Ee<80;Ee++){var Se,Ie,je=d[Ee];if(Ee<16)Ie=je.high=m[g+Ee*2]|0,Se=je.low=m[g+Ee*2+1]|0;else{var nt=d[Ee-15],ze=nt.high,Ve=nt.low,ut=(ze>>>1|Ve<<31)^(ze>>>8|Ve<<24)^ze>>>7,V=(Ve>>>1|ze<<31)^(Ve>>>8|ze<<24)^(Ve>>>7|ze<<25),W=d[Ee-2],Y=W.high,te=W.low,ae=(Y>>>19|te<<13)^(Y<<3|te>>>29)^Y>>>6,ee=(te>>>19|Y<<13)^(te<<3|Y>>>29)^(te>>>6|Y<<26),J=d[Ee-7],de=J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=A+qe+(R>>>0<Ze>>>0?1:0),M=O.low=M+tt,O.high=T+$e+(M>>>0<tt>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,S=this._nDataBytes*8,_=m.sigBytes*8;g[_>>>5]|=128<<24-_%32,g[(_+128>>>10<<5)+30]=Math.floor(S/4294967296),g[(_+128>>>10<<5)+31]=S,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})}(Wn)),Wn.exports}var Zn={exports:{}},Sr;function as(){return Sr||(Sr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn(),vr())})(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})}(Zn)),Zn.exports}var $n={exports:{}},Cr;function rs(){return Cr||(Cr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),nn())})(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,y=[],d=[],h=[];(function(){for(var S=1,_=0,b=0;b<24;b++){y[S+5*_]=(b+1)*(b+2)/2%64;var p=_%5,x=(2*S+3*_)%5;S=p,_=x}for(var S=0;S<5;S++)for(var _=0;_<5;_++)d[S+5*_]=_+(2*S+3*_)%5*5;for(var w=1,k=0;k<24;k++){for(var E=0,O=0,N=0;N<7;N++){if(w&1){var B=(1<<N)-1;B<32?O^=1<<B:E^=1<<B-32}w&128?w=w<<1^113:w<<=1}h[k]=c.create(E,O)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var g=u.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],_=0;_<25;_++)S[_]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,_){for(var b=this._state,p=this.blockSize/2,x=0;x<p;x++){var w=S[_+2*x],k=S[_+2*x+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var E=b[x];E.high^=k,E.low^=w}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var B=0,C=0,D=0;D<5;D++){var E=b[N+5*D];B^=E.high,C^=E.low}var v=m[N];v.high=B,v.low=C}for(var N=0;N<5;N++)for(var I=m[(N+4)%5],F=m[(N+1)%5],L=F.high,z=F.low,B=I.high^(L<<1|z>>>31),C=I.low^(z<<1|L>>>31),D=0;D<5;D++){var E=b[N+5*D];E.high^=B,E.low^=C}for(var H=1;H<25;H++){var B,C,E=b[H],j=E.high,P=E.low,A=y[H];A<32?(B=j<<A|P>>>32-A,C=P<<A|j>>>32-A):(B=P<<A-32|j>>>64-A,C=j<<A-32|P>>>64-A);var R=m[d[H]];R.high=B,R.low=C}var T=m[0],M=b[0];T.high=M.high,T.low=M.low;for(var N=0;N<5;N++)for(var D=0;D<5;D++){var H=N+5*D,E=b[H],U=m[H],Z=m[(N+1)%5+5*D],ne=m[(N+2)%5+5*D];E.high=U.high^~Z.high&ne.high,E.low=U.low^~Z.low&ne.low}var E=b[0],$=h[O];E.high^=$.high,E.low^=$.low}},_doFinalize:function(){var S=this._data,_=S.words;this._nDataBytes*8;var b=S.sigBytes*8,p=this.blockSize*32;_[b>>>5]|=1<<24-b%32,_[(a.ceil((b+1)/p)*p>>>5)-1]|=128,S.sigBytes=_.length*4,this._process();for(var x=this._state,w=this.cfg.outputLength/8,k=w/8,E=[],O=0;O<k;O++){var N=x[O],B=N.high,C=N.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,E.push(C),E.push(B)}return new s.init(E,w)},clone:function(){for(var S=l.clone.call(this),_=S._state=this._state.slice(0),b=0;b<25;b++)_[b]=_[b].clone();return S}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}($n)),$n.exports}var Yn={exports:{}},wr;function is(){return wr||(wr=1,function(e,n){(function(t,a){e.exports=a(ce())})(le,function(t){/** @preserve
|
|
56
|
+
`,$a=!1,bl=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pl;n.nextTick(function(){$a||(typeof window<"u"&&window.document&&window.document.documentElement&&gl(o,{prepend:!0}),$a=!0)})},vl=["icon","primaryColor","secondaryColor"];function Sl(e,o){if(e==null)return{};var t=Cl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Cl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}function en(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},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){wl(e,r,t[r])})}return e}function wl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Wt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Al(e){var o=e.primaryColor,t=e.secondaryColor;Wt.primaryColor=o,Wt.secondaryColor=t||Ga(o),Wt.calculated=!!t}function kl(){return en({},Wt)}var Dt=function(o,t){var a=en({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=Sl(a,vl),d=Wt;if(i&&(d={primaryColor:i,secondaryColor:s||Ga(i)}),bl(),xl(Ua(r),"icon should be icon definiton, but got ".concat(r)),!Ua(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=en({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Bn(c.icon,"svg-".concat(c.name),en({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Dt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Dt.inheritAttrs=!1,Dt.displayName="IconBase",Dt.getTwoToneColors=kl,Dt.setTwoToneColors=Al;const En=Dt;function Tl(e,o){return Il(e)||Dl(e,o)||El(e,o)||Bl()}function Bl(){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 El(e,o){if(e){if(typeof e=="string")return Za(e,o);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 Za(e,o)}}function Za(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function Dl(e,o){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),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Il(e){if(Array.isArray(e))return e}function Ya(e){var o=Wa(e),t=Tl(o,2),a=t[0],r=t[1];return En.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Rl(){var e=En.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _l=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ol(e,o){return zl(e)||Ml(e,o)||Nl(e,o)||Ll()}function Ll(){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 Nl(e,o){if(e){if(typeof e=="string")return Ka(e,o);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 Ka(e,o)}}function Ka(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function Ml(e,o){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),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function zl(e){if(Array.isArray(e))return e}function Qa(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},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){Dn(e,r,t[r])})}return e}function Dn(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Fl(e,o){if(e==null)return{};var t=Pl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Pl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ya("#1890ff");var It=function(o,t){var a,r=Qa({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,u=r.twoToneColor,h=r.onClick,f=Fl(r,_l),g=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",m=c;m===void 0&&h&&(m=-1,f.tabindex=m);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=Wa(u),p=Ol(E,2),b=p[0],x=p[1];return n.createVNode("span",Qa({role:"img","aria-label":s.name},f,{onClick:h,class:g}),[n.createVNode(En,{class:y,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};It.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},It.displayName="AntdIcon",It.inheritAttrs=!1,It.getTwoToneColor=Rl,It.setTwoToneColor=Ya;const Ja=It;var ql={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 Hl=ql;function Xa(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},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,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var In=function(o,t){var a=Xa({},o,t.attrs);return n.createVNode(Ja,Xa({},a,{icon:Hl}),null)};In.displayName="CloseOutlined",In.inheritAttrs=!1;const jl=In;var Ul={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 Gl=Ul;function er(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},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){Wl(e,r,t[r])})}return e}function Wl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Rn=function(o,t){var a=er({},o,t.attrs);return n.createVNode(Ja,er({},a,{icon:Gl}),null)};Rn.displayName="LoadingOutlined",Rn.inheritAttrs=!1;const $l=Rn,Zl=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h($l,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),xu="",he=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},Yl={class:"spin-wrapper"};function Kl(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",Yl,[e.spinning?(n.openBlock(),n.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):n.renderSlot(e.$slots,"default",{key:1})])}const Rt=he(Zl,[["render",Kl]]),Ql=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function Jl(e,o,t,a,r,i){const s=n.resolveComponent("a-skeleton");return n.openBlock(),n.createBlock(s,{active:"",loading:e.loading},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const tn=he(Ql,[["render",Jl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const me=(e,o)=>{if(e.install=t=>{for(const a of[e,...Object.values(o??{})])t.component(a.name,a)},o)for(const[t,a]of Object.entries(o))e[t]=a;return e},Ce={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"},pe=e=>{const o={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];o[t]={type:a==null?void 0:a.constructor,default:a}}return o},_n={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},On=pe(_n),Xl=["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"],ve=(e,o=[])=>{const t=Pe.without(Xl,...o);return n.computed(()=>Pe.pick(e,t))},Ln="EVENT_BUS",Me="GLOBAL_CONFIG",we="GLOBAL_MODEL",ze="REQUEST_MODEL",tr="GLOBAL_TOKEN",$t="REFRESH_PAGE",nr="MODAL_MODEL",mt="LOADED_DATA",rt=18,or="ygt",ar=((w0=window==null?void 0:window.config)==null?void 0:w0.indicatorURL)||"";(A0=window==null?void 0:window.config)!=null&&A0.uploadPath;const rr=((k0=window==null?void 0:window.config)==null?void 0:k0.routerBaseURL)||"./",es=((T0=window==null?void 0:window.config)==null?void 0:T0.erdURL)||"",Oe=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Ln,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Te=e=>{const o=e.events,t=e.id,a=n.inject(Ln,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(Me,{touchEventId:n.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=t,l(d.target,d.emit)}catch(c){console.error(c)}})}},_t=(e,o)=>{let{name:t="name",value:a="value",type:r="type"}=o||{};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],h=u[t]||"",f=u[a]||"",g=u[r]||"";if(i.has(g)){const y=i.get(g);y.push({name:h,value:f,...u}),i.set(g,y)}else i.set(g,[{name:h,value:f,...u}])}const l=[],d=[];for(const[c,u]of i)if(d.push({name:c,data:u}),u!=null&&u.length)if(l.length)for(const h of u)l.includes(h.name)||l.push(h.name);else l.push(...u.map(h=>h.name));return{dimensions:l,dataset:d}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ts(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var t=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.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 lr={exports:{}};function ns(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 Nn={exports:{}};const os=ts(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var sr;function ue(){return sr||(sr=1,function(e,o){(function(t,a){e.exports=a()})(ce,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 ce<"u"&&ce.crypto&&(i=ce.crypto),!i&&typeof ns=="function")try{i=os}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 p(){}return function(b){var x;return p.prototype=b,x=new p,p.prototype=null,x}}(),d={},c=d.lib={},u=c.Base=function(){return{extend:function(p){var b=l(this);return p&&b.mixIn(p),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var b in p)p.hasOwnProperty(b)&&(this[b]=p[b]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=c.WordArray=u.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||g).stringify(this)},concat:function(p){var b=this.words,x=p.words,A=this.sigBytes,k=p.sigBytes;if(this.clamp(),A%4)for(var B=0;B<k;B++){var L=x[B>>>2]>>>24-B%4*8&255;b[A+B>>>2]|=L<<24-(A+B)%4*8}else for(var R=0;R<k;R+=4)b[A+R>>>2]=x[R>>>2];return this.sigBytes+=k,this},clamp:function(){var p=this.words,b=this.sigBytes;p[b>>>2]&=4294967295<<32-b%4*8,p.length=a.ceil(b/4)},clone:function(){var p=u.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var b=[],x=0;x<p;x+=4)b.push(s());return new h.init(b,p)}}),f=d.enc={},g=f.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var B=b[k>>>2]>>>24-k%4*8&255;A.push((B>>>4).toString(16)),A.push((B&15).toString(16))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A+=2)x[A>>>3]|=parseInt(p.substr(A,2),16)<<24-A%8*4;return new h.init(x,b/2)}},y=f.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,A=[],k=0;k<x;k++){var B=b[k>>>2]>>>24-k%4*8&255;A.push(String.fromCharCode(B))}return A.join("")},parse:function(p){for(var b=p.length,x=[],A=0;A<b;A++)x[A>>>2]|=(p.charCodeAt(A)&255)<<24-A%4*8;return new h.init(x,b)}},m=f.Utf8={stringify:function(p){try{return decodeURIComponent(escape(y.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return y.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=m.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,A=x.words,k=x.sigBytes,B=this.blockSize,L=B*4,R=k/L;p?R=a.ceil(R):R=a.max((R|0)-this._minBufferSize,0);var C=R*B,S=a.min(C*4,k);if(C){for(var T=0;T<C;T+=B)this._doProcessBlock(A,T);b=A.splice(0,C),x.sigBytes-=S}return new h.init(b,S)},clone:function(){var p=u.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(p){return function(b,x){return new p.init(x).finalize(b)}},_createHmacHelper:function(p){return function(b,x){return new E.HMAC.init(p,x).finalize(b)}}});var E=d.algo={};return d}(Math);return t})}(Nn)),Nn.exports}var Mn={exports:{}},cr;function nn(){return cr||(cr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),d.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,h=[],f=0;f<u;f++){var g=c[f];h.push(g.high),h.push(g.low)}return l.create(h,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),h=u.length,f=0;f<h;f++)u[f]=u[f].clone();return c}})}(),t})}(Mn)),Mn.exports}var zn={exports:{}},fr;function as(){return fr||(fr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,u=[],h=0;h<c;h++)u[h>>>2]|=d[h]<<24-h%4*8;s.call(this,u,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Fn={exports:{}},dr;function rs(){return dr||(dr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,u=d.sigBytes,h=[],f=0;f<u;f+=2){var g=c[f>>>2]>>>16-f%4*8&65535;h.push(String.fromCharCode(g))}return h.join("")},parse:function(d){for(var c=d.length,u=[],h=0;h<c;h++)u[h>>>1]|=d.charCodeAt(h)<<16-h%2*16;return i.create(u,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,u=d.sigBytes,h=[],f=0;f<u;f+=2){var g=l(c[f>>>2]>>>16-f%4*8&65535);h.push(String.fromCharCode(g))}return h.join("")},parse:function(d){for(var c=d.length,u=[],h=0;h<c;h++)u[h>>>1]|=l(d.charCodeAt(h)<<16-h%2*16);return i.create(u,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Fn)),Fn.exports}var Pn={exports:{}},ur;function Ot(){return ur||(ur=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,u=d.sigBytes,h=this._map;d.clamp();for(var f=[],g=0;g<u;g+=3)for(var y=c[g>>>2]>>>24-g%4*8&255,m=c[g+1>>>2]>>>24-(g+1)%4*8&255,v=c[g+2>>>2]>>>24-(g+2)%4*8&255,E=y<<16|m<<8|v,p=0;p<4&&g+p*.75<u;p++)f.push(h.charAt(E>>>6*(3-p)&63));var b=h.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(d){var c=d.length,u=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var f=0;f<u.length;f++)h[u.charCodeAt(f)]=f}var g=u.charAt(64);if(g){var y=d.indexOf(g);y!==-1&&(c=y)}return l(d,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,u){for(var h=[],f=0,g=0;g<c;g++)if(g%4){var y=u[d.charCodeAt(g-1)]<<g%4*2,m=u[d.charCodeAt(g)]>>>6-g%4*2,v=y|m;h[f>>>2]|=v<<24-f%4*8,f++}return i.create(h,f)}}(),t.enc.Base64})}(Pn)),Pn.exports}var qn={exports:{}},hr;function is(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var u=d.words,h=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],y=0;y<h;y+=3)for(var m=u[y>>>2]>>>24-y%4*8&255,v=u[y+1>>>2]>>>24-(y+1)%4*8&255,E=u[y+2>>>2]>>>24-(y+2)%4*8&255,p=m<<16|v<<8|E,b=0;b<4&&y+b*.75<h;b++)g.push(f.charAt(p>>>6*(3-b)&63));var x=f.charAt(64);if(x)for(;g.length%4;)g.push(x);return g.join("")},parse:function(d,c=!0){var u=d.length,h=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<h.length;g++)f[h.charCodeAt(g)]=g}var y=h.charAt(64);if(y){var m=d.indexOf(y);m!==-1&&(u=m)}return l(d,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,u){for(var h=[],f=0,g=0;g<c;g++)if(g%4){var y=u[d.charCodeAt(g-1)]<<g%4*2,m=u[d.charCodeAt(g)]>>>6-g%4*2,v=y|m;h[f>>>2]|=v<<24-f%4*8,f++}return i.create(h,f)}}(),t.enc.Base64url})}(qn)),qn.exports}var Hn={exports:{}},gr;function Lt(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var m=0;m<64;m++)c[m]=a.abs(a.sin(m+1))*4294967296|0})();var u=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,v){for(var E=0;E<16;E++){var p=v+E,b=m[p];m[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,A=m[v+0],k=m[v+1],B=m[v+2],L=m[v+3],R=m[v+4],C=m[v+5],S=m[v+6],T=m[v+7],w=m[v+8],I=m[v+9],N=m[v+10],O=m[v+11],M=m[v+12],q=m[v+13],j=m[v+14],G=m[v+15],F=x[0],P=x[1],_=x[2],D=x[3];F=h(F,P,_,D,A,7,c[0]),D=h(D,F,P,_,k,12,c[1]),_=h(_,D,F,P,B,17,c[2]),P=h(P,_,D,F,L,22,c[3]),F=h(F,P,_,D,R,7,c[4]),D=h(D,F,P,_,C,12,c[5]),_=h(_,D,F,P,S,17,c[6]),P=h(P,_,D,F,T,22,c[7]),F=h(F,P,_,D,w,7,c[8]),D=h(D,F,P,_,I,12,c[9]),_=h(_,D,F,P,N,17,c[10]),P=h(P,_,D,F,O,22,c[11]),F=h(F,P,_,D,M,7,c[12]),D=h(D,F,P,_,q,12,c[13]),_=h(_,D,F,P,j,17,c[14]),P=h(P,_,D,F,G,22,c[15]),F=f(F,P,_,D,k,5,c[16]),D=f(D,F,P,_,S,9,c[17]),_=f(_,D,F,P,O,14,c[18]),P=f(P,_,D,F,A,20,c[19]),F=f(F,P,_,D,C,5,c[20]),D=f(D,F,P,_,N,9,c[21]),_=f(_,D,F,P,G,14,c[22]),P=f(P,_,D,F,R,20,c[23]),F=f(F,P,_,D,I,5,c[24]),D=f(D,F,P,_,j,9,c[25]),_=f(_,D,F,P,L,14,c[26]),P=f(P,_,D,F,w,20,c[27]),F=f(F,P,_,D,q,5,c[28]),D=f(D,F,P,_,B,9,c[29]),_=f(_,D,F,P,T,14,c[30]),P=f(P,_,D,F,M,20,c[31]),F=g(F,P,_,D,C,4,c[32]),D=g(D,F,P,_,w,11,c[33]),_=g(_,D,F,P,O,16,c[34]),P=g(P,_,D,F,j,23,c[35]),F=g(F,P,_,D,k,4,c[36]),D=g(D,F,P,_,R,11,c[37]),_=g(_,D,F,P,T,16,c[38]),P=g(P,_,D,F,N,23,c[39]),F=g(F,P,_,D,q,4,c[40]),D=g(D,F,P,_,A,11,c[41]),_=g(_,D,F,P,L,16,c[42]),P=g(P,_,D,F,S,23,c[43]),F=g(F,P,_,D,I,4,c[44]),D=g(D,F,P,_,M,11,c[45]),_=g(_,D,F,P,G,16,c[46]),P=g(P,_,D,F,B,23,c[47]),F=y(F,P,_,D,A,6,c[48]),D=y(D,F,P,_,T,10,c[49]),_=y(_,D,F,P,j,15,c[50]),P=y(P,_,D,F,C,21,c[51]),F=y(F,P,_,D,M,6,c[52]),D=y(D,F,P,_,L,10,c[53]),_=y(_,D,F,P,N,15,c[54]),P=y(P,_,D,F,k,21,c[55]),F=y(F,P,_,D,w,6,c[56]),D=y(D,F,P,_,G,10,c[57]),_=y(_,D,F,P,S,15,c[58]),P=y(P,_,D,F,q,21,c[59]),F=y(F,P,_,D,R,6,c[60]),D=y(D,F,P,_,O,10,c[61]),_=y(_,D,F,P,B,15,c[62]),P=y(P,_,D,F,I,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+P|0,x[2]=x[2]+_|0,x[3]=x[3]+D|0},_doFinalize:function(){var m=this._data,v=m.words,E=this._nDataBytes*8,p=m.sigBytes*8;v[p>>>5]|=128<<24-p%32;var b=a.floor(E/4294967296),x=E;v[(p+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,m.sigBytes=(v.length+1)*4,this._process();for(var A=this._hash,k=A.words,B=0;B<4;B++){var L=k[B];k[B]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}return A},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});function h(m,v,E,p,b,x,A){var k=m+(v&E|~v&p)+b+A;return(k<<x|k>>>32-x)+v}function f(m,v,E,p,b,x,A){var k=m+(v&p|E&~p)+b+A;return(k<<x|k>>>32-x)+v}function g(m,v,E,p,b,x,A){var k=m+(v^E^p)+b+A;return(k<<x|k>>>32-x)+v}function y(m,v,E,p,b,x,A){var k=m+(E^(v|~p))+b+A;return(k<<x|k>>>32-x)+v}r.MD5=l._createHelper(u),r.HmacMD5=l._createHmacHelper(u)}(Math),t.MD5})}(Hn)),Hn.exports}var Vn={exports:{}},mr;function jn(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,h){for(var f=this._hash.words,g=f[0],y=f[1],m=f[2],v=f[3],E=f[4],p=0;p<80;p++){if(p<16)d[p]=u[h+p]|0;else{var b=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=b<<1|b>>>31}var x=(g<<5|g>>>27)+E+d[p];p<20?x+=(y&m|~y&v)+1518500249:p<40?x+=(y^m^v)+1859775393:p<60?x+=(y&m|y&v|m&v)-1894007588:x+=(y^m^v)-899497514,E=v,v=m,m=y<<30|y>>>2,y=g,g=x}f[0]=f[0]+g|0,f[1]=f[1]+y|0,f[2]=f[2]+m|0,f[3]=f[3]+v|0,f[4]=f[4]+E|0},_doFinalize:function(){var u=this._data,h=u.words,f=this._nDataBytes*8,g=u.sigBytes*8;return h[g>>>5]|=128<<24-g%32,h[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),h[(g+64>>>9<<4)+15]=f,u.sigBytes=h.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})}(Vn)),Vn.exports}var Un={exports:{}},yr;function xr(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],u=[];(function(){function g(E){for(var p=a.sqrt(E),b=2;b<=p;b++)if(!(E%b))return!1;return!0}function y(E){return(E-(E|0))*4294967296|0}for(var m=2,v=0;v<64;)g(m)&&(v<8&&(c[v]=y(a.pow(m,1/2))),u[v]=y(a.pow(m,1/3)),v++),m++})();var h=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,y){for(var m=this._hash.words,v=m[0],E=m[1],p=m[2],b=m[3],x=m[4],A=m[5],k=m[6],B=m[7],L=0;L<64;L++){if(L<16)h[L]=g[y+L]|0;else{var R=h[L-15],C=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,S=h[L-2],T=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;h[L]=C+h[L-7]+T+h[L-16]}var w=x&A^~x&k,I=v&E^v&p^E&p,N=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),O=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),M=B+O+w+u[L]+h[L],q=N+I;B=k,k=A,A=x,x=b+M|0,b=p,p=E,E=v,v=M+q|0}m[0]=m[0]+v|0,m[1]=m[1]+E|0,m[2]=m[2]+p|0,m[3]=m[3]+b|0,m[4]=m[4]+x|0,m[5]=m[5]+A|0,m[6]=m[6]+k|0,m[7]=m[7]+B|0},_doFinalize:function(){var g=this._data,y=g.words,m=this._nDataBytes*8,v=g.sigBytes*8;return y[v>>>5]|=128<<24-v%32,y[(v+64>>>9<<4)+14]=a.floor(m/4294967296),y[(v+64>>>9<<4)+15]=m,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA256=l._createHelper(f),r.HmacSHA256=l._createHmacHelper(f)}(Math),t.SHA256})}(Un)),Un.exports}var Gn={exports:{}},pr;function ls(){return pr||(pr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),xr())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=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(d),a.HmacSHA224=l._createHmacHelper(d)}(),t.SHA224})}(Gn)),Gn.exports}var Wn={exports:{}},br;function vr(){return br||(br=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function u(){return l.create.apply(l,arguments)}var h=[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)],f=[];(function(){for(var y=0;y<80;y++)f[y]=u()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new d.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(y,m){for(var v=this._hash.words,E=v[0],p=v[1],b=v[2],x=v[3],A=v[4],k=v[5],B=v[6],L=v[7],R=E.high,C=E.low,S=p.high,T=p.low,w=b.high,I=b.low,N=x.high,O=x.low,M=A.high,q=A.low,j=k.high,G=k.low,F=B.high,P=B.low,_=L.high,D=L.low,z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Se,de=ae,Se=re,re=ne+Qe|0,ae=ee+At+(re>>>0<ne>>>0?1:0)|0,ee=Q,ne=Z,Q=J,Z=$,J=z,$=U,U=Qe+D0|0,z=At+ou+(U>>>0<Qe>>>0?1:0)|0}C=E.low=C+U,E.high=R+z+(C>>>0<U>>>0?1:0),T=p.low=T+$,p.high=S+J+(T>>>0<$>>>0?1:0),I=b.low=I+Z,b.high=w+Q+(I>>>0<Z>>>0?1:0),O=x.low=O+ne,x.high=N+ee+(O>>>0<ne>>>0?1:0),q=A.low=q+re,A.high=M+ae+(q>>>0<re>>>0?1:0),G=k.low=G+Se,k.high=j+de+(G>>>0<Se>>>0?1:0),P=B.low=P+Re,B.high=F+De+(P>>>0<Re>>>0?1:0),D=L.low=D+Ue,L.high=_+je+(D>>>0<Ue>>>0?1:0)},_doFinalize:function(){var y=this._data,m=y.words,v=this._nDataBytes*8,E=y.sigBytes*8;m[E>>>5]|=128<<24-E%32,m[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),m[(E+128>>>10<<5)+31]=v,y.sigBytes=m.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=i._createHelper(g),a.HmacSHA512=i._createHmacHelper(g)}(),t.SHA512})}(Wn)),Wn.exports}var $n={exports:{}},Sr;function ss(){return Sr||(Sr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn(),vr())})(ce,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.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=d._doFinalize.call(this);return u.sigBytes-=16,u}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}($n)),$n.exports}var Zn={exports:{}},Cr;function cs(){return Cr||(Cr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,u=r.algo,h=[],f=[],g=[];(function(){for(var v=1,E=0,p=0;p<24;p++){h[v+5*E]=(p+1)*(p+2)/2%64;var b=E%5,x=(2*v+3*E)%5;v=b,E=x}for(var v=0;v<5;v++)for(var E=0;E<5;E++)f[v+5*E]=E+(2*v+3*E)%5*5;for(var A=1,k=0;k<24;k++){for(var B=0,L=0,R=0;R<7;R++){if(A&1){var C=(1<<R)-1;C<32?L^=1<<C:B^=1<<C-32}A&128?A=A<<1^113:A<<=1}g[k]=c.create(B,L)}})();var y=[];(function(){for(var v=0;v<25;v++)y[v]=c.create()})();var m=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 p=this._state,b=this.blockSize/2,x=0;x<b;x++){var A=v[E+2*x],k=v[E+2*x+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var B=p[x];B.high^=k,B.low^=A}for(var L=0;L<24;L++){for(var R=0;R<5;R++){for(var C=0,S=0,T=0;T<5;T++){var B=p[R+5*T];C^=B.high,S^=B.low}var w=y[R];w.high=C,w.low=S}for(var R=0;R<5;R++)for(var I=y[(R+4)%5],N=y[(R+1)%5],O=N.high,M=N.low,C=I.high^(O<<1|M>>>31),S=I.low^(M<<1|O>>>31),T=0;T<5;T++){var B=p[R+5*T];B.high^=C,B.low^=S}for(var q=1;q<25;q++){var C,S,B=p[q],j=B.high,G=B.low,F=h[q];F<32?(C=j<<F|G>>>32-F,S=G<<F|j>>>32-F):(C=G<<F-32|j>>>64-F,S=j<<F-32|G>>>64-F);var P=y[f[q]];P.high=C,P.low=S}var _=y[0],D=p[0];_.high=D.high,_.low=D.low;for(var R=0;R<5;R++)for(var T=0;T<5;T++){var q=R+5*T,B=p[q],z=y[q],U=y[(R+1)%5+5*T],J=y[(R+2)%5+5*T];B.high=z.high^~U.high&J.high,B.low=z.low^~U.low&J.low}var B=p[0],$=g[L];B.high^=$.high,B.low^=$.low}},_doFinalize:function(){var v=this._data,E=v.words;this._nDataBytes*8;var p=v.sigBytes*8,b=this.blockSize*32;E[p>>>5]|=1<<24-p%32,E[(a.ceil((p+1)/b)*b>>>5)-1]|=128,v.sigBytes=E.length*4,this._process();for(var x=this._state,A=this.cfg.outputLength/8,k=A/8,B=[],L=0;L<k;L++){var R=x[L],C=R.high,S=R.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,B.push(S),B.push(C)}return new s.init(B,A)},clone:function(){for(var v=l.clone.call(this),E=v._state=this._state.slice(0),p=0;p<25;p++)E[p]=E[p].clone();return v}});r.SHA3=l._createHelper(m),r.HmacSHA3=l._createHmacHelper(m)}(Math),t.SHA3})}(Zn)),Zn.exports}var Yn={exports:{}},wr;function fs(){return wr||(wr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,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(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]),y=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(k,E){for(var O=0;O<16;O++){var N=E+O,B=k[N];k[N]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var C=this._hash.words,D=h.words,v=m.words,I=c.words,F=u.words,L=y.words,z=d.words,H,j,P,A,R,T,M,U,Z,ne;T=H=C[0],M=j=C[1],U=P=C[2],Z=A=C[3],ne=R=C[4];for(var $,O=0;O<80;O+=1)$=H+k[E+I[O]]|0,O<16?$+=S(j,P,A)+D[0]:O<32?$+=_(j,P,A)+D[1]:O<48?$+=b(j,P,A)+D[2]:O<64?$+=p(j,P,A)+D[3]:$+=x(j,P,A)+D[4],$=$|0,$=w($,L[O]),$=$+R|0,H=R,R=A,A=w(P,10),P=j,j=$,$=T+k[E+F[O]]|0,O<16?$+=x(M,U,Z)+v[0]:O<32?$+=p(M,U,Z)+v[1]:O<48?$+=b(M,U,Z)+v[2]:O<64?$+=_(M,U,Z)+v[3]:$+=S(M,U,Z)+v[4],$=$|0,$=w($,z[O]),$=$+ne|0,T=ne,ne=Z,Z=w(U,10),U=M,M=$;$=C[1]+P+Z|0,C[1]=C[2]+A+ne|0,C[2]=C[3]+R+T|0,C[3]=C[4]+H+M|0,C[4]=C[0]+j+U|0,C[0]=$},_doFinalize:function(){var k=this._data,E=k.words,O=this._nDataBytes*8,N=k.sigBytes*8;E[N>>>5]|=128<<24-N%32,E[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var B=this._hash,C=B.words,D=0;D<5;D++){var v=C[D];C[D]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}return B},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function S(k,E,O){return k^E^O}function _(k,E,O){return k&E|~k&O}function b(k,E,O){return(k|~E)^O}function p(k,E,O){return k&O|E&~O}function x(k,E,O){return k^(E|~O)}function w(k,E){return k<<E|k>>>32-E}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},Ar;function Qn(){return Ar||(Ar=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 y=c.blockSize,d=y*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,S=m.words,_=0;_<y;_++)g[_]^=1549556828,S[_]^=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,y=u.finalize(c);u.reset();var d=u.finalize(this._oKey.clone().concat(y));return d}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},kr;function ls(){return kr||(kr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),jn(),Qn())})(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(y){this.cfg=this.cfg.extend(y)},compute:function(y,d){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),S=s.create([1]),_=g.words,b=S.words,p=h.keySize,x=h.iterations;_.length<p;){var w=m.update(d).finalize(S);m.reset();for(var k=w.words,E=k.length,O=w,N=1;N<x;N++){O=m.finalize(O),m.reset();for(var B=O.words,C=0;C<E;C++)k[C]^=B[C]}g.concat(w),b[0]++}return g.sigBytes=p*4,g}});a.PBKDF2=function(y,d,h){return u.create(h).compute(y,d)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Tr;function kt(){return Tr||(Tr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),jn(),Qn())})(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,y){for(var d,h=this.cfg,m=h.hasher.create(),g=s.create(),S=g.words,_=h.keySize,b=h.iterations;S.length<_;){d&&m.update(d),d=m.update(u).finalize(y),m.reset();for(var p=1;p<b;p++)d=m.finalize(d),m.reset();g.concat(d)}return g.sigBytes=_*4,g}});a.EvpKDF=function(u,y,d){return c.create(d).compute(u,y)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Br;function Oe(){return Br||(Br=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,y=r.algo,d=y.EvpKDF,h=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(B,C){return this.create(this._ENC_XFORM_MODE,B,C)},createDecryptor:function(B,C){return this.create(this._DEC_XFORM_MODE,B,C)},init:function(B,C,D){this.cfg=this.cfg.extend(D),this._xformMode=B,this._key=C,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 C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(C){return typeof C=="string"?N:k}return function(C){return{encrypt:function(D,v,I){return B(v).encrypt(C,D,v,I)},decrypt:function(D,v,I){return B(v).decrypt(C,D,v,I)}}}}()});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,C){return this.Encryptor.create(B,C)},createDecryptor:function(B,C){return this.Decryptor.create(B,C)},init:function(B,C){this._cipher=B,this._iv=C}}),S=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(D,v){var I=this._cipher,F=I.blockSize;C.call(this,D,v,F),I.encryptBlock(D,v),this._prevBlock=D.slice(v,v+F)}}),B.Decryptor=B.extend({processBlock:function(D,v){var I=this._cipher,F=I.blockSize,L=D.slice(v,v+F);I.decryptBlock(D,v),C.call(this,D,v,F),this._prevBlock=L}});function C(D,v,I){var F,L=this._iv;L?(F=L,this._iv=a):F=this._prevBlock;for(var z=0;z<I;z++)D[v+z]^=F[z]}return B}(),_=r.pad={},b=_.Pkcs7={pad:function(B,C){for(var D=C*4,v=D-B.sigBytes%D,I=v<<24|v<<16|v<<8|v,F=[],L=0;L<v;L+=4)F.push(I);var z=l.create(F,v);B.concat(z)},unpad:function(B){var C=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=C}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:S,padding:b}),reset:function(){var B;h.reset.call(this);var C=this.cfg,D=C.iv,v=C.mode;this._xformMode==this._ENC_XFORM_MODE?B=v.createEncryptor:(B=v.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,D&&D.words):(this._mode=B.call(v,this,D&&D.words),this._mode.__creator=B)},_doProcessBlock:function(B,C){this._mode.processBlock(B,C)},_doFinalize:function(){var B,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),C.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)}}),x=r.format={},w=x.OpenSSL={stringify:function(B){var C,D=B.ciphertext,v=B.salt;return v?C=l.create([1398893684,1701076831]).concat(v).concat(D):C=D,C.toString(u)},parse:function(B){var C,D=u.parse(B),v=D.words;return v[0]==1398893684&&v[1]==1701076831&&(C=l.create(v.slice(2,4)),v.splice(0,4),D.sigBytes-=16),p.create({ciphertext:D,salt:C})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(B,C,D,v){v=this.cfg.extend(v);var I=B.createEncryptor(D,v),F=I.finalize(C),L=I.cfg;return p.create({ciphertext:F,key:D,iv:L.iv,algorithm:B,mode:L.mode,padding:L.padding,blockSize:B.blockSize,formatter:v.format})},decrypt:function(B,C,D,v){v=this.cfg.extend(v),C=this._parse(C,v.format);var I=B.createDecryptor(D,v).finalize(C.ciphertext);return I},_parse:function(B,C){return typeof B=="string"?C.parse(B,this):B}}),E=r.kdf={},O=E.OpenSSL={execute:function(B,C,D,v){v||(v=l.random(64/8));var I=d.create({keySize:C+D}).compute(B,v),F=l.create(I.words.slice(C),D*4);return I.sigBytes=C*4,p.create({key:I,iv:F,salt:v})}},N=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:O}),encrypt:function(B,C,D,v){v=this.cfg.extend(v);var I=v.kdf.execute(D,B.keySize,B.ivSize);v.iv=I.iv;var F=k.encrypt.call(this,B,C,I.key,v);return F.mixIn(I),F},decrypt:function(B,C,D,v){v=this.cfg.extend(v),C=this._parse(C,v.format);var I=v.kdf.execute(D,B.keySize,B.ivSize,C.salt);v.iv=I.iv;var F=k.decrypt.call(this,B,C,I.key,v);return F}})}()})}(eo)),eo.exports}var to={exports:{}},Er;function ss(){return Er||(Er=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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 y=0;y<l;y++)i[s+y]^=c[y]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Dr;function cs(){return Dr||(Dr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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 y=u.slice(0);l.encryptBlock(y,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)i[s+d]^=y[d]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},_r;function fs(){return _r||(_r=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(le,function(t){/** @preserve
|
|
67
|
+
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=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]),h=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]),f=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]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),m=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,B){for(var L=0;L<16;L++){var R=B+L,C=k[R];k[R]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var S=this._hash.words,T=g.words,w=y.words,I=c.words,N=u.words,O=h.words,M=f.words,q,j,G,F,P,_,D,z,U,J;_=q=S[0],D=j=S[1],z=G=S[2],U=F=S[3],J=P=S[4];for(var $,L=0;L<80;L+=1)$=q+k[B+I[L]]|0,L<16?$+=v(j,G,F)+T[0]:L<32?$+=E(j,G,F)+T[1]:L<48?$+=p(j,G,F)+T[2]:L<64?$+=b(j,G,F)+T[3]:$+=x(j,G,F)+T[4],$=$|0,$=A($,O[L]),$=$+P|0,q=P,P=F,F=A(G,10),G=j,j=$,$=_+k[B+N[L]]|0,L<16?$+=x(D,z,U)+w[0]:L<32?$+=b(D,z,U)+w[1]:L<48?$+=p(D,z,U)+w[2]:L<64?$+=E(D,z,U)+w[3]:$+=v(D,z,U)+w[4],$=$|0,$=A($,M[L]),$=$+J|0,_=J,J=U,U=A(z,10),z=D,D=$;$=S[1]+G+U|0,S[1]=S[2]+F+J|0,S[2]=S[3]+P+_|0,S[3]=S[4]+q+D|0,S[4]=S[0]+j+z|0,S[0]=$},_doFinalize:function(){var k=this._data,B=k.words,L=this._nDataBytes*8,R=k.sigBytes*8;B[R>>>5]|=128<<24-R%32,B[(R+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,k.sigBytes=(B.length+1)*4,this._process();for(var C=this._hash,S=C.words,T=0;T<5;T++){var w=S[T];S[T]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return C},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function v(k,B,L){return k^B^L}function E(k,B,L){return k&B|~k&L}function p(k,B,L){return(k|~B)^L}function b(k,B,L){return k&L|B&~L}function x(k,B,L){return k^(B|~L)}function A(k,B){return k<<B|k>>>32-B}r.RIPEMD160=l._createHelper(m),r.HmacRIPEMD160=l._createHmacHelper(m)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},Ar;function Qn(){return Ar||(Ar=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=l.parse(u));var h=c.blockSize,f=h*4;u.sigBytes>f&&(u=c.finalize(u)),u.clamp();for(var g=this._oKey=u.clone(),y=this._iKey=u.clone(),m=g.words,v=y.words,E=0;E<h;E++)m[E]^=1549556828,v[E]^=909522486;g.sigBytes=y.sigBytes=f,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,h=u.finalize(c);u.reset();var f=u.finalize(this._oKey.clone().concat(h));return f}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},kr;function ds(){return kr||(kr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,u=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,f){for(var g=this.cfg,y=c.create(g.hasher,h),m=s.create(),v=s.create([1]),E=m.words,p=v.words,b=g.keySize,x=g.iterations;E.length<b;){var A=y.update(f).finalize(v);y.reset();for(var k=A.words,B=k.length,L=A,R=1;R<x;R++){L=y.finalize(L),y.reset();for(var C=L.words,S=0;S<B;S++)k[S]^=C[S]}m.concat(A),p[0]++}return m.sigBytes=b*4,m}});a.PBKDF2=function(h,f,g){return u.create(g).compute(h,f)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Tr;function Tt(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,h){for(var f,g=this.cfg,y=g.hasher.create(),m=s.create(),v=m.words,E=g.keySize,p=g.iterations;v.length<E;){f&&y.update(f),f=y.update(u).finalize(h),y.reset();for(var b=1;b<p;b++)f=y.finalize(f),y.reset();m.concat(f)}return m.sigBytes=E*4,m}});a.EvpKDF=function(u,h,f){return c.create(f).compute(u,h)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Br;function Fe(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Tt())})(ce,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var u=c.Base64,h=r.algo,f=h.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(C,S){return this.create(this._ENC_XFORM_MODE,C,S)},createDecryptor:function(C,S){return this.create(this._DEC_XFORM_MODE,C,S)},init:function(C,S,T){this.cfg=this.cfg.extend(T),this._xformMode=C,this._key=S,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(S){return typeof S=="string"?R:k}return function(S){return{encrypt:function(T,w,I){return C(w).encrypt(S,T,w,I)},decrypt:function(T,w,I){return C(w).decrypt(S,T,w,I)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var y=r.mode={},m=i.BlockCipherMode=s.extend({createEncryptor:function(C,S){return this.Encryptor.create(C,S)},createDecryptor:function(C,S){return this.Decryptor.create(C,S)},init:function(C,S){this._cipher=C,this._iv=S}}),v=y.CBC=function(){var C=m.extend();C.Encryptor=C.extend({processBlock:function(T,w){var I=this._cipher,N=I.blockSize;S.call(this,T,w,N),I.encryptBlock(T,w),this._prevBlock=T.slice(w,w+N)}}),C.Decryptor=C.extend({processBlock:function(T,w){var I=this._cipher,N=I.blockSize,O=T.slice(w,w+N);I.decryptBlock(T,w),S.call(this,T,w,N),this._prevBlock=O}});function S(T,w,I){var N,O=this._iv;O?(N=O,this._iv=a):N=this._prevBlock;for(var M=0;M<I;M++)T[w+M]^=N[M]}return C}(),E=r.pad={},p=E.Pkcs7={pad:function(C,S){for(var T=S*4,w=T-C.sigBytes%T,I=w<<24|w<<16|w<<8|w,N=[],O=0;O<w;O+=4)N.push(I);var M=l.create(N,w);C.concat(M)},unpad:function(C){var S=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=S}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:v,padding:p}),reset:function(){var C;g.reset.call(this);var S=this.cfg,T=S.iv,w=S.mode;this._xformMode==this._ENC_XFORM_MODE?C=w.createEncryptor:(C=w.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,T&&T.words):(this._mode=C.call(w,this,T&&T.words),this._mode.__creator=C)},_doProcessBlock:function(C,S){this._mode.processBlock(C,S)},_doFinalize:function(){var C,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),S.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),x=r.format={},A=x.OpenSSL={stringify:function(C){var S,T=C.ciphertext,w=C.salt;return w?S=l.create([1398893684,1701076831]).concat(w).concat(T):S=T,S.toString(u)},parse:function(C){var S,T=u.parse(C),w=T.words;return w[0]==1398893684&&w[1]==1701076831&&(S=l.create(w.slice(2,4)),w.splice(0,4),T.sigBytes-=16),b.create({ciphertext:T,salt:S})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:A}),encrypt:function(C,S,T,w){w=this.cfg.extend(w);var I=C.createEncryptor(T,w),N=I.finalize(S),O=I.cfg;return b.create({ciphertext:N,key:T,iv:O.iv,algorithm:C,mode:O.mode,padding:O.padding,blockSize:C.blockSize,formatter:w.format})},decrypt:function(C,S,T,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var I=C.createDecryptor(T,w).finalize(S.ciphertext);return I},_parse:function(C,S){return typeof C=="string"?S.parse(C,this):C}}),B=r.kdf={},L=B.OpenSSL={execute:function(C,S,T,w){w||(w=l.random(64/8));var I=f.create({keySize:S+T}).compute(C,w),N=l.create(I.words.slice(S),T*4);return I.sigBytes=S*4,b.create({key:I,iv:N,salt:w})}},R=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:L}),encrypt:function(C,S,T,w){w=this.cfg.extend(w);var I=w.kdf.execute(T,C.keySize,C.ivSize);w.iv=I.iv;var N=k.encrypt.call(this,C,S,I.key,w);return N.mixIn(I),N},decrypt:function(C,S,T,w){w=this.cfg.extend(w),S=this._parse(S,w.format);var I=w.kdf.execute(T,C.keySize,C.ivSize,S.salt);w.iv=I.iv;var N=k.decrypt.call(this,C,S,I.key,w);return N}})}()})}(eo)),eo.exports}var to={exports:{}},Er;function us(){return Er||(Er=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var h=0;h<l;h++)i[s+h]^=c[h]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Dr;function hs(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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,d=l.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var h=u.slice(0);l.encryptBlock(h,0),u[d-1]=u[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=h[f]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},Ir;function gs(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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 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,y=this._iv,d=this._counter;y&&(d=this._counter=y.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})}(oo)),oo.exports}var ao={exports:{}},Rr;function ds(){return Rr||(Rr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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 y=0;y<f;y++)i[s+y]^=u[y]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},Ir;function us(){return Ir||(Ir=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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})}(ro)),ro.exports}var io={exports:{}},Lr;function hs(){return Lr||(Lr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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})}(io)),io.exports}var lo={exports:{}},Or;function gs(){return Or||(Or=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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})}(lo)),lo.exports}var so={exports:{}},Nr;function ms(){return Nr||(Nr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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})}(so)),so.exports}var co={exports:{}},Mr;function ys(){return Mr||(Mr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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})}(co)),co.exports}var fo={exports:{}},Fr;function xs(){return Fr||(Fr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(le,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},zr;function ps(){return zr||(zr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),Oe())})(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 y=f.parse(u);return s.create({ciphertext:y})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},Pr;function bs(){return Pr||(Pr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Lt(),kt(),Oe())})(le,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],u=[],y=[],d=[],h=[],m=[],g=[],S=[];(function(){for(var p=[],x=0;x<256;x++)x<128?p[x]=x<<1:p[x]=x<<1^283;for(var w=0,k=0,x=0;x<256;x++){var E=k^k<<1^k<<2^k<<3^k<<4;E=E>>>8^E&255^99,l[w]=E,f[E]=w;var O=p[w],N=p[O],B=p[N],C=p[E]*257^E*16843008;c[w]=C<<24|C>>>8,u[w]=C<<16|C>>>16,y[w]=C<<8|C>>>24,d[w]=C;var C=B*16843009^N*65537^O*257^w*16843008;h[E]=C<<24|C>>>8,m[E]=C<<16|C>>>16,g[E]=C<<8|C>>>24,S[E]=C,w?(w=O^p[p[p[B^O]]],k^=p[p[k]]):w=k=1}})();var _=[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 x=this._keyPriorReset=this._key,w=x.words,k=x.sigBytes/4,E=this._nRounds=k+6,O=(E+1)*4,N=this._keySchedule=[],B=0;B<O;B++)B<k?N[B]=w[B]:(p=N[B-1],B%k?k>6&&B%k==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^=_[B/k|0]<<24),N[B]=N[B-k]^p);for(var C=this._invKeySchedule=[],D=0;D<O;D++){var B=O-D;if(D%4)var p=N[B];else var p=N[B-4];D<4||B<=4?C[D]=p:C[D]=h[l[p>>>24]]^m[l[p>>>16&255]]^g[l[p>>>8&255]]^S[l[p&255]]}}},encryptBlock:function(p,x){this._doCryptBlock(p,x,this._keySchedule,c,u,y,d,l)},decryptBlock:function(p,x){var w=p[x+1];p[x+1]=p[x+3],p[x+3]=w,this._doCryptBlock(p,x,this._invKeySchedule,h,m,g,S,f);var w=p[x+1];p[x+1]=p[x+3],p[x+3]=w},_doCryptBlock:function(p,x,w,k,E,O,N,B){for(var C=this._nRounds,D=p[x]^w[0],v=p[x+1]^w[1],I=p[x+2]^w[2],F=p[x+3]^w[3],L=4,z=1;z<C;z++){var H=k[D>>>24]^E[v>>>16&255]^O[I>>>8&255]^N[F&255]^w[L++],j=k[v>>>24]^E[I>>>16&255]^O[F>>>8&255]^N[D&255]^w[L++],P=k[I>>>24]^E[F>>>16&255]^O[D>>>8&255]^N[v&255]^w[L++],A=k[F>>>24]^E[D>>>16&255]^O[v>>>8&255]^N[I&255]^w[L++];D=H,v=j,I=P,F=A}var H=(B[D>>>24]<<24|B[v>>>16&255]<<16|B[I>>>8&255]<<8|B[F&255])^w[L++],j=(B[v>>>24]<<24|B[I>>>16&255]<<16|B[F>>>8&255]<<8|B[D&255])^w[L++],P=(B[I>>>24]<<24|B[F>>>16&255]<<16|B[D>>>8&255]<<8|B[v&255])^w[L++],A=(B[F>>>24]<<24|B[D>>>16&255]<<16|B[v>>>8&255]<<8|B[I&255])^w[L++];p[x]=H,p[x+1]=j,p[x+2]=P,p[x+3]=A},keySize:256/32});a.AES=i._createHelper(b)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},Hr;function vs(){return Hr||(Hr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Lt(),kt(),Oe())})(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],y=[{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 _=this._key,b=_.words,p=[],x=0;x<56;x++){var w=f[x]-1;p[x]=b[w>>>5]>>>31-w%32&1}for(var k=this._subKeys=[],E=0;E<16;E++){for(var O=k[E]=[],N=u[E],x=0;x<24;x++)O[x/6|0]|=p[(c[x]-1+N)%28]<<31-x%6,O[4+(x/6|0)]|=p[28+(c[x+24]-1+N)%28]<<31-x%6;O[0]=O[0]<<1|O[0]>>>31;for(var x=1;x<7;x++)O[x]=O[x]>>>(x-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var B=this._invSubKeys=[],x=0;x<16;x++)B[x]=k[15-x]},encryptBlock:function(_,b){this._doCryptBlock(_,b,this._subKeys)},decryptBlock:function(_,b){this._doCryptBlock(_,b,this._invSubKeys)},_doCryptBlock:function(_,b,p){this._lBlock=_[b],this._rBlock=_[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 x=0;x<16;x++){for(var w=p[x],k=this._lBlock,E=this._rBlock,O=0,N=0;N<8;N++)O|=y[N][((E^w[N])&d[N])>>>0];this._lBlock=E,this._rBlock=k^O}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),_[b]=this._lBlock,_[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(_,b){var p=(this._lBlock>>>_^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<_}function g(_,b){var p=(this._rBlock>>>_^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<_}a.DES=s._createHelper(h);var S=l.TripleDES=s.extend({_doReset:function(){var _=this._key,b=_.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),x=b.length<4?b.slice(0,2):b.slice(2,4),w=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(p)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(w))},encryptBlock:function(_,b){this._des1.encryptBlock(_,b),this._des2.decryptBlock(_,b),this._des3.encryptBlock(_,b)},decryptBlock:function(_,b){this._des3.decryptBlock(_,b),this._des2.encryptBlock(_,b),this._des1.decryptBlock(_,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},qr;function Ss(){return qr||(qr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Lt(),kt(),Oe())})(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,y=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 S=m%d,_=y[S>>>2]>>>24-S%4*8&255;g=(g+h[m]+_)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(u,y){u[y]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,y=this._i,d=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,d=(d+u[y])%256;var g=u[y];u[y]=u[d],u[d]=g,h|=u[(u[y]+u[d])%256]<<24-m*8}return this._i=y,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})}(mo)),mo.exports}var yo={exports:{}},Vr;function Cs(){return Vr||(Vr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Lt(),kt(),Oe())})(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],S=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++)y.call(this);for(var m=0;m<8;m++)S[m]^=g[m+4&7];if(h){var _=h.words,b=_[0],p=_[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=x>>>16|w&4294901760,E=w<<16|x&65535;S[0]^=x,S[1]^=k,S[2]^=w,S[3]^=E,S[4]^=x,S[5]^=k,S[6]^=w,S[7]^=E;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(d,h){var m=this._X;y.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 y(){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],S=g&65535,_=g>>>16,b=((S*S>>>17)+S*_>>>15)+_*_,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})}(yo)),yo.exports}var xo={exports:{}},jr;function ws(){return jr||(jr=1,function(e,n){(function(t,a,r){e.exports=a(ce(),It(),Lt(),kt(),Oe())})(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 S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)g[S]^=m[S+4&7];if(h){var _=h.words,b=_[0],p=_[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=x>>>16|w&4294901760,E=w<<16|x&65535;g[0]^=x,g[1]^=k,g[2]^=w,g[3]^=E,g[4]^=x,g[5]^=k,g[6]^=w,g[7]^=E;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(d,h){var m=this._X;y.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 y(){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],S=g&65535,_=g>>>16,b=((S*S>>>17)+S*_>>>15)+_*_,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})}(xo)),xo.exports}(function(e,n){(function(t,a,r){e.exports=a(ce(),nn(),es(),ts(),It(),ns(),Lt(),jn(),xr(),os(),vr(),as(),rs(),is(),Qn(),ls(),kt(),Oe(),ss(),cs(),fs(),ds(),us(),hs(),gs(),ms(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws())})(le,function(t){return t})})(lr);var As=lr.exports;const We=ir(As);var ks="0123456789abcdefghijklmnopqrstuvwxyz";function dt(e){return ks.charAt(e)}function Ts(e,n){return e&n}function on(e,n){return e|n}function Gr(e,n){return e^n}function Ur(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 an(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 Zr(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 Nt,Ds={decode:function(e){var n;if(Nt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(
|
|
75
|
-
`}r&&(a=a-256);for(var
|
|
76
|
-
`,l="",
|
|
77
|
-
`;a/=2,r>a&&(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 bo?t=n:t=new bo(n,0);var a=new bo(t),r=new Yr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var y=[];if(i!==null){for(var d=s+i;t.pos<d;)y[y.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;y[y.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};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}(),Yr=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}(),yt,Ls=0xdeadbeefcafe,Kr=(Ls&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],Os=(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)+ln(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 Qr(t):a=new Jr(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,on,t),t},e.prototype.xor=function(n){var t=se();return this.bitwiseTo(n,Gr,t),t},e.prototype.andNot=function(n){var t=se();return this.bitwiseTo(n,Ur,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,on)},e.prototype.clearBit=function(n){return this.changeBit(n,Ur)},e.prototype.flipBit=function(n){return this.changeBit(n,Gr)},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 Qr(t):t.isEven()?s=new Ms(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 y=se();for(s.sqrTo(l[1],y);f<=u;)l[f]=se(),s.mulTo(y,l[f-2],l[f]),f+=2}var d=n.t-1,h,m=!0,g=se(),S;for(a=ln(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):(S=i,i=g,g=S),s.mulTo(g,l[h],i)}for(;d>=0&&!(n[d]&1<<a);)s.sqrTo(i,g),S=i,i=g,g=S,--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<Os;)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:ei(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-ln(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,y=s[u-1];if(y!=0){var d=y*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,g=1<<this.F2,S=a.t,_=S-u,b=t??se();for(s.dlShiftTo(_,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(;--_>=0;){var p=a[--S]==y?this.DM:Math.floor(a[S]*h+(a[S-1]+g)*m);if((a[S]+=s.am(0,p,a,_,0,u))<p)for(s.dlShiftTo(_,b),a.subTo(b,a);a[S]<--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=ln(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=ei(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),on,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),on,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}(),Qr=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}(),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 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}(),Ms=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 Te(e,n){return new re(e,n)}var Xr=typeof navigator<"u";Xr&&Kr&&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,y=f*c+u*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+f*u+(i>>>30),a[r++]=c&1073741823}return i},yt=30):Xr&&Kr&&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},yt=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,y=f*c+u*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+f*u,a[r++]=c&268435455}return i},yt=28),re.prototype.DB=yt,re.prototype.DM=(1<<yt)-1,re.prototype.DV=1<<yt;var vo=52;re.prototype.FV=Math.pow(2,vo),re.prototype.F1=vo-yt,re.prototype.F2=2*yt-vo;var rn=[],zt,Je;for(zt="0".charCodeAt(0),Je=0;Je<=9;++Je)rn[zt++]=Je;for(zt="a".charCodeAt(0),Je=10;Je<36;++Je)rn[zt++]=Je;for(zt="A".charCodeAt(0),Je=10;Je<36;++Je)rn[zt++]=Je;function ei(e,n){var t=rn[e.charCodeAt(n)];return t??-1}function xt(e){var n=se();return n.fromInt(e),n}function ln(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 zs(){return new Fs}var ti=256,sn,pt=null,rt;if(pt==null){pt=[],rt=0;var cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),cn=0;cn<So.length;++cn)pt[rt++]=So[cn]&255}var fn=0,dn=function(e){if(fn=fn||0,fn>=256||rt>=ti){window.removeEventListener?window.removeEventListener("mousemove",dn,!1):window.detachEvent&&window.detachEvent("onmousemove",dn);return}try{var n=e.x+e.y;pt[rt++]=n&255,fn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",dn,!1):window.attachEvent&&window.attachEvent("onmousemove",dn))}function Ps(){if(sn==null){for(sn=zs();rt<ti;){var e=Math.floor(65536*Math.random());pt[rt++]=e&255}for(sn.init(pt),rt=0;rt<pt.length;++rt)pt[rt]=0;rt=0}return sn.next()}var Co=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 Te(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 Co,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=Te(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=Te(n,16),this.e=parseInt(t,16),this.d=Te(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=Te(n,16),this.e=parseInt(t,16),this.d=Te(a,16),this.p=Te(r,16),this.q=Te(i,16),this.dmp1=Te(s,16),this.dmq1=Te(l,16),this.coeff=Te(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(n,t){var a=new Co,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=Te(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 Co,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)})})},y=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(y,0)})})};setTimeout(y,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=Te(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Us(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 un={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Gs(e){return un[e]||""}function Us(e){for(var n in un)if(un.hasOwnProperty(n)){var t=un[n],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
71
|
+
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,u=l&255;d===255?(d=0,c===255?(c=0,u===255?u=0:++u):++c):++d,l=0,l+=d<<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,d){var c=this._cipher,u=c.blockSize,h=this._iv,f=this._counter;h&&(f=this._counter=h.slice(0),this._iv=void 0),i(f);var g=f.slice(0);c.encryptBlock(g,0);for(var y=0;y<u;y++)l[d+y]^=g[y]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(oo)),oo.exports}var ao={exports:{}},Rr;function ms(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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,d=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 h=0;h<d;h++)i[s+h]^=u[h]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},_r;function ys(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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})}(ro)),ro.exports}var io={exports:{}},Or;function xs(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(io)),io.exports}var lo={exports:{}},Lr;function ps(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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})}(lo)),lo.exports}var so={exports:{}},Nr;function bs(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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})}(so)),so.exports}var co={exports:{}},Mr;function vs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,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})}(co)),co.exports}var fo={exports:{}},zr;function Ss(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},Fr;function Cs(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Fe())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(u){return u.ciphertext.toString(d)},parse:function(u){var h=d.parse(u);return s.create({ciphertext:h})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},Pr;function ws(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],u=[],h=[],f=[],g=[],y=[],m=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var A=0,k=0,x=0;x<256;x++){var B=k^k<<1^k<<2^k<<3^k<<4;B=B>>>8^B&255^99,l[A]=B,d[B]=A;var L=b[A],R=b[L],C=b[R],S=b[B]*257^B*16843008;c[A]=S<<24|S>>>8,u[A]=S<<16|S>>>16,h[A]=S<<8|S>>>24,f[A]=S;var S=C*16843009^R*65537^L*257^A*16843008;g[B]=S<<24|S>>>8,y[B]=S<<16|S>>>16,m[B]=S<<8|S>>>24,v[B]=S,A?(A=L^b[b[b[C^L]]],k^=b[b[k]]):A=k=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,A=x.words,k=x.sigBytes/4,B=this._nRounds=k+6,L=(B+1)*4,R=this._keySchedule=[],C=0;C<L;C++)C<k?R[C]=A[C]:(b=R[C-1],C%k?k>6&&C%k==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=E[C/k|0]<<24),R[C]=R[C-k]^b);for(var S=this._invKeySchedule=[],T=0;T<L;T++){var C=L-T;if(T%4)var b=R[C];else var b=R[C-4];T<4||C<=4?S[T]=b:S[T]=g[l[b>>>24]]^y[l[b>>>16&255]]^m[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,u,h,f,l)},decryptBlock:function(b,x){var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A,this._doCryptBlock(b,x,this._invKeySchedule,g,y,m,v,d);var A=b[x+1];b[x+1]=b[x+3],b[x+3]=A},_doCryptBlock:function(b,x,A,k,B,L,R,C){for(var S=this._nRounds,T=b[x]^A[0],w=b[x+1]^A[1],I=b[x+2]^A[2],N=b[x+3]^A[3],O=4,M=1;M<S;M++){var q=k[T>>>24]^B[w>>>16&255]^L[I>>>8&255]^R[N&255]^A[O++],j=k[w>>>24]^B[I>>>16&255]^L[N>>>8&255]^R[T&255]^A[O++],G=k[I>>>24]^B[N>>>16&255]^L[T>>>8&255]^R[w&255]^A[O++],F=k[N>>>24]^B[T>>>16&255]^L[w>>>8&255]^R[I&255]^A[O++];T=q,w=j,I=G,N=F}var q=(C[T>>>24]<<24|C[w>>>16&255]<<16|C[I>>>8&255]<<8|C[N&255])^A[O++],j=(C[w>>>24]<<24|C[I>>>16&255]<<16|C[N>>>8&255]<<8|C[T&255])^A[O++],G=(C[I>>>24]<<24|C[N>>>16&255]<<16|C[T>>>8&255]<<8|C[w&255])^A[O++],F=(C[N>>>24]<<24|C[T>>>16&255]<<16|C[w>>>8&255]<<8|C[I&255])^A[O++];b[x]=q,b[x+1]=j,b[x+2]=G,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},qr;function As(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[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],h=[{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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var E=this._key,p=E.words,b=[],x=0;x<56;x++){var A=d[x]-1;b[x]=p[A>>>5]>>>31-A%32&1}for(var k=this._subKeys=[],B=0;B<16;B++){for(var L=k[B]=[],R=u[B],x=0;x<24;x++)L[x/6|0]|=b[(c[x]-1+R)%28]<<31-x%6,L[4+(x/6|0)]|=b[28+(c[x+24]-1+R)%28]<<31-x%6;L[0]=L[0]<<1|L[0]>>>31;for(var x=1;x<7;x++)L[x]=L[x]>>>(x-1)*4+3;L[7]=L[7]<<5|L[7]>>>27}for(var C=this._invSubKeys=[],x=0;x<16;x++)C[x]=k[15-x]},encryptBlock:function(E,p){this._doCryptBlock(E,p,this._subKeys)},decryptBlock:function(E,p){this._doCryptBlock(E,p,this._invSubKeys)},_doCryptBlock:function(E,p,b){this._lBlock=E[p],this._rBlock=E[p+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var x=0;x<16;x++){for(var A=b[x],k=this._lBlock,B=this._rBlock,L=0,R=0;R<8;R++)L|=h[R][((B^A[R])&f[R])>>>0];this._lBlock=B,this._rBlock=k^L}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),E[p]=this._lBlock,E[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(E,p){var b=(this._lBlock>>>E^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<E}function m(E,p){var b=(this._rBlock>>>E^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(g);var v=l.TripleDES=s.extend({_doReset:function(){var E=this._key,p=E.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=p.slice(0,2),x=p.length<4?p.slice(0,2):p.slice(2,4),A=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=g.createEncryptor(i.create(b)),this._des2=g.createEncryptor(i.create(x)),this._des3=g.createEncryptor(i.create(A))},encryptBlock:function(E,p){this._des1.encryptBlock(E,p),this._des2.decryptBlock(E,p),this._des3.encryptBlock(E,p)},decryptBlock:function(E,p){this._des3.decryptBlock(E,p),this._des2.encryptBlock(E,p),this._des1.decryptBlock(E,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},Hr;function ks(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Fe())})(ce,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,h=u.words,f=u.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,m=0;y<256;y++){var v=y%f,E=h[v>>>2]>>>24-v%4*8&255;m=(m+g[y]+E)%256;var p=g[y];g[y]=g[m],g[m]=p}this._i=this._j=0},_doProcessBlock:function(u,h){u[h]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var u=this._S,h=this._i,f=this._j,g=0,y=0;y<4;y++){h=(h+1)%256,f=(f+u[h])%256;var m=u[h];u[h]=u[f],u[f]=m,g|=u[(u[h]+u[f])%256]<<24-y*8}return this._i=h,this._j=f,g}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--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(mo)),mo.exports}var yo={exports:{}},Vr;function Ts(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,y=0;y<4;y++)f[y]=(f[y]<<8|f[y]>>>24)&16711935|(f[y]<<24|f[y]>>>8)&4278255360;var m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],v=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var y=0;y<4;y++)h.call(this);for(var y=0;y<8;y++)v[y]^=m[y+4&7];if(g){var E=g.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,B=A<<16|x&65535;v[0]^=x,v[1]^=k,v[2]^=A,v[3]^=B,v[4]^=x,v[5]^=k,v[6]^=A,v[7]^=B;for(var y=0;y<4;y++)h.call(this)}},_doProcessBlock:function(f,g){var y=this._X;h.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function h(){for(var f=this._X,g=this._C,y=0;y<8;y++)d[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=f[y]+g[y],v=m&65535,E=m>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((m&4294901760)*m|0)+((m&65535)*m|0);c[y]=p^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(u)}(),t.Rabbit})}(yo)),yo.exports}var xo={exports:{}},jr;function Bs(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Fe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],u=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,g=this.cfg.iv,y=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],m=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var v=0;v<4;v++)h.call(this);for(var v=0;v<8;v++)m[v]^=y[v+4&7];if(g){var E=g.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,A=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|A&4294901760,B=A<<16|x&65535;m[0]^=x,m[1]^=k,m[2]^=A,m[3]^=B,m[4]^=x,m[5]^=k,m[6]^=A,m[7]^=B;for(var v=0;v<4;v++)h.call(this)}},_doProcessBlock:function(f,g){var y=this._X;h.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360,f[g+m]^=l[m]},blockSize:128/32,ivSize:64/32});function h(){for(var f=this._X,g=this._C,y=0;y<8;y++)d[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var y=0;y<8;y++){var m=f[y]+g[y],v=m&65535,E=m>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((m&4294901760)*m|0)+((m&65535)*m|0);c[y]=p^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(u)}(),t.RabbitLegacy})}(xo)),xo.exports}(function(e,o){(function(t,a,r){e.exports=a(ue(),nn(),as(),rs(),Ot(),is(),Lt(),jn(),xr(),ls(),vr(),ss(),cs(),fs(),Qn(),ds(),Tt(),Fe(),us(),hs(),gs(),ms(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs())})(ce,function(t){return t})})(lr);var Es=lr.exports;const Ye=ir(Es);var Ds="0123456789abcdefghijklmnopqrstuvwxyz";function dt(e){return Ds.charAt(e)}function Is(e,o){return e&o}function on(e,o){return e|o}function Ur(e,o){return e^o}function Gr(e,o){return e&~o}function Rs(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function _s(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wr="=";function an(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Nt.charAt(t>>6)+Nt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Nt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Nt.charAt(t>>2)+Nt.charAt((t&3)<<4));(a.length&3)>0;)a+=Wr;return a}function $r(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Wr;++t){var i=Nt.indexOf(e.charAt(t));i<0||(a==0?(o+=dt(i>>2),r=i&3,a=1):a==1?(o+=dt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=dt(r),o+=dt(i>>2),r=i&3,a=3):(o+=dt(r<<2|i>>4),o+=dt(i&15),a=0))}return a==1&&(o+=dt(r<<2)),o}var Mt,Os={decode:function(e){var o;if(Mt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Mt={},o=0;o<16;++o)Mt[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)Mt[t.charAt(o)]=o;for(o=0;o<a.length;++o)Mt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Mt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);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}},Bt,po={decode:function(e){var o;if(Bt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(Bt=Object.create(null),o=0;o<64;++o)Bt[t.charAt(o)]=o;for(Bt["-"]=62,Bt._=63,o=0;o<a.length;++o)Bt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=Bt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);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 o=po.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return po.decode(e)}},zt=1e13,Zt=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+t,s<zt?t=0:(t=0|s/zt,s-=t*zt),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(o){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-o,i<0?(i+=zt,o=1):o=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(o){if((o||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+=(zt+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,t=0,a=o.length-1;a>=0;--a)t=t*zt+o[a];return t},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),Zr="…",Ls=/^(\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)?)?$/,Ns=/^(\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 Ft(e,o){return e.length>o&&(e=e.substring(0,o)+Zr),e}var bo=function(){function e(o,t){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=t)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,t,a){for(var r="",i=o;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(o,t){for(var a=o;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,t){for(var a="",r=o;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,t){for(var a="",r=o;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(o,t){for(var a="",r,i,s=o;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,t,a){var r=this.parseStringISO(o,t),i=(a?Ls:Ns).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(o,t){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<t;)a=this.get(o);if(s=t-o,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 d=new Zt(a),c=o+1;c<t;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,t,a){for(var r=this.get(o),i=(t-o-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",d=o+1;d<t;++d){for(var c=this.get(d),u=d==t-1?r:0,h=7;h>=u;--h)l+=c>>h&1?"1":"0";if(l.length>a)return s+Ft(l,a)}return s+l},e.prototype.parseOctetString=function(o,t,a){if(this.isASCII(o,t))return Ft(this.parseStringISO(o,t),a);var r=t-o,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(t=o+a);for(var s=o;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=Zr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new Zt,s=0,l=o;l<t;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof Zt)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 Ft(r,a);i=new Zt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Ms=function(){function e(o,t,a,r,i){if(!(r instanceof Yr))throw new Error("Invalid tag value.");this.stream=o,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(o){if(this.tag===void 0)return null;o===void 0&&(o=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,o);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,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,o);case 6:return this.stream.parseOID(t,t+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ft(this.stream.parseStringUTF(t,t+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Ft(this.stream.parseStringISO(t,t+a),o);case 30:return Ft(this.stream.parseStringBMP(t,t+a),o);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(o){o===void 0&&(o="");var t=o+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){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(o)}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(o){var t=o.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+o.get();return t},e.prototype.getHexStringValue=function(){var o=this.toHexString(),t=this.header*2,a=this.length*2;return o.substr(t,a)},e.decode=function(o){var t;o instanceof bo?t=o:t=new bo(o,0);var a=new bo(t),r=new Yr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var h=[];if(i!==null){for(var f=s+i;t.pos<f;)h[h.length]=e.decode(t);if(t.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(t);if(g.tag.isEOC())break;h[h.length]=g}i=s-t.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return h};if(r.tagConstructed)d=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.");d=c();for(var u=0;u<d.length;++u)if(d[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===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,d)},e}(),Yr=function(){function e(o){var t=o.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new Zt;do t=o.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}(),yt,zs=0xdeadbeefcafe,Kr=(zs&16777215)==15715070,Ve=[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],Fs=(1<<26)/Ve[Ve.length-1],le=function(){function e(o,t,a){o!=null&&(typeof o=="number"?this.fromNumber(o,t,a):t==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,t))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else return this.toRadix(o);var a=(1<<t)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%t;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=dt(r));l>=0;)d<t?(r=(this[l]&(1<<d)-1)<<t-d,r|=this[--l]>>(d+=this.DB-t)):(r=this[l]>>(d-=t)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=dt(r));return i?s:"0"},e.prototype.negate=function(){var o=fe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var t=this.s-o.s;if(t!=0)return t;var a=this.t;if(t=a-o.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-o[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ln(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=fe();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&o.subTo(t,t),t},e.prototype.modPowInt=function(o,t){var a;return o<256||t.isEven()?a=new Qr(t):a=new Jr(t),this.exp(o,a)},e.prototype.clone=function(){var o=fe();return this.copyTo(o),o},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 o=this.t,t=[];t[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),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(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var t=fe();return this.bitwiseTo(o,Is,t),t},e.prototype.or=function(o){var t=fe();return this.bitwiseTo(o,on,t),t},e.prototype.xor=function(o){var t=fe();return this.bitwiseTo(o,Ur,t),t},e.prototype.andNot=function(o){var t=fe();return this.bitwiseTo(o,Gr,t),t},e.prototype.not=function(){for(var o=fe(),t=0;t<this.t;++t)o[t]=this.DM&~this[t];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var t=fe();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=fe();return o<0?this.lShiftTo(-o,t):this.rShiftTo(o,t),t},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Rs(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,t=this.s&this.DM,a=0;a<this.t;++a)o+=_s(this[a]^t);return o},e.prototype.testBit=function(o){var t=Math.floor(o/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,on)},e.prototype.clearBit=function(o){return this.changeBit(o,Gr)},e.prototype.flipBit=function(o){return this.changeBit(o,Ur)},e.prototype.add=function(o){var t=fe();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=fe();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=fe();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=fe();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=fe();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=fe(),a=fe();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.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 Qr(t):t.isEven()?s=new qs(t):s=new Jr(t);var l=[],d=3,c=r-1,u=(1<<r)-1;if(l[1]=s.convert(this),r>1){var h=fe();for(s.sqrTo(l[1],h);d<=u;)l[d]=fe(),s.mulTo(h,l[d-2],l[d]),d+=2}var f=o.t-1,g,y=!0,m=fe(),v;for(a=ln(o[f])-1;f>=0;){for(a>=c?g=o[f]>>a-c&u:(g=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(g|=o[f-1]>>this.DB+a-c)),d=r;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),y)l[g].copyTo(i),y=!1;else{for(;d>1;)s.sqrTo(i,m),s.sqrTo(m,i),d-=2;d>0?s.sqrTo(i,m):(v=i,i=m,m=v),s.mulTo(m,l[g],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,m),v=i,i=m,m=v,--a<0&&(a=this.DB-1,--f)}return s.revert(i)},e.prototype.modInverse=function(o){var t=o.isEven();if(this.isEven()&&t||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=xt(1),s=xt(0),l=xt(0),d=xt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),t&&l.subTo(i,l),d.subTo(s,d))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new Ps)},e.prototype.gcd=function(o){var t=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.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(o){var t,a=this.abs();if(a.t==1&&a[0]<=Ve[Ve.length-1]){for(t=0;t<Ve.length;++t)if(a[0]==Ve[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ve.length;){for(var r=Ve[t],i=t+1;i<Ve.length&&r<Fs;)r*=Ve[i++];for(r=a.modInt(r);t<i;)if(r%Ve[t++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,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(o,t);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:ei(o,r);if(l<0){o.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&&+o[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 o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,t){var a;for(a=this.t-1;a>=0;--a)t[a+o]=this[a];for(a=o-1;a>=0;--a)t[a]=0;t.t=this.t+o,t.s=this.s},e.prototype.drShiftTo=function(o,t){for(var a=o;a<this.t;++a)t[a-o]=this[a];t.t=Math.max(this.t-o,0),t.s=this.s},e.prototype.lShiftTo=function(o,t){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)t[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)t[d]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(o,t){t.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){t.t=0;return}var r=o%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(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],t[a++]=r&this.DM,r>>=this.DB;r-=o.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(o,t){var a=this.abs(),r=o.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!=o.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(o){for(var t=this.abs(),a=o.t=2*t.t;--a>=0;)o[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],o,2*a,0,1);(o[a+t.t]+=t.am(a+1,2*t[a],o,2*a+1,r,t.t-a-1))>=t.DV&&(o[a+t.t]-=t.DV,o[a+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(a,t[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,t,a){var r=o.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=fe());var s=fe(),l=this.s,d=o.s,c=this.DB-ln(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var u=s.t,h=s[u-1];if(h!=0){var f=h*(1<<this.F1)+(u>1?s[u-2]>>this.F2:0),g=this.FV/f,y=(1<<this.F1)/f,m=1<<this.F2,v=a.t,E=v-u,p=t??fe();for(s.dlShiftTo(E,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(u,p),p.subTo(s,s);s.t<u;)s[s.t++]=0;for(;--E>=0;){var b=a[--v]==h?this.DM:Math.floor(a[v]*g+(a[v-1]+m)*y);if((a[v]+=s.am(0,b,a,E,0,u))<b)for(s.dlShiftTo(E,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(u,t),l!=d&&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 o=this[0];if(!(o&1))return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*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(o,t){if(o>4294967295||o<1)return e.ONE;var a=fe(),r=fe(),i=t.convert(this),s=ln(o)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(o&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var t=this.chunkSize(o),a=Math.pow(o,t),r=xt(a),i=fe(),s=fe(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,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,d=0;d<o.length;++d){var c=ei(o,d);if(c<0){o.charAt(d)=="-"&&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(o,t,a){if(typeof t=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),on,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,t,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],o[r]);if(o.t<this.t){for(i=o.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<o.t;++r)a[r]=t(i,o[r]);a.t=o.t}a.s=t(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,t){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],t[a++]=r&this.DM,r>>=this.DB;r+=o.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(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,t){if(o!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=o;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(o,t,a){var r=Math.min(this.t+o.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,o[r],a,r,0,this.t);for(var i=Math.min(o.t,t);r<i;++r)this.am(0,o[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,t,a){--t;var r=a.t=this.t+o.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<o.t;++r)a[this.t+r-t]=this.am(t-r,o[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var t=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(t==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);o=o+1>>1,o>Ve.length&&(o=Ve.length);for(var i=fe(),s=0;s<o;++s){i.fromInt(Ve[Math.floor(Math.random()*Ve.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var d=1;d++<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 o=fe();return this.squareTo(o),o},e.prototype.gcda=function(o,t){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.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 d=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(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,t,a,r){if(typeof t=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),on,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,t.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),Ps=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a)},e.prototype.sqrTo=function(o,t){o.squareTo(t)},e}(),Qr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),Jr=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var t=fe();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var a=o[t]&32767,r=a*this.mpl+((a*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=t+this.m.t,o[a]+=this.m.am(0,r,o,t,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),qs=function(){function e(o){this.m=o,this.r2=fe(),this.q3=fe(),le.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}();function fe(){return new le(null)}function Ee(e,o){return new le(e,o)}var Xr=typeof navigator<"u";Xr&&Kr&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,u=this[o++]>>15,h=d*c+u*l;c=l*c+((h&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(h>>>15)+d*u+(i>>>30),a[r++]=c&1073741823}return i},yt=30):Xr&&Kr&&navigator.appName!="Netscape"?(le.prototype.am=function(o,t,a,r,i,s){for(;--s>=0;){var l=t*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},yt=26):(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,u=this[o++]>>14,h=d*c+u*l;c=l*c+((h&16383)<<14)+a[r]+i,i=(c>>28)+(h>>14)+d*u,a[r++]=c&268435455}return i},yt=28),le.prototype.DB=yt,le.prototype.DM=(1<<yt)-1,le.prototype.DV=1<<yt;var vo=52;le.prototype.FV=Math.pow(2,vo),le.prototype.F1=vo-yt,le.prototype.F2=2*yt-vo;var rn=[],Pt,Xe;for(Pt="0".charCodeAt(0),Xe=0;Xe<=9;++Xe)rn[Pt++]=Xe;for(Pt="a".charCodeAt(0),Xe=10;Xe<36;++Xe)rn[Pt++]=Xe;for(Pt="A".charCodeAt(0),Xe=10;Xe<36;++Xe)rn[Pt++]=Xe;function ei(e,o){var t=rn[e.charCodeAt(o)];return t??-1}function xt(e){var o=fe();return o.fromInt(e),o}function ln(e){var o=1,t;return(t=e>>>16)!=0&&(e=t,o+=16),(t=e>>8)!=0&&(e=t,o+=8),(t=e>>4)!=0&&(e=t,o+=4),(t=e>>2)!=0&&(e=t,o+=2),(t=e>>1)!=0&&(e=t,o+=1),o}le.ZERO=xt(0),le.ONE=xt(1);var Hs=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){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]+o[t%o.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 o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Vs(){return new Hs}var ti=256,sn,pt=null,it;if(pt==null){pt=[],it=0;var cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),cn=0;cn<So.length;++cn)pt[it++]=So[cn]&255}var fn=0,dn=function(e){if(fn=fn||0,fn>=256||it>=ti){window.removeEventListener?window.removeEventListener("mousemove",dn,!1):window.detachEvent&&window.detachEvent("onmousemove",dn);return}try{var o=e.x+e.y;pt[it++]=o&255,fn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",dn,!1):window.attachEvent&&window.attachEvent("onmousemove",dn))}function js(){if(sn==null){for(sn=Vs();it<ti;){var e=Math.floor(65536*Math.random());pt[it++]=e&255}for(sn.init(pt),it=0;it<pt.length;++it)pt[it]=0;it=0}return sn.next()}var Co=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=js()},e}();function Us(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var t=o-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ee(i,16)}function Gs(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?t[--o]=r:r>127&&r<2048?(t[--o]=r&63|128,t[--o]=r>>6|192):(t[--o]=r&63|128,t[--o]=r>>6&63|128,t[--o]=r>>12|224)}t[--o]=0;for(var i=new Co,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--o]=s[0]}return t[--o]=2,t[--o]=0,new le(t)}var Ws=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(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var t=o.mod(this.p).modPow(this.dmp1,this.p),a=o.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(o,t){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var t=this.n.bitLength()+7>>3,a=Gs(o,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(o,t,a){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,d){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16),this.p=Ee(r,16),this.q=Ee(i,16),this.dmp1=Ee(s,16),this.dmq1=Ee(l,16),this.coeff=Ee(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new Co,r=o>>1;this.e=parseInt(t,16);for(var i=new le(t,16);;){for(;this.p=new le(o-r,1,a),!(this.p.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(r,1,a),!(this.q.subtract(le.ONE).gcd(i).compareTo(le.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(le.ONE),d=this.q.subtract(le.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(le.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(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Ee(o,16),a=this.doPrivate(t);return a==null?null:$s(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Co,i=o>>1;this.e=parseInt(t,16);var s=new le(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var g=l.p.subtract(le.ONE),y=l.q.subtract(le.ONE),m=g.multiply(y);m.gcd(s).compareTo(le.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(m),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},u=function(){l.q=fe(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(le.ONE).gcda(s,function(f){f.compareTo(le.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},h=function(){l.p=fe(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(le.ONE).gcda(s,function(f){f.compareTo(le.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=Zs(a),i=r+t(o).toString(),s=Us(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,t,a){var r=Ee(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ys(s);return l==a(o).toString()},e}();function $s(e,o){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=o-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 un={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Zs(e){return un[e]||""}function Ys(e){for(var o in un)if(un.hasOwnProperty(o)){var t=un[o],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
|
|
83
|
+
*/var Ie={};Ie.lang={extend:function(e,o,t){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),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,d){for(r=0;r<s.length;r=r+1){var c=s[r],u=d[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),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,y=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,S=t.DERGeneralizedTime,_=t.DERSequence,b=t.DERSet,p=t.DERTaggedObject,x=t.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var k=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new f(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new u(e[k]);if(k=="numstr")return new y(e[k]);if(k=="prnstr")return new d(e[k]);if(k=="telstr")return new h(e[k]);if(k=="ia5str")return new m(e[k]);if(k=="utctime")return new g(e[k]);if(k=="gentime")return new S(e[k]);if(k=="seq"){for(var E=e[k],O=[],N=0;N<E.length;N++){var B=x(E[N]);O.push(B)}return new _({array:O})}if(k=="set"){for(var E=e[k],O=[],N=0;N<E.length;N++){var B=x(E[N]);O.push(B)}return new b({array:O})}if(k=="tag"){var C=e[k];if(Object.prototype.toString.call(C)==="[object Array]"&&C.length==3){var D=x(C[2]);return new p({tag:C[0],explicit:C[1],obj:D})}else{var v={};if(C.explicit!==void 0&&(v.explicit=C.explicit),C.tag!==void 0&&(v.tag=C.tag),C.obj===void 0)throw"obj shall be specified for 'tag'.";return v.obj=x(C.obj),new p(v)}}},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),y=7-u.length%7;y==7&&(y=0);for(var d="",h=0;h<y;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),y=r(String(i.getSeconds()),2),d=s+l+f+c+u+y;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 Ws=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)}}(),ni=function(e){Ws(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)?Ds.decode(t):po.unarmor(t),l=Is.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Te(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Te(f,16);var c=l.sub[4].getHexStringValue();this.p=Te(c,16);var u=l.sub[5].getHexStringValue();this.q=Te(u,16);var y=l.sub[6].getHexStringValue();this.dmp1=Te(y,16);var d=l.sub[7].getHexStringValue();this.dmq1=Te(d,16);var h=l.sub[8].getHexStringValue();this.coeff=Te(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=Te(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Te(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 an(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 an(this.getPublicBaseKey())},n.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var W={};(typeof W.asn1>"u"||!W.asn1)&&(W.asn1={}),W.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var t=o.substr(1),a=t.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new le(r,16),l=s.xor(e).add(le.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=W,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,h=t.DERNumericString,f=t.DERPrintableString,g=t.DERTeletexString,y=t.DERIA5String,m=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,A=Object.keys(e);if(A.length!=1)throw"key of param shall be only one.";var k=A[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new d(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new u(e[k]);if(k=="numstr")return new h(e[k]);if(k=="prnstr")return new f(e[k]);if(k=="telstr")return new g(e[k]);if(k=="ia5str")return new y(e[k]);if(k=="utctime")return new m(e[k]);if(k=="gentime")return new v(e[k]);if(k=="seq"){for(var B=e[k],L=[],R=0;R<B.length;R++){var C=x(B[R]);L.push(C)}return new E({array:L})}if(k=="set"){for(var B=e[k],L=[],R=0;R<B.length;R++){var C=x(B[R]);L.push(C)}return new p({array:L})}if(k=="tag"){var S=e[k];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var T=x(S[2]);return new b({tag:S[0],explicit:S[1],obj:T})}else{var w={};if(S.explicit!==void 0&&(w.explicit=S.explicit),S.tag!==void 0&&(w.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return w.obj=x(S.obj),new b(w)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},W.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),t=Math.floor(o/40),a=o%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new le(i,2);r=r+"."+c.toString(10),i=""}}return r},W.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},t=function(l){var d="",c=new le(l,10),u=c.toString(2),h=7-u.length%7;h==7&&(h=0);for(var f="",g=0;g<h;g++)f+="0";u=f+u;for(var g=0;g<u.length-1;g+=7){var y=u.substr(g,7);g!=u.length-7&&(y="1"+y),d+=o(parseInt(y,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},W.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 o=this.hV.length/2,t=o.toString(16);if(t.length%2==1&&(t="0"+t),o<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.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""}},W.asn1.DERAbstractString=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},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))},Ie.lang.extend(W.asn1.DERAbstractString,W.asn1.ASN1Object),W.asn1.DERAbstractTime=function(e){W.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(o,t,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),u=r(String(i.getMinutes()),2),h=r(String(i.getSeconds()),2),f=s+l+d+c+u+h;if(a===!0){var g=i.getMilliseconds();if(g!=0){var y=r(String(g),3);y=y.replace(/[0]+$/,""),f=f+"."+y}}return f+"Z"},this.zeroPadding=function(o,t){return o.length>=t?o:new Array(t-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,t,a,r,i,s){var l=new Date(Date.UTC(o,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Ie.lang.extend(W.asn1.DERAbstractTime,W.asn1.ASN1Object),W.asn1.DERAbstractStructured=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Ie.lang.extend(W.asn1.DERAbstractStructured,W.asn1.ASN1Object),W.asn1.DERBoolean=function(){W.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ie.lang.extend(W.asn1.DERBoolean,W.asn1.ASN1Object),W.asn1.DERInteger=function(e){W.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},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))},Ie.lang.extend(W.asn1.DERInteger,W.asn1.ASN1Object),W.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=W.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}W.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))},Ie.lang.extend(W.asn1.DERBitString,W.asn1.ASN1Object),W.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=W.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}W.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Ie.lang.extend(W.asn1.DEROctetString,W.asn1.DERAbstractString),W.asn1.DERNull=function(){W.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ie.lang.extend(W.asn1.DERNull,W.asn1.ASN1Object),W.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new le(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+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+=o(parseInt(u,2))}return r};W.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+=o(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=W.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))},Ie.lang.extend(W.asn1.DERObjectIdentifier,W.asn1.ASN1Object),W.asn1.DEREnumerated=function(e){W.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},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))},Ie.lang.extend(W.asn1.DEREnumerated,W.asn1.ASN1Object),W.asn1.DERUTF8String=function(e){W.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Ie.lang.extend(W.asn1.DERUTF8String,W.asn1.DERAbstractString),W.asn1.DERNumericString=function(e){W.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Ie.lang.extend(W.asn1.DERNumericString,W.asn1.DERAbstractString),W.asn1.DERPrintableString=function(e){W.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Ie.lang.extend(W.asn1.DERPrintableString,W.asn1.DERAbstractString),W.asn1.DERTeletexString=function(e){W.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Ie.lang.extend(W.asn1.DERTeletexString,W.asn1.DERAbstractString),W.asn1.DERIA5String=function(e){W.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Ie.lang.extend(W.asn1.DERIA5String,W.asn1.DERAbstractString),W.asn1.DERUTCTime=function(e){W.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,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))},Ie.lang.extend(W.asn1.DERUTCTime,W.asn1.DERAbstractTime),W.asn1.DERGeneralizedTime=function(e){W.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,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))},Ie.lang.extend(W.asn1.DERGeneralizedTime,W.asn1.DERAbstractTime),W.asn1.DERSequence=function(e){W.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Ie.lang.extend(W.asn1.DERSequence,W.asn1.DERAbstractStructured),W.asn1.DERSet=function(e){W.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Ie.lang.extend(W.asn1.DERSet,W.asn1.DERAbstractStructured),W.asn1.DERTaggedObject=function(e){W.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,t,a){this.hT=t,this.isExplicit=o,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)))},Ie.lang.extend(W.asn1.DERTaggedObject,W.asn1.ASN1Object);var Ks=globalThis&&globalThis.__extends||function(){var e=function(o,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(o,t)};return function(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ni=function(e){Ks(o,e);function o(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(o.hasPrivateKeyProperty(t)||o.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return o.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)?Os.decode(t):po.unarmor(t),l=Ms.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ee(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ee(d,16);var c=l.sub[4].getHexStringValue();this.p=Ee(c,16);var u=l.sub[5].getHexStringValue();this.q=Ee(u,16);var h=l.sub[6].getHexStringValue();this.dmp1=Ee(h,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ee(f,16);var g=l.sub[8].getHexStringValue();this.coeff=Ee(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],m=y.sub[0];a=m.sub[0].getHexStringValue(),this.n=Ee(a,16),r=m.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ee(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var t={array:[new W.asn1.DERInteger({int:0}),new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e}),new W.asn1.DERInteger({bigint:this.d}),new W.asn1.DERInteger({bigint:this.p}),new W.asn1.DERInteger({bigint:this.q}),new W.asn1.DERInteger({bigint:this.dmp1}),new W.asn1.DERInteger({bigint:this.dmq1}),new W.asn1.DERInteger({bigint:this.coeff})]},a=new W.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return an(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new W.asn1.DERSequence({array:[new W.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new W.asn1.DERNull]}),a=new W.asn1.DERSequence({array:[new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e})]}),r=new W.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new W.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return an(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
91
91
|
?)|(.{1,`+a+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
|
-
`)},
|
|
93
|
-
`;return t+=
|
|
94
|
-
`,t+="-----END RSA PRIVATE KEY-----",t},
|
|
95
|
-
`;return t+=
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},
|
|
97
|
-
`),Ao=(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,",")},hn=(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)=>et(n,e),qt=(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},gn=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Yt=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=Yt(e);return a!=null&&a.length&&(t=a.map(r=>n[r.id]).every(r=>r)),t},mn=(e,n)=>{const t={dayjs:Ce,...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},ke=(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 y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=u.match(y);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=mn(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(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=o.inject(we,{getGlobalModel:m=>{}}),y=ke(t),d=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:w,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let E={};const{id:O,prop:N,propKey:B,operate:C}=k;O==="THIS"?E=u(o.unref(c))||{}:E=u(O)||{};const D=o.unref(E[N]);let v=null;if(["date","range"].some(F=>qt(E==null?void 0:E.type,F))){const{value:F,type:L,mode:z}=C||{};if(F&&L&&z)switch(L){case"add":v=o.unref(D).add(F,z);break;case"minus":v=o.unref(D).subtract(F,z);break}v==null&&(v=o.unref(D)),v=(v==null?void 0:v.format((B==null?void 0:B.trim())||E.format))||""}else Object.prototype.toString.call(D)==="[object Object]"?B?v=D[B]:v=N?D[N]:D:qt(E==null?void 0:E.type,"select")&&o.unref(D)&&N&&Array.isArray(o.unref(D))?v=o.unref(D).map(F=>Object.prototype.hasOwnProperty.call(F,N)?F[N]:F):v=D;g[w]=v}else typeof k=="string"&&(g[w]=ke(k))}),g={...window.config.requestParams,...m,...g};let S="";const _=Object.keys(g),b=_.length-1,p=_.length;_.forEach((x,w)=>{let k=g[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),w===0?p!==1?S+=`?${x}=${k}&`:S+=`?${x}=${k}`:w===b?S+=`${x}=${k}`:S+=`${x}=${k}&`});try{const x=["get","head"].includes(a),w={};let k=x?y+S:y;g.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(w.signal=g.signal);const E=await lt({baseURL:o.unref(f)||"",url:k,method:a,headers:r,data:x?{}:g,...w});return n(E),E}catch(x){console.error(x)}},h=l&&setInterval(d,s*1e3);return o.onUnmounted(()=>{clearInterval(h)}),d},bt=(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 y=[];for(let h=0;h<f;h++){const m=r[h],{label:g,value:S}=m,_={...e[0],value:e[0][S]};i.add(g),y.push(_)}const d=e[0][a]||"";s.set(d,y)}else for(let y=0;y<l;y++){const d=e[y],h=d[a];i.add(h);for(let m=0;m<f;m++){const g=r[m],{label:S,value:_}=g,b={...d,value:d[_]};if(s.has(S)){const p=s.get(S);p.push(b),s.set(S,p)}else s.set(S,[b])}}const c=Array.from(i),u=[];for(const[y,d]of s)u.push({name:y,data:d});return{dimensions:c,dataset:u}},vt=(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},ci=(e,n)=>{const t=`${rr}/preview?pageId=${n}`,a=`${rr}/${n}`;return e==="preview"?t:a},et=(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=mn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},it=(e={})=>{const{requestToken:n}=o.inject(tr,{requestToken:()=>{}}),{setLoadedData:t}=o.inject(mt,{setLoadedData:(d,h)=>{}});e.dataType==="indicator"&&n();const a=(d={})=>{const{label:h,name:m,location:g,show:S,indexCode:_}=d;return{label:h,columnName:m,location:g,show:S,calcType:"COLUMN",hrpIndexCode:_}},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(S=>S.join&&S.conditions);m.conditions.forEach((S,_)=>{i(S),g?_<m.conditions.length-1?h.push({join:m.join,...S}):h.push(S):S.join&&S.conditions?h.push({conditions:s([S]),join:m.join}):h.push(S)})}else i(m),h.push(m)}),h},l=(d={})=>{const{label:h,name:m,location:g,show:S,indexCode:_,calcType:b="COLUMN",builtInFormula:p,builtInValueSource:x,builtInCalcWay:w,formula:k,conditions:E,aggregate:O}=d;let N;if(E&&(N=s(E)),b==="COMPONENT"){const B={};return y(B,x),{label:h.trim(),columnName:m,show:S,calcType:b,componentAlias:w,componentValue:B.fieldValue||null}}else return{label:h.trim(),columnName:m,location:g,show:S,calcType:b,hrpIndexCode:_,aggregate:O,builtInFormula:p,builtInValueSource:x,builtInCalcWay:w,formula:k,conditions:N}},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(we,{getGlobalModel:d=>{}}),u=d=>{if(!d)return[];const{controlList:h=[],classificationList:m=[],rowHeaderList:g=[],seriesList:S=[],leftAxisList:_=[],rightAxisList:b=[],queryColumnList:p=[],indicators:x=[]}=d,w=[...m,...g,...S,..._,...b,...p,...x],k=[];for(const B of w){const C=f((B==null?void 0:B.conditions)||[]);if(C!=null&&C.length){const D=C.filter(v=>(v==null?void 0:v.dataType)==="component").map(v=>{const I={};return v!=null&&v.dateFormat&&(I.format=v.dateFormat),{conditionKey:v.fieldName,conditionLabel:v.fieldName,conditionName:v.fieldName,conditionValueType:v.fieldType,id:v.componentId,keyName:v.fieldValue,rule:v.rule,notGlobal:!0,...I}});if(D!=null&&D.length)for(const v of D)k.find(I=>I.keyName===v.keyName)||k.push(v)}}const E=h.concat(k),O=E.length,N=[];for(let B=0;B<O;B++){const C=E[B];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:D,keyName:v,conditionLabel:I,conditionKey:F,conditionValueType:L,prop:z,rule:H="NONE",notGlobal:j=!1,format:P,modelKey:A}=C;let R=v||D;R&&z&&(R+=`-${z}`);let T=H;T==="NONE"&&(["startTime","endTime"].includes(z)?T=z==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":v!=null&&v.includes("startTime")?T=z==="GREATER_EQUAL":v!=null&&v.includes("endTime")?T=z==="LESS_EQUAL":T="EQUAL");const M={rule:T,label:I,fieldName:F,fieldValue:"",valueType:L,alias:R,globalCondition:!j};y(M,D,{prop:z,dateFormat:P,modelKey:A,keyName:v}),N.push(M)}for(let B=N.length-1;B>=0;B--){const C=N[B];C.globalCondition||N.find(v=>v.alias===C.alias&&v.globalCondition)&&N.splice(B,1)}return N};function y(d,h,m){var B,C;const g=c(h)||{},{prop:S="",dateFormat:_="",modelKey:b="",keyName:p=""}=m||{},{value:x,format:w="YYYY-MM-DD",type:k="",useCurrentTime:E,RECORD:O}=g||{},N=_||w;if(qt(g.type,"date"))E?x?d.fieldValue=(B=o.unref(x))==null?void 0:B.format(N):d.fieldValue=Ce().format(N):d.fieldValue=(C=o.unref(x))==null?void 0:C.format(N),d.dateFormat=N;else if(k==="ecanRangePicker"){const{interval:D,intervalUnit:v,operate:I}=g||{};let F=S;if(!S){const z=p&&p.split("-");z!=null&&z.length&&(F=z[z.length-1])}if(!F)return;let L=null;if(E&&(F==="startTime"?L=Ce().subtract(D,v):F==="endTime"&&(L=Ce())),o.unref(g[F])&&(L=Ce(o.unref(g[F]))),I){const{type:z,value:H,mode:j}=I;switch(z){case"add":L=L&&L.add(H,j);break;case"minus":L=L&&L.subtract(H,j)}}L&&(d.fieldValue=L==null?void 0:L.format(N)),d.dateFormat=N}else k==="ecanTable"?b&&O&&(d.fieldValue=O[b]):d.fieldValue=o.unref(x)}return async(d={})=>{var M,U,Z,ne,$,Q;t(e.id,!1);const{graphicConfig:h,type:m,isGroupTable:g=!1}=e;let{source:S,dataViewId:_,plugin:b="1",layer:p,chartType:x,classificationList:w=[],rowHeaderList:k=[],seriesList:E=[],leftAxisList:O=[],rightAxisList:N=[],queryColumnList:B=[],indicators:C=[],controlList:D=[],formFields:v={},idxLibMode:I,preview:F=!1}=h||{},L=[];(h==null?void 0:h.pageMode)==="design"?L=h.sqlConditions??[]:L=u(h),p==null&&(qt(m,["table"])?p="1":qt(m,["select","checkbox","radio"])?p="3":p="2");let z,H="";if(Array.isArray(w)&&w.length>0){const K=w.length;for(let X=0;X<K;X++){const oe=w[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:Ze,dateFormat:$e,typeGuid:tt="",truncations:Ee=[]}=oe;if(_e||K===1){H=tt,z={label:he.trim(),columnName:fe,show:_e,sort:He,customGroup:qe,conditions:s(Ze),typeGuid:tt},$e&&(z.dateFormat=$e),fe==="the_date"&&!z.dateFormat&&(z.dateFormat="YYYY-MM");const Se={};if(Array.isArray(Ee)&&Ee.length>0){const Ie=Ee.length;for(let je=0;je<Ie;je++){const nt=Ee[je]||{},{rule:ze="",num:Ve=0,name:ut=""}=nt;ze&&Ve&&(Se.num=Ve,Se.rule=ze,ut&&(Se.otherGroupName=ut))}}(M=Object.keys(Se))!=null&&M.length&&(z.truncation=Se);break}}}let j;if(Array.isArray(E)&&E.length>0){const K=E.length;for(let X=0;X<K;X++){const oe=E[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:Ze}=oe;if(_e||K===1){j={label:he.trim(),columnName:fe,show:_e,sort:He,customGroup:qe,conditions:s(Ze)};break}}}const P=[];B==null||B.forEach(K=>{P.push(a(K))});const A=[];O==null||O.forEach(K=>{K.location="LEFT",A.push(l(K))}),N==null||N.forEach(K=>{K.location="RIGHT",A.push(l(K))}),C==null||C.forEach(K=>{K.location="LEFT",A.push(l(K))});const R=[];if(Array.isArray(k)&&k.length>0){const K=k.length;for(let X=0;X<K;X++){const oe=k[X]||{},{label:he="",name:fe="",show:_e=!1,sort:He,customGroup:qe,conditions:Ze,truncations:$e,typeGuid:tt=""}=oe;let Ee=He;if(d.sort){const{field:je,order:nt}=d.sort,ze=A.find(Ve=>Ve.label===je);ze&&(Ee={columnName:ze.columnName,label:d.sort.field,order:nt.toUpperCase(),type:"NORMAL"})}const Se={label:he.trim(),columnName:fe,show:_e,sort:Ee,customGroup:qe,conditions:s(Ze),typeGuid:tt},Ie={};if(Array.isArray($e)&&$e.length>0){const je=$e.length;for(let nt=0;nt<je;nt++){const ze=$e[nt]||{},{rule:Ve="",num:ut=0,name:V=""}=ze;Ve&&ut&&(Ie.num=ut,Ie.rule=Ve,V&&(Ie.otherGroupName=V))}}(U=Object.keys(Ie))!=null&&U.length&&(Se.truncation=Ie),R.push(Se)}}if(qt(m,["text","proportion"])&&(x="zb"),g){if(R.length===0||A.length===0)return;x="grouptable"}else{if(p==="1"&&P.length===0)return;if(p==="2"&&A.length===0)return;if(p==="3"&&(!H||!v.labelField||!v.valueField))return}let T=(Z=window==null?void 0:window.config)==null?void 0:Z.pageId;if(!T){const{pathname:K}=window==null?void 0:window.location;if(K){const X=K.split("/");X!=null&&X.length&&(T=X[X.length-1])}}if((ne=Object.keys(v))!=null&&ne.length){const K=D.find(oe=>oe.conditionKey==="parentCode"),X={};if(K){const oe=c(K.id)||{};if(oe!=null&&oe.itemCodes)X.parentItemCodes=oe.itemCodes;else return}try{return await lt.post(`${ar}/diagram/formData`,{source:S,dataViewId:_,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:H,type:"normalSelect",labelField:v.labelField,valueField:v.valueField,pageId:T,sqlConditions:L,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:($=window==null?void 0:window.config)==null?void 0:$.indicatorToken,operateContext:or}})}catch(oe){console.error(oe)}finally{}}else try{return await lt.post(`${ar}/diagram`,{source:S,dataViewId:_,plugin:b,layer:p,chartType:x,classification:z,series:j,indicatorList:A,queryColumns:g?[]:P,pageFlag:!0,pageId:T,sqlConditions:L.map(X=>{const{fieldValue:oe}=X,he={};return oe&&Array.isArray(oe)&&(he.fieldValue=JSON.stringify(oe)),{...X,...he}}),idxLibMode:I,preview:F,rowHeaders:R,keyName:e.keyName},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:or}})}catch(K){console.error(K)}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:{...Ln},setup(e){const{width:n,height:t}=o.inject(Me,{width:null,height:null}),a=o.inject("setPageHeight",x=>{}),r=o.inject("isMobile",!1),i=o.computed(()=>{const x={};return r||(x.width=n.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:vt(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),y=o.ref();let d;const h=()=>new Promise(x=>{o.nextTick(()=>{n.value&&t.value?(s.value=parseFloat(n.value),l.value=parseFloat(t.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${f.value}px`,y.value.style.height=`${c.value}px`)};o.watch([n,t],async()=>{await h(),m(),S(),window.addEventListener("resize",_),b(),u.value=!0},{immediate:!0});const g=o.ref({});o.provide("scaleValue",g);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,w=document.body.clientHeight,k=s.value||f.value,E=l.value||c.value,O=x/k;let N=w/E;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/E),g.value={widthScale:O,heightScale:N},y.value&&(y.value.style.transform=`scale(${O}, ${N})`),a(N)},_=Ne.debounce(async()=>{await h(),S()},100),b=()=>{const x=window.MutationObserver;d=new x(_),d.observe(y.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",_),p()}),{style:i,container:y,ready:u}}}),Zd="",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 fi=ge(ue(lc,[["render",cc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=xe(ko),fc=o.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},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(()=>ke(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(Me,{contextRequestUrl:i,pageMode:s,theme:l,touchEventId:u,width:f,height:c});const y=o.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});o.provide("setPageHeight",T=>{let M=T;t.value||(M=parseFloat(c.value)*T+"px"),y.value.height=M}),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,M)=>{d.value=M,h.set(T,M)},S=()=>{d.value=null};o.provide(we,{getGlobalModel:m,setGlobalModel:g,clearInteractiveData:S,interactiveData:d});const _=o.ref({}),b=(T,M)=>{_.value[T]=M};o.provide(mt,{loadedData:_,setLoadedData:b});const p=[],x=()=>{p.pop()},w=T=>{p.push(T)},k=new Map,E=T=>k.get(T),O=(T,M)=>{k.set(T,M)};o.provide(nr,{popUseModalIds:x,pushUseModalIds:w,getModalModel:E,setModalModel:O});const N=B0(),B=new Set,C=(T,M)=>{B.add(T),N.on(T,U=>typeof M[U]=="function"&&M[U]()),o.onBeforeUnmount(()=>{D(T)})},D=T=>{B.delete(T),N.off(T)},v=(T,M)=>{if(T==="PAGE"){const U=p.length;let Z=[];if(U===0)Z=[...B];else{const ne=p[U-1];Z=[...E(ne)]}Z.forEach(ne=>{N.emit(ne,M)})}else N.emit(T,M)};o.provide(On,{onEvent:C,offEvent:D,emitEvent:v});const I=o.ref(0),F=()=>{I.value=o.unref(I)+1};o.provide(tr,{requestToken:F});const L=new Map,z=new Map,H=({requestFn:T=()=>{},sortNum:M=0,id:U=""})=>{if(L.has(M)){const Z=L.get(M);Z==null||Z.push(T)}else L.set(M,[T]);z.set(U,T)},j=T=>new Promise((M,U)=>{const Z=T.map(ne=>ne());Promise.all(Z).then(ne=>{M(ne)}).catch(ne=>{U(ne)})}),P=T=>new Promise(async(M,U)=>{if(T){if(typeof T=="string"){const Z=z.get(T);if(typeof Z=="function"){const ne=lt.interceptors.response.use($=>(M($),$),$=>(U($),Promise.reject($)));Z(),lt.interceptors.response.eject(ne)}}}else{const Z=Array.from(L);Z.sort(($,Q)=>Q[0]-$[0]);const ne=Z.length;try{e.pageMode!=="design"&&o.unref(I)>0;for(let $=0;$<ne;$++){const Q=Z[$][1];await j(Q)}}catch($){console.error($)}finally{L.clear(),M(null)}}});o.provide(Le,{setRequest:H,touchRequest:P});const A=()=>{N.emit(Zt)};o.provide(Zt,{emitRefreshPage:A});const R=T=>{N.on(Zt,()=>T()),o.onMounted(()=>{N.off(Zt)})};return o.onBeforeUnmount(()=>{L==null||L.clear(),z==null||z.clear()}),n({touchRequest:P,getGlobalModel:m,onRefreshPage:R}),{providerConfig:a,configStyle:y}}}),Yd="";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 di=ge(ue(fc,[["render",dc],["__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"},Eo=xe(Bo),ui=["refreshData","click","valueChange"],Do="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=",_o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGF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+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Ro=o.defineComponent({name:"EcanText",components:{Skeleton:tn},props:{...Eo},setup(e,{expose:n}){const t=o.ref(!1),a=be(e),r=o.ref({}),i=o.computed(()=>e.variableFontSize||"14px"),s=o.computed(()=>"-"+o.unref(i));o.watch(()=>[e.data,e.dataType],([C,D])=>{D==="static"&&(r.value=C)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=o.inject(we,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{}}),{setLoadedData:c}=o.inject(mt,{setLoadedData:(C,D)=>{}}),u=o.computed(()=>{let C="";if(e.gradientShow){const{gradientColor:D,gradientOffset:v,gradientAngle:I,color:F}=e;C+=`background: linear-gradient(${I}, ${F}, ${D||"transparent"} ${v*100}%);-webkit-background-clip: text;color: transparent;`}return C}),y=o.computed(()=>{const C={};if(e.gradientShow){const{gradientColor:D,gradientOffset:v,gradientAngle:I,color:F}=e,L=D||"transparent";C.background=`linear-gradient(${I}, ${F}, ${L} ${v*100}%)`,C["-webkit-background-clip"]="text",C.color="transparent"}return C}),d=o.computed(()=>{var z;if(o.unref(t))return"NaN";const C=o.unref(r),D=e.increaseColor||e.color,v=e.declineColor||e.color;let I=e.text;I=I==null?void 0:I.replace(/\n|\\n/g,"<br/>"),I=I==null?void 0:I.replace(/\s(?!\{) | (?!\})\s/g," ");const F=I.match(/\{(.+?)\}/g)||[];let L="";if(F==null||F.length===0){if(I&&e.format==="percentage"&&!isNaN(+I)){const H=parseFloat(I),j=H*100,P=h(j.toFixed(2));H>=0?I=`<span style="color: ${P||D||"#ED6643"};font-size:${o.unref(i)};display: inline-block;${o.unref(u)}">
|
|
92
|
+
`)},o.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
|
+
`;return t+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
|
+
`,t+="-----END RSA PRIVATE KEY-----",t},o.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
|
+
`;return t+=o.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
+
`,t+="-----END PUBLIC KEY-----",t},o.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},o.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")},o.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)},o}(Ws),wo,Qs=typeof process<"u"?(wo=process.env)===null||wo===void 0?void 0:wo.npm_package_version:void 0,Js=function(){function e(o){o===void 0&&(o={}),o=o||{},this.default_key_size=o.default_key_size?parseInt(o.default_key_size,10):1024,this.default_public_exponent=o.default_public_exponent||"010001",this.log=o.log||!1,this.key=null}return e.prototype.setKey=function(o){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ni(o)},e.prototype.setPrivateKey=function(o){this.setKey(o)},e.prototype.setPublicKey=function(o){this.setKey(o)},e.prototype.decrypt=function(o){try{return this.getKey().decrypt($r(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return an(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return an(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,$r(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new ni,o&&{}.toString.call(o)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,o);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=Qs,e}();const oi=new Js,qt=Xs();function Xs(){let o=Math.random().toString(36).substr(2);for(;o.length<16;)o+=Math.random().toString(36).substr(2);return o=o.substr(0,16),o}const ai=Ye.enc.Utf8.parse("ABCDEF1234123412");function ec(e,o){o=o||qt;const t=Ye.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Ye.enc.Utf8.parse(e);break;case"object":a=Ye.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ye.enc.Utf8.parse(e.toString())}return Ye.AES.encrypt(a,t,{iv:ai,mode:Ye.mode.CBC,padding:Ye.pad.ZeroPadding}).toString()}function ri(e,o){o=o||qt;const t=Ye.enc.Utf8.parse(o),a=Ye.AES.decrypt(e,t,{iv:ai,mode:Ye.mode.CBC,padding:Ye.pad.ZeroPadding});return Ye.enc.Utf8.stringify(a).toString()}function tc(e){oi.setPublicKey(e)}function nc(e){return oi.encrypt(e)}function ii(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 oc(e){const{paramType:o,data:t,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ht(a,"string"):e.data=Ht(t,"string"):["get","delete"].includes(r)?e.params=Ht(a,"string"):e.data=Ht(t)}function Ht(e,o){let t=e||{};if(o==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];t+=`${l}=${encodeURIComponent(d)}&`}}tc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=nc(qt);return{c:ec(t,qt),p:r}}window.getEncryptParam=Ht;function ac(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ii(e.url)&&(e.data instanceof FormData?e.data=rc(e.data):oc(e))}function rc(e){const o=e.entries(),t=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=Ht(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=qt,window.xhaesDecrypt=ri;function li(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&ii(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ri(e.data.data.content,qt);e.data=JSON.parse(a)}}const si=window.config.requestErrorTip,lt=I0.create({timeout:1e3*180});lt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),ac(e),e},e=>Promise.reject(e)),lt.interceptors.response.use(e=>{var o,t,a;return si&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.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"}),li(e),e},e=>{if(li(e==null?void 0:e.response),si)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR"}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const ic=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Ao=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},lc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},hn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},sc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},ci=(e,o)=>tt(o,e),bt=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const t=o.length;for(let a=0;a<t;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},gn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),Yt=e=>{const{leftAxisList:o=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},et=(e,o)=>{let t=!0;const a=Yt(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},mn=(e,o)=>{const t={dayjs:ke,...o};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},Be=(e="",{textData:o,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let u=c.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=u.match(h);for(let g=0;g<f.length;g++){const y=f[g],m=s[y];m!=null&&typeof m!="function"&&(u=u.replace(y,m))}(/\(.*\)/g.test(u)||/[+/\\*]/g.test(u))&&(u=mn(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},qe=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=n.inject(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:u}=n.inject(we,{getGlobalModel:y=>{}}),h=Be(t),f=async(y={})=>{if(!h||!a||!r)return;let m={};i.forEach(x=>{const{key:A,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let B={};const{id:L,prop:R,propKey:C,operate:S}=k;L==="THIS"?B=u(n.unref(c))||{}:B=u(L)||{};const T=n.unref(B[R]);let w=null;if(["date","range"].some(N=>bt(B==null?void 0:B.type,N))){const{value:N,type:O,mode:M}=S||{};if(N&&O&&M)switch(O){case"add":w=n.unref(T).add(N,M);break;case"minus":w=n.unref(T).subtract(N,M);break}w==null&&(w=n.unref(T)),w=(w==null?void 0:w.format((C==null?void 0:C.trim())||B.format))||""}else Object.prototype.toString.call(T)==="[object Object]"?C?w=T[C]:w=R?T[R]:T:bt(B==null?void 0:B.type,"select")&&n.unref(T)&&R&&Array.isArray(n.unref(T))?w=n.unref(T).map(N=>Object.prototype.hasOwnProperty.call(N,R)?N[R]:N):w=T;m[A]=w}else typeof k=="string"&&(m[A]=Be(k))}),m={...window.config.requestParams,...y,...m};let v="";const E=Object.keys(m),p=E.length-1,b=E.length;E.forEach((x,A)=>{let k=m[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),A===0?b!==1?v+=`?${x}=${k}&`:v+=`?${x}=${k}`:A===p?v+=`${x}=${k}`:v+=`${x}=${k}&`});try{const x=["get","head"].includes(a),A={};let k=x?h+v:h;m.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`),Object.prototype.hasOwnProperty.call(m,"signal")&&(A.signal=m.signal);const B=await lt({baseURL:n.unref(d)||"",url:k,method:a,headers:r,data:x?{}:m,...A});return o(B),B}catch(x){console.error(x)}},g=l&&setInterval(f,s*1e3);return n.onUnmounted(()=>{clearInterval(g)}),f},vt=(e=[],o,t=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!t){const h=[];for(let g=0;g<d;g++){const y=r[g],{label:m,value:v}=y,E={...e[0],value:e[0][v]};i.add(m),h.push(E)}const f=e[0][a]||"";s.set(f,h)}else for(let h=0;h<l;h++){const f=e[h],g=f[a];i.add(g);for(let y=0;y<d;y++){const m=r[y],{label:v,value:E}=m,p={...f,value:f[E]};if(s.has(v)){const b=s.get(v);b.push(p),s.set(v,b)}else s.set(v,[p])}}const c=Array.from(i),u=[];for(const[h,f]of s)u.push({name:h,data:f});return{dimensions:c,dataset:u}},St=(e,o=!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,o&&(t=`url(${t})`),t},fi=(e,o)=>{const t=`${rr}/preview?pageId=${o}`,a=`${rr}/${o}`;return e==="preview"?t:a},tt=(e,o)=>{var r;if(e==null)return o;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return o;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,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=mn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},nt=(e={})=>{const{requestToken:o}=n.inject(tr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(mt,{setLoadedData:(f,g)=>{}});e.dataType==="indicator"&&o();const a=(f={})=>{const{label:g,name:y,location:m,show:v,indexCode:E}=f;return{label:g,columnName:y,location:m,show:v,calcType:"COLUMN",hrpIndexCode:E}},r=(f,g)=>Object.prototype.hasOwnProperty.call(f,g),i=f=>{r(f,"dataType")&&(f.fieldType==="DATE"&&(f.label=f.fieldName),f.dataType==="component"&&(f.fieldValue="${"+f.fieldValue+"}"),delete f.dataType),r(f,"activeKey")&&delete f.activeKey,r(f,"radioValue")&&delete f.radioValue},s=f=>{const g=[];return f!=null&&f.length&&Pe.cloneDeep(f).forEach(y=>{if(y.join&&y.conditions){const m=!y.conditions.some(v=>v.join&&v.conditions);y.conditions.forEach((v,E)=>{i(v),m?E<y.conditions.length-1?g.push({join:y.join,...v}):g.push(v):v.join&&v.conditions?g.push({conditions:s([v]),join:y.join}):g.push(v)})}else i(y),g.push(y)}),g},l=(f={})=>{const{label:g,name:y,location:m,show:v,indexCode:E,calcType:p="COLUMN",builtInFormula:b,builtInValueSource:x,builtInCalcWay:A,formula:k,conditions:B,aggregate:L}=f;let R;if(B&&(R=s(B)),p==="COMPONENT"){const C={};return h(C,x),{label:g.trim(),columnName:y,show:v,calcType:p,componentAlias:A,componentValue:C.fieldValue||null}}else return{label:g.trim(),columnName:y,location:m,show:v,calcType:p,hrpIndexCode:E,aggregate:L,builtInFormula:b,builtInValueSource:x,builtInCalcWay:A,formula:k,conditions:R}},d=f=>{const g=[];for(const y of f)y.conditions?g.push(...d(y.conditions)):(y==null?void 0:y.dataType)==="component"&&g.push(y);return g},{getGlobalModel:c}=n.inject(we,{getGlobalModel:f=>{}}),u=f=>{if(!f)return[];const{controlList:g=[],classificationList:y=[],rowHeaderList:m=[],seriesList:v=[],leftAxisList:E=[],rightAxisList:p=[],queryColumnList:b=[],indicators:x=[]}=f,A=[...y,...m,...v,...E,...p,...b,...x],k=[];for(const C of A){const S=d((C==null?void 0:C.conditions)||[]);if(S!=null&&S.length){const T=S.filter(w=>(w==null?void 0:w.dataType)==="component").map(w=>{const I={};return w!=null&&w.dateFormat&&(I.format=w.dateFormat),{conditionKey:w.fieldName,conditionLabel:w.fieldName,conditionName:w.fieldName,conditionValueType:w.fieldType,id:w.componentId,keyName:w.fieldValue,rule:w.rule,notGlobal:!0,...I}});if(T!=null&&T.length)for(const w of T)k.find(I=>I.keyName===w.keyName)||k.push(w)}}const B=g.concat(k),L=B.length,R=[];for(let C=0;C<L;C++){const S=B[C];if((S==null?void 0:S.conditionKey)==="parentCode")continue;const{id:T,keyName:w,conditionLabel:I,conditionKey:N,conditionValueType:O,prop:M,rule:q="NONE",notGlobal:j=!1,format:G,modelKey:F}=S;let P=w||T;P&&M&&(P+=`-${M}`);let _=q;_==="NONE"&&(["startTime","endTime"].includes(M)?_=M==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":w!=null&&w.includes("startTime")?_=M==="GREATER_EQUAL":w!=null&&w.includes("endTime")?_=M==="LESS_EQUAL":_="EQUAL");const D={rule:_,label:I,fieldName:N,fieldValue:"",valueType:O,alias:P,globalCondition:!j};h(D,T,{prop:M,dateFormat:G,modelKey:F,keyName:w}),R.push(D)}for(let C=R.length-1;C>=0;C--){const S=R[C];S.globalCondition||R.find(w=>w.alias===S.alias&&w.globalCondition)&&R.splice(C,1)}return R};function h(f,g,y){var C,S;const m=c(g)||{},{prop:v="",dateFormat:E="",modelKey:p="",keyName:b=""}=y||{},{value:x,format:A="YYYY-MM-DD",type:k="",useCurrentTime:B,RECORD:L}=m||{},R=E||A;if(bt(m.type,"date"))B?x?f.fieldValue=(C=n.unref(x))==null?void 0:C.format(R):f.fieldValue=ke().format(R):f.fieldValue=(S=n.unref(x))==null?void 0:S.format(R),f.dateFormat=R;else if(k==="ecanRangePicker"){const{interval:T,intervalUnit:w,operate:I}=m||{};let N=v;if(!v){const M=b&&b.split("-");M!=null&&M.length&&(N=M[M.length-1])}if(!N)return;let O=null;if(B&&(N==="startTime"?O=ke().subtract(T,w):N==="endTime"&&(O=ke())),n.unref(m[N])&&(O=ke(n.unref(m[N]))),I){const{type:M,value:q,mode:j}=I;switch(M){case"add":O=O&&O.add(q,j);break;case"minus":O=O&&O.subtract(q,j)}}O&&(f.fieldValue=O==null?void 0:O.format(R)),f.dateFormat=R}else bt(k,["table","bar","combograph","line","pie","radar","scatter","list"])?p&&L?f.fieldValue=L[p]:!p&&L?f.fieldValue=L.value:f.fieldValue=n.unref(x):f.fieldValue=n.unref(x)}return async(f={})=>{var D,z,U,J,$,Q;t(e.id,!1);const{graphicConfig:g,type:y,isGroupTable:m=!1}=e;let{source:v,dataViewId:E,plugin:p="1",layer:b,chartType:x,classificationList:A=[],rowHeaderList:k=[],seriesList:B=[],leftAxisList:L=[],rightAxisList:R=[],queryColumnList:C=[],indicators:S=[],controlList:T=[],formFields:w={},idxLibMode:I,preview:N=!1}=g||{},O=[];(g==null?void 0:g.pageMode)==="design"?O=g.sqlConditions??[]:O=u(g),b==null&&(bt(y,["table"])?b="1":bt(y,["select","checkbox","radio"])?b="3":b="2");let M,q="";if(Array.isArray(A)&&A.length>0){const Z=A.length;for(let ee=0;ee<Z;ee++){const ne=A[ee]||{},{label:ae="",name:re="",show:de=!1,sort:Se,customGroup:De,conditions:Re,dateFormat:je,typeGuid:Ue="",truncations:_e=[]}=ne;if(de||Z===1){q=Ue,M={label:ae.trim(),columnName:re,show:de,sort:Se,customGroup:De,conditions:s(Re),typeGuid:Ue},je&&(M.dateFormat=je),re==="the_date"&&!M.dateFormat&&(M.dateFormat="YYYY-MM");const Ae={};if(Array.isArray(_e)&&_e.length>0){const Ne=_e.length;for(let We=0;We<Ne;We++){const ot=_e[We]||{},{rule:He="",num:Ge=0,name:ut=""}=ot;He&&Ge&&(Ae.num=Ge,Ae.rule=He,ut&&(Ae.otherGroupName=ut))}}(D=Object.keys(Ae))!=null&&D.length&&(M.truncation=Ae);break}}}let j;if(Array.isArray(B)&&B.length>0){const Z=B.length;for(let ee=0;ee<Z;ee++){const ne=B[ee]||{},{label:ae="",name:re="",show:de=!1,sort:Se,customGroup:De,conditions:Re}=ne;if(de||Z===1){j={label:ae.trim(),columnName:re,show:de,sort:Se,customGroup:De,conditions:s(Re)};break}}}const G=[];C==null||C.forEach(Z=>{G.push(a(Z))});const F=[];L==null||L.forEach(Z=>{Z.location="LEFT",F.push(l(Z))}),R==null||R.forEach(Z=>{Z.location="RIGHT",F.push(l(Z))}),S==null||S.forEach(Z=>{Z.location="LEFT",F.push(l(Z))});const P=[];if(Array.isArray(k)&&k.length>0){const Z=k.length;for(let ee=0;ee<Z;ee++){const ne=k[ee]||{},{label:ae="",name:re="",show:de=!1,sort:Se,customGroup:De,conditions:Re,truncations:je,typeGuid:Ue=""}=ne;let _e=Se;if(f.sort){const{field:We,order:ot}=f.sort,He=F.find(Ge=>Ge.label===We);He&&(_e={columnName:He.columnName,label:f.sort.field,order:ot.toUpperCase(),type:"NORMAL"})}const Ae={label:ae.trim(),columnName:re,show:de,sort:_e,customGroup:De,conditions:s(Re),typeGuid:Ue},Ne={};if(Array.isArray(je)&&je.length>0){const We=je.length;for(let ot=0;ot<We;ot++){const He=je[ot]||{},{rule:Ge="",num:ut=0,name:V=""}=He;Ge&&ut&&(Ne.num=ut,Ne.rule=Ge,V&&(Ne.otherGroupName=V))}}(z=Object.keys(Ne))!=null&&z.length&&(Ae.truncation=Ne),P.push(Ae)}}if(bt(y,["text","proportion"])&&(x="zb"),m){if(P.length===0||F.length===0)return;x="grouptable"}else{if(b==="1"&&G.length===0)return;if(b==="2"&&F.length===0)return;if(b==="3"&&(!q||!w.labelField||!w.valueField))return}let _=(U=window==null?void 0:window.config)==null?void 0:U.pageId;if(!_){const{pathname:Z}=window==null?void 0:window.location;if(Z){const ee=Z.split("/");ee!=null&&ee.length&&(_=ee[ee.length-1])}}if((J=Object.keys(w))!=null&&J.length){const Z=T.find(ne=>ne.conditionKey==="parentCode"),ee={};if(Z){const ne=c(Z.id)||{};if(ne!=null&&ne.itemCodes)ee.parentItemCodes=ne.itemCodes;else return}try{return await lt.post(`${ar}/diagram/formData`,{source:v,dataViewId:E,plugin:"4",layer:b,chartType:"normalSelect",rangeIndexTypeGuid:q,type:"normalSelect",labelField:w.labelField,valueField:w.valueField,pageId:_,sqlConditions:O,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...ee},{headers:{Authentication:($=window==null?void 0:window.config)==null?void 0:$.indicatorToken,operateContext:or}})}catch(ne){console.error(ne)}finally{}}else try{return await lt.post(`${ar}/diagram`,{source:v,dataViewId:E,plugin:p,layer:b,chartType:x,classification:M,series:j,indicatorList:F,queryColumns:m?[]:G,pageFlag:!0,pageId:_,sqlConditions:O.map(ee=>{const{fieldValue:ne}=ee,ae={};return ne&&Array.isArray(ne)&&(ae.fieldValue=JSON.stringify(ne)),{...ee,...ae}}),idxLibMode:I,preview:N,rowHeaders:P,keyName:e.keyName},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:or}})}catch(Z){console.error(Z)}finally{}}},cc=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[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}},fc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...On},setup(e){const{width:o,height:t}=n.inject(Me,{width:null,height:null}),a=n.inject("setPageHeight",x=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const x={};return r||(x.width=o.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:St(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),d=n.ref(0),c=n.ref(0),u=n.ref(!1),h=n.ref();let f;const g=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=h.value.clientWidth,l.value=h.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),y=()=>{s.value&&l.value?(h.value.style.width=`${s.value}px`,h.value.style.height=`${l.value}px`):(h.value.style.width=`${d.value}px`,h.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await g(),y(),v(),window.addEventListener("resize",E),p(),u.value=!0},{immediate:!0});const m=n.ref({});n.provide("scaleValue",m);const v=()=>{if(r){h.value.style.width="100%",h.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,A=document.body.clientHeight,k=s.value||d.value,B=l.value||c.value,L=x/k;let R=A/B;(s.value!==1920||l.value!==1080)&&(R=l.value/s.value*x/B),m.value={widthScale:L,heightScale:R},h.value&&(h.value.style.transform=`scale(${L}, ${R})`),a(R)},E=Pe.debounce(async()=>{await g(),v()},100),p=()=>{const x=window.MutationObserver;f=new x(E),f.observe(h.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return n.onMounted(()=>{u.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:h,ready:u}}}),vu="",dc={id:"container",ref:"container"};function uc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",dc,[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"page-config",style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],512)}const di=me(he(fc,[["render",uc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=pe(ko),hc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},setup(e,{expose:o}){cc();const t=n.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=n.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=n.inject("usedComponentList",[]);n.watch(()=>e.theme,()=>{r()}),n.onMounted(()=>{r()});const s=n.computed(()=>Be(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),d=n.computed(()=>e.theme),c=n.computed(()=>e.width),u=n.computed(()=>e.height),h=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:h,width:c,height:u});const f=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",z=>{let U=z;t.value||(U=parseFloat(u.value)*z+"px"),f.value.height=U}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const g=n.ref(),y=new Map;console.log("globalModel",y);const m=z=>y.get(z),v=(z,U)=>{g.value=U,y.set(z,U)},E=()=>{g.value=null},p=z=>{let U=z;if(U){const J=z.match(/\{(.+?)\}/g);if(J!=null&&J.length){let $=J[0].slice(1,-1).trim();const Q=$.match(/\[(.+?)\]/g);let Z="";Q!=null&&Q.length&&($=$.replace(Q[0],""),Z=Q[0].slice(1,-1).trim());const ee=n.unref(i).find(ne=>ne.keyName===$);if(ee){const ne=m(ee.id),{type:ae,value:re,RECORD:de}=ne||{};bt(ae,["table","bar","combograph","line","pie","radar","scatter","list"])?U=de[Z]:U=re}}}return U};n.provide(we,{getGlobalModel:m,setGlobalModel:v,clearInteractiveData:E,getRecordValueByKeyName:p,interactiveData:g});const b=n.ref({}),x=(z,U)=>{b.value[z]=U};n.provide(mt,{loadedData:b,setLoadedData:x});const A=[],k=()=>{A.pop()},B=z=>{A.push(z)},L=new Map,R=z=>L.get(z),C=(z,U)=>{L.set(z,U)};n.provide(nr,{popUseModalIds:k,pushUseModalIds:B,getModalModel:R,setModalModel:C});const S=R0(),T=new Set,w=(z,U)=>{T.add(z),S.on(z,J=>typeof U[J]=="function"&&U[J]()),n.onBeforeUnmount(()=>{I(z)})},I=z=>{T.delete(z),S.off(z)},N=(z,U)=>{if(z==="PAGE"){const J=A.length;let $=[];if(J===0)$=[...T];else{const Q=A[J-1];$=[...R(Q)]}$.forEach(Q=>{S.emit(Q,U)})}else S.emit(z,U)};n.provide(Ln,{onEvent:w,offEvent:I,emitEvent:N});const O=n.ref(0),M=()=>{O.value=n.unref(O)+1};n.provide(tr,{requestToken:M});const q=new Map,j=new Map,G=({requestFn:z=()=>{},sortNum:U=0,id:J=""})=>{if(q.has(U)){const $=q.get(U);$==null||$.push(z)}else q.set(U,[z]);j.set(J,z)},F=z=>new Promise((U,J)=>{const $=z.map(Q=>Q());Promise.all($).then(Q=>{U(Q)}).catch(Q=>{J(Q)})}),P=z=>new Promise(async(U,J)=>{if(z){if(typeof z=="string"){const $=j.get(z);if(typeof $=="function"){const Q=lt.interceptors.response.use(Z=>(U(Z),Z),Z=>(J(Z),Promise.reject(Z)));$(),lt.interceptors.response.eject(Q)}}}else{const $=Array.from(q);$.sort((Z,ee)=>ee[0]-Z[0]);const Q=$.length;try{e.pageMode!=="design"&&n.unref(O)>0;for(let Z=0;Z<Q;Z++){const ee=$[Z][1];await F(ee)}}catch(Z){console.error(Z)}finally{q.clear(),U(null)}}});n.provide(ze,{setRequest:G,touchRequest:P});const _=()=>{S.emit($t)};n.provide($t,{emitRefreshPage:_});const D=z=>{S.on($t,()=>z()),n.onMounted(()=>{S.off($t)})};return n.onBeforeUnmount(()=>{q==null||q.clear(),j==null||j.clear()}),o({touchRequest:P,getGlobalModel:m,onRefreshPage:D}),{providerConfig:a,configStyle:f}}}),Cu="";function gc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:n.normalizeStyle(e.configStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const ui=me(he(hc,[["render",gc],["__scopeId","data-v-1ab62961"]])),Bo={...Ce,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"},Eo=pe(Bo),hi=["refreshData","click","valueChange"],Do="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=",Io="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMv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DctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+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==",Ro=n.defineComponent({name:"EcanText",components:{Skeleton:tn},props:{...Eo},setup(e,{expose:o}){const t=n.ref(!1),a=ve(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([S,T])=>{T==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{setLoadedData:c}=n.inject(mt,{setLoadedData:(S,T)=>{}}),u=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:I,color:N}=e;S+=`background: linear-gradient(${I}, ${N}, ${T||"transparent"} ${w*100}%);-webkit-background-clip: text;color: transparent;`}return S}),h=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:T,gradientOffset:w,gradientAngle:I,color:N}=e,O=T||"transparent";S.background=`linear-gradient(${I}, ${N}, ${O} ${w*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),f=n.computed(()=>{var M;if(n.unref(t))return"NaN";const S=n.unref(r),T=e.increaseColor||e.color,w=e.declineColor||e.color;let I=e.text;I=I==null?void 0:I.replace(/\n|\\n/g,"<br/>"),I=I==null?void 0:I.replace(/\s(?!\{) | (?!\})\s/g," ");const N=I.match(/\{(.+?)\}/g)||[];let O="";if(N==null||N.length===0){if(I&&e.format==="percentage"&&!isNaN(+I)){const q=parseFloat(I),j=q*100,G=g(j.toFixed(2));q>=0?I=`<span style="color: ${G||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
|
|
98
98
|
<div class="percentage-img-box">
|
|
99
|
-
<img style="width: ${
|
|
99
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${G||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
|
|
100
100
|
</div>
|
|
101
|
-
<span style="color: ${
|
|
102
|
-
</span>`:I=`<span style="color: ${
|
|
101
|
+
<span style="color: ${G||e.color};${n.unref(u)}">${Math.abs(+j).toFixed(2)}%</span>
|
|
102
|
+
</span>`:I=`<span style="color: ${G||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${
|
|
104
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${G||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
|
|
105
105
|
</div>
|
|
106
|
-
<span style="color: ${
|
|
107
|
-
</span>`}
|
|
106
|
+
<span style="color: ${G||e.color};${n.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+j).toFixed(2)}%</span>
|
|
107
|
+
</span>`}O=I}for(let q=0;q<N.length;q++){const j=N[q],G=(M=j==null?void 0:j.slice(1,j.length-1))==null?void 0:M.trim();let F=G;const P=G.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let D=0;D<P.length;D++){const z=P[D],U=S[z];U&&(F=G.replace(z,U))}if(/\(.*\)/g.test(F)){const D=mn(F);D!=null&&(F=D)}let _=F;if(_===G&&(_=e.variableDefaultValue),_!=null){const D=e.format;if(D==="percentage")if(_=+_,isNaN(_))I=I.replace(j,`<span style="color:${g("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">0%</span>`);else if(_>=0){_=_*100;const z=g(_.toFixed(2));I=I.replace(j,`<span style="color: ${z||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${
|
|
109
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${z||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${
|
|
112
|
-
</span>`)}else{
|
|
111
|
+
<span style="color: ${z||e.color};${n.unref(u)}">${Math.abs(+_).toFixed(2)}%</span>
|
|
112
|
+
</span>`)}else{_=_*100;const z=g(_.toFixed(2));I=I.replace(j,`<span style="color: ${z||w||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(u)}">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${
|
|
114
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${z||w||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${
|
|
117
|
-
</span>`)}else e.format==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),I=I.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=Ao(T),I=I.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):M==="thousands"?(T=+T,isNaN(T)||(T=oc(T),I=I.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`))):I=I.replace(j,`<span style="color:${h(T)||e.variableColor};font-size:${o.unref(i)};${o.unref(u)}">${T}</span>`)}}if(L||(L=`<span style="color: ${h(I)};${o.unref(u)}">${I}</span>`),e.unitShow&&e.unitText){const{unitTop:H,unitLeft:j}=e;let P="position:relative;";H&&(P+=`top:${H};`),j&&(P+=`margin-left:${j};`),L+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${o.unref(u)}'>${e.unitText}</span>`}return L});function h(C){let D="",v=!1;const{targetValue:I,targetShow:F,notExpectColor:L}=e;if(F){switch(e.targetRule){case"equal":C!==I&&(v=!0);break;case"greater":C<=I&&(v=!0);break;case"greater_equal":C<I&&(v=!0);break;case"less":C>=I&&(v=!0);break;case"less_equal":C>I&&(v=!0);break}v&&(D=L)}return D}const{pageMode:m}=o.inject(Me,{pageMode:"normal"}),g=Fe(e),S=o.ref(!1),_=async()=>{var C;try{S.value=!0;const D=await g();r.value=((C=D==null?void 0:D.data)==null?void 0:C.data)||{}}catch(D){console.error(D)}finally{S.value=!1}},b=(C={})=>{r.value=C},p=C=>{const D=e.id,v=l(D);f(D,{...v,value:C||""})},x=it(e),w=async()=>{var C;try{S.value=!0;const D=await x(),{data:v}=(D==null?void 0:D.data)||{};if(v){t.value=!1;const{columns:I=[],rows:F=[]}=((C=D==null?void 0:D.data)==null?void 0:C.data)??{};let L={};if(I.length>0){const z=I.find(H=>!!H);z&&(L={value:isNaN(F[z])?0:F[z]||0})}p(L==null?void 0:L.value),b(L)}else t.value=!0,p("NaN"),b({value:"NaN"})}catch(D){console.error(D)}finally{S.value=!1,c(e.id,!0)}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":_();break}},{setRequest:E}=o.inject(Le,{setRequest:({id:C,sortNum:D,requestFn:v})=>{}});typeof E=="function"&&E({id:e.id,requestFn:k,sortNum:e.requestSort}),De(e,{refreshData:k}),n({refreshData:k});const O=Ae(e),N=O("click",()=>{if(!e.linkPage&&!e.href)return;const C=e.linkPage||"",D=ci(o.unref(m),C),v=e.href;let I=v||D;I=ke(I);const F=e.target;F&&(F!=="event"?window.open(I,"_"+F):window.parent.postMessage({type:"openPage",url:v},"*"))}),B=O("valueChange",()=>{});return o.watch(()=>d.value,(C,D)=>{C!==D&&B()}),{style:a,myText:d,loading:S,click:N,textIndent:s,vFontSize:i,gradientStyle:y}}}),hi=()=>{o.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},gi=Ro.setup;Ro.setup=gi?(e,n)=>(hi(),gi(e,n)):hi;const Qd="",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 mi=ge(ue(Ro,[["render",hc],["__scopeId","data-v-3cbb70ab"]])),gc=o.defineComponent({name:"EcanScrollText",setup(){return{text:o.ref("基础文本")}}}),Xd="",mc={class:"red"};function yc(e,n,t,a,r,i){return o.openBlock(),o.createElementBlock("div",mc,o.toDisplayString(e.text),1)}const yi=ge(ue(gc,[["render",yc],["__scopeId","data-v-4dd9c03e"]])),Io={...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"}},Lo=xe(Io),xi=["timeChange"],xc=o.defineComponent({name:"EcanTimeDisplay",props:{...Lo},setup(e){const n=be(e),t=()=>{const{format:c,operate:u}=e;let y=Ce();if(u){const{type:d,value:h,mode:m}=u;switch(d){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.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=Ae(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:u,mode:y}=e.updateInterval||{};u&&(c=c*u);const d={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*d[y]),r=setInterval(()=>{a.value=t(),l()},c)};return De(e,{timeChange:l}),o.onMounted(()=>{f()}),o.onUnmounted(()=>{i()}),{style:n,time:a}}}),t1="";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 pi=ge(ue(xc,[["render",pc],["__scopeId","data-v-b628fca2"]])),Oo={...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"}]},No=xe(Oo),bi=["refreshData","click"],bc=o.defineComponent({name:"EcanList",components:{Skeleton:tn},props:{...No},setup(e){const n=o.ref(e.data),t=be(e,["backgroundColor"]),a=o.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(h,m)=>m==null||m===""?h:{money:Ao,percentage:hn,contrast:hn}[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()},y=Ae(e)("click",()=>{});De(e,{refreshData:c});const{setRequest:d}=o.inject(Le,{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:y}}}),o1="",a1="",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 vi=ge(ue(bc,[["render",Ec],["__scopeId","data-v-7aa27677"]])),Mo={...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:{}},Fo=xe(Mo),Si=["refreshData","click"],Dc=o.defineComponent({name:"EcanProportion",components:{AProgress:ie.Progress,Skeleton:tn},props:{...Fo},setup(e,{expose:n}){const t=o.ref(!1),{pageMode:a}=o.inject(Me,{pageMode:"normal"}),r=be(e),i=o.computed(()=>{const x=e.width;return parseFloat(x)}),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 x=o.unref(s),w=+e.variableDefaultValue;if(x==null)return isNaN(w)?0:w;const k=e.text.match(/\{.+\}/g)||[];let E;const O=new Set(Object.keys(x));for(let N=0;N<k.length;N++){const B=k[N],C=B.slice(1,B.length-1);if(O.has(C)){E=x[C];break}}return typeof E=="number"?E=E*100:typeof E=="string"&&!isNaN(+E)?E=+E*100:isNaN(w)?E=0:E=w*100,e.decimalFormat&&(E=+E.toFixed(2)),E}),f=o.computed(()=>{var O;let x=e.text;if(x==="")return o.unref(l);const w=e.variableDefaultValue,k=o.unref(s),E=x.match(/\{.+\}/g)||[];for(let N=0;N<E.length;N++){const B=E[N];let C=B.slice(1,B.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,v=B.match(D);for(let F=0;F<(v==null?void 0:v.length);F++){const L=(O=v[F])==null?void 0:O.trim();k[L]!=null&&(C=C.replace(L,k[L]))}let I=C;try{/\(.*\)/g.test(C)&&(I=mn(C))}catch(F){console.error(F)}typeof+I=="number"&&!isNaN(+I)?(I=+I*100,e.decimalFormat&&(I=I.toFixed(2))):I=w,x=x.replace(B,I+"")}return o.unref(t)?"NaN":x}),c=Fe(e),u=o.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{u.value=!0;const w=await c();s.value=((x=w==null?void 0:w.data)==null?void 0:x.data)||{}}catch(w){console.error(w)}finally{u.value=!1}},d=(x={})=>{s.value=x},h=it(e),m=async()=>{var x;try{u.value=!0;const w=await h(),{data:k}=(w==null?void 0:w.data)||{};if(k){t.value=!1;const{columns:E=[],rows:O=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let N={};if(E.length>0){const B=E.find(C=>!!C);B&&(N={percent:O[B]})}d(N)}else t.value=!0,d({percent:"NaN"})}catch(w){console.error(w)}finally{u.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};De(e,{refreshData:g}),n({refreshData:g});const _=Ae(e)("click",()=>{}),{setRequest:b}=o.inject(Le,{setRequest:({id:x,sortNum:w,requestFn:k})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const p=o.computed(()=>{const{gradientShow:x,gradientColor:w,gradientOffset:k,strokeColor:E}=e;let O=E;return x&&w&&(O={"0%":E,[`${k*100}%`]:w}),O});return{style:r,myWidth:i,text:f,myValue:l,loading:u,click:_,customStrokeColor:p}}}),i1="";function _c(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 Ci=ge(ue(Dc,[["render",_c],["__scopeId","data-v-cf942b5f"]])),zo={...ve,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=xe(zo),wi=["inputChange","inputBlur"],Rc=o.defineComponent({name:"EcanInput",components:{AInput:ie.Input},props:{...Po},setup(e){const n=be(e),t=o.ref("");o.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=o.inject(we,{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=Ae(e),l=Ne.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:l}}}),s1="";function Ic(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 Ai=ge(ue(Rc,[["render",Ic]])),Ho={...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"},qo=xe(Ho),ki=["dateChange"],Vo=o.defineComponent({name:"EcanDatePicker",props:{...qo},components:{ADatePicker:ie.DatePicker},setup(e){const n=o.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=be(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=Ce(ke(d)):h&&(g=Ce()),m&&g){const{type:S,value:_,mode:b}=m;switch(S){case"add":g=g.add(_,b);break;case"minus":g=g.subtract(_,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=o.inject(we,{setGlobalModel:(d,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ae(e)("dateChange",()=>{}),f=()=>{o.unref(r)&&l()};De(e,{dateChange:l});const c=o.ref({}),u=o.ref({}),y=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:y}}}),Ti=()=>{o.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Bi=Vo.setup;Vo.setup=Bi?(e,n)=>(Ti(),Bi(e,n)):Ti;const f1="",d1="",Lc=["id"];function Oc(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,Lc)}const Ei=ge(ue(Vo,[["render",Oc],["__scopeId","data-v-d4ec0d66"]])),jo={...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},Go=xe(jo),Di=["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 y=this.$utils(),d=!!y.u(u)||u;if(y.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 Mc=ir(Nc);Ce.extend(Mc);const Uo=o.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ie.RangePicker},props:{...Go},setup(e){const n=be(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,x,w,k,E,O])=>{let N=null,B=null;if(w&&(N=Ce().subtract(k,E),B=Ce()),p&&(N=Ce(ke(p))),x&&(B=Ce(ke(x))),O){const{type:C,value:D,mode:v}=O;switch(C){case"add":N=N&&N.add(D,v),B=B&&B.add(D,v);break;case"minus":N=N&&N.subtract(D,v),B=B&&B.subtract(D,v)}}a.value=[N,B]},{immediate:!0});let r=o.unref(a)[0],i=o.unref(a)[1],s="";const l=(p,x,w)=>{Array.isArray(p)?(r=p[0],i=p[1],s=w.range):(r=null,i=null)},f=p=>{let x=!1,{limitStartTime:w,limitEndTime:k}=e;const E={startTime:`${r||""}`,endTime:`${i||""}`};if(w=ke(w,{codeData:E}),k=ke(k,{codeData:E}),w&&k?x=!(Ce(w)<p&&p<Ce(k)):w?x=Ce(w)>p:k&&(x=Ce(k)<p),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),B=O.endOf("year");x=!(N<=p&&p<B)}}return x},{getGlobalModel:c,setGlobalModel:u}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}}),y=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:y,endTime:d,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ae(e);let m=!1;const g=h("dateChange",()=>{}),S=p=>{const x=o.unref(a),w=x&&x[0]&&x[1];p===!1&&m===!0&&w&&(g(),m=!1),p||(s="")},_=()=>{m=!0};return De(e,{dateChange:()=>{const{associated:p}=e;if(p){const x=c(p)||{};if(x){const{value:w}=x;if(w)switch(o.unref(w)){case"month":a.value=[Ce().startOf("month"),Ce().endOf("month")];break;case"quarter":a.value=[Ce().startOf("quarter"),Ce().endOf("quarter")];break;case"year":a.value=[Ce().startOf("year"),Ce().endOf("year")];break}}}g()}}),{style:n,getPopupContainer:t,locale:Ia,dateChange:g,myValue:a,disabledDate:f,calendarChange:l,openChange:S,change:_}}}),Ri=()=>{o.useCssVars(e=>({"70b68802":e.optionFontSize}))},Ii=Uo.setup;Uo.setup=Ii?(e,n)=>(Ri(),Ii(e,n)):Ri;const h1="",g1="";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 Li=ge(ue(Uo,[["render",Fc],["__scopeId","data-v-95653c92"]])),Wo={...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"},Zo=xe(Wo),Oi=["click"],zc=o.defineComponent({name:"EcanButton",components:{AButton:ie.Button},props:{...Zo},setup(e){const n=be(e),a=Ae(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(()=>ke(e.text)),s=o.computed(()=>ke(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}}}),y1="";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 Ni=ge(ue(zc,[["render",Pc]])),$o={...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:{}},Yo=xe($o),Mi=["checkboxChange"],Hc=o.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ie.CheckboxGroup},props:{...Yo},setup(e,{expose:n}){const t=be(e),a=o.ref([]),r=o.ref([]),i=S=>{const _=e.value;let b=[];S.forEach(p=>{p.checked&&b.push(p.value)}),typeof _=="string"&&_!==""?b=b.concat(_.split(",")):Array.isArray(_)&&(b=b.concat(_)),a.value=S,r.value=b};o.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Fe(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const S=await s(),_=((p=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(_)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,_)=>{}});c(e.id,{type:e.type,value:r});const y=Ae(e)("checkboxChange",()=>{const S=f(e.id);c(e.id,{...S,RECORD:r})}),d=it(e),h=async()=>{var S;try{const _=await d(),{data:b}=(_==null?void 0:_.data)||{};if(b){const x=(((S=_==null?void 0:_.data)==null?void 0:S.data)??[]).map(w=>({label:w.label,value:w.value}));i(x)}else i([])}catch(_){console.error(_)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=o.inject(Le,{setRequest:({id:S,sortNum:_,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:y}}}),p1="";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 Fi=ge(ue(Hc,[["render",qc]])),Ko={...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(Ko),zi=["selectChange","refreshData"],Vc=o.defineComponent({name:"EcanSelect",components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},props:{...Qo},setup(e,{expose:n}){const t=be(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Fe(e),i=o.ref(e.data||[]),s=o.ref(),l=o.computed({get:()=>{var I;const{mode:v}=e;return(I=o.unref(i))!=null&&I.length?s.value:v==="multiple"||v==="tags"||v==="combobox"?[]:""},set:v=>{s.value=v}});o.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:v,selectFirstOption:I,value:F}=e;v==="multiple"||v==="tags"||v==="combobox"?F?s.value=F.split(","):I&&(s.value=[o.unref(i)[0]]):F?s.value=F:I&&(s.value=o.unref(i)[0])},{immediate:!0});const f=e.dataFieldNames,c=(v,I)=>{const F=f.label,L=f.value;let z;const H=I[F],j=I[L];return H!=null?z=H:j!=null&&(z=j),(z==null?void 0:z.toLowerCase().indexOf(v==null?void 0:v.toLowerCase()))>=0},u=v=>{const{label:I,value:F,options:L}=e.dataFieldNames;if(L&&Array.isArray(v))if(v.some(z=>L in z)){const z={},H=[];v.forEach(j=>{z[j[L]]||(z[j[L]]=[]),z[j[L]].push({[I]:j[I],[F]:j[F]})});for(const j in z)H.push({[I]:j,[L]:z[j]});return H}else return v;else if(!L)return v},y=o.ref(!1),d=async()=>{var v,I;if(e.dataType==="request"){y.value=!0;try{const F=await r();if(i.value=u(((I=(v=F==null?void 0:F.data)==null?void 0:v.data)==null?void 0:I.rows)||[]),e.selectFirstOption){let L=o.unref(i)[0];if(f.options){const z=L[f.options];z&&z.length&&(L=z[0])}s.value=L[f.value]}}catch(F){console.error(F)}finally{y.value=!1}}},{getGlobalModel:h,setGlobalModel:m}=o.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,I)=>{}}),{setLoadedData:g,loadedData:S}=o.inject(mt,{setLoadedData:(v,I)=>{},loadedData:{}}),_=o.computed(()=>{let v=s.value;if(e.valueType==="label"&&o.unref(s)&&o.unref(i)){const I=f.label,F=f.value;if(e.mode==="multiple")v=o.unref(i).filter(L=>o.unref(s).includes(L[F])).map(L=>L[I]);else{const L=o.unref(i).find(z=>o.unref(s)===z[F]);L&&(v=L[I])}}return v}),b=o.ref([]),p=o.computed(()=>{const v={};if(e.mode!=="multiple"){const I=o.unref(b).find(F=>F.value===o.unref(s));I&&(v.itemCodes=I.item_codes)}return v});m(e.id,{type:e.type,value:_,...o.unref(p)});const w=Ae(e)("selectChange",()=>{const v=e.id,I=h(v);m(v,{...I,...o.unref(p),RECORD:_})}),k=(v=[])=>{if(i.value=u(v),e.selectFirstOption){let I=o.unref(i)[0];if(f.options){const F=I[f.options];F&&F.length&&(I=F[0])}s.value=I[f.value]}},E=it(e),O=async()=>{var v;try{y.value=!0;const I=await E(),{data:F}=(I==null?void 0:I.data)||{},L=f.label,z=f.value;if(F){const H=((v=I==null?void 0:I.data)==null?void 0:v.data)??[];b.value=H;const j=H.map(R=>({[L]:R.label,[z]:R.value})),{id:P}=e,A=h(P);m(P,{...A,...o.unref(p)}),g(P,!0),k(j)}else k([])}catch(I){console.error(I)}finally{y.value=!1}},N=o.computed(()=>{var v,I;return(I=(v=e==null?void 0:e.graphicConfig)==null?void 0:v.controlList)==null?void 0:I.find(F=>F.conditionKey==="parentCode")}),B=o.ref(!1);o.watch(S,v=>{!o.unref(B)&&o.unref(N)&&v[o.unref(N).id]&&(B.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(o.unref(N)){if(o.unref(S)[o.unref(N).id]){const{mode:v}=e;v==="multiple"||v==="tags"||v==="combobox"?l.value=[]:l.value="",O()}}else O();break}case"request":d();break}};De(e,{selectChange:w,refreshData:C});const{setRequest:D}=o.inject(Le,{setRequest:({id:v,sortNum:I,requestFn:F})=>{}});return typeof D=="function"&&D({id:e.id,requestFn:C,sortNum:e.requestSort}),n({refreshData:C}),{style:t,getPopupContainer:a,myValue:s,selectChange:w,options:i,filterOption:c,loading:y,resultValue:l}}}),v1="",S1="";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 Pi=ge(ue(Vc,[["render",jc],["__scopeId","data-v-987c48b0"]])),Jo={...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},Xo=xe(Jo),Hi=["selectChange","refreshData"],Gc={name:"EcanTreeSelect",components:{ATreeSelect:ie.TreeSelect},props:{...Xo},setup(e){const n=be(e),t=o.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,S=g.label,_=g.value;let b;const p=m[S],x=m[_];return p!=null?b=p:x!=null&&(b=x),(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 S=o.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Ae(e)("selectChange",()=>{const h=e.id,m=f(h);c(h,{...m,RECORD:r})});De(e,{selectChange:y,refreshData:l});const{setRequest:d}=o.inject(Le,{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:y}}},w1="",A1="";function Uc(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 qi=ge(ue(Gc,[["render",Uc],["__scopeId","data-v-37236421"]])),ea={...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:""},ta=xe(ea),Vi=["checkboxChange","click"],Wc=o.defineComponent({name:"EcanRadio",components:{ARadioGroup:ie.RadioGroup,ARadioButton:ie.RadioButton,ARadio:ie.Radio},props:{...ta},setup(e,{expose:n}){const t=be(e),a=o.ref([]),r=o.ref(""),i=p=>{const x=e.value;let w=[];typeof x=="string"&&x!==""?w=w.concat(x.split(",")):Array.isArray(x)&&(w=w.concat(x)),a.value=p,r.value=w[0]||""};o.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=Fe(e),l=async()=>{var w,k;if(e.dataType!=="request")return;const p=await s(),x=((k=(w=p==null?void 0:p.data)==null?void 0:w.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}});c(e.id,{type:e.type,value:r});const u=Ae(e),y=u("checkboxChange",()=>{const p=f(e.id);c(e.id,{...p,RECORD:r})}),d=p=>{r.value=p,u("click",()=>{const x=f(e.id);c(e.id,{...x,RECORD:r})})()};o.watch(r,()=>{y()});const h=it(e),m=async()=>{var p;try{const x=await h(),{data:w}=(x==null?void 0:x.data)||{};if(w){const E=(((p=x==null?void 0:x.data)==null?void 0:p.data)??[]).map(O=>({label:O.label,value:O.value}));i(E)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=o.inject(Le,{setRequest:({id:p,sortNum:x,requestFn:w})=>{}});typeof S=="function"&&S({id:e.id,requestFn:g,sortNum:e.requestSort});const _=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:vt,tabChange:_}}}),T1="",B1="",Zc=["onClick"];function $c(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(y=>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,Zc))),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 ji=ge(ue(Wc,[["render",$c],["__scopeId","data-v-baa84768"]])),na={...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"},oa=xe(na),Gi=["click","refreshData","resetRecord"],Vt=async e=>{var f;const n=await lt.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)},aa={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",isShowCloseBtn:!0},ra=xe(aa),Ui=["showModal","hideModal"];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 y in t){const d=n.find(h=>h.id===y);if(d){gn(d,"parentId")||(d.parentId="",d.sourceLeft=d.left,d.sourceTop=d.top);for(const h in t[y])if(t[y][h])for(const m of t[y][h]){const g=n.find(S=>S.id===m);g&&(g.parentId=y,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(y=>(!gn(y,"parentId")||y.parentId==="")&&y.combinationId).map(y=>y.combinationId))),l=[];for(const y of s){const d=a[y];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:y,keyName:y,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const g of h)g&&(g.parentId=y,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(y=>f.includes(y.type)&&!gn(y,"parentId")),u=[];for(const y of c)if(y){const d=y.id+"_vir";u.push({id:d,keyName:y.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:y.width,height:y.height,left:y.left,top:y.top,sourceLeft:y.left,sourceTop:y.top}),y.parentId=d,y.sourceLeft=y.left,y.sourceTop=y.top,y.left=0,y.top=0}u!=null&&u.length&&n.unshift(...u);for(const y of n){const d=document.body.clientWidth;if(y.parentId===""&&["ecanBorder","ecanTabs"].includes(y.type))y.sourceWidth=parseFloat(y.width),y.height=(d/(y.sourceWidth/parseFloat(y.height))).toFixed(2)+"px",y.width="100%",y.position="relative",y.top="auto",y.left="auto";else{const h=n.find(m=>m.id===y.parentId);if((h==null?void 0:h.parentId)===""){const m=h.sourceWidth||parseFloat(h.width),g=d/m;y.scale=g,y.top=parseFloat(y.top)*g-parseFloat(y.height)*(1-g)/2+"px",y.left=parseFloat(y.left)*g-parseFloat(y.width)*(1-g)/2+"px"}}y.type==="ecanModal"&&(y.parentId="",y.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 Jc(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 Xc=ge(ue(Qc,[["render",Jc]])),ef=o.defineComponent({name:"EcanModal",components:{AModal:ie.Modal,CloseOutlined:Pl,Render:Xc},props:{...ra},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(we,{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,y=e.fullModal?"1080px":e.height,d=e.originalWidth,h=e.originalHeight,m=o.ref("80%"),g=o.ref(0),S=o.ref(),_=o.ref(0),b=o.ref({}),p=be(e),x=o.ref({}),w=o.ref(!1),k=o.ref();let E;const O=()=>{S.value=parseFloat(u)/parseFloat(d);const Q=parseFloat(y)/parseFloat(h),K=document.body.offsetWidth,X=document.body.offsetHeight;g.value=K*o.unref(S),_.value=X*Q,m.value=`${o.unref(S)*100}%`,b.value={width:`${o.unref(g)}px`,height:`${o.unref(_)}px`},x.value={...o.unref(p),backgroundImage:vt(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${o.unref(g)/parseFloat(u)},${o.unref(_)/parseFloat(y)})`,width:u,height:y}},N=Ne.debounce(()=>{O()},100),B=()=>{const Q=window.MutationObserver;E=new Q(N),E.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},C=()=>{E&&(E.disconnect(),E.takeRecords(),E=null)},D=o.ref(!1),{touchRequest:v}=o.inject(Le,{touchRequest:()=>{}}),I=o.ref(""),F=()=>{var X;console.log("interactiveData",l);const{title:Q}=e,K=(X=o.unref(l))==null?void 0:X.RECORD;return K?ke(Q,{textData:K},{useNewline:!1,useSpace:!1}):Q},L=()=>{a&&(document.documentElement.style.overflow="hidden"),I.value=F(),D.value=!0},z=()=>{n("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),D.value=!1},H=()=>{z()},j=()=>{z(),s()},{setModalModel:P,pushUseModalIds:A,popUseModalIds:R}=o.inject(nr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,K)=>{}}),T=o.computed(()=>{if(a){const Q=Ne.cloneDeep(e.componentList),K=r(),X=i();return Wi({componentList:Q,containerMap:K,combinationMap:X})}else return e.componentList}),M=()=>{const Q=e.id;let K=[];const X=e.componentList;Array.isArray(X)&&(K=X.map(oe=>oe.id),P(Q,[...new Set(K)]))};o.watch(()=>D.value,async Q=>{Q?(w.value=!1,A(e.id),M(),await o.nextTick(()=>{O(),window.addEventListener("resize",N),B(),w.value=!0}),v()):(R(),window.removeEventListener("resize",N),C())});const U=o.computed(()=>o.unref(S)>=1),Z=o.computed(()=>e.fullModal),ne=o.computed(()=>{let Q="ecan-modal";return o.unref(U)&&(Q+=" ecan-full-width-modal"),o.unref(Z)&&(Q+=" ecan-full-modal"),Q});return De(e,{showModal:L,hideModal:z}),{modalRef:k,containStyle:b,contentStyle:x,getContainer:f,modalStyle:c,modalWith:m,isFullModal:Z,style:p,visible:D,showModal:L,onOk:H,onCancel:j,isFullWidth:U,wrapClassName:ne,ready:w,usedComponentList:T,isMobile:a,readyIds:t,hasOwn:gn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:I}}}),_1="",R1="";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),e.isShowCloseBtn?(o.openBlock(),o.createBlock(s,{key:1,class:"close-icon",style:o.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):o.createCommentVNode("",!0)],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 St=ge(ue(ef,[["render",tf],["__scopeId","data-v-8cf8fa7d"]]));Ge.use([At.CanvasRenderer,ct.PieChart,me.TitleComponent,me.ToolboxComponent,me.TooltipComponent,me.LegendComponent]);const nf=o.defineComponent({name:"EcanPie",props:{...oa},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(!1),a=be(e),r=o.ref([]),i=o.ref(),s=o.ref({}),l=o.computed(()=>{let{data:C=[]}=o.unref(r)[0]||{};if(Array.isArray(e.colors)){const D=e.isUseLabelColors,v=e.colors;C=C.map((I,F)=>({label:D?{color:v[F]}:{},...I}))}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(){Vt(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 D;t.value=!0,(D=i.value)==null||D.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:D=>{const{marker:v,seriesName:I,name:F,value:L,percent:z,data:H}=D||{};return ke(e.tooltipFormatter,{textData:{marker:v,name:F,value:L,percent:z,a:I,b:F,c:L,d:z,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:o.unref(s),color:e.colors,series:[{data:C,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,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:C=>{const{data:D}=r.value[0]||{};let v;if(D){const I=D.find(F=>F.name===C);I&&(v=I.value)}return ke(e.legendFormatter,{textData:{name:C,value:v}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:y}=o.inject(we,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{}}),{pageMode:d}=o.inject(Me,{pageMode:"normal"}),h=(C=[],D)=>{const{dataset:v}=Rt(C,D);r.value=v},m=(C=[],D)=>{const v=Rt(C,D);r.value=v.dataset};o.watch(()=>e.data,C=>{(e.dataType==="static"||o.unref(d)==="design")&&h(C)},{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),S=Fe(e),_=async()=>{var C,D;if(e.dataType==="request")try{g.value=!0;const v=await S();h((D=(C=v==null?void 0:v.data)==null?void 0:C.data)==null?void 0:D.rows,e.valueTypeDataFieldNames)}catch(v){console.error(v)}finally{g.value=!1}},p=Ae(e)("click",C=>{const D=u(e.id);y(e.id,{...D,RECORD:C==null?void 0:C.data})}),x=it(e),w=async()=>{var C;try{g.value=!0;const D=await x(),{data:v}=(D==null?void 0:D.data)||{};if(v){const{columns:I=[],rows:F=[]}=((C=D==null?void 0:D.data)==null?void 0:C.data)??{};let L=[];if(I.length>0){const z=I[0],H=I[1];L=F.map(j=>({name:j[z],value:isNaN(j[H])?0:j[H]||0}))}m(L)}}catch(D){console.error(D)}finally{g.value=!1}},{loadedData:k}=o.inject(mt,{loadedData:{}}),E=o.ref(!1);o.watch(k,C=>{if(e.dataType==="indicator"){const D=Yt(e.graphicConfig);D!=null&&D.length&&(!o.unref(E)&&Xe(e.graphicConfig,C)?(E.value=!0,O()):Xe(e.graphicConfig,C)||(E.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(k))&&w();break;case"request":_();break}};De(e,{resetRecord:()=>{const C=e.id,D=u(C);y(C,{...D,RECORD:""})},refreshData:O,click:p}),n({refreshData:O});const{setRequest:B}=o.inject(Le,{setRequest:C=>{}});return typeof B=="function"&&B({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:p,onClose:c,loading:g,ecanModal:i}}}),L1="";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 Zi=ge(ue(nf,[["render",of]])),ia={...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:"",isShowMarkLine:!1,markLineType:"average"},la=xe(ia),$i=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.LineChart,me.ToolboxComponent,me.TitleComponent,me.LegendComponent,me.MarkLineComponent]);const af=o.defineComponent({name:"EcanLine",props:{...la},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=be(e),i=o.ref([]),s=o.ref([]),l=o.ref(),f=o.computed(()=>a.value?at:12),c=o.ref({});let u;const y=o.ref([]),d=o.computed(()=>{const F=e.xAxisLabelFormatter,L=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(){Vt(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 z;a.value=!0,(z=l.value)==null||z.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:z=>{var A;const H=z.length;let j="",P=e.tooltipFormatter;u=(A=z[0])==null?void 0:A.data,P===""&&(P="{marker} {a} {c}");for(let R=0;R<H;R++){const{marker:T,seriesName:M,name:U,value:Z,data:ne}=z[R]||{};if(R===0){let $=U;typeof U=="string"&&U[0]==="0"&&!isNaN(+U)&&($=(+U).toString()),j+=`${et(F,$)}<br/>`}j+=ke(P,{textData:{marker:T,name:U,value:Z,a:M,b:U,c:Z||0,...ne}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:o.unref(s).map(z=>{let H={};return z&&typeof z=="object"?H={...z}:H={value:z},H}),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(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),et(F,z)}},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(z){return et(L,z)}},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(y).map(z=>({name:z.name,icon:e.legendType}))},series:o.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=o.inject(we,{getGlobalModel:F=>{},setGlobalModel:(F,L)=>{}}),{pageMode:S}=o.inject(Me,{pageMode:"normal"}),_=o.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(F=[],L=!1)=>{let z;if(e.dataFieldConfigType==="key"){const A=L?e.keyTypeDataFieldNames:null;z=bt(F,A)}else if(e.dataFieldConfigType==="value"){const A=L?e.valueTypeDataFieldNames:null;z=Rt(F,A)}s.value=z.dimensions,y.value=z.dataset;const H=z.dataset,j=[],P=H.length;for(let A=0;A<P;A++){const R={};e.shadowColor&&(R.shadowColor=e.shadowColor,R.shadowBlur=e.shadowBlur,R.shadowOffsetY=e.shadowOffsetY,R.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...H[A],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[A]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[A],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...R},...o.unref(_)})}i.value=j},p=(F=[],L,z=!1)=>{const j=bt(F,z?L:null,!0);s.value=j.dimensions,y.value=j.dataset;const P=j.dataset,A=[],R=P.length;for(let T=0;T<R;T++){const M={};e.shadowColor&&(M.shadowColor=e.shadowColor,M.shadowBlur=e.shadowBlur,M.shadowOffsetY=e.shadowOffsetY,M.shadowOffsetX=e.shadowOffsetX),A.push({type:"line",...P[T],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[T]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[T],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...M},...o.unref(_)})}i.value=A};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,e.isShowMarkLine,e.markLineType],([F])=>{(e.dataType==="static"||o.unref(S)==="design")&&b(F)},{immediate:!0,deep:!0});const x=o.ref(!1),w=Fe(e),k=async()=>{var F,L;if(e.dataType==="request")try{x.value=!0;const z=await w();b((L=(F=z==null?void 0:z.data)==null?void 0:F.data)==null?void 0:L.rows,!0)}catch(z){console.error(z)}finally{x.value=!1}},O=Ae(e)("click",F=>{const L=m(e.id);g(e.id,{...L,RECORD:e.tooltipShow?u:F.data})}),N=F=>{t.value.chart.containPixel("grid",[F.offsetX,F.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const B=it(e),C=async()=>{var F;try{x.value=!0;const L=await B(),{columns:z=[],rows:H=[]}=((F=L==null?void 0:L.data)==null?void 0:F.data)??{};let j;z.length>0&&(j={name:z[0],types:z.slice(1).map(P=>({label:P,value:P}))}),p(H,j,!0)}catch(L){console.error(L)}finally{x.value=!1}},D=()=>{switch(e.dataType){case"indicator":C();break;case"request":k();break}};De(e,{refreshData:D,resetRecord:()=>{const F=e.id,L=m(F);g(F,{...L,RECORD:""})},click:O});const{setRequest:I}=o.inject(Le,{setRequest:F=>{}});return typeof I=="function"&&I({id:e.id,requestFn:D,sortNum:e.requestSort}),n({refreshData:D}),{option:d,style:r,click:O,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),N1="";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 Yi=ge(ue(af,[["render",rf]])),sa={...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:"",isShowMarkLine:!1,markLineType:"average"},ca=xe(sa),Ki=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,me.TitleComponent,me.LegendComponent,me.DatasetComponent,me.ToolboxComponent,me.MarkLineComponent]);const lf=o.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:_t,Echarts:ht,EcanModal:St,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=be(e),f=o.ref([]),c=o.ref(),u=o.computed(()=>a.value?at:12),y=o.computed(()=>{const{gradientShow:P,gradientColors:A,gradientOffset:R,barBorderRadius:T}=e,M=o.unref(f),U=M.length,Z=[];for(let ne=0;ne<U;ne++){const $={...M[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&($.stack="stack"),$.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:Q=>{let K="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:oe,name:he,value:fe,data:_e}=Q||{};return K+=ke(X,{textData:{name:he,value:fe,a:oe,b:he,c:fe||0,..._e}},{useNewline:!0,useSpace:!0}),K}},$.itemStyle={},P&&($.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:R,color:A[ne]},{offset:1,color:A[ne]}]}}),T){const Q=T.split(",");if(Q!=null&&Q.length){const K=[];for(const X of Q){const oe=parseFloat(X);isNaN(oe)||K.push(oe)}$.itemStyle.borderRadius=K}}e.isShowMarkLine&&($.markLine={data:[{type:e.markLineType}]}),Z.push($)}return Z}),d=o.ref([]),h=o.ref(!1),m=o.computed(()=>{const P=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 R=t.value.chart.getOption(),{xAxis:T}=R||{};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(){Vt(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 R;a.value=!0,(R=c.value)==null||R.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:R=>{const T=R.length;let M="",U=e.tooltipFormatter;U===""&&(U="{marker} {a} {c}");for(let Z=0;Z<T;Z++){const{marker:ne,seriesName:$,name:Q,value:K,data:X}=R[Z]||{};if(Z===0){let oe=Q;typeof Q=="string"&&Q[0]==="0"&&!isNaN(+Q)&&(oe=(+Q).toString()),M+=`${et(A,oe)}<br/>`}M+=ke(U,{textData:{marker:ne,name:Q,value:K,a:$,b:Q,c:K||0,...X}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},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((R,T)=>({name:R.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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),et(A,R)}},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(R){return et(P,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:o.unref(y)}}),{pageMode:g}=o.inject(Me,{pageMode:"normal"}),S=()=>{a.value=!1},_=(P=[],A=!1)=>{let R={};if(e.dataFieldConfigType==="key"){const T=A?e.keyTypeDataFieldNames:null;R=bt(P,T)}else if(e.dataFieldConfigType==="value"){const T=A?e.valueTypeDataFieldNames:null;R=Rt(P,T)}f.value=R.dataset,d.value=R.dimensions},b=(P=[],A,R=!1)=>{const M=bt(P,R?A:null,!0);f.value=M.dataset,d.value=M.dimensions},p=o.computed(()=>o.unref(d).map(P=>{let A={};return P&&typeof P=="object"?A={...P}:A={value:P},A}));o.watch(()=>[e.data,e.labelFormatter],([P])=>{(e.dataType==="static"||o.unref(g)==="design")&&_(P)},{immediate:!0,deep:!0});const x=Fe(e),w=async()=>{var P,A;try{h.value=!0;const R=await x();_((A=(P=R==null?void 0:R.data)==null?void 0:P.data)==null?void 0:A.rows,!0)}catch(R){console.error(R)}finally{h.value=!1}},k=it(e),E=async()=>{var P;try{h.value=!0;const A=await k(),{columns:R=[],rows:T=[]}=((P=A==null?void 0:A.data)==null?void 0:P.data)??{};let M;R.length>0&&(M={name:R[0],types:R.slice(1).map(U=>({label:U,value:U}))}),b(T,M,!0)}catch(A){console.error(A)}finally{h.value=!1}},{loadedData:O}=o.inject(mt,{loadedData:{}}),N=o.ref(!1);o.watch(O,P=>{if(e.dataType==="indicator"){const A=Yt(e.graphicConfig);A!=null&&A.length&&(!o.unref(N)&&Xe(e.graphicConfig,P)?(N.value=!0,B()):Xe(e.graphicConfig,P)||(N.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(O))&&E();break;case"request":w();break}},C=(P,A)=>!!o.unref(s)[A.value].value.includes(P),D=async()=>{r.value=!1;const P=t.value.chart.getOption();for(let A=0;A<7;A++)await v(P,A)},v=(P,A)=>new Promise(R=>{setTimeout(()=>{const{series:T,color:M,xAxis:U}=P,Z=t.value.chart,{splitArea:ne={}}=U[0]||{};T.forEach(($,Q)=>{const K=$.data;let X="";A%2?X=M[Q]+"a8":X=M[Q],K[i.value].itemStyle={color:X}}),A%2?(ne.show=!0,ne.areaStyle.color=o.unref(s).map(($,Q)=>Q===i.value?"#ff003b26":"")):ne.show=!1,Z.setOption({series:T,xAxis:U}),R()},200)});n({refreshData:B});const I=Ae(e),{getGlobalModel:F,setGlobalModel:L}=o.inject(we,{getGlobalModel:P=>{},setGlobalModel:(P,A)=>{}}),z=I("click",P=>{const A=F(e.id);L(e.id,{...A,RECORD:P.data})}),{setRequest:H}=o.inject(Le,{setRequest:P=>{}});return typeof H=="function"&&H({id:e.id,requestFn:B,sortNum:e.requestSort}),De(e,{refreshData:B,click:z,resetRecord:()=>{const P=e.id,A=F(P);L(P,{...A,RECORD:""})}}),{option:m,style:l,refreshData:B,click:z,loading:h,onClose:S,ecanModal:c,echartRef:t,handleLocationOk:D,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s}}}),F1="",z1="",sf=e=>(o.pushScopeId("data-v-2cb0ec7f"),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"),y=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(y,{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 Qi=ge(ue(lf,[["render",df],["__scopeId","data-v-2cb0ec7f"]])),fa={...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:"",isShowMarkLine:!1,markLineType:"average"},da=xe(fa),Ji=["click","refreshData","resetRecord"];Ge.use([At.CanvasRenderer,ct.ScatterChart,me.ToolboxComponent,me.TitleComponent,me.TooltipComponent,me.LegendComponent,me.MarkLineComponent]);const uf=o.defineComponent({name:"EcanScatter",props:{...da},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e){const n=o.ref(!1),t=be(e),a=o.ref([]),r=o.ref(),i=o.computed(()=>n.value?at:12),s=o.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=o.computed(()=>{const w=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(){Vt(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 E;n.value=!0,(E=r.value)==null||E.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(E){return typeof E=="string"&&E[0]==="0"&&!isNaN(+E)&&(E=(+E).toString()),et(w,E)}},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(E){return et(k,E)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(E){var v;const{marker:O,seriesName:N}=E,B=((v=E==null?void 0:E.data)==null?void 0:v.record)??{},{name:C,value:D}=B;return ke(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:C,c:D,...B}})},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,...o.unref(s)}]}}),{getGlobalModel:f,setGlobalModel:c}=o.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,k)=>{}}),{pageMode:u}=o.inject(Me,{pageMode:"normal"}),y=(w=[],k)=>{const{name:E="name",value:O="value"}=k||{};a.value=w.map(N=>({value:[N[E],N[O]],record:N}))};o.watch(()=>e.data,w=>{(e.dataType==="static"||o.unref(u)==="design")&&y(w)},{immediate:!0,deep:!0});const d=o.ref(!1),h=Fe(e),m=async()=>{var w,k;if(e.dataType==="request"){d.value=!0;try{const E=await h();y((k=(w=E==null?void 0:E.data)==null?void 0:w.data)==null?void 0:k.rows,e.dataFieldNames)}catch(E){console.error(E)}finally{d.value=!1}}},g=()=>{n.value=!1},_=Ae(e)("click",w=>{const k=e.id,E=f(k);c(k,{...E,RECORD:w==null?void 0:w.data})});De(e,{refreshData:()=>{m()},click:_,resetRecord:()=>{const w=e.id,k=f(w);c(w,{...k,RECORD:""})}});const{setRequest:x}=o.inject(Le,{setRequest:w=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:t,click:_,loading:d,onClose:g,ecanModal:r}}}),H1="";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]])),ua={...ve,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=xe(ua),gf=o.defineComponent({name:"EcanCustomGraph",props:{...ha},components:{Echarts:ht},setup(e){const n=be(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:R0}}});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 e0=ge(ue(gf,[["render",mf]])),ga={...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:"",isShowMarkLine:!1,markLineType:"average"},ma=xe(ga),t0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.BarChart,ct.LineChart,me.TitleComponent,me.LegendComponent,me.DatasetComponent,me.ToolboxComponent,me.MarkLineComponent]);const yf=o.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:_t,Echarts:ht,EcanModal:St,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=be(e),f=o.ref([]),c=o.ref([]),u=o.ref(),y=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:R}=A||{};R&&R.length&&(s.value=R[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(){Vt(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(y).map((A,R)=>({name:A.name,itemStyle:{color:e.colors[R]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:A=>{const R=A.length;let T="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");const U=e.seriesTypes;for(let Z=0;Z<R;Z++){const ne=U[Z],{tooltipFormatter:$}=ne||{},{marker:Q,seriesName:K,name:X,value:oe,data:he}=A[Z]||{};if(Z===0){let fe=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(fe=(+X).toString()),T+=`${et(e.xAxisLabelFormatter,fe)}<br/>`}T+=ke($||M,{textData:{marker:Q,name:X,value:oe,seriesName:K,a:K,b:X,c:oe||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 R={};return A&&typeof A=="object"?R={...A}:R={value:A},R}),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()),et(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(Me,{pageMode:"normal"}),g=()=>{a.value=!1},S=(A=[],R=!1)=>{let T;if(e.dataFieldConfigType==="key"){const U=R?e.keyTypeDataFieldNames:null;T=bt(A,U)}else if(e.dataFieldConfigType==="value"){const U=R?e.valueTypeDataFieldNames:null;T=Rt(A,U)}c.value=T.dimensions;const M=T.dataset;y.value=T.dataset,f.value=b(M)},_=(A=[],R,T=!1)=>{const U=bt(A,T?R:null,!0);c.value=U.dimensions;const Z=U.dataset;y.value=U.dataset,f.value=b(Z)};function b(A){const R=[],T=A.length,M=e.seriesTypes;for(let U=0;U<T;U++){const Z=M[U],{type:ne,axisIndex:$}=Z||{};let Q={type:ne,yAxisIndex:$,...A[U]};if(ne==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.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,...K}}}if(ne==="bar"){const{gradientShow:K,gradientColors:X,gradientOffset:oe}=e,he={};if(e.barBorderRadius){const fe=e.barBorderRadius.split(",");if(fe!=null&&fe.length){const _e=[];for(const He of fe){const qe=parseFloat(He);isNaN(qe)||_e.push(qe)}he.borderRadius=_e}}K&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:oe,color:X[U]},{offset:1,color:X[U]}]}),Q={...Q,barWidth:e.barWidth,itemStyle:he}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),R.push(Q)}return R}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,e.isShowMarkLine,e.markLineType],([A])=>{(e.dataType==="static"||o.unref(m)==="design")&&S(A)},{immediate:!0,deep:!0});const p=o.computed(()=>{const A=e.yAxis;return A==null?void 0:A.map(R=>({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 et(R.axisLabelFormatter,T)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),x=o.ref(!1),w=Fe(e),k=async()=>{var A,R;if(e.dataType==="request")try{x.value=!0;const T=await w();S((R=(A=T==null?void 0:T.data)==null?void 0:A.data)==null?void 0:R.rows,!0)}catch(T){console.error(T)}finally{x.value=!1}},E=it(e),O=async()=>{var A;try{x.value=!0;const R=await E(),{columns:T=[],rows:M=[]}=((A=R==null?void 0:R.data)==null?void 0:A.data)??{};let U;T.length>0&&(U={name:T[0],types:T.slice(1).map(Z=>({label:Z,value:Z}))}),_(M,U,!0)}catch(R){console.error(R)}finally{x.value=!1}},{loadedData:N}=o.inject(mt,{loadedData:{}}),B=o.ref(!1);o.watch(N,A=>{if(e.dataType==="indicator"){const R=Yt(e.graphicConfig);R!=null&&R.length&&(!o.unref(B)&&Xe(e.graphicConfig,A)?(B.value=!0,C()):Xe(e.graphicConfig,A)||(B.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":Xe(e.graphicConfig,o.unref(N))&&O();break;case"request":k();break}},D=(A,R)=>!!o.unref(s)[R.value].value.includes(A),v=async()=>{r.value=!1;const A=t.value.chart.getOption();for(let R=0;R<7;R++)await I(A,R)},I=(A,R)=>new Promise(T=>{setTimeout(()=>{const{series:M,color:U,xAxis:Z}=A,ne=t.value.chart,{splitArea:$={}}=Z[0]||{};M.forEach((Q,K)=>{const X=Q.data;let oe="";R%2?oe=U[K]+"a8":oe=U[K],X[i.value].itemStyle={color:oe}}),R%2?($.show=!0,$.areaStyle.color=o.unref(s).map((Q,K)=>K===i.value?"#ff003b26":"")):$.show=!1,ne.setOption({series:M,xAxis:Z}),T()},200)});n({refreshData:C});const F=Ae(e),{getGlobalModel:L,setGlobalModel:z}=o.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,R)=>{}}),H=F("click",A=>{const R=L(e.id);z(e.id,{...R,RECORD:A==null?void 0:A.data})}),{setRequest:j}=o.inject(Le,{setRequest:A=>{}});return typeof j=="function"&&j({id:e.id,requestFn:C,sortNum:e.requestSort}),De(e,{resetRecord:()=>{const A=e.id,R=L(A);z(A,{...R,RECORD:""})},refreshData:C,click:H}),{style:l,option:h,click:H,loading:x,onClose:g,ecanModal:u,echartRef:t,handleLocationOk:v,onFilterOption:D,locationVisible:r,locationValue:i,locationNames:s}}}),j1="",G1="",xf=e=>(o.pushScopeId("data-v-0352a1a7"),e=e(),o.popScopeId(),e),pf={class:"location-wrap"},bf=xf(()=>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"),y=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(y,{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 n0=ge(ue(yf,[["render",vf],["__scopeId","data-v-0352a1a7"]])),ya={...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:""},xa=xe(ya),o0=["refreshData","click","resetRecord"];Ge.use([At.CanvasRenderer,ct.RadarChart,me.ToolboxComponent,me.TitleComponent,me.LegendComponent]);const Sf=o.defineComponent({name:"EcanRadar",props:{...xa},components:{Spin:_t,Echarts:ht,EcanModal:St},setup(e,{expose:n}){const t=o.ref(),a=o.ref(!1),r=be(e),i=o.ref([]),s=o.ref(),l=o.computed(()=>a.value?at:12),f=o.ref({});let c;const u=o.ref([]),y=o.ref(e.valueTypeDataFieldNames.name),d=o.computed(()=>{const L=o.unref(u),z=L.length,H=[];for(let j=0;j<z;j++){const{name:P,data:A=[]}=L[j],R=[{name:P,value:A.map(M=>M.value)}],T={type:"radar",name:P,data:R,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 P,A;const L=[],z={},H=o.unref(u),j=H.length;for(let R=0;R<j;R++){const{data:T=[]}=H[R];if(T!=null&&T.length)for(let M=0;M<T.length;M++)z[T[M][y.value]]?z[T[M][y.value]].push(T[M].value):z[T[M][y.value]]=[T[M].value]}if((P=i.value)!=null&&P.length)for(const R of i.value)L.push({name:R,max:(A=z[R])!=null&&A.length?Math.max(...z[R])*1.2:0});return L}),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(){Vt(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 L;a.value=!0,(L=s.value)==null||L.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:L=>{var j;let z="",H=e.tooltipFormatter;c=(j=L[0])==null?void 0:j.data,H===""&&(H="{marker} {a} {c}");for(let P=0;P<o.unref(h).length;P++){const A=o.unref(h)[P],{marker:R,seriesName:T,value:M}=L||{};P===0&&T&&(z+=`${T}<br/>`),z+=ke(H,{textData:{marker:R,name:A.name,value:M[P],a:A.name,b:A.name,c:M[P]||0,type:T}},{useNewline:!0,useSpace:!0}),z+="<br/>"}return z},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(L=>({name:L.name,icon:e.legendType}))},series:o.unref(d)})),g=()=>{a.value=!1},{getGlobalModel:S,setGlobalModel:_}=o.inject(we,{getGlobalModel:L=>{},setGlobalModel:(L,z)=>{}}),{pageMode:b}=o.inject(Me,{pageMode:"normal"}),p=(L=[],z=!1)=>{let H;if(e.dataFieldConfigType==="key"){const j=z?e.keyTypeDataFieldNames:null;H=bt(L,j)}else if(e.dataFieldConfigType==="value"){const j=z?e.valueTypeDataFieldNames:null;H=Rt(L,j)}i.value=H.dimensions,u.value=H.dataset},x=(L=[],z,H=!1)=>{const P=bt(L,H?z:null,!0);i.value=P.dimensions,u.value=P.dataset};o.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([L])=>{(e.dataType==="static"||o.unref(b)==="design")&&p(L)},{immediate:!0,deep:!0});const w=o.ref(!1),k=Fe(e),E=async()=>{var L,z;if(e.dataType==="request")try{w.value=!0;const H=await k();p((z=(L=H==null?void 0:H.data)==null?void 0:L.data)==null?void 0:z.rows,!0)}catch(H){console.error(H)}finally{w.value=!1}},N=Ae(e)("click",L=>{const z=S(e.id);_(e.id,{...z,RECORD:e.tooltipShow?c:L.data})}),B=L=>{t.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&N()};e.tooltipShow?f.value["zr:click"]=B:f.value.click=N;const C=it(e),D=async()=>{var L;try{w.value=!0;const z=await C(),{columns:H=[],rows:j=[]}=((L=z==null?void 0:z.data)==null?void 0:L.data)??{};let P;H.length>0&&(y.value=H[0],P={name:H[0],types:H.slice(1).map(A=>({label:A,value:A}))}),x(j,P,!0)}catch(z){console.error(z)}finally{w.value=!1}},v=()=>{switch(e.dataType){case"indicator":D();break;case"request":E();break}};De(e,{refreshData:v,resetRecord:()=>{const L=e.id,z=S(L);_(L,{...z,RECORD:""})},click:N});const{setRequest:F}=o.inject(Le,{setRequest:L=>{}});return typeof F=="function"&&F({id:e.id,requestFn:v,sortNum:e.requestSort}),n({refreshData:v}),{option:m,style:r,click:N,loading:w,onClose:g,ecanModal:s,eventObj:f,echartRef:t}}}),W1="";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 a0=ge(ue(Sf,[["render",Cf]])),wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJ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MMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",pa={...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"},ba=xe(pa),r0=["click"],Bf=o.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const n=be(e,["background"]),t=o.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:S,gradientOffset:_,gradientAngle:b,backgroundColor:p}=e;if(g){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${p}, ${x} ${_*100}%)`}:{}}else return{}}),a=o.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(_=>_.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=o.inject(Me,{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=[],S={};if(m){const _=m.split(",");for(const b of _)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(S.borderRadius=g.join(" ")),S}),y=Ae(e)("click",()=>{}),d=o.ref([]);o.watch(()=>e.data,m=>{d.value=m},{immediate:!0,deep:!0}),De(e,{click:y});const{setGlobalModel:h}=o.inject(we,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:d}),{style:n,gradientStyle:t,click:y,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),$1="",Ct=e=>(o.pushScopeId("data-v-8dd53b8f"),e=e(),o.popScopeId(),e),Ef=["id"],Df=Ct(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),_f=Ct(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Rf=Ct(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),If=Ct(()=>o.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Lf={class:"title-item"},Of=["src"],Nf={class:"title"},Mf=["src"],Ff=Ct(()=>o.createElementVNode("div",{class:"top-left border-item"},null,-1)),zf=Ct(()=>o.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pf=Ct(()=>o.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=Ct(()=>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},[Df,_f,Rf,If],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",Lf,[o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Of),o.createElementVNode("div",Nf,o.toDisplayString(e.title),1),o.createElementVNode("img",{class:o.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Mf)])],2),Ff,zf,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 i0=ge(ue(Bf,[["render",jf],["__scopeId","data-v-8dd53b8f"]])),va={...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,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},Sa=xe(va),l0=["tabChange"],Gf=o.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:ie.Select,ASelectOption:ie.SelectOption},setup(e){const n=be(e),t=o.ref(0);o.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=o.inject(Me,{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)],y()},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=Ae(e),{setGlobalModel:u}=o.inject(we,{setGlobalModel:(h,m)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:y}=o.inject(Zt,{emitRefreshPage:()=>{}}),d=c("tabChange",(h,m)=>{m!==o.unref(t)&&(l.value=h,t.value=m,y())});return De(e,{tabChange:d}),{style:n,activeKey:t,isActive:f,tabChange:d,myData:s,useImagePath:vt}}}),K1="",Uf=["id"],Wf=["onClick"];function Zf(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,Wf))),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,Uf)}const s0=ge(ue(Gf,[["render",Zf],["__scopeId","data-v-fbab260a"]])),Ca={...ve,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},wa=xe(Ca),c0=["click"],$f=o.defineComponent({name:"EcanImage",props:{...wa},setup(e){const n=be(e),t=o.computed(()=>vt(e.imgUrl)),{pageMode:a}=o.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=o.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=Ae(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=ci(o.unref(a),c),y=e.href;let d=y||u;d=ke(d);const h=e.target;h&&(h!=="event"?window.open(d,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return De(e,{click:l}),{style:n,myImgUrl:t,onClick:l}}}),J1="",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 f0=ge(ue($f,[["render",Kf],["__scopeId","data-v-3665dde7"]])),Aa={...ve,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ka=xe(Aa),Qf=o.defineComponent({name:"EcanIframe",props:{...ka},setup(e){const n=be(e),{contextRequestUrl:t}=o.inject(Me,{contextRequestUrl:""}),a=o.computed(()=>{let r=ke(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}}}),eu="",Jf=["src"];function Xf(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,Jf)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"iframe-placeholder",style:o.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const d0=ge(ue(Qf,[["render",Xf],["__scopeId","data-v-19bc100c"]])),Ta={...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%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Ba=xe(Ta),u0=["click","refreshData","resetRecord","exportTableData"],ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68T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yH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Ea=o.defineComponent({name:"EcanTable",components:{Skeleton:tn,AButton:ie.Button,AInput:ie.Input,ACheckboxGroup:ie.CheckboxGroup,ATable:ie.Table,ATableSummary:ie.TableSummary,ATableSummaryRow:ie.TableSummaryRow,ATableSummaryCell:ie.TableSummaryCell},props:{...Ba},setup(e,{expose:n}){const t=o.ref(!1),a=o.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,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=be(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 Y=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),te=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ae=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ee=0;if(te&&(W-=(te==null?void 0:te.clientHeight)||0),ae&&e.isSummaryFixed&&(ee=(ae==null?void 0:ae.clientHeight)||0,W-=ee),e.paginationShow){let J=0;J=u(),J&&(W-=J)}(Y==null?void 0:Y.clientHeight)>W?c.value=W:c.value=0,o.nextTick(()=>{if(ee){const J=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),de=(J==null?void 0:J.clientHeight)||0;ee!==de&&o.unref(c)&&(c.value=W+ee-de)}})})});const y=o.ref([]),d=o.ref([]),h=o.ref([]),m=o.ref([]),g=o.ref(0),S=o.ref(1),_=o.ref(e.paginationPageSize||10),b=o.reactive([]),p=(V=[])=>{var W,Y;if(Array.isArray(V)&&V.length>0){let te=V.length;const ae=e.columnsFixedNum;if(e.dataType==="indicator"&&((W=o.unref(a))!=null&&W.length)){const{graphicConfig:{indicators:ee=[]}}=e;V.forEach((J,de)=>{if(o.unref(a)[de])for(const Re in o.unref(a)[de])["dataIndex","title"].includes(Re)||(J[Re]=o.unref(a)[de][Re]);const pe=ee.find(Re=>Re.label===J.title),{showLabel:ye=""}=pe||{};ye&&(J.title=ye)})}for(let ee=te-1;ee>=0;ee--)(Y=V[ee])!=null&&Y.isHidden&&V.splice(ee,1);te=V.length;for(let ee=0;ee<te;ee++){const J=V[ee];ee<ae?J.fixed="left":J.fixed=!1;const{cellAlign:de="center",cellColor:pe,dataIndex:ye,title:Re,tableFilter:Ye,headerCellAlign:st,headerCellColor:yn}=J;Ye&&(b.push(ye),J.filterOptionsInputValue="",J.filterCheckboxGroupValue=[],J.customFilterDropdown=!0,J.onFilter=(Bt,Kt)=>Kt[ye].toString().toLowerCase().includes(Bt.toLowerCase())),J.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:st||"center",color:yn||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),J.customCell=(Bt,Kt)=>({style:{textAlign:de,color:pe||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:o.unref(Z)===Kt&&e.clickHighlight},onClick:P("click",()=>{const xn=e.id,pn=A(xn);Bt={dataIndex:ye,title:Re,...Bt},R(xn,{...pn,type:e.type,RECORD:Bt})})}),Array.isArray(J.children)&&p(J.children)}}},x=(V=[])=>{var Y;let W=Ne.cloneDeep(V);return(Y=o.unref(m))!=null&&Y.length&&(W=Ne.cloneDeep(o.unref(m))),e.isUseSeq&&W.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&W.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),p(W),W};o.watch(_,()=>{S.value=1,K(!1)}),o.watch(r,V=>{i.value=!!V}),o.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=x(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),o.watch(()=>[e.data,e.dataType],([V,W])=>{W==="static"&&(d.value=V)},{immediate:!0});const w=o.ref({}),k=V=>{if(Array.isArray(V)){const W=V.length,Y=b,te=Y.length,ae={};for(let J=0;J<W;J++){const de=V[J];for(let pe=0;pe<te;pe++){const ye=Y[pe];if(ae[ye])ae[ye].add(de[ye]);else{const Re=new Set;Re.add(de[ye]),ae[ye]=Re}}}const ee={};for(const J in ae)if(Object.prototype.hasOwnProperty.call(ae,J)){const de=ae[J],pe=Array.from(de);ee[J]=pe.map(ye=>({label:ye,value:ye}))}w.value=ee}};o.watch(()=>[e.isReverse,y.value,d.value],()=>{const V=o.unref(y),W=o.unref(d);if(k(W),e.isReverse){const{columns:Y,dataSource:te}=E(Ne.cloneDeep(V),Ne.cloneDeep(W));h.value=Y,l.value=te}else h.value=V,l.value=W},{immediate:!0});const E=(V,W)=>{const Y=V[0],te=[{title:Y.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ee=0;ee<W.length;ee++){const J=W[ee],de="col"+(ee+1);te.push({title:J[Y.dataIndex],dataIndex:de,key:de,align:"center"})}const ae=[];for(let ee=1;ee<V.length;ee++){const J=V[ee],de={col0:J.title};for(let pe=0;pe<W.length;pe++){const ye=W[pe];de[`col${pe+1}`]=ye[J.dataIndex]}ae.push(de)}return{columns:te,dataSource:ae}},O=o.ref(""),N=Fe(e),B=async(V=!0,W={})=>{var Y;try{V&&(t.value=!0),o.unref(O)&&(W.orderCondition=o.unref(O)),e.paginationShow&&(W={pageNum:o.unref(S),pageSize:o.unref(_)||"10",layer:"1",...W});const te=await N(W),{rows:ae=[],total:ee=0}=((Y=te==null?void 0:te.data)==null?void 0:Y.data)||{};if(g.value=ee,Array.isArray(ae)&&(d.value=ae),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:J=[]}=e,de=J.find(pe=>pe.key==="dataSqlId");if((de==null?void 0:de.value)==="xt_jxzebg"){const pe=ae.filter(ye=>!ye.绩效总额).map(ye=>ye.ORG_NAME);pe!=null&&pe.length&&o.nextTick(()=>{ie.notification.warning({message:"提示",description:`当前时段${pe.join("、")}绩效数据为空`,duration:3})})}}}catch(te){console.error(te)}finally{t.value=!1}},C=({current:V},W,Y)=>{if(S.value=V,Y&&Object.keys(Y).length>0){const{field:te,order:ae}=Y,J={ascend:"asc",descend:"desc"}[ae];te!=null&&J!=null&&(O.value=te+" "+J)}K(!1)},D=o.computed(()=>{const V=e.simple,W=[e.paginationPosition],Y={};return e.isShowTotal&&(Y.showTotal=te=>`共 ${te} 条数据`),e.paginationShow&&{simple:V,position:W,total:o.unref(g),current:o.unref(S),pageSize:o.unref(_)||"10",showSizeChanger:!1,size:"large",...Y}}),v=V=>+V==1?"是":+V==0?"否":V,I=(V,W)=>{const{format:Y,retentiondigit:te,customFormatter:ae}=W;if(Y==null||Y==="")return V;const ee={money:Ao,percentage:hn,contrast:hn,boolean:v,decimals:ac,custom:rc};return ee[Y]?Y==="decimals"?ee[Y](V,te)||"":Y==="custom"?ee[Y](V,ae)||"":ee[Y](V)||"":""},F=V=>V==="contrast"?"upDown":"",L=V=>{const{text:W,format:Y,declineColor:te="#39cf93",increaseColor:ae="#ff512e"}=V;if(Y==="contrast"){const ee={fontSize:e.fontSize},J=parseFloat(W+"");return J>=0?ee.color=ae:J<0&&(ee.color=te),ee}else return{}},z=o.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),H=V=>{const{text:W,declineColor:Y="#39cf93",increaseColor:te="#ff512e"}=V,{fontSize:ae}=e,ee=parseFloat(W+""),J={width:ae,verticalAlign:"unset"};return ee>=0?J.filter=`drop-shadow(${te||"#ff512e"} ${ae} -1px)`:ee<0&&(J.filter=`drop-shadow(${Y||"#39cf93"} ${ae} -1px)`),J},j=V=>{const W=parseFloat(V+"");if(W>=0)return Do;if(W<0)return _o},P=Ae(e),{getGlobalModel:A,setGlobalModel:R}=o.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,W)=>{}}),T=(V=[],W=[])=>{const Y=V.map(te=>({title:te,dataIndex:te,key:te}));m.value=Ne.cloneDeep(Y),y.value=x(Y),d.value=W},M=it(e),U=async(V=!0)=>{var W,Y,te,ae;try{V&&(t.value=!0);const ee=o.unref(O).split(" "),J=await M({sort:{order:ee[1],field:ee[0]}});T((Y=(W=J==null?void 0:J.data)==null?void 0:W.data)==null?void 0:Y.columns,(ae=(te=J==null?void 0:J.data)==null?void 0:te.data)==null?void 0:ae.rows)}catch(ee){console.error(ee)}finally{t.value=!1}},Z=o.ref(-1),ne=(V,W)=>({onClick:P("rowClick",()=>{const Y=e.id,te=A(Y);R(Y,{...te,type:e.type,RECORD:V}),Z.value=W})}),{loadedData:$}=o.inject(mt,{loadedData:{}}),Q=o.ref(!1);o.watch($,V=>{if(e.dataType==="indicator"){const W=Yt(e.graphicConfig);W!=null&&W.length&&(!o.unref(Q)&&Xe(e.graphicConfig,V)?(Q.value=!0,K()):Xe(e.graphicConfig,V)||(Q.value=!1))}},{deep:!0});const K=(V=!0)=>{switch(e.dataType){case"request":B(V);break;case"indicator":Xe(e.graphicConfig,o.unref($))&&U(V);break}},X=()=>{const V=e.id,W=A(V);R(V,{...W,type:e.type,RECORD:""})},oe=o.computed(()=>{const V=o.unref(h),W=[];let Y=0;for(let ee=0;ee<V.length;ee++){const J=V[ee],{isCalcTotal:de}=J;e.isUseSeq&&ee===0?W.push({...J,total:"小计"}):de?(W.push({...J,index:ee,total:0}),Y++):W.push({...J})}if(Y===0)return[];const te=o.unref(l),ae=he(W);for(let ee=0;ee<ae.length;ee++){const J=ae[ee];let de=0;const{isCalcTotal:pe,dataIndex:ye}=J;if(pe===!0){for(let Re=0;Re<te.length;Re++){const st=+te[Re][ye];isNaN(st)||(de=new D0.Big(de).add(st).toNumber())}J.total=de}}return ae});function he(V){var Y;const W=[];for(const te of V)(Y=te.children)!=null&&Y.length?W.push(...he(te.children)):W.push(te);return W}const{setRequest:fe}=o.inject(Le,{setRequest:V=>{}});typeof fe=="function"&&fe({id:e.id,requestFn:K,sortNum:e.requestSort}),n({refreshData:K});const _e=(V="",W)=>ke(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},"*")},Ze=(V,W)=>{V(W.filterCheckboxGroupValue)},$e=(V,W)=>{V({confirm:!0}),W.filterOptionsInputValue="",W.filterCheckboxGroupValue=[]},tt=()=>{},Ee=V=>{const W=V.dataIndex;if(typeof W=="string"){let Y=o.unref(w)[W];const te=o.unref(V.filterOptionsInputValue).trim();return Array.isArray(Y)?(Y=Y.filter(ae=>typeof ae.label=="string"?ae.label.toLowerCase().includes(te.toLowerCase()):!0),Y):[]}return[]},Se=async()=>{var ye,Re;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 Ye={layer:"1"};o.unref(O)&&(Ye.orderCondition=o.unref(O));const st=await N(Ye);W=((Re=(ye=st==null?void 0:st.data)==null?void 0:ye.data)==null?void 0:Re.rows)||{}}const Y=o.unref(h),te=[],ae=[];Y==null||Y.forEach(Ye=>{te.push(Ye.dataIndex),ae.push(Ye.title)});const ee=W.map(Ye=>Ne.pick(Ye,te)),J=jt.utils.book_new(),de=jt.utils.aoa_to_sheet([ae]),pe=jt.utils.sheet_add_json(de,ee,{skipHeader:!0,origin:"A2"});jt.utils.book_append_sheet(J,pe,"sheet"),jt.writeFile(J,"表格数据.xlsx"),ie.message.success({key:V,content:"导出成功"})},Ie=(V,W=2)=>{const Y=+V*100;return isNaN(Y)||Y<=0?0:Y>=100?100:Y.toFixed(W)};De(e,{resetRecord:X,refreshData:K,exportTableData:Se});const je=(V,W)=>{let Y=null;return e.stripedShow&&(Y=W%2===1?"table-striped":null),Y},nt=o.computed(()=>{let V=0;const{height:W,isPageBottom:Y}=e;return Y&&W&&(V=parseFloat(W)-u()),V?V+"px":"100%"}),ze=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}),ut=o.computed(()=>parseFloat(e.fontSize)+16);return{x:f,y:c,style:s,customRow:ne,pagination:D,formatFn:I,contrastClass:F,tableChange:C,summaryList:oe,loading:t,onTouchHrefEvent:qe,handleHref:_e,handleHrefTarget:He,useRowIndex:Z,tableColumns:h,tableDataSource:l,useFilterOptions:Ee,useSetSelectedKeys:Ze,onResetFilter:$e,onSearchFilterOptions:tt,exportTableData:Se,handleProgressText:Ie,pageSizeVisible:i,pageSize:_,tableRef:r,rowClassName:je,tableHeight:nt,tableHeaderBgColor:ze,tableBodyBgColor:Ve,getChgStyle:L,chgBoxStyle:z,getChgBoxImgStyle:H,getChgBoxImgSrc:j,seqIcon1:ed,seqIcon2:td,seqIcon3:nd,iconSize:ut}}}),h0=()=>{o.useCssVars(e=>({"27f0c724":e.stripedColor,c51cbe28:e.paginationBgColor,dca1d49e:e.paginationColor,c6accef4:e.activePaginationBgColor,"05d42bcb":e.activePaginationColor,"8764759e":e.hoverBackgroundColor,"65fa7a4a":e.tableHeaderBgColor,"719296b4":e.tableBodyBgColor}))},g0=Ea.setup;Ea.setup=g0?(e,n)=>(h0(),g0(e,n)):h0;const nu="",ou="",od=e=>(o.pushScopeId("data-v-d2058fbc"),e=e(),o.popScopeId(),e),ad=["id"],rd={key:0,class:"table-tool"},id=o.createTextVNode("导出数据"),ld=o.createTextVNode(" 搜索 "),sd=o.createTextVNode(" 重置 "),cd=["src","width","height"],fd=["src","width","height"],dd=["src","width","height"],ud={key:1},hd={key:1,class:"action-list"},gd=["href","target","onClick"],md={key:2,class:"progress-cell"},yd={key:0},xd=["src"],pd={key:1},bd=["src"],vd={class:"ant-pagination-options-quick-jumper"},Sd=od(()=>o.createElementVNode("span",null,"条 / 页",-1));function Cd(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"),y=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",rd,[o.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:o.withCtx(()=>[id]),_: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:S,setSelectedKeys:_,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":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),o.createVNode(f,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(_,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(()=>[ld]),_:2},1032,["onClick"]),o.createVNode(s,{size:"small",style:{width:"90px"},onClick:o.withModifiers(x=>e.onResetFilter(p,g),["stop"])},{default:o.withCtx(()=>[sd]),_:2},1032,["onClick"])])],4)]),bodyCell:o.withCtx(({column:g,index:S,text:_,record:b})=>{var p,x;return[g.dataIndex==="SEQ"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.seqIcon?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[S===0?(o.openBlock(),o.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,cd)):S===1?(o.openBlock(),o.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,fd)):S>=2?(o.openBlock(),o.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,dd)):o.createCommentVNode("",!0),o.createElementVNode("span",{class:"seq-icon seq-text",style:o.normalizeStyle({fontSize:e.fontSize})},o.toDisplayString(S+1),5)],64)):(o.openBlock(),o.createElementBlock("span",ud,o.toDisplayString(S+1),1))],64)):g.dataIndex==="ACTION"?(o.openBlock(),o.createElementBlock("div",hd,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.actionList,(w,k)=>(o.openBlock(),o.createElementBlock("div",{class:"action",key:k},[o.createElementVNode("a",{href:e.handleHref(w.href,b),target:e.handleHrefTarget(w.target),style:o.normalizeStyle({color:w.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:E=>e.onTouchHrefEvent(w.target,e.handleHref(w.href,b))},o.toDisplayString(w.title),13,gd)]))),128))])):g.format==="progress"?(o.openBlock(),o.createElementBlock("div",md,[o.createElementVNode("div",{class:"progress",style:o.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(_,g.progressTextDecimalPlaces)}%`})},null,4),o.createElementVNode("div",{class:"progress-text",style:o.normalizeStyle({color:+e.handleProgressText(_)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},o.toDisplayString(e.handleProgressText(_,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",yd,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:_}))},[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:_})),src:e.getChgBoxImgSrc(_)},null,12,xd)],4)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(g.format!=null?e.formatFn(_,g):_),1)],6),g.format==="contrast"?(o.openBlock(),o.createElementBlock("span",pd,o.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):o.createCommentVNode("",!0)],4))]}),summary:o.withCtx(()=>[e.summaryList.length>0?(o.openBlock(),o.createBlock(y,{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,S)=>(o.openBlock(),o.createBlock(c,{key:S,index:S,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,bd)],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",vd,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=g=>e.pageSize=g)},null,512),[[o.vModelText,e.pageSize]]),Sd])],8,["to"])):o.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ad)}const m0=ge(ue(Ea,[["render",Cd],["__scopeId","data-v-d2058fbc"]])),Da={...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"},_a=xe(Da),y0=["click"];Ge.use([At.CanvasRenderer,ct.MapChart,ct.ScatterChart,me.VisualMapComponent,me.TooltipComponent,me.GraphicComponent]);const wd=o.defineComponent({name:"EcanMap",components:{Echarts:ht},props:{..._a},setup(e){const n=Fe(e),t=Fe({...e.tooltipRequestData,requestHeaders:{}}),a=o.ref(),r=o.ref(""),i=o.ref(""),s=be(e,["backgroundImage"]),l=o.ref(),f=o.computed(()=>vt(e.geoBackgroundImage)),c=o.computed(()=>vt(e.backgroundImage)),u=o.computed(()=>e.geoBackgroundImage?{image:o.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=o.computed(()=>{const v=e.symbolImage;return e.symbolImage?"image://"+vt(v):"circle"}),d=v=>{let I=e.tooltipFormatter;const F=I.match(/\{(.+?)\}/g);if(F==null||F.length===0)return I;for(let L=0;L<F.length;L++){const z=F[L];let H=z.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,P=H.match(j);for(let A=0;A<P.length;A++){const R=P[A],T=v[R];T!=null&&(H=H.replace(R,T))}I=I.replace(z,H)}return I.split(`
|
|
118
|
-
`)},
|
|
116
|
+
<span style="color: ${z||e.color};${n.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+_).toFixed(2)}%</span>
|
|
117
|
+
</span>`)}else e.format==="percent"?(_=+_,isNaN(_)||(_=(_*100).toFixed(2),I=I.replace(j,`<span style="color:${g(_)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${_}%</span>`))):e.format==="money"?(_=+_,isNaN(_)||(_=Ao(_),I=I.replace(j,`<span style="color:${g(_)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${_}</span>`))):D==="thousands"?(_=+_,isNaN(_)||(_=lc(_),I=I.replace(j,`<span style="color:${g(_)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${_}</span>`))):I=I.replace(j,`<span style="color:${g(_)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${_}</span>`)}}if(O||(O=`<span style="color: ${g(I)};${n.unref(u)}">${I}</span>`),e.unitShow&&e.unitText){const{unitTop:q,unitLeft:j}=e;let G="position:relative;";q&&(G+=`top:${q};`),j&&(G+=`margin-left:${j};`),O+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${G};${n.unref(u)}'>${e.unitText}</span>`}return O});function g(S){let T="",w=!1;const{targetValue:I,targetShow:N,notExpectColor:O}=e;if(N){switch(e.targetRule){case"equal":S!==I&&(w=!0);break;case"greater":S<=I&&(w=!0);break;case"greater_equal":S<I&&(w=!0);break;case"less":S>=I&&(w=!0);break;case"less_equal":S>I&&(w=!0);break}w&&(T=O)}return T}const{pageMode:y}=n.inject(Me,{pageMode:"normal"}),m=qe(e),v=n.ref(!1),E=async()=>{var S;try{v.value=!0;const T=await m();r.value=((S=T==null?void 0:T.data)==null?void 0:S.data)||{}}catch(T){console.error(T)}finally{v.value=!1}},p=(S={})=>{r.value=S},b=S=>{const T=e.id,w=l(T);d(T,{...w,value:S||""})},x=nt(e),A=async()=>{var S;try{v.value=!0;const T=await x(),{data:w}=(T==null?void 0:T.data)||{};if(w){t.value=!1;const{columns:I=[],rows:N=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let O={};if(I.length>0){const M=I.find(q=>!!q);M&&(O={value:isNaN(N[M])?0:N[M]||0})}b(O==null?void 0:O.value),p(O)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(T){console.error(T)}finally{v.value=!1,c(e.id,!0)}},k=()=>{switch(e.dataType){case"indicator":A();break;case"request":E();break}},{setRequest:B}=n.inject(ze,{setRequest:({id:S,sortNum:T,requestFn:w})=>{}});typeof B=="function"&&B({id:e.id,requestFn:k,sortNum:e.requestSort}),Oe(e,{refreshData:k}),o({refreshData:k});const L=Te(e),R=L("click",()=>{if(!e.linkPage&&!e.href)return;const S=e.linkPage||"",T=fi(n.unref(y),S),w=e.href;let I=w||T;I=Be(I);const N=e.target;N&&(N!=="event"?window.open(I,"_"+N):window.parent.postMessage({type:"openPage",url:w},"*"))}),C=L("valueChange",()=>{});return n.watch(()=>f.value,(S,T)=>{S!==T&&C()}),{style:a,myText:f,loading:v,click:R,textIndent:s,vFontSize:i,gradientStyle:h}}}),gi=()=>{n.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},mi=Ro.setup;Ro.setup=mi?(e,o)=>(gi(),mi(e,o)):gi;const Au="",mc=["innerHTML"];function yc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,mc))}const yi=me(he(Ro,[["render",yc],["__scopeId","data-v-3cbb70ab"]])),xc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Tu="",pc={class:"red"};function bc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",pc,n.toDisplayString(e.text),1)}const xi=me(he(xc,[["render",bc],["__scopeId","data-v-4dd9c03e"]])),_o={...Ce,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"}},Oo=pe(_o),pi=["timeChange"],vc=n.defineComponent({name:"EcanTimeDisplay",props:{...Oo},setup(e){const o=ve(e),t=()=>{const{format:c,operate:u}=e;let h=ke();if(u){const{type:f,value:g,mode:y}=u;switch(f){case"add":h=h.add(g,y);break;case"minus":h=h.subtract(g,y)}}return h.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Te(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:u,mode:h}=e.updateInterval||{};u&&(c=c*u);const f={second:1,minute:60,hour:60*60,day:24*60*60};h&&(c=c*f[h]),r=setInterval(()=>{a.value=t(),l()},c)};return Oe(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Eu="";function Sc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const bi=me(he(vc,[["render",Sc],["__scopeId","data-v-b628fca2"]])),Lo={...Ce,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},No=pe(Lo),vi=["refreshData","click"],Cc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5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JQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var Tc=Object.defineProperty,Si=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,Ec=Object.prototype.propertyIsEnumerable,Ci=(e,o,t)=>o in e?Tc(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,wi=(e,o)=>{for(var t in o||(o={}))Bc.call(o,t)&&Ci(e,t,o[t]);if(Si)for(var t of Si(o))Ec.call(o,t)&&Ci(e,t,o[t]);return e},Dc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Ic=n.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),d=n.ref(0),c=n.ref(0),u=n.ref(0),h=n.ref(0),f=n.ref(!1),g=n.ref(!1),y=n.ref(0),m=n.ref(null),v=n.ref("200px"),E=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await A(),i.value++},A=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){h.value=p.value.clientHeight,u.value=b.value.clientHeight;const O=Math.ceil(u.value/h.value);return t.value=isFinite(O)?O:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const O=Math.ceil(d.value/c.value);return t.value=isFinite(O)?O:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(O,M)=>{O!==M&&o(O?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},B=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},L=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},R=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},C=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),S=n.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),T=n.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),w=n.computed(()=>{const O={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${S.value}`,"--pauseOnClick":`${T.value}`,"--pauseAnimation":`${C.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${v.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},M={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(M["--orientation"]="scrollY"),wi(wi({},O),M)}),I=n.computed(()=>!!e.gradient),N=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),v.value=e.gradientWidth):e.gradientLength&&(v.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await A(),x()),E.value=!0};return n.onMounted(async()=>{N(),m.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(m.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(m.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:h,containerHeight:u,loopCounter:y,loopInterval:m,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:I,cloneAmount:t,ForcesUpdate:x,checkForClone:A,setupMarquee:N,getCurrentStyle:w,hoverStarted:k,hoverEnded:B,mouseDown:L,mouseUp:R}}}),Rc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_c={class:"marquee",ref:"marqueeContent"},Oc={key:1,"aria-hidden":!0,class:"marquee"};function Lc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",Rc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",_c,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Oc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Nc=Dc(Ic,[["render",Lc]]);const Mc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Nc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),zc={key:1,class:"list-wrap"};function Fc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",zc,[n.renderSlot(e.$slots,"default")]))}const Pc=he(Mc,[["render",Fc]]),qc=n.defineComponent({name:"EcanList",components:{Skeleton:tn,ATooltip:se.Tooltip,MarqueeScroll:Pc},props:{...No},setup(e,{expose:o}){const t=n.ref(),a=ve(e,["backgroundColor"]),r=(R,C)=>{const{format:S,customFormatter:T}=C;if(S==null||S==="")return R;const w={money:Ao,percentage:hn,contrast:hn,custom:ci};return w[S]?S==="custom"?w[S](R,T)||"":w[S](R)||"":""},i=(R,C)=>{const S=parseFloat(R+"");if(C!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=qe(e),l=n.ref(!1),d=async()=>{var R;if(e.dataType==="request")try{l.value=!0;const C=await s();t.value=((R=C==null?void 0:C.data)==null?void 0:R.data.rows)||[]}catch(C){console.error(C)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),u=n.computed(()=>{const{columns:R,isUseSeq:C}=e;return C?[n.unref(c),...R]:R}),h=nt(e),f=async()=>{var R;try{l.value=!0;const C=await h(),{columns:S=[],rows:T=[]}=((R=C==null?void 0:C.data)==null?void 0:R.data)??{};e.isUseSeq&&S.unshift(e.seqName),u.value.forEach((w,I)=>{(!e.isUseSeq||I!==0)&&(w.title=S[I],w.key=S[I])}),t.value=T}catch(C){console.error(C)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},y=Te(e),{getGlobalModel:m,setGlobalModel:v}=n.inject(we,{getGlobalModel:R=>{},setGlobalModel:(R,C)=>{}}),E=R=>{y("click",()=>{const C=m(e.id);v(e.id,{...C,type:e.type,RECORD:R})})()};Oe(e,{refreshData:g});const{setRequest:p}=n.inject(ze,{setRequest:({id:R,sortNum:C,requestFn:S})=>{}});typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const b=R=>({flex:R.width?"none":"1",width:R.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:R.align||"left",backgroundColor:R.cellColor}),x=(R,C)=>{let S=0;const T=n.unref(t).map(I=>I[C]),w=Math.max(...T);return w&&(S=R[C]/w*100),S},A=R=>{const{progressColor:C="#1890ff",progressGradientColor:S=""}=R;return S?{background:`linear-gradient(to right, ${C} 0%, ${S} 100%)`}:{backgroundColor:C||"#1890ff"}},k=n.computed(()=>{const R=parseFloat(e.seqFontSize)+5;return{width:R+10,height:R}}),{pageMode:B}=n.inject(Me,{pageMode:"normal"}),L=n.computed(()=>n.unref(B)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:u,click:E,getColumnStyle:b,getPercentage:x,getBackgroundColor:A,seqIcon4:Cc,seqIcon5:wc,seqIcon6:Ac,seqIcon7:kc,iconSize:k,isScroll:L}}}),Iu="",Ru="",Hc=e=>(n.pushScopeId("data-v-bb4b7c1e"),e=e(),n.popScopeId(),e),Vc={key:0,class:"title"},jc={key:0,class:"ranking"},Uc={key:1,class:"ecan-list-content"},Gc=["onClick"],Wc={key:0,class:"ranking"},$c=Hc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),Zc={class:"sort"},Yc=["src","width","height"],Kc=["src","width","height"],Qc=["src","width","height"],Jc=["src","width","height"],Xc={key:1},ef={key:2,class:"empty"};function tf(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),d=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(d,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Vc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",jc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(u,h)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:u.key||h,style:n.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},n.toDisplayString(u.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Uc,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(u+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:h=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Wc,[$c,n.createElementVNode("div",Zc," Top "+n.toDisplayString(u+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,h=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[h.key],h.format)]),key:h.key,style:n.normalizeStyle({fontSize:h.fontSize,color:e.contrastClass(c[h.key],h.format)===""?h.color:"",fontWeight:h.fontWeight,...e.getColumnStyle(h)})},[h.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[u===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Yc)):u===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Kc)):u===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Qc)):u>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Jc)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(u+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Xc,n.toDisplayString(u+1),1))],64)):h.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:h.progressWidth||"14px",backgroundColor:h.progressBaseColor})},[n.createVNode(s,{title:c[h.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:h.progressWidth||"14px",width:`${e.getPercentage(c,h.key)}%`,...e.getBackgroundColor(h)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(c[h.key],h)),1)],64))],6))),128))],12,Gc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",ef," 暂无数据 "))]),_:1},8,["loading"])],4)}const Ai=me(he(qc,[["render",tf],["__scopeId","data-v-bb4b7c1e"]])),Mo={...Ce,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:{}},zo=pe(Mo),ki=["refreshData","click"],nf=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:tn},props:{...zo},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=ve(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),A=+e.variableDefaultValue;if(x==null)return isNaN(A)?0:A;const k=e.text.match(/\{.+\}/g)||[];let B;const L=new Set(Object.keys(x));for(let R=0;R<k.length;R++){const C=k[R],S=C.slice(1,C.length-1);if(L.has(S)){B=x[S];break}}return typeof B=="number"?B=B*100:typeof B=="string"&&!isNaN(+B)?B=+B*100:isNaN(A)?B=0:B=A*100,e.decimalFormat&&(B=+B.toFixed(2)),B}),d=n.computed(()=>{var L;let x=e.text;if(x==="")return n.unref(l);const A=e.variableDefaultValue,k=n.unref(s),B=x.match(/\{.+\}/g)||[];for(let R=0;R<B.length;R++){const C=B[R];let S=C.slice(1,C.length-1);const T=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=C.match(T);for(let N=0;N<(w==null?void 0:w.length);N++){const O=(L=w[N])==null?void 0:L.trim();k[O]!=null&&(S=S.replace(O,k[O]))}let I=S;try{/\(.*\)/g.test(S)&&(I=mn(S))}catch(N){console.error(N)}typeof+I=="number"&&!isNaN(+I)?(I=+I*100,e.decimalFormat&&(I=I.toFixed(2))):I=A,x=x.replace(C,I+"")}return n.unref(t)?"NaN":x}),c=qe(e),u=n.ref(!1),h=async()=>{var x;if(e.dataType==="request")try{u.value=!0;const A=await c();s.value=((x=A==null?void 0:A.data)==null?void 0:x.data)||{}}catch(A){console.error(A)}finally{u.value=!1}},f=(x={})=>{s.value=x},g=nt(e),y=async()=>{var x;try{u.value=!0;const A=await g(),{data:k}=(A==null?void 0:A.data)||{};if(k){t.value=!1;const{columns:B=[],rows:L=[]}=((x=A==null?void 0:A.data)==null?void 0:x.data)??{};let R={};if(B.length>0){const C=B.find(S=>!!S);C&&(R={percent:L[C]})}f(R)}else t.value=!0,f({percent:"NaN"})}catch(A){console.error(A)}finally{u.value=!1}},m=()=>{switch(e.dataType){case"indicator":y();break;case"request":h();break}};Oe(e,{refreshData:m}),o({refreshData:m});const E=Te(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:A,requestFn:k})=>{}});typeof p=="function"&&p({id:e.id,requestFn:m,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:A,gradientOffset:k,strokeColor:B}=e;let L=B;return x&&A&&(L={"0%":B,[`${k*100}%`]:A}),L});return{style:r,myWidth:i,text:d,myValue:l,loading:u,click:E,customStrokeColor:b}}}),Ou="";function of(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.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:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ti=me(he(nf,[["render",of],["__scopeId","data-v-cf942b5f"]])),Fo={...Ce,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=pe(Fo),Bi=["inputChange","inputBlur"],af=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Po},setup(e){const o=ve(e),t=n.ref("");n.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=n.inject(we,{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=Te(e),l=Pe.debounce(s("inputChange",()=>{i()}),300),d=s("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:d,inputChange:l}}}),Nu="";function rf(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Ei=me(he(af,[["render",rf]])),qo={...Ce,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"},Ho=pe(qo),Di=["dateChange"],Vo=n.defineComponent({name:"EcanDatePicker",props:{...Ho},components:{ADatePicker:se.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=ve(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,y])=>{let m=null;if(f?m=ke(Be(f)):g&&(m=ke()),y&&m){const{type:v,value:E,mode:p}=y;switch(v){case"add":m=m.add(E,p);break;case"minus":m=m.subtract(E,p)}}r.value=m},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(we,{setGlobalModel:(f,g)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Te(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Oe(e,{dateChange:l});const c=n.ref({}),u=n.ref({}),h=f=>{f?setTimeout(()=>{u.value=n.unref(c)},300):u.value={}};return n.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const g=f.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-g.left<y&&(c.value.marginLeft=-1*(y-g.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:_a,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:h}}}),Ii=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ri=Vo.setup;Vo.setup=Ri?(e,o)=>(Ii(),Ri(e,o)):Ii;const zu="",Fu="",lf=["id"];function sf(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[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,lf)}const _i=me(he(Vo,[["render",sf],["__scopeId","data-v-d4ec0d66"]])),jo={...Ce,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},Uo=pe(jo),Oi=["dateChange"];var Li={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(ce,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 d=s.startOf;s.startOf=function(c,u){var h=this.$utils(),f=!!h.u(u)||u;if(h.p(c)===a){var g=this.quarter()-1;return f?this.month(3*g).startOf(t).startOf("day"):this.month(3*g+2).endOf(t).endOf("day")}return d.bind(this)(c,u)}}})})(Li);var cf=Li.exports;const ff=ir(cf);ke.extend(ff);const Go=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Uo},setup(e){const o=ve(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,A,k,B,L])=>{let R=null,C=null;if(A&&(R=ke().subtract(k,B),C=ke()),b&&(R=ke(Be(b))),x&&(C=ke(Be(x))),L){const{type:S,value:T,mode:w}=L;switch(S){case"add":R=R&&R.add(T,w),C=C&&C.add(T,w);break;case"minus":R=R&&R.subtract(T,w),C=C&&C.subtract(T,w)}}a.value=[R,C]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,A)=>{Array.isArray(b)?(r=b[0],i=b[1],s=A.range):(r=null,i=null)},d=b=>{let x=!1,{limitStartTime:A,limitEndTime:k}=e;const B={startTime:`${r||""}`,endTime:`${i||""}`};if(A=Be(A,{codeData:B}),k=Be(k,{codeData:B}),A&&k?x=!(ke(A)<b&&b<ke(k)):A?x=ke(A)>b:k&&(x=ke(k)<b),!e.isAllowSpanYear&&s){let L=null;if(s==="start"?L=r:s==="end"&&(L=i),L){const R=L.startOf("year"),C=L.endOf("year");x=!(R<=b&&b<C)}}return x},{getGlobalModel:c,setGlobalModel:u}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),h=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),f=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:h,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const g=Te(e);let y=!1;const m=g("dateChange",()=>{}),v=b=>{const x=n.unref(a),A=x&&x[0]&&x[1];b===!1&&y===!0&&A&&(m(),y=!1),b||(s="")},E=()=>{y=!0};return Oe(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:A}=x;if(A)switch(n.unref(A)){case"month":a.value=[ke().startOf("month"),ke().endOf("month")];break;case"quarter":a.value=[ke().startOf("quarter"),ke().endOf("quarter")];break;case"year":a.value=[ke().startOf("year"),ke().endOf("year")];break}}}m()}}),{style:o,getPopupContainer:t,locale:_a,dateChange:m,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:E}}}),Ni=()=>{n.useCssVars(e=>({"70b68802":e.optionFontSize}))},Mi=Go.setup;Go.setup=Mi?(e,o)=>(Ni(),Mi(e,o)):Ni;const qu="",Hu="";function df(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[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 zi=me(he(Go,[["render",df],["__scopeId","data-v-95653c92"]])),Wo={...Ce,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"},$o=pe(Wo),Fi=["click"],uf=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...$o},setup(e){const o=ve(e),a=Te(e)("click",()=>{const d=n.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=n.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=n.computed(()=>Be(e.text)),s=n.computed(()=>Be(e.href)||null),l=n.computed(()=>{const d=e.target;if(!(d==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),ju="";function hf(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Pi=me(he(uf,[["render",hf]])),Zo={...Ce,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:{}},Yo=pe(Zo),qi=["checkboxChange"],gf=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...Yo},setup(e,{expose:o}){const t=ve(e),a=n.ref([]),r=n.ref([]),i=v=>{const E=e.value;let p=[];v.forEach(b=>{b.checked&&p.push(b.value)}),typeof E=="string"&&E!==""?p=p.concat(E.split(",")):Array.isArray(E)&&(p=p.concat(E)),a.value=v,r.value=p};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const v=await s(),E=((b=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(E)},{getGlobalModel:d,setGlobalModel:c}=n.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const h=Te(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),f=nt(e),g=async()=>{var v;try{const E=await f(),{data:p}=(E==null?void 0:E.data)||{};if(p){const x=(((v=E==null?void 0:E.data)==null?void 0:v.data)??[]).map(A=>({label:A.label,value:A.value}));i(x)}else i([])}catch(E){console.error(E)}},y=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:m}=n.inject(ze,{setRequest:({id:v,sortNum:E,requestFn:p})=>{}});return typeof m=="function"&&m({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:h}}}),Gu="";function mf(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Hi=me(he(gf,[["render",mf]])),Ko={...Ce,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=pe(Ko),Vi=["selectChange","refreshData"],yf=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Qo},setup(e,{expose:o}){const t=ve(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=qe(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var N;const{mode:I}=e;return(N=n.unref(i))!=null&&N.length?s.value:I==="multiple"||I==="tags"||I==="combobox"?[]:""},set:I=>{s.value=I}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=n.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,N)=>{},getRecordValueByKeyName:I=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:I,selectFirstOption:N,value:O}=e,M=u(O);I==="multiple"||I==="tags"||I==="combobox"?M?s.value=M.split(","):N&&(s.value=[n.unref(i)[0]]):M?s.value=M:N&&(s.value=n.unref(i)[0])},{immediate:!0});const h=e.dataFieldNames,f=(I,N)=>{const O=h.label,M=h.value;let q;const j=N[O],G=N[M];return j!=null?q=j:G!=null&&(q=G),(q==null?void 0:q.toLowerCase().indexOf(I==null?void 0:I.toLowerCase()))>=0},g=I=>{const{label:N,value:O,options:M}=e.dataFieldNames;if(M&&Array.isArray(I))if(I.some(q=>M in q)){const q={},j=[];I.forEach(G=>{q[G[M]]||(q[G[M]]=[]),q[G[M]].push({[N]:G[N],[O]:G[O]})});for(const G in q)j.push({[N]:G,[M]:q[G]});return j}else return I;else if(!M)return I},y=n.ref(!1),m=async()=>{var I,N;if(e.dataType==="request"){y.value=!0;try{const O=await r();if(i.value=g(((N=(I=O==null?void 0:O.data)==null?void 0:I.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let M=n.unref(i)[0];if(h.options){const q=M[h.options];q&&q.length&&(M=q[0])}s.value=M[h.value]}}catch(O){console.error(O)}finally{y.value=!1}}},{setLoadedData:v,loadedData:E}=n.inject(mt,{setLoadedData:(I,N)=>{},loadedData:{}}),p=n.computed(()=>{let I=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const N=h.label,O=h.value;if(e.mode==="multiple")I=n.unref(i).filter(M=>n.unref(s).includes(M[O])).map(M=>M[N]);else{const M=n.unref(i).find(q=>n.unref(s)===q[O]);M&&(I=M[N])}}return I}),b=n.ref([]),x=n.computed(()=>{const I={};if(e.mode!=="multiple"){const N=n.unref(b).find(O=>O.value===n.unref(s));N&&(I.itemCodes=N.item_codes)}return I});c(e.id,{type:e.type,value:p,...n.unref(x)});const k=Te(e)("selectChange",()=>{const I=e.id,N=d(I);c(I,{...N,...n.unref(x),RECORD:p})}),B=(I=[])=>{if(i.value=g(I),e.selectFirstOption){let N=n.unref(i)[0];if(h.options){const O=N[h.options];O&&O.length&&(N=O[0])}s.value=N[h.value]}},L=nt(e),R=async()=>{var I;try{y.value=!0;const N=await L(),{data:O}=(N==null?void 0:N.data)||{},M=h.label,q=h.value;if(O){const j=((I=N==null?void 0:N.data)==null?void 0:I.data)??[];b.value=j;const G=j.map(_=>({[M]:_.label,[q]:_.value})),{id:F}=e,P=d(F);c(F,{...P,...n.unref(x)}),v(F,!0),B(G)}else B([])}catch(N){console.error(N)}finally{y.value=!1}},C=n.computed(()=>{var I,N;return(N=(I=e==null?void 0:e.graphicConfig)==null?void 0:I.controlList)==null?void 0:N.find(O=>O.conditionKey==="parentCode")}),S=n.ref(!1);n.watch(E,I=>{!n.unref(S)&&n.unref(C)&&I[n.unref(C).id]&&(S.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(n.unref(C)){if(n.unref(E)[n.unref(C).id]){const{mode:I}=e;I==="multiple"||I==="tags"||I==="combobox"?l.value=[]:l.value="",R()}}else R();break}case"request":m();break}};Oe(e,{selectChange:k,refreshData:T});const{setRequest:w}=n.inject(ze,{setRequest:({id:I,sortNum:N,requestFn:O})=>{}});return typeof w=="function"&&w({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:f,loading:y,resultValue:l}}}),$u="",Zu="";function xf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),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:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.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 ji=me(he(yf,[["render",xf],["__scopeId","data-v-e5517626"]])),Jo={...Ce,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},Xo=pe(Jo),Ui=["selectChange","refreshData"],pf={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...Xo},setup(e){const o=ve(e),t=n.ref(e.data),a=(g,y)=>{const m=e.dataFieldNames,v=m.label,E=m.value;let p;const b=y[v],x=y[E];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:y,selectFirstOption:m}=e;g?y?r.value=y.split(","):m&&(r.value=[n.unref(t)[0]]):y?r.value=y:m&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=qe(e),l=async()=>{var g,y;if(e.dataType==="request"){i.value=!0;try{const m=await s();t.value=((y=(g=m==null?void 0:m.data)==null?void 0:g.data)==null?void 0:y.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(m){console.error(m)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(we,{getGlobalModel:g=>{},setGlobalModel:(g,y)=>{}});c(e.id,{type:e.type,value:r});const h=Te(e)("selectChange",()=>{const g=e.id,y=d(g);c(g,{...y,RECORD:r})});Oe(e,{selectChange:h,refreshData:l});const{setRequest:f}=n.inject(ze,{setRequest:({id:g,sortNum:y,requestFn:m})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:h}}},Ku="",Qu="";function bf(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[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 Gi=me(he(pf,[["render",bf],["__scopeId","data-v-37236421"]])),ea={...Ce,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:""},ta=pe(ea),Wi=["checkboxChange","click"],vf=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ta},setup(e,{expose:o}){const t=ve(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let A=[];typeof x=="string"&&x!==""?A=A.concat(x.split(",")):Array.isArray(x)&&(A=A.concat(x)),a.value=b,r.value=A[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=qe(e),l=async()=>{var A,k;if(e.dataType!=="request")return;const b=await s(),x=((k=(A=b==null?void 0:b.data)==null?void 0:A.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const u=Te(e),h=u("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),f=b=>{r.value=b,u("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{h()});const g=nt(e),y=async()=>{var b;try{const x=await g(),{data:A}=(x==null?void 0:x.data)||{};if(A){const B=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(L=>({label:L.label,value:L.value}));i(B)}else i([])}catch(x){console.error(x)}},m=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:v}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:A})=>{}});typeof v=="function"&&v({id:e.id,requestFn:m,sortNum:e.requestSort});const E=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:m}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:f,useImagePath:St,tabChange:E}}}),Xu="",e1="",Sf=["onClick"];function Cf(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),d=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.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:n.withModifiers(h=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Sf))),128))],4)):(n.openBlock(),n.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const $i=me(he(vf,[["render",Cf],["__scopeId","data-v-baa84768"]])),na={...Ce,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"},oa=pe(na),Zi=["click","refreshData","resetRecord"],Vt=async e=>{var d;const o=await lt.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,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(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},aa={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",isShowCloseBtn:!0},ra=pe(aa),Yi=["showModal","hideModal"];function Ki(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const h in t){const f=o.find(g=>g.id===h);if(f){gn(f,"parentId")||(f.parentId="",f.sourceLeft=f.left,f.sourceTop=f.top);for(const g in t[h])if(t[h][g])for(const y of t[h][g]){const m=o.find(v=>v.id===y);m&&(m.parentId=h,m.sourceLeft=m.left,m.sourceTop=m.top,m.left=parseFloat(m.left)-parseFloat(f.sourceLeft||f.left)+"px",m.top=parseFloat(m.top)-parseFloat(f.sourceTop||f.top)+"px")}}}const s=Array.from(new Set(o.filter(h=>(!gn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),l=[];for(const h of s){const f=a[h];if(f!=null&&f.length){const g=o.filter(y=>f.includes(y.id));if(g!=null&&g.length){const y=Af(g);if(y){l.push({...y,id:h,keyName:h,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const m of g)m&&(m.parentId=h,m.sourceLeft=m.left,m.sourceTop=m.top,m.left=parseFloat(m.left)-parseFloat(y.left)+"px",m.top=parseFloat(m.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const d=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(h=>d.includes(h.type)&&!gn(h,"parentId")),u=[];for(const h of c)if(h){const f=h.id+"_vir";u.push({id:f,keyName:h.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:h.width,height:h.height,left:h.left,top:h.top,sourceLeft:h.left,sourceTop:h.top}),h.parentId=f,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}u!=null&&u.length&&o.unshift(...u);for(const h of o){const f=document.body.clientWidth;if(h.parentId===""&&["ecanBorder","ecanTabs"].includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(f/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const g=o.find(y=>y.id===h.parentId);if((g==null?void 0:g.parentId)===""){const y=g.sourceWidth||parseFloat(g.width),m=f/y;h.scale=m,h.top=parseFloat(h.top)*m-parseFloat(h.height)*(1-m)/2+"px",h.left=parseFloat(h.left)*m-parseFloat(h.width)*(1-m)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return wf(o)}return o}function wf(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Pe.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 Af(e){const o=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 o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const kf=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Tf(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const Bf=me(he(kf,[["render",Tf]])),Ef=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:jl,Render:Bf},props:{...ra},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),u=e.fullModal?"1920px":e.width,h=e.fullModal?"1080px":e.height,f=e.originalWidth,g=e.originalHeight,y=n.ref("80%"),m=n.ref(0),v=n.ref(),E=n.ref(0),p=n.ref({}),b=ve(e),x=n.ref({}),A=n.ref(!1),k=n.ref();let B;const L=()=>{v.value=parseFloat(u)/parseFloat(f);const Q=parseFloat(h)/parseFloat(g),Z=document.body.offsetWidth,ee=document.body.offsetHeight;m.value=Z*n.unref(v),E.value=ee*Q,y.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(m)}px`,height:`${n.unref(E)}px`},x.value={...n.unref(b),backgroundImage:St(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(m)/parseFloat(u)},${n.unref(E)/parseFloat(h)})`,width:u,height:h}},R=Pe.debounce(()=>{L()},100),C=()=>{const Q=window.MutationObserver;B=new Q(R),B.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{B&&(B.disconnect(),B.takeRecords(),B=null)},T=n.ref(!1),{touchRequest:w}=n.inject(ze,{touchRequest:()=>{}}),I=n.ref(""),N=()=>{var ee;console.log("interactiveData",l);const{title:Q}=e,Z=(ee=n.unref(l))==null?void 0:ee.RECORD;return Z?Be(Q,{textData:Z},{useNewline:!1,useSpace:!1}):Q},O=()=>{a&&(document.documentElement.style.overflow="hidden"),I.value=N(),T.value=!0},M=()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),T.value=!1},q=()=>{M()},j=()=>{M(),s()},{setModalModel:G,pushUseModalIds:F,popUseModalIds:P}=n.inject(nr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,Z)=>{}}),_=n.computed(()=>{if(a){const Q=Pe.cloneDeep(e.componentList),Z=r(),ee=i();return Ki({componentList:Q,containerMap:Z,combinationMap:ee})}else return e.componentList}),D=()=>{const Q=e.id;let Z=[];const ee=e.componentList;Array.isArray(ee)&&(Z=ee.map(ne=>ne.id),G(Q,[...new Set(Z)]))};n.watch(()=>T.value,async Q=>{Q?(A.value=!1,F(e.id),D(),await n.nextTick(()=>{L(),window.addEventListener("resize",R),C(),A.value=!0}),w()):(P(),window.removeEventListener("resize",R),S())});const z=n.computed(()=>n.unref(v)>=1),U=n.computed(()=>e.fullModal),J=n.computed(()=>{let Q="ecan-modal";return n.unref(z)&&(Q+=" ecan-full-width-modal"),n.unref(U)&&(Q+=" ecan-full-modal"),Q});return Oe(e,{showModal:O,hideModal:M}),{modalRef:k,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:y,isFullModal:U,style:b,visible:T,showModal:O,onOk:q,onCancel:j,isFullWidth:z,wrapClassName:J,ready:A,usedComponentList:_,isMobile:a,readyIds:t,hasOwn:gn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:I}}}),o1="",a1="";function Df(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),d=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+u},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Ct=me(he(Ef,[["render",Df],["__scopeId","data-v-8cf8fa7d"]]));$e.use([kt.CanvasRenderer,ct.PieChart,ye.TitleComponent,ye.ToolboxComponent,ye.TooltipComponent,ye.LegendComponent]);const If=n.defineComponent({name:"EcanPie",props:{...oa},components:{Spin:Rt,Echarts:ht,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(!1),a=ve(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:S=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const T=e.isUseLabelColors,w=e.colors;S=S.map((I,N)=>({label:T?{color:w[N]}:{},...I}))}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(){Vt(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;t.value=!0,(T=i.value)==null||T.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(){se.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:T=>{const{marker:w,seriesName:I,name:N,value:O,percent:M,data:q}=T||{};return Be(e.tooltipFormatter,{textData:{marker:w,name:N,value:O,percent:M,a:I,b:N,c:O,d:M,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:S,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?rt:e.labelFontSize,position:e.labelPosition,formatter:ic(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:{}}}]}}),d=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:S=>{const{data:T}=r.value[0]||{};let w;if(T){const I=T.find(N=>N.name===S);I&&(w=I.value)}return Be(e.legendFormatter,{textData:{name:S,value:w}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:h}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{pageMode:f}=n.inject(Me,{pageMode:"normal"}),g=(S=[],T)=>{const{dataset:w}=_t(S,T);r.value=w},y=(S=[],T)=>{const w=_t(S,T);r.value=w.dataset};n.watch(()=>e.data,S=>{(e.dataType==="static"||n.unref(f)==="design")&&g(S)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{d()},{immediate:!0});const m=n.ref(!1),v=qe(e),E=async()=>{var S,T;if(e.dataType==="request")try{m.value=!0;const w=await v();g((T=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(w){console.error(w)}finally{m.value=!1}},b=Te(e)("click",S=>{const T=u(e.id);h(e.id,{...T,type:e.type,RECORD:S==null?void 0:S.data})}),x=nt(e),A=async()=>{var S;try{m.value=!0;const T=await x(),{data:w}=(T==null?void 0:T.data)||{};if(w){const{columns:I=[],rows:N=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let O=[];if(I.length>0){const M=I[0],q=I[1];O=N.map(j=>({name:j[M],value:isNaN(j[q])?0:j[q]||0}))}y(O)}}catch(T){console.error(T)}finally{m.value=!1}},{loadedData:k}=n.inject(mt,{loadedData:{}}),B=n.ref(!1);n.watch(k,S=>{if(e.dataType==="indicator"){const T=Yt(e.graphicConfig);T!=null&&T.length&&(!n.unref(B)&&et(e.graphicConfig,S)?(B.value=!0,L()):et(e.graphicConfig,S)||(B.value=!1))}},{deep:!0});const L=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(k))&&A();break;case"request":E();break}};Oe(e,{resetRecord:()=>{const S=e.id,T=u(S);h(S,{...T,RECORD:""})},refreshData:L,click:b}),o({refreshData:L});const{setRequest:C}=n.inject(ze,{setRequest:S=>{}});return typeof C=="function"&&C({id:e.id,requestFn:L,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:m,ecanModal:i}}}),i1="";function Rf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Qi=me(he(If,[["render",Rf]])),ia={...Ce,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:"",isShowMarkLine:!1,markLineType:"average"},la=pe(ia),Ji=["click","refreshData","resetRecord"];$e.use([kt.CanvasRenderer,ct.LineChart,ye.ToolboxComponent,ye.TitleComponent,ye.LegendComponent,ye.MarkLineComponent]);const _f=n.defineComponent({name:"EcanLine",props:{...la},components:{Spin:Rt,Echarts:ht,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=ve(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?rt:12),c=n.ref({});let u;const h=n.ref([]),f=n.computed(()=>{const N=e.xAxisLabelFormatter,O=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(){Vt(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 M;a.value=!0,(M=l.value)==null||M.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(){se.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:d.value},show:e.tooltipShow,formatter:M=>{var F;const q=M.length;let j="",G=e.tooltipFormatter;u=(F=M[0])==null?void 0:F.data,G===""&&(G="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:_,seriesName:D,name:z,value:U,data:J}=M[P]||{};if(P===0){let $=z;typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&($=(+z).toString()),j+=`${tt(N,$)}<br/>`}j+=Be(G,{textData:{marker:_,name:z,value:U,a:D,b:z,c:U||0,...J}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(M=>{let q={};return M&&typeof M=="object"?q={...M}:q={value:M},q}),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(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),tt(N,M)}},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(M){return tt(O,M)}},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?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map(M=>({name:M.name,icon:e.legendType}))},series:n.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:m}=n.inject(we,{getGlobalModel:N=>{},setGlobalModel:(N,O)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(N=[],O=!1)=>{let M;if(e.dataFieldConfigType==="key"){const F=O?e.keyTypeDataFieldNames:null;M=vt(N,F)}else if(e.dataFieldConfigType==="value"){const F=O?e.valueTypeDataFieldNames:null;M=_t(N,F)}s.value=M.dimensions,h.value=M.dataset;const q=M.dataset,j=[],G=q.length;for(let F=0;F<G;F++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...q[F],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[F]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[F],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...n.unref(E)})}i.value=j},b=(N=[],O,M=!1)=>{const j=vt(N,M?O:null,!0);s.value=j.dimensions,h.value=j.dataset;const G=j.dataset,F=[],P=G.length;for(let _=0;_<P;_++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...G[_],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[_]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[_],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...n.unref(E)})}i.value=F};n.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,e.isShowMarkLine,e.markLineType],([N])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(N)},{immediate:!0,deep:!0});const x=n.ref(!1),A=qe(e),k=async()=>{var N,O;if(e.dataType==="request")try{x.value=!0;const M=await A();p((O=(N=M==null?void 0:M.data)==null?void 0:N.data)==null?void 0:O.rows,!0)}catch(M){console.error(M)}finally{x.value=!1}},L=Te(e)("click",N=>{const O=y(e.id);m(e.id,{...O,type:e.type,RECORD:e.tooltipShow?u:N.data})}),R=N=>{t.value.chart.containPixel("grid",[N.offsetX,N.offsetY])&&L()};e.tooltipShow?c.value["zr:click"]=R:c.value.click=L;const C=nt(e),S=async()=>{var N;try{x.value=!0;const O=await C(),{columns:M=[],rows:q=[]}=((N=O==null?void 0:O.data)==null?void 0:N.data)??{};let j;M.length>0&&(j={name:M[0],types:M.slice(1).map(G=>({label:G,value:G}))}),b(q,j,!0)}catch(O){console.error(O)}finally{x.value=!1}},T=()=>{switch(e.dataType){case"indicator":S();break;case"request":k();break}};Oe(e,{refreshData:T,resetRecord:()=>{const N=e.id,O=y(N);m(N,{...O,RECORD:""})},click:L});const{setRequest:I}=n.inject(ze,{setRequest:N=>{}});return typeof I=="function"&&I({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{option:f,style:r,click:L,loading:x,onClose:g,ecanModal:l,eventObj:c,echartRef:t}}}),s1="";function Of(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Xi=me(he(_f,[["render",Of]])),sa={...Ce,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:"",isShowMarkLine:!1,markLineType:"average"},ca=pe(sa),e0=["refreshData","click","resetRecord"];$e.use([kt.CanvasRenderer,ct.BarChart,ye.TitleComponent,ye.LegendComponent,ye.DatasetComponent,ye.ToolboxComponent,ye.MarkLineComponent]);const Lf=n.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:Rt,Echarts:ht,EcanModal:Ct,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=ve(e),d=n.ref([]),c=n.ref(),u=n.ref({});let h;const f=n.computed(()=>a.value?rt:12),g=n.computed(()=>{const{gradientShow:_,gradientColors:D,gradientOffset:z,barBorderRadius:U}=e,J=n.unref(d),$=J.length,Q=[];for(let Z=0;Z<$;Z++){const ee={...J[Z],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ee.stack="stack"),ee.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:ne=>{let ae="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:de,name:Se,value:De,data:Re}=ne||{};return ae+=Be(re,{textData:{name:Se,value:De,a:de,b:Se,c:De||0,...Re}},{useNewline:!0,useSpace:!0}),ae}},ee.itemStyle={},_&&(ee.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Z]},{offset:z,color:D[Z]},{offset:1,color:D[Z]}]}}),U){const ne=U.split(",");if(ne!=null&&ne.length){const ae=[];for(const re of ne){const de=parseFloat(re);isNaN(de)||ae.push(de)}ee.itemStyle.borderRadius=ae}}e.isShowMarkLine&&(ee.markLine={data:[{type:e.markLineType}]}),Q.push(ee)}return Q}),y=n.ref([]),m=n.ref(!1),v=n.computed(()=>{const _=e.yAxisLabelFormatter,D=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 z=t.value.chart.getOption(),{xAxis:U}=z||{};U&&U.length&&(s.value=U[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(){Vt(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 z;a.value=!0,(z=c.value)==null||z.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(){se.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:z=>{var Q;const U=z.length;let J="",$=e.tooltipFormatter;h=(Q=z[0])==null?void 0:Q.data,$===""&&($="{marker} {a} {c}");for(let Z=0;Z<U;Z++){const{marker:ee,seriesName:ne,name:ae,value:re,data:de}=z[Z]||{};if(Z===0){let Se=ae;typeof ae=="string"&&ae[0]==="0"&&!isNaN(+ae)&&(Se=(+ae).toString()),J+=`${tt(D,Se)}<br/>`}J+=Be($,{textData:{marker:ee,name:ae,value:re,a:ne,b:ae,c:re||0,...de}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:f.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?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((z,U)=>({name:z.name,itemStyle:{color:e.colors[U]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(A),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(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),tt(D,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):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(z){return tt(_,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(g)}}),{pageMode:E}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(_=[],D=!1)=>{let z={};if(e.dataFieldConfigType==="key"){const U=D?e.keyTypeDataFieldNames:null;z=vt(_,U)}else if(e.dataFieldConfigType==="value"){const U=D?e.valueTypeDataFieldNames:null;z=_t(_,U)}d.value=z.dataset,y.value=z.dimensions},x=(_=[],D,z=!1)=>{const J=vt(_,z?D:null,!0);d.value=J.dataset,y.value=J.dimensions},A=n.computed(()=>n.unref(y).map(_=>{let D={};return _&&typeof _=="object"?D={..._}:D={value:_},D}));n.watch(()=>[e.data,e.labelFormatter],([_])=>{(e.dataType==="static"||n.unref(E)==="design")&&b(_)},{immediate:!0,deep:!0});const k=qe(e),B=async()=>{var _,D;try{m.value=!0;const z=await k();b((D=(_=z==null?void 0:z.data)==null?void 0:_.data)==null?void 0:D.rows,!0)}catch(z){console.error(z)}finally{m.value=!1}},L=nt(e),R=async()=>{var _;try{m.value=!0;const D=await L(),{columns:z=[],rows:U=[]}=((_=D==null?void 0:D.data)==null?void 0:_.data)??{};let J;z.length>0&&(J={name:z[0],types:z.slice(1).map($=>({label:$,value:$}))}),x(U,J,!0)}catch(D){console.error(D)}finally{m.value=!1}},{loadedData:C}=n.inject(mt,{loadedData:{}}),S=n.ref(!1);n.watch(C,_=>{if(e.dataType==="indicator"){const D=Yt(e.graphicConfig);D!=null&&D.length&&(!n.unref(S)&&et(e.graphicConfig,_)?(S.value=!0,T()):et(e.graphicConfig,_)||(S.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(C))&&R();break;case"request":B();break}},w=(_,D)=>!!n.unref(s)[D.value].value.includes(_),I=async()=>{r.value=!1;const _=t.value.chart.getOption();for(let D=0;D<7;D++)await N(_,D)},N=(_,D)=>new Promise(z=>{setTimeout(()=>{const{series:U,color:J,xAxis:$}=_,Q=t.value.chart,{splitArea:Z={}}=$[0]||{};U.forEach((ee,ne)=>{const ae=ee.data;let re="";D%2?re=J[ne]+"a8":re=J[ne],ae[i.value].itemStyle={color:re}}),D%2?(Z.show=!0,Z.areaStyle.color=n.unref(s).map((ee,ne)=>ne===i.value?"#ff003b26":"")):Z.show=!1,Q.setOption({series:U,xAxis:$}),z()},200)});o({refreshData:T});const O=Te(e),{getGlobalModel:M,setGlobalModel:q}=n.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,D)=>{}}),j=O("click",_=>{const D=M(e.id);q(e.id,{...D,type:e.type,RECORD:e.tooltipShow?h:_.data})}),{setRequest:G}=n.inject(ze,{setRequest:_=>{}});typeof G=="function"&&G({id:e.id,requestFn:T,sortNum:e.requestSort});const F=()=>{const _=e.id,D=M(_);q(_,{...D,RECORD:""})},P=_=>{t.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&j()};return e.tooltipShow?u.value["zr:click"]=P:u.value.click=j,Oe(e,{refreshData:T,click:j,resetRecord:F}),{option:v,style:l,refreshData:T,click:j,loading:m,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:I,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:u}}}),f1="",d1="",Nf=e=>(n.pushScopeId("data-v-a6b45d1d"),e=e(),n.popScopeId(),e),Mf={class:"location-wrap"},zf=Nf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Ff(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),h=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Mf,[zf,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(f,g)=>(n.openBlock(),n.createBlock(c,{key:g,value:g},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const t0=me(he(Lf,[["render",Ff],["__scopeId","data-v-a6b45d1d"]])),fa={...Ce,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:"",isShowMarkLine:!1,markLineType:"average"},da=pe(fa),n0=["click","refreshData","resetRecord"];$e.use([kt.CanvasRenderer,ct.ScatterChart,ye.ToolboxComponent,ye.TitleComponent,ye.TooltipComponent,ye.LegendComponent,ye.MarkLineComponent]);const Pf=n.defineComponent({name:"EcanScatter",props:{...da},components:{Spin:Rt,Echarts:ht,EcanModal:Ct},setup(e){const o=n.ref(!1),t=ve(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?rt:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const A=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(){Vt(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 B;o.value=!0,(B=r.value)==null||B.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(){se.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(B){return typeof B=="string"&&B[0]==="0"&&!isNaN(+B)&&(B=(+B).toString()),tt(A,B)}},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(B){return tt(k,B)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(B){var w;const{marker:L,seriesName:R}=B,C=((w=B==null?void 0:B.data)==null?void 0:w.record)??{},{name:S,value:T}=C;return Be(e.tooltipFormatter,{textData:{marker:L,seriesName:R,a:R,b:S,c:T,...C}})},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:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=n.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,k)=>{}}),{pageMode:u}=n.inject(Me,{pageMode:"normal"}),h=(A=[],k)=>{const{name:B="name",value:L="value"}=k||{};a.value=A.map(R=>({value:[R[B],R[L]],record:R}))};n.watch(()=>e.data,A=>{(e.dataType==="static"||n.unref(u)==="design")&&h(A)},{immediate:!0,deep:!0});const f=n.ref(!1),g=qe(e),y=async()=>{var A,k;if(e.dataType==="request"){f.value=!0;try{const B=await g();h((k=(A=B==null?void 0:B.data)==null?void 0:A.data)==null?void 0:k.rows,e.dataFieldNames)}catch(B){console.error(B)}finally{f.value=!1}}},m=()=>{o.value=!1},E=Te(e)("click",A=>{const k=e.id,B=d(k);c(k,{...B,type:e.type,RECORD:A==null?void 0:A.data})});Oe(e,{refreshData:()=>{y()},click:E,resetRecord:()=>{const A=e.id,k=d(A);c(A,{...k,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:A=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:E,loading:f,onClose:m,ecanModal:r}}}),h1="";function qf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const o0=me(he(Pf,[["render",qf]])),ua={...Ce,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=pe(ua),Hf=n.defineComponent({name:"EcanCustomGraph",props:{...ha},components:{Echarts:ht},setup(e){const o=ve(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:N0}}});function Vf(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const a0=me(he(Hf,[["render",Vf]])),ga={...Ce,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:"",isShowMarkLine:!1,markLineType:"average"},ma=pe(ga),r0=["refreshData","click","resetRecord"];$e.use([kt.CanvasRenderer,ct.BarChart,ct.LineChart,ye.TitleComponent,ye.LegendComponent,ye.DatasetComponent,ye.ToolboxComponent,ye.MarkLineComponent]);const jf=n.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:Rt,Echarts:ht,EcanModal:Ct,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=ve(e),u=n.ref([]),h=n.ref([]),f=n.ref(),g=n.ref([]),y=n.computed(()=>a.value?rt:12),m=n.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 D=t.value.chart.getOption(),{xAxis:z}=D||{};z&&z.length&&(s.value=z[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(){Vt(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 D;a.value=!0,(D=f.value)==null||D.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(){se.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?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map((D,z)=>({name:D.name,itemStyle:{color:e.colors[z]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:D=>{var Q;const z=D.length;let U="",J=e.tooltipFormatter;d=(Q=D[0])==null?void 0:Q.data,J===""&&(J="{marker} {a} {c}");const $=e.seriesTypes;for(let Z=0;Z<z;Z++){const ee=$[Z],{tooltipFormatter:ne}=ee||{},{marker:ae,seriesName:re,name:de,value:Se,data:De}=D[Z]||{};if(Z===0){let Re=de;typeof de=="string"&&de[0]==="0"&&!isNaN(+de)&&(Re=(+de).toString()),U+=`${tt(e.xAxisLabelFormatter,Re)}<br/>`}U+=Be(ne||J,{textData:{marker:ae,name:de,value:Se,seriesName:re,a:re,b:de,c:Se||0,...De}},{useNewline:!0,useSpace:!0}),U+="<br/>"}return U},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(h).map(D=>{let z={};return D&&typeof D=="object"?z={...D}:z={value:D},z}),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(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),tt(e.xAxisLabelFormatter,D)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(A),series:n.unref(u)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=()=>{a.value=!1},p=(D=[],z=!1)=>{let U;if(e.dataFieldConfigType==="key"){const $=z?e.keyTypeDataFieldNames:null;U=vt(D,$)}else if(e.dataFieldConfigType==="value"){const $=z?e.valueTypeDataFieldNames:null;U=_t(D,$)}h.value=U.dimensions;const J=U.dataset;g.value=U.dataset,u.value=x(J)},b=(D=[],z,U=!1)=>{const $=vt(D,U?z:null,!0);h.value=$.dimensions;const Q=$.dataset;g.value=$.dataset,u.value=x(Q)};function x(D){const z=[],U=D.length,J=e.seriesTypes;for(let $=0;$<U;$++){const Q=J[$],{type:Z,axisIndex:ee}=Q||{};let ne={type:Z,yAxisIndex:ee,...D[$]};if(Z==="line"){const ae={};e.shadowColor&&(ae.shadowColor=e.shadowColor,ae.shadowBlur=e.shadowBlur,ae.shadowOffsetY=e.shadowOffsetY,ae.shadowOffsetX=e.shadowOffsetX),ne={...ne,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[$]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...ae}}}if(Z==="bar"){const{gradientShow:ae,gradientColors:re,gradientOffset:de}=e,Se={};if(e.barBorderRadius){const De=e.barBorderRadius.split(",");if(De!=null&&De.length){const Re=[];for(const je of De){const Ue=parseFloat(je);isNaN(Ue)||Re.push(Ue)}Se.borderRadius=Re}}ae&&(Se.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:de,color:re[$]},{offset:1,color:re[$]}]}),ne={...ne,barWidth:e.barWidth,itemStyle:Se}}e.isShowMarkLine&&(ne.markLine={data:[{type:e.markLineType}]}),z.push(ne)}return z}n.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,e.isShowMarkLine,e.markLineType],([D])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(D)},{immediate:!0,deep:!0});const A=n.computed(()=>{const D=e.yAxis;return D==null?void 0:D.map(z=>({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(U){return tt(z.axisLabelFormatter,U)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),k=n.ref(!1),B=qe(e),L=async()=>{var D,z;if(e.dataType==="request")try{k.value=!0;const U=await B();p((z=(D=U==null?void 0:U.data)==null?void 0:D.data)==null?void 0:z.rows,!0)}catch(U){console.error(U)}finally{k.value=!1}},R=nt(e),C=async()=>{var D;try{k.value=!0;const z=await R(),{columns:U=[],rows:J=[]}=((D=z==null?void 0:z.data)==null?void 0:D.data)??{};let $;U.length>0&&($={name:U[0],types:U.slice(1).map(Q=>({label:Q,value:Q}))}),b(J,$,!0)}catch(z){console.error(z)}finally{k.value=!1}},{loadedData:S}=n.inject(mt,{loadedData:{}}),T=n.ref(!1);n.watch(S,D=>{if(e.dataType==="indicator"){const z=Yt(e.graphicConfig);z!=null&&z.length&&(!n.unref(T)&&et(e.graphicConfig,D)?(T.value=!0,w()):et(e.graphicConfig,D)||(T.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(S))&&C();break;case"request":L();break}},I=(D,z)=>!!n.unref(s)[z.value].value.includes(D),N=async()=>{r.value=!1;const D=t.value.chart.getOption();for(let z=0;z<7;z++)await O(D,z)},O=(D,z)=>new Promise(U=>{setTimeout(()=>{const{series:J,color:$,xAxis:Q}=D,Z=t.value.chart,{splitArea:ee={}}=Q[0]||{};J.forEach((ne,ae)=>{const re=ne.data;let de="";z%2?de=$[ae]+"a8":de=$[ae],re[i.value].itemStyle={color:de}}),z%2?(ee.show=!0,ee.areaStyle.color=n.unref(s).map((ne,ae)=>ae===i.value?"#ff003b26":"")):ee.show=!1,Z.setOption({series:J,xAxis:Q}),U()},200)});o({refreshData:w});const M=Te(e),{getGlobalModel:q,setGlobalModel:j}=n.inject(we,{getGlobalModel:D=>{},setGlobalModel:(D,z)=>{}}),G=M("click",D=>{const z=q(e.id);j(e.id,{...z,type:e.type,RECORD:e.tooltipShow?d:D==null?void 0:D.data})}),F=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&G()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=G;const{setRequest:P}=n.inject(ze,{setRequest:D=>{}});return typeof P=="function"&&P({id:e.id,requestFn:w,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const D=e.id,z=q(D);j(D,{...z,RECORD:""})},refreshData:w,click:G}),{style:c,option:m,click:G,loading:k,onClose:E,ecanModal:f,echartRef:t,handleLocationOk:N,onFilterOption:I,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),y1="",x1="",Uf=e=>(n.pushScopeId("data-v-4fe6d0c3"),e=e(),n.popScopeId(),e),Gf={class:"location-wrap"},Wf=Uf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function $f(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),h=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Gf,[Wf,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(f,g)=>(n.openBlock(),n.createBlock(c,{key:g,value:g},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const i0=me(he(jf,[["render",$f],["__scopeId","data-v-4fe6d0c3"]])),ya={...Ce,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:""},xa=pe(ya),l0=["refreshData","click","resetRecord"];$e.use([kt.CanvasRenderer,ct.RadarChart,ye.ToolboxComponent,ye.TitleComponent,ye.LegendComponent]);const Zf=n.defineComponent({name:"EcanRadar",props:{...xa},components:{Spin:Rt,Echarts:ht,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=ve(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?rt:12),d=n.ref({});let c;const u=n.ref([]),h=n.ref(e.valueTypeDataFieldNames.name),f=n.computed(()=>{const O=n.unref(u),M=O.length,q=[];for(let j=0;j<M;j++){const{name:G,data:F=[]}=O[j],P=[{name:G,value:F.map(D=>D.value)}],_={type:"radar",name:G,data:P,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}};q.push(_)}return q}),g=n.computed(()=>{var G,F;const O=[],M={},q=n.unref(u),j=q.length;for(let P=0;P<j;P++){const{data:_=[]}=q[P];if(_!=null&&_.length)for(let D=0;D<_.length;D++)M[_[D][h.value]]?M[_[D][h.value]].push(_[D].value):M[_[D][h.value]]=[_[D].value]}if((G=i.value)!=null&&G.length)for(const P of i.value)O.push({name:P,max:(F=M[P])!=null&&F.length?Math.max(...M[P])*1.2:0});return O}),y=n.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(){Vt(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(){se.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 M="",q=e.tooltipFormatter;c=(j=O[0])==null?void 0:j.data,q===""&&(q="{marker} {a} {c}");for(let G=0;G<n.unref(g).length;G++){const F=n.unref(g)[G],{marker:P,seriesName:_,value:D}=O||{};G===0&&_&&(M+=`${_}<br/>`),M+=Be(q,{textData:{marker:P,name:F.name,value:D[G],a:F.name,b:F.name,c:D[G]||0,type:_}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map(O=>({name:O.name,icon:e.legendType}))},series:n.unref(f)})),m=()=>{a.value=!1},{getGlobalModel:v,setGlobalModel:E}=n.inject(we,{getGlobalModel:O=>{},setGlobalModel:(O,M)=>{}}),{pageMode:p}=n.inject(Me,{pageMode:"normal"}),b=(O=[],M=!1)=>{let q;if(e.dataFieldConfigType==="key"){const j=M?e.keyTypeDataFieldNames:null;q=vt(O,j)}else if(e.dataFieldConfigType==="value"){const j=M?e.valueTypeDataFieldNames:null;q=_t(O,j)}i.value=q.dimensions,u.value=q.dataset},x=(O=[],M,q=!1)=>{const G=vt(O,q?M:null,!0);i.value=G.dimensions,u.value=G.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([O])=>{(e.dataType==="static"||n.unref(p)==="design")&&b(O)},{immediate:!0,deep:!0});const A=n.ref(!1),k=qe(e),B=async()=>{var O,M;if(e.dataType==="request")try{A.value=!0;const q=await k();b((M=(O=q==null?void 0:q.data)==null?void 0:O.data)==null?void 0:M.rows,!0)}catch(q){console.error(q)}finally{A.value=!1}},R=Te(e)("click",O=>{const M=v(e.id);E(e.id,{...M,type:e.type,RECORD:e.tooltipShow?c:O.data})}),C=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&R()};e.tooltipShow?d.value["zr:click"]=C:d.value.click=R;const S=nt(e),T=async()=>{var O;try{A.value=!0;const M=await S(),{columns:q=[],rows:j=[]}=((O=M==null?void 0:M.data)==null?void 0:O.data)??{};let G;q.length>0&&(h.value=q[0],G={name:q[0],types:q.slice(1).map(F=>({label:F,value:F}))}),x(j,G,!0)}catch(M){console.error(M)}finally{A.value=!1}},w=()=>{switch(e.dataType){case"indicator":T();break;case"request":B();break}};Oe(e,{refreshData:w,resetRecord:()=>{const O=e.id,M=v(O);E(O,{...M,RECORD:""})},click:R});const{setRequest:N}=n.inject(ze,{setRequest:O=>{}});return typeof N=="function"&&N({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:y,style:r,click:R,loading:A,onClose:m,ecanModal:s,eventObj:d,echartRef:t}}}),b1="";function Yf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const s0=me(he(Zf,[["render",Yf]])),Kf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Qf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP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EDIHrR0CXPiaOzL+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==",pa={...Ce,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"},ba=pe(pa),c0=["click"],ed=n.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const o=ve(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:m,gradientColor:v,gradientOffset:E,gradientAngle:p,backgroundColor:b}=e;if(m){let x=v;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let m={};return y!=null&&y.length&&y.find(E=>E.emit==="showModal")&&(m={cursor:"pointer"}),m}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Kf,"../../assets/border-title-decoration-left2.png":Qf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Jf,"../../assets/border-title-decoration-right2.png":Xf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,m=[],v={};if(y){const E=y.split(",");for(const p of E)(+p||+p==0)&&m.push(+p+"px")}return m!=null&&m.length&&(v.borderRadius=m.join(" ")),v}),h=Te(e)("click",()=>{}),f=n.ref([]);n.watch(()=>e.data,y=>{f.value=y},{immediate:!0,deep:!0}),Oe(e,{click:h});const{setGlobalModel:g}=n.inject(we,{setGlobalModel:(y,m)=>{}});return g(e.id,{type:e.type,value:f}),{style:o,gradientStyle:t,click:h,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),S1="",wt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),td=["id"],nd=wt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),od=wt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),ad=wt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),rd=wt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),id={class:"title-item"},ld=["src"],sd={class:"title"},cd=["src"],fd=wt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),dd=wt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),ud=wt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),hd=wt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),gd={key:2,class:"left-title"},md={class:"title"};function yd(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[nd,od,ad,rd],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",id,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,ld),n.createElementVNode("div",sd,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,cd)])],2),fd,dd,ud,hd],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",gd,[n.createElementVNode("div",md,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,td)}const f0=me(he(ed,[["render",yd],["__scopeId","data-v-8dd53b8f"]])),va={...Ce,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,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},Sa=pe(va),d0=["tabChange"],xd=n.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:se.Select,ASelectOption:se.SelectOption},setup(e){const o=ve(e),t=n.ref(0);n.watch(()=>e.activeKey,g=>{t.value=g},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const g=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&g>0&&(r=setInterval(()=>{const y=n.unref(t)+1;y<=g?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],h()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,g=>{s.value=g,l.value=Array.isArray(g)&&g.length>0?g[0]:{}},{immediate:!0,deep:!0});const d=g=>t.value===g,c=Te(e),{setGlobalModel:u}=n.inject(we,{setGlobalModel:(g,y)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:h}=n.inject($t,{emitRefreshPage:()=>{}}),f=c("tabChange",(g,y)=>{y!==n.unref(t)&&(l.value=g,t.value=y,h())});return Oe(e,{tabChange:f}),{style:o,activeKey:t,isActive:d,tabChange:f,myData:s,useImagePath:St}}}),w1="",pd=["id"],bd=["onClick"];function vd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.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:n.withModifiers(u=>e.tabChange(d,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(d.title),5)],12,bd))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(d,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(d.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,pd)}const u0=me(he(xd,[["render",vd],["__scopeId","data-v-fbab260a"]])),Ca={...Ce,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{}},wa=pe(Ca),h0=["click"],Sd=n.defineComponent({name:"EcanImage",props:{...wa},setup(e){const o=ve(e),t=n.computed(()=>St(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(we,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Te(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=fi(n.unref(a),c),h=e.href;let f=h||u;f=Be(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:h},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),k1="",Cd=["src"];function wd(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Cd)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const g0=me(he(Sd,[["render",wd],["__scopeId","data-v-3665dde7"]])),Aa={...Ce,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ka=pe(Aa),Ad=n.defineComponent({name:"EcanIframe",props:{...ka},setup(e){const o=ve(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=Be(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${es||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),B1="",kd=["src"];function Td(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,kd)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const m0=me(he(Ad,[["render",Td],["__scopeId","data-v-19bc100c"]])),Ta={...Ce,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%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Ba=pe(Ta),y0=["click","refreshData","resetRecord","exportTableData"],Bd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3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+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Ea=n.defineComponent({name:"EcanTable",components:{Skeleton:tn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ba},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=Pe.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=n.ref(),i=n.ref(!1),s=ve(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.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};n.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&n.nextTick(()=>{let Y=parseFloat(e.height);const K=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(oe&&(Y-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Y-=te),e.paginationShow){let X=0;X=u(),X&&(Y-=X)}(K==null?void 0:K.clientHeight)>Y?c.value=Y:c.value=0,n.nextTick(()=>{if(te){const X=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ge=(X==null?void 0:X.clientHeight)||0;te!==ge&&n.unref(c)&&(c.value=Y+te-ge)}})})});const h=n.ref([]),f=n.ref([]),g=n.ref([]),y=n.ref([]),m=n.ref(0),v=n.ref(1),E=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Y,K;if(Array.isArray(V)&&V.length>0){let oe=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Y=n.unref(a))!=null&&Y.length)){const{graphicConfig:{indicators:te=[]}}=e;V.forEach((X,ge)=>{if(n.unref(a)[ge])for(const Le in n.unref(a)[ge])["dataIndex","title"].includes(Le)||(X[Le]=n.unref(a)[ge][Le]);const be=te.find(Le=>Le.label===X.title),{showLabel:xe=""}=be||{};xe&&(X.title=xe)})}for(let te=oe-1;te>=0;te--)(K=V[te])!=null&&K.isHidden&&V.splice(te,1);oe=V.length;for(let te=0;te<oe;te++){const X=V[te];te<ie?X.fixed="left":X.fixed=!1;const{cellAlign:ge="center",cellColor:be,dataIndex:xe,title:Le,tableFilter:Ke,headerCellAlign:st,headerCellColor:yn}=X;Ke&&(p.push(xe),X.filterOptionsInputValue="",X.filterCheckboxGroupValue=[],X.customFilterDropdown=!0,X.onFilter=(Et,Kt)=>Kt[xe].toString().toLowerCase().includes(Et.toLowerCase())),X.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:st||"center",color:yn||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),X.customCell=(Et,Kt)=>({style:{textAlign:ge,color:be||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(U)===Kt&&e.clickHighlight},onClick:G("click",()=>{const xn=e.id,pn=F(xn);Et={dataIndex:xe,title:Le,...Et},P(xn,{...pn,type:e.type,RECORD:Et})})}),Array.isArray(X.children)&&b(X.children)}}},x=(V=[])=>{var K;let Y=Pe.cloneDeep(V);return(K=n.unref(y))!=null&&K.length&&(Y=Pe.cloneDeep(n.unref(y))),e.isUseSeq&&Y.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Y.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Y),Y};n.watch(E,()=>{v.value=1,Z(!1)}),n.watch(r,V=>{i.value=!!V}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{h.value=x(Pe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Y])=>{Y==="static"&&(f.value=V)},{immediate:!0});const A=n.ref({}),k=V=>{if(Array.isArray(V)){const Y=V.length,K=p,oe=K.length,ie={};for(let X=0;X<Y;X++){const ge=V[X];for(let be=0;be<oe;be++){const xe=K[be];if(ie[xe])ie[xe].add(ge[xe]);else{const Le=new Set;Le.add(ge[xe]),ie[xe]=Le}}}const te={};for(const X in ie)if(Object.prototype.hasOwnProperty.call(ie,X)){const ge=ie[X],be=Array.from(ge);te[X]=be.map(xe=>({label:xe,value:xe}))}A.value=te}};n.watch(()=>[e.isReverse,h.value,f.value],()=>{const V=n.unref(h),Y=n.unref(f);if(k(Y),e.isReverse){const{columns:K,dataSource:oe}=B(Pe.cloneDeep(V),Pe.cloneDeep(Y));g.value=K,l.value=oe}else g.value=V,l.value=Y},{immediate:!0});const B=(V,Y)=>{const K=V[0],oe=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Y.length;te++){const X=Y[te],ge="col"+(te+1);oe.push({title:X[K.dataIndex],dataIndex:ge,key:ge,align:"center"})}const ie=[];for(let te=1;te<V.length;te++){const X=V[te],ge={col0:X.title};for(let be=0;be<Y.length;be++){const xe=Y[be];ge[`col${be+1}`]=xe[X.dataIndex]}ie.push(ge)}return{columns:oe,dataSource:ie}},L=n.ref(""),R=qe(e),C=async(V=!0,Y={})=>{var K;try{V&&(t.value=!0),n.unref(L)&&(Y.orderCondition=n.unref(L)),e.paginationShow&&(Y={pageNum:n.unref(v),pageSize:n.unref(E)||"10",layer:"1",...Y});const oe=await R(Y),{rows:ie=[],total:te=0}=((K=oe==null?void 0:oe.data)==null?void 0:K.data)||{};if(m.value=te,Array.isArray(ie)&&(f.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:X=[]}=e,ge=X.find(be=>be.key==="dataSqlId");if((ge==null?void 0:ge.value)==="xt_jxzebg"){const be=ie.filter(xe=>!xe.绩效总额).map(xe=>xe.ORG_NAME);be!=null&&be.length&&n.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${be.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},S=({current:V},Y,K)=>{if(v.value=V,K&&Object.keys(K).length>0){const{field:oe,order:ie}=K,X={ascend:"asc",descend:"desc"}[ie];oe!=null&&X!=null&&(L.value=oe+" "+X)}Z(!1)},T=n.computed(()=>{const V=e.simple,Y=[e.paginationPosition],K={};return e.isShowTotal&&(K.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:Y,total:n.unref(m),current:n.unref(v),pageSize:n.unref(E)||"10",showSizeChanger:!1,size:"large",...K}}),w=V=>+V==1?"是":+V==0?"否":V,I=(V,Y)=>{const{format:K,retentiondigit:oe,customFormatter:ie}=Y;if(K==null||K==="")return V;const te={money:Ao,percentage:hn,contrast:hn,boolean:w,decimals:sc,custom:ci};return te[K]?K==="decimals"?te[K](V,oe)||"":K==="custom"?te[K](V,ie)||"":te[K](V)||"":""},N=V=>V==="contrast"?"upDown":"",O=V=>{const{text:Y,format:K,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(K==="contrast"){const te={fontSize:e.fontSize},X=parseFloat(Y+"");return X>=0?te.color=ie:X<0&&(te.color=oe),te}else return{}},M=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),q=V=>{const{text:Y,declineColor:K="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,te=parseFloat(Y+""),X={width:ie,verticalAlign:"unset"};return te>=0?X.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(X.filter=`drop-shadow(${K||"#39cf93"} ${ie} -1px)`),X},j=V=>{const Y=parseFloat(V+"");if(Y>=0)return Do;if(Y<0)return Io},G=Te(e),{getGlobalModel:F,setGlobalModel:P}=n.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,Y)=>{}}),_=(V=[],Y=[])=>{const K=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));y.value=Pe.cloneDeep(K),h.value=x(K),f.value=Y},D=nt(e),z=async(V=!0)=>{var Y,K,oe,ie;try{V&&(t.value=!0);const te=n.unref(L).split(" "),X=await D({sort:{order:te[1],field:te[0]}});_((K=(Y=X==null?void 0:X.data)==null?void 0:Y.data)==null?void 0:K.columns,(ie=(oe=X==null?void 0:X.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},U=n.ref(-1),J=(V,Y)=>({onClick:G("rowClick",()=>{const K=e.id,oe=F(K);P(K,{...oe,type:e.type,RECORD:V}),U.value=Y})}),{loadedData:$}=n.inject(mt,{loadedData:{}}),Q=n.ref(!1);n.watch($,V=>{if(e.dataType==="indicator"){const Y=Yt(e.graphicConfig);Y!=null&&Y.length&&(!n.unref(Q)&&et(e.graphicConfig,V)?(Q.value=!0,Z()):et(e.graphicConfig,V)||(Q.value=!1))}},{deep:!0});const Z=(V=!0)=>{switch(e.dataType){case"request":C(V);break;case"indicator":et(e.graphicConfig,n.unref($))&&z(V);break}},ee=()=>{const V=e.id,Y=F(V);P(V,{...Y,type:e.type,RECORD:""})},ne=n.computed(()=>{const V=n.unref(g),Y=[];let K=0;for(let te=0;te<V.length;te++){const X=V[te],{isCalcTotal:ge}=X;e.isUseSeq&&te===0?Y.push({...X,total:"小计"}):ge?(Y.push({...X,index:te,total:0}),K++):Y.push({...X})}if(K===0)return[];const oe=n.unref(l),ie=ae(Y);for(let te=0;te<ie.length;te++){const X=ie[te];let ge=0;const{isCalcTotal:be,dataIndex:xe}=X;if(be===!0){for(let Le=0;Le<oe.length;Le++){const st=+oe[Le][xe];isNaN(st)||(ge=new O0.Big(ge).add(st).toNumber())}X.total=ge}}return ie});function ae(V){var K;const Y=[];for(const oe of V)(K=oe.children)!=null&&K.length?Y.push(...ae(oe.children)):Y.push(oe);return Y}const{setRequest:re}=n.inject(ze,{setRequest:V=>{}});typeof re=="function"&&re({id:e.id,requestFn:Z,sortNum:e.requestSort}),o({refreshData:Z});const de=(V="",Y)=>Be(V,Y),Se=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},De=(V,Y="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Y},"*")},Re=(V,Y)=>{V(Y.filterCheckboxGroupValue)},je=(V,Y)=>{V({confirm:!0}),Y.filterOptionsInputValue="",Y.filterCheckboxGroupValue=[]},Ue=()=>{},_e=V=>{const Y=V.dataIndex;if(typeof Y=="string"){let K=n.unref(A)[Y];const oe=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),K):[]}return[]},Ae=async()=>{var xe,Le;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let Y=[];if(e.dataType==="static")Y=e.data;else if(e.dataType==="request"){const Ke={layer:"1"};n.unref(L)&&(Ke.orderCondition=n.unref(L));const st=await R(Ke);Y=((Le=(xe=st==null?void 0:st.data)==null?void 0:xe.data)==null?void 0:Le.rows)||{}}const K=n.unref(g),oe=[],ie=[];K==null||K.forEach(Ke=>{oe.push(Ke.dataIndex),ie.push(Ke.title)});const te=Y.map(Ke=>Pe.pick(Ke,oe)),X=jt.utils.book_new(),ge=jt.utils.aoa_to_sheet([ie]),be=jt.utils.sheet_add_json(ge,te,{skipHeader:!0,origin:"A2"});jt.utils.book_append_sheet(X,be,"sheet"),jt.writeFile(X,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Ne=(V,Y=2)=>{const K=+V*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(Y)};Oe(e,{resetRecord:ee,refreshData:Z,exportTableData:Ae});const We=(V,Y)=>{let K=null;return e.stripedShow&&(K=Y%2===1?"table-striped":null),K},ot=n.computed(()=>{let V=0;const{height:Y,isPageBottom:K}=e;return K&&Y&&(V=parseFloat(Y)-u()),V?V+"px":"100%"}),He=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ge=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=n.computed(()=>parseFloat(e.fontSize)+16);return{x:d,y:c,style:s,customRow:J,pagination:T,formatFn:I,contrastClass:N,tableChange:S,summaryList:ne,loading:t,onTouchHrefEvent:De,handleHref:de,handleHrefTarget:Se,useRowIndex:U,tableColumns:g,tableDataSource:l,useFilterOptions:_e,useSetSelectedKeys:Re,onResetFilter:je,onSearchFilterOptions:Ue,exportTableData:Ae,handleProgressText:Ne,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:We,tableHeight:ot,tableHeaderBgColor:He,tableBodyBgColor:Ge,getChgStyle:O,chgBoxStyle:M,getChgBoxImgStyle:q,getChgBoxImgSrc:j,seqIcon1:Bd,seqIcon2:Ed,seqIcon3:Dd,iconSize:ut}}}),x0=()=>{n.useCssVars(e=>({"27f0c724":e.stripedColor,c51cbe28:e.paginationBgColor,dca1d49e:e.paginationColor,c6accef4:e.activePaginationBgColor,"05d42bcb":e.activePaginationColor,"8764759e":e.hoverBackgroundColor,"65fa7a4a":e.tableHeaderBgColor,"719296b4":e.tableBodyBgColor}))},p0=Ea.setup;Ea.setup=p0?(e,o)=>(x0(),p0(e,o)):x0;const D1="",I1="",Id=e=>(n.pushScopeId("data-v-d2058fbc"),e=e(),n.popScopeId(),e),Rd=["id"],_d={key:0,class:"table-tool"},Od=n.createTextVNode("导出数据"),Ld=n.createTextVNode(" 搜索 "),Nd=n.createTextVNode(" 重置 "),Md=["src","width","height"],zd=["src","width","height"],Fd=["src","width","height"],Pd={key:1},qd={key:1,class:"action-list"},Hd=["href","target","onClick"],Vd={key:2,class:"progress-cell"},jd={key:0},Ud=["src"],Gd={key:1},Wd=["src"],$d={class:"ant-pagination-options-quick-jumper"},Zd=Id(()=>n.createElementVNode("span",null,"条 / 页",-1));function Yd(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),d=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),u=n.resolveComponent("a-table-summary-row"),h=n.resolveComponent("a-table-summary"),f=n.resolveComponent("a-table"),g=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(g,{loading:e.loading},{default:n.withCtx(()=>{var y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",_d,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Od]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"tableRef",class:"table",style:n.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:n.withCtx(({column:m,selectedKeys:v,setSelectedKeys:E,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:m.filterOptionsInputValue,"onUpdate:value":x=>m.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:m.filterCheckboxGroupValue,"onUpdate:value":x=>m.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(m),onChange:x=>e.useSetSelectedKeys(E,m)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Ld]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,m),["stop"])},{default:n.withCtx(()=>[Nd]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:m,index:v,text:E,record:p})=>{var b,x;return[m.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[v===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Md)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,zd)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Fd)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(v+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Pd,n.toDisplayString(v+1),1))],64)):m.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",qd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(A,k)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:k},[n.createElementVNode("a",{href:e.handleHref(A.href,p),target:e.handleHrefTarget(A.target),style:n.normalizeStyle({color:A.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:B=>e.onTouchHrefEvent(A.target,e.handleHref(A.href,p))},n.toDisplayString(A.title),13,Hd)]))),128))])):m.format==="progress"?(n.openBlock(),n.createElementBlock("div",Vd,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:m.progressColor||"#1890ff",height:m.progressWidth||"18px",width:`${e.handleProgressText(E,m.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(E)<100?m.progressTextColor||"#333":m.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(E,m.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[m.format==="contrast"?(n.openBlock(),n.createElementBlock("span",jd,n.toDisplayString(((b=m==null?void 0:m.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(m.format)]),style:n.normalizeStyle(e.getChgStyle({...m,text:E}))},[m.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...m,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Ud)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(m.format!=null?e.formatFn(E,m):E),1)],6),m.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Gd,n.toDisplayString(((x=m==null?void 0:m.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(h,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(m,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:m.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(m.format)]),style:n.normalizeStyle({...e.getChgStyle({...m,text:m.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[m.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...m,text:m.total})),src:e.getChgBoxImgSrc(m.total)},null,12,Wd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(m.total,m)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",$d,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=m=>e.pageSize=m)},null,512),[[n.vModelText,e.pageSize]]),Zd])],8,["to"])):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Rd)}const b0=me(he(Ea,[["render",Yd],["__scopeId","data-v-d2058fbc"]])),Da={...Ce,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"},Ia=pe(Da),v0=["click"];$e.use([kt.CanvasRenderer,ct.MapChart,ct.ScatterChart,ye.VisualMapComponent,ye.TooltipComponent,ye.GraphicComponent]);const Kd=n.defineComponent({name:"EcanMap",components:{Echarts:ht},props:{...Ia},setup(e){const o=qe(e),t=qe({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=ve(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>St(e.geoBackgroundImage)),c=n.computed(()=>St(e.backgroundImage)),u=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=n.computed(()=>{const w=e.symbolImage;return e.symbolImage?"image://"+St(w):"circle"}),f=w=>{let I=e.tooltipFormatter;const N=I.match(/\{(.+?)\}/g);if(N==null||N.length===0)return I;for(let O=0;O<N.length;O++){const M=N[O];let q=M.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,G=q.match(j);for(let F=0;F<G.length;F++){const P=G[F],_=w[P];_!=null&&(q=q.replace(P,_))}I=I.replace(M,q)}return I.split(`
|
|
118
|
+
`)},g=n.ref(!1),y=n.ref("");let m=new AbortController;const v=(w,I)=>{const N=m.signal;g.value=!0,r.value=w,t({name:w,signal:N}).then(O=>{var M,q;if(O){const j=((q=(M=O==null?void 0:O.data)==null?void 0:M.data)==null?void 0:q.rows)||[];let G="";for(const F of j){const P=f(F)||[];if(P!=null&&P.length)for(const _ of P)G+=`<div style="word-break: break-all;white-space: normal;">${_}</div>`}G=`<div style="max-width:200px;">${G}</div>`,i.value=G,I(n.unref(y),G)}else N.aborted?i.value="Loading":i.value=w,I(n.unref(y),i.value);g.value=!1})},E=n.computed(()=>{const w=e.geoCenter;let I;return typeof w=="string"&&w!==""&&(I=w.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:n.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:I,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(N,O,M)=>{y.value=O;const{name:q=""}=N,{requestUrl:j}=e.tooltipRequestData;if(!j)return q;if(n.unref(g))n.unref(r)!==q&&(m.abort(),m=new AbortController);else{if(n.unref(r)===q)return n.unref(i);v(q,M)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.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:n.unref(h),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}]}}),p=n.ref(!1),b=async()=>{var N;p.value=!1;const w=e.mapJson,I=`map-${e.id}`;if(w!=null&&w.path){const O=await lt(((N=window==null?void 0:window.config)==null?void 0:N.uploadPath)+w.path);$e.registerMap(I,(O==null?void 0:O.data)||{})}else $e.registerMap(I,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var w,I;if(e.dataType==="request"){p.value=!1;try{const N=await o(),O=((I=(w=N==null?void 0:N.data)==null?void 0:w.data)==null?void 0:I.rows)||{},M=`map-${e.id}`;if(O!=null&&O.path){const q=await lt(O.path);$e.registerMap(M,(q==null?void 0:q.data)||{})}else $e.registerMap(M,{})}catch(N){console.error(N)}finally{p.value=!0}}},A=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:k,setGlobalModel:B}=n.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,I)=>{}}),R=Te(e)("click",()=>{const w=k(e.id);B(e.id,{...w,RECORD:n.unref(a)})});Oe(e,{refreshData:A});const{setRequest:C}=n.inject(ze,{setRequest:w=>{}});return typeof C=="function"&&C({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&R()},onMouseOver:(w={})=>{w.componentType==="geo"&&w.region?a.value=w.region:a.value=null}}}}),_1="",Qd=["src"];function Jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{class:"ecan-map",style:n.normalizeStyle(e.style)},[e.isLoadedData?(n.openBlock(),n.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"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Qd),[[n.vShow,!1]])],4)}const S0=me(he(Kd,[["render",Jd],["__scopeId","data-v-10f150ac"]])),C0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:t0,EcanBorder:f0,EcanButton:Pi,EcanCheckbox:Hi,EcanComboGraph:i0,EcanCustomGraph:a0,EcanDatePicker:_i,EcanIframe:m0,EcanImage:g0,EcanInput:Ei,EcanLine:Xi,EcanList:Ai,EcanMap:S0,EcanModal:Ct,EcanPageConfig:di,EcanPie:Qi,EcanProportion:Ti,EcanProviderConfig:ui,EcanRadar:s0,EcanRadio:$i,EcanRangePicker:zi,EcanScatter:o0,EcanScrollText:xi,EcanSelect:ji,EcanTable:b0,EcanTabs:u0,EcanText:yi,EcanTimeDisplay:bi,EcanTreeSelect:Gi,barComponentProps:ca,barEvents:e0,barProps:sa,borderComponentProps:ba,borderEvents:c0,borderProps:pa,buttonComponentProps:$o,buttonEvents:Fi,buttonProps:Wo,checkboxComponentProps:Yo,checkboxEvents:qi,checkboxProps:Zo,comboGraphComponentProps:ma,comboGraphEvents:r0,comboGraphProps:ga,customGraphComponentProps:ha,customGraphProps:ua,datePickerComponentProps:Ho,datePickerEvents:Di,datePickerProps:qo,iframeComponentProps:ka,iframeProps:Aa,imageComponentProps:wa,imageEvents:h0,imageProps:Ca,inputComponentProps:Po,inputEvents:Bi,inputProps:Fo,lineComponentProps:la,lineEvents:Ji,lineProps:ia,listComponentProps:No,listEvents:vi,listProps:Lo,mapComponentProps:Ia,mapEvents:v0,mapProps:Da,modalComponentProps:ra,modalEvents:Yi,modalProps:aa,pageConfig:_n,pageConfigComponentProps:On,pieComponentProps:oa,pieEvents:Zi,pieProps:na,proportionComponentProps:zo,proportionEvents:ki,proportionProps:Mo,providerConfig:ko,providerConfigComponentProps:To,radarComponentProps:xa,radarEvents:l0,radarProps:ya,radioComponentProps:ta,radioEvents:Wi,radioProps:ea,rangePickerComponentProps:Uo,rangePickerEvents:Oi,rangePickerProps:jo,scatterComponentProps:da,scatterEvents:n0,scatterProps:fa,selectComponentProps:Qo,selectEvents:Vi,selectProps:Ko,tableComponentProps:Ba,tableEvents:y0,tableProps:Ta,tabsComponentProps:Sa,tabsEvents:d0,tabsProps:va,textComponentProps:Eo,textEvents:hi,textProps:Bo,timeDisplayComponentProps:Oo,timeDisplayEvents:pi,timeDisplayProps:_o,treeSelectComponentProps:Xo,treeSelectEvents:Ui,treeSelectProps:Jo},Symbol.toStringTag,{value:"Module"})),Xd={install:e=>{Object.keys(C0).forEach(o=>{const t=C0[o];t.install&&e.use(t)})}};H.EcanBar=t0,H.EcanBorder=f0,H.EcanButton=Pi,H.EcanCheckbox=Hi,H.EcanComboGraph=i0,H.EcanCustomGraph=a0,H.EcanDatePicker=_i,H.EcanIframe=m0,H.EcanImage=g0,H.EcanInput=Ei,H.EcanLine=Xi,H.EcanList=Ai,H.EcanMap=S0,H.EcanModal=Ct,H.EcanPageConfig=di,H.EcanPie=Qi,H.EcanProportion=Ti,H.EcanProviderConfig=ui,H.EcanRadar=s0,H.EcanRadio=$i,H.EcanRangePicker=zi,H.EcanScatter=o0,H.EcanScrollText=xi,H.EcanSelect=ji,H.EcanTable=b0,H.EcanTabs=u0,H.EcanText=yi,H.EcanTimeDisplay=bi,H.EcanTreeSelect=Gi,H.barComponentProps=ca,H.barEvents=e0,H.barProps=sa,H.borderComponentProps=ba,H.borderEvents=c0,H.borderProps=pa,H.buttonComponentProps=$o,H.buttonEvents=Fi,H.buttonProps=Wo,H.checkboxComponentProps=Yo,H.checkboxEvents=qi,H.checkboxProps=Zo,H.comboGraphComponentProps=ma,H.comboGraphEvents=r0,H.comboGraphProps=ga,H.compatibleMobileList=Ki,H.customGraphComponentProps=ha,H.customGraphProps=ua,H.datePickerComponentProps=Ho,H.datePickerEvents=Di,H.datePickerProps=qo,H.default=Xd,H.iframeComponentProps=ka,H.iframeProps=Aa,H.imageComponentProps=wa,H.imageEvents=h0,H.imageProps=Ca,H.inputComponentProps=Po,H.inputEvents=Bi,H.inputProps=Fo,H.lineComponentProps=la,H.lineEvents=Ji,H.lineProps=ia,H.listComponentProps=No,H.listEvents=vi,H.listProps=Lo,H.mapComponentProps=Ia,H.mapEvents=v0,H.mapProps=Da,H.modalComponentProps=ra,H.modalEvents=Yi,H.modalProps=aa,H.pageConfig=_n,H.pageConfigComponentProps=On,H.pieComponentProps=oa,H.pieEvents=Zi,H.pieProps=na,H.proportionComponentProps=zo,H.proportionEvents=ki,H.proportionProps=Mo,H.providerConfig=ko,H.providerConfigComponentProps=To,H.radarComponentProps=xa,H.radarEvents=l0,H.radarProps=ya,H.radioComponentProps=ta,H.radioEvents=Wi,H.radioProps=ea,H.rangePickerComponentProps=Uo,H.rangePickerEvents=Oi,H.rangePickerProps=jo,H.scatterComponentProps=da,H.scatterEvents=n0,H.scatterProps=fa,H.selectComponentProps=Qo,H.selectEvents=Vi,H.selectProps=Ko,H.tableComponentProps=Ba,H.tableEvents=y0,H.tableProps=Ta,H.tabsComponentProps=Sa,H.tabsEvents=d0,H.tabsProps=va,H.textComponentProps=Eo,H.textEvents=hi,H.textProps=Bo,H.timeDisplayComponentProps=Oo,H.timeDisplayEvents=pi,H.timeDisplayProps=_o,H.treeSelectComponentProps=Xo,H.treeSelectEvents=Ui,H.treeSelectProps=Jo,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
119
|
//# sourceMappingURL=index.umd.js.map
|