@ecan-bi/datav 1.3.10 → 1.3.11
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 +871 -862
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +20 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/control/range-picker/RangePicker.vue.d.ts +8 -0
- package/types/control/range-picker/index.d.ts +8 -0
- package/types/control/range-picker/props.d.ts +6 -1
- package/types/utils/props.d.ts +4 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(j,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):(j=typeof globalThis<"u"?globalThis:j||self,n(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,n,Je,Fa,ce,su,cu,He,ve,Fl,Ml,du,fu,uu,Ma,hu,gu,mu,yu,Et,ht,be,xu,zl,pu,bu,Zt,Pl){var Rl,Il,_l,Ol;"use strict";function ql(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 Hl=ql(zl),Vl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function jl(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 Vl.forEach(i=>{r[i]=t(i)}),r}return a()}function Wl(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Je.throttle(()=>{i.resize()},100),Fa.addListener(r,a)),d(()=>{a&&r&&Fa.removeListener(r,a)})})}const Ul={autoresize:Boolean},Gl="ecLoadingOptions";function $l(e,o,t){const a=n.inject(Gl,{}),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 Zl={loading:Boolean,loadingOptions:Object},vu="",Kl=/^on[^a-z]/,Yl=e=>Kl.test(e);function Ql(e){const o={};for(const t in e)Yl(t)||(o[t]=e[t]);return o}const Jl="x-vue-echarts",Xl="ecTheme",e0="ecInitOptions",t0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ul,...Zl},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(Xl,null),l=n.inject(e0,null),d=n.inject(t0,null),{autoresize:c,manualUpdate:g,loading:h,loadingOptions:y}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),m=n.computed(()=>e.theme||n.unref(s)||{}),f=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(d)||{}),E=n.computed(()=>Ql(o));function p(I){if(r.value||!a.value)return;const _=r.value=Je.init(a.value,m.value,f.value);e.group&&(_.group=e.group);let L=t;L||(L={},Object.keys(o).filter(w=>w.indexOf("on")===0&&w.length>2).forEach(w=>{const C=w.charAt(2).toLowerCase()+w.slice(3);L[C]=o[w]})),Object.keys(L).forEach(w=>{const C=L[w];C&&(w.indexOf("zr:")===0?_.getZr().on(w.slice(3).toLowerCase(),C):_.on(w.toLowerCase(),C))});function A(){if(_&&!_.isDisposed())try{_.resize()}catch(w){if(w.message==="Cannot read property 'get' of undefined")return;throw w}}function B(){_.setOption(I||u.value,v.value)}c.value?n.nextTick(()=>{A(),B()}):B()}function b(I,_){e.manualUpdate&&(i.value=I),r.value?r.value.setOption(I,_||{}):p(I)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;n.watch(g,I=>{typeof k=="function"&&(k(),k=null),I||(k=n.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([m,f],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=jl(r,p);return $l(r,h,y),Wl(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Jl,e)}});function nt(e,o){n0(e)&&(e="100%");var t=o0(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 n0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function a0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function wn(e){return e.length===1?"0"+e:String(e)}function r0(e,o,t){return{r:nt(e,255)*255,g:nt(o,255)*255,b:nt(t,255)*255}}function An(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 i0(e,o,t){var a,r,i;if(e=nt(e,360),o=nt(o,100),t=nt(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=An(l,s,e+1/3),r=An(l,s,e),i=An(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function l0(e,o,t){e=nt(e,255),o=nt(o,255),t=nt(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 s0(e,o,t){e=nt(e,360)*6,o=nt(o,100),t=nt(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],g=[l,t,t,s,i,i][d],h=[i,i,l,t,t,s][d];return{r:c*255,g:g*255,b:h*255}}function c0(e,o,t,a){var r=[wn(Math.round(e).toString(16)),wn(Math.round(o).toString(16)),wn(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 za(e){return Xe(e)/255}function Xe(e){return parseInt(e,16)}var Pa={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 Kt(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=u0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=r0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=nn(e.s),r=nn(e.v),o=s0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=nn(e.s),i=nn(e.l),o=i0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=a0(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 d0="[-\\+]?\\d+%?",f0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(f0,")|(?:").concat(d0,")"),kn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),lt={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Tn),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Tn),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Tn),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 u0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Pa[e])e=Pa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=lt.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=lt.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=lt.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=lt.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=lt.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=lt.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=lt.hex8.exec(e),t?{r:Xe(t[1]),g:Xe(t[2]),b:Xe(t[3]),a:za(t[4]),format:o?"name":"hex8"}:(t=lt.hex6.exec(e),t?{r:Xe(t[1]),g:Xe(t[2]),b:Xe(t[3]),format:o?"name":"hex"}:(t=lt.hex4.exec(e),t?{r:Xe(t[1]+t[1]),g:Xe(t[2]+t[2]),b:Xe(t[3]+t[3]),a:za(t[4]+t[4]),format:o?"name":"hex8"}:(t=lt.hex3.exec(e),t?{r:Xe(t[1]+t[1]),g:Xe(t[2]+t[2]),b:Xe(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!lt.CSS_UNIT.exec(String(e))}var on=2,qa=.16,h0=.05,g0=.05,m0=.15,Ha=5,Va=4,y0=[{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 ja(e){var o=e.r,t=e.g,a=e.b,r=l0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function an(e){var o=e.r,t=e.g,a=e.b;return"#".concat(c0(o,t,a,!1))}function x0(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 Wa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-on*o:Math.round(e.h)+on*o:a=t?Math.round(e.h)+on*o:Math.round(e.h)-on*o,a<0?a+=360:a>=360&&(a-=360),a}function Ua(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-qa*o:o===Va?a=e.s+qa:a=e.s+h0*o,a>1&&(a=1),t&&o===Ha&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ga(e,o,t){var a;return t?a=e.v+g0*o:a=e.v-m0*o,a>1&&(a=1),Number(a.toFixed(2))}function Bn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Kt(e),r=Ha;r>0;r-=1){var i=ja(a),s=an(Kt({h:Wa(i,r,!0),s:Ua(i,r,!0),v:Ga(i,r,!0)}));t.push(s)}t.push(an(a));for(var l=1;l<=Va;l+=1){var d=ja(a),c=an(Kt({h:Wa(d,l),s:Ua(d,l),v:Ga(d,l)}));t.push(c)}return o.theme==="dark"?y0.map(function(g){var h=g.index,y=g.opacity,u=an(x0(Kt(o.backgroundColor||"#141414"),Kt(t[h]),y*100));return u}):t}var En={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"},Dn={},Rn={};Object.keys(En).forEach(function(e){Dn[e]=Bn(En[e]),Dn[e].primary=Dn[e][5],Rn[e]=Bn(En[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var $a=[],Yt=[],p0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function b0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function v0(e,o){if(o=o||{},e===void 0)throw new Error(p0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=$a.indexOf(a);r===-1&&(r=$a.push(a)-1,Yt[r]={});var i;return Yt[r]!==void 0&&Yt[r][t]!==void 0?i=Yt[r][t]:(i=Yt[r][t]=b0(),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 Za(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){S0(e,r,t[r])})}return e}function S0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function C0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function w0(e,o){C0(e,"[@ant-design/icons-vue] ".concat(o))}function Ka(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function In(e,o,t){return t?n.h(e.tag,Za({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Za({key:o},e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ya(e){return Bn(e)[0]}function Qa(e){return e?Array.isArray(e)?e:[e]:[]}var A0=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.11 */
|
|
2
|
+
(function(j,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):(j=typeof globalThis<"u"?globalThis:j||self,n(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,n,Ye,Fa,ce,su,cu,Ve,be,Fl,Ml,du,fu,uu,Ma,hu,gu,mu,yu,Et,ht,ve,xu,zl,pu,bu,Zt,Pl){var Rl,Il,_l,Ol;"use strict";function ql(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 Hl=ql(zl),Vl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function jl(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 Vl.forEach(i=>{r[i]=t(i)}),r}return a()}function Wl(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Ye.throttle(()=>{i.resize()},100),Fa.addListener(r,a)),d(()=>{a&&r&&Fa.removeListener(r,a)})})}const Ul={autoresize:Boolean},Gl="ecLoadingOptions";function $l(e,o,t){const a=n.inject(Gl,{}),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 Zl={loading:Boolean,loadingOptions:Object},vu="",Kl=/^on[^a-z]/,Yl=e=>Kl.test(e);function Ql(e){const o={};for(const t in e)Yl(t)||(o[t]=e[t]);return o}const Jl="x-vue-echarts",Xl="ecTheme",e0="ecInitOptions",t0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ul,...Zl},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(Xl,null),l=n.inject(e0,null),d=n.inject(t0,null),{autoresize:c,manualUpdate:g,loading:h,loadingOptions:y}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),m=n.computed(()=>e.theme||n.unref(s)||{}),f=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(d)||{}),E=n.computed(()=>Ql(o));function p(R){if(r.value||!a.value)return;const _=r.value=Ye.init(a.value,m.value,f.value);e.group&&(_.group=e.group);let L=t;L||(L={},Object.keys(o).filter(w=>w.indexOf("on")===0&&w.length>2).forEach(w=>{const C=w.charAt(2).toLowerCase()+w.slice(3);L[C]=o[w]})),Object.keys(L).forEach(w=>{const C=L[w];C&&(w.indexOf("zr:")===0?_.getZr().on(w.slice(3).toLowerCase(),C):_.on(w.toLowerCase(),C))});function A(){if(_&&!_.isDisposed())try{_.resize()}catch(w){if(w.message==="Cannot read property 'get' of undefined")return;throw w}}function B(){_.setOption(R||u.value,v.value)}c.value?n.nextTick(()=>{A(),B()}):B()}function b(R,_){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,_||{}):p(R)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;n.watch(g,R=>{typeof k=="function"&&(k(),k=null),R||(k=n.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([m,f],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=jl(r,p);return $l(r,h,y),Wl(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Jl,e)}});function ot(e,o){n0(e)&&(e="100%");var t=o0(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 n0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function a0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function wn(e){return e.length===1?"0"+e:String(e)}function r0(e,o,t){return{r:ot(e,255)*255,g:ot(o,255)*255,b:ot(t,255)*255}}function An(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 i0(e,o,t){var a,r,i;if(e=ot(e,360),o=ot(o,100),t=ot(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=An(l,s,e+1/3),r=An(l,s,e),i=An(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function l0(e,o,t){e=ot(e,255),o=ot(o,255),t=ot(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 s0(e,o,t){e=ot(e,360)*6,o=ot(o,100),t=ot(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],g=[l,t,t,s,i,i][d],h=[i,i,l,t,t,s][d];return{r:c*255,g:g*255,b:h*255}}function c0(e,o,t,a){var r=[wn(Math.round(e).toString(16)),wn(Math.round(o).toString(16)),wn(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 za(e){return Qe(e)/255}function Qe(e){return parseInt(e,16)}var Pa={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 Kt(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=u0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=r0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=nn(e.s),r=nn(e.v),o=s0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=nn(e.s),i=nn(e.l),o=i0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=a0(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 d0="[-\\+]?\\d+%?",f0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(f0,")|(?:").concat(d0,")"),kn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Tn),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Tn),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Tn),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 u0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Pa[e])e=Pa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=st.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=st.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=st.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=st.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=st.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=st.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=st.hex8.exec(e),t?{r:Qe(t[1]),g:Qe(t[2]),b:Qe(t[3]),a:za(t[4]),format:o?"name":"hex8"}:(t=st.hex6.exec(e),t?{r:Qe(t[1]),g:Qe(t[2]),b:Qe(t[3]),format:o?"name":"hex"}:(t=st.hex4.exec(e),t?{r:Qe(t[1]+t[1]),g:Qe(t[2]+t[2]),b:Qe(t[3]+t[3]),a:za(t[4]+t[4]),format:o?"name":"hex8"}:(t=st.hex3.exec(e),t?{r:Qe(t[1]+t[1]),g:Qe(t[2]+t[2]),b:Qe(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var on=2,qa=.16,h0=.05,g0=.05,m0=.15,Ha=5,Va=4,y0=[{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 ja(e){var o=e.r,t=e.g,a=e.b,r=l0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function an(e){var o=e.r,t=e.g,a=e.b;return"#".concat(c0(o,t,a,!1))}function x0(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 Wa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-on*o:Math.round(e.h)+on*o:a=t?Math.round(e.h)+on*o:Math.round(e.h)-on*o,a<0?a+=360:a>=360&&(a-=360),a}function Ua(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-qa*o:o===Va?a=e.s+qa:a=e.s+h0*o,a>1&&(a=1),t&&o===Ha&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ga(e,o,t){var a;return t?a=e.v+g0*o:a=e.v-m0*o,a>1&&(a=1),Number(a.toFixed(2))}function Bn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Kt(e),r=Ha;r>0;r-=1){var i=ja(a),s=an(Kt({h:Wa(i,r,!0),s:Ua(i,r,!0),v:Ga(i,r,!0)}));t.push(s)}t.push(an(a));for(var l=1;l<=Va;l+=1){var d=ja(a),c=an(Kt({h:Wa(d,l),s:Ua(d,l),v:Ga(d,l)}));t.push(c)}return o.theme==="dark"?y0.map(function(g){var h=g.index,y=g.opacity,u=an(x0(Kt(o.backgroundColor||"#141414"),Kt(t[h]),y*100));return u}):t}var En={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"},Dn={},Rn={};Object.keys(En).forEach(function(e){Dn[e]=Bn(En[e]),Dn[e].primary=Dn[e][5],Rn[e]=Bn(En[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var $a=[],Yt=[],p0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function b0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function v0(e,o){if(o=o||{},e===void 0)throw new Error(p0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=$a.indexOf(a);r===-1&&(r=$a.push(a)-1,Yt[r]={});var i;return Yt[r]!==void 0&&Yt[r][t]!==void 0?i=Yt[r][t]:(i=Yt[r][t]=b0(),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 Za(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){S0(e,r,t[r])})}return e}function S0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function C0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function w0(e,o){C0(e,"[@ant-design/icons-vue] ".concat(o))}function Ka(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function In(e,o,t){return t?n.h(e.tag,Za({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Za({key:o},e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ya(e){return Bn(e)[0]}function Qa(e){return e?Array.isArray(e)?e:[e]:[]}var A0=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
`,Ja=!1,k0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A0;n.nextTick(function(){Ja||(typeof window<"u"&&window.document&&window.document.documentElement&&v0(o,{prepend:!0}),Ja=!0)})},T0=["icon","primaryColor","secondaryColor"];function B0(e,o){if(e==null)return{};var t=E0(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 E0(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 rn(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){D0(e,r,t[r])})}return e}function D0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Qt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function R0(e){var o=e.primaryColor,t=e.secondaryColor;Qt.primaryColor=o,Qt.secondaryColor=t||Ya(o),Qt.calculated=!!t}function I0(){return rn({},Qt)}var Ot=function(o,t){var a=rn({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=B0(a,T0),d=Qt;if(i&&(d={primaryColor:i,secondaryColor:s||Ya(i)}),k0(),w0(Ka(r),"icon should be icon definiton, but got ".concat(r)),!Ka(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=rn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),In(c.icon,"svg-".concat(c.name),rn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ot.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ot.inheritAttrs=!1,Ot.displayName="IconBase",Ot.getTwoToneColors=I0,Ot.setTwoToneColors=R0;const _n=Ot;function _0(e,o){return F0(e)||N0(e,o)||L0(e,o)||O0()}function O0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L0(e,o){if(e){if(typeof e=="string")return Xa(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 Xa(e,o)}}function Xa(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 N0(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 F0(e){if(Array.isArray(e))return e}function er(e){var o=Qa(e),t=_0(o,2),a=t[0],r=t[1];return _n.setTwoToneColors({primaryColor:a,secondaryColor:r})}function M0(){var e=_n.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function P0(e,o){return j0(e)||V0(e,o)||H0(e,o)||q0()}function q0(){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 H0(e,o){if(e){if(typeof e=="string")return tr(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 tr(e,o)}}function tr(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 V0(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 j0(e){if(Array.isArray(e))return e}function nr(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){On(e,r,t[r])})}return e}function On(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function W0(e,o){if(e==null)return{};var t=U0(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 U0(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}er("#1890ff");var Lt=function(o,t){var a,r=nr({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,g=r.twoToneColor,h=r.onClick,y=W0(r,z0),u=(a={anticon:!0},On(a,"anticon-".concat(s.name),!!s.name),On(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",f=c;f===void 0&&h&&(f=-1,y.tabindex=f);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=Qa(g),p=P0(E,2),b=p[0],x=p[1];return n.createVNode("span",nr({role:"img","aria-label":s.name},y,{onClick:h,class:u}),[n.createVNode(_n,{class:m,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=M0,Lt.setTwoToneColor=er;const or=Lt;var G0={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 $0=G0;function ar(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){Z0(e,r,t[r])})}return e}function Z0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Ln=function(o,t){var a=ar({},o,t.attrs);return n.createVNode(or,ar({},a,{icon:$0}),null)};Ln.displayName="CloseOutlined",Ln.inheritAttrs=!1;const K0=Ln;var Y0={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 Q0=Y0;function rr(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){J0(e,r,t[r])})}return e}function J0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Nn=function(o,t){var a=rr({},o,t.attrs);return n.createVNode(or,rr({},a,{icon:Q0}),null)};Nn.displayName="LoadingOutlined",Nn.inheritAttrs=!1;const X0=Nn,es=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ce.Spin},setup(){return{indicator:n.h(X0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Su="",ye=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},ts={class:"spin-wrapper"};function ns(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",ts,[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 Nt=ye(es,[["render",ns]]),os=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ce.Skeleton}});function as(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 ln=ye(os,[["render",as]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(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},Ae={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"},Se=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},Fn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(Fn),rs=["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"],Ce=(e,o=[])=>{const t=He.without(rs,...o);return n.computed(()=>He.pick(e,t))},zn="EVENT_BUS",Me="GLOBAL_CONFIG",Be="GLOBAL_MODEL",ze="REQUEST_MODEL",ir="GLOBAL_TOKEN",Jt="REFRESH_PAGE",lr="MODAL_MODEL",bt="LOADED_DATA",Ue=18,sr="ygt",cr=((Rl=window==null?void 0:window.config)==null?void 0:Rl.indicatorURL)||"";(Il=window==null?void 0:window.config)!=null&&Il.uploadPath;const dr=((_l=window==null?void 0:window.config)==null?void 0:_l.routerBaseURL)||"./",is=((Ol=window==null?void 0:window.config)==null?void 0:Ol.erdURL)||"",Le=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(zn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Ee=e=>{const o=e.events,t=e.id,a=n.inject(zn,{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)}})}},Ft=(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 g=e[c],h=g[t]||"",y=g[a]||"",u=g[r]||"";if(i.has(u)){const m=i.get(u);m.push({name:h,value:y,...g}),i.set(u,m)}else i.set(u,[{name:h,value:y,...g}])}const l=[],d=[];for(const[c,g]of i)if(d.push({name:c,data:g}),g!=null&&g.length)if(l.length)for(const h of g)l.includes(h.name)||l.push(h.name);else l.push(...g.map(h=>h.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ls(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 ur={exports:{}};function ss(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 Pn={exports:{}};const cs=ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hr;function me(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a()})(de,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 de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof ss=="function")try{i=cs}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={},g=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=g.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,k=this.sigBytes,T=p.sigBytes;if(this.clamp(),k%4)for(var I=0;I<T;I++){var _=x[I>>>2]>>>24-I%4*8&255;b[k+I>>>2]|=_<<24-(k+I)%4*8}else for(var L=0;L<T;L+=4)b[k+L>>>2]=x[L>>>2];return this.sigBytes+=T,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=g.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)}}),y=d.enc={},u=y.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],T=0;T<x;T++){var I=b[T>>>2]>>>24-T%4*8&255;k.push((I>>>4).toString(16)),k.push((I&15).toString(16))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k+=2)x[k>>>3]|=parseInt(p.substr(k,2),16)<<24-k%8*4;return new h.init(x,b/2)}},m=y.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],T=0;T<x;T++){var I=b[T>>>2]>>>24-T%4*8&255;k.push(String.fromCharCode(I))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k++)x[k>>>2]|=(p.charCodeAt(k)&255)<<24-k%4*8;return new h.init(x,b)}},f=y.Utf8={stringify:function(p){try{return decodeURIComponent(escape(m.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return m.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=f.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,k=x.words,T=x.sigBytes,I=this.blockSize,_=I*4,L=T/_;p?L=a.ceil(L):L=a.max((L|0)-this._minBufferSize,0);var A=L*I,B=a.min(A*4,T);if(A){for(var w=0;w<A;w+=I)this._doProcessBlock(k,w);b=k.splice(0,A),x.sigBytes-=B}return new h.init(b,B)},clone:function(){var p=g.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:g.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})}(Pn)),Pn.exports}var qn={exports:{}},gr;function sn(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g){this.high=c,this.low=g}}),d.WordArray=s.extend({init:function(c,g){c=this.words=c||[],g!=a?this.sigBytes=g:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,g=c.length,h=[],y=0;y<g;y++){var u=c[y];h.push(u.high),h.push(u.low)}return l.create(h,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),g=c.words=this.words.slice(0),h=g.length,y=0;y<h;y++)g[y]=g[y].clone();return c}})}(),t})}(qn)),qn.exports}var Hn={exports:{}},mr;function ds(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=[],h=0;h<c;h++)g[h>>>2]|=d[h]<<24-h%4*8;s.call(this,g,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Hn)),Hn.exports}var Vn={exports:{}},yr;function fs(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=c[y>>>2]>>>16-y%4*8&65535;h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=d.charCodeAt(h)<<16-h%2*16;return i.create(g,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=l(c[y>>>2]>>>16-y%4*8&65535);h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=l(d.charCodeAt(h)<<16-h%2*16);return i.create(g,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Vn)),Vn.exports}var jn={exports:{}},xr;function Mt(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=d.sigBytes,h=this._map;d.clamp();for(var y=[],u=0;u<g;u+=3)for(var m=c[u>>>2]>>>24-u%4*8&255,f=c[u+1>>>2]>>>24-(u+1)%4*8&255,v=c[u+2>>>2]>>>24-(u+2)%4*8&255,E=m<<16|f<<8|v,p=0;p<4&&u+p*.75<g;p++)y.push(h.charAt(E>>>6*(3-p)&63));var b=h.charAt(64);if(b)for(;y.length%4;)y.push(b);return y.join("")},parse:function(d){var c=d.length,g=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var y=0;y<g.length;y++)h[g.charCodeAt(y)]=y}var u=g.charAt(64);if(u){var m=d.indexOf(u);m!==-1&&(c=m)}return l(d,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,v=m|f;h[y>>>2]|=v<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64})}(jn)),jn.exports}var Wn={exports:{}},pr;function us(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var g=d.words,h=d.sigBytes,y=c?this._safe_map:this._map;d.clamp();for(var u=[],m=0;m<h;m+=3)for(var f=g[m>>>2]>>>24-m%4*8&255,v=g[m+1>>>2]>>>24-(m+1)%4*8&255,E=g[m+2>>>2]>>>24-(m+2)%4*8&255,p=f<<16|v<<8|E,b=0;b<4&&m+b*.75<h;b++)u.push(y.charAt(p>>>6*(3-b)&63));var x=y.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(d,c=!0){var g=d.length,h=c?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<h.length;u++)y[h.charCodeAt(u)]=u}var m=h.charAt(64);if(m){var f=d.indexOf(m);f!==-1&&(g=f)}return l(d,g,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,v=m|f;h[y>>>2]|=v<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64url})}(Wn)),Wn.exports}var Un={exports:{}},br;function zt(){return br||(br=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var f=0;f<64;f++)c[f]=a.abs(a.sin(f+1))*4294967296|0})();var g=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,v){for(var E=0;E<16;E++){var p=v+E,b=f[p];f[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,k=f[v+0],T=f[v+1],I=f[v+2],_=f[v+3],L=f[v+4],A=f[v+5],B=f[v+6],w=f[v+7],C=f[v+8],R=f[v+9],S=f[v+10],O=f[v+11],F=f[v+12],V=f[v+13],W=f[v+14],U=f[v+15],M=x[0],P=x[1],z=x[2],D=x[3];M=h(M,P,z,D,k,7,c[0]),D=h(D,M,P,z,T,12,c[1]),z=h(z,D,M,P,I,17,c[2]),P=h(P,z,D,M,_,22,c[3]),M=h(M,P,z,D,L,7,c[4]),D=h(D,M,P,z,A,12,c[5]),z=h(z,D,M,P,B,17,c[6]),P=h(P,z,D,M,w,22,c[7]),M=h(M,P,z,D,C,7,c[8]),D=h(D,M,P,z,R,12,c[9]),z=h(z,D,M,P,S,17,c[10]),P=h(P,z,D,M,O,22,c[11]),M=h(M,P,z,D,F,7,c[12]),D=h(D,M,P,z,V,12,c[13]),z=h(z,D,M,P,W,17,c[14]),P=h(P,z,D,M,U,22,c[15]),M=y(M,P,z,D,T,5,c[16]),D=y(D,M,P,z,B,9,c[17]),z=y(z,D,M,P,O,14,c[18]),P=y(P,z,D,M,k,20,c[19]),M=y(M,P,z,D,A,5,c[20]),D=y(D,M,P,z,S,9,c[21]),z=y(z,D,M,P,U,14,c[22]),P=y(P,z,D,M,L,20,c[23]),M=y(M,P,z,D,R,5,c[24]),D=y(D,M,P,z,W,9,c[25]),z=y(z,D,M,P,_,14,c[26]),P=y(P,z,D,M,C,20,c[27]),M=y(M,P,z,D,V,5,c[28]),D=y(D,M,P,z,I,9,c[29]),z=y(z,D,M,P,w,14,c[30]),P=y(P,z,D,M,F,20,c[31]),M=u(M,P,z,D,A,4,c[32]),D=u(D,M,P,z,C,11,c[33]),z=u(z,D,M,P,O,16,c[34]),P=u(P,z,D,M,W,23,c[35]),M=u(M,P,z,D,T,4,c[36]),D=u(D,M,P,z,L,11,c[37]),z=u(z,D,M,P,w,16,c[38]),P=u(P,z,D,M,S,23,c[39]),M=u(M,P,z,D,V,4,c[40]),D=u(D,M,P,z,k,11,c[41]),z=u(z,D,M,P,_,16,c[42]),P=u(P,z,D,M,B,23,c[43]),M=u(M,P,z,D,R,4,c[44]),D=u(D,M,P,z,F,11,c[45]),z=u(z,D,M,P,U,16,c[46]),P=u(P,z,D,M,I,23,c[47]),M=m(M,P,z,D,k,6,c[48]),D=m(D,M,P,z,w,10,c[49]),z=m(z,D,M,P,W,15,c[50]),P=m(P,z,D,M,A,21,c[51]),M=m(M,P,z,D,F,6,c[52]),D=m(D,M,P,z,_,10,c[53]),z=m(z,D,M,P,S,15,c[54]),P=m(P,z,D,M,T,21,c[55]),M=m(M,P,z,D,C,6,c[56]),D=m(D,M,P,z,U,10,c[57]),z=m(z,D,M,P,B,15,c[58]),P=m(P,z,D,M,V,21,c[59]),M=m(M,P,z,D,L,6,c[60]),D=m(D,M,P,z,O,10,c[61]),z=m(z,D,M,P,I,15,c[62]),P=m(P,z,D,M,R,21,c[63]),x[0]=x[0]+M|0,x[1]=x[1]+P|0,x[2]=x[2]+z|0,x[3]=x[3]+D|0},_doFinalize:function(){var f=this._data,v=f.words,E=this._nDataBytes*8,p=f.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,f.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,T=k.words,I=0;I<4;I++){var _=T[I];T[I]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return k},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});function h(f,v,E,p,b,x,k){var T=f+(v&E|~v&p)+b+k;return(T<<x|T>>>32-x)+v}function y(f,v,E,p,b,x,k){var T=f+(v&p|E&~p)+b+k;return(T<<x|T>>>32-x)+v}function u(f,v,E,p,b,x,k){var T=f+(v^E^p)+b+k;return(T<<x|T>>>32-x)+v}function m(f,v,E,p,b,x,k){var T=f+(E^(v|~p))+b+k;return(T<<x|T>>>32-x)+v}r.MD5=l._createHelper(g),r.HmacMD5=l._createHmacHelper(g)}(Math),t.MD5})}(Un)),Un.exports}var Gn={exports:{}},vr;function $n(){return vr||(vr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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(g,h){for(var y=this._hash.words,u=y[0],m=y[1],f=y[2],v=y[3],E=y[4],p=0;p<80;p++){if(p<16)d[p]=g[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=(u<<5|u>>>27)+E+d[p];p<20?x+=(m&f|~m&v)+1518500249:p<40?x+=(m^f^v)+1859775393:p<60?x+=(m&f|m&v|f&v)-1894007588:x+=(m^f^v)-899497514,E=v,v=f,f=m<<30|m>>>2,m=u,u=x}y[0]=y[0]+u|0,y[1]=y[1]+m|0,y[2]=y[2]+f|0,y[3]=y[3]+v|0,y[4]=y[4]+E|0},_doFinalize:function(){var g=this._data,h=g.words,y=this._nDataBytes*8,u=g.sigBytes*8;return h[u>>>5]|=128<<24-u%32,h[(u+64>>>9<<4)+14]=Math.floor(y/4294967296),h[(u+64>>>9<<4)+15]=y,g.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Gn)),Gn.exports}var Zn={exports:{}},Sr;function Cr(){return Sr||(Sr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],g=[];(function(){function u(E){for(var p=a.sqrt(E),b=2;b<=p;b++)if(!(E%b))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var f=2,v=0;v<64;)u(f)&&(v<8&&(c[v]=m(a.pow(f,1/2))),g[v]=m(a.pow(f,1/3)),v++),f++})();var h=[],y=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,m){for(var f=this._hash.words,v=f[0],E=f[1],p=f[2],b=f[3],x=f[4],k=f[5],T=f[6],I=f[7],_=0;_<64;_++){if(_<16)h[_]=u[m+_]|0;else{var L=h[_-15],A=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,B=h[_-2],w=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;h[_]=A+h[_-7]+w+h[_-16]}var C=x&k^~x&T,R=v&E^v&p^E&p,S=(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),F=I+O+C+g[_]+h[_],V=S+R;I=T,T=k,k=x,x=b+F|0,b=p,p=E,E=v,v=F+V|0}f[0]=f[0]+v|0,f[1]=f[1]+E|0,f[2]=f[2]+p|0,f[3]=f[3]+b|0,f[4]=f[4]+x|0,f[5]=f[5]+k|0,f[6]=f[6]+T|0,f[7]=f[7]+I|0},_doFinalize:function(){var u=this._data,m=u.words,f=this._nDataBytes*8,v=u.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(f/4294967296),m[(v+64>>>9<<4)+15]=f,u.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(y),r.HmacSHA256=l._createHmacHelper(y)}(Math),t.SHA256})}(Zn)),Zn.exports}var Kn={exports:{}},wr;function hs(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Cr())})(de,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})}(Kn)),Kn.exports}var Yn={exports:{}},Ar;function kr(){return Ar||(Ar=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,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 g(){return l.create.apply(l,arguments)}var h=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],y=[];(function(){for(var m=0;m<80;m++)y[m]=g()})();var u=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(m,f){for(var v=this._hash.words,E=v[0],p=v[1],b=v[2],x=v[3],k=v[4],T=v[5],I=v[6],_=v[7],L=E.high,A=E.low,B=p.high,w=p.low,C=b.high,R=b.low,S=x.high,O=x.low,F=k.high,V=k.low,W=T.high,U=T.low,M=I.high,P=I.low,z=_.high,D=_.low,N=L,q=A,K=B,G=w,ae=C,Q=R,le=S,re=O,Y=F,X=V,ne=W,xe=U,ke=M,Te=P,$e=z,Fe=D,Ie=0;Ie<80;Ie++){var we,qe,Ne=y[Ie];if(Ie<16)qe=Ne.high=m[f+Ie*2]|0,we=Ne.low=m[f+Ie*2+1]|0;else{var Ze=y[Ie-15],je=Ze.high,We=Ze.low,ct=(je>>>1|We<<31)^(je>>>8|We<<24)^je>>>7,Ke=(We>>>1|je<<31)^(We>>>8|je<<24)^(We>>>7|je<<25),dt=y[Ie-2],H=dt.high,Z=dt.low,J=(H>>>19|Z<<13)^(H<<3|Z>>>29)^H>>>6,oe=(Z>>>19|H<<13)^(Z<<3|H>>>29)^(Z>>>6|H<<26),ie=y[Ie-7],te=ie.high,ee=ie.low,fe=y[Ie-16],he=fe.high,ge=fe.low;we=Ke+ee,qe=ct+te+(we>>>0<Ke>>>0?1:0),we=we+oe,qe=qe+J+(we>>>0<oe>>>0?1:0),we=we+ge,qe=qe+he+(we>>>0<ge>>>0?1:0),Ne.high=qe,Ne.low=we}var Oe=Y&ne^~Y&ke,Ye=X&xe^~X&Te,yt=N&K^N&ae^K&ae,It=q&G^q&Q^G&Q,Sn=(N>>>28|q<<4)^(N<<30|q>>>2)^(N<<25|q>>>7),Qe=(q>>>28|N<<4)^(q<<30|N>>>2)^(q<<25|N>>>7),_t=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(Y<<23|X>>>9),$t=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(X<<23|Y>>>9),Cn=h[Ie],iu=Cn.high,Ll=Cn.low,tt=Fe+$t,Bt=$e+_t+(tt>>>0<Fe>>>0?1:0),tt=tt+Ye,Bt=Bt+Oe+(tt>>>0<Ye>>>0?1:0),tt=tt+Ll,Bt=Bt+iu+(tt>>>0<Ll>>>0?1:0),tt=tt+we,Bt=Bt+qe+(tt>>>0<we>>>0?1:0),Nl=Qe+It,lu=Sn+yt+(Nl>>>0<Qe>>>0?1:0);$e=ke,Fe=Te,ke=ne,Te=xe,ne=Y,xe=X,X=re+tt|0,Y=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=K,Q=G,K=N,G=q,q=tt+Nl|0,N=Bt+lu+(q>>>0<tt>>>0?1:0)|0}A=E.low=A+q,E.high=L+N+(A>>>0<q>>>0?1:0),w=p.low=w+G,p.high=B+K+(w>>>0<G>>>0?1:0),R=b.low=R+Q,b.high=C+ae+(R>>>0<Q>>>0?1:0),O=x.low=O+re,x.high=S+le+(O>>>0<re>>>0?1:0),V=k.low=V+X,k.high=F+Y+(V>>>0<X>>>0?1:0),U=T.low=U+xe,T.high=W+ne+(U>>>0<xe>>>0?1:0),P=I.low=P+Te,I.high=M+ke+(P>>>0<Te>>>0?1:0),D=_.low=D+Fe,_.high=z+$e+(D>>>0<Fe>>>0?1:0)},_doFinalize:function(){var m=this._data,f=m.words,v=this._nDataBytes*8,E=m.sigBytes*8;f[E>>>5]|=128<<24-E%32,f[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),f[(E+128>>>10<<5)+31]=v,m.sigBytes=f.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(Yn)),Yn.exports}var Qn={exports:{}},Tr;function gs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn(),kr())})(de,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 g=d._doFinalize.call(this);return g.sigBytes-=16,g}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}(Qn)),Qn.exports}var Jn={exports:{}},Br;function ms(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,g=r.algo,h=[],y=[],u=[];(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++)y[v+5*E]=E+(2*v+3*E)%5*5;for(var k=1,T=0;T<24;T++){for(var I=0,_=0,L=0;L<7;L++){if(k&1){var A=(1<<L)-1;A<32?_^=1<<A:I^=1<<A-32}k&128?k=k<<1^113:k<<=1}u[T]=c.create(I,_)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var f=g.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 k=v[E+2*x],T=v[E+2*x+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var I=p[x];I.high^=T,I.low^=k}for(var _=0;_<24;_++){for(var L=0;L<5;L++){for(var A=0,B=0,w=0;w<5;w++){var I=p[L+5*w];A^=I.high,B^=I.low}var C=m[L];C.high=A,C.low=B}for(var L=0;L<5;L++)for(var R=m[(L+4)%5],S=m[(L+1)%5],O=S.high,F=S.low,A=R.high^(O<<1|F>>>31),B=R.low^(F<<1|O>>>31),w=0;w<5;w++){var I=p[L+5*w];I.high^=A,I.low^=B}for(var V=1;V<25;V++){var A,B,I=p[V],W=I.high,U=I.low,M=h[V];M<32?(A=W<<M|U>>>32-M,B=U<<M|W>>>32-M):(A=U<<M-32|W>>>64-M,B=W<<M-32|U>>>64-M);var P=m[y[V]];P.high=A,P.low=B}var z=m[0],D=p[0];z.high=D.high,z.low=D.low;for(var L=0;L<5;L++)for(var w=0;w<5;w++){var V=L+5*w,I=p[V],N=m[V],q=m[(L+1)%5+5*w],K=m[(L+2)%5+5*w];I.high=N.high^~q.high&K.high,I.low=N.low^~q.low&K.low}var I=p[0],G=u[_];I.high^=G.high,I.low^=G.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,k=this.cfg.outputLength/8,T=k/8,I=[],_=0;_<T;_++){var L=x[_],A=L.high,B=L.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,I.push(B),I.push(A)}return new s.init(I,k)},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(f),r.HmacSHA3=l._createHmacHelper(f)}(Math),t.SHA3})}(Jn)),Jn.exports}var Xn={exports:{}},Er;function ys(){return Er||(Er=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){/** @preserve
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H0(e,o){if(e){if(typeof e=="string")return tr(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 tr(e,o)}}function tr(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 V0(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 j0(e){if(Array.isArray(e))return e}function nr(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){On(e,r,t[r])})}return e}function On(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function W0(e,o){if(e==null)return{};var t=U0(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 U0(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}er("#1890ff");var Lt=function(o,t){var a,r=nr({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,g=r.twoToneColor,h=r.onClick,y=W0(r,z0),u=(a={anticon:!0},On(a,"anticon-".concat(s.name),!!s.name),On(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",f=c;f===void 0&&h&&(f=-1,y.tabindex=f);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=Qa(g),p=P0(E,2),b=p[0],x=p[1];return n.createVNode("span",nr({role:"img","aria-label":s.name},y,{onClick:h,class:u}),[n.createVNode(_n,{class:m,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=M0,Lt.setTwoToneColor=er;const or=Lt;var G0={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 $0=G0;function ar(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){Z0(e,r,t[r])})}return e}function Z0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Ln=function(o,t){var a=ar({},o,t.attrs);return n.createVNode(or,ar({},a,{icon:$0}),null)};Ln.displayName="CloseOutlined",Ln.inheritAttrs=!1;const K0=Ln;var Y0={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 Q0=Y0;function rr(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){J0(e,r,t[r])})}return e}function J0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Nn=function(o,t){var a=rr({},o,t.attrs);return n.createVNode(or,rr({},a,{icon:Q0}),null)};Nn.displayName="LoadingOutlined",Nn.inheritAttrs=!1;const X0=Nn,es=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:ce.Spin},setup(){return{indicator:n.h(X0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Su="",ye=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},ts={class:"spin-wrapper"};function ns(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",ts,[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 Nt=ye(es,[["render",ns]]),os=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:ce.Skeleton}});function as(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 ln=ye(os,[["render",as]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(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},Ae={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"},Se=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},Fn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(Fn),rs=["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"],Ce=(e,o=[])=>{const t=Ve.without(rs,...o);return n.computed(()=>Ve.pick(e,t))},zn="EVENT_BUS",Me="GLOBAL_CONFIG",Be="GLOBAL_MODEL",ze="REQUEST_MODEL",ir="GLOBAL_TOKEN",Jt="REFRESH_PAGE",lr="MODAL_MODEL",bt="LOADED_DATA",We=18,sr="ygt",cr=((Rl=window==null?void 0:window.config)==null?void 0:Rl.indicatorURL)||"";(Il=window==null?void 0:window.config)!=null&&Il.uploadPath;const dr=((_l=window==null?void 0:window.config)==null?void 0:_l.routerBaseURL)||"./",is=((Ol=window==null?void 0:window.config)==null?void 0:Ol.erdURL)||"",Le=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(zn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Ee=e=>{const o=e.events,t=e.id,a=n.inject(zn,{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)}})}},Ft=(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 g=e[c],h=g[t]||"",y=g[a]||"",u=g[r]||"";if(i.has(u)){const m=i.get(u);m.push({name:h,value:y,...g}),i.set(u,m)}else i.set(u,[{name:h,value:y,...g}])}const l=[],d=[];for(const[c,g]of i)if(d.push({name:c,data:g}),g!=null&&g.length)if(l.length)for(const h of g)l.includes(h.name)||l.push(h.name);else l.push(...g.map(h=>h.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ls(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 ur={exports:{}};function ss(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 Pn={exports:{}};const cs=ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var hr;function me(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a()})(de,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 de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof ss=="function")try{i=cs}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={},g=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=g.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,k=this.sigBytes,T=p.sigBytes;if(this.clamp(),k%4)for(var R=0;R<T;R++){var _=x[R>>>2]>>>24-R%4*8&255;b[k+R>>>2]|=_<<24-(k+R)%4*8}else for(var L=0;L<T;L+=4)b[k+L>>>2]=x[L>>>2];return this.sigBytes+=T,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=g.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)}}),y=d.enc={},u=y.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],T=0;T<x;T++){var R=b[T>>>2]>>>24-T%4*8&255;k.push((R>>>4).toString(16)),k.push((R&15).toString(16))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k+=2)x[k>>>3]|=parseInt(p.substr(k,2),16)<<24-k%8*4;return new h.init(x,b/2)}},m=y.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],T=0;T<x;T++){var R=b[T>>>2]>>>24-T%4*8&255;k.push(String.fromCharCode(R))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k++)x[k>>>2]|=(p.charCodeAt(k)&255)<<24-k%4*8;return new h.init(x,b)}},f=y.Utf8={stringify:function(p){try{return decodeURIComponent(escape(m.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return m.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=g.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=f.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,k=x.words,T=x.sigBytes,R=this.blockSize,_=R*4,L=T/_;p?L=a.ceil(L):L=a.max((L|0)-this._minBufferSize,0);var A=L*R,B=a.min(A*4,T);if(A){for(var w=0;w<A;w+=R)this._doProcessBlock(k,w);b=k.splice(0,A),x.sigBytes-=B}return new h.init(b,B)},clone:function(){var p=g.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:g.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})}(Pn)),Pn.exports}var qn={exports:{}},gr;function sn(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g){this.high=c,this.low=g}}),d.WordArray=s.extend({init:function(c,g){c=this.words=c||[],g!=a?this.sigBytes=g:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,g=c.length,h=[],y=0;y<g;y++){var u=c[y];h.push(u.high),h.push(u.low)}return l.create(h,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),g=c.words=this.words.slice(0),h=g.length,y=0;y<h;y++)g[y]=g[y].clone();return c}})}(),t})}(qn)),qn.exports}var Hn={exports:{}},mr;function ds(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=[],h=0;h<c;h++)g[h>>>2]|=d[h]<<24-h%4*8;s.call(this,g,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Hn)),Hn.exports}var Vn={exports:{}},yr;function fs(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=c[y>>>2]>>>16-y%4*8&65535;h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=d.charCodeAt(h)<<16-h%2*16;return i.create(g,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,g=d.sigBytes,h=[],y=0;y<g;y+=2){var u=l(c[y>>>2]>>>16-y%4*8&65535);h.push(String.fromCharCode(u))}return h.join("")},parse:function(d){for(var c=d.length,g=[],h=0;h<c;h++)g[h>>>1]|=l(d.charCodeAt(h)<<16-h%2*16);return i.create(g,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(Vn)),Vn.exports}var jn={exports:{}},xr;function Mt(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g=d.sigBytes,h=this._map;d.clamp();for(var y=[],u=0;u<g;u+=3)for(var m=c[u>>>2]>>>24-u%4*8&255,f=c[u+1>>>2]>>>24-(u+1)%4*8&255,v=c[u+2>>>2]>>>24-(u+2)%4*8&255,E=m<<16|f<<8|v,p=0;p<4&&u+p*.75<g;p++)y.push(h.charAt(E>>>6*(3-p)&63));var b=h.charAt(64);if(b)for(;y.length%4;)y.push(b);return y.join("")},parse:function(d){var c=d.length,g=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var y=0;y<g.length;y++)h[g.charCodeAt(y)]=y}var u=g.charAt(64);if(u){var m=d.indexOf(u);m!==-1&&(c=m)}return l(d,c,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,v=m|f;h[y>>>2]|=v<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64})}(jn)),jn.exports}var Wn={exports:{}},pr;function us(){return pr||(pr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var g=d.words,h=d.sigBytes,y=c?this._safe_map:this._map;d.clamp();for(var u=[],m=0;m<h;m+=3)for(var f=g[m>>>2]>>>24-m%4*8&255,v=g[m+1>>>2]>>>24-(m+1)%4*8&255,E=g[m+2>>>2]>>>24-(m+2)%4*8&255,p=f<<16|v<<8|E,b=0;b<4&&m+b*.75<h;b++)u.push(y.charAt(p>>>6*(3-b)&63));var x=y.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(d,c=!0){var g=d.length,h=c?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<h.length;u++)y[h.charCodeAt(u)]=u}var m=h.charAt(64);if(m){var f=d.indexOf(m);f!==-1&&(g=f)}return l(d,g,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,g){for(var h=[],y=0,u=0;u<c;u++)if(u%4){var m=g[d.charCodeAt(u-1)]<<u%4*2,f=g[d.charCodeAt(u)]>>>6-u%4*2,v=m|f;h[y>>>2]|=v<<24-y%4*8,y++}return i.create(h,y)}}(),t.enc.Base64url})}(Wn)),Wn.exports}var Un={exports:{}},br;function zt(){return br||(br=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var f=0;f<64;f++)c[f]=a.abs(a.sin(f+1))*4294967296|0})();var g=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,v){for(var E=0;E<16;E++){var p=v+E,b=f[p];f[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,k=f[v+0],T=f[v+1],R=f[v+2],_=f[v+3],L=f[v+4],A=f[v+5],B=f[v+6],w=f[v+7],C=f[v+8],I=f[v+9],S=f[v+10],O=f[v+11],F=f[v+12],V=f[v+13],W=f[v+14],U=f[v+15],M=x[0],P=x[1],z=x[2],D=x[3];M=h(M,P,z,D,k,7,c[0]),D=h(D,M,P,z,T,12,c[1]),z=h(z,D,M,P,R,17,c[2]),P=h(P,z,D,M,_,22,c[3]),M=h(M,P,z,D,L,7,c[4]),D=h(D,M,P,z,A,12,c[5]),z=h(z,D,M,P,B,17,c[6]),P=h(P,z,D,M,w,22,c[7]),M=h(M,P,z,D,C,7,c[8]),D=h(D,M,P,z,I,12,c[9]),z=h(z,D,M,P,S,17,c[10]),P=h(P,z,D,M,O,22,c[11]),M=h(M,P,z,D,F,7,c[12]),D=h(D,M,P,z,V,12,c[13]),z=h(z,D,M,P,W,17,c[14]),P=h(P,z,D,M,U,22,c[15]),M=y(M,P,z,D,T,5,c[16]),D=y(D,M,P,z,B,9,c[17]),z=y(z,D,M,P,O,14,c[18]),P=y(P,z,D,M,k,20,c[19]),M=y(M,P,z,D,A,5,c[20]),D=y(D,M,P,z,S,9,c[21]),z=y(z,D,M,P,U,14,c[22]),P=y(P,z,D,M,L,20,c[23]),M=y(M,P,z,D,I,5,c[24]),D=y(D,M,P,z,W,9,c[25]),z=y(z,D,M,P,_,14,c[26]),P=y(P,z,D,M,C,20,c[27]),M=y(M,P,z,D,V,5,c[28]),D=y(D,M,P,z,R,9,c[29]),z=y(z,D,M,P,w,14,c[30]),P=y(P,z,D,M,F,20,c[31]),M=u(M,P,z,D,A,4,c[32]),D=u(D,M,P,z,C,11,c[33]),z=u(z,D,M,P,O,16,c[34]),P=u(P,z,D,M,W,23,c[35]),M=u(M,P,z,D,T,4,c[36]),D=u(D,M,P,z,L,11,c[37]),z=u(z,D,M,P,w,16,c[38]),P=u(P,z,D,M,S,23,c[39]),M=u(M,P,z,D,V,4,c[40]),D=u(D,M,P,z,k,11,c[41]),z=u(z,D,M,P,_,16,c[42]),P=u(P,z,D,M,B,23,c[43]),M=u(M,P,z,D,I,4,c[44]),D=u(D,M,P,z,F,11,c[45]),z=u(z,D,M,P,U,16,c[46]),P=u(P,z,D,M,R,23,c[47]),M=m(M,P,z,D,k,6,c[48]),D=m(D,M,P,z,w,10,c[49]),z=m(z,D,M,P,W,15,c[50]),P=m(P,z,D,M,A,21,c[51]),M=m(M,P,z,D,F,6,c[52]),D=m(D,M,P,z,_,10,c[53]),z=m(z,D,M,P,S,15,c[54]),P=m(P,z,D,M,T,21,c[55]),M=m(M,P,z,D,C,6,c[56]),D=m(D,M,P,z,U,10,c[57]),z=m(z,D,M,P,B,15,c[58]),P=m(P,z,D,M,V,21,c[59]),M=m(M,P,z,D,L,6,c[60]),D=m(D,M,P,z,O,10,c[61]),z=m(z,D,M,P,R,15,c[62]),P=m(P,z,D,M,I,21,c[63]),x[0]=x[0]+M|0,x[1]=x[1]+P|0,x[2]=x[2]+z|0,x[3]=x[3]+D|0},_doFinalize:function(){var f=this._data,v=f.words,E=this._nDataBytes*8,p=f.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,f.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,T=k.words,R=0;R<4;R++){var _=T[R];T[R]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return k},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});function h(f,v,E,p,b,x,k){var T=f+(v&E|~v&p)+b+k;return(T<<x|T>>>32-x)+v}function y(f,v,E,p,b,x,k){var T=f+(v&p|E&~p)+b+k;return(T<<x|T>>>32-x)+v}function u(f,v,E,p,b,x,k){var T=f+(v^E^p)+b+k;return(T<<x|T>>>32-x)+v}function m(f,v,E,p,b,x,k){var T=f+(E^(v|~p))+b+k;return(T<<x|T>>>32-x)+v}r.MD5=l._createHelper(g),r.HmacMD5=l._createHmacHelper(g)}(Math),t.MD5})}(Un)),Un.exports}var Gn={exports:{}},vr;function $n(){return vr||(vr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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(g,h){for(var y=this._hash.words,u=y[0],m=y[1],f=y[2],v=y[3],E=y[4],p=0;p<80;p++){if(p<16)d[p]=g[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=(u<<5|u>>>27)+E+d[p];p<20?x+=(m&f|~m&v)+1518500249:p<40?x+=(m^f^v)+1859775393:p<60?x+=(m&f|m&v|f&v)-1894007588:x+=(m^f^v)-899497514,E=v,v=f,f=m<<30|m>>>2,m=u,u=x}y[0]=y[0]+u|0,y[1]=y[1]+m|0,y[2]=y[2]+f|0,y[3]=y[3]+v|0,y[4]=y[4]+E|0},_doFinalize:function(){var g=this._data,h=g.words,y=this._nDataBytes*8,u=g.sigBytes*8;return h[u>>>5]|=128<<24-u%32,h[(u+64>>>9<<4)+14]=Math.floor(y/4294967296),h[(u+64>>>9<<4)+15]=y,g.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Gn)),Gn.exports}var Zn={exports:{}},Sr;function Cr(){return Sr||(Sr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],g=[];(function(){function u(E){for(var p=a.sqrt(E),b=2;b<=p;b++)if(!(E%b))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var f=2,v=0;v<64;)u(f)&&(v<8&&(c[v]=m(a.pow(f,1/2))),g[v]=m(a.pow(f,1/3)),v++),f++})();var h=[],y=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,m){for(var f=this._hash.words,v=f[0],E=f[1],p=f[2],b=f[3],x=f[4],k=f[5],T=f[6],R=f[7],_=0;_<64;_++){if(_<16)h[_]=u[m+_]|0;else{var L=h[_-15],A=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,B=h[_-2],w=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;h[_]=A+h[_-7]+w+h[_-16]}var C=x&k^~x&T,I=v&E^v&p^E&p,S=(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),F=R+O+C+g[_]+h[_],V=S+I;R=T,T=k,k=x,x=b+F|0,b=p,p=E,E=v,v=F+V|0}f[0]=f[0]+v|0,f[1]=f[1]+E|0,f[2]=f[2]+p|0,f[3]=f[3]+b|0,f[4]=f[4]+x|0,f[5]=f[5]+k|0,f[6]=f[6]+T|0,f[7]=f[7]+R|0},_doFinalize:function(){var u=this._data,m=u.words,f=this._nDataBytes*8,v=u.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(f/4294967296),m[(v+64>>>9<<4)+15]=f,u.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(y),r.HmacSHA256=l._createHmacHelper(y)}(Math),t.SHA256})}(Zn)),Zn.exports}var Kn={exports:{}},wr;function hs(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Cr())})(de,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})}(Kn)),Kn.exports}var Yn={exports:{}},Ar;function kr(){return Ar||(Ar=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,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 g(){return l.create.apply(l,arguments)}var h=[g(1116352408,3609767458),g(1899447441,602891725),g(3049323471,3964484399),g(3921009573,2173295548),g(961987163,4081628472),g(1508970993,3053834265),g(2453635748,2937671579),g(2870763221,3664609560),g(3624381080,2734883394),g(310598401,1164996542),g(607225278,1323610764),g(1426881987,3590304994),g(1925078388,4068182383),g(2162078206,991336113),g(2614888103,633803317),g(3248222580,3479774868),g(3835390401,2666613458),g(4022224774,944711139),g(264347078,2341262773),g(604807628,2007800933),g(770255983,1495990901),g(1249150122,1856431235),g(1555081692,3175218132),g(1996064986,2198950837),g(2554220882,3999719339),g(2821834349,766784016),g(2952996808,2566594879),g(3210313671,3203337956),g(3336571891,1034457026),g(3584528711,2466948901),g(113926993,3758326383),g(338241895,168717936),g(666307205,1188179964),g(773529912,1546045734),g(1294757372,1522805485),g(1396182291,2643833823),g(1695183700,2343527390),g(1986661051,1014477480),g(2177026350,1206759142),g(2456956037,344077627),g(2730485921,1290863460),g(2820302411,3158454273),g(3259730800,3505952657),g(3345764771,106217008),g(3516065817,3606008344),g(3600352804,1432725776),g(4094571909,1467031594),g(275423344,851169720),g(430227734,3100823752),g(506948616,1363258195),g(659060556,3750685593),g(883997877,3785050280),g(958139571,3318307427),g(1322822218,3812723403),g(1537002063,2003034995),g(1747873779,3602036899),g(1955562222,1575990012),g(2024104815,1125592928),g(2227730452,2716904306),g(2361852424,442776044),g(2428436474,593698344),g(2756734187,3733110249),g(3204031479,2999351573),g(3329325298,3815920427),g(3391569614,3928383900),g(3515267271,566280711),g(3940187606,3454069534),g(4118630271,4000239992),g(116418474,1914138554),g(174292421,2731055270),g(289380356,3203993006),g(460393269,320620315),g(685471733,587496836),g(852142971,1086792851),g(1017036298,365543100),g(1126000580,2618297676),g(1288033470,3409855158),g(1501505948,4234509866),g(1607167915,987167468),g(1816402316,1246189591)],y=[];(function(){for(var m=0;m<80;m++)y[m]=g()})();var u=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(m,f){for(var v=this._hash.words,E=v[0],p=v[1],b=v[2],x=v[3],k=v[4],T=v[5],R=v[6],_=v[7],L=E.high,A=E.low,B=p.high,w=p.low,C=b.high,I=b.low,S=x.high,O=x.low,F=k.high,V=k.low,W=T.high,U=T.low,M=R.high,P=R.low,z=_.high,D=_.low,N=L,H=A,K=B,G=w,ae=C,Q=I,le=S,re=O,Y=F,X=V,ne=W,xe=U,ke=M,Te=P,Ge=z,Ne=D,Ie=0;Ie<80;Ie++){var we,qe,Fe=y[Ie];if(Ie<16)qe=Fe.high=m[f+Ie*2]|0,we=Fe.low=m[f+Ie*2+1]|0;else{var $e=y[Ie-15],Xe=$e.high,He=$e.low,ut=(Xe>>>1|He<<31)^(Xe>>>8|He<<24)^Xe>>>7,et=(He>>>1|Xe<<31)^(He>>>8|Xe<<24)^(He>>>7|Xe<<25),tt=y[Ie-2],q=tt.high,Z=tt.low,J=(q>>>19|Z<<13)^(q<<3|Z>>>29)^q>>>6,oe=(Z>>>19|q<<13)^(Z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.low=P+Te,R.high=M+ke+(P>>>0<Te>>>0?1:0),D=_.low=D+Ne,_.high=z+Ge+(D>>>0<Ne>>>0?1:0)},_doFinalize:function(){var m=this._data,f=m.words,v=this._nDataBytes*8,E=m.sigBytes*8;f[E>>>5]|=128<<24-E%32,f[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),f[(E+128>>>10<<5)+31]=v,m.sigBytes=f.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(Yn)),Yn.exports}var Qn={exports:{}},Tr;function gs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn(),kr())})(de,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 g=d._doFinalize.call(this);return g.sigBytes-=16,g}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}(Qn)),Qn.exports}var Jn={exports:{}},Br;function ms(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(me(),sn())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,g=r.algo,h=[],y=[],u=[];(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++)y[v+5*E]=E+(2*v+3*E)%5*5;for(var k=1,T=0;T<24;T++){for(var R=0,_=0,L=0;L<7;L++){if(k&1){var A=(1<<L)-1;A<32?_^=1<<A:R^=1<<A-32}k&128?k=k<<1^113:k<<=1}u[T]=c.create(R,_)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var f=g.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 k=v[E+2*x],T=v[E+2*x+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var R=p[x];R.high^=T,R.low^=k}for(var _=0;_<24;_++){for(var L=0;L<5;L++){for(var A=0,B=0,w=0;w<5;w++){var R=p[L+5*w];A^=R.high,B^=R.low}var C=m[L];C.high=A,C.low=B}for(var L=0;L<5;L++)for(var I=m[(L+4)%5],S=m[(L+1)%5],O=S.high,F=S.low,A=I.high^(O<<1|F>>>31),B=I.low^(F<<1|O>>>31),w=0;w<5;w++){var R=p[L+5*w];R.high^=A,R.low^=B}for(var V=1;V<25;V++){var A,B,R=p[V],W=R.high,U=R.low,M=h[V];M<32?(A=W<<M|U>>>32-M,B=U<<M|W>>>32-M):(A=U<<M-32|W>>>64-M,B=W<<M-32|U>>>64-M);var P=m[y[V]];P.high=A,P.low=B}var z=m[0],D=p[0];z.high=D.high,z.low=D.low;for(var L=0;L<5;L++)for(var w=0;w<5;w++){var V=L+5*w,R=p[V],N=m[V],H=m[(L+1)%5+5*w],K=m[(L+2)%5+5*w];R.high=N.high^~H.high&K.high,R.low=N.low^~H.low&K.low}var R=p[0],G=u[_];R.high^=G.high,R.low^=G.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,k=this.cfg.outputLength/8,T=k/8,R=[],_=0;_<T;_++){var L=x[_],A=L.high,B=L.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,R.push(B),R.push(A)}return new s.init(R,k)},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(f),r.HmacSHA3=l._createHmacHelper(f)}(Math),t.SHA3})}(Jn)),Jn.exports}var Xn={exports:{}},Er;function ys(){return Er||(Er=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,18 +64,18 @@ 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,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]),g=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]),y=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]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),f=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,I){for(var _=0;_<16;_++){var L=I+_,A=T[L];T[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var B=this._hash.words,w=u.words,C=m.words,R=c.words,S=g.words,O=h.words,F=y.words,V,W,U,M,P,z,D,N,q,K;z=V=B[0],D=W=B[1],N=U=B[2],q=M=B[3],K=P=B[4];for(var G,_=0;_<80;_+=1)G=V+T[I+R[_]]|0,_<16?G+=v(W,U,M)+w[0]:_<32?G+=E(W,U,M)+w[1]:_<48?G+=p(W,U,M)+w[2]:_<64?G+=b(W,U,M)+w[3]:G+=x(W,U,M)+w[4],G=G|0,G=k(G,O[_]),G=G+P|0,V=P,P=M,M=k(U,10),U=W,W=G,G=z+T[I+S[_]]|0,_<16?G+=x(D,N,q)+C[0]:_<32?G+=b(D,N,q)+C[1]:_<48?G+=p(D,N,q)+C[2]:_<64?G+=E(D,N,q)+C[3]:G+=v(D,N,q)+C[4],G=G|0,G=k(G,F[_]),G=G+K|0,z=K,K=q,q=k(N,10),N=D,D=G;G=B[1]+U+q|0,B[1]=B[2]+M+K|0,B[2]=B[3]+P+z|0,B[3]=B[4]+V+D|0,B[4]=B[0]+W+N|0,B[0]=G},_doFinalize:function(){var T=this._data,I=T.words,_=this._nDataBytes*8,L=T.sigBytes*8;I[L>>>5]|=128<<24-L%32,I[(L+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T.sigBytes=(I.length+1)*4,this._process();for(var A=this._hash,B=A.words,w=0;w<5;w++){var C=B[w];B[w]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return A},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function v(T,I,_){return T^I^_}function E(T,I,_){return T&I|~T&_}function p(T,I,_){return(T|~I)^_}function b(T,I,_){return T&_|I&~_}function x(T,I,_){return T^(I|~_)}function k(T,I){return T<<I|T>>>32-I}r.RIPEMD160=l._createHelper(f),r.HmacRIPEMD160=l._createHmacHelper(f)}(),t.RIPEMD160})}(Xn)),Xn.exports}var eo={exports:{}},Dr;function to(){return Dr||(Dr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g){c=this._hasher=new c.init,typeof g=="string"&&(g=l.parse(g));var h=c.blockSize,y=h*4;g.sigBytes>y&&(g=c.finalize(g)),g.clamp();for(var u=this._oKey=g.clone(),m=this._iKey=g.clone(),f=u.words,v=m.words,E=0;E<h;E++)f[E]^=1549556828,v[E]^=909522486;u.sigBytes=m.sigBytes=y,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 g=this._hasher,h=g.finalize(c);g.reset();var y=g.finalize(this._oKey.clone().concat(h));return y}})})()})}(eo)),eo.exports}var no={exports:{}},Rr;function xs(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,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,g=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,y){for(var u=this.cfg,m=c.create(u.hasher,h),f=s.create(),v=s.create([1]),E=f.words,p=v.words,b=u.keySize,x=u.iterations;E.length<b;){var k=m.update(y).finalize(v);m.reset();for(var T=k.words,I=T.length,_=k,L=1;L<x;L++){_=m.finalize(_),m.reset();for(var A=_.words,B=0;B<I;B++)T[B]^=A[B]}f.concat(k),p[0]++}return f.sigBytes=b*4,f}});a.PBKDF2=function(h,y,u){return g.create(u).compute(h,y)}}(),t.PBKDF2})}(no)),no.exports}var oo={exports:{}},Ir;function Dt(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,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(g){this.cfg=this.cfg.extend(g)},compute:function(g,h){for(var y,u=this.cfg,m=u.hasher.create(),f=s.create(),v=f.words,E=u.keySize,p=u.iterations;v.length<E;){y&&m.update(y),y=m.update(g).finalize(h),m.reset();for(var b=1;b<p;b++)y=m.finalize(y),m.reset();f.concat(y)}return f.sigBytes=E*4,f}});a.EvpKDF=function(g,h,y){return c.create(y).compute(g,h)}}(),t.EvpKDF})}(oo)),oo.exports}var ao={exports:{}},_r;function Pe(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(me(),Dt())})(de,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 g=c.Base64,h=r.algo,y=h.EvpKDF,u=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(A,B){return this.create(this._ENC_XFORM_MODE,A,B)},createDecryptor:function(A,B){return this.create(this._DEC_XFORM_MODE,A,B)},init:function(A,B,w){this.cfg=this.cfg.extend(w),this._xformMode=A,this._key=B,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(B){return typeof B=="string"?L:T}return function(B){return{encrypt:function(w,C,R){return A(C).encrypt(B,w,C,R)},decrypt:function(w,C,R){return A(C).decrypt(B,w,C,R)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var m=r.mode={},f=i.BlockCipherMode=s.extend({createEncryptor:function(A,B){return this.Encryptor.create(A,B)},createDecryptor:function(A,B){return this.Decryptor.create(A,B)},init:function(A,B){this._cipher=A,this._iv=B}}),v=m.CBC=function(){var A=f.extend();A.Encryptor=A.extend({processBlock:function(w,C){var R=this._cipher,S=R.blockSize;B.call(this,w,C,S),R.encryptBlock(w,C),this._prevBlock=w.slice(C,C+S)}}),A.Decryptor=A.extend({processBlock:function(w,C){var R=this._cipher,S=R.blockSize,O=w.slice(C,C+S);R.decryptBlock(w,C),B.call(this,w,C,S),this._prevBlock=O}});function B(w,C,R){var S,O=this._iv;O?(S=O,this._iv=a):S=this._prevBlock;for(var F=0;F<R;F++)w[C+F]^=S[F]}return A}(),E=r.pad={},p=E.Pkcs7={pad:function(A,B){for(var w=B*4,C=w-A.sigBytes%w,R=C<<24|C<<16|C<<8|C,S=[],O=0;O<C;O+=4)S.push(R);var F=l.create(S,C);A.concat(F)},unpad:function(A){var B=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=B}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:v,padding:p}),reset:function(){var A;u.reset.call(this);var B=this.cfg,w=B.iv,C=B.mode;this._xformMode==this._ENC_XFORM_MODE?A=C.createEncryptor:(A=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,w&&w.words):(this._mode=A.call(C,this,w&&w.words),this._mode.__creator=A)},_doProcessBlock:function(A,B){this._mode.processBlock(A,B)},_doFinalize:function(){var A,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),B.unpad(A)),A},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(A){var B,w=A.ciphertext,C=A.salt;return C?B=l.create([1398893684,1701076831]).concat(C).concat(w):B=w,B.toString(g)},parse:function(A){var B,w=g.parse(A),C=w.words;return C[0]==1398893684&&C[1]==1701076831&&(B=l.create(C.slice(2,4)),C.splice(0,4),w.sigBytes-=16),b.create({ciphertext:w,salt:B})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(A,B,w,C){C=this.cfg.extend(C);var R=A.createEncryptor(w,C),S=R.finalize(B),O=R.cfg;return b.create({ciphertext:S,key:w,iv:O.iv,algorithm:A,mode:O.mode,padding:O.padding,blockSize:A.blockSize,formatter:C.format})},decrypt:function(A,B,w,C){C=this.cfg.extend(C),B=this._parse(B,C.format);var R=A.createDecryptor(w,C).finalize(B.ciphertext);return R},_parse:function(A,B){return typeof A=="string"?B.parse(A,this):A}}),I=r.kdf={},_=I.OpenSSL={execute:function(A,B,w,C){C||(C=l.random(64/8));var R=y.create({keySize:B+w}).compute(A,C),S=l.create(R.words.slice(B),w*4);return R.sigBytes=B*4,b.create({key:R,iv:S,salt:C})}},L=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:_}),encrypt:function(A,B,w,C){C=this.cfg.extend(C);var R=C.kdf.execute(w,A.keySize,A.ivSize);C.iv=R.iv;var S=T.encrypt.call(this,A,B,R.key,C);return S.mixIn(R),S},decrypt:function(A,B,w,C){C=this.cfg.extend(C),B=this._parse(B,C.format);var R=C.kdf.execute(w,A.keySize,A.ivSize,B.salt);C.iv=R.iv;var S=T.decrypt.call(this,A,B,R.key,C);return S}})}()})}(ao)),ao.exports}var ro={exports:{}},Or;function ps(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._iv;g?(c=g.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})}(ro)),ro.exports}var io={exports:{}},Lr;function bs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._counter;c&&(g=this._counter=c.slice(0),this._iv=void 0);var h=g.slice(0);l.encryptBlock(h,0),g[d-1]=g[d-1]+1|0;for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),t.mode.CTR})}(io)),io.exports}var lo={exports:{}},Nr;function vs(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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]),g=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]),y=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]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),f=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,R){for(var _=0;_<16;_++){var L=R+_,A=T[L];T[L]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var B=this._hash.words,w=u.words,C=m.words,I=c.words,S=g.words,O=h.words,F=y.words,V,W,U,M,P,z,D,N,H,K;z=V=B[0],D=W=B[1],N=U=B[2],H=M=B[3],K=P=B[4];for(var G,_=0;_<80;_+=1)G=V+T[R+I[_]]|0,_<16?G+=v(W,U,M)+w[0]:_<32?G+=E(W,U,M)+w[1]:_<48?G+=p(W,U,M)+w[2]:_<64?G+=b(W,U,M)+w[3]:G+=x(W,U,M)+w[4],G=G|0,G=k(G,O[_]),G=G+P|0,V=P,P=M,M=k(U,10),U=W,W=G,G=z+T[R+S[_]]|0,_<16?G+=x(D,N,H)+C[0]:_<32?G+=b(D,N,H)+C[1]:_<48?G+=p(D,N,H)+C[2]:_<64?G+=E(D,N,H)+C[3]:G+=v(D,N,H)+C[4],G=G|0,G=k(G,F[_]),G=G+K|0,z=K,K=H,H=k(N,10),N=D,D=G;G=B[1]+U+H|0,B[1]=B[2]+M+K|0,B[2]=B[3]+P+z|0,B[3]=B[4]+V+D|0,B[4]=B[0]+W+N|0,B[0]=G},_doFinalize:function(){var T=this._data,R=T.words,_=this._nDataBytes*8,L=T.sigBytes*8;R[L>>>5]|=128<<24-L%32,R[(L+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T.sigBytes=(R.length+1)*4,this._process();for(var A=this._hash,B=A.words,w=0;w<5;w++){var C=B[w];B[w]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return A},clone:function(){var T=l.clone.call(this);return T._hash=this._hash.clone(),T}});function v(T,R,_){return T^R^_}function E(T,R,_){return T&R|~T&_}function p(T,R,_){return(T|~R)^_}function b(T,R,_){return T&_|R&~_}function x(T,R,_){return T^(R|~_)}function k(T,R){return T<<R|T>>>32-R}r.RIPEMD160=l._createHelper(f),r.HmacRIPEMD160=l._createHmacHelper(f)}(),t.RIPEMD160})}(Xn)),Xn.exports}var eo={exports:{}},Dr;function to(){return Dr||(Dr=1,function(e,o){(function(t,a){e.exports=a(me())})(de,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,g){c=this._hasher=new c.init,typeof g=="string"&&(g=l.parse(g));var h=c.blockSize,y=h*4;g.sigBytes>y&&(g=c.finalize(g)),g.clamp();for(var u=this._oKey=g.clone(),m=this._iKey=g.clone(),f=u.words,v=m.words,E=0;E<h;E++)f[E]^=1549556828,v[E]^=909522486;u.sigBytes=m.sigBytes=y,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 g=this._hasher,h=g.finalize(c);g.reset();var y=g.finalize(this._oKey.clone().concat(h));return y}})})()})}(eo)),eo.exports}var no={exports:{}},Rr;function xs(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,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,g=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,y){for(var u=this.cfg,m=c.create(u.hasher,h),f=s.create(),v=s.create([1]),E=f.words,p=v.words,b=u.keySize,x=u.iterations;E.length<b;){var k=m.update(y).finalize(v);m.reset();for(var T=k.words,R=T.length,_=k,L=1;L<x;L++){_=m.finalize(_),m.reset();for(var A=_.words,B=0;B<R;B++)T[B]^=A[B]}f.concat(k),p[0]++}return f.sigBytes=b*4,f}});a.PBKDF2=function(h,y,u){return g.create(u).compute(h,y)}}(),t.PBKDF2})}(no)),no.exports}var oo={exports:{}},Ir;function Dt(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(me(),$n(),to())})(de,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(g){this.cfg=this.cfg.extend(g)},compute:function(g,h){for(var y,u=this.cfg,m=u.hasher.create(),f=s.create(),v=f.words,E=u.keySize,p=u.iterations;v.length<E;){y&&m.update(y),y=m.update(g).finalize(h),m.reset();for(var b=1;b<p;b++)y=m.finalize(y),m.reset();f.concat(y)}return f.sigBytes=E*4,f}});a.EvpKDF=function(g,h,y){return c.create(y).compute(g,h)}}(),t.EvpKDF})}(oo)),oo.exports}var ao={exports:{}},_r;function Pe(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(me(),Dt())})(de,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 g=c.Base64,h=r.algo,y=h.EvpKDF,u=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(A,B){return this.create(this._ENC_XFORM_MODE,A,B)},createDecryptor:function(A,B){return this.create(this._DEC_XFORM_MODE,A,B)},init:function(A,B,w){this.cfg=this.cfg.extend(w),this._xformMode=A,this._key=B,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(B){return typeof B=="string"?L:T}return function(B){return{encrypt:function(w,C,I){return A(C).encrypt(B,w,C,I)},decrypt:function(w,C,I){return A(C).decrypt(B,w,C,I)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var m=r.mode={},f=i.BlockCipherMode=s.extend({createEncryptor:function(A,B){return this.Encryptor.create(A,B)},createDecryptor:function(A,B){return this.Decryptor.create(A,B)},init:function(A,B){this._cipher=A,this._iv=B}}),v=m.CBC=function(){var A=f.extend();A.Encryptor=A.extend({processBlock:function(w,C){var I=this._cipher,S=I.blockSize;B.call(this,w,C,S),I.encryptBlock(w,C),this._prevBlock=w.slice(C,C+S)}}),A.Decryptor=A.extend({processBlock:function(w,C){var I=this._cipher,S=I.blockSize,O=w.slice(C,C+S);I.decryptBlock(w,C),B.call(this,w,C,S),this._prevBlock=O}});function B(w,C,I){var S,O=this._iv;O?(S=O,this._iv=a):S=this._prevBlock;for(var F=0;F<I;F++)w[C+F]^=S[F]}return A}(),E=r.pad={},p=E.Pkcs7={pad:function(A,B){for(var w=B*4,C=w-A.sigBytes%w,I=C<<24|C<<16|C<<8|C,S=[],O=0;O<C;O+=4)S.push(I);var F=l.create(S,C);A.concat(F)},unpad:function(A){var B=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=B}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:v,padding:p}),reset:function(){var A;u.reset.call(this);var B=this.cfg,w=B.iv,C=B.mode;this._xformMode==this._ENC_XFORM_MODE?A=C.createEncryptor:(A=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,w&&w.words):(this._mode=A.call(C,this,w&&w.words),this._mode.__creator=A)},_doProcessBlock:function(A,B){this._mode.processBlock(A,B)},_doFinalize:function(){var A,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),B.unpad(A)),A},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(A){var B,w=A.ciphertext,C=A.salt;return C?B=l.create([1398893684,1701076831]).concat(C).concat(w):B=w,B.toString(g)},parse:function(A){var B,w=g.parse(A),C=w.words;return C[0]==1398893684&&C[1]==1701076831&&(B=l.create(C.slice(2,4)),C.splice(0,4),w.sigBytes-=16),b.create({ciphertext:w,salt:B})}},T=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(A,B,w,C){C=this.cfg.extend(C);var I=A.createEncryptor(w,C),S=I.finalize(B),O=I.cfg;return b.create({ciphertext:S,key:w,iv:O.iv,algorithm:A,mode:O.mode,padding:O.padding,blockSize:A.blockSize,formatter:C.format})},decrypt:function(A,B,w,C){C=this.cfg.extend(C),B=this._parse(B,C.format);var I=A.createDecryptor(w,C).finalize(B.ciphertext);return I},_parse:function(A,B){return typeof A=="string"?B.parse(A,this):A}}),R=r.kdf={},_=R.OpenSSL={execute:function(A,B,w,C){C||(C=l.random(64/8));var I=y.create({keySize:B+w}).compute(A,C),S=l.create(I.words.slice(B),w*4);return I.sigBytes=B*4,b.create({key:I,iv:S,salt:C})}},L=i.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:_}),encrypt:function(A,B,w,C){C=this.cfg.extend(C);var I=C.kdf.execute(w,A.keySize,A.ivSize);C.iv=I.iv;var S=T.encrypt.call(this,A,B,I.key,C);return S.mixIn(I),S},decrypt:function(A,B,w,C){C=this.cfg.extend(C),B=this._parse(B,C.format);var I=C.kdf.execute(w,A.keySize,A.ivSize,B.salt);C.iv=I.iv;var S=T.decrypt.call(this,A,B,I.key,C);return S}})}()})}(ao)),ao.exports}var ro={exports:{}},Or;function ps(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._iv;g?(c=g.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})}(ro)),ro.exports}var io={exports:{}},Lr;function bs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._counter;c&&(g=this._counter=c.slice(0),this._iv=void 0);var h=g.slice(0);l.encryptBlock(h,0),g[d-1]=g[d-1]+1|0;for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),t.mode.CTR})}(io)),io.exports}var lo={exports:{}},Nr;function vs(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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 d=l>>16&255,c=l>>8&255,g=l&255;d===255?(d=0,c===255?(c=0,g===255?g=0:++g):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=g}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,g=c.blockSize,h=this._iv,y=this._counter;h&&(y=this._counter=h.slice(0),this._iv=void 0),i(y);var u=y.slice(0);c.encryptBlock(u,0);for(var m=0;m<g;m++)l[d+m]^=u[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(lo)),lo.exports}var so={exports:{}},Fr;function Ss(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._keystream;c&&(g=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(g,0);for(var h=0;h<d;h++)i[s+h]^=g[h]}});return a.Decryptor=r,a}(),t.mode.OFB})}(so)),so.exports}var co={exports:{}},Mr;function Cs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(co)),co.exports}var fo={exports:{}},zr;function ws(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(fo)),fo.exports}var uo={exports:{}},Pr;function As(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(uo)),uo.exports}var ho={exports:{}},qr;function ks(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(ho)),ho.exports}var go={exports:{}},Hr;function Ts(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(go)),go.exports}var mo={exports:{}},Vr;function Bs(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(mo)),mo.exports}var yo={exports:{}},jr;function Es(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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(g){return g.ciphertext.toString(d)},parse:function(g){var h=d.parse(g);return s.create({ciphertext:h})}}}(),t.format.Hex})}(yo)),yo.exports}var xo={exports:{}},Wr;function Ds(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],g=[],h=[],y=[],u=[],m=[],f=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var k=0,T=0,x=0;x<256;x++){var I=T^T<<1^T<<2^T<<3^T<<4;I=I>>>8^I&255^99,l[k]=I,d[I]=k;var _=b[k],L=b[_],A=b[L],B=b[I]*257^I*16843008;c[k]=B<<24|B>>>8,g[k]=B<<16|B>>>16,h[k]=B<<8|B>>>24,y[k]=B;var B=A*16843009^L*65537^_*257^k*16843008;u[I]=B<<24|B>>>8,m[I]=B<<16|B>>>16,f[I]=B<<8|B>>>24,v[I]=B,k?(k=_^b[b[b[A^_]]],T^=b[b[T]]):k=T=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,k=x.words,T=x.sigBytes/4,I=this._nRounds=T+6,_=(I+1)*4,L=this._keySchedule=[],A=0;A<_;A++)A<T?L[A]=k[A]:(b=L[A-1],A%T?T>6&&A%T==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[A/T|0]<<24),L[A]=L[A-T]^b);for(var B=this._invKeySchedule=[],w=0;w<_;w++){var A=_-w;if(w%4)var b=L[A];else var b=L[A-4];w<4||A<=4?B[w]=b:B[w]=u[l[b>>>24]]^m[l[b>>>16&255]]^f[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,g,h,y,l)},decryptBlock:function(b,x){var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k,this._doCryptBlock(b,x,this._invKeySchedule,u,m,f,v,d);var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k},_doCryptBlock:function(b,x,k,T,I,_,L,A){for(var B=this._nRounds,w=b[x]^k[0],C=b[x+1]^k[1],R=b[x+2]^k[2],S=b[x+3]^k[3],O=4,F=1;F<B;F++){var V=T[w>>>24]^I[C>>>16&255]^_[R>>>8&255]^L[S&255]^k[O++],W=T[C>>>24]^I[R>>>16&255]^_[S>>>8&255]^L[w&255]^k[O++],U=T[R>>>24]^I[S>>>16&255]^_[w>>>8&255]^L[C&255]^k[O++],M=T[S>>>24]^I[w>>>16&255]^_[C>>>8&255]^L[R&255]^k[O++];w=V,C=W,R=U,S=M}var V=(A[w>>>24]<<24|A[C>>>16&255]<<16|A[R>>>8&255]<<8|A[S&255])^k[O++],W=(A[C>>>24]<<24|A[R>>>16&255]<<16|A[S>>>8&255]<<8|A[w&255])^k[O++],U=(A[R>>>24]<<24|A[S>>>16&255]<<16|A[w>>>8&255]<<8|A[C&255])^k[O++],M=(A[S>>>24]<<24|A[w>>>16&255]<<16|A[C>>>8&255]<<8|A[R&255])^k[O++];b[x]=V,b[x+1]=W,b[x+2]=U,b[x+3]=M},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(xo)),xo.exports}var po={exports:{}},Ur;function Rs(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,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],g=[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}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var E=this._key,p=E.words,b=[],x=0;x<56;x++){var k=d[x]-1;b[x]=p[k>>>5]>>>31-k%32&1}for(var T=this._subKeys=[],I=0;I<16;I++){for(var _=T[I]=[],L=g[I],x=0;x<24;x++)_[x/6|0]|=b[(c[x]-1+L)%28]<<31-x%6,_[4+(x/6|0)]|=b[28+(c[x+24]-1+L)%28]<<31-x%6;_[0]=_[0]<<1|_[0]>>>31;for(var x=1;x<7;x++)_[x]=_[x]>>>(x-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var A=this._invSubKeys=[],x=0;x<16;x++)A[x]=T[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],m.call(this,4,252645135),m.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=b[x],T=this._lBlock,I=this._rBlock,_=0,L=0;L<8;L++)_|=h[L][((I^k[L])&y[L])>>>0];this._lBlock=I,this._rBlock=T^_}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,m.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[p]=this._lBlock,E[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,p){var b=(this._lBlock>>>E^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<E}function f(E,p){var b=(this._rBlock>>>E^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(u);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),k=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(x)),this._des3=u.createEncryptor(i.create(k))},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})}(po)),po.exports}var bo={exports:{}},Gr;function Is(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,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 g=this._key,h=g.words,y=g.sigBytes,u=this._S=[],m=0;m<256;m++)u[m]=m;for(var m=0,f=0;m<256;m++){var v=m%y,E=h[v>>>2]>>>24-v%4*8&255;f=(f+u[m]+E)%256;var p=u[m];u[m]=u[f],u[f]=p}this._i=this._j=0},_doProcessBlock:function(g,h){g[h]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var g=this._S,h=this._i,y=this._j,u=0,m=0;m<4;m++){h=(h+1)%256,y=(y+g[h])%256;var f=g[h];g[h]=g[y],g[y]=f,u|=g[(g[h]+g[y])%256]<<24-m*8}return this._i=h,this._j=y,u}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 g=this.cfg.drop;g>0;g--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(bo)),bo.exports}var vo={exports:{}},$r;function _s(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,u=this.cfg.iv,m=0;m<4;m++)y[m]=(y[m]<<8|y[m]>>>24)&16711935|(y[m]<<24|y[m]>>>8)&4278255360;var f=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],v=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var m=0;m<4;m++)h.call(this);for(var m=0;m<8;m++)v[m]^=f[m+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|k&4294901760,I=k<<16|x&65535;v[0]^=x,v[1]^=T,v[2]^=k,v[3]^=I,v[4]^=x,v[5]^=T,v[6]^=k,v[7]^=I;for(var m=0;m<4;m++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],v=f&65535,E=f>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(g)}(),t.Rabbit})}(vo)),vo.exports}var So={exports:{}},Zr;function Os(){return Zr||(Zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,u=this.cfg.iv,m=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],f=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var v=0;v<4;v++)h.call(this);for(var v=0;v<8;v++)f[v]^=m[v+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|k&4294901760,I=k<<16|x&65535;f[0]^=x,f[1]^=T,f[2]^=k,f[3]^=I,f[4]^=x,f[5]^=T,f[6]^=k,f[7]^=I;for(var v=0;v<4;v++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],v=f&65535,E=f>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(g)}(),t.RabbitLegacy})}(So)),So.exports}(function(e,o){(function(t,a,r){e.exports=a(me(),sn(),ds(),fs(),Mt(),us(),zt(),$n(),Cr(),hs(),kr(),gs(),ms(),ys(),to(),xs(),Dt(),Pe(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Rs(),Is(),_s(),Os())})(de,function(t){return t})})(ur);var Ls=ur.exports;const et=fr(Ls);var Ns="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return Ns.charAt(e)}function Fs(e,o){return e&o}function cn(e,o){return e|o}function Kr(e,o){return e^o}function Yr(e,o){return e&~o}function Ms(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 zs(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr="=";function dn(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(t>>6)+Pt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(t>>2)+Pt.charAt((t&3)<<4));(a.length&3)>0;)a+=Qr;return a}function Jr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Qr;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var qt,Ps={decode:function(e){var o;if(qt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
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,g=l&255;d===255?(d=0,c===255?(c=0,g===255?g=0:++g):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=g}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,g=c.blockSize,h=this._iv,y=this._counter;h&&(y=this._counter=h.slice(0),this._iv=void 0),i(y);var u=y.slice(0);c.encryptBlock(u,0);for(var m=0;m<g;m++)l[d+m]^=u[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(lo)),lo.exports}var so={exports:{}},Fr;function Ss(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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,g=this._keystream;c&&(g=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(g,0);for(var h=0;h<d;h++)i[s+h]^=g[h]}});return a.Decryptor=r,a}(),t.mode.OFB})}(so)),so.exports}var co={exports:{}},Mr;function Cs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(co)),co.exports}var fo={exports:{}},zr;function ws(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(fo)),fo.exports}var uo={exports:{}},Pr;function As(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(uo)),uo.exports}var ho={exports:{}},qr;function ks(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(ho)),ho.exports}var go={exports:{}},Hr;function Ts(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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})}(go)),go.exports}var mo={exports:{}},Vr;function Bs(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(mo)),mo.exports}var yo={exports:{}},jr;function Es(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Pe())})(de,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(g){return g.ciphertext.toString(d)},parse:function(g){var h=d.parse(g);return s.create({ciphertext:h})}}}(),t.format.Hex})}(yo)),yo.exports}var xo={exports:{}},Wr;function Ds(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],g=[],h=[],y=[],u=[],m=[],f=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var k=0,T=0,x=0;x<256;x++){var R=T^T<<1^T<<2^T<<3^T<<4;R=R>>>8^R&255^99,l[k]=R,d[R]=k;var _=b[k],L=b[_],A=b[L],B=b[R]*257^R*16843008;c[k]=B<<24|B>>>8,g[k]=B<<16|B>>>16,h[k]=B<<8|B>>>24,y[k]=B;var B=A*16843009^L*65537^_*257^k*16843008;u[R]=B<<24|B>>>8,m[R]=B<<16|B>>>16,f[R]=B<<8|B>>>24,v[R]=B,k?(k=_^b[b[b[A^_]]],T^=b[b[T]]):k=T=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,k=x.words,T=x.sigBytes/4,R=this._nRounds=T+6,_=(R+1)*4,L=this._keySchedule=[],A=0;A<_;A++)A<T?L[A]=k[A]:(b=L[A-1],A%T?T>6&&A%T==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[A/T|0]<<24),L[A]=L[A-T]^b);for(var B=this._invKeySchedule=[],w=0;w<_;w++){var A=_-w;if(w%4)var b=L[A];else var b=L[A-4];w<4||A<=4?B[w]=b:B[w]=u[l[b>>>24]]^m[l[b>>>16&255]]^f[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,g,h,y,l)},decryptBlock:function(b,x){var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k,this._doCryptBlock(b,x,this._invKeySchedule,u,m,f,v,d);var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k},_doCryptBlock:function(b,x,k,T,R,_,L,A){for(var B=this._nRounds,w=b[x]^k[0],C=b[x+1]^k[1],I=b[x+2]^k[2],S=b[x+3]^k[3],O=4,F=1;F<B;F++){var V=T[w>>>24]^R[C>>>16&255]^_[I>>>8&255]^L[S&255]^k[O++],W=T[C>>>24]^R[I>>>16&255]^_[S>>>8&255]^L[w&255]^k[O++],U=T[I>>>24]^R[S>>>16&255]^_[w>>>8&255]^L[C&255]^k[O++],M=T[S>>>24]^R[w>>>16&255]^_[C>>>8&255]^L[I&255]^k[O++];w=V,C=W,I=U,S=M}var V=(A[w>>>24]<<24|A[C>>>16&255]<<16|A[I>>>8&255]<<8|A[S&255])^k[O++],W=(A[C>>>24]<<24|A[I>>>16&255]<<16|A[S>>>8&255]<<8|A[w&255])^k[O++],U=(A[I>>>24]<<24|A[S>>>16&255]<<16|A[w>>>8&255]<<8|A[C&255])^k[O++],M=(A[S>>>24]<<24|A[w>>>16&255]<<16|A[C>>>8&255]<<8|A[I&255])^k[O++];b[x]=V,b[x+1]=W,b[x+2]=U,b[x+3]=M},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(xo)),xo.exports}var po={exports:{}},Ur;function Rs(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,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],g=[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}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var E=this._key,p=E.words,b=[],x=0;x<56;x++){var k=d[x]-1;b[x]=p[k>>>5]>>>31-k%32&1}for(var T=this._subKeys=[],R=0;R<16;R++){for(var _=T[R]=[],L=g[R],x=0;x<24;x++)_[x/6|0]|=b[(c[x]-1+L)%28]<<31-x%6,_[4+(x/6|0)]|=b[28+(c[x+24]-1+L)%28]<<31-x%6;_[0]=_[0]<<1|_[0]>>>31;for(var x=1;x<7;x++)_[x]=_[x]>>>(x-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var A=this._invSubKeys=[],x=0;x<16;x++)A[x]=T[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],m.call(this,4,252645135),m.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=b[x],T=this._lBlock,R=this._rBlock,_=0,L=0;L<8;L++)_|=h[L][((R^k[L])&y[L])>>>0];this._lBlock=R,this._rBlock=T^_}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,m.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[p]=this._lBlock,E[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,p){var b=(this._lBlock>>>E^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<E}function f(E,p){var b=(this._rBlock>>>E^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(u);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),k=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(x)),this._des3=u.createEncryptor(i.create(k))},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})}(po)),po.exports}var bo={exports:{}},Gr;function Is(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,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 g=this._key,h=g.words,y=g.sigBytes,u=this._S=[],m=0;m<256;m++)u[m]=m;for(var m=0,f=0;m<256;m++){var v=m%y,E=h[v>>>2]>>>24-v%4*8&255;f=(f+u[m]+E)%256;var p=u[m];u[m]=u[f],u[f]=p}this._i=this._j=0},_doProcessBlock:function(g,h){g[h]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var g=this._S,h=this._i,y=this._j,u=0,m=0;m<4;m++){h=(h+1)%256,y=(y+g[h])%256;var f=g[h];g[h]=g[y],g[y]=f,u|=g[(g[h]+g[y])%256]<<24-m*8}return this._i=h,this._j=y,u}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 g=this.cfg.drop;g>0;g--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(bo)),bo.exports}var vo={exports:{}},$r;function _s(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.Rabbit=i.extend({_doReset:function(){for(var y=this._key.words,u=this.cfg.iv,m=0;m<4;m++)y[m]=(y[m]<<8|y[m]>>>24)&16711935|(y[m]<<24|y[m]>>>8)&4278255360;var f=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],v=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var m=0;m<4;m++)h.call(this);for(var m=0;m<8;m++)v[m]^=f[m+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|k&4294901760,R=k<<16|x&65535;v[0]^=x,v[1]^=T,v[2]^=k,v[3]^=R,v[4]^=x,v[5]^=T,v[6]^=k,v[7]^=R;for(var m=0;m<4;m++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],v=f&65535,E=f>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(g)}(),t.Rabbit})}(vo)),vo.exports}var So={exports:{}},Zr;function Os(){return Zr||(Zr=1,function(e,o){(function(t,a,r){e.exports=a(me(),Mt(),zt(),Dt(),Pe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],g=s.RabbitLegacy=i.extend({_doReset:function(){var y=this._key.words,u=this.cfg.iv,m=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],f=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var v=0;v<4;v++)h.call(this);for(var v=0;v<8;v++)f[v]^=m[v+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=x>>>16|k&4294901760,R=k<<16|x&65535;f[0]^=x,f[1]^=T,f[2]^=k,f[3]^=R,f[4]^=x,f[5]^=T,f[6]^=k,f[7]^=R;for(var v=0;v<4;v++)h.call(this)}},_doProcessBlock:function(y,u){var m=this._X;h.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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,y[u+f]^=l[f]},blockSize:128/32,ivSize:64/32});function h(){for(var y=this._X,u=this._C,m=0;m<8;m++)d[m]=u[m];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<d[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<d[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<d[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<d[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<d[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<d[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<d[6]>>>0?1:0)|0,this._b=u[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=y[m]+u[m],v=f&65535,E=f>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=p^b}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(g)}(),t.RabbitLegacy})}(So)),So.exports}(function(e,o){(function(t,a,r){e.exports=a(me(),sn(),ds(),fs(),Mt(),us(),zt(),$n(),Cr(),hs(),kr(),gs(),ms(),ys(),to(),xs(),Dt(),Pe(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Rs(),Is(),_s(),Os())})(de,function(t){return t})})(ur);var Ls=ur.exports;const Je=fr(Ls);var Ns="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return Ns.charAt(e)}function Fs(e,o){return e&o}function cn(e,o){return e|o}function Kr(e,o){return e^o}function Yr(e,o){return e&~o}function Ms(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 zs(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qr="=";function dn(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(t>>6)+Pt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(t>>2)+Pt.charAt((t&3)<<4));(a.length&3)>0;)a+=Qr;return a}function Jr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=Qr;++t){var i=Pt.indexOf(e.charAt(t));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var qt,Ps={decode:function(e){var o;if(qt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
72
|
\r \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)qt[t.charAt(o)]=o;for(o=0;o<a.length;++o)qt[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=qt[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}},Rt,Co={decode:function(e){var o;if(Rt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
73
|
\r \u2028\u2029`;for(Rt=Object.create(null),o=0;o<64;++o)Rt[t.charAt(o)]=o;for(Rt["-"]=62,Rt._=63,o=0;o<a.length;++o)Rt[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=Rt[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=Co.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 Co.decode(e)}},Ht=1e13,Xt=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<Ht?t=0:(t=0|s/Ht,s-=t*Ht),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+=Ht,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+=(Ht+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*Ht+o[a];return t},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),Xr="…",qs=/^(\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)?)?$/,Hs=/^(\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 Vt(e,o){return e.length>o&&(e=e.substring(0,o)+Xr),e}var wo=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
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?qs:Hs).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
75
|
`}r&&(a=a-256);for(var d=new Xt(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
76
|
`,l="",d=o+1;d<t;++d){for(var c=this.get(d),g=d==t-1?r:0,h=7;h>=g;--h)l+=c>>h&1?"1":"0";if(l.length>a)return s+Vt(l,a)}return s+l},e.prototype.parseOctetString=function(o,t,a){if(this.isASCII(o,t))return Vt(this.parseStringISO(o,t),a);var r=t-o,i="("+r+` byte)
|
|
77
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+=Xr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new Xt,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 Xt)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 Vt(r,a);i=new Xt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Vs=function(){function e(o,t,a,r,i){if(!(r instanceof ei))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 Vt(this.stream.parseStringUTF(t,t+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Vt(this.stream.parseStringISO(t,t+a),o);case 30:return Vt(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 wo?t=o:t=new wo(o,0);var a=new wo(t),r=new ei(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var h=[];if(i!==null){for(var y=s+i;t.pos<y;)h[h.length]=e.decode(t);if(t.pos!=y)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;h[h.length]=u}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}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 g=0;g<d.length;++g)if(d[g].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}(),ei=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 Xt;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}(),vt,js=0xdeadbeefcafe,ti=(js&16777215)==15715070,Ge=[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],Ws=(1<<26)/Ge[Ge.length-1],se=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=mt(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+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();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)+un(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=ue();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 ni(t):a=new oi(t),this.exp(o,a)},e.prototype.clone=function(){var o=ue();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=ue();return this.bitwiseTo(o,Fs,t),t},e.prototype.or=function(o){var t=ue();return this.bitwiseTo(o,cn,t),t},e.prototype.xor=function(o){var t=ue();return this.bitwiseTo(o,Kr,t),t},e.prototype.andNot=function(o){var t=ue();return this.bitwiseTo(o,Yr,t),t},e.prototype.not=function(){for(var o=ue(),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=ue();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=ue();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+Ms(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+=zs(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,cn)},e.prototype.clearBit=function(o){return this.changeBit(o,Yr)},e.prototype.flipBit=function(o){return this.changeBit(o,Kr)},e.prototype.add=function(o){var t=ue();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=ue();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=ue();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=ue();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=ue();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=ue(),a=ue();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=St(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 ni(t):t.isEven()?s=new Gs(t):s=new oi(t);var l=[],d=3,c=r-1,g=(1<<r)-1;if(l[1]=s.convert(this),r>1){var h=ue();for(s.sqrTo(l[1],h);d<=g;)l[d]=ue(),s.mulTo(h,l[d-2],l[d]),d+=2}var y=o.t-1,u,m=!0,f=ue(),v;for(a=un(o[y])-1;y>=0;){for(a>=c?u=o[y]>>a-c&g:(u=(o[y]&(1<<a+1)-1)<<c-a,y>0&&(u|=o[y-1]>>this.DB+a-c)),d=r;!(u&1);)u>>=1,--d;if((a-=d)<0&&(a+=this.DB,--y),m)l[u].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,f),s.sqrTo(f,i),d-=2;d>0?s.sqrTo(i,f):(v=i,i=f,f=v),s.mulTo(f,l[u],i)}for(;y>=0&&!(o[y]&1<<a);)s.sqrTo(i,f),v=i,i=f,f=v,--a<0&&(a=this.DB-1,--y)}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=St(1),s=St(0),l=St(0),d=St(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 Us)},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]<=Ge[Ge.length-1]){for(t=0;t<Ge.length;++t)if(a[0]==Ge[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ge.length;){for(var r=Ge[t],i=t+1;i<Ge.length&&r<Ws;)r*=Ge[i++];for(r=a.modInt(r);t<i;)if(r%Ge[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:ri(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=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-un(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var g=s.t,h=s[g-1];if(h!=0){var y=h*(1<<this.F1)+(g>1?s[g-2]>>this.F2:0),u=this.FV/y,m=(1<<this.F1)/y,f=1<<this.F2,v=a.t,E=v-g,p=t??ue();for(s.dlShiftTo(E,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(g,p),p.subTo(s,s);s.t<g;)s[s.t++]=0;for(;--E>=0;){var b=a[--v]==h?this.DM:Math.floor(a[v]*u+(a[v-1]+f)*m);if((a[v]+=s.am(0,b,a,E,0,g))<b)for(s.dlShiftTo(E,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(g,t),l!=d&&e.ZERO.subTo(t,t)),a.t=g,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=ue(),r=ue(),i=t.convert(this),s=un(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=St(a),i=ue(),s=ue(),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=ri(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),cn,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>Ge.length&&(o=Ge.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.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=ue();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),cn,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}(),Us=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}(),ni=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}(),oi=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=ue();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(se.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=ue();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}(),Gs=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),se.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=ue();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 ue(){return new se(null)}function Re(e,o){return new se(e,o)}var ai=typeof navigator<"u";ai&&ti&&navigator.appName=="Microsoft Internet Explorer"?(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,g=this[o++]>>15,h=d*c+g*l;c=l*c+((h&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(h>>>15)+d*g+(i>>>30),a[r++]=c&1073741823}return i},vt=30):ai&&ti&&navigator.appName!="Netscape"?(se.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},vt=26):(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,g=this[o++]>>14,h=d*c+g*l;c=l*c+((h&16383)<<14)+a[r]+i,i=(c>>28)+(h>>14)+d*g,a[r++]=c&268435455}return i},vt=28),se.prototype.DB=vt,se.prototype.DM=(1<<vt)-1,se.prototype.DV=1<<vt;var Ao=52;se.prototype.FV=Math.pow(2,Ao),se.prototype.F1=Ao-vt,se.prototype.F2=2*vt-Ao;var fn=[],jt,ot;for(jt="0".charCodeAt(0),ot=0;ot<=9;++ot)fn[jt++]=ot;for(jt="a".charCodeAt(0),ot=10;ot<36;++ot)fn[jt++]=ot;for(jt="A".charCodeAt(0),ot=10;ot<36;++ot)fn[jt++]=ot;function ri(e,o){var t=fn[e.charCodeAt(o)];return t??-1}function St(e){var o=ue();return o.fromInt(e),o}function un(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}se.ZERO=St(0),se.ONE=St(1);var $s=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 Zs(){return new $s}var ii=256,hn,Ct=null,st;if(Ct==null){Ct=[],st=0;var gn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ko=new Uint32Array(256);for(window.crypto.getRandomValues(ko),gn=0;gn<ko.length;++gn)Ct[st++]=ko[gn]&255}var mn=0,yn=function(e){if(mn=mn||0,mn>=256||st>=ii){window.removeEventListener?window.removeEventListener("mousemove",yn,!1):window.detachEvent&&window.detachEvent("onmousemove",yn);return}try{var o=e.x+e.y;Ct[st++]=o&255,mn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",yn,!1):window.attachEvent&&window.attachEvent("onmousemove",yn))}function Ks(){if(hn==null){for(hn=Zs();st<ii;){var e=Math.floor(65536*Math.random());Ct[st++]=e&255}for(hn.init(Ct),st=0;st<Ct.length;++st)Ct[st]=0;st=0}return hn.next()}var To=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Ks()},e}();function Ys(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 Re(i,16)}function Qs(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 To,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 se(t)}var Js=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=Re(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=Qs(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=Re(o,16),this.e=parseInt(t,16),this.d=Re(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=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16),this.p=Re(r,16),this.q=Re(i,16),this.dmp1=Re(s,16),this.dmq1=Re(l,16),this.coeff=Re(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new To,r=o>>1;this.e=parseInt(t,16);for(var i=new se(t,16);;){for(;this.p=new se(o-r,1,a),!(this.p.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new se(r,1,a),!(this.q.subtract(se.ONE).gcd(i).compareTo(se.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(se.ONE),d=this.q.subtract(se.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(se.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=Re(o,16),a=this.doPrivate(t);return a==null?null:Xs(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new To,i=o>>1;this.e=parseInt(t,16);var s=new se(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var y=l.p;l.p=l.q,l.q=y}var u=l.p.subtract(se.ONE),m=l.q.subtract(se.ONE),f=u.multiply(m);f.gcd(s).compareTo(se.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(f),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},g=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(g,0)})})},h=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(g,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=ec(a),i=r+t(o).toString(),s=Ys(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=Re(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=tc(s);return l==a(o).toString()},e}();function Xs(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 xn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ec(e){return xn[e]||""}function tc(e){for(var o in xn)if(xn.hasOwnProperty(o)){var t=xn[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
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 wo?t=o:t=new wo(o,0);var a=new wo(t),r=new ei(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var h=[];if(i!==null){for(var y=s+i;t.pos<y;)h[h.length]=e.decode(t);if(t.pos!=y)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;h[h.length]=u}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}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 g=0;g<d.length;++g)if(d[g].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}(),ei=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 Xt;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}(),vt,js=0xdeadbeefcafe,ti=(js&16777215)==15715070,Ue=[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],Ws=(1<<26)/Ue[Ue.length-1],se=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=mt(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+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();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)+un(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=ue();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 ni(t):a=new oi(t),this.exp(o,a)},e.prototype.clone=function(){var o=ue();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=ue();return this.bitwiseTo(o,Fs,t),t},e.prototype.or=function(o){var t=ue();return this.bitwiseTo(o,cn,t),t},e.prototype.xor=function(o){var t=ue();return this.bitwiseTo(o,Kr,t),t},e.prototype.andNot=function(o){var t=ue();return this.bitwiseTo(o,Yr,t),t},e.prototype.not=function(){for(var o=ue(),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=ue();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=ue();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+Ms(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+=zs(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,cn)},e.prototype.clearBit=function(o){return this.changeBit(o,Yr)},e.prototype.flipBit=function(o){return this.changeBit(o,Kr)},e.prototype.add=function(o){var t=ue();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=ue();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=ue();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=ue();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=ue();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=ue(),a=ue();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=St(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 ni(t):t.isEven()?s=new Gs(t):s=new oi(t);var l=[],d=3,c=r-1,g=(1<<r)-1;if(l[1]=s.convert(this),r>1){var h=ue();for(s.sqrTo(l[1],h);d<=g;)l[d]=ue(),s.mulTo(h,l[d-2],l[d]),d+=2}var y=o.t-1,u,m=!0,f=ue(),v;for(a=un(o[y])-1;y>=0;){for(a>=c?u=o[y]>>a-c&g:(u=(o[y]&(1<<a+1)-1)<<c-a,y>0&&(u|=o[y-1]>>this.DB+a-c)),d=r;!(u&1);)u>>=1,--d;if((a-=d)<0&&(a+=this.DB,--y),m)l[u].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,f),s.sqrTo(f,i),d-=2;d>0?s.sqrTo(i,f):(v=i,i=f,f=v),s.mulTo(f,l[u],i)}for(;y>=0&&!(o[y]&1<<a);)s.sqrTo(i,f),v=i,i=f,f=v,--a<0&&(a=this.DB-1,--y)}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=St(1),s=St(0),l=St(0),d=St(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 Us)},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]<=Ue[Ue.length-1]){for(t=0;t<Ue.length;++t)if(a[0]==Ue[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ue.length;){for(var r=Ue[t],i=t+1;i<Ue.length&&r<Ws;)r*=Ue[i++];for(r=a.modInt(r);t<i;)if(r%Ue[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:ri(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=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-un(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var g=s.t,h=s[g-1];if(h!=0){var y=h*(1<<this.F1)+(g>1?s[g-2]>>this.F2:0),u=this.FV/y,m=(1<<this.F1)/y,f=1<<this.F2,v=a.t,E=v-g,p=t??ue();for(s.dlShiftTo(E,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(g,p),p.subTo(s,s);s.t<g;)s[s.t++]=0;for(;--E>=0;){var b=a[--v]==h?this.DM:Math.floor(a[v]*u+(a[v-1]+f)*m);if((a[v]+=s.am(0,b,a,E,0,g))<b)for(s.dlShiftTo(E,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(g,t),l!=d&&e.ZERO.subTo(t,t)),a.t=g,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=ue(),r=ue(),i=t.convert(this),s=un(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=St(a),i=ue(),s=ue(),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=ri(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),cn,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>Ue.length&&(o=Ue.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ue[Math.floor(Math.random()*Ue.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=ue();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),cn,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}(),Us=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}(),ni=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}(),oi=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=ue();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(se.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=ue();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}(),Gs=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),se.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=ue();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 ue(){return new se(null)}function Re(e,o){return new se(e,o)}var ai=typeof navigator<"u";ai&&ti&&navigator.appName=="Microsoft Internet Explorer"?(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,g=this[o++]>>15,h=d*c+g*l;c=l*c+((h&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(h>>>15)+d*g+(i>>>30),a[r++]=c&1073741823}return i},vt=30):ai&&ti&&navigator.appName!="Netscape"?(se.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},vt=26):(se.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,g=this[o++]>>14,h=d*c+g*l;c=l*c+((h&16383)<<14)+a[r]+i,i=(c>>28)+(h>>14)+d*g,a[r++]=c&268435455}return i},vt=28),se.prototype.DB=vt,se.prototype.DM=(1<<vt)-1,se.prototype.DV=1<<vt;var Ao=52;se.prototype.FV=Math.pow(2,Ao),se.prototype.F1=Ao-vt,se.prototype.F2=2*vt-Ao;var fn=[],jt,at;for(jt="0".charCodeAt(0),at=0;at<=9;++at)fn[jt++]=at;for(jt="a".charCodeAt(0),at=10;at<36;++at)fn[jt++]=at;for(jt="A".charCodeAt(0),at=10;at<36;++at)fn[jt++]=at;function ri(e,o){var t=fn[e.charCodeAt(o)];return t??-1}function St(e){var o=ue();return o.fromInt(e),o}function un(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}se.ZERO=St(0),se.ONE=St(1);var $s=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 Zs(){return new $s}var ii=256,hn,Ct=null,ct;if(Ct==null){Ct=[],ct=0;var gn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ko=new Uint32Array(256);for(window.crypto.getRandomValues(ko),gn=0;gn<ko.length;++gn)Ct[ct++]=ko[gn]&255}var mn=0,yn=function(e){if(mn=mn||0,mn>=256||ct>=ii){window.removeEventListener?window.removeEventListener("mousemove",yn,!1):window.detachEvent&&window.detachEvent("onmousemove",yn);return}try{var o=e.x+e.y;Ct[ct++]=o&255,mn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",yn,!1):window.attachEvent&&window.attachEvent("onmousemove",yn))}function Ks(){if(hn==null){for(hn=Zs();ct<ii;){var e=Math.floor(65536*Math.random());Ct[ct++]=e&255}for(hn.init(Ct),ct=0;ct<Ct.length;++ct)Ct[ct]=0;ct=0}return hn.next()}var To=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Ks()},e}();function Ys(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 Re(i,16)}function Qs(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 To,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 se(t)}var Js=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=Re(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=Qs(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=Re(o,16),this.e=parseInt(t,16),this.d=Re(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=Re(o,16),this.e=parseInt(t,16),this.d=Re(a,16),this.p=Re(r,16),this.q=Re(i,16),this.dmp1=Re(s,16),this.dmq1=Re(l,16),this.coeff=Re(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new To,r=o>>1;this.e=parseInt(t,16);for(var i=new se(t,16);;){for(;this.p=new se(o-r,1,a),!(this.p.subtract(se.ONE).gcd(i).compareTo(se.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new se(r,1,a),!(this.q.subtract(se.ONE).gcd(i).compareTo(se.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(se.ONE),d=this.q.subtract(se.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(se.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=Re(o,16),a=this.doPrivate(t);return a==null?null:Xs(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new To,i=o>>1;this.e=parseInt(t,16);var s=new se(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var y=l.p;l.p=l.q,l.q=y}var u=l.p.subtract(se.ONE),m=l.q.subtract(se.ONE),f=u.multiply(m);f.gcd(s).compareTo(se.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(f),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},g=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(g,0)})})},h=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(se.ONE).gcda(s,function(y){y.compareTo(se.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(g,0):setTimeout(h,0)})})};setTimeout(h,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=ec(a),i=r+t(o).toString(),s=Ys(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=Re(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=tc(s);return l==a(o).toString()},e}();function Xs(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 xn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ec(e){return xn[e]||""}function tc(e){for(var o in xn)if(xn.hasOwnProperty(o)){var t=xn[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
|
|
@@ -87,35 +87,35 @@ version: 2.9.0
|
|
|
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 $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 se(r,16),l=s.xor(e).add(se.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=$,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,g=t.DERUTF8String,h=t.DERNumericString,y=t.DERPrintableString,u=t.DERTeletexString,m=t.DERIA5String,f=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var T=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":")==-1)throw"undefined key: "+T;if(T=="bool")return new a(e[T]);if(T=="int")return new r(e[T]);if(T=="bitstr")return new i(e[T]);if(T=="octstr")return new s(e[T]);if(T=="null")return new l(e[T]);if(T=="oid")return new d(e[T]);if(T=="enum")return new c(e[T]);if(T=="utf8str")return new g(e[T]);if(T=="numstr")return new h(e[T]);if(T=="prnstr")return new y(e[T]);if(T=="telstr")return new u(e[T]);if(T=="ia5str")return new m(e[T]);if(T=="utctime")return new f(e[T]);if(T=="gentime")return new v(e[T]);if(T=="seq"){for(var I=e[T],_=[],L=0;L<I.length;L++){var A=x(I[L]);_.push(A)}return new E({array:_})}if(T=="set"){for(var I=e[T],_=[],L=0;L<I.length;L++){var A=x(I[L]);_.push(A)}return new p({array:_})}if(T=="tag"){var B=e[T];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var w=x(B[2]);return new b({tag:B[0],explicit:B[1],obj:w})}else{var C={};if(B.explicit!==void 0&&(C.explicit=B.explicit),B.tag!==void 0&&(C.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=x(B.obj),new b(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},$.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 se(i,2);r=r+"."+c.toString(10),i=""}}return r},$.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 se(l,10),g=c.toString(2),h=7-g.length%7;h==7&&(h=0);for(var y="",u=0;u<h;u++)y+="0";g=y+g;for(var u=0;u<g.length-1;u+=7){var m=g.substr(u,7);u!=g.length-7&&(m="1"+m),d+=o(parseInt(m,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},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},_e.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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),g=r(String(i.getMinutes()),2),h=r(String(i.getSeconds()),2),y=s+l+d+c+g+h;if(a===!0){var u=i.getMilliseconds();if(u!=0){var m=r(String(u),3);m=m.replace(/[0]+$/,""),y=y+"."+m}}return y+"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}},_e.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},_e.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(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))},_e.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}$.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))},_e.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 se(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 g=s.substr(c,7);c!=s.length-7&&(g="1"+g),r+=o(parseInt(g,2))}return r};$.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=$.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))},_e.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(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))},_e.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},_e.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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))},_e.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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}},_e.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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)},_e.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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)))},_e.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var nc=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)}}(),li=function(e){nc(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)?Ps.decode(t):Co.unarmor(t),l=Vs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Re(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Re(d,16);var c=l.sub[4].getHexStringValue();this.p=Re(c,16);var g=l.sub[5].getHexStringValue();this.q=Re(g,16);var h=l.sub[6].getHexStringValue();this.dmp1=Re(h,16);var y=l.sub[7].getHexStringValue();this.dmq1=Re(y,16);var u=l.sub[8].getHexStringValue();this.coeff=Re(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],f=m.sub[0];a=f.sub[0].getHexStringValue(),this.n=Re(a,16),r=f.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Re(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},a=new $.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return dn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),a=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new $.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return dn(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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 se(r,16),l=s.xor(e).add(se.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=$,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,g=t.DERUTF8String,h=t.DERNumericString,y=t.DERPrintableString,u=t.DERTeletexString,m=t.DERIA5String,f=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var T=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+T+":")==-1)throw"undefined key: "+T;if(T=="bool")return new a(e[T]);if(T=="int")return new r(e[T]);if(T=="bitstr")return new i(e[T]);if(T=="octstr")return new s(e[T]);if(T=="null")return new l(e[T]);if(T=="oid")return new d(e[T]);if(T=="enum")return new c(e[T]);if(T=="utf8str")return new g(e[T]);if(T=="numstr")return new h(e[T]);if(T=="prnstr")return new y(e[T]);if(T=="telstr")return new u(e[T]);if(T=="ia5str")return new m(e[T]);if(T=="utctime")return new f(e[T]);if(T=="gentime")return new v(e[T]);if(T=="seq"){for(var R=e[T],_=[],L=0;L<R.length;L++){var A=x(R[L]);_.push(A)}return new E({array:_})}if(T=="set"){for(var R=e[T],_=[],L=0;L<R.length;L++){var A=x(R[L]);_.push(A)}return new p({array:_})}if(T=="tag"){var B=e[T];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var w=x(B[2]);return new b({tag:B[0],explicit:B[1],obj:w})}else{var C={};if(B.explicit!==void 0&&(C.explicit=B.explicit),B.tag!==void 0&&(C.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=x(B.obj),new b(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},$.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 se(i,2);r=r+"."+c.toString(10),i=""}}return r},$.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 se(l,10),g=c.toString(2),h=7-g.length%7;h==7&&(h=0);for(var y="",u=0;u<h;u++)y+="0";g=y+g;for(var u=0;u<g.length-1;u+=7){var m=g.substr(u,7);u!=g.length-7&&(m="1"+m),d+=o(parseInt(m,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},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},_e.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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),g=r(String(i.getMinutes()),2),h=r(String(i.getSeconds()),2),y=s+l+d+c+g+h;if(a===!0){var u=i.getMilliseconds();if(u!=0){var m=r(String(u),3);m=m.replace(/[0]+$/,""),y=y+"."+m}}return y+"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}},_e.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},_e.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(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))},_e.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}$.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))},_e.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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 se(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 g=s.substr(c,7);c!=s.length-7&&(g="1"+g),r+=o(parseInt(g,2))}return r};$.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=$.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))},_e.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new se(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))},_e.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},_e.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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))},_e.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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}},_e.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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)},_e.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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)))},_e.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var nc=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)}}(),li=function(e){nc(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)?Ps.decode(t):Co.unarmor(t),l=Vs.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Re(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Re(d,16);var c=l.sub[4].getHexStringValue();this.p=Re(c,16);var g=l.sub[5].getHexStringValue();this.q=Re(g,16);var h=l.sub[6].getHexStringValue();this.dmp1=Re(h,16);var y=l.sub[7].getHexStringValue();this.dmq1=Re(y,16);var u=l.sub[8].getHexStringValue();this.coeff=Re(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],f=m.sub[0];a=f.sub[0].getHexStringValue(),this.n=Re(a,16),r=f.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Re(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},a=new $.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return dn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),a=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new $.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return dn(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
92
|
`)},o.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},o.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
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}(Js),Bo,oc=typeof process<"u"?(Bo=process.env)===null||Bo===void 0?void 0:Bo.npm_package_version:void 0,ac=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 li(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(Jr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return dn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return dn(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,Jr(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new li,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=oc,e}();const si=new ac,Wt=rc();function rc(){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 ci=
|
|
97
|
-
`),Eo=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},hc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},pn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},gc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},gi=(e,o)=>
|
|
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}(Js),Bo,oc=typeof process<"u"?(Bo=process.env)===null||Bo===void 0?void 0:Bo.npm_package_version:void 0,ac=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 li(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(Jr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return dn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return dn(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,Jr(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new li,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=oc,e}();const si=new ac,Wt=rc();function rc(){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 ci=Je.enc.Utf8.parse("ABCDEF1234123412");function ic(e,o){o=o||Wt;const t=Je.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Je.enc.Utf8.parse(e);break;case"object":a=Je.enc.Utf8.parse(JSON.stringify(e));break;default:a=Je.enc.Utf8.parse(e.toString())}return Je.AES.encrypt(a,t,{iv:ci,mode:Je.mode.CBC,padding:Je.pad.ZeroPadding}).toString()}function di(e,o){o=o||Wt;const t=Je.enc.Utf8.parse(o),a=Je.AES.decrypt(e,t,{iv:ci,mode:Je.mode.CBC,padding:Je.pad.ZeroPadding});return Je.enc.Utf8.stringify(a).toString()}function lc(e){si.setPublicKey(e)}function sc(e){return si.encrypt(e)}function fi(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 cc(e){const{paramType:o,data:t,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(t,"string"):["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(t)}function Ut(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)}&`}}lc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=sc(Wt);return{c:ic(t,Wt),p:r}}window.getEncryptParam=Ut;function dc(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&fi(e.url)&&(e.data instanceof FormData?e.data=fc(e.data):cc(e))}function fc(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=Ut(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Wt,window.xhaesDecrypt=di;function ui(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&fi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=di(e.data.data.content,Wt);e.data=JSON.parse(a)}}const hi=window.config.requestErrorTip,dt=Fl.create({timeout:1e3*180});dt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),dc(e),e},e=>Promise.reject(e)),dt.interceptors.response.use(e=>{var o,t,a;return hi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&ce.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",duration:2}),ui(e),e},e=>{if(ui(e==null?void 0:e.response),hi)if(e.message.includes("timeout"))ce.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&ce.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&ce.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const uc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Eo=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},hc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},pn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},gc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},gi=(e,o)=>it(o,e),ft=(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},bn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),en=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}))},rt=(e,o)=>{let t=!0;const a=en(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},tn=(e,o)=>{var s;const t=e.match(/\{(.+?)\}/g),a=((s=e.split(`
|
|
98
98
|
`))==null?void 0:s.length)-1;let r="";if(a)for(let l=0;l<a;l++)r+=`
|
|
99
|
-
`;let i=e;if(t!=null&&t.length){for(const l of t){const d=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},vn=(e,o)=>{const t={dayjs:ve,...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},De=(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 g=c.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,y=g.match(h);for(let u=0;u<y.length;u++){const m=y[u],f=s[m];f!=null&&typeof f!="function"&&(g=g.replace(m,f))}(/\(.*\)/g.test(g)||/[+/\\*]/g.test(g))&&(g=vn(g,t)),e=e.replace(c,g)}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},Ve=(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:g}=n.inject(Be,{getGlobalModel:m=>{}}),h=De(t),y=async(m={})=>{if(!h||!a||!r)return;let f={};i.forEach(x=>{const{key:k,value:T}=x;if(typeof T=="object"&&T!=null&&T.id){let I={};const{id:_,prop:L,propKey:A,operate:B}=T;_==="THIS"?I=g(n.unref(c))||{}:I=g(_)||{};const w=n.unref(I[L]);let C=null;if(["date","range"].some(S=>ut(I==null?void 0:I.type,S))){const{value:S,type:O,mode:F}=B||{};if(S&&O&&F)switch(O){case"add":C=n.unref(w).add(S,F);break;case"minus":C=n.unref(w).subtract(S,F);break}C==null&&(C=n.unref(w)),C=(C==null?void 0:C.format((A==null?void 0:A.trim())||I.format))||""}else Object.prototype.toString.call(w)==="[object Object]"?A?C=w[A]:C=L?w[L]:w:ut(I==null?void 0:I.type,"select")&&n.unref(w)&&L&&Array.isArray(n.unref(w))?C=n.unref(w).map(S=>Object.prototype.hasOwnProperty.call(S,L)?S[L]:S):C=w;f[k]=C}else typeof T=="string"&&(f[k]=De(T))}),f={...window.config.requestParams,...m,...f};let v="";const E=Object.keys(f),p=E.length-1,b=E.length;E.forEach((x,k)=>{let T=f[x];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),k===0?b!==1?v+=`?${x}=${T}&`:v+=`?${x}=${T}`:k===p?v+=`${x}=${T}`:v+=`${x}=${T}&`});try{const x=["get","head"].includes(a),k={};let T=x?h+v:h;f.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${f.dataSqlId}`),Object.prototype.hasOwnProperty.call(f,"signal")&&(k.signal=f.signal);const I=await ft({baseURL:n.unref(d)||"",url:T,method:a,headers:r,data:x?{}:f,...k});return o(I),I}catch(x){console.error(x)}},u=l&&setInterval(y,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),y},wt=(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 u=0;u<d;u++){const m=r[u],{label:f,value:v}=m,E={...e[0],value:e[0][v]};i.add(f),h.push(E)}const y=e[0][a]||"";s.set(y,h)}else for(let h=0;h<l;h++){const y=e[h],u=y[a];i.add(u);for(let m=0;m<d;m++){const f=r[m],{label:v,value:E}=f,p={...y,value:y[E]||0};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),g=[];for(const[h,y]of s)g.push({name:h,data:y});return{dimensions:c,dataset:g}},At=(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},mi=(e,o)=>{const t=`${dr}/preview?pageId=${o}`,a=`${dr}/${o}`;return e==="preview"?t:a},rt=(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=vn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},it=(e={})=>{const{requestToken:o}=n.inject(ir,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(u,m)=>{}}),{getGlobalModel:a}=n.inject(Be,{getGlobalModel:u=>{}});e.dataType==="indicator"&&o();const r=u=>{const{around:m,unit:f,id:v}=u;let E="";const{pageMode:p="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,k=null;if(p==="design"){const T=b==null?void 0:b.find(C=>C.id===v);if(!T)return[];const{interval:I,intervalUnit:_,startTime:L,endTime:A,operate:B,useCurrentTime:w}=T||{};if(w&&(x=ve().subtract(I,_),k=ve()),L&&(x=ve(L)),A&&(k=ve(A)),B){const{type:C,value:R,mode:S}=B;switch(C){case"add":x=x&&x.add(R,S),k=k&&k.add(R,S);break;case"minus":x=x&&x.subtract(R,S),k=k&&k.subtract(R,S)}}}else{const T=a(v)||{};n.unref(T.startTime)&&(x=ve(n.unref(T.startTime))),n.unref(T.endTime)&&(k=ve(n.unref(T.endTime)))}if(x&&k){const T=k.diff(x,f.toLowerCase());E=`${m==="before"?"-":""}${T+1}`}return E?[E]:[]},i=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),s=u=>{const{calcWays:m=[],dateCalcTypes:f=[],activeKey:v,componentId:E=""}=u;if(v===5&&(m!=null&&m.length)&&(f!=null&&f.length)&&E){const p=m[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(u.calcWays=r({around:p[1],unit:f[0],id:E})),delete u.radioValue}i(u,"dataType")&&(u.fieldType==="DATE"&&(u.label=u.fieldName),u.dataType==="component"&&(u.fieldValue="${"+u.fieldValue+"}"),delete u.dataType),i(u,"activeKey")&&delete u.activeKey,i(u,"radioValue")&&delete u.radioValue,i(u,"indexCode")&&(u.hrpIndexCode=u.indexCode,delete u.indexCode),u.dataType!=="component"&&u.useCurrentTime&&(u.fieldValue=ve().format(u.dateFormat)),delete u.useCurrentTime},l=u=>{const m=[];return u!=null&&u.length&&He.cloneDeep(u).forEach(f=>{if(f.join&&f.conditions){const v=!f.conditions.some(E=>E.join&&E.conditions);f.conditions.forEach((E,p)=>{s(E),v?p<f.conditions.length-1?m.push({join:f.join,...E}):m.push(E):E.join&&E.conditions?m.push({conditions:l([E]),join:f.join}):m.push(E)})}else s(f),m.push(f)}),m},d=(u={},m)=>{if(u!=null&&u.sortCpnts&&m){const w=y(u);w&&(m.sort=w)}const{label:f,name:v,location:E,show:p,indexCode:b,calcType:x="COLUMN",builtInFormula:k,builtInValueSource:T,builtInCalcWay:I,formula:_,conditions:L,aggregate:A}=u;let B;if(L&&(B=l(L)),x==="COMPONENT"){const w={};return h(w,T),{label:f.trim(),columnName:v,show:p,calcType:x,componentAlias:I,componentValue:w.fieldValue||null}}else return{label:f.trim(),columnName:v,location:E,show:p,calcType:x,hrpIndexCode:b,aggregate:A,builtInFormula:k,builtInValueSource:T,builtInCalcWay:I,formula:_,conditions:B}},c=u=>{const m=[];for(const f of u)f.conditions?m.push(...c(f.conditions)):(f==null?void 0:f.dataType)==="component"&&m.push(f);return m},g=u=>{if(!u)return[];const{controlList:m=[],classificationList:f=[],rowHeaderList:v=[],dimensionList:E=[],seriesList:p=[],leftAxisList:b=[],rightAxisList:x=[],queryColumnList:k=[],indicators:T=[]}=u,I=[...f,...v,...E,...p,...b,...x,...k,...T],_=[];for(const w of I){const C=c((w==null?void 0:w.conditions)||[]);if(C!=null&&C.length){const R=C.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>{const O={};return S!=null&&S.dateFormat&&(O.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,indexCode:S.indexCode,typeGuid:S.typeGuid,...O}});if(R!=null&&R.length)for(const S of R)_.find(O=>O.keyName===S.keyName)||_.push(S)}}const L=m.concat(_),A=L.length,B=[];for(let w=0;w<A;w++){const C=L[w];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:R,keyName:S,conditionLabel:O,conditionKey:F,conditionValueType:V,prop:W,rule:U="NONE",notGlobal:M=!1,format:P,modelKey:z,indexCode:D,typeGuid:N}=C;let q=S||R;q&&W&&(q+=`-${W}`);let K=U;K==="NONE"&&(["startTime","endTime"].includes(W)?K=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":S!=null&&S.includes("startTime")?K=W==="GREATER_EQUAL":S!=null&&S.includes("endTime")?K=W==="LESS_EQUAL":K="EQUAL");const G={rule:K,label:O,fieldName:F,fieldValue:"",valueType:V,alias:q,globalCondition:!M,indexCode:D,typeGuid:N};h(G,R,{prop:W,dateFormat:P,modelKey:z,keyName:S}),B.push(G)}for(let w=B.length-1;w>=0;w--){const C=B[w];C.globalCondition||B.find(S=>S.alias===C.alias&&S.globalCondition)&&B.splice(w,1)}return B};function h(u,m,f){var B,w;const v=a(m)||{},{prop:E="",dateFormat:p="",modelKey:b="",keyName:x=""}=f||{},{value:k,format:T="YYYY-MM-DD",type:I="",useCurrentTime:_,RECORD:L}=v||{},A=p||T;if(ut(v.type,"date"))_?k?u.fieldValue=(B=n.unref(k))==null?void 0:B.format(A):u.fieldValue=ve().format(A):u.fieldValue=(w=n.unref(k))==null?void 0:w.format(A),u.dateFormat=A;else if(I==="ecanRangePicker"){let C=E;if(!E){const S=x&&x.split("-");S!=null&&S.length&&(C=S[S.length-1])}if(!C)return;let R=null;n.unref(v[C])&&(R=ve(n.unref(v[C]))),R&&(u.fieldValue=R==null?void 0:R.format(A)),u.dateFormat=A}else ut(I,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&L?u.fieldValue=L[b]:!b&&L?u.fieldValue=L.value:u.fieldValue=n.unref(k):u.fieldValue=n.unref(k)}const y=u=>{const{sortCpnts:m=[]}=u;let f,v="";for(const E of m){const p=a(E)||{},{type:b,RECORD:x}=p;if(ut(b,"image")&&ut(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(f={label:u.label,columnName:u.name,order:v,type:"NORMAL"}),f};return async(u={})=>{var K,G,ae,Q,le,re;t(e.id,!1);const{graphicConfig:m,type:f,isGroupTable:v=!1}=e;let{source:E,dataViewId:p,plugin:b="1",layer:x,chartType:k,classificationList:T=[],rowHeaderList:I=[],dimensionList:_=[],seriesList:L=[],leftAxisList:A=[],rightAxisList:B=[],queryColumnList:w=[],indicators:C=[],controlList:R=[],formFields:S={},idxLibMode:O,preview:F=!1}=m||{},V=[];(m==null?void 0:m.pageMode)==="design"?V=(m.sqlConditions??[]).map(Y=>{const X=Y.rule||"EQUAL",ne={};return i(Y,"globalCondition")||(ne.globalCondition=!0),{...Y,rule:X==="NONE"?"EQUAL":X,...ne}}):V=g(m);for(const Y of V)i(Y,"indexCode")&&(Y.hrpIndexCode=Y.indexCode,delete Y.indexCode);x==null&&(ut(f,["table"])?x="1":ut(f,["select","checkbox","radio"])?x="3":x="2");let W,U="";if(Array.isArray(T)&&T.length>0){const Y=T.length;for(let X=0;X<Y;X++){const ne=T[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie,dateFormat:we,typeGuid:qe="",truncations:Ne=[]}=ne;if(Te||Y===1){U=qe,W={label:xe.trim(),columnName:ke,show:Te,sort:y(ne)||$e,customGroup:Fe,conditions:l(Ie),typeGuid:qe},we&&(W.dateFormat=we),ke==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ze={};if(Array.isArray(Ne)&&Ne.length>0){const je=Ne.length;for(let We=0;We<je;We++){const ct=Ne[We]||{},{rule:Ke="",num:dt=0,name:H=""}=ct;Ke&&dt&&(Ze.num=dt,Ze.rule=Ke,H&&(Ze.otherGroupName=H))}}(K=Object.keys(Ze))!=null&&K.length&&(W.truncation=Ze);break}}}let M;if(Array.isArray(L)&&L.length>0){const Y=L.length;for(let X=0;X<Y;X++){const ne=L[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie}=ne;if(Te||Y===1){M={label:xe.trim(),columnName:ke,show:Te,sort:$e,customGroup:Fe,conditions:l(Ie)};break}}}const P=[];A==null||A.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))}),B==null||B.forEach(Y=>{Y.location="RIGHT",P.push(d(Y,W))}),C==null||C.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))});const z=[];w==null||w.forEach(Y=>{const{label:X,name:ne,location:xe,show:ke,indexCode:Te,sort:$e,typeGuid:Fe}=Y;let Ie=$e;if(u.sort){const{field:we,order:qe}=u.sort;let Ne=P.find(Ze=>Ze.label===we);!Ne&&X===we&&(Ne=Y),Ne&&(Ie={columnName:Ne.columnName,label:u.sort.field,order:qe.toUpperCase(),type:"NORMAL"})}z.push({label:X,columnName:ne,location:xe,show:ke,sort:Ie,calcType:"COLUMN",hrpIndexCode:Te,typeGuid:Fe})});const D=[];let N=[];if(Array.isArray(I)&&I.length>0?N=I:Array.isArray(_)&&_.length>0&&(N=_),N!=null&&N.length){const Y=N.length;for(let X=0;X<Y;X++){const ne=N[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:$e,customGroup:Fe,conditions:Ie,truncations:we,typeGuid:qe=""}=ne;let Ne=$e;if(u.sort){const{field:We,order:ct}=u.sort;let Ke=P.find(dt=>dt.label===We);!Ke&&ne.label===We&&(Ke=ne),Ke&&(Ne={columnName:Ke.columnName,label:u.sort.field,order:ct.toUpperCase(),type:"NORMAL"})}const Ze={label:xe.trim(),columnName:ke,show:Te,sort:Ne,customGroup:Fe,conditions:l(Ie),typeGuid:qe},je={};if(Array.isArray(we)&&we.length>0){const We=we.length;for(let ct=0;ct<We;ct++){const Ke=we[ct]||{},{rule:dt="",num:H=0,name:Z=""}=Ke;dt&&H&&(je.num=H,je.rule=dt,Z&&(je.otherGroupName=Z))}}(G=Object.keys(je))!=null&&G.length&&(Ze.truncation=je),D.push(Ze)}}if(ut(f,["text","proportion"])&&(k="zb"),v){if(D.length===0||P.length===0)return;k="grouptable"}else{if(x==="1"&&z.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!U||!S.labelField||!S.valueField))return}_!=null&&_.length&&(x="1",k="grouptable");let q=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!q){const{pathname:Y}=window==null?void 0:window.location;if(Y){const X=Y.split("/");X!=null&&X.length&&(q=X[X.length-1])}}if((Q=Object.keys(S))!=null&&Q.length){const Y=R.find(ne=>ne.conditionKey==="parentCode"),X={};if(Y){const ne=a(Y.id)||{};if(ne!=null&&ne.itemCodes)X.parentItemCodes=ne.itemCodes;else return}try{return await ft.post(`${cr}/diagram/formData`,{source:E,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:q,sqlConditions:V,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:sr}})}catch(ne){console.error(ne)}finally{}}else try{return await ft.post(`${cr}/diagram`,{source:E,dataViewId:p,plugin:b,layer:x,chartType:k,classification:W,series:M,indicatorList:P,queryColumns:v?[]:z,pageFlag:!0,pageId:q,sqlConditions:V.map(X=>{const{fieldValue:ne}=X,xe={};return ne&&Array.isArray(ne)&&(xe.fieldValue=JSON.stringify(ne)),{...X,...xe}}),idxLibMode:O,preview:F,rowHeaders:D,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:sr}})}catch(Y){console.error(Y)}finally{}}},mc=()=>{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}},yc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},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:At(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),d=n.ref(0),c=n.ref(0),g=n.ref(!1),h=n.ref();let y;const u=()=>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()})}),m=()=>{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 u(),m(),v(),window.addEventListener("resize",E),p(),g.value=!0},{immediate:!0});const f=n.ref({});n.provide("scaleValue",f);const v=()=>{if(r){h.value.style.width="100%",h.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,T=s.value||d.value,I=l.value||c.value,_=x/T;let L=k/I;(s.value!==1920||l.value!==1080)&&(L=l.value/s.value*x/I),f.value={widthScale:_,heightScale:L},h.value&&(h.value.style.transform=`scale(${_}, ${L})`),a(L)},E=He.debounce(async()=>{await u(),v()},100),p=()=>{const x=window.MutationObserver;y=new x(E),y.observe(h.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{y&&(y.disconnect(),y.takeRecords(),y=null)};return n.onMounted(()=>{g.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:h,ready:g}}}),Au="",xc={id:"container",ref:"container"};function pc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",xc,[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 yi=pe(ye(yc,[["render",pc],["__scopeId","data-v-b496b36e"]])),Do={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Ro=Se(Do),bc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Ro},setup(e,{expose:o}){mc();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(()=>De(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),d=n.computed(()=>e.theme),c=n.computed(()=>e.width),g=n.computed(()=>e.height),h=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:h,width:c,height:g});const y=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",N=>{let q=N;t.value||(q=parseFloat(g.value)*N+"px"),y.value.height=q}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),m=new Map;console.log("globalModel",m);const f=N=>m.get(N),v=(N,q)=>{u.value=q,m.set(N,q)},E=()=>{u.value=null},p=N=>{let q=N;if(q){const K=N.match(/\{(.+?)\}/g);if(K!=null&&K.length){let G=K[0].slice(1,-1).trim();const ae=G.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(G=G.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=n.unref(i).find(re=>re.keyName===G);if(le){const re=f(le.id),{type:Y,value:X,RECORD:ne}=re||{};ut(Y,["table","bar","combograph","line","pie","radar","scatter","list"])?q=ne[Q]:q=X}else q=""}}return q};n.provide(Be,{getGlobalModel:f,setGlobalModel:v,clearInteractiveData:E,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(N,q)=>{b.value[N]=q};n.provide(bt,{loadedData:b,setLoadedData:x});const k=[],T=()=>{k.pop()},I=N=>{k.push(N)},_=new Map,L=N=>_.get(N),A=(N,q)=>{_.set(N,q)};n.provide(lr,{popUseModalIds:T,pushUseModalIds:I,getModalModel:L,setModalModel:A});const B=Ml(),w=new Set,C=(N,q)=>{w.add(N),B.on(N,K=>typeof q[K]=="function"&&q[K]()),n.onBeforeUnmount(()=>{R(N)})},R=N=>{w.delete(N),B.off(N)},S=(N,q)=>{if(N==="PAGE"){const K=k.length;let G=[];if(K===0)G=[...w];else{const ae=k[K-1];G=[...L(ae)]}G.forEach(ae=>{B.emit(ae,q)})}else B.emit(N,q)};n.provide(zn,{onEvent:C,offEvent:R,emitEvent:S});const O=n.ref(0),F=()=>{O.value=n.unref(O)+1};n.provide(ir,{requestToken:F});const V=new Map,W=new Map,U=({requestFn:N=()=>{},sortNum:q=0,id:K=""})=>{if(V.has(q)){const G=V.get(q);G==null||G.push(N)}else V.set(q,[N]);W.set(K,N)},M=N=>new Promise((q,K)=>{const G=N.map(ae=>ae());Promise.all(G).then(ae=>{q(ae)}).catch(ae=>{K(ae)})}),P=N=>new Promise(async(q,K)=>{if(N){if(typeof N=="string"){const G=W.get(N);if(typeof G=="function"){const ae=ft.interceptors.response.use(Q=>(q(Q),Q),Q=>(K(Q),Promise.reject(Q)));G(),ft.interceptors.response.eject(ae)}}}else{const G=Array.from(V);G.sort((Q,le)=>le[0]-Q[0]);const ae=G.length;try{e.pageMode!=="design"&&n.unref(O)>0;for(let Q=0;Q<ae;Q++){const le=G[Q][1];await M(le)}}catch(Q){console.error(Q)}finally{V.clear(),q(null)}}});n.provide(ze,{setRequest:U,touchRequest:P});const z=()=>{B.emit(Jt)};n.provide(Jt,{emitRefreshPage:z});const D=N=>{B.on(Jt,()=>N()),n.onMounted(()=>{B.off(Jt)})};return n.onBeforeUnmount(()=>{V==null||V.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:f,onRefreshPage:D}),{providerConfig:a,configStyle:y}}}),Tu="";function vc(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 xi=pe(ye(bc,[["render",vc],["__scopeId","data-v-a6d93422"]])),Io={...Ae,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"},_o=Se(Io),pi=["refreshData","click","valueChange"],Oo="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=",Lo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlk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qIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",No=n.defineComponent({name:"EcanText",components:{Skeleton:ln},props:{..._o},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([w,C])=>{C==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=n.inject(Be,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{},getRecordValueByKeyName:w=>{}}),{setLoadedData:g}=n.inject(bt,{setLoadedData:(w,C)=>{}}),h=n.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:C,gradientOffset:R,gradientAngle:S,color:O}=e;w+=`background: linear-gradient(${S}, ${O}, ${C||"transparent"} ${R*100}%);-webkit-background-clip: text;color: transparent;`}return w}),y=n.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:C,gradientOffset:R,gradientAngle:S,color:O}=e,F=C||"transparent";w.background=`linear-gradient(${S}, ${O}, ${F} ${R*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),u=n.computed(()=>{var V;if(n.unref(t))return"NaN";const w=n.unref(r),C=e.increaseColor||e.color,R=e.declineColor||e.color;let S=e.text;S=S==null?void 0:S.replace(/\n|\\n/g,"<br/>"),S=S==null?void 0:S.replace(/\s(?!\{) | (?!\})\s/g," ");const O=S.match(/\{(.+?)\}/g)||[];let F="";if(O==null||O.length===0){if(S&&e.format==="percentage"&&!isNaN(+S)){const W=parseFloat(S),U=W*100,M=m(U.toFixed(2));W>=0?S=`<span style="color: ${M||C||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
99
|
+
`;let i=e;if(t!=null&&t.length){for(const l of t){const d=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},vn=(e,o)=>{const t={dayjs:be,...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},De=(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 g=c.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,y=g.match(h);for(let u=0;u<y.length;u++){const m=y[u],f=s[m];f!=null&&typeof f!="function"&&(g=g.replace(m,f))}(/\(.*\)/g.test(g)||/[+/\\*]/g.test(g))&&(g=vn(g,t)),e=e.replace(c,g)}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},je=(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:g}=n.inject(Be,{getGlobalModel:m=>{}}),h=De(t),y=async(m={})=>{if(!h||!a||!r)return;let f={};i.forEach(x=>{const{key:k,value:T}=x;if(typeof T=="object"&&T!=null&&T.id){let R={};const{id:_,prop:L,propKey:A,operate:B}=T;_==="THIS"?R=g(n.unref(c))||{}:R=g(_)||{};const w=n.unref(R[L]);let C=null;if(["date","range"].some(S=>ft(R==null?void 0:R.type,S))){const{value:S,type:O,mode:F}=B||{};if(S&&O&&F)switch(O){case"add":C=n.unref(w).add(S,F);break;case"minus":C=n.unref(w).subtract(S,F);break}C==null&&(C=n.unref(w)),C=(C==null?void 0:C.format((A==null?void 0:A.trim())||R.format))||""}else Object.prototype.toString.call(w)==="[object Object]"?A?C=w[A]:C=L?w[L]:w:ft(R==null?void 0:R.type,"select")&&n.unref(w)&&L&&Array.isArray(n.unref(w))?C=n.unref(w).map(S=>Object.prototype.hasOwnProperty.call(S,L)?S[L]:S):C=w;f[k]=C}else typeof T=="string"&&(f[k]=De(T))}),f={...window.config.requestParams,...m,...f};let v="";const E=Object.keys(f),p=E.length-1,b=E.length;E.forEach((x,k)=>{let T=f[x];Object.prototype.toString.call(T)==="[object Object]"&&(T=JSON.stringify(T)),k===0?b!==1?v+=`?${x}=${T}&`:v+=`?${x}=${T}`:k===p?v+=`${x}=${T}`:v+=`${x}=${T}&`});try{const x=["get","head"].includes(a),k={};let T=x?h+v:h;f.dataSqlId&&!T.includes("dataSqlId")&&(T+=`${T.includes("?")?"&":"?"}dataSqlId=${f.dataSqlId}`),Object.prototype.hasOwnProperty.call(f,"signal")&&(k.signal=f.signal);const R=await dt({baseURL:n.unref(d)||"",url:T,method:a,headers:r,data:x?{}:f,...k});return o(R),R}catch(x){console.error(x)}},u=l&&setInterval(y,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),y},wt=(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 u=0;u<d;u++){const m=r[u],{label:f,value:v}=m,E={...e[0],value:e[0][v]};i.add(f),h.push(E)}const y=e[0][a]||"";s.set(y,h)}else for(let h=0;h<l;h++){const y=e[h],u=y[a];i.add(u);for(let m=0;m<d;m++){const f=r[m],{label:v,value:E}=f,p={...y,value:y[E]||0};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),g=[];for(const[h,y]of s)g.push({name:h,data:y});return{dimensions:c,dataset:g}},At=(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},mi=(e,o)=>{const t=`${dr}/preview?pageId=${o}`,a=`${dr}/${o}`;return e==="preview"?t:a},it=(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=vn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},lt=(e={})=>{const{requestToken:o}=n.inject(ir,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(u,m)=>{}}),{getGlobalModel:a}=n.inject(Be,{getGlobalModel:u=>{}});e.dataType==="indicator"&&o();const r=u=>{const{around:m,unit:f,id:v}=u;let E="";const{pageMode:p="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,k=null;if(p==="design"){const T=b==null?void 0:b.find(C=>C.id===v);if(!T)return[];const{interval:R,intervalUnit:_,startTime:L,endTime:A,operate:B,useCurrentTime:w}=T||{};if(w&&(x=be().subtract(R,_),k=be()),L&&(x=be(L)),A&&(k=be(A)),B){const{type:C,value:I,mode:S}=B;switch(C){case"add":x=x&&x.add(I,S),k=k&&k.add(I,S);break;case"minus":x=x&&x.subtract(I,S),k=k&&k.subtract(I,S)}}}else{const T=a(v)||{};n.unref(T.startTime)&&(x=be(n.unref(T.startTime))),n.unref(T.endTime)&&(k=be(n.unref(T.endTime)))}if(x&&k){const T=k.diff(x,f.toLowerCase());E=`${m==="before"?"-":""}${T+1}`}return E?[E]:[]},i=(u,m)=>Object.prototype.hasOwnProperty.call(u,m),s=u=>{const{calcWays:m=[],dateCalcTypes:f=[],activeKey:v,componentId:E=""}=u;if(v===5&&(m!=null&&m.length)&&(f!=null&&f.length)&&E){const p=m[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(u.calcWays=r({around:p[1],unit:f[0],id:E})),delete u.radioValue}i(u,"dataType")&&(u.fieldType==="DATE"&&(u.label=u.fieldName),u.dataType==="component"&&(u.fieldValue="${"+u.fieldValue+"}"),delete u.dataType),i(u,"activeKey")&&delete u.activeKey,i(u,"radioValue")&&delete u.radioValue,i(u,"indexCode")&&(u.hrpIndexCode=u.indexCode,delete u.indexCode),u.dataType!=="component"&&u.useCurrentTime&&(u.fieldValue=be().format(u.dateFormat)),delete u.useCurrentTime},l=u=>{const m=[];return u!=null&&u.length&&Ve.cloneDeep(u).forEach(f=>{if(f.join&&f.conditions){const v=!f.conditions.some(E=>E.join&&E.conditions);f.conditions.forEach((E,p)=>{s(E),v?p<f.conditions.length-1?m.push({join:f.join,...E}):m.push(E):E.join&&E.conditions?m.push({conditions:l([E]),join:f.join}):m.push(E)})}else s(f),m.push(f)}),m},d=(u={},m)=>{if(u!=null&&u.sortCpnts&&m){const w=y(u);w&&(m.sort=w)}const{label:f,name:v,location:E,show:p,indexCode:b,calcType:x="COLUMN",builtInFormula:k,builtInValueSource:T,builtInCalcWay:R,formula:_,conditions:L,aggregate:A}=u;let B;if(L&&(B=l(L)),x==="COMPONENT"){const w={};return h(w,T),{label:f.trim(),columnName:v,show:p,calcType:x,componentAlias:R,componentValue:w.fieldValue||null}}else return{label:f.trim(),columnName:v,location:E,show:p,calcType:x,hrpIndexCode:b,aggregate:A,builtInFormula:k,builtInValueSource:T,builtInCalcWay:R,formula:_,conditions:B}},c=u=>{const m=[];for(const f of u)f.conditions?m.push(...c(f.conditions)):(f==null?void 0:f.dataType)==="component"&&m.push(f);return m},g=u=>{if(!u)return[];const{controlList:m=[],classificationList:f=[],rowHeaderList:v=[],dimensionList:E=[],seriesList:p=[],leftAxisList:b=[],rightAxisList:x=[],queryColumnList:k=[],indicators:T=[]}=u,R=[...f,...v,...E,...p,...b,...x,...k,...T],_=[];for(const w of R){const C=c((w==null?void 0:w.conditions)||[]);if(C!=null&&C.length){const I=C.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>{const O={};return S!=null&&S.dateFormat&&(O.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,indexCode:S.indexCode,typeGuid:S.typeGuid,...O}});if(I!=null&&I.length)for(const S of I)_.find(O=>O.keyName===S.keyName)||_.push(S)}}const L=m.concat(_),A=L.length,B=[];for(let w=0;w<A;w++){const C=L[w];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:I,keyName:S,conditionLabel:O,conditionKey:F,conditionValueType:V,prop:W,rule:U="NONE",notGlobal:M=!1,format:P,modelKey:z,indexCode:D,typeGuid:N}=C;let H=S||I;H&&W&&(H+=`-${W}`);let K=U;K==="NONE"&&(["startTime","endTime"].includes(W)?K=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":S!=null&&S.includes("startTime")?K=W==="GREATER_EQUAL":S!=null&&S.includes("endTime")?K=W==="LESS_EQUAL":K="EQUAL");const G={rule:K,label:O,fieldName:F,fieldValue:"",valueType:V,alias:H,globalCondition:!M,indexCode:D,typeGuid:N};h(G,I,{prop:W,dateFormat:P,modelKey:z,keyName:S}),B.push(G)}for(let w=B.length-1;w>=0;w--){const C=B[w];C.globalCondition||B.find(S=>S.alias===C.alias&&S.globalCondition)&&B.splice(w,1)}return B};function h(u,m,f){var B,w;const v=a(m)||{},{prop:E="",dateFormat:p="",modelKey:b="",keyName:x=""}=f||{},{value:k,format:T="YYYY-MM-DD",type:R="",useCurrentTime:_,RECORD:L}=v||{},A=p||T;if(ft(v.type,"date"))_?k?u.fieldValue=(B=n.unref(k))==null?void 0:B.format(A):u.fieldValue=be().format(A):u.fieldValue=(w=n.unref(k))==null?void 0:w.format(A),u.dateFormat=A;else if(R==="ecanRangePicker"){let C=E;if(!E){const S=x&&x.split("-");S!=null&&S.length&&(C=S[S.length-1])}if(!C)return;let I=null;n.unref(v[C])&&(I=be(n.unref(v[C]))),I&&(u.fieldValue=I==null?void 0:I.format(A)),u.dateFormat=A}else ft(R,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&L?u.fieldValue=L[b]:!b&&L?u.fieldValue=L.value:u.fieldValue=n.unref(k):u.fieldValue=n.unref(k)}const y=u=>{const{sortCpnts:m=[]}=u;let f,v="";for(const E of m){const p=a(E)||{},{type:b,RECORD:x}=p;if(ft(b,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(f={label:u.label,columnName:u.name,order:v,type:"NORMAL"}),f};return async(u={})=>{var K,G,ae,Q,le,re;t(e.id,!1);const{graphicConfig:m,type:f,isGroupTable:v=!1}=e;let{source:E,dataViewId:p,plugin:b="1",layer:x,chartType:k,classificationList:T=[],rowHeaderList:R=[],dimensionList:_=[],seriesList:L=[],leftAxisList:A=[],rightAxisList:B=[],queryColumnList:w=[],indicators:C=[],controlList:I=[],formFields:S={},idxLibMode:O,preview:F=!1}=m||{},V=[];(m==null?void 0:m.pageMode)==="design"?V=(m.sqlConditions??[]).map(Y=>{const X=Y.rule||"EQUAL",ne={};return i(Y,"globalCondition")||(ne.globalCondition=!0),{...Y,rule:X==="NONE"?"EQUAL":X,...ne}}):V=g(m);for(const Y of V)i(Y,"indexCode")&&(Y.hrpIndexCode=Y.indexCode,delete Y.indexCode);x==null&&(ft(f,["table"])?x="1":ft(f,["select","checkbox","radio"])?x="3":x="2");let W,U="";if(Array.isArray(T)&&T.length>0){const Y=T.length;for(let X=0;X<Y;X++){const ne=T[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:Ge,customGroup:Ne,conditions:Ie,dateFormat:we,typeGuid:qe="",truncations:Fe=[]}=ne;if(Te||Y===1){U=qe,W={label:xe.trim(),columnName:ke,show:Te,sort:y(ne)||Ge,customGroup:Ne,conditions:l(Ie),typeGuid:qe},we&&(W.dateFormat=we),ke==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const $e={};if(Array.isArray(Fe)&&Fe.length>0){const Xe=Fe.length;for(let He=0;He<Xe;He++){const ut=Fe[He]||{},{rule:et="",num:tt=0,name:q=""}=ut;et&&tt&&($e.num=tt,$e.rule=et,q&&($e.otherGroupName=q))}}(K=Object.keys($e))!=null&&K.length&&(W.truncation=$e);break}}}let M;if(Array.isArray(L)&&L.length>0){const Y=L.length;for(let X=0;X<Y;X++){const ne=L[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:Ge,customGroup:Ne,conditions:Ie}=ne;if(Te||Y===1){M={label:xe.trim(),columnName:ke,show:Te,sort:Ge,customGroup:Ne,conditions:l(Ie)};break}}}const P=[];A==null||A.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))}),B==null||B.forEach(Y=>{Y.location="RIGHT",P.push(d(Y,W))}),C==null||C.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))});const z=[];w==null||w.forEach(Y=>{const{label:X,name:ne,location:xe,show:ke,indexCode:Te,sort:Ge,typeGuid:Ne}=Y;let Ie=Ge;if(u.sort){const{field:we,order:qe}=u.sort;let Fe=P.find($e=>$e.label===we);!Fe&&X===we&&(Fe=Y),Fe&&(Ie={columnName:Fe.columnName,label:u.sort.field,order:qe.toUpperCase(),type:"NORMAL"})}z.push({label:X,columnName:ne,location:xe,show:ke,sort:Ie,calcType:"COLUMN",hrpIndexCode:Te,typeGuid:Ne})});const D=[];let N=[];if(Array.isArray(R)&&R.length>0?N=R:Array.isArray(_)&&_.length>0&&(N=_),N!=null&&N.length){const Y=N.length;for(let X=0;X<Y;X++){const ne=N[X]||{},{label:xe="",name:ke="",show:Te=!1,sort:Ge,customGroup:Ne,conditions:Ie,truncations:we,typeGuid:qe="",dateFormat:Fe}=ne;let $e=Ge;if(u.sort){const{field:ut,order:et}=u.sort;let tt=P.find(q=>q.label===ut);!tt&&ne.label===ut&&(tt=ne),tt&&($e={columnName:tt.columnName,label:u.sort.field,order:et.toUpperCase(),type:"NORMAL"})}const Xe={label:xe.trim(),columnName:ke,show:Te,sort:$e,customGroup:Ne,conditions:l(Ie),typeGuid:qe,dateFormat:Fe},He={};if(Array.isArray(we)&&we.length>0){const ut=we.length;for(let et=0;et<ut;et++){const tt=we[et]||{},{rule:q="",num:Z=0,name:J=""}=tt;q&&Z&&(He.num=Z,He.rule=q,J&&(He.otherGroupName=J))}}(G=Object.keys(He))!=null&&G.length&&(Xe.truncation=He),D.push(Xe)}}if(ft(f,["text","proportion"])&&(k="zb"),v){if(D.length===0||P.length===0)return;k="grouptable"}else{if(x==="1"&&z.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!U||!S.labelField||!S.valueField))return}_!=null&&_.length&&(x="1",k="grouptable");let H=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!H){const{pathname:Y}=window==null?void 0:window.location;if(Y){const X=Y.split("/");X!=null&&X.length&&(H=X[X.length-1])}}if((Q=Object.keys(S))!=null&&Q.length){const Y=I.find(ne=>ne.conditionKey==="parentCode"),X={};if(Y){const ne=a(Y.id)||{};if(ne!=null&&ne.itemCodes)X.parentItemCodes=ne.itemCodes;else return}try{return await dt.post(`${cr}/diagram/formData`,{source:E,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:H,sqlConditions:V,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:sr}})}catch(ne){console.error(ne)}finally{}}else try{return await dt.post(`${cr}/diagram`,{source:E,dataViewId:p,plugin:b,layer:x,chartType:k,classification:W,series:M,indicatorList:P,queryColumns:v?[]:z,pageFlag:!0,pageId:H,sqlConditions:V.map(X=>{const{fieldValue:ne}=X,xe={};return ne&&Array.isArray(ne)&&(xe.fieldValue=JSON.stringify(ne)),{...X,...xe}}),idxLibMode:O,preview:F,rowHeaders:D,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:sr}})}catch(Y){console.error(Y)}finally{}}},mc=()=>{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}},yc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},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:At(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),d=n.ref(0),c=n.ref(0),g=n.ref(!1),h=n.ref();let y;const u=()=>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()})}),m=()=>{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 u(),m(),v(),window.addEventListener("resize",E),p(),g.value=!0},{immediate:!0});const f=n.ref({});n.provide("scaleValue",f);const v=()=>{if(r){h.value.style.width="100%",h.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,T=s.value||d.value,R=l.value||c.value,_=x/T;let L=k/R;(s.value!==1920||l.value!==1080)&&(L=l.value/s.value*x/R),f.value={widthScale:_,heightScale:L},h.value&&(h.value.style.transform=`scale(${_}, ${L})`),a(L)},E=Ve.debounce(async()=>{await u(),v()},100),p=()=>{const x=window.MutationObserver;y=new x(E),y.observe(h.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{y&&(y.disconnect(),y.takeRecords(),y=null)};return n.onMounted(()=>{g.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:h,ready:g}}}),Au="",xc={id:"container",ref:"container"};function pc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",xc,[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 yi=pe(ye(yc,[["render",pc],["__scopeId","data-v-b496b36e"]])),Do={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Ro=Se(Do),bc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Ro},setup(e,{expose:o}){mc();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(()=>De(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),d=n.computed(()=>e.theme),c=n.computed(()=>e.width),g=n.computed(()=>e.height),h=n.ref("");n.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:h,width:c,height:g});const y=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",N=>{let H=N;t.value||(H=parseFloat(g.value)*N+"px"),y.value.height=H}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),m=new Map;console.log("globalModel",m);const f=N=>m.get(N),v=(N,H)=>{u.value=H,m.set(N,H)},E=()=>{u.value=null},p=N=>{let H=N;if(H){const K=N.match(/\{(.+?)\}/g);if(K!=null&&K.length){let G=K[0].slice(1,-1).trim();const ae=G.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(G=G.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=n.unref(i).find(re=>re.keyName===G);if(le){const re=f(le.id),{type:Y,value:X,RECORD:ne}=re||{};ft(Y,["table","bar","combograph","line","pie","radar","scatter","list"])?H=ne[Q]:H=X}else H=""}}return H};n.provide(Be,{getGlobalModel:f,setGlobalModel:v,clearInteractiveData:E,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(N,H)=>{b.value[N]=H};n.provide(bt,{loadedData:b,setLoadedData:x});const k=[],T=()=>{k.pop()},R=N=>{k.push(N)},_=new Map,L=N=>_.get(N),A=(N,H)=>{_.set(N,H)};n.provide(lr,{popUseModalIds:T,pushUseModalIds:R,getModalModel:L,setModalModel:A});const B=Ml(),w=new Set,C=(N,H)=>{w.add(N),B.on(N,K=>typeof H[K]=="function"&&H[K]()),n.onBeforeUnmount(()=>{I(N)})},I=N=>{w.delete(N),B.off(N)},S=(N,H)=>{if(N==="PAGE"){const K=k.length;let G=[];if(K===0)G=[...w];else{const ae=k[K-1];G=[...L(ae)]}G.forEach(ae=>{B.emit(ae,H)})}else B.emit(N,H)};n.provide(zn,{onEvent:C,offEvent:I,emitEvent:S});const O=n.ref(0),F=()=>{O.value=n.unref(O)+1};n.provide(ir,{requestToken:F});const V=new Map,W=new Map,U=({requestFn:N=()=>{},sortNum:H=0,id:K=""})=>{if(V.has(H)){const G=V.get(H);G==null||G.push(N)}else V.set(H,[N]);W.set(K,N)},M=N=>new Promise((H,K)=>{const G=N.map(ae=>ae());Promise.all(G).then(ae=>{H(ae)}).catch(ae=>{K(ae)})}),P=N=>new Promise(async(H,K)=>{if(N){if(typeof N=="string"){const G=W.get(N);if(typeof G=="function"){const ae=dt.interceptors.response.use(Q=>(H(Q),Q),Q=>(K(Q),Promise.reject(Q)));G(),dt.interceptors.response.eject(ae)}}}else{const G=Array.from(V);G.sort((Q,le)=>le[0]-Q[0]);const ae=G.length;try{e.pageMode!=="design"&&n.unref(O)>0;for(let Q=0;Q<ae;Q++){const le=G[Q][1];await M(le)}}catch(Q){console.error(Q)}finally{V.clear(),H(null)}}});n.provide(ze,{setRequest:U,touchRequest:P});const z=()=>{B.emit(Jt)};n.provide(Jt,{emitRefreshPage:z});const D=N=>{B.on(Jt,()=>N()),n.onMounted(()=>{B.off(Jt)})};return n.onBeforeUnmount(()=>{V==null||V.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:f,onRefreshPage:D}),{providerConfig:a,configStyle:y}}}),Tu="";function vc(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 xi=pe(ye(bc,[["render",vc],["__scopeId","data-v-a6d93422"]])),Io={...Ae,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"},_o=Se(Io),pi=["refreshData","click","valueChange"],Oo="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+Nkd0OgyAMRjvqc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e+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",No=n.defineComponent({name:"EcanText",components:{Skeleton:ln},props:{..._o},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([w,C])=>{C==="static"&&(r.value=w)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=n.inject(Be,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{},getRecordValueByKeyName:w=>{}}),{setLoadedData:g}=n.inject(bt,{setLoadedData:(w,C)=>{}}),h=n.computed(()=>{let w="";if(e.gradientShow){const{gradientColor:C,gradientOffset:I,gradientAngle:S,color:O}=e;w+=`background: linear-gradient(${S}, ${O}, ${C||"transparent"} ${I*100}%);-webkit-background-clip: text;color: transparent;`}return w}),y=n.computed(()=>{const w={};if(e.gradientShow){const{gradientColor:C,gradientOffset:I,gradientAngle:S,color:O}=e,F=C||"transparent";w.background=`linear-gradient(${S}, ${O}, ${F} ${I*100}%)`,w["-webkit-background-clip"]="text",w.color="transparent"}return w}),u=n.computed(()=>{var V;if(n.unref(t))return"NaN";const w=n.unref(r),C=e.increaseColor||e.color,I=e.declineColor||e.color;let S=e.text;S=S==null?void 0:S.replace(/\n|\\n/g,"<br/>"),S=S==null?void 0:S.replace(/\s(?!\{) | (?!\})\s/g," ");const O=S.match(/\{(.+?)\}/g)||[];let F="";if(O==null||O.length===0){if(S&&e.format==="percentage"&&!isNaN(+S)){const W=parseFloat(S),U=W*100,M=m(U.toFixed(2));W>=0?S=`<span style="color: ${M||C||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
101
|
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||C||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Oo}"/>
|
|
102
102
|
</div>
|
|
103
103
|
<span style="color: ${M||e.color};${n.unref(h)}">${Math.abs(+U).toFixed(2)}%</span>
|
|
104
|
-
</span>`:S=`<span style="color: ${M||
|
|
104
|
+
</span>`:S=`<span style="color: ${M||I||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||
|
|
106
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||I||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Lo}"/>
|
|
107
107
|
</div>
|
|
108
108
|
<span style="color: ${M||e.color};${n.unref(h)}">${e.minusSignShow?"-":""}${Math.abs(+U).toFixed(2)}%</span>
|
|
109
|
-
</span>`}F=S}for(let W=0;W<O.length;W++){const U=O[W],M=(V=U==null?void 0:U.slice(1,U.length-1))==null?void 0:V.trim();let P=M;const z=M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let N=0;N<z.length;N++){const
|
|
109
|
+
</span>`}F=S}for(let W=0;W<O.length;W++){const U=O[W],M=(V=U==null?void 0:U.slice(1,U.length-1))==null?void 0:V.trim();let P=M;const z=M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let N=0;N<z.length;N++){const H=z[N],K=w[H];K&&(P=M.replace(H,c(String(K))||K))}if(/\(.*\)/g.test(P)){const N=vn(P);N!=null&&(P=N)}let D=P;if(D===M&&(D=e.variableDefaultValue),D!=null){const N=e.format;if(N==="percentage")if(D=+D,isNaN(D))S=S.replace(U,`<span style="color:${m("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">0%</span>`);else if(D>=0){D=D*100;const H=m(D.toFixed(2));S=S.replace(U,`<span style="color: ${H||C||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
111
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${H||C||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Oo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${
|
|
114
|
-
</span>`)}else{D=D*100;const
|
|
113
|
+
<span style="color: ${H||e.color};${n.unref(h)}">${Math.abs(+D).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{D=D*100;const H=m(D.toFixed(2));S=S.replace(U,`<span style="color: ${H||I||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(h)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
116
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${H||I||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Lo}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${
|
|
119
|
-
</span>`)}else e.format==="percent"?(D=+D,isNaN(D)||(D=(D*100).toFixed(2),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}%</span>`))):e.format==="money"?(D=+D,isNaN(D)||(D=Eo(D),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`))):N==="thousands"?(D=+D,isNaN(D)||(D=hc(D),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`))):S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`)}}if(F||(F=`<span style="color: ${m(S)};${n.unref(h)}">${S}</span>`),e.unitShow&&e.unitText){const{unitTop:W,unitLeft:U}=e;let M="position:relative;";W&&(M+=`top:${W};`),U&&(M+=`margin-left:${U};`),F+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${M};${n.unref(h)}'>${e.unitText}</span>`}return F});function m(w){let C="",R=!1;const{targetValue:S,targetShow:O,notExpectColor:F}=e;if(O){switch(e.targetRule){case"equal":w!==S&&(R=!0);break;case"greater":w<=S&&(R=!0);break;case"greater_equal":w<S&&(R=!0);break;case"less":w>=S&&(R=!0);break;case"less_equal":w>S&&(R=!0);break}R&&(C=F)}return C}const{pageMode:f}=n.inject(Me,{pageMode:"normal"}),v=Ve(e),E=n.ref(!1),p=async()=>{var w;try{E.value=!0;const C=await v();r.value=((w=C==null?void 0:C.data)==null?void 0:w.data)||{}}catch(C){console.error(C)}finally{E.value=!1}},b=(w={})=>{r.value=w},x=w=>{const C=e.id,R=l(C);d(C,{...R,value:w||""})},k=it(e),T=async()=>{var w,C;try{E.value=!0;const R=await k(),{data:S}=(R==null?void 0:R.data)||{};if(S){t.value=!1;const{columns:O=[],rows:F=[]}=((w=R==null?void 0:R.data)==null?void 0:w.data)??{},{graphicConfig:V}=e;let W={};if(O.length>0)if((C=V==null?void 0:V.dimensionList)!=null&&C.length){const U=O[0];U&&(F!=null&&F.length)&&(W={value:F[0][U]})}else{const U=O.find(M=>!!M);U&&(W={value:isNaN(F[U])?0:F[U]||0})}x(W==null?void 0:W.value),b(W)}else t.value=!0,x("NaN"),b({value:"NaN"})}catch(R){console.error(R)}finally{E.value=!1,g(e.id,!0)}},I=()=>{switch(e.dataType){case"indicator":T();break;case"request":p();break}},{setRequest:_}=n.inject(ze,{setRequest:({id:w,sortNum:C,requestFn:R})=>{}});typeof _=="function"&&_({id:e.id,requestFn:I,sortNum:e.requestSort}),Le(e,{refreshData:I}),o({refreshData:I});const L=Ee(e),A=L("click",()=>{if(!e.linkPage&&!e.href)return;const w=e.linkPage||"",C=mi(n.unref(f),w),R=e.href;let S=R||C;S=De(S);const O=e.target;O&&(O!=="event"?window.open(S,"_"+O):window.parent.postMessage({type:"openPage",url:R},"*"))}),B=L("valueChange",()=>{});return n.watch(()=>u.value,(w,C)=>{w!==C&&B()}),{style:a,myText:u,loading:E,click:A,textIndent:s,vFontSize:i,gradientStyle:y}}}),bi=()=>{n.useCssVars(e=>({"39677c42":e.vFontSize,c8afd206:e.textIndent,eea4a056:e.percentageSide}))},vi=No.setup;No.setup=vi?(e,o)=>(bi(),vi(e,o)):bi;const Eu="",Sc=["innerHTML"];function Cc(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,Sc))}const Si=pe(ye(No,[["render",Cc],["__scopeId","data-v-f30d7d88"]])),wc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Ru="",Ac={class:"red"};function kc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Ac,n.toDisplayString(e.text),1)}const Ci=pe(ye(wc,[["render",kc],["__scopeId","data-v-4dd9c03e"]])),Fo={...Ae,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"}},Mo=Se(Fo),wi=["timeChange"],Tc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:g}=e;let h=ve();if(g){const{type:y,value:u,mode:m}=g;switch(y){case"add":h=h.add(u,m);break;case"minus":h=h.subtract(u,m)}}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=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:g,mode:h}=e.updateInterval||{};g&&(c=c*g);const y={second:1,minute:60,hour:60*60,day:24*60*60};h&&(c=c*y[h]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),_u="";function Bc(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 Ai=pe(ye(Tc,[["render",Bc],["__scopeId","data-v-b628fca2"]])),zo={...Ae,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:{}},Po=Se(zo),ki=["refreshData","click","resetRecord"],Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKX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8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/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 _c=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Bi=(e,o,t)=>o in e?_c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ei=(e,o)=>{for(var t in o||(o={}))Oc.call(o,t)&&Bi(e,t,o[t]);if(Ti)for(var t of Ti(o))Lc.call(o,t)&&Bi(e,t,o[t]);return e},Nc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Fc=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),g=n.ref(0),h=n.ref(0),y=n.ref(!1),u=n.ref(!1),m=n.ref(0),f=n.ref(null),v=n.ref("200px"),E=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await k(),i.value++},k=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,g.value=b.value.clientHeight;const O=Math.ceil(g.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,F)=>{O!==F&&o(O?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),y.value=!0)},I=()=>{e.pauseOnHover&&(o("onResume"),y.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},L=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},A=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=n.computed(()=>e.pauseOnHover&&(y.value||u.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),w=n.computed(()=>e.pauseOnHover&&y.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),C=n.computed(()=>{const O={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${w.value}`,"--pauseAnimation":`${A.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}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),Ei(Ei({},O),F)}),R=n.computed(()=>!!e.gradient),S=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 k(),x()),E.value=!0};return n.onMounted(async()=>{S(),f.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:h,containerHeight:g,loopCounter:m,loopInterval:f,mouseOverMarquee:y,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:R,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:S,getCurrentStyle:C,hoverStarted:T,hoverEnded:I,mouseDown:_,mouseUp:L}}}),Mc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},zc={class:"marquee",ref:"marqueeContent"},Pc={key:1,"aria-hidden":!0,class:"marquee"};function qc(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",Mc,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",zc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Pc,[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 Hc=Nc(Fc,[["render",qc]]);const Vc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Hc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),jc={key:1,class:"list-wrap"};function Wc(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",jc,[n.renderSlot(e.$slots,"default")]))}const Uc=ye(Vc,[["render",Wc]]),Gc=n.defineComponent({name:"EcanList",components:{Skeleton:ln,ATooltip:ce.Tooltip,MarqueeScroll:Uc},props:{...Po},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(A,B)=>{const{format:w,customFormatter:C}=B;if(w==null||w==="")return A;const R={money:Eo,percentage:pn,contrast:pn,custom:gi};return R[w]?w==="custom"?R[w](A,C)||"":R[w](A)||"":""},i=(A,B)=>{const w=parseFloat(A+"");if(B!=="contrast")return"";switch(!0){case w>=0:return"goUp";case w<0:return"goDown"}},s=Ve(e),l=n.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const B=await s();t.value=((A=B==null?void 0:B.data)==null?void 0:A.data.rows)||[]}catch(B){console.error(B)}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})),g=n.computed(()=>{const{columns:A,isUseSeq:B}=e;return B?[n.unref(c),...A]:A}),h=it(e),y=async()=>{var A;try{l.value=!0;const B=await h(),{columns:w=[],rows:C=[]}=((A=B==null?void 0:B.data)==null?void 0:A.data)??{};e.isUseSeq&&w.unshift(e.seqName),g.value.forEach((R,S)=>{(!e.isUseSeq||S!==0)&&(R.title=w[S],R.key=w[S])}),t.value=C}catch(B){console.error(B)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":y();break;case"request":d();break}},m=Ee(e),{getGlobalModel:f,setGlobalModel:v}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,B)=>{}}),E=A=>{m("click",()=>{const B=f(e.id);v(e.id,{...B,type:e.type,RECORD:A})})()};Le(e,{refreshData:u,resetRecord:()=>{const A=e.id,B=f(A);v(A,{...B,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(ze,{setRequest:({id:A,sortNum:B,requestFn:w})=>{}});typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const x=A=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:A.align||"left",backgroundColor:A.cellColor}),k=(A,B)=>{let w=0;const C=n.unref(t).map(S=>S[B]),R=Math.max(...C);return R&&(w=A[B]/R*100),w},T=A=>{const{progressColor:B="#1890ff",progressGradientColor:w=""}=A;return w?{background:`linear-gradient(to right, ${B} 0%, ${w} 100%)`}:{backgroundColor:B||"#1890ff"}},I=n.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=n.inject(Me,{pageMode:"normal"}),L=n.computed(()=>n.unref(_)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:g,click:E,getColumnStyle:x,getPercentage:k,getBackgroundColor:T,seqIcon4:Ec,seqIcon5:Dc,seqIcon6:Rc,seqIcon7:Ic,iconSize:I,isScroll:L}}}),Lu="",Nu="",$c=e=>(n.pushScopeId("data-v-83e1ef11"),e=e(),n.popScopeId(),e),Zc={key:0,class:"title"},Kc={key:0,class:"ranking"},Yc={key:1,class:"ecan-list-content"},Qc=["onClick"],Jc={key:0,class:"ranking"},Xc=$c(()=>n.createElementVNode("div",{class:"icon"},null,-1)),ed={class:"sort"},td=["src","width","height"],nd=["src","width","height"],od=["src","width","height"],ad=["src","width","height"],rd={key:1},id={key:2,class:"empty"};function ld(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",Zc,[(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",Kc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(g,h)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:g.key||h,style:n.normalizeStyle({color:g.titleColor,...e.getColumnStyle(g)})},n.toDisplayString(g.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Yc,[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,g)=>(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:(g+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||g,onClick:h=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Jc,[Xc,n.createElementVNode("div",ed," Top "+n.toDisplayString(g+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},[g===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,td)):g===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,nd)):g===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):g>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(g+1),5)],64)):(n.openBlock(),n.createElementBlock("span",rd,n.toDisplayString(g+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,Qc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Di=pe(ye(Gc,[["render",ld],["__scopeId","data-v-83e1ef11"]])),qo={...Ae,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:{}},Ho=Se(qo),Ri=["refreshData","click"],sd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:ln},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(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),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const T=e.text.match(/\{.+\}/g)||[];let I;const _=new Set(Object.keys(x));for(let L=0;L<T.length;L++){const A=T[L],B=A.slice(1,A.length-1);if(_.has(B)){I=x[B];break}}return typeof I=="number"?I=I*100:typeof I=="string"&&!isNaN(+I)?I=+I*100:isNaN(k)?I=0:I=k*100,e.decimalFormat&&(I=+I.toFixed(2)),I}),d=n.computed(()=>{var _;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,T=n.unref(s),I=x.match(/\{.+\}/g)||[];for(let L=0;L<I.length;L++){const A=I[L];let B=A.slice(1,A.length-1);const w=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=A.match(w);for(let S=0;S<(C==null?void 0:C.length);S++){const O=(_=C[S])==null?void 0:_.trim();T[O]!=null&&(B=B.replace(O,T[O]))}let R=B;try{/\(.*\)/g.test(B)&&(R=vn(B))}catch(S){console.error(S)}typeof+R=="number"&&!isNaN(+R)?(R=+R*100,e.decimalFormat&&(R=R.toFixed(2))):R=k,x=x.replace(A,R+"")}return n.unref(t)?"NaN":x}),c=Ve(e),g=n.ref(!1),h=async()=>{var x;if(e.dataType==="request")try{g.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{g.value=!1}},y=(x={})=>{s.value=x},u=it(e),m=async()=>{var x;try{g.value=!0;const k=await u(),{data:T}=(k==null?void 0:k.data)||{};if(T){t.value=!1;const{columns:I=[],rows:_=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let L={};if(I.length>0){const A=I.find(B=>!!B);A&&(L={percent:_[A]})}y(L)}else t.value=!0,y({percent:"NaN"})}catch(k){console.error(k)}finally{g.value=!1}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":h();break}};Le(e,{refreshData:f}),o({refreshData:f});const E=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:T})=>{}});typeof p=="function"&&p({id:e.id,requestFn:f,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:T,strokeColor:I}=e;let _=I;return x&&k&&(_={"0%":I,[`${T*100}%`]:k}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:g,click:E,customStrokeColor:b}}}),Mu="";function cd(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 Ii=pe(ye(sd,[["render",cd],["__scopeId","data-v-cf942b5f"]])),Vo={...Ae,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},jo=Se(Vo),_i=["inputChange","inputBlur"],dd=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...jo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:g=>{},setGlobalModel:(g,h)=>{},getRecordValueByKeyName:g=>{}});n.watch(()=>e.value,g=>{t.value=i(g)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const g=a(e.id);r(e.id,{...g,RECORD:t})},l=Ee(e),d=He.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Pu="";function fd(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 Oi=pe(ye(dd,[["render",fd]])),Wo={...Ae,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"},Uo=Se(Wo),Li=["dateChange"],Go=n.defineComponent({name:"EcanDatePicker",props:{...Uo},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([y,u,m])=>{let f=null;if(y?f=ve(De(y)):u&&(f=ve()),m&&f){const{type:v,value:E,mode:p}=m;switch(v){case"add":f=f.add(E,p);break;case"minus":f=f.subtract(E,p)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(y,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),g=n.ref({}),h=y=>{y?setTimeout(()=>{g.value=n.unref(c)},300):g.value={}};return n.onMounted(()=>{setTimeout(()=>{const y=document.querySelector(`#ecan-date-picker-${e.id}`);if(y){const u=y.getBoundingClientRect(),m=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<m&&(c.value.marginLeft=-1*(m-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ma,change:d,scaleValue:o,popupStyle:c,customStyle:g,openChange:h}}}),Ni=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const Hu="",Vu="",ud=["id"];function hd(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,ud)}const Mi=pe(ye(Go,[["render",hd],["__scopeId","data-v-d4ec0d66"]])),$o={...Ae,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},Zo=Se($o),zi=["dateChange"];var Pi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,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,g){return c=Number(c),this.$utils().p(g)===a?this.add(3*c,t):l.bind(this)(c,g)};var d=s.startOf;s.startOf=function(c,g){var h=this.$utils(),y=!!h.u(g)||g;if(h.p(c)===a){var u=this.quarter()-1;return y?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return d.bind(this)(c,g)}}})})(Pi);var gd=Pi.exports;const md=fr(gd);ve.extend(md);const Ko=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Zo},setup(e){const o=Ce(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,k,T,I,_])=>{let L=null,A=null;if(k&&(L=ve().subtract(T,I),A=ve()),b&&(L=ve(De(b))),x&&(A=ve(De(x))),_){const{type:B,value:w,mode:C}=_;switch(B){case"add":L=L&&L.add(w,C),A=A&&A.add(w,C);break;case"minus":L=L&&L.subtract(w,C),A=A&&A.subtract(w,C)}}a.value=[L,A]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,k)=>{Array.isArray(b)?(r=b[0],i=b[1],s=k.range):(r=null,i=null)},d=b=>{let x=!1,{limitStartTime:k,limitEndTime:T}=e;const I={startTime:`${r||""}`,endTime:`${i||""}`};if(k=De(k,{codeData:I}),T=De(T,{codeData:I}),k&&T?x=!(ve(k)<b&&b<ve(T)):k?x=ve(k)>b:T&&(x=ve(T)<b),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const L=_.startOf("year"),A=_.endOf("year");x=!(L<=b&&b<A)}}return x},{getGlobalModel:c,setGlobalModel:g}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),h=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),y=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);g(e.id,{type:e.type,format:e.format,startTime:h,endTime:y,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=Ee(e);let m=!1;const f=u("dateChange",()=>{}),v=b=>{const x=n.unref(a),k=x&&x[0]&&x[1];b===!1&&m===!0&&k&&(f(),m=!1),b||(s="")},E=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:k}=x;if(k)switch(n.unref(k)){case"month":a.value=[ve().startOf("month"),ve().endOf("month")];break;case"quarter":a.value=[ve().startOf("quarter"),ve().endOf("quarter")];break;case"year":a.value=[ve().startOf("year"),ve().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:t,locale:Ma,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:E}}}),qi=()=>{n.useCssVars(e=>({"3c9c0a71":e.optionFontSize}))},Hi=Ko.setup;Ko.setup=Hi?(e,o)=>(qi(),Hi(e,o)):qi;const Wu="",Uu="";function yd(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 Vi=pe(ye(Ko,[["render",yd],["__scopeId","data-v-66cd4fad"]])),Yo={...Ae,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"},Qo=Se(Yo),ji=["click"],xd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Qo},setup(e){const o=Ce(e),a=Ee(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(()=>De(e.text)),s=n.computed(()=>De(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}}}),$u="";function pd(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 Wi=pe(ye(xd,[["render",pd]])),Jo={...Ae,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:{}},Xo=Se(Jo),Ui=["checkboxChange"],bd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...Xo},setup(e,{expose:o}){const t=Ce(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=Ve(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(Be,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),y=it(e),u=async()=>{var v;try{const E=await y(),{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(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:f}=n.inject(ze,{setRequest:({id:v,sortNum:E,requestFn:p})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:h}}}),Ku="";function vd(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 Gi=pe(ye(bd,[["render",vd]])),ea={...Ae,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"},ta=Se(ea),$i=["selectChange","refreshData"],Sd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var S;const{mode:R}=e;return(S=n.unref(i))!=null&&S.length?s.value:R==="multiple"||R==="tags"||R==="combobox"?[]:""},set:R=>{s.value=R}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:g}=n.inject(Be,{getGlobalModel:R=>{},setGlobalModel:(R,S)=>{},getRecordValueByKeyName:R=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:R,selectFirstOption:S,value:O}=e,F=g(O);R==="multiple"||R==="tags"||R==="combobox"?F?s.value=F.split(","):S&&(s.value=[n.unref(i)[0]]):F?s.value=F:S&&(s.value=n.unref(i)[0])},{immediate:!0});const h=e.dataFieldNames,y=(R,S)=>{const O=h.label,F=h.value;let V;const W=S[O],U=S[F];return W!=null?V=W:U!=null&&(V=U),(V==null?void 0:V.toLowerCase().indexOf(R==null?void 0:R.toLowerCase()))>=0},u=R=>{const{label:S,value:O,options:F}=e.dataFieldNames;if(F&&Array.isArray(R))if(R.some(V=>F in V)){const V={},W=[];R.forEach(U=>{V[U[F]]||(V[U[F]]=[]),V[U[F]].push({[S]:U[S],[O]:U[O]})});for(const U in V)W.push({[S]:U,[F]:V[U]});return W}else return R;else if(!F)return R},m=n.ref(!1),f=async()=>{var R,S;if(e.dataType==="request"){m.value=!0;try{const O=await r();if(i.value=u(((S=(R=O==null?void 0:O.data)==null?void 0:R.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let F=n.unref(i)[0];if(h.options){const V=F[h.options];V&&V.length&&(F=V[0])}s.value=F[h.value]}}catch(O){console.error(O)}finally{m.value=!1}}},{setLoadedData:v,loadedData:E}=n.inject(bt,{setLoadedData:(R,S)=>{},loadedData:{}}),p=n.computed(()=>{let R=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const S=h.label,O=h.value;if(e.mode==="multiple")R=n.unref(i).filter(F=>n.unref(s).includes(F[O])).map(F=>F[S]);else{const F=n.unref(i).find(V=>n.unref(s)===V[O]);F&&(R=F[S])}}return R}),b=n.ref([]),x=n.computed(()=>{const R={};if(e.mode!=="multiple"){const S=n.unref(b).find(O=>O.value===n.unref(s));S&&(R.itemCodes=S.item_codes)}return R});c(e.id,{type:e.type,value:p,...n.unref(x)});const T=Ee(e)("selectChange",()=>{const R=e.id,S=d(R);c(R,{...S,...n.unref(x),RECORD:p})}),I=(R=[])=>{if(i.value=u(R),e.selectFirstOption){let S=n.unref(i)[0];if(h.options){const O=S[h.options];O&&O.length&&(S=O[0])}s.value=S[h.value]}},_=it(e),L=async()=>{var R;try{m.value=!0;const S=await _(),{data:O}=(S==null?void 0:S.data)||{},F=h.label,V=h.value;if(O){const W=((R=S==null?void 0:S.data)==null?void 0:R.data)??[];b.value=W;const U=W.map(z=>({[F]:z.label,[V]:z.value})),{id:M}=e,P=d(M);c(M,{...P,...n.unref(x)}),v(M,!0),I(U)}else I([])}catch(S){console.error(S)}finally{m.value=!1}},A=n.computed(()=>{var R,S;return(S=(R=e==null?void 0:e.graphicConfig)==null?void 0:R.controlList)==null?void 0:S.find(O=>O.conditionKey==="parentCode")}),B=n.ref(!1);n.watch(E,R=>{!n.unref(B)&&n.unref(A)&&R[n.unref(A).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{if(n.unref(A)){if(n.unref(E)[n.unref(A).id]){const{mode:R}=e;R==="multiple"||R==="tags"||R==="combobox"?l.value=[]:l.value="",L()}}else L();break}case"request":f();break}};Le(e,{selectChange:T,refreshData:w});const{setRequest:C}=n.inject(ze,{setRequest:({id:R,sortNum:S,requestFn:O})=>{}});return typeof C=="function"&&C({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:T,options:i,filterOption:y,loading:m,resultValue:l}}}),Qu="",Ju="";function Cd(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 Zi=pe(ye(Sd,[["render",Cd],["__scopeId","data-v-e5517626"]])),na={...Ae,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},oa=Se(na),Ki=["selectChange","refreshData"],wd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...oa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(u,m)=>{const f=e.dataFieldNames,v=f.label,E=f.value;let p;const b=m[v],x=m[E];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:m,selectFirstOption:f}=e;u?m?r.value=m.split(","):f&&(r.value=[n.unref(t)[0]]):m?r.value=m:f&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=Ve(e),l=async()=>{var u,m;if(e.dataType==="request"){i.value=!0;try{const f=await s();t.value=((m=(u=f==null?void 0:f.data)==null?void 0:u.data)==null?void 0:m.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:u=>{},setGlobalModel:(u,m)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("selectChange",()=>{const u=e.id,m=d(u);c(u,{...m,RECORD:r})});Le(e,{selectChange:h,refreshData:l});const{setRequest:y}=n.inject(ze,{setRequest:({id:u,sortNum:m,requestFn:f})=>{}});return y({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:h}}},e1="",t1="";function Ad(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 Yi=pe(ye(wd,[["render",Ad],["__scopeId","data-v-37236421"]])),aa={...Ae,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:""},ra=Se(aa),Qi=["checkboxChange","click"],kd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ra},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=b,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var k,T;if(e.dataType!=="request")return;const b=await s(),x=((T=(k=b==null?void 0:b.data)==null?void 0:k.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e),h=g("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),y=b=>{r.value=b,g("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{h()});const u=it(e),m=async()=>{var b;try{const x=await u(),{data:k}=(x==null?void 0:x.data)||{};if(k){const I=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(_=>({label:_.label,value:_.value}));i(I)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:f,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:f}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:y,useImagePath:At,tabChange:E}}}),o1="",a1="",Td=["onClick"];function Bd(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,g)=>(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:g,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,Td))),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:g=>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 Ji=pe(ye(kd,[["render",Bd],["__scopeId","data-v-baa84768"]])),ia={...Ae,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",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},la=Se(ia),Xi=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await ft.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)},sa={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,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"},ca=Se(sa),el=["showModal","hideModal"];function tl(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 y=o.find(u=>u.id===h);if(y){bn(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const u in t[h])if(t[h][u])for(const m of t[h][u]){const f=o.find(v=>v.id===m);f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(y.sourceLeft||y.left)+"px",f.top=parseFloat(f.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const s=Array.from(new Set(o.filter(h=>(!bn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),l=[];for(const h of s){const y=a[h];if(y!=null&&y.length){const u=o.filter(m=>y.includes(m.id));if(u!=null&&u.length){const m=Dd(u);if(m){l.push({...m,id:h,keyName:h,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const f of u)f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(m.left)+"px",f.top=parseFloat(f.top)-parseFloat(m.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)&&!bn(h,"parentId")),g=[];for(const h of c)if(h){const y=h.id+"_vir";g.push({id:y,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=y,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}g!=null&&g.length&&o.unshift(...g);for(const h of o){const y=document.body.clientWidth;if(h.parentId===""&&["ecanBorder","ecanTabs"].includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(y/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const u=o.find(m=>m.id===h.parentId);if((u==null?void 0:u.parentId)===""){const m=u.sourceWidth||parseFloat(u.width),f=y/m;h.scale=f,h.top=parseFloat(h.top)*f-parseFloat(h.height)*(1-f)/2+"px",h.left=parseFloat(h.left)*f-parseFloat(h.width)*(1-f)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return Ed(o)}return o}function Ed(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=He.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 Dd(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 Rd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Id(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 _d=pe(ye(Rd,[["render",Id]])),Od=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:K0,Render:_d},props:{...ca},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(Be,{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]}}),g=e.fullModal?"1920px":e.width,h=e.fullModal?"1080px":e.height,y=e.originalWidth,u=e.originalHeight,m=n.ref("80%"),f=n.ref(0),v=n.ref(),E=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),k=n.ref(!1),T=n.ref();let I;const _=()=>{v.value=parseFloat(g)/parseFloat(y);const Q=parseFloat(h)/parseFloat(u),le=document.body.offsetWidth,re=document.body.offsetHeight;f.value=le*n.unref(v),E.value=re*Q,m.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(f)}px`,height:`${n.unref(E)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(f)/parseFloat(g)},${n.unref(E)/parseFloat(h)})`,width:g,height:h}},L=He.debounce(()=>{_()},100),A=()=>{const Q=window.MutationObserver;I=new Q(L),I.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},B=()=>{I&&(I.disconnect(),I.takeRecords(),I=null)},w=n.ref(!1),{touchRequest:C}=n.inject(ze,{touchRequest:()=>{}}),R=n.ref(""),S=()=>{var re;const{title:Q}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},O=Ee(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),R.value=S(),w.value=!0},V=O("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),w.value=!1}),W=()=>{V()},U=()=>{V(),s()},{setModalModel:M,pushUseModalIds:P,popUseModalIds:z}=n.inject(lr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),D=n.computed(()=>{if(a){const Q=He.cloneDeep(e.componentList),le=r(),re=i();return tl({componentList:Q,containerMap:le,combinationMap:re})}else return e.componentList}),N=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(Y=>Y.id),M(Q,[...new Set(le)]))};n.watch(()=>w.value,async Q=>{Q?(k.value=!1,P(e.id),N(),await n.nextTick(()=>{_(),window.addEventListener("resize",L),A(),k.value=!0}),C()):(z(),window.removeEventListener("resize",L),B())});const q=n.computed(()=>n.unref(v)>=1),K=n.computed(()=>e.fullModal),G=n.computed(()=>{let Q="ecan-modal";return n.unref(q)&&(Q+=" ecan-full-width-modal"),n.unref(K)&&(Q+=" ecan-full-modal"),Q});return Le(e,{showModal:F,hideModal:V}),{modalRef:T,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:K,style:b,visible:w,showModal:F,onOk:W,onCancel:U,isFullWidth:q,wrapClassName:G,ready:k,usedComponentList:D,isMobile:a,readyIds:t,hasOwn:bn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:R}}}),l1="",s1="";function Ld(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,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+g},[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 kt=pe(ye(Od,[["render",Ld],["__scopeId","data-v-a2e70efd"]]));Je.use([Et.CanvasRenderer,ht.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const Nd=n.defineComponent({name:"EcanPie",props:{...la},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:B=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,C=e.colors;B=B.map((R,S)=>({label:w?{color:C[S]}:{},...R}))}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(){Gt(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 w;t.value=!0,(w=i.value)==null||w.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(){ce.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:w=>{const{marker:C,seriesName:R,name:S,value:O,percent:F,data:V}=w||{};return De(e.tooltipFormatter,{textData:{marker:C,name:S,value:O,percent:F,a:R,b:S,c:O,d:F,...V}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:B,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?Ue:e.labelFontSize,position:e.labelPosition,formatter:uc(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=()=>{const B=t.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:B+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:B}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:C}=r.value[0]||{};let R=0,S,O="0%";if(C)for(const F of C)F.name===w&&(S=+F.value),R+=+F.value;return R&&(O=`${(S/R*100).toFixed(2)}%`),tn(e.legendFormatter,{name:w,value:S,percent:O})}}},c=()=>{t.value=!1},{getGlobalModel:g,setGlobalModel:h}=n.inject(Be,{getGlobalModel:B=>{},setGlobalModel:(B,w)=>{}}),{pageMode:y}=n.inject(Me,{pageMode:"normal"}),u=(B=[],w)=>{const{dataset:C}=Ft(B,w);r.value=C},m=(B=[],w)=>{const C=Ft(B,w);r.value=C.dataset};n.watch(()=>e.data,B=>{(e.dataType==="static"||n.unref(y)==="design")&&u(B)},{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,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const f=n.ref(!1),v=Ve(e),E=async()=>{var B,w;if(e.dataType==="request")try{f.value=!0;const C=await v();u((w=(B=C==null?void 0:C.data)==null?void 0:B.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{f.value=!1}},p=Ee(e);h(e.id,{type:e.type,RECORD:""});const b=p("click",B=>{const w=g(e.id);h(e.id,{...w,type:e.type,RECORD:B==null?void 0:B.data})}),x=it(e),k=async()=>{var B;try{f.value=!0;const w=await x(),{data:C}=(w==null?void 0:w.data)||{};if(C){const{columns:R=[],rows:S=[]}=((B=w==null?void 0:w.data)==null?void 0:B.data)??{};let O=[];if(R.length>0){const F=R[0],V=R[1];O=S.map(W=>({name:W[F],value:isNaN(W[V])?0:W[V]||0}))}m(O)}}catch(w){console.error(w)}finally{f.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),I=n.ref(!1);n.watch(T,B=>{if(e.dataType==="indicator"){const w=en(e.graphicConfig);w!=null&&w.length&&(!n.unref(I)&&at(e.graphicConfig,B)?(I.value=!0,_()):at(e.graphicConfig,B)||(I.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(T))&&k();break;case"request":E();break}};Le(e,{resetRecord:()=>{const B=e.id,w=g(B);h(B,{...w,RECORD:""})},refreshData:_,click:b}),o({refreshData:_});const{setRequest:A}=n.inject(ze,{setRequest:B=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:f,ecanModal:i}}}),d1="";function Fd(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 nl=pe(ye(Nd,[["render",Fd]])),da={...Ae,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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},fa=Se(da),ol=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent,be.MarkLineComponent]);const Md=n.defineComponent({name:"EcanLine",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let g;const h=n.ref([]),y=n.computed(()=>{const S=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(){Gt(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 F;a.value=!0,(F=l.value)==null||F.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(){ce.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:F=>{var M;const V=F.length;let W="",U=e.tooltipFormatter;g=(M=F[0])==null?void 0:M.data,U===""&&(U="{marker} {a} {c}");for(let P=0;P<V;P++){const{marker:z,seriesName:D,name:N,value:q,data:K}=F[P]||{};if(P===0){let G=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(G=(+N).toString()),W+=`${rt(S,G)}<br/>`}W+=De(U,{textData:{marker:z,name:N,value:q,a:D,b:N,c:q||0,...K}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(F=>{let V={};return F&&typeof F=="object"?V={...F}:V={value:F},V}),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(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),rt(S,F)}},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(F){return rt(O,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>tn(e.legendFormatter,{name:F})},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,O)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(S=[],O=!1)=>{let F;if(e.dataFieldConfigType==="key"){const M=O?e.keyTypeDataFieldNames:null;F=wt(S,M)}else if(e.dataFieldConfigType==="value"){const M=O?e.valueTypeDataFieldNames:null;F=Ft(S,M)}s.value=F.dimensions,h.value=F.dataset;const V=F.dataset,W=[],U=V.length;for(let M=0;M<U;M++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...V[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...n.unref(E)})}i.value=W},b=(S=[],O,F=!1)=>{const W=wt(S,F?O:null,!0);s.value=W.dimensions,h.value=W.dataset;const U=W.dataset,M=[],P=U.length;for(let z=0;z<P;z++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),M.push({type:"line",...U[z],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[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...n.unref(E)})}i.value=M};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,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([S])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(S)},{immediate:!0,deep:!0});const x=n.ref(!1),k=Ve(e),T=async()=>{var S,O;if(e.dataType==="request")try{x.value=!0;const F=await k();p((O=(S=F==null?void 0:F.data)==null?void 0:S.data)==null?void 0:O.rows,!0)}catch(F){console.error(F)}finally{x.value=!1}},I=Ee(e);f(e.id,{type:e.type,RECORD:""});const _=I("click",S=>{const O=m(e.id);f(e.id,{...O,type:e.type,RECORD:e.tooltipShow?g:S.data})}),L=S=>{t.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=L:c.value.click=_;const A=it(e),B=async()=>{var S;try{x.value=!0;const O=await A(),{columns:F=[],rows:V=[]}=((S=O==null?void 0:O.data)==null?void 0:S.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map(U=>({label:U,value:U}))}),b(V,W,!0)}catch(O){console.error(O)}finally{x.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":T();break}};Le(e,{refreshData:w,resetRecord:()=>{const S=e.id,O=m(S);f(S,{...O,RECORD:""})},click:_});const{setRequest:R}=n.inject(ze,{setRequest:S=>{}});return typeof R=="function"&&R({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:y,style:r,click:_,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),u1="";function zd(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 al=pe(ye(Md,[["render",zd]])),ua={...Ae,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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ha=Se(ua),rl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Pd=n.defineComponent({name:"EcanBar",props:{...ha},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.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=Ce(e),d=n.ref([]),c=n.ref(),g=n.ref({});let h;const y=n.computed(()=>a.value?Ue:12),u=n.computed(()=>{const{gradientShow:z,gradientColors:D,gradientOffset:N,barBorderRadius:q}=e,K=n.unref(d),G=K.length,ae=[];for(let Q=0;Q<G;Q++){const le={...K[Q],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let Y="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:ke,data:Te}=re||{};return Y+=De(X,{textData:{name:xe,value:ke,a:ne,b:xe,c:ke||0,...Te}},{useNewline:!0,useSpace:!0}),Y}},le.itemStyle={},z&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:N,color:D[Q]},{offset:1,color:D[Q]}]}}),q){const re=q.split(",");if(re!=null&&re.length){const Y=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||Y.push(ne)}le.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=n.ref([]),f=n.ref(!1),v=n.computed(()=>{const z=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 N=t.value.chart.getOption(),{xAxis:q}=N||{};q&&q.length&&(s.value=q[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(){Gt(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 N;a.value=!0,(N=c.value)==null||N.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(){ce.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:N=>{var ae;const q=N.length;let K="",G=e.tooltipFormatter;h=(ae=N[0])==null?void 0:ae.data,G===""&&(G="{marker} {a} {c}");for(let Q=0;Q<q;Q++){const{marker:le,seriesName:re,name:Y,value:X,data:ne}=N[Q]||{};if(Q===0){let xe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(xe=(+Y).toString()),K+=`${rt(D,xe)}<br/>`}K+=De(G,{textData:{marker:le,name:Y,value:X,a:re,b:Y,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((N,q)=>({name:N.name,itemStyle:{color:e.colors[q]},icon:e.legendType})),formatter:N=>tn(e.legendFormatter,{name:N})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(k),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(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),rt(D,N)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(m):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(N){return rt(z,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(u)}}),{pageMode:E}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(z=[],D=!1)=>{let N={};if(e.dataFieldConfigType==="key"){const q=D?e.keyTypeDataFieldNames:null;N=wt(z,q)}else if(e.dataFieldConfigType==="value"){const q=D?e.valueTypeDataFieldNames:null;N=Ft(z,q)}d.value=N.dataset,m.value=N.dimensions},x=(z=[],D,N=!1)=>{const K=wt(z,N?D:null,!0);d.value=K.dataset,m.value=K.dimensions},k=n.computed(()=>n.unref(m).map(z=>{let D={};return z&&typeof z=="object"?D={...z}:D={value:z},D}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([z])=>{(e.dataType==="static"||n.unref(E)==="design")&&b(z)},{immediate:!0,deep:!0});const T=Ve(e),I=async()=>{var z,D;try{f.value=!0;const N=await T();b((D=(z=N==null?void 0:N.data)==null?void 0:z.data)==null?void 0:D.rows,!0)}catch(N){console.error(N)}finally{f.value=!1}},_=it(e),L=async()=>{var z;try{f.value=!0;const D=await _(),{columns:N=[],rows:q=[]}=((z=D==null?void 0:D.data)==null?void 0:z.data)??{};let K;N.length>0&&(K={name:N[0],types:N.slice(1).map(G=>({label:G,value:G}))}),x(q,K,!0)}catch(D){console.error(D)}finally{f.value=!1}},{loadedData:A}=n.inject(bt,{loadedData:{}}),B=n.ref(!1);n.watch(A,z=>{if(e.dataType==="indicator"){const D=en(e.graphicConfig);D!=null&&D.length&&(!n.unref(B)&&at(e.graphicConfig,z)?(B.value=!0,w()):at(e.graphicConfig,z)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(A))&&L();break;case"request":I();break}},C=(z,D)=>!!n.unref(s)[D.value].value.includes(z),R=async()=>{r.value=!1;const z=t.value.chart.getOption();for(let D=0;D<7;D++)await S(z,D)},S=(z,D)=>new Promise(N=>{setTimeout(()=>{const{series:q,color:K,xAxis:G}=z,ae=t.value.chart,{splitArea:Q={}}=G[0]||{};q.forEach((le,re)=>{const Y=le.data;let X="";D%2?X=K[re]+"a8":X=K[re],Y[i.value].itemStyle={color:X}}),D%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:q,xAxis:G}),N()},200)});o({refreshData:w});const O=Ee(e),{getGlobalModel:F,setGlobalModel:V}=n.inject(Be,{getGlobalModel:z=>{},setGlobalModel:(z,D)=>{}});V(e.id,{type:e.type,RECORD:""});const W=O("click",z=>{const D=F(e.id);V(e.id,{...D,type:e.type,RECORD:e.tooltipShow?h:z.data})}),{setRequest:U}=n.inject(ze,{setRequest:z=>{}});typeof U=="function"&&U({id:e.id,requestFn:w,sortNum:e.requestSort});const M=()=>{const z=e.id,D=F(z);V(z,{...D,RECORD:""})},P=z=>{t.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&W()};return e.tooltipShow?g.value["zr:click"]=P:g.value.click=W,Le(e,{refreshData:w,click:W,resetRecord:M}),{option:v,style:l,refreshData:w,click:W,loading:f,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:R,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:g}}}),g1="",m1="",qd=e=>(n.pushScopeId("data-v-d9fb5cfd"),e=e(),n.popScopeId(),e),Hd={class:"location-wrap"},Vd=qd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function jd(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"),g=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]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Hd,[Vd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),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,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const il=pe(ye(Pd,[["render",jd],["__scopeId","data-v-d9fb5cfd"]])),ga={...Ae,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"},ma=Se(ga),ll=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent,be.MarkLineComponent]);const Wd=n.defineComponent({name:"EcanScatter",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?Ue:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const k=e.xAxisLabelFormatter,T=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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.value=!0,(I=r.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ce.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(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),rt(k,I)}},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(I){return rt(T,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(I){var C;const{marker:_,seriesName:L}=I,A=((C=I==null?void 0:I.data)==null?void 0:C.record)??{},{name:B,value:w}=A;return De(e.tooltipFormatter,{textData:{marker:_,seriesName:L,a:L,b:B,c:w,...A}})},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(Be,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{}}),{pageMode:g}=n.inject(Me,{pageMode:"normal"}),h=(k=[],T)=>{const{name:I="name",value:_="value"}=T||{};a.value=k.map(L=>({value:[L[I],L[_]],record:L}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(g)==="design")&&h(k)},{immediate:!0,deep:!0});const y=n.ref(!1),u=Ve(e),m=async()=>{var k,T;if(e.dataType==="request"){y.value=!0;try{const I=await u();h((T=(k=I==null?void 0:I.data)==null?void 0:k.data)==null?void 0:T.rows,e.dataFieldNames)}catch(I){console.error(I)}finally{y.value=!1}}},f=()=>{o.value=!1},v=Ee(e);c(e.id,{type:e.type,RECORD:""});const E=v("click",k=>{const T=e.id,I=d(T);c(T,{...I,type:e.type,RECORD:k==null?void 0:k.data})});Le(e,{refreshData:()=>{m()},click:E,resetRecord:()=>{const k=e.id,T=d(k);c(k,{...T,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:t,click:E,loading:y,onClose:f,ecanModal:r}}}),x1="";function Ud(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 sl=pe(ye(Wd,[["render",Ud]])),ya={...Ae,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},xa=Se(ya),Gd=n.defineComponent({name:"EcanCustomGraph",props:{...xa},components:{Echarts:xt},setup(e){const o=Ce(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:Hl}}});function $d(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 cl=pe(ye(Gd,[["render",$d]])),pa={...Ae,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,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!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,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=Se(pa),dl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanComboGraph",props:{...ba},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.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=Ce(e),g=n.ref([]),h=n.ref([]),y=n.ref(),u=n.ref([]),m=n.computed(()=>a.value?Ue:12),f=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:N}=D||{};N&&N.length&&(s.value=N[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(){Gt(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=y.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(){ce.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:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map((D,N)=>({name:D.name,itemStyle:{color:e.colors[N]},icon:e.legendType})),formatter:D=>tn(e.legendFormatter,{name:D})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:D=>{var ae;const N=D.length;let q="",K=e.tooltipFormatter;d=(ae=D[0])==null?void 0:ae.data,K===""&&(K="{marker} {a} {c}");const G=e.seriesTypes;for(let Q=0;Q<N;Q++){const le=G[Q],{tooltipFormatter:re}=le||{},{marker:Y,seriesName:X,name:ne,value:xe,data:ke}=D[Q]||{};if(Q===0){let Te=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(Te=(+ne).toString()),q+=`${rt(e.xAxisLabelFormatter,Te)}<br/>`}q+=De(re||K,{textData:{marker:Y,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...ke}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(h).map(D=>{let N={};return D&&typeof D=="object"?N={...D}:N={value:D},N}),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()),rt(e.xAxisLabelFormatter,D)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(k),series:n.unref(g)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=()=>{a.value=!1},p=(D=[],N=!1)=>{let q;if(e.dataFieldConfigType==="key"){const G=N?e.keyTypeDataFieldNames:null;q=wt(D,G)}else if(e.dataFieldConfigType==="value"){const G=N?e.valueTypeDataFieldNames:null;q=Ft(D,G)}h.value=q.dimensions;const K=q.dataset;u.value=q.dataset,g.value=x(K)},b=(D=[],N,q=!1)=>{const G=wt(D,q?N:null,!0);h.value=G.dimensions;const ae=G.dataset;u.value=G.dataset,g.value=x(ae)};function x(D){const N=[],q=D.length,K=e.seriesTypes;for(let G=0;G<q;G++){const ae=K[G],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...D[G]};if(Q==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[G]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[G],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(Q==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const ke=e.barBorderRadius.split(",");if(ke!=null&&ke.length){const Te=[];for(const $e of ke){const Fe=parseFloat($e);isNaN(Fe)||Te.push(Fe)}xe.borderRadius=Te}}Y&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:ne,color:X[G]},{offset:1,color:X[G]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),N.push(re)}return N}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,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([D])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(D)},{immediate:!0,deep:!0});const k=n.computed(()=>{const D=e.yAxis;return D==null?void 0:D.map((N,q)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:q===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:q===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(K){return rt(N.axisLabelFormatter,K)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),T=n.ref(!1),I=Ve(e),_=async()=>{var D,N;if(e.dataType==="request")try{T.value=!0;const q=await I();p((N=(D=q==null?void 0:q.data)==null?void 0:D.data)==null?void 0:N.rows,!0)}catch(q){console.error(q)}finally{T.value=!1}},L=it(e),A=async()=>{var D;try{T.value=!0;const N=await L(),{columns:q=[],rows:K=[]}=((D=N==null?void 0:N.data)==null?void 0:D.data)??{};let G;q.length>0&&(G={name:q[0],types:q.slice(1).map(ae=>({label:ae,value:ae}))}),b(K,G,!0)}catch(N){console.error(N)}finally{T.value=!1}},{loadedData:B}=n.inject(bt,{loadedData:{}}),w=n.ref(!1);n.watch(B,D=>{if(e.dataType==="indicator"){const N=en(e.graphicConfig);N!=null&&N.length&&(!n.unref(w)&&at(e.graphicConfig,D)?(w.value=!0,C()):at(e.graphicConfig,D)||(w.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(B))&&A();break;case"request":_();break}},R=(D,N)=>!!n.unref(s)[N.value].value.includes(D),S=async()=>{r.value=!1;const D=t.value.chart.getOption();for(let N=0;N<7;N++)await O(D,N)},O=(D,N)=>new Promise(q=>{setTimeout(()=>{const{series:K,color:G,xAxis:ae}=D,Q=t.value.chart,{splitArea:le={}}=ae[0]||{};K.forEach((re,Y)=>{const X=re.data;let ne="";N%2?ne=G[Y]+"a8":ne=G[Y],X[i.value].itemStyle={color:ne}}),N%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,Y)=>Y===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:K,xAxis:ae}),q()},200)});o({refreshData:C});const F=Ee(e),{getGlobalModel:V,setGlobalModel:W}=n.inject(Be,{getGlobalModel:D=>{},setGlobalModel:(D,N)=>{}});W(e.id,{type:e.type,RECORD:""});const U=F("click",D=>{const N=V(e.id);W(e.id,{...N,type:e.type,RECORD:e.tooltipShow?d:D==null?void 0:D.data})}),M=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&U()};e.tooltipShow?l.value["zr:click"]=M:l.value.click=U;const{setRequest:P}=n.inject(ze,{setRequest:D=>{}});return typeof P=="function"&&P({id:e.id,requestFn:C,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const D=e.id,N=V(D);W(D,{...N,RECORD:""})},refreshData:C,click:U}),{style:c,option:f,click:U,loading:T,onClose:E,ecanModal:y,echartRef:t,handleLocationOk:S,onFilterOption:R,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),v1="",S1="",Kd=e=>(n.pushScopeId("data-v-38571f44"),e=e(),n.popScopeId(),e),Yd={class:"location-wrap"},Qd=Kd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jd(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"),g=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]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Yd,[Qd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),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,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=pe(ye(Zd,[["render",Jd],["__scopeId","data-v-38571f44"]])),va={...Ae,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",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},Sa=Se(va),ul=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Xd=n.defineComponent({name:"EcanRadar",props:{...Sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?Ue:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),g=n.computed(()=>{const C=n.unref(d),R=C.length,S=[];for(let O=0;O<R;O++){const{name:F,data:V=[]}=C[O],W=[{name:F,value:V.map(P=>P.value)}];let U=e.colors[O];if(e.gradientShow){const{gradientOffset:P,gradientColors:z}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[O]},{offset:P,color:z[O]},{offset:1,color:z[O]}]}}const M={type:"radar",name:F,data:W,areaStyle:{color:U,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,formatter:P=>{const{data:z,value:D}=P;let N=0,q="0%";if(z)for(const K of z.value)N+=+K;return N&&(q=`${(D/N*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:D,percent:q}},{useNewline:!1,useSpace:!1})}}};S.push(M)}return S}),h=n.computed(()=>{var F;const C=[],R=[],S=n.unref(d),O=S.length;for(let V=0;V<O;V++){const{data:W=[]}=S[V];for(let U=0;U<W.length;U++)R.push(W[U].value)}if((F=i.value)!=null&&F.length){const V=R!=null&&R.length?Math.max(...R)*1.2:0;for(const W of i.value)C.push({name:W,max:V})}return C}),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(){Gt(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 C;a.value=!0,(C=s.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ce.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:C=>{let R="",S=e.tooltipFormatter;S===""&&(S="{marker} {a} {c}");for(let O=0;O<n.unref(h).length;O++){const F=n.unref(h)[O],{marker:V,seriesName:W,value:U}=C||{};O===0&&W&&(R+=`${W}<br/>`),R+=De(S,{textData:{marker:V,name:F.name,value:U[O],a:F.name,b:F.name,c:U[O]||0,type:W}},{useNewline:!0,useSpace:!0}),R+="<br/>"}return R},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(h),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>tn(e.legendFormatter,{name:C})},series:n.unref(g)})),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,R)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=(C=[],R=!1)=>{let S;if(e.dataFieldConfigType==="key"){const O=R?e.keyTypeDataFieldNames:null;S=wt(C,O)}else if(e.dataFieldConfigType==="value"){const O=R?e.valueTypeDataFieldNames:null;S=Ft(C,O)}i.value=S.dimensions,d.value=S.dataset},p=(C=[],R,S=!1)=>{const F=wt(C,S?R:null,!0);i.value=F.dimensions,d.value=F.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||n.unref(v)==="design")&&E(C)},{immediate:!0,deep:!0});const b=n.ref(!1),x=Ve(e),k=async()=>{var C,R;if(e.dataType==="request")try{b.value=!0;const S=await x();E((R=(C=S==null?void 0:S.data)==null?void 0:C.data)==null?void 0:R.rows,!0)}catch(S){console.error(S)}finally{b.value=!1}},T=Ee(e);f(e.id,{type:e.type,RECORD:""});const I=C=>{const R=C.event.topTarget.__dimIdx;R!==void 0&&T("click",()=>{var V;const{value:S,name:O}=C.data||{},F=m(e.id);f(e.id,{...F,type:e.type,RECORD:{[n.unref(c)]:((V=n.unref(h)[R])==null?void 0:V.name)||"",[O]:S[R],seriesName:O}})})()},_=it(e),L=async()=>{var C;try{b.value=!0;const R=await _(),{columns:S=[],rows:O=[]}=((C=R==null?void 0:R.data)==null?void 0:C.data)??{};let F;S.length>0&&(c.value=S[0],F={name:S[0],types:S.slice(1).map(V=>({label:V,value:V}))}),p(O,F,!0)}catch(R){console.error(R)}finally{b.value=!1}},A=()=>{switch(e.dataType){case"indicator":L();break;case"request":k();break}};Le(e,{refreshData:A,resetRecord:()=>{const C=e.id,R=m(C);f(C,{...R,RECORD:""})},click:I});const{setRequest:w}=n.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:y,style:r,click:I,loading:b,onClose:u,ecanModal:s,echartRef:t}}}),w1="";function ef(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,{ref:"echartRef",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 hl=pe(ye(Xd,[["render",ef]])),tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89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QMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ca={...Ae,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"},wa=Se(Ca),gl=["click"],rf=n.defineComponent({name:"EcanBorder",props:{...wa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:m,gradientShow:f,gradientColor:v,gradientOffset:E,gradientAngle:p,backgroundColor:b}=e;if(f){let x=v;return m&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:m}=e;let f={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":tf,"../../assets/border-title-decoration-left2.png":nf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":of,"../../assets/border-title-decoration-right2.png":af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:m}=e,f=[],v={};if(m){const E=m.split(",");for(const p of E)(+p||+p==0)&&f.push(+p+"px")}return f!=null&&f.length&&(v.borderRadius=f.join(" ")),v}),h=Ee(e)("click",()=>{}),y=n.ref([]);n.watch(()=>e.data,m=>{y.value=m},{immediate:!0,deep:!0}),Le(e,{click:h});const{setGlobalModel:u}=n.inject(Be,{setGlobalModel:(m,f)=>{}});return u(e.id,{type:e.type,value:y}),{style:o,gradientStyle:t,click:h,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),k1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),lf=["id"],sf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),cf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),uf={class:"title-item"},hf=["src"],gf={class:"title"},mf=["src"],yf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vf={key:2,class:"left-title"},Sf={class:"title"};function Cf(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},[sf,cf,df,ff],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",uf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,hf),n.createElementVNode("div",gf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,mf)])],2),yf,xf,pf,bf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",Sf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,lf)}const ml=pe(ye(rf,[["render",Cf],["__scopeId","data-v-8dd53b8f"]])),Aa={...Ae,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"},ka=Se(Aa),yl=["tabChange"],wf=n.defineComponent({name:"EcanTabs",props:{...ka},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const m=n.unref(t)+1;m<=u?t.value=m: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,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const d=u=>t.value===u,c=Ee(e),{setGlobalModel:g}=n.inject(Be,{setGlobalModel:(u,m)=>{}});g(e.id,{value:l,activeKey:t});const{emitRefreshPage:h}=n.inject(Jt,{emitRefreshPage:()=>{}}),y=c("tabChange",(u,m)=>{m!==n.unref(t)&&(l.value=u,t.value=m,h())});return Le(e,{tabChange:y}),{style:o,activeKey:t,isActive:d,tabChange:y,myData:s,useImagePath:At}}}),B1="",Af=["id"],kf=["onClick"];function Tf(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(g=>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,kf))),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:g=>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,Af)}const xl=pe(ye(wf,[["render",Tf],["__scopeId","data-v-fbab260a"]])),Ta={...Ae,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ba=Se(Ta),pl=["click"],Ea=n.defineComponent({name:"EcanImage",props:{...Ba},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",g=mi(n.unref(a),c),h=e.href;let y=h||g;y=De(y);const u=e.target;u&&(u!=="event"?window.open(y,"_"+u):window.parent.postMessage({type:"openPage",url:h},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),bl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},vl=Ea.setup;Ea.setup=vl?(e,o)=>(bl(),vl(e,o)):bl;const D1="",Bf=["src"];function Ef(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Bf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Sl=pe(ye(Ea,[["render",Ef],["__scopeId","data-v-47ea6e7c"]])),Da={...Ae,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=Se(Da),Df=n.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${is||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),I1="",Rf=["src"];function If(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,Rf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Cl=pe(ye(Df,[["render",If],["__scopeId","data-v-19bc100c"]])),Ia={...Ae,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:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=Se(Ia),wl=["click","refreshData","resetRecord","exportTableData"],_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr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hlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Oa=n.defineComponent({name:"EcanTable",components:{Skeleton:ln,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const H=He.cloneDeep(e.columns);return e.isUseSeq&&H.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&H.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),H}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),g=()=>{let H=0;switch(e.size){case"small":H=50;break;case"middle":H=53;break;default:H=65;break}return H};n.watchEffect(()=>{var H;(H=l.value)!=null&&H.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const J=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&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=g(),ee&&(Z-=ee)}(J==null?void 0:J.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const h=n.ref([]),y=n.ref([]),u=n.ref([]),m=n.ref([]),f=n.ref(0),v=n.ref(1),E=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(H=[])=>{var Z,J;if(Array.isArray(H)&&H.length>0){let oe=H.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;H.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(J=H[te])!=null&&J.isHidden&&H.splice(te,1);oe=H.length;for(let te=0;te<oe;te++){const ee=H[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Qe=ee.dataIndex;ee.sorter=(_t,$t)=>_t[Qe]-$t[Qe]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ye,headerCellAlign:yt,headerCellColor:It,overflow:Sn}=ee;Ye&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Qe,_t)=>_t[ge].toString().toLowerCase().includes(Qe.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Qe,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(q)===_t&&e.clickHighlight},onClick:U("click",()=>{const $t=e.id,Cn=M($t);Qe={dataIndex:ge,title:Oe,...Qe},P($t,{...Cn,type:e.type,RECORD:Qe})})}),Sn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(H=[])=>{var J;let Z=He.cloneDeep(H);return(J=n.unref(m))!=null&&J.length&&(Z=He.cloneDeep(n.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(E,()=>{v.value=1,Q(!1)}),n.watch(r,H=>{i.value=!!H}),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(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([H,Z])=>{Z==="static"&&(y.value=H)},{immediate:!0});const k=n.ref({}),T=H=>{if(Array.isArray(H)){const Z=H.length,J=p,oe=J.length,ie={};for(let ee=0;ee<Z;ee++){const fe=H[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=te}};n.watch(()=>[e.isReverse,h.value,y.value],()=>{const H=n.unref(h),Z=n.unref(y);if(T(Z),e.isReverse){const{columns:J,dataSource:oe}=I(He.cloneDeep(H),He.cloneDeep(Z));u.value=J,l.value=oe}else u.value=H,l.value=Z},{immediate:!0});const I=(H,Z)=>{const J=H[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<H.length;te++){const ee=H[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=n.ref(""),L=Ve(e),A=async(H=!0,Z={})=>{var J;try{H&&(t.value=!0),n.unref(_)&&(Z.orderCondition=n.unref(_)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(E)||"10",layer:"1",...Z});const oe=await L(Z),{rows:ie=[],total:te=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(f.value=te,Array.isArray(ie)&&(y.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},B=({current:H},Z,J)=>{if(v.value=H,J&&Object.keys(J).length>0){const{field:oe,order:ie}=J,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?_.value=oe+" "+ee:ee||(_.value="")}e.isSortByFront||Q(!1)},w=n.computed(()=>{const H=e.simple,Z=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:Z,total:n.unref(f),current:n.unref(v),pageSize:n.unref(E)||"10",showSizeChanger:!1,size:"large",...J}}),C=H=>+H==1?"是":+H==0?"否":H,R=(H,Z)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=Z;if(J==null||J==="")return H;const te={money:Eo,percentage:pn,contrast:pn,boolean:C,decimals:gc,custom:gi};return te[J]?J==="decimals"?te[J](H,oe)||"":J==="custom"?te[J](H,ie)||"":te[J](H)||"":""},S=H=>H==="contrast"?"upDown":"",O=H=>{const{text:Z,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=H;if(J==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},F=n.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),V=H=>{const{text:Z,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=H=>{const Z=parseFloat(H+"");if(Z>=0)return Oo;if(Z<0)return Lo},U=Ee(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(Be,{getGlobalModel:H=>{},setGlobalModel:(H,Z)=>{}});P(e.id,{type:e.type,RECORD:""});const z=(H=[],Z=[])=>{const J=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=He.cloneDeep(J),h.value=x(J),y.value=Z},D=it(e),N=async(H=!0)=>{var Z,J,oe,ie;try{H&&(t.value=!0);const te=n.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await D(ee);z((J=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:J.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},q=n.ref(-1),K=(H,Z)=>({onClick:U("rowClick",()=>{const J=e.id,oe=M(J);P(J,{...oe,type:e.type,RECORD:H}),q.value=Z})}),{loadedData:G}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(G,H=>{if(e.dataType==="indicator"){const Z=en(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&at(e.graphicConfig,H)?(ae.value=!0,Q()):at(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Q=(H=!0)=>{switch(e.dataType){case"request":A(H);break;case"indicator":at(e.graphicConfig,n.unref(G))&&N(H);break}},le=()=>{const H=e.id,Z=M(H);P(H,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const H=n.unref(u);let Z=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(Z=H.findIndex(he=>he.dataIndex===J),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<H.length;he++){const ge=H[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=Y(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ye,dataIndex:yt}=ge;if(Ye===!0){for(let It=0;It<ee.length;It++){const Qe=+ee[It][yt];isNaN(Qe)||(Oe=new Pl.Big(Oe).add(Qe).toNumber())}ge.total=Oe}}return fe});function Y(H){var J;const Z=[];for(const oe of H)(J=oe.children)!=null&&J.length?Z.push(...Y(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(ze,{setRequest:H=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const ne=(H="",Z)=>De(H,Z),xe=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},ke=(H,Z="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Te=(H,Z)=>{H(Z.filterCheckboxGroupValue)},$e=(H,Z)=>{H({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Fe=()=>{},Ie=H=>{const Z=H.dataIndex;if(typeof Z=="string"){let J=n.unref(k)[Z];const oe=n.unref(H.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},we=async()=>{var ge,Oe;const H="EXPORT_KEY";ce.message.loading({key:H,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};n.unref(_)&&(Ye.orderCondition=n.unref(_));const yt=await L(Ye);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const J=n.unref(u),oe=[],ie=[];J==null||J.forEach(Ye=>{oe.push(Ye.dataIndex),ie.push(Ye.title)});const te=Z.map(Ye=>He.pick(Ye,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:H,content:"导出成功"})},qe=(H,Z=2)=>{const J=+H*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Q,exportTableData:we});const Ne=(H,Z)=>{let J=null;return e.stripedShow&&(J=Z%2===1?"table-striped":null),J},Ze=n.computed(()=>{let H=0;const{height:Z,isPageBottom:J}=e;return J&&Z&&(H=parseFloat(Z)-g()),H?H+"px":"100%"}),je=n.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),We=n.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),ct=n.computed(()=>parseFloat(e.fontSize)+16),Ke=n.computed(()=>{let H="";const{paginationColor:Z,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(H+="p-color "),J&&(H+="p-bg-color "),oe&&(H+="active-p-color "),ie&&(H+="active-p-bg-color "),te&&(H+="hover-bg-color "),H});return{x:d,y:c,style:s,customRow:K,pagination:w,formatFn:R,contrastClass:S,tableChange:B,summaryList:re,loading:t,onTouchHrefEvent:ke,handleHref:ne,handleHrefTarget:xe,useRowIndex:q,tableColumns:u,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:Te,onResetFilter:$e,onSearchFilterOptions:Fe,exportTableData:we,handleProgressText:qe,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:Ne,tableHeight:Ze,tableHeaderBgColor:je,tableBodyBgColor:We,getChgStyle:O,chgBoxStyle:F,getChgBoxImgStyle:V,getChgBoxImgSrc:W,seqIcon1:_f,seqIcon2:Of,seqIcon3:Lf,iconSize:ct,containerClass:Ke,getCellStyle:H=>{const{overflow:Z}=H;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Al=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},kl=Oa.setup;Oa.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const O1="",L1="",Nf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Ff=["id"],Mf={key:0,class:"table-tool"},zf=n.createTextVNode("导出数据"),Pf=n.createTextVNode(" 搜索 "),qf=n.createTextVNode(" 重置 "),Hf=["src","width","height"],Vf=["src","width","height"],jf=["src","width","height"],Wf={key:1},Uf={key:1,class:"action-list"},Gf=["href","target","onClick"],$f={key:2,class:"progress-cell"},Zf=["title"],Kf=["title"],Yf=["src"],Qf=["title"],Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Nf(()=>n.createElementVNode("span",null,"条 / 页",-1));function tu(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"),g=n.resolveComponent("a-table-summary-row"),h=n.resolveComponent("a-table-summary"),y=n.resolveComponent("a-table"),u=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(u,{loading:e.loading},{default:n.withCtx(()=>{var m;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Mf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[zf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(y,{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:f,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:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(E,f)},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(()=>[Pf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,f),["stop"])},{default:n.withCtx(()=>[qf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:f,index:v,text:E,record:p})=>{var b,x,k,T;return[f.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,Hf)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Vf)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,jf)):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",Wf,n.toDisplayString(v+1),1))],64)):f.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Uf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(I,_)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:_},[n.createElementVNode("a",{href:e.handleHref(I.href,p),target:e.handleHrefTarget(I.target),style:n.normalizeStyle({color:I.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(I.target,e.handleHref(I.href,p))},n.toDisplayString(I.title),13,Gf)]))),128))])):f.format==="progress"?(n.openBlock(),n.createElementBlock("div",$f,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(E,f.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(E)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(E,f.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f)})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=f==null?void 0:f.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Zf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle(e.getChgStyle({...f,text:E})),title:f.format!=null?e.formatFn(E,f):E},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Yf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(f.format!=null?e.formatFn(E,f):E),1)],14,Kf),f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""},n.toDisplayString(((T=f==null?void 0:f.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Qf)):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(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(f,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),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"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Xf,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ff)}const Tl=pe(ye(Oa,[["render",tu],["__scopeId","data-v-f641124f"]])),La={...Ae,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"},Na=Se(La),Bl=["click"];Je.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Na},setup(e){const o=Ve(e),t=Ve({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),g=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=n.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+At(C):"circle"}),y=C=>{let R=e.tooltipFormatter;const S=R.match(/\{(.+?)\}/g);if(S==null||S.length===0)return R;for(let O=0;O<S.length;O++){const F=S[O];let V=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=V.match(W);for(let M=0;M<U.length;M++){const P=U[M],z=C[P];z!=null&&(V=V.replace(P,z))}R=R.replace(F,V)}return R.split(`
|
|
120
|
-
`)},u=n.ref(!1),m=n.ref("");let f=new AbortController;const v=(C,
|
|
118
|
+
<span style="color: ${H||e.color};${n.unref(h)}">${e.minusSignShow?"-":""}${Math.abs(+D).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(D=+D,isNaN(D)||(D=(D*100).toFixed(2),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}%</span>`))):e.format==="money"?(D=+D,isNaN(D)||(D=Eo(D),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`))):N==="thousands"?(D=+D,isNaN(D)||(D=hc(D),S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`))):S=S.replace(U,`<span style="color:${m(D)||e.variableColor};font-size:${n.unref(i)};${n.unref(h)}">${D}</span>`)}}if(F||(F=`<span style="color: ${m(S)};${n.unref(h)}">${S}</span>`),e.unitShow&&e.unitText){const{unitTop:W,unitLeft:U}=e;let M="position:relative;";W&&(M+=`top:${W};`),U&&(M+=`margin-left:${U};`),F+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${M};${n.unref(h)}'>${e.unitText}</span>`}return F});function m(w){let C="",I=!1;const{targetValue:S,targetShow:O,notExpectColor:F}=e;if(O){switch(e.targetRule){case"equal":w!==S&&(I=!0);break;case"greater":w<=S&&(I=!0);break;case"greater_equal":w<S&&(I=!0);break;case"less":w>=S&&(I=!0);break;case"less_equal":w>S&&(I=!0);break}I&&(C=F)}return C}const{pageMode:f}=n.inject(Me,{pageMode:"normal"}),v=je(e),E=n.ref(!1),p=async()=>{var w;try{E.value=!0;const C=await v();r.value=((w=C==null?void 0:C.data)==null?void 0:w.data)||{}}catch(C){console.error(C)}finally{E.value=!1}},b=(w={})=>{r.value=w},x=w=>{const C=e.id,I=l(C);d(C,{...I,value:w||"",RECORD:w||""})},k=lt(e),T=async()=>{var w,C;try{E.value=!0;const I=await k(),{data:S}=(I==null?void 0:I.data)||{};if(S){t.value=!1;const{columns:O=[],rows:F=[]}=((w=I==null?void 0:I.data)==null?void 0:w.data)??{},{graphicConfig:V}=e;let W={};if(O.length>0)if((C=V==null?void 0:V.dimensionList)!=null&&C.length){const U=O[0];U&&(F!=null&&F.length)&&(W={value:F[0][U]})}else{const U=O.find(M=>!!M);U&&(W={value:isNaN(F[U])?0:F[U]||0})}x(W==null?void 0:W.value),b(W)}else t.value=!0,x("NaN"),b({value:"NaN"})}catch(I){console.error(I)}finally{E.value=!1,g(e.id,!0)}},R=()=>{switch(e.dataType){case"indicator":T();break;case"request":p();break}},{setRequest:_}=n.inject(ze,{setRequest:({id:w,sortNum:C,requestFn:I})=>{}});typeof _=="function"&&_({id:e.id,requestFn:R,sortNum:e.requestSort}),Le(e,{refreshData:R}),o({refreshData:R});const L=Ee(e),A=L("click",()=>{const w=document.getElementsByClassName(`ecan-text_${e.id}`);if(w!=null&&w.length&&x(w[0].innerText),!e.linkPage&&!e.href)return;const C=e.linkPage||"",I=mi(n.unref(f),C),S=e.href;let O=S||I;O=De(O);const F=e.target;F&&(F!=="event"?window.open(O,"_"+F):window.parent.postMessage({type:"openPage",url:S},"*"))}),B=L("valueChange",()=>{});return n.watch(()=>u.value,(w,C)=>{w!==C&&B()}),{style:a,myText:u,loading:E,click:A,textIndent:s,vFontSize:i,gradientStyle:y}}}),bi=()=>{n.useCssVars(e=>({"0d77f212":e.vFontSize,"49a65b2d":e.textIndent,"6ee347f6":e.percentageSide}))},vi=No.setup;No.setup=vi?(e,o)=>(bi(),vi(e,o)):bi;const Eu="",Sc=["innerHTML"];function Cc(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:n.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,Sc))}const Si=pe(ye(No,[["render",Cc],["__scopeId","data-v-ecdced02"]])),wc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Ru="",Ac={class:"red"};function kc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Ac,n.toDisplayString(e.text),1)}const Ci=pe(ye(wc,[["render",kc],["__scopeId","data-v-4dd9c03e"]])),Fo={...Ae,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"}},Mo=Se(Fo),wi=["timeChange"],Tc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:g}=e;let h=be();if(g){const{type:y,value:u,mode:m}=g;switch(y){case"add":h=h.add(u,m);break;case"minus":h=h.subtract(u,m)}}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=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:g,mode:h}=e.updateInterval||{};g&&(c=c*g);const y={second:1,minute:60,hour:60*60,day:24*60*60};h&&(c=c*y[h]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),_u="";function Bc(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 Ai=pe(ye(Tc,[["render",Bc],["__scopeId","data-v-b628fca2"]])),zo={...Ae,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:{}},Po=Se(zo),ki=["refreshData","click","resetRecord"],Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3i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EgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/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 _c=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Bi=(e,o,t)=>o in e?_c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ei=(e,o)=>{for(var t in o||(o={}))Oc.call(o,t)&&Bi(e,t,o[t]);if(Ti)for(var t of Ti(o))Lc.call(o,t)&&Bi(e,t,o[t]);return e},Nc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Fc=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),g=n.ref(0),h=n.ref(0),y=n.ref(!1),u=n.ref(!1),m=n.ref(0),f=n.ref(null),v=n.ref("200px"),E=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await k(),i.value++},k=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,g.value=b.value.clientHeight;const O=Math.ceil(g.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,F)=>{O!==F&&o(O?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),y.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),y.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},L=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},A=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=n.computed(()=>e.pauseOnHover&&(y.value||u.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),w=n.computed(()=>e.pauseOnHover&&y.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),C=n.computed(()=>{const O={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${w.value}`,"--pauseAnimation":`${A.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}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),Ei(Ei({},O),F)}),I=n.computed(()=>!!e.gradient),S=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 k(),x()),E.value=!0};return n.onMounted(async()=>{S(),f.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:h,containerHeight:g,loopCounter:m,loopInterval:f,mouseOverMarquee:y,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:I,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:S,getCurrentStyle:C,hoverStarted:T,hoverEnded:R,mouseDown:_,mouseUp:L}}}),Mc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},zc={class:"marquee",ref:"marqueeContent"},Pc={key:1,"aria-hidden":!0,class:"marquee"};function qc(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",Mc,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",zc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Pc,[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 Hc=Nc(Fc,[["render",qc]]);const Vc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Hc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),jc={key:1,class:"list-wrap"};function Wc(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",jc,[n.renderSlot(e.$slots,"default")]))}const Uc=ye(Vc,[["render",Wc]]),Gc=n.defineComponent({name:"EcanList",components:{Skeleton:ln,ATooltip:ce.Tooltip,MarqueeScroll:Uc},props:{...Po},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(A,B)=>{const{format:w,customFormatter:C}=B;if(w==null||w==="")return A;const I={money:Eo,percentage:pn,contrast:pn,custom:gi};return I[w]?w==="custom"?I[w](A,C)||"":I[w](A)||"":""},i=(A,B)=>{const w=parseFloat(A+"");if(B!=="contrast")return"";switch(!0){case w>=0:return"goUp";case w<0:return"goDown"}},s=je(e),l=n.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const B=await s();t.value=((A=B==null?void 0:B.data)==null?void 0:A.data.rows)||[]}catch(B){console.error(B)}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})),g=n.computed(()=>{const{columns:A,isUseSeq:B}=e;return B?[n.unref(c),...A]:A}),h=lt(e),y=async()=>{var A;try{l.value=!0;const B=await h(),{columns:w=[],rows:C=[]}=((A=B==null?void 0:B.data)==null?void 0:A.data)??{};e.isUseSeq&&w.unshift(e.seqName),g.value.forEach((I,S)=>{(!e.isUseSeq||S!==0)&&(I.title=w[S],I.key=w[S])}),t.value=C}catch(B){console.error(B)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":y();break;case"request":d();break}},m=Ee(e),{getGlobalModel:f,setGlobalModel:v}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,B)=>{}}),E=A=>{m("click",()=>{const B=f(e.id);v(e.id,{...B,type:e.type,RECORD:A})})()};Le(e,{refreshData:u,resetRecord:()=>{const A=e.id,B=f(A);v(A,{...B,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(ze,{setRequest:({id:A,sortNum:B,requestFn:w})=>{}});typeof b=="function"&&b({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const x=A=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:A.align||"left",backgroundColor:A.cellColor}),k=(A,B)=>{let w=0;const C=n.unref(t).map(S=>S[B]),I=Math.max(...C);return I&&(w=A[B]/I*100),w},T=A=>{const{progressColor:B="#1890ff",progressGradientColor:w=""}=A;return w?{background:`linear-gradient(to right, ${B} 0%, ${w} 100%)`}:{backgroundColor:B||"#1890ff"}},R=n.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=n.inject(Me,{pageMode:"normal"}),L=n.computed(()=>n.unref(_)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:g,click:E,getColumnStyle:x,getPercentage:k,getBackgroundColor:T,seqIcon4:Ec,seqIcon5:Dc,seqIcon6:Rc,seqIcon7:Ic,iconSize:R,isScroll:L}}}),Lu="",Nu="",$c=e=>(n.pushScopeId("data-v-83e1ef11"),e=e(),n.popScopeId(),e),Zc={key:0,class:"title"},Kc={key:0,class:"ranking"},Yc={key:1,class:"ecan-list-content"},Qc=["onClick"],Jc={key:0,class:"ranking"},Xc=$c(()=>n.createElementVNode("div",{class:"icon"},null,-1)),ed={class:"sort"},td=["src","width","height"],nd=["src","width","height"],od=["src","width","height"],ad=["src","width","height"],rd={key:1},id={key:2,class:"empty"};function ld(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",Zc,[(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",Kc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(g,h)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:g.key||h,style:n.normalizeStyle({color:g.titleColor,...e.getColumnStyle(g)})},n.toDisplayString(g.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Yc,[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,g)=>(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:(g+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||g,onClick:h=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Jc,[Xc,n.createElementVNode("div",ed," Top "+n.toDisplayString(g+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},[g===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,td)):g===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,nd)):g===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):g>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(g+1),5)],64)):(n.openBlock(),n.createElementBlock("span",rd,n.toDisplayString(g+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,Qc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Di=pe(ye(Gc,[["render",ld],["__scopeId","data-v-83e1ef11"]])),qo={...Ae,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:{}},Ho=Se(qo),Ri=["refreshData","click"],sd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:ln},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(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),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const T=e.text.match(/\{.+\}/g)||[];let R;const _=new Set(Object.keys(x));for(let L=0;L<T.length;L++){const A=T[L],B=A.slice(1,A.length-1);if(_.has(B)){R=x[B];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(k)?R=0:R=k*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),d=n.computed(()=>{var _;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,T=n.unref(s),R=x.match(/\{.+\}/g)||[];for(let L=0;L<R.length;L++){const A=R[L];let B=A.slice(1,A.length-1);const w=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=A.match(w);for(let S=0;S<(C==null?void 0:C.length);S++){const O=(_=C[S])==null?void 0:_.trim();T[O]!=null&&(B=B.replace(O,T[O]))}let I=B;try{/\(.*\)/g.test(B)&&(I=vn(B))}catch(S){console.error(S)}typeof+I=="number"&&!isNaN(+I)?(I=+I*100,e.decimalFormat&&(I=I.toFixed(2))):I=k,x=x.replace(A,I+"")}return n.unref(t)?"NaN":x}),c=je(e),g=n.ref(!1),h=async()=>{var x;if(e.dataType==="request")try{g.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{g.value=!1}},y=(x={})=>{s.value=x},u=lt(e),m=async()=>{var x;try{g.value=!0;const k=await u(),{data:T}=(k==null?void 0:k.data)||{};if(T){t.value=!1;const{columns:R=[],rows:_=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let L={};if(R.length>0){const A=R.find(B=>!!B);A&&(L={percent:_[A]})}y(L)}else t.value=!0,y({percent:"NaN"})}catch(k){console.error(k)}finally{g.value=!1}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":h();break}};Le(e,{refreshData:f}),o({refreshData:f});const E=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:T})=>{}});typeof p=="function"&&p({id:e.id,requestFn:f,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:T,strokeColor:R}=e;let _=R;return x&&k&&(_={"0%":R,[`${T*100}%`]:k}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:g,click:E,customStrokeColor:b}}}),Mu="";function cd(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 Ii=pe(ye(sd,[["render",cd],["__scopeId","data-v-cf942b5f"]])),Vo={...Ae,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},jo=Se(Vo),_i=["inputChange","inputBlur"],dd=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...jo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:g=>{},setGlobalModel:(g,h)=>{},getRecordValueByKeyName:g=>{}});n.watch(()=>e.value,g=>{t.value=i(g)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const g=a(e.id);r(e.id,{...g,RECORD:t})},l=Ee(e),d=Ve.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Pu="";function fd(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 Oi=pe(ye(dd,[["render",fd]])),Wo={...Ae,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"},Uo=Se(Wo),Li=["dateChange"],Go=n.defineComponent({name:"EcanDatePicker",props:{...Uo},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([y,u,m])=>{let f=null;if(y?f=be(De(y)):u&&(f=be()),m&&f){const{type:v,value:E,mode:p}=m;switch(v){case"add":f=f.add(E,p);break;case"minus":f=f.subtract(E,p)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(y,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),g=n.ref({}),h=y=>{y?setTimeout(()=>{g.value=n.unref(c)},300):g.value={}};return n.onMounted(()=>{setTimeout(()=>{const y=document.querySelector(`#ecan-date-picker-${e.id}`);if(y){const u=y.getBoundingClientRect(),m=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<m&&(c.value.marginLeft=-1*(m-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ma,change:d,scaleValue:o,popupStyle:c,customStyle:g,openChange:h}}}),Ni=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const Hu="",Vu="",ud=["id"];function hd(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,ud)}const Mi=pe(ye(Go,[["render",hd],["__scopeId","data-v-d4ec0d66"]])),$o={...Ae,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,limitInterval:null},Zo=Se($o),zi=["dateChange"];var Pi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,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,g){return c=Number(c),this.$utils().p(g)===a?this.add(3*c,t):l.bind(this)(c,g)};var d=s.startOf;s.startOf=function(c,g){var h=this.$utils(),y=!!h.u(g)||g;if(h.p(c)===a){var u=this.quarter()-1;return y?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return d.bind(this)(c,g)}}})})(Pi);var gd=Pi.exports;const md=fr(gd);be.extend(md);const Ko=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Zo},setup(e){const o=Ce(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,k,T,R,_])=>{let L=null,A=null;if(k&&(L=be().subtract(T,R),A=be()),b&&(L=be(De(b))),x&&(A=be(De(x))),_){const{type:B,value:w,mode:C}=_;switch(B){case"add":L=L&&L.add(w,C),A=A&&A.add(w,C);break;case"minus":L=L&&L.subtract(w,C),A=A&&A.subtract(w,C)}}a.value=[L,A]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,k)=>{Array.isArray(b)?(r=b[0],i=b[1],s=k.range):(r=null,i=null)};window.dayjs=be;const d=b=>{let x=!1,{limitStartTime:k,limitEndTime:T}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(k=De(k,{codeData:R}),T=De(T,{codeData:R}),k&&T?x=!(be(k)<b&&b<be(T)):k?x=be(k)>b:T&&(x=be(T)<b),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const L=_.startOf("year"),A=_.endOf("year");x=!(L<=b&&b<A)}}if(!x){const{value:_=0,mode:L="year"}=e.limitInterval||{};_&&(s==="start"?x=r.add(_,L)<b:s==="end"&&(x=i.subtract(_,L)>b))}return x},{getGlobalModel:c,setGlobalModel:g}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),h=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),y=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);g(e.id,{type:e.type,format:e.format,startTime:h,endTime:y,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=Ee(e);let m=!1;const f=u("dateChange",()=>{}),v=b=>{const x=n.unref(a),k=x&&x[0]&&x[1];b===!1&&m===!0&&k&&(f(),m=!1),b||(s="")},E=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:k}=x;if(k)switch(n.unref(k)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:t,locale:Ma,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:E}}}),qi=()=>{n.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Hi=Ko.setup;Ko.setup=Hi?(e,o)=>(qi(),Hi(e,o)):qi;const Wu="",Uu="";function yd(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 Vi=pe(ye(Ko,[["render",yd],["__scopeId","data-v-c9c68612"]])),Yo={...Ae,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"},Qo=Se(Yo),ji=["click"],xd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Qo},setup(e){const o=Ce(e),a=Ee(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(()=>De(e.text)),s=n.computed(()=>De(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}}}),$u="";function pd(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 Wi=pe(ye(xd,[["render",pd]])),Jo={...Ae,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:{}},Xo=Se(Jo),Ui=["checkboxChange"],bd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...Xo},setup(e,{expose:o}){const t=Ce(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=je(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(Be,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),y=lt(e),u=async()=>{var v;try{const E=await y(),{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(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:f}=n.inject(ze,{setRequest:({id:v,sortNum:E,requestFn:p})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:h}}}),Ku="";function vd(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 Gi=pe(ye(bd,[["render",vd]])),ea={...Ae,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"},ta=Se(ea),$i=["selectChange","refreshData"],Sd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=je(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var S;const{mode:I}=e;return(S=n.unref(i))!=null&&S.length?s.value:I==="multiple"||I==="tags"||I==="combobox"?[]:""},set:I=>{s.value=I}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:g}=n.inject(Be,{getGlobalModel:I=>{},setGlobalModel:(I,S)=>{},getRecordValueByKeyName:I=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:I,selectFirstOption:S,value:O}=e,F=g(O);I==="multiple"||I==="tags"||I==="combobox"?F?s.value=F.split(","):S&&(s.value=[n.unref(i)[0]]):F?s.value=F:S&&(s.value=n.unref(i)[0])},{immediate:!0});const h=e.dataFieldNames,y=(I,S)=>{const O=h.label,F=h.value;let V;const W=S[O],U=S[F];return W!=null?V=W:U!=null&&(V=U),(V==null?void 0:V.toLowerCase().indexOf(I==null?void 0:I.toLowerCase()))>=0},u=I=>{const{label:S,value:O,options:F}=e.dataFieldNames;if(F&&Array.isArray(I))if(I.some(V=>F in V)){const V={},W=[];I.forEach(U=>{V[U[F]]||(V[U[F]]=[]),V[U[F]].push({[S]:U[S],[O]:U[O]})});for(const U in V)W.push({[S]:U,[F]:V[U]});return W}else return I;else if(!F)return I},m=n.ref(!1),f=async()=>{var I,S;if(e.dataType==="request"){m.value=!0;try{const O=await r();if(i.value=u(((S=(I=O==null?void 0:O.data)==null?void 0:I.data)==null?void 0:S.rows)||[]),e.selectFirstOption){let F=n.unref(i)[0];if(h.options){const V=F[h.options];V&&V.length&&(F=V[0])}s.value=F[h.value]}}catch(O){console.error(O)}finally{m.value=!1}}},{setLoadedData:v,loadedData:E}=n.inject(bt,{setLoadedData:(I,S)=>{},loadedData:{}}),p=n.computed(()=>{let I=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const S=h.label,O=h.value;if(e.mode==="multiple")I=n.unref(i).filter(F=>n.unref(s).includes(F[O])).map(F=>F[S]);else{const F=n.unref(i).find(V=>n.unref(s)===V[O]);F&&(I=F[S])}}return I}),b=n.ref([]),x=n.computed(()=>{const I={};if(e.mode!=="multiple"){const S=n.unref(b).find(O=>O.value===n.unref(s));S&&(I.itemCodes=S.item_codes)}return I});c(e.id,{type:e.type,value:p,...n.unref(x)});const T=Ee(e)("selectChange",()=>{const I=e.id,S=d(I);c(I,{...S,...n.unref(x),RECORD:p})}),R=(I=[])=>{if(i.value=u(I),e.selectFirstOption){let S=n.unref(i)[0];if(h.options){const O=S[h.options];O&&O.length&&(S=O[0])}s.value=S[h.value]}},_=lt(e),L=async()=>{var I;try{m.value=!0;const S=await _(),{data:O}=(S==null?void 0:S.data)||{},F=h.label,V=h.value;if(O){const W=((I=S==null?void 0:S.data)==null?void 0:I.data)??[];b.value=W;const U=W.map(z=>({[F]:z.label,[V]:z.value})),{id:M}=e,P=d(M);c(M,{...P,...n.unref(x)}),v(M,!0),R(U)}else R([])}catch(S){console.error(S)}finally{m.value=!1}},A=n.computed(()=>{var I,S;return(S=(I=e==null?void 0:e.graphicConfig)==null?void 0:I.controlList)==null?void 0:S.find(O=>O.conditionKey==="parentCode")}),B=n.ref(!1);n.watch(E,I=>{!n.unref(B)&&n.unref(A)&&I[n.unref(A).id]&&(B.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{if(n.unref(A)){if(n.unref(E)[n.unref(A).id]){const{mode:I}=e;I==="multiple"||I==="tags"||I==="combobox"?l.value=[]:l.value="",L()}}else L();break}case"request":f();break}};Le(e,{selectChange:T,refreshData:w});const{setRequest:C}=n.inject(ze,{setRequest:({id:I,sortNum:S,requestFn:O})=>{}});return typeof C=="function"&&C({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:T,options:i,filterOption:y,loading:m,resultValue:l}}}),Qu="",Ju="";function Cd(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 Zi=pe(ye(Sd,[["render",Cd],["__scopeId","data-v-e5517626"]])),na={...Ae,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},oa=Se(na),Ki=["selectChange","refreshData"],wd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...oa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(u,m)=>{const f=e.dataFieldNames,v=f.label,E=f.value;let p;const b=m[v],x=m[E];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:m,selectFirstOption:f}=e;u?m?r.value=m.split(","):f&&(r.value=[n.unref(t)[0]]):m?r.value=m:f&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=je(e),l=async()=>{var u,m;if(e.dataType==="request"){i.value=!0;try{const f=await s();t.value=((m=(u=f==null?void 0:f.data)==null?void 0:u.data)==null?void 0:m.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:u=>{},setGlobalModel:(u,m)=>{}});c(e.id,{type:e.type,value:r});const h=Ee(e)("selectChange",()=>{const u=e.id,m=d(u);c(u,{...m,RECORD:r})});Le(e,{selectChange:h,refreshData:l});const{setRequest:y}=n.inject(ze,{setRequest:({id:u,sortNum:m,requestFn:f})=>{}});return y({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:h}}},e1="",t1="";function Ad(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 Yi=pe(ye(wd,[["render",Ad],["__scopeId","data-v-37236421"]])),aa={...Ae,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:""},ra=Se(aa),Qi=["checkboxChange","click"],kd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ra},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=b,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=je(e),l=async()=>{var k,T;if(e.dataType!=="request")return;const b=await s(),x=((T=(k=b==null?void 0:b.data)==null?void 0:k.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e),h=g("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),y=b=>{r.value=b,g("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{h()});const u=lt(e),m=async()=>{var b;try{const x=await u(),{data:k}=(x==null?void 0:x.data)||{};if(k){const R=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(_=>({label:_.label,value:_.value}));i(R)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:f,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:f}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:y,useImagePath:At,tabChange:E}}}),o1="",a1="",Td=["onClick"];function Bd(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,g)=>(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:g,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,Td))),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:g=>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 Ji=pe(ye(kd,[["render",Bd],["__scopeId","data-v-baa84768"]])),ia={...Ae,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",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},la=Se(ia),Xi=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await dt.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)},sa={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,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"},ca=Se(sa),el=["showModal","hideModal"];function tl(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 y=o.find(u=>u.id===h);if(y){bn(y,"parentId")||(y.parentId="",y.sourceLeft=y.left,y.sourceTop=y.top);for(const u in t[h])if(t[h][u])for(const m of t[h][u]){const f=o.find(v=>v.id===m);f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(y.sourceLeft||y.left)+"px",f.top=parseFloat(f.top)-parseFloat(y.sourceTop||y.top)+"px")}}}const s=Array.from(new Set(o.filter(h=>(!bn(h,"parentId")||h.parentId==="")&&h.combinationId).map(h=>h.combinationId))),l=[];for(const h of s){const y=a[h];if(y!=null&&y.length){const u=o.filter(m=>y.includes(m.id));if(u!=null&&u.length){const m=Dd(u);if(m){l.push({...m,id:h,keyName:h,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:m.left,sourceTop:m.top});for(const f of u)f&&(f.parentId=h,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(m.left)+"px",f.top=parseFloat(f.top)-parseFloat(m.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)&&!bn(h,"parentId")),g=[];for(const h of c)if(h){const y=h.id+"_vir";g.push({id:y,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=y,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=0,h.top=0}g!=null&&g.length&&o.unshift(...g);for(const h of o){const y=document.body.clientWidth;if(h.parentId===""&&["ecanBorder","ecanTabs"].includes(h.type))h.sourceWidth=parseFloat(h.width),h.height=(y/(h.sourceWidth/parseFloat(h.height))).toFixed(2)+"px",h.width="100%",h.position="relative",h.top="auto",h.left="auto";else{const u=o.find(m=>m.id===h.parentId);if((u==null?void 0:u.parentId)===""){const m=u.sourceWidth||parseFloat(u.width),f=y/m;h.scale=f,h.top=parseFloat(h.top)*f-parseFloat(h.height)*(1-f)/2+"px",h.left=parseFloat(h.left)*f-parseFloat(h.width)*(1-f)/2+"px"}}h.type==="ecanModal"&&(h.parentId="",h.fullModal=!0)}return Ed(o)}return o}function Ed(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ve.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 Dd(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 Rd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Id(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 _d=pe(ye(Rd,[["render",Id]])),Od=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:K0,Render:_d},props:{...ca},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(Be,{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]}}),g=e.fullModal?"1920px":e.width,h=e.fullModal?"1080px":e.height,y=e.originalWidth,u=e.originalHeight,m=n.ref("80%"),f=n.ref(0),v=n.ref(),E=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),k=n.ref(!1),T=n.ref();let R;const _=()=>{v.value=parseFloat(g)/parseFloat(y);const Q=parseFloat(h)/parseFloat(u),le=document.body.offsetWidth,re=document.body.offsetHeight;f.value=le*n.unref(v),E.value=re*Q,m.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(f)}px`,height:`${n.unref(E)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(f)/parseFloat(g)},${n.unref(E)/parseFloat(h)})`,width:g,height:h}},L=Ve.debounce(()=>{_()},100),A=()=>{const Q=window.MutationObserver;R=new Q(L),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},B=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},w=n.ref(!1),{touchRequest:C}=n.inject(ze,{touchRequest:()=>{}}),I=n.ref(""),S=()=>{var re;const{title:Q}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},O=Ee(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),I.value=S(),w.value=!0},V=O("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),w.value=!1}),W=()=>{V()},U=()=>{V(),s()},{setModalModel:M,pushUseModalIds:P,popUseModalIds:z}=n.inject(lr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),D=n.computed(()=>{if(a){const Q=Ve.cloneDeep(e.componentList),le=r(),re=i();return tl({componentList:Q,containerMap:le,combinationMap:re})}else return e.componentList}),N=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(Y=>Y.id),M(Q,[...new Set(le)]))};n.watch(()=>w.value,async Q=>{Q?(k.value=!1,P(e.id),N(),await n.nextTick(()=>{_(),window.addEventListener("resize",L),A(),k.value=!0}),C()):(z(),window.removeEventListener("resize",L),B())});const H=n.computed(()=>n.unref(v)>=1),K=n.computed(()=>e.fullModal),G=n.computed(()=>{let Q="ecan-modal";return n.unref(H)&&(Q+=" ecan-full-width-modal"),n.unref(K)&&(Q+=" ecan-full-modal"),Q});return Le(e,{showModal:F,hideModal:V}),{modalRef:T,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:K,style:b,visible:w,showModal:F,onOk:W,onCancel:U,isFullWidth:H,wrapClassName:G,ready:k,usedComponentList:D,isMobile:a,readyIds:t,hasOwn:bn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:I}}}),l1="",s1="";function Ld(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,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+g},[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 kt=pe(ye(Od,[["render",Ld],["__scopeId","data-v-a2e70efd"]]));Ye.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const Nd=n.defineComponent({name:"EcanPie",props:{...la},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:B=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,C=e.colors;B=B.map((I,S)=>({label:w?{color:C[S]}:{},...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(){Gt(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 w;t.value=!0,(w=i.value)==null||w.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(){ce.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:w=>{const{marker:C,seriesName:I,name:S,value:O,percent:F,data:V}=w||{};return De(e.tooltipFormatter,{textData:{marker:C,name:S,value:O,percent:F,a:I,b:S,c:O,d:F,...V}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:B,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?We:e.labelFontSize,position:e.labelPosition,formatter:uc(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=()=>{const B=t.value?We:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:B+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:B}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:C}=r.value[0]||{};let I=0,S,O="0%";if(C)for(const F of C)F.name===w&&(S=+F.value),I+=+F.value;return I&&(O=`${(S/I*100).toFixed(2)}%`),tn(e.legendFormatter,{name:w,value:S,percent:O})}}},c=()=>{t.value=!1},{getGlobalModel:g,setGlobalModel:h}=n.inject(Be,{getGlobalModel:B=>{},setGlobalModel:(B,w)=>{}}),{pageMode:y}=n.inject(Me,{pageMode:"normal"}),u=(B=[],w)=>{const{dataset:C}=Ft(B,w);r.value=C},m=(B=[],w)=>{const C=Ft(B,w);r.value=C.dataset};n.watch(()=>e.data,B=>{(e.dataType==="static"||n.unref(y)==="design")&&u(B)},{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,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const f=n.ref(!1),v=je(e),E=async()=>{var B,w;if(e.dataType==="request")try{f.value=!0;const C=await v();u((w=(B=C==null?void 0:C.data)==null?void 0:B.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{f.value=!1}},p=Ee(e);h(e.id,{type:e.type,RECORD:""});const b=p("click",B=>{const w=g(e.id);h(e.id,{...w,type:e.type,RECORD:B==null?void 0:B.data})}),x=lt(e),k=async()=>{var B;try{f.value=!0;const w=await x(),{data:C}=(w==null?void 0:w.data)||{};if(C){const{columns:I=[],rows:S=[]}=((B=w==null?void 0:w.data)==null?void 0:B.data)??{};let O=[];if(I.length>0){const F=I[0],V=I[1];O=S.map(W=>({name:W[F],value:isNaN(W[V])?0:W[V]||0}))}m(O)}}catch(w){console.error(w)}finally{f.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(T,B=>{if(e.dataType==="indicator"){const w=en(e.graphicConfig);w!=null&&w.length&&(!n.unref(R)&&rt(e.graphicConfig,B)?(R.value=!0,_()):rt(e.graphicConfig,B)||(R.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(T))&&k();break;case"request":E();break}};Le(e,{resetRecord:()=>{const B=e.id,w=g(B);h(B,{...w,RECORD:""})},refreshData:_,click:b}),o({refreshData:_});const{setRequest:A}=n.inject(ze,{setRequest:B=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:f,ecanModal:i}}}),d1="";function Fd(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 nl=pe(ye(Nd,[["render",Fd]])),da={...Ae,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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},fa=Se(da),ol=["click","refreshData","resetRecord"];Ye.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const Md=n.defineComponent({name:"EcanLine",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?We:12),c=n.ref({});let g;const h=n.ref([]),y=n.computed(()=>{const S=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(){Gt(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 F;a.value=!0,(F=l.value)==null||F.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(){ce.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:F=>{var M;const V=F.length;let W="",U=e.tooltipFormatter;g=(M=F[0])==null?void 0:M.data,U===""&&(U="{marker} {a} {c}");for(let P=0;P<V;P++){const{marker:z,seriesName:D,name:N,value:H,data:K}=F[P]||{};if(P===0){let G=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(G=(+N).toString()),W+=`${it(S,G)}<br/>`}W+=De(U,{textData:{marker:z,name:N,value:H,a:D,b:N,c:H||0,...K}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(F=>{let V={};return F&&typeof F=="object"?V={...F}:V={value:F},V}),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(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),it(S,F)}},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(F){return it(O,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?We:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?We:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>tn(e.legendFormatter,{name:F})},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,O)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(S=[],O=!1)=>{let F;if(e.dataFieldConfigType==="key"){const M=O?e.keyTypeDataFieldNames:null;F=wt(S,M)}else if(e.dataFieldConfigType==="value"){const M=O?e.valueTypeDataFieldNames:null;F=Ft(S,M)}s.value=F.dimensions,h.value=F.dataset;const V=F.dataset,W=[],U=V.length;for(let M=0;M<U;M++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...V[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...n.unref(E)})}i.value=W},b=(S=[],O,F=!1)=>{const W=wt(S,F?O:null,!0);s.value=W.dimensions,h.value=W.dataset;const U=W.dataset,M=[],P=U.length;for(let z=0;z<P;z++){const D={};e.shadowColor&&(D.shadowColor=e.shadowColor,D.shadowBlur=e.shadowBlur,D.shadowOffsetY=e.shadowOffsetY,D.shadowOffsetX=e.shadowOffsetX),M.push({type:"line",...U[z],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[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...D},...n.unref(E)})}i.value=M};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,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([S])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(S)},{immediate:!0,deep:!0});const x=n.ref(!1),k=je(e),T=async()=>{var S,O;if(e.dataType==="request")try{x.value=!0;const F=await k();p((O=(S=F==null?void 0:F.data)==null?void 0:S.data)==null?void 0:O.rows,!0)}catch(F){console.error(F)}finally{x.value=!1}},R=Ee(e);f(e.id,{type:e.type,RECORD:""});const _=R("click",S=>{const O=m(e.id);f(e.id,{...O,type:e.type,RECORD:e.tooltipShow?g:S.data})}),L=S=>{t.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=L:c.value.click=_;const A=lt(e),B=async()=>{var S;try{x.value=!0;const O=await A(),{columns:F=[],rows:V=[]}=((S=O==null?void 0:O.data)==null?void 0:S.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map(U=>({label:U,value:U}))}),b(V,W,!0)}catch(O){console.error(O)}finally{x.value=!1}},w=()=>{switch(e.dataType){case"indicator":B();break;case"request":T();break}};Le(e,{refreshData:w,resetRecord:()=>{const S=e.id,O=m(S);f(S,{...O,RECORD:""})},click:_});const{setRequest:I}=n.inject(ze,{setRequest:S=>{}});return typeof I=="function"&&I({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:y,style:r,click:_,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),u1="";function zd(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 al=pe(ye(Md,[["render",zd]])),ua={...Ae,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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ha=Se(ua),rl=["refreshData","click","resetRecord"];Ye.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Pd=n.defineComponent({name:"EcanBar",props:{...ha},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.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=Ce(e),d=n.ref([]),c=n.ref(),g=n.ref({});let h;const y=n.computed(()=>a.value?We:12),u=n.computed(()=>{const{gradientShow:z,gradientColors:D,gradientOffset:N,barBorderRadius:H}=e,K=n.unref(d),G=K.length,ae=[];for(let Q=0;Q<G;Q++){const le={...K[Q],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let Y="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:ke,data:Te}=re||{};return Y+=De(X,{textData:{name:xe,value:ke,a:ne,b:xe,c:ke||0,...Te}},{useNewline:!0,useSpace:!0}),Y}},le.itemStyle={},z&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:N,color:D[Q]},{offset:1,color:D[Q]}]}}),H){const re=H.split(",");if(re!=null&&re.length){const Y=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||Y.push(ne)}le.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=n.ref([]),f=n.ref(!1),v=n.computed(()=>{const z=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 N=t.value.chart.getOption(),{xAxis:H}=N||{};H&&H.length&&(s.value=H[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(){Gt(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 N;a.value=!0,(N=c.value)==null||N.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(){ce.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:N=>{var ae;const H=N.length;let K="",G=e.tooltipFormatter;h=(ae=N[0])==null?void 0:ae.data,G===""&&(G="{marker} {a} {c}");for(let Q=0;Q<H;Q++){const{marker:le,seriesName:re,name:Y,value:X,data:ne}=N[Q]||{};if(Q===0){let xe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(xe=(+Y).toString()),K+=`${it(D,xe)}<br/>`}K+=De(G,{textData:{marker:le,name:Y,value:X,a:re,b:Y,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),K+="<br/>"}return K},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?We:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?We:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((N,H)=>({name:N.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:N=>tn(e.legendFormatter,{name:N})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(k),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(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),it(D,N)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(m):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(N){return it(z,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(u)}}),{pageMode:E}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(z=[],D=!1)=>{let N={};if(e.dataFieldConfigType==="key"){const H=D?e.keyTypeDataFieldNames:null;N=wt(z,H)}else if(e.dataFieldConfigType==="value"){const H=D?e.valueTypeDataFieldNames:null;N=Ft(z,H)}d.value=N.dataset,m.value=N.dimensions},x=(z=[],D,N=!1)=>{const K=wt(z,N?D:null,!0);d.value=K.dataset,m.value=K.dimensions},k=n.computed(()=>n.unref(m).map(z=>{let D={};return z&&typeof z=="object"?D={...z}:D={value:z},D}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([z])=>{(e.dataType==="static"||n.unref(E)==="design")&&b(z)},{immediate:!0,deep:!0});const T=je(e),R=async()=>{var z,D;try{f.value=!0;const N=await T();b((D=(z=N==null?void 0:N.data)==null?void 0:z.data)==null?void 0:D.rows,!0)}catch(N){console.error(N)}finally{f.value=!1}},_=lt(e),L=async()=>{var z;try{f.value=!0;const D=await _(),{columns:N=[],rows:H=[]}=((z=D==null?void 0:D.data)==null?void 0:z.data)??{};let K;N.length>0&&(K={name:N[0],types:N.slice(1).map(G=>({label:G,value:G}))}),x(H,K,!0)}catch(D){console.error(D)}finally{f.value=!1}},{loadedData:A}=n.inject(bt,{loadedData:{}}),B=n.ref(!1);n.watch(A,z=>{if(e.dataType==="indicator"){const D=en(e.graphicConfig);D!=null&&D.length&&(!n.unref(B)&&rt(e.graphicConfig,z)?(B.value=!0,w()):rt(e.graphicConfig,z)||(B.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(A))&&L();break;case"request":R();break}},C=(z,D)=>!!n.unref(s)[D.value].value.includes(z),I=async()=>{r.value=!1;const z=t.value.chart.getOption();for(let D=0;D<7;D++)await S(z,D)},S=(z,D)=>new Promise(N=>{setTimeout(()=>{const{series:H,color:K,xAxis:G}=z,ae=t.value.chart,{splitArea:Q={}}=G[0]||{};H.forEach((le,re)=>{const Y=le.data;let X="";D%2?X=K[re]+"a8":X=K[re],Y[i.value].itemStyle={color:X}}),D%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:H,xAxis:G}),N()},200)});o({refreshData:w});const O=Ee(e),{getGlobalModel:F,setGlobalModel:V}=n.inject(Be,{getGlobalModel:z=>{},setGlobalModel:(z,D)=>{}});V(e.id,{type:e.type,RECORD:""});const W=O("click",z=>{const D=F(e.id);V(e.id,{...D,type:e.type,RECORD:e.tooltipShow?h:z.data})}),{setRequest:U}=n.inject(ze,{setRequest:z=>{}});typeof U=="function"&&U({id:e.id,requestFn:w,sortNum:e.requestSort});const M=()=>{const z=e.id,D=F(z);V(z,{...D,RECORD:""})},P=z=>{t.value.chart.containPixel("grid",[z.offsetX,z.offsetY])&&W()};return e.tooltipShow?g.value["zr:click"]=P:g.value.click=W,Le(e,{refreshData:w,click:W,resetRecord:M}),{option:v,style:l,refreshData:w,click:W,loading:f,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:I,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:g}}}),g1="",m1="",qd=e=>(n.pushScopeId("data-v-d9fb5cfd"),e=e(),n.popScopeId(),e),Hd={class:"location-wrap"},Vd=qd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function jd(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"),g=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]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Hd,[Vd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),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,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const il=pe(ye(Pd,[["render",jd],["__scopeId","data-v-d9fb5cfd"]])),ga={...Ae,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"},ma=Se(ga),ll=["click","refreshData","resetRecord"];Ye.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const Wd=n.defineComponent({name:"EcanScatter",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?We:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const k=e.xAxisLabelFormatter,T=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(){Gt(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 R;o.value=!0,(R=r.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(){ce.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(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),it(k,R)}},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(R){return it(T,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(R){var C;const{marker:_,seriesName:L}=R,A=((C=R==null?void 0:R.data)==null?void 0:C.record)??{},{name:B,value:w}=A;return De(e.tooltipFormatter,{textData:{marker:_,seriesName:L,a:L,b:B,c:w,...A}})},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(Be,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{}}),{pageMode:g}=n.inject(Me,{pageMode:"normal"}),h=(k=[],T)=>{const{name:R="name",value:_="value"}=T||{};a.value=k.map(L=>({value:[L[R],L[_]],record:L}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(g)==="design")&&h(k)},{immediate:!0,deep:!0});const y=n.ref(!1),u=je(e),m=async()=>{var k,T;if(e.dataType==="request"){y.value=!0;try{const R=await u();h((T=(k=R==null?void 0:R.data)==null?void 0:k.data)==null?void 0:T.rows,e.dataFieldNames)}catch(R){console.error(R)}finally{y.value=!1}}},f=()=>{o.value=!1},v=Ee(e);c(e.id,{type:e.type,RECORD:""});const E=v("click",k=>{const T=e.id,R=d(T);c(T,{...R,type:e.type,RECORD:k==null?void 0:k.data})});Le(e,{refreshData:()=>{m()},click:E,resetRecord:()=>{const k=e.id,T=d(k);c(k,{...T,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:t,click:E,loading:y,onClose:f,ecanModal:r}}}),x1="";function Ud(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 sl=pe(ye(Wd,[["render",Ud]])),ya={...Ae,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},xa=Se(ya),Gd=n.defineComponent({name:"EcanCustomGraph",props:{...xa},components:{Echarts:xt},setup(e){const o=Ce(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:Hl}}});function $d(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 cl=pe(ye(Gd,[["render",$d]])),pa={...Ae,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,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!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,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"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",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=Se(pa),dl=["refreshData","click","resetRecord"];Ye.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanComboGraph",props:{...ba},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.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=Ce(e),g=n.ref([]),h=n.ref([]),y=n.ref(),u=n.ref([]),m=n.computed(()=>a.value?We:12),f=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:N}=D||{};N&&N.length&&(s.value=N[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(){Gt(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=y.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(){ce.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:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?We:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?We:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map((D,N)=>({name:D.name,itemStyle:{color:e.colors[N]},icon:e.legendType})),formatter:D=>tn(e.legendFormatter,{name:D})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:D=>{var ae;const N=D.length;let H="",K=e.tooltipFormatter;d=(ae=D[0])==null?void 0:ae.data,K===""&&(K="{marker} {a} {c}");const G=e.seriesTypes;for(let Q=0;Q<N;Q++){const le=G[Q],{tooltipFormatter:re}=le||{},{marker:Y,seriesName:X,name:ne,value:xe,data:ke}=D[Q]||{};if(Q===0){let Te=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(Te=(+ne).toString()),H+=`${it(e.xAxisLabelFormatter,Te)}<br/>`}H+=De(re||K,{textData:{marker:Y,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...ke}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(h).map(D=>{let N={};return D&&typeof D=="object"?N={...D}:N={value:D},N}),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()),it(e.xAxisLabelFormatter,D)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(k),series:n.unref(g)})),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=()=>{a.value=!1},p=(D=[],N=!1)=>{let H;if(e.dataFieldConfigType==="key"){const G=N?e.keyTypeDataFieldNames:null;H=wt(D,G)}else if(e.dataFieldConfigType==="value"){const G=N?e.valueTypeDataFieldNames:null;H=Ft(D,G)}h.value=H.dimensions;const K=H.dataset;u.value=H.dataset,g.value=x(K)},b=(D=[],N,H=!1)=>{const G=wt(D,H?N:null,!0);h.value=G.dimensions;const ae=G.dataset;u.value=G.dataset,g.value=x(ae)};function x(D){const N=[],H=D.length,K=e.seriesTypes;for(let G=0;G<H;G++){const ae=K[G],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...D[G]};if(Q==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[G]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[G],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(Q==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const ke=e.barBorderRadius.split(",");if(ke!=null&&ke.length){const Te=[];for(const Ge of ke){const Ne=parseFloat(Ge);isNaN(Ne)||Te.push(Ne)}xe.borderRadius=Te}}Y&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[G]},{offset:ne,color:X[G]},{offset:1,color:X[G]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),N.push(re)}return N}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,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([D])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(D)},{immediate:!0,deep:!0});const k=n.computed(()=>{const D=e.yAxis;return D==null?void 0:D.map((N,H)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:H===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:H===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(K){return it(N.axisLabelFormatter,K)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),T=n.ref(!1),R=je(e),_=async()=>{var D,N;if(e.dataType==="request")try{T.value=!0;const H=await R();p((N=(D=H==null?void 0:H.data)==null?void 0:D.data)==null?void 0:N.rows,!0)}catch(H){console.error(H)}finally{T.value=!1}},L=lt(e),A=async()=>{var D;try{T.value=!0;const N=await L(),{columns:H=[],rows:K=[]}=((D=N==null?void 0:N.data)==null?void 0:D.data)??{};let G;H.length>0&&(G={name:H[0],types:H.slice(1).map(ae=>({label:ae,value:ae}))}),b(K,G,!0)}catch(N){console.error(N)}finally{T.value=!1}},{loadedData:B}=n.inject(bt,{loadedData:{}}),w=n.ref(!1);n.watch(B,D=>{if(e.dataType==="indicator"){const N=en(e.graphicConfig);N!=null&&N.length&&(!n.unref(w)&&rt(e.graphicConfig,D)?(w.value=!0,C()):rt(e.graphicConfig,D)||(w.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":rt(e.graphicConfig,n.unref(B))&&A();break;case"request":_();break}},I=(D,N)=>!!n.unref(s)[N.value].value.includes(D),S=async()=>{r.value=!1;const D=t.value.chart.getOption();for(let N=0;N<7;N++)await O(D,N)},O=(D,N)=>new Promise(H=>{setTimeout(()=>{const{series:K,color:G,xAxis:ae}=D,Q=t.value.chart,{splitArea:le={}}=ae[0]||{};K.forEach((re,Y)=>{const X=re.data;let ne="";N%2?ne=G[Y]+"a8":ne=G[Y],X[i.value].itemStyle={color:ne}}),N%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,Y)=>Y===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:K,xAxis:ae}),H()},200)});o({refreshData:C});const F=Ee(e),{getGlobalModel:V,setGlobalModel:W}=n.inject(Be,{getGlobalModel:D=>{},setGlobalModel:(D,N)=>{}});W(e.id,{type:e.type,RECORD:""});const U=F("click",D=>{const N=V(e.id);W(e.id,{...N,type:e.type,RECORD:e.tooltipShow?d:D==null?void 0:D.data})}),M=D=>{t.value.chart.containPixel("grid",[D.offsetX,D.offsetY])&&U()};e.tooltipShow?l.value["zr:click"]=M:l.value.click=U;const{setRequest:P}=n.inject(ze,{setRequest:D=>{}});return typeof P=="function"&&P({id:e.id,requestFn:C,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const D=e.id,N=V(D);W(D,{...N,RECORD:""})},refreshData:C,click:U}),{style:c,option:f,click:U,loading:T,onClose:E,ecanModal:y,echartRef:t,handleLocationOk:S,onFilterOption:I,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),v1="",S1="",Kd=e=>(n.pushScopeId("data-v-38571f44"),e=e(),n.popScopeId(),e),Yd={class:"location-wrap"},Qd=Kd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jd(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"),g=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]=y=>e.locationVisible=y),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Yd,[Qd,n.createVNode(g,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=y=>e.locationValue=y),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,(y,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=pe(ye(Zd,[["render",Jd],["__scopeId","data-v-38571f44"]])),va={...Ae,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",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},Sa=Se(va),ul=["refreshData","click","resetRecord"];Ye.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const Xd=n.defineComponent({name:"EcanRadar",props:{...Sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?We:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),g=n.computed(()=>{const C=n.unref(d),I=C.length,S=[];for(let O=0;O<I;O++){const{name:F,data:V=[]}=C[O],W=[{name:F,value:V.map(P=>P.value)}];let U=e.colors[O];if(e.gradientShow){const{gradientOffset:P,gradientColors:z}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[O]},{offset:P,color:z[O]},{offset:1,color:z[O]}]}}const M={type:"radar",name:F,data:W,areaStyle:{color:U,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,formatter:P=>{const{data:z,value:D}=P;let N=0,H="0%";if(z)for(const K of z.value)N+=+K;return N&&(H=`${(D/N*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:D,percent:H}},{useNewline:!1,useSpace:!1})}}};S.push(M)}return S}),h=n.computed(()=>{var F;const C=[],I=[],S=n.unref(d),O=S.length;for(let V=0;V<O;V++){const{data:W=[]}=S[V];for(let U=0;U<W.length;U++)I.push(W[U].value)}if((F=i.value)!=null&&F.length){const V=I!=null&&I.length?Math.max(...I)*1.2:0;for(const W of i.value)C.push({name:W,max:V})}return C}),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(){Gt(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 C;a.value=!0,(C=s.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ce.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:C=>{let I="",S=e.tooltipFormatter;S===""&&(S="{marker} {a} {c}");for(let O=0;O<n.unref(h).length;O++){const F=n.unref(h)[O],{marker:V,seriesName:W,value:U}=C||{};O===0&&W&&(I+=`${W}<br/>`),I+=De(S,{textData:{marker:V,name:F.name,value:U[O],a:F.name,b:F.name,c:U[O]||0,type:W}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(h),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?We:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?We:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>tn(e.legendFormatter,{name:C})},series:n.unref(g)})),u=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,I)=>{}}),{pageMode:v}=n.inject(Me,{pageMode:"normal"}),E=(C=[],I=!1)=>{let S;if(e.dataFieldConfigType==="key"){const O=I?e.keyTypeDataFieldNames:null;S=wt(C,O)}else if(e.dataFieldConfigType==="value"){const O=I?e.valueTypeDataFieldNames:null;S=Ft(C,O)}i.value=S.dimensions,d.value=S.dataset},p=(C=[],I,S=!1)=>{const F=wt(C,S?I:null,!0);i.value=F.dimensions,d.value=F.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||n.unref(v)==="design")&&E(C)},{immediate:!0,deep:!0});const b=n.ref(!1),x=je(e),k=async()=>{var C,I;if(e.dataType==="request")try{b.value=!0;const S=await x();E((I=(C=S==null?void 0:S.data)==null?void 0:C.data)==null?void 0:I.rows,!0)}catch(S){console.error(S)}finally{b.value=!1}},T=Ee(e);f(e.id,{type:e.type,RECORD:""});const R=C=>{const I=C.event.topTarget.__dimIdx;I!==void 0&&T("click",()=>{var V;const{value:S,name:O}=C.data||{},F=m(e.id);f(e.id,{...F,type:e.type,RECORD:{[n.unref(c)]:((V=n.unref(h)[I])==null?void 0:V.name)||"",[O]:S[I],seriesName:O}})})()},_=lt(e),L=async()=>{var C;try{b.value=!0;const I=await _(),{columns:S=[],rows:O=[]}=((C=I==null?void 0:I.data)==null?void 0:C.data)??{};let F;S.length>0&&(c.value=S[0],F={name:S[0],types:S.slice(1).map(V=>({label:V,value:V}))}),p(O,F,!0)}catch(I){console.error(I)}finally{b.value=!1}},A=()=>{switch(e.dataType){case"indicator":L();break;case"request":k();break}};Le(e,{refreshData:A,resetRecord:()=>{const C=e.id,I=m(C);f(C,{...I,RECORD:""})},click:R});const{setRequest:w}=n.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:y,style:r,click:R,loading:b,onClose:u,ecanModal:s,echartRef:t}}}),w1="";function ef(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,{ref:"echartRef",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 hl=pe(ye(Xd,[["render",ef]])),tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbp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J4v7J8fObpXmqmPv31O7md/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==",Ca={...Ae,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"},wa=Se(Ca),gl=["click"],rf=n.defineComponent({name:"EcanBorder",props:{...wa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:m,gradientShow:f,gradientColor:v,gradientOffset:E,gradientAngle:p,backgroundColor:b}=e;if(f){let x=v;return m&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:m}=e;let f={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":tf,"../../assets/border-title-decoration-left2.png":nf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":of,"../../assets/border-title-decoration-right2.png":af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:m}=e,f=[],v={};if(m){const E=m.split(",");for(const p of E)(+p||+p==0)&&f.push(+p+"px")}return f!=null&&f.length&&(v.borderRadius=f.join(" ")),v}),h=Ee(e)("click",()=>{}),y=n.ref([]);n.watch(()=>e.data,m=>{y.value=m},{immediate:!0,deep:!0}),Le(e,{click:h});const{setGlobalModel:u}=n.inject(Be,{setGlobalModel:(m,f)=>{}});return u(e.id,{type:e.type,value:y}),{style:o,gradientStyle:t,click:h,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),k1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),lf=["id"],sf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),cf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),uf={class:"title-item"},hf=["src"],gf={class:"title"},mf=["src"],yf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vf={key:2,class:"left-title"},Sf={class:"title"};function Cf(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},[sf,cf,df,ff],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",uf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,hf),n.createElementVNode("div",gf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,mf)])],2),yf,xf,pf,bf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",Sf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,lf)}const ml=pe(ye(rf,[["render",Cf],["__scopeId","data-v-8dd53b8f"]])),Aa={...Ae,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"},ka=Se(Aa),yl=["tabChange"],wf=n.defineComponent({name:"EcanTabs",props:{...ka},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const m=n.unref(t)+1;m<=u?t.value=m: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,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const d=u=>t.value===u,c=Ee(e),{setGlobalModel:g}=n.inject(Be,{setGlobalModel:(u,m)=>{}});g(e.id,{value:l,activeKey:t});const{emitRefreshPage:h}=n.inject(Jt,{emitRefreshPage:()=>{}}),y=c("tabChange",(u,m)=>{m!==n.unref(t)&&(l.value=u,t.value=m,h())});return Le(e,{tabChange:y}),{style:o,activeKey:t,isActive:d,tabChange:y,myData:s,useImagePath:At}}}),B1="",Af=["id"],kf=["onClick"];function Tf(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(g=>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,kf))),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:g=>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,Af)}const xl=pe(ye(wf,[["render",Tf],["__scopeId","data-v-fbab260a"]])),Ta={...Ae,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ba=Se(Ta),pl=["click"],Ea=n.defineComponent({name:"EcanImage",props:{...Ba},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",g=mi(n.unref(a),c),h=e.href;let y=h||g;y=De(y);const u=e.target;u&&(u!=="event"?window.open(y,"_"+u):window.parent.postMessage({type:"openPage",url:h},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),bl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},vl=Ea.setup;Ea.setup=vl?(e,o)=>(bl(),vl(e,o)):bl;const D1="",Bf=["src"];function Ef(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Bf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Sl=pe(ye(Ea,[["render",Ef],["__scopeId","data-v-47ea6e7c"]])),Da={...Ae,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=Se(Da),Df=n.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${is||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),I1="",Rf=["src"];function If(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,Rf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Cl=pe(ye(Df,[["render",If],["__scopeId","data-v-19bc100c"]])),Ia={...Ae,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:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=Se(Ia),wl=["click","refreshData","resetRecord","exportTableData"],_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4u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aIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Oa=n.defineComponent({name:"EcanTable",components:{Skeleton:ln,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const q=Ve.cloneDeep(e.columns);return e.isUseSeq&&q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),q}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),g=()=>{let q=0;switch(e.size){case"small":q=50;break;case"middle":q=53;break;default:q=65;break}return q};n.watchEffect(()=>{var q;(q=l.value)!=null&&q.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const J=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&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=g(),ee&&(Z-=ee)}(J==null?void 0:J.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const h=n.ref([]),y=n.ref([]),u=n.ref([]),m=n.ref([]),f=n.ref(0),v=n.ref(1),E=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(q=[])=>{var Z,J;if(Array.isArray(q)&&q.length>0){let oe=q.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;q.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(J=q[te])!=null&&J.isHidden&&q.splice(te,1);oe=q.length;for(let te=0;te<oe;te++){const ee=q[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ke=ee.dataIndex;ee.sorter=(_t,$t)=>_t[Ke]-$t[Ke]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ze,headerCellAlign:yt,headerCellColor:It,overflow:Sn}=ee;Ze&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ke,_t)=>_t[ge].toString().toLowerCase().includes(Ke.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ke,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(H)===_t&&e.clickHighlight},onClick:U("click",()=>{const $t=e.id,Cn=M($t);Ke={dataIndex:ge,title:Oe,...Ke},P($t,{...Cn,type:e.type,RECORD:Ke})})}),Sn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(q=[])=>{var J;let Z=Ve.cloneDeep(q);return(J=n.unref(m))!=null&&J.length&&(Z=Ve.cloneDeep(n.unref(m))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(E,()=>{v.value=1,Q(!1)}),n.watch(r,q=>{i.value=!!q}),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(Ve.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([q,Z])=>{Z==="static"&&(y.value=q)},{immediate:!0});const k=n.ref({}),T=q=>{if(Array.isArray(q)){const Z=q.length,J=p,oe=J.length,ie={};for(let ee=0;ee<Z;ee++){const fe=q[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=te}};n.watch(()=>[e.isReverse,h.value,y.value],()=>{const q=n.unref(h),Z=n.unref(y);if(T(Z),e.isReverse){const{columns:J,dataSource:oe}=R(Ve.cloneDeep(q),Ve.cloneDeep(Z));u.value=J,l.value=oe}else u.value=q,l.value=Z},{immediate:!0});const R=(q,Z)=>{const J=q[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<q.length;te++){const ee=q[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=n.ref(""),L=je(e),A=async(q=!0,Z={})=>{var J;try{q&&(t.value=!0),n.unref(_)&&(Z.orderCondition=n.unref(_)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(E)||"10",layer:"1",...Z});const oe=await L(Z),{rows:ie=[],total:te=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(f.value=te,Array.isArray(ie)&&(y.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},B=({current:q},Z,J)=>{if(v.value=q,J&&Object.keys(J).length>0){const{field:oe,order:ie}=J,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?_.value=oe+" "+ee:ee||(_.value="")}e.isSortByFront||Q(!1)},w=n.computed(()=>{const q=e.simple,Z=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:q,position:Z,total:n.unref(f),current:n.unref(v),pageSize:n.unref(E)||"10",showSizeChanger:!1,size:"large",...J}}),C=q=>+q==1?"是":+q==0?"否":q,I=(q,Z)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=Z;if(J==null||J==="")return q;const te={money:Eo,percentage:pn,contrast:pn,boolean:C,decimals:gc,custom:gi};return te[J]?J==="decimals"?te[J](q,oe)||"":J==="custom"?te[J](q,ie)||"":te[J](q)||"":""},S=q=>q==="contrast"?"upDown":"",O=q=>{const{text:Z,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=q;if(J==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},F=n.computed(()=>{const{fontSize:q}=e;return{width:q,height:q,textIndent:`-${parseFloat(q)*2}px`,overflow:"hidden"}}),V=q=>{const{text:Z,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=q,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=q=>{const Z=parseFloat(q+"");if(Z>=0)return Oo;if(Z<0)return Lo},U=Ee(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(Be,{getGlobalModel:q=>{},setGlobalModel:(q,Z)=>{}});P(e.id,{type:e.type,RECORD:""});const z=(q=[],Z=[])=>{const J=q.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ve.cloneDeep(J),h.value=x(J),y.value=Z},D=lt(e),N=async(q=!0)=>{var Z,J,oe,ie;try{q&&(t.value=!0);const te=n.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await D(ee);z((J=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:J.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},H=n.ref(-1),K=(q,Z)=>({onClick:U("rowClick",()=>{const J=e.id,oe=M(J);P(J,{...oe,type:e.type,RECORD:q}),H.value=Z})}),{loadedData:G}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(G,q=>{if(e.dataType==="indicator"){const Z=en(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&rt(e.graphicConfig,q)?(ae.value=!0,Q()):rt(e.graphicConfig,q)||(ae.value=!1))}},{deep:!0});const Q=(q=!0)=>{switch(e.dataType){case"request":A(q);break;case"indicator":rt(e.graphicConfig,n.unref(G))&&N(q);break}},le=()=>{const q=e.id,Z=M(q);P(q,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const q=n.unref(u);let Z=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(Z=q.findIndex(he=>he.dataIndex===J),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<q.length;he++){const ge=q[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=Y(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ze,dataIndex:yt}=ge;if(Ze===!0){for(let It=0;It<ee.length;It++){const Ke=+ee[It][yt];isNaN(Ke)||(Oe=new Pl.Big(Oe).add(Ke).toNumber())}ge.total=Oe}}return fe});function Y(q){var J;const Z=[];for(const oe of q)(J=oe.children)!=null&&J.length?Z.push(...Y(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(ze,{setRequest:q=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const ne=(q="",Z)=>De(q,Z),xe=q=>{if(q!=="event")return{self:"_self",blank:"_blank"}[q]},ke=(q,Z="")=>{q==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},Te=(q,Z)=>{q(Z.filterCheckboxGroupValue)},Ge=(q,Z)=>{q({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Ne=()=>{},Ie=q=>{const Z=q.dataIndex;if(typeof Z=="string"){let J=n.unref(k)[Z];const oe=n.unref(q.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},we=async()=>{var ge,Oe;const q="EXPORT_KEY";ce.message.loading({key:q,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};n.unref(_)&&(Ze.orderCondition=n.unref(_));const yt=await L(Ze);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const J=n.unref(u),oe=[],ie=[];J==null||J.forEach(Ze=>{oe.push(Ze.dataIndex),ie.push(Ze.title)});const te=Z.map(Ze=>Ve.pick(Ze,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:q,content:"导出成功"})},qe=(q,Z=2)=>{const J=+q*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Q,exportTableData:we});const Fe=(q,Z)=>{let J=null;return e.stripedShow&&(J=Z%2===1?"table-striped":null),J},$e=n.computed(()=>{let q=0;const{height:Z,isPageBottom:J}=e;return J&&Z&&(q=parseFloat(Z)-g()),q?q+"px":"100%"}),Xe=n.computed(()=>{let q="#071655";return e.headerBackgroundColor&&(q="transparent"),q}),He=n.computed(()=>{let q="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(q="transparent"),q}),ut=n.computed(()=>parseFloat(e.fontSize)+16),et=n.computed(()=>{let q="";const{paginationColor:Z,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(q+="p-color "),J&&(q+="p-bg-color "),oe&&(q+="active-p-color "),ie&&(q+="active-p-bg-color "),te&&(q+="hover-bg-color "),q});return{x:d,y:c,style:s,customRow:K,pagination:w,formatFn:I,contrastClass:S,tableChange:B,summaryList:re,loading:t,onTouchHrefEvent:ke,handleHref:ne,handleHrefTarget:xe,useRowIndex:H,tableColumns:u,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:Te,onResetFilter:Ge,onSearchFilterOptions:Ne,exportTableData:we,handleProgressText:qe,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:Fe,tableHeight:$e,tableHeaderBgColor:Xe,tableBodyBgColor:He,getChgStyle:O,chgBoxStyle:F,getChgBoxImgStyle:V,getChgBoxImgSrc:W,seqIcon1:_f,seqIcon2:Of,seqIcon3:Lf,iconSize:ut,containerClass:et,getCellStyle:q=>{const{overflow:Z}=q;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Al=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},kl=Oa.setup;Oa.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const O1="",L1="",Nf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Ff=["id"],Mf={key:0,class:"table-tool"},zf=n.createTextVNode("导出数据"),Pf=n.createTextVNode(" 搜索 "),qf=n.createTextVNode(" 重置 "),Hf=["src","width","height"],Vf=["src","width","height"],jf=["src","width","height"],Wf={key:1},Uf={key:1,class:"action-list"},Gf=["href","target","onClick"],$f={key:2,class:"progress-cell"},Zf=["title"],Kf=["title"],Yf=["src"],Qf=["title"],Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Nf(()=>n.createElementVNode("span",null,"条 / 页",-1));function tu(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"),g=n.resolveComponent("a-table-summary-row"),h=n.resolveComponent("a-table-summary"),y=n.resolveComponent("a-table"),u=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(u,{loading:e.loading},{default:n.withCtx(()=>{var m;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Mf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[zf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(y,{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:f,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:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(E,f)},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(()=>[Pf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,f),["stop"])},{default:n.withCtx(()=>[qf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:f,index:v,text:E,record:p})=>{var b,x,k,T;return[f.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,Hf)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Vf)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,jf)):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",Wf,n.toDisplayString(v+1),1))],64)):f.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Uf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(R,_)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:_},[n.createElementVNode("a",{href:e.handleHref(R.href,p),target:e.handleHrefTarget(R.target),style:n.normalizeStyle({color:R.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:L=>e.onTouchHrefEvent(R.target,e.handleHref(R.href,p))},n.toDisplayString(R.title),13,Gf)]))),128))])):f.format==="progress"?(n.openBlock(),n.createElementBlock("div",$f,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(E,f.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(E)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(E,f.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f)})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=f==null?void 0:f.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Zf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle(e.getChgStyle({...f,text:E})),title:f.format!=null?e.formatFn(E,f):E},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Yf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(f.format!=null?e.formatFn(E,f):E),1)],14,Kf),f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""},n.toDisplayString(((T=f==null?void 0:f.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Qf)):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(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(f,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),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"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Xf,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ff)}const Tl=pe(ye(Oa,[["render",tu],["__scopeId","data-v-f641124f"]])),La={...Ae,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"},Na=Se(La),Bl=["click"];Ye.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Na},setup(e){const o=je(e),t=je({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),g=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),h=n.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+At(C):"circle"}),y=C=>{let I=e.tooltipFormatter;const S=I.match(/\{(.+?)\}/g);if(S==null||S.length===0)return I;for(let O=0;O<S.length;O++){const F=S[O];let V=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=V.match(W);for(let M=0;M<U.length;M++){const P=U[M],z=C[P];z!=null&&(V=V.replace(P,z))}I=I.replace(F,V)}return I.split(`
|
|
120
|
+
`)},u=n.ref(!1),m=n.ref("");let f=new AbortController;const v=(C,I)=>{const S=f.signal;u.value=!0,r.value=C,t({name:C,signal:S}).then(O=>{var F,V;if(O){const W=((V=(F=O==null?void 0:O.data)==null?void 0:F.data)==null?void 0:V.rows)||[];let U="";for(const M of W){const P=y(M)||[];if(P!=null&&P.length)for(const z of P)U+=`<div style="word-break: break-all;white-space: normal;">${z}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,I(n.unref(m),U)}else S.aborted?i.value="Loading":i.value=C,I(n.unref(m),i.value);u.value=!1})},E=n.computed(()=>{const C=e.geoCenter;let I;return typeof C=="string"&&C!==""&&(I=C.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:(S,O,F)=>{m.value=O;const{name:V=""}=S,{requestUrl:W}=e.tooltipRequestData;if(!W)return V;if(n.unref(u))n.unref(r)!==V&&(f.abort(),f=new AbortController);else{if(n.unref(r)===V)return n.unref(i);v(V,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(g),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 S;p.value=!1;const C=e.mapJson,I=`map-${e.id}`;if(C!=null&&C.path){const O=await dt(((S=window==null?void 0:window.config)==null?void 0:S.uploadPath)+C.path);Ye.registerMap(I,(O==null?void 0:O.data)||{})}else Ye.registerMap(I,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var C,I;if(e.dataType==="request"){p.value=!1;try{const S=await o(),O=((I=(C=S==null?void 0:S.data)==null?void 0:C.data)==null?void 0:I.rows)||{},F=`map-${e.id}`;if(O!=null&&O.path){const V=await dt(O.path);Ye.registerMap(F,(V==null?void 0:V.data)||{})}else Ye.registerMap(F,{})}catch(S){console.error(S)}finally{p.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:T,setGlobalModel:R}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,I)=>{}}),L=Ee(e)("click",()=>{const C=T(e.id);R(e.id,{...C,RECORD:n.unref(a)})});Le(e,{refreshData:k});const{setRequest:A}=n.inject(ze,{setRequest:C=>{}});return typeof A=="function"&&A({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&L()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),F1="",ou=["src"];function au(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,ou),[[n.vShow,!1]])],4)}const El=pe(ye(nu,[["render",au],["__scopeId","data-v-10f150ac"]])),Dl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:il,EcanBorder:ml,EcanButton:Wi,EcanCheckbox:Gi,EcanComboGraph:fl,EcanCustomGraph:cl,EcanDatePicker:Mi,EcanIframe:Cl,EcanImage:Sl,EcanInput:Oi,EcanLine:al,EcanList:Di,EcanMap:El,EcanModal:kt,EcanPageConfig:yi,EcanPie:nl,EcanProportion:Ii,EcanProviderConfig:xi,EcanRadar:hl,EcanRadio:Ji,EcanRangePicker:Vi,EcanScatter:sl,EcanScrollText:Ci,EcanSelect:Zi,EcanTable:Tl,EcanTabs:xl,EcanText:Si,EcanTimeDisplay:Ai,EcanTreeSelect:Yi,barComponentProps:ha,barEvents:rl,barProps:ua,borderComponentProps:wa,borderEvents:gl,borderProps:Ca,buttonComponentProps:Qo,buttonEvents:ji,buttonProps:Yo,checkboxComponentProps:Xo,checkboxEvents:Ui,checkboxProps:Jo,comboGraphComponentProps:ba,comboGraphEvents:dl,comboGraphProps:pa,customGraphComponentProps:xa,customGraphProps:ya,datePickerComponentProps:Uo,datePickerEvents:Li,datePickerProps:Wo,iframeComponentProps:Ra,iframeProps:Da,imageComponentProps:Ba,imageEvents:pl,imageProps:Ta,inputComponentProps:jo,inputEvents:_i,inputProps:Vo,lineComponentProps:fa,lineEvents:ol,lineProps:da,listComponentProps:Po,listEvents:ki,listProps:zo,mapComponentProps:Na,mapEvents:Bl,mapProps:La,modalComponentProps:ca,modalEvents:el,modalProps:sa,pageConfig:Fn,pageConfigComponentProps:Mn,pieComponentProps:la,pieEvents:Xi,pieProps:ia,proportionComponentProps:Ho,proportionEvents:Ri,proportionProps:qo,providerConfig:Do,providerConfigComponentProps:Ro,radarComponentProps:Sa,radarEvents:ul,radarProps:va,radioComponentProps:ra,radioEvents:Qi,radioProps:aa,rangePickerComponentProps:Zo,rangePickerEvents:zi,rangePickerProps:$o,scatterComponentProps:ma,scatterEvents:ll,scatterProps:ga,selectComponentProps:ta,selectEvents:$i,selectProps:ea,tableComponentProps:_a,tableEvents:wl,tableProps:Ia,tabsComponentProps:ka,tabsEvents:yl,tabsProps:Aa,textComponentProps:_o,textEvents:pi,textProps:Io,timeDisplayComponentProps:Mo,timeDisplayEvents:wi,timeDisplayProps:Fo,treeSelectComponentProps:oa,treeSelectEvents:Ki,treeSelectProps:na},Symbol.toStringTag,{value:"Module"})),ru={install:e=>{Object.keys(Dl).forEach(o=>{const t=Dl[o];t.install&&e.use(t)})}};j.EcanBar=il,j.EcanBorder=ml,j.EcanButton=Wi,j.EcanCheckbox=Gi,j.EcanComboGraph=fl,j.EcanCustomGraph=cl,j.EcanDatePicker=Mi,j.EcanIframe=Cl,j.EcanImage=Sl,j.EcanInput=Oi,j.EcanLine=al,j.EcanList=Di,j.EcanMap=El,j.EcanModal=kt,j.EcanPageConfig=yi,j.EcanPie=nl,j.EcanProportion=Ii,j.EcanProviderConfig=xi,j.EcanRadar=hl,j.EcanRadio=Ji,j.EcanRangePicker=Vi,j.EcanScatter=sl,j.EcanScrollText=Ci,j.EcanSelect=Zi,j.EcanTable=Tl,j.EcanTabs=xl,j.EcanText=Si,j.EcanTimeDisplay=Ai,j.EcanTreeSelect=Yi,j.barComponentProps=ha,j.barEvents=rl,j.barProps=ua,j.borderComponentProps=wa,j.borderEvents=gl,j.borderProps=Ca,j.buttonComponentProps=Qo,j.buttonEvents=ji,j.buttonProps=Yo,j.checkboxComponentProps=Xo,j.checkboxEvents=Ui,j.checkboxProps=Jo,j.comboGraphComponentProps=ba,j.comboGraphEvents=dl,j.comboGraphProps=pa,j.compatibleMobileList=tl,j.customGraphComponentProps=xa,j.customGraphProps=ya,j.datePickerComponentProps=Uo,j.datePickerEvents=Li,j.datePickerProps=Wo,j.default=ru,j.iframeComponentProps=Ra,j.iframeProps=Da,j.imageComponentProps=Ba,j.imageEvents=pl,j.imageProps=Ta,j.inputComponentProps=jo,j.inputEvents=_i,j.inputProps=Vo,j.lineComponentProps=fa,j.lineEvents=ol,j.lineProps=da,j.listComponentProps=Po,j.listEvents=ki,j.listProps=zo,j.mapComponentProps=Na,j.mapEvents=Bl,j.mapProps=La,j.modalComponentProps=ca,j.modalEvents=el,j.modalProps=sa,j.pageConfig=Fn,j.pageConfigComponentProps=Mn,j.pieComponentProps=la,j.pieEvents=Xi,j.pieProps=ia,j.proportionComponentProps=Ho,j.proportionEvents=Ri,j.proportionProps=qo,j.providerConfig=Do,j.providerConfigComponentProps=Ro,j.radarComponentProps=Sa,j.radarEvents=ul,j.radarProps=va,j.radioComponentProps=ra,j.radioEvents=Qi,j.radioProps=aa,j.rangePickerComponentProps=Zo,j.rangePickerEvents=zi,j.rangePickerProps=$o,j.scatterComponentProps=ma,j.scatterEvents=ll,j.scatterProps=ga,j.selectComponentProps=ta,j.selectEvents=$i,j.selectProps=ea,j.tableComponentProps=_a,j.tableEvents=wl,j.tableProps=Ia,j.tabsComponentProps=ka,j.tabsEvents=yl,j.tabsProps=Aa,j.textComponentProps=_o,j.textEvents=pi,j.textProps=Io,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=wi,j.timeDisplayProps=Fo,j.treeSelectComponentProps=oa,j.treeSelectEvents=Ki,j.treeSelectProps=na,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|