@ecan-bi/datav 1.3.17 → 1.3.18
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 +2476 -2429
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +37 -37
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/text/list/List.vue.d.ts +50 -0
- package/types/text/list/index.d.ts +50 -0
- package/types/text/list/props.d.ts +31 -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,Qe,Pa,se,vu,Su,Ne,be,jl,Wl,Cu,wu,Au,qa,ku,Tu,Bu,Eu,Et,ht,ve,Du,Ul,Ru,Iu,Zt,Gl){var zl,Ml,Pl,ql;"use strict";function $l(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 Kl=$l(Ul),Zl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Yl(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 Zl.forEach(i=>{r[i]=t(i)}),r}return a()}function Ql(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),Pa.addListener(r,a)),d(()=>{a&&r&&Pa.removeListener(r,a)})})}const Jl={autoresize:Boolean},Xl="ecLoadingOptions";function e0(e,o,t){const a=n.inject(Xl,{}),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 t0={loading:Boolean,loadingOptions:Object},_u="",n0=/^on[^a-z]/,o0=e=>n0.test(e);function a0(e){const o={};for(const t in e)o0(t)||(o[t]=e[t]);return o}const r0="x-vue-echarts",i0="ecTheme",l0="ecInitOptions",s0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Jl,...t0},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(i0,null),l=n.inject(l0,null),d=n.inject(s0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=n.toRefs(e),h=n.computed(()=>i.value||e.option||Object.create(null)),m=n.computed(()=>e.theme||n.unref(s)||{}),g=n.computed(()=>e.initOptions||n.unref(l)||{}),C=n.computed(()=>e.updateOptions||n.unref(d)||{}),D=n.computed(()=>a0(o));function p(R){if(r.value||!a.value)return;const O=r.value=Qe.init(a.value,m.value,g.value);e.group&&(O.group=e.group);let N=t;N||(N={},Object.keys(o).filter(B=>B.indexOf("on")===0&&B.length>2).forEach(B=>{const b=B.charAt(2).toLowerCase()+B.slice(3);N[b]=o[B]})),Object.keys(N).forEach(B=>{const b=N[B];b&&(B.indexOf("zr:")===0?O.getZr().on(B.slice(3).toLowerCase(),b):O.on(B.toLowerCase(),b))});function S(){if(O&&!O.isDisposed())try{O.resize()}catch(B){if(B.message==="Cannot read property 'get' of undefined")return;throw B}}function w(){O.setOption(R||h.value,C.value)}c.value?n.nextTick(()=>{S(),w()}):w()}function v(R,O){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,O||{}):p(R)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;n.watch(f,R=>{typeof k=="function"&&(k(),k=null),R||(k=n.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,C.value):p())},{deep:!0}))},{immediate:!0}),n.watch([m,g],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const E=Yl(r,p);return e0(r,y,u),Ql(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:v,nonEventAttrs:D,...E}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(r0,e)}});function at(e,o){c0(e)&&(e="100%");var t=d0(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 c0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function f0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function on(e){return e<=1?"".concat(Number(e)*100,"%"):e}function An(e){return e.length===1?"0"+e:String(e)}function u0(e,o,t){return{r:at(e,255)*255,g:at(o,255)*255,b:at(t,255)*255}}function kn(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 h0(e,o,t){var a,r,i;if(e=at(e,360),o=at(o,100),t=at(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=kn(l,s,e+1/3),r=kn(l,s,e),i=kn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function g0(e,o,t){e=at(e,255),o=at(o,255),t=at(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 m0(e,o,t){e=at(e,360)*6,o=at(o,100),t=at(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],f=[l,t,t,s,i,i][d],y=[i,i,l,t,t,s][d];return{r:c*255,g:f*255,b:y*255}}function y0(e,o,t,a){var r=[An(Math.round(e).toString(16)),An(Math.round(o).toString(16)),An(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 Va(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var Ha={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 Yt(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=b0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=u0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=on(e.s),r=on(e.v),o=m0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=on(e.s),i=on(e.l),o=h0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=f0(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 x0="[-\\+]?\\d+%?",p0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(p0,")|(?:").concat(x0,")"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Bn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Tn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Tn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Tn),hsva:new RegExp("hsva"+Bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function b0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ha[e])e=Ha[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:Je(t[1]),g:Je(t[2]),b:Je(t[3]),a:Va(t[4]),format:o?"name":"hex8"}:(t=st.hex6.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),format:o?"name":"hex"}:(t=st.hex4.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),a:Va(t[4]+t[4]),format:o?"name":"hex8"}:(t=st.hex3.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var an=2,ja=.16,v0=.05,S0=.05,C0=.15,Wa=5,Ua=4,w0=[{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 Ga(e){var o=e.r,t=e.g,a=e.b,r=g0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function rn(e){var o=e.r,t=e.g,a=e.b;return"#".concat(y0(o,t,a,!1))}function A0(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 $a(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-an*o:Math.round(e.h)+an*o:a=t?Math.round(e.h)+an*o:Math.round(e.h)-an*o,a<0?a+=360:a>=360&&(a-=360),a}function Ka(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-ja*o:o===Ua?a=e.s+ja:a=e.s+v0*o,a>1&&(a=1),t&&o===Wa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Za(e,o,t){var a;return t?a=e.v+S0*o:a=e.v-C0*o,a>1&&(a=1),Number(a.toFixed(2))}function En(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Yt(e),r=Wa;r>0;r-=1){var i=Ga(a),s=rn(Yt({h:$a(i,r,!0),s:Ka(i,r,!0),v:Za(i,r,!0)}));t.push(s)}t.push(rn(a));for(var l=1;l<=Ua;l+=1){var d=Ga(a),c=rn(Yt({h:$a(d,l),s:Ka(d,l),v:Za(d,l)}));t.push(c)}return o.theme==="dark"?w0.map(function(f){var y=f.index,u=f.opacity,h=rn(A0(Yt(o.backgroundColor||"#141414"),Yt(t[y]),u*100));return h}):t}var Dn={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"},Rn={},In={};Object.keys(Dn).forEach(function(e){Rn[e]=En(Dn[e]),Rn[e].primary=Rn[e][5],In[e]=En(Dn[e],{theme:"dark",backgroundColor:"#141414"}),In[e].primary=In[e][5]});var Ya=[],Qt=[],k0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function T0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function B0(e,o){if(o=o||{},e===void 0)throw new Error(k0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Ya.indexOf(a);r===-1&&(r=Ya.push(a)-1,Qt[r]={});var i;return Qt[r]!==void 0&&Qt[r][t]!==void 0?i=Qt[r][t]:(i=Qt[r][t]=T0(),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 Qa(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){E0(e,r,t[r])})}return e}function E0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function D0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function R0(e,o){D0(e,"[@ant-design/icons-vue] ".concat(o))}function Ja(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _n(e,o,t){return t?n.h(e.tag,Qa({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Qa({key:o},e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Xa(e){return En(e)[0]}function er(e){return e?Array.isArray(e)?e:[e]:[]}var I0=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.18 */
|
|
2
|
+
(function(j,t){typeof exports=="object"&&typeof module<"u"?t(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"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(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,t,Qe,Pa,se,Cu,wu,Ne,be,jl,Wl,Au,ku,Tu,qa,Bu,Eu,Du,Iu,Et,ht,ve,Ru,Ul,Ou,_u,Zt,Gl){var zl,Ml,Pl,ql;"use strict";function $l(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const Kl=$l(Ul),Zl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Yl(e,o){function n(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 Zl.forEach(i=>{r[i]=n(i)}),r}return a()}function Ql(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),Pa.addListener(r,a)),d(()=>{a&&r&&Pa.removeListener(r,a)})})}const Jl={autoresize:Boolean},Xl="ecLoadingOptions";function e0(e,o,n){const a=t.inject(Xl,{}),r=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const t0={loading:Boolean,loadingOptions:Object},Lu="",n0=/^on[^a-z]/,o0=e=>n0.test(e);function a0(e){const o={};for(const n in e)o0(n)||(o[n]=e[n]);return o}const r0="x-vue-echarts",i0="ecTheme",l0="ecInitOptions",s0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Jl,...t0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(i0,null),l=t.inject(l0,null),d=t.inject(s0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=t.toRefs(e),h=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),g=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),D=t.computed(()=>a0(o));function b(I){if(r.value||!a.value)return;const _=r.value=Qe.init(a.value,m.value,g.value);e.group&&(_.group=e.group);let N=n;N||(N={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const p=A.charAt(2).toLowerCase()+A.slice(3);N[p]=o[A]})),Object.keys(N).forEach(A=>{const p=N[A];p&&(A.indexOf("zr:")===0?_.getZr().on(A.slice(3).toLowerCase(),p):_.on(A.toLowerCase(),p))});function k(){if(_&&!_.isDisposed())try{_.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function B(){_.setOption(I||h.value,S.value)}c.value?t.nextTick(()=>{k(),B()}):B()}function v(I,_){e.manualUpdate&&(i.value=I),r.value?r.value.setOption(I,_||{}):b(I)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let T=null;t.watch(f,I=>{typeof T=="function"&&(T(),T=null),I||(T=t.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,g],()=>{x(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const E=Yl(r,b);return e0(r,y,u),Ql(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(x),{chart:r,root:a,setOption:v,nonEventAttrs:D,...E}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(r0,e)}});function at(e,o){c0(e)&&(e="100%");var n=d0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(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 c0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function f0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function on(e){return e<=1?"".concat(Number(e)*100,"%"):e}function An(e){return e.length===1?"0"+e:String(e)}function u0(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function kn(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function h0(e,o,n){var a,r,i;if(e=at(e,360),o=at(o,100),n=at(n,100),o===0)r=n,i=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=kn(l,s,e+1/3),r=kn(l,s,e),i=kn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function g0(e,o,n){e=at(e,255),o=at(o,255),n=at(n,255);var a=Math.max(e,o,n),r=Math.min(e,o,n),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-n)/l+(o<n?6:0);break;case o:i=(n-e)/l+2;break;case n:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function m0(e,o,n){e=at(e,360)*6,o=at(o,100),n=at(n,100);var a=Math.floor(e),r=e-a,i=n*(1-o),s=n*(1-r*o),l=n*(1-(1-r)*o),d=a%6,c=[n,s,i,i,l,n][d],f=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:f*255,b:y*255}}function y0(e,o,n,a){var r=[An(Math.round(e).toString(16)),An(Math.round(o).toString(16)),An(Math.round(n).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 Ha(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var Va={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 Yt(e){var o={r:0,g:0,b:0},n=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=b0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=u0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=on(e.s),r=on(e.v),o=m0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=on(e.s),i=on(e.l),o=h0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=f0(n),{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:n}}var x0="[-\\+]?\\d+%?",p0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(p0,")|(?:").concat(x0,")"),Tn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Tn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Tn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Tn),hsva:new RegExp("hsva"+Bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function b0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Va[e])e=Va[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=st.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=st.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=st.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=st.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=st.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=st.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=st.hex8.exec(e),n?{r:Je(n[1]),g:Je(n[2]),b:Je(n[3]),a:Ha(n[4]),format:o?"name":"hex8"}:(n=st.hex6.exec(e),n?{r:Je(n[1]),g:Je(n[2]),b:Je(n[3]),format:o?"name":"hex"}:(n=st.hex4.exec(e),n?{r:Je(n[1]+n[1]),g:Je(n[2]+n[2]),b:Je(n[3]+n[3]),a:Ha(n[4]+n[4]),format:o?"name":"hex8"}:(n=st.hex3.exec(e),n?{r:Je(n[1]+n[1]),g:Je(n[2]+n[2]),b:Je(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var an=2,ja=.16,v0=.05,S0=.05,C0=.15,Wa=5,Ua=4,w0=[{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 Ga(e){var o=e.r,n=e.g,a=e.b,r=g0(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function rn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(y0(o,n,a,!1))}function A0(e,o,n){var a=n/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 $a(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-an*o:Math.round(e.h)+an*o:a=n?Math.round(e.h)+an*o:Math.round(e.h)-an*o,a<0?a+=360:a>=360&&(a-=360),a}function Ka(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-ja*o:o===Ua?a=e.s+ja:a=e.s+v0*o,a>1&&(a=1),n&&o===Wa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Za(e,o,n){var a;return n?a=e.v+S0*o:a=e.v-C0*o,a>1&&(a=1),Number(a.toFixed(2))}function En(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Yt(e),r=Wa;r>0;r-=1){var i=Ga(a),s=rn(Yt({h:$a(i,r,!0),s:Ka(i,r,!0),v:Za(i,r,!0)}));n.push(s)}n.push(rn(a));for(var l=1;l<=Ua;l+=1){var d=Ga(a),c=rn(Yt({h:$a(d,l),s:Ka(d,l),v:Za(d,l)}));n.push(c)}return o.theme==="dark"?w0.map(function(f){var y=f.index,u=f.opacity,h=rn(A0(Yt(o.backgroundColor||"#141414"),Yt(n[y]),u*100));return h}):n}var Dn={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"},In={},Rn={};Object.keys(Dn).forEach(function(e){In[e]=En(Dn[e]),In[e].primary=In[e][5],Rn[e]=En(Dn[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var Ya=[],Qt=[],k0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function T0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function B0(e,o){if(o=o||{},e===void 0)throw new Error(k0);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Ya.indexOf(a);r===-1&&(r=Ya.push(a)-1,Qt[r]={});var i;return Qt[r]!==void 0&&Qt[r][n]!==void 0?i=Qt[r][n]:(i=Qt[r][n]=T0(),n==="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 Qa(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){E0(e,r,n[r])})}return e}function E0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function D0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function I0(e,o){D0(e,"[@ant-design/icons-vue] ".concat(o))}function Ja(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function On(e,o,n){return n?t.h(e.tag,Qa({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return On(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,Qa({key:o},e.attrs),(e.children||[]).map(function(a,r){return On(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Xa(e){return En(e)[0]}function er(e){return e?Array.isArray(e)?e:[e]:[]}var R0=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,tr=!1,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K0(e,o){if(e){if(typeof e=="string")return ar(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 ar(e,o)}}function ar(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 Z0(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 Y0(e){if(Array.isArray(e))return e}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){Ln(e,r,t[r])})}return e}function Ln(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Q0(e,o){if(e==null)return{};var t=J0(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 J0(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}or("#1890ff");var Lt=function(o,t){var a,r=rr({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,y=r.onClick,u=Q0(r,U0),h=(a={anticon:!0},Ln(a,"anticon-".concat(s.name),!!s.name),Ln(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var C=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,D=er(f),p=G0(D,2),v=p[0],x=p[1];return n.createVNode("span",rr({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[n.createVNode(On,{class:m,icon:s,primaryColor:v,secondaryColor:x,style:C},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=W0,Lt.setTwoToneColor=or;const ir=Lt;var X0={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 es=X0;function lr(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){ts(e,r,t[r])})}return e}function ts(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=lr({},o,t.attrs);return n.createVNode(ir,lr({},a,{icon:es}),null)};Nn.displayName="CloseOutlined",Nn.inheritAttrs=!1;const ns=Nn;var os={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 as=os;function sr(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){rs(e,r,t[r])})}return e}function rs(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Fn=function(o,t){var a=sr({},o,t.attrs);return n.createVNode(ir,sr({},a,{icon:as}),null)};Fn.displayName="LoadingOutlined",Fn.inheritAttrs=!1;const is=Fn,ls=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h(is,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Ou="",me=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},ss={class:"spin-wrapper"};function cs(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",ss,[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=me(ls,[["render",cs]]),ds=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function fs(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 sn=me(ds,[["render",fs]]);(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 us=Object.defineProperty,cr=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,dr=(e,o,t)=>o in e?us(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,fr=(e,o)=>{for(var t in o||(o={}))hs.call(o,t)&&dr(e,t,o[t]);if(cr)for(var t of cr(o))gs.call(o,t)&&dr(e,t,o[t]);return e},ms=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const ys=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),f=n.ref(0),y=n.ref(0),u=n.ref(!1),h=n.ref(!1),m=n.ref(0),g=n.ref(null),C=n.ref("200px"),D=n.ref(!1),p=n.ref(null),v=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&&v.value!==null&&p.value&&v.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in v.value){y.value=p.value.clientHeight,f.value=v.value.clientHeight;const I=Math.ceil(f.value/y.value);return t.value=isFinite(I)?I:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in v.value){if(c.value=p.value.clientWidth,d.value=v.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const I=Math.ceil(d.value/c.value);return t.value=isFinite(I)?I: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,(I,F)=>{I!==F&&o(I?"onResume":"onPause")});const E=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},S=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),w=n.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&S.value==="paused"?"paused":"running"),B=n.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&S.value==="paused"?"paused":"running"),b=n.computed(()=>{const I={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${w.value}`,"--pauseOnClick":`${B.value}`,"--pauseAnimation":`${S.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":`${C.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),fr(fr({},I),F)}),T=n.computed(()=>!!e.gradient),A=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."),C.value=e.gradientWidth):e.gradientLength&&(C.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),x()),D.value=!0};return n.onMounted(async()=>{A(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:v,componentKey:i,showGradient:T,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:A,getCurrentStyle:b,hoverStarted:E,hoverEnded:R,mouseDown:O,mouseUp:N}}}),xs={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},ps={class:"marquee",ref:"marqueeContent"},bs={key:1,"aria-hidden":!0,class:"marquee"};function vs(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",xs,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",ps,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",bs,[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 Ss=ms(ys,[["render",vs]]);const Cs=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ss},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),ws={key:1,class:"list-wrap"};function As(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",ws,[n.renderSlot(e.$slots,"default")]))}const ur=me(Cs,[["render",As]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(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},we={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},zn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(zn),ks=["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=Ne.without(ks,...o);return n.computed(()=>Ne.pick(e,t))},Pn="EVENT_BUS",Pe="GLOBAL_CONFIG",Te="GLOBAL_MODEL",ze="REQUEST_MODEL",hr="GLOBAL_TOKEN",Xt="REFRESH_PAGE",gr="MODAL_MODEL",bt="LOADED_DATA",Ue=18,mr="ygt",yr=((zl=window==null?void 0:window.config)==null?void 0:zl.indicatorURL)||"";(Ml=window==null?void 0:window.config)!=null&&Ml.uploadPath;const xr=((Pl=window==null?void 0:window.config)==null?void 0:Pl.routerBaseURL)||"./",Ts=((ql=window==null?void 0:window.config)==null?void 0:ql.erdURL)||"",_e=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Pn,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},Be=e=>{const o=e.events,t=e.id,a=n.inject(Pn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(Pe,{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 f=e[c],y=f[t]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.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 pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bs(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 br={exports:{}};function Es(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 qn={exports:{}};const Ds=Bs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var vr;function ye(){return vr||(vr=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 Es=="function")try{i=Ds}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(v){var x;return p.prototype=v,x=new p,p.prototype=null,x}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(p){var v=l(this);return p&&v.mixIn(p),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var v in p)p.hasOwnProperty(v)&&(this[v]=p[v]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(p,v){p=this.words=p||[],v!=r?this.sigBytes=v:this.sigBytes=p.length*4},toString:function(p){return(p||h).stringify(this)},concat:function(p){var v=this.words,x=p.words,k=this.sigBytes,E=p.sigBytes;if(this.clamp(),k%4)for(var R=0;R<E;R++){var O=x[R>>>2]>>>24-R%4*8&255;v[k+R>>>2]|=O<<24-(k+R)%4*8}else for(var N=0;N<E;N+=4)v[k+N>>>2]=x[N>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,v=this.sigBytes;p[v>>>2]&=4294967295<<32-v%4*8,p.length=a.ceil(v/4)},clone:function(){var p=f.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var v=[],x=0;x<p;x+=4)v.push(s());return new y.init(v,p)}}),u=d.enc={},h=u.Hex={stringify:function(p){for(var v=p.words,x=p.sigBytes,k=[],E=0;E<x;E++){var R=v[E>>>2]>>>24-E%4*8&255;k.push((R>>>4).toString(16)),k.push((R&15).toString(16))}return k.join("")},parse:function(p){for(var v=p.length,x=[],k=0;k<v;k+=2)x[k>>>3]|=parseInt(p.substr(k,2),16)<<24-k%8*4;return new y.init(x,v/2)}},m=u.Latin1={stringify:function(p){for(var v=p.words,x=p.sigBytes,k=[],E=0;E<x;E++){var R=v[E>>>2]>>>24-E%4*8&255;k.push(String.fromCharCode(R))}return k.join("")},parse:function(p){for(var v=p.length,x=[],k=0;k<v;k++)x[k>>>2]|=(p.charCodeAt(k)&255)<<24-k%4*8;return new y.init(x,v)}},g=u.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)))}},C=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=g.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var v,x=this._data,k=x.words,E=x.sigBytes,R=this.blockSize,O=R*4,N=E/O;p?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var S=N*R,w=a.min(S*4,E);if(S){for(var B=0;B<S;B+=R)this._doProcessBlock(k,B);v=k.splice(0,S),x.sigBytes-=w}return new y.init(v,w)},clone:function(){var p=f.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=C.extend({cfg:f.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(p){return function(v,x){return new p.init(x).finalize(v)}},_createHmacHelper:function(p){return function(v,x){return new D.HMAC.init(p,x).finalize(v)}}});var D=d.algo={};return d}(Math);return t})}(qn)),qn.exports}var Vn={exports:{}},Sr;function cn(){return Sr||(Sr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),t})}(Vn)),Vn.exports}var Hn={exports:{}},Cr;function Rs(){return Cr||(Cr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(Hn)),Hn.exports}var jn={exports:{}},wr;function Is(){return wr||(wr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),t.enc.Utf16})}(jn)),jn.exports}var Wn={exports:{}},Ar;function zt(){return Ar||(Ar=1,function(e,o){(function(t,a){e.exports=a(ye())})(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,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,C=c[h+2>>>2]>>>24-(h+2)%4*8&255,D=m<<16|g<<8|C,p=0;p<4&&h+p*.75<f;p++)u.push(y.charAt(D>>>6*(3-p)&63));var v=y.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64})}(Wn)),Wn.exports}var Un={exports:{}},kr;function _s(){return kr||(kr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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 f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,C=f[m+1>>>2]>>>24-(m+1)%4*8&255,D=f[m+2>>>2]>>>24-(m+2)%4*8&255,p=g<<16|C<<8|D,v=0;v<4&&m+v*.75<y;v++)h.push(u.charAt(p>>>6*(3-v)&63));var x=u.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),t.enc.Base64url})}(Un)),Un.exports}var Gn={exports:{}},Tr;function Mt(){return Tr||(Tr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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 g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,C){for(var D=0;D<16;D++){var p=C+D,v=g[p];g[p]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var x=this._hash.words,k=g[C+0],E=g[C+1],R=g[C+2],O=g[C+3],N=g[C+4],S=g[C+5],w=g[C+6],B=g[C+7],b=g[C+8],T=g[C+9],A=g[C+10],I=g[C+11],F=g[C+12],q=g[C+13],W=g[C+14],$=g[C+15],z=x[0],P=x[1],M=x[2],_=x[3];z=y(z,P,M,_,k,7,c[0]),_=y(_,z,P,M,E,12,c[1]),M=y(M,_,z,P,R,17,c[2]),P=y(P,M,_,z,O,22,c[3]),z=y(z,P,M,_,N,7,c[4]),_=y(_,z,P,M,S,12,c[5]),M=y(M,_,z,P,w,17,c[6]),P=y(P,M,_,z,B,22,c[7]),z=y(z,P,M,_,b,7,c[8]),_=y(_,z,P,M,T,12,c[9]),M=y(M,_,z,P,A,17,c[10]),P=y(P,M,_,z,I,22,c[11]),z=y(z,P,M,_,F,7,c[12]),_=y(_,z,P,M,q,12,c[13]),M=y(M,_,z,P,W,17,c[14]),P=y(P,M,_,z,$,22,c[15]),z=u(z,P,M,_,E,5,c[16]),_=u(_,z,P,M,w,9,c[17]),M=u(M,_,z,P,I,14,c[18]),P=u(P,M,_,z,k,20,c[19]),z=u(z,P,M,_,S,5,c[20]),_=u(_,z,P,M,A,9,c[21]),M=u(M,_,z,P,$,14,c[22]),P=u(P,M,_,z,N,20,c[23]),z=u(z,P,M,_,T,5,c[24]),_=u(_,z,P,M,W,9,c[25]),M=u(M,_,z,P,O,14,c[26]),P=u(P,M,_,z,b,20,c[27]),z=u(z,P,M,_,q,5,c[28]),_=u(_,z,P,M,R,9,c[29]),M=u(M,_,z,P,B,14,c[30]),P=u(P,M,_,z,F,20,c[31]),z=h(z,P,M,_,S,4,c[32]),_=h(_,z,P,M,b,11,c[33]),M=h(M,_,z,P,I,16,c[34]),P=h(P,M,_,z,W,23,c[35]),z=h(z,P,M,_,E,4,c[36]),_=h(_,z,P,M,N,11,c[37]),M=h(M,_,z,P,B,16,c[38]),P=h(P,M,_,z,A,23,c[39]),z=h(z,P,M,_,q,4,c[40]),_=h(_,z,P,M,k,11,c[41]),M=h(M,_,z,P,O,16,c[42]),P=h(P,M,_,z,w,23,c[43]),z=h(z,P,M,_,T,4,c[44]),_=h(_,z,P,M,F,11,c[45]),M=h(M,_,z,P,$,16,c[46]),P=h(P,M,_,z,R,23,c[47]),z=m(z,P,M,_,k,6,c[48]),_=m(_,z,P,M,B,10,c[49]),M=m(M,_,z,P,W,15,c[50]),P=m(P,M,_,z,S,21,c[51]),z=m(z,P,M,_,F,6,c[52]),_=m(_,z,P,M,O,10,c[53]),M=m(M,_,z,P,A,15,c[54]),P=m(P,M,_,z,E,21,c[55]),z=m(z,P,M,_,b,6,c[56]),_=m(_,z,P,M,$,10,c[57]),M=m(M,_,z,P,w,15,c[58]),P=m(P,M,_,z,q,21,c[59]),z=m(z,P,M,_,N,6,c[60]),_=m(_,z,P,M,I,10,c[61]),M=m(M,_,z,P,R,15,c[62]),P=m(P,M,_,z,T,21,c[63]),x[0]=x[0]+z|0,x[1]=x[1]+P|0,x[2]=x[2]+M|0,x[3]=x[3]+_|0},_doFinalize:function(){var g=this._data,C=g.words,D=this._nDataBytes*8,p=g.sigBytes*8;C[p>>>5]|=128<<24-p%32;var v=a.floor(D/4294967296),x=D;C[(p+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,C[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(C.length+1)*4,this._process();for(var k=this._hash,E=k.words,R=0;R<4;R++){var O=E[R];E[R]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return k},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,C,D,p,v,x,k){var E=g+(C&D|~C&p)+v+k;return(E<<x|E>>>32-x)+C}function u(g,C,D,p,v,x,k){var E=g+(C&p|D&~p)+v+k;return(E<<x|E>>>32-x)+C}function h(g,C,D,p,v,x,k){var E=g+(C^D^p)+v+k;return(E<<x|E>>>32-x)+C}function m(g,C,D,p,v,x,k){var E=g+(D^(C|~p))+v+k;return(E<<x|E>>>32-x)+C}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),t.MD5})}(Gn)),Gn.exports}var $n={exports:{}},Br;function Kn(){return Br||(Br=1,function(e,o){(function(t,a){e.exports=a(ye())})(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(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],C=u[3],D=u[4],p=0;p<80;p++){if(p<16)d[p]=f[y+p]|0;else{var v=d[p-3]^d[p-8]^d[p-14]^d[p-16];d[p]=v<<1|v>>>31}var x=(h<<5|h>>>27)+D+d[p];p<20?x+=(m&g|~m&C)+1518500249:p<40?x+=(m^g^C)+1859775393:p<60?x+=(m&g|m&C|g&C)-1894007588:x+=(m^g^C)-899497514,D=C,C=g,g=m<<30|m>>>2,m=h,h=x}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+C|0,u[4]=u[4]+D|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}($n)),$n.exports}var Zn={exports:{}},Er;function Dr(){return Er||(Er=1,function(e,o){(function(t,a){e.exports=a(ye())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(D){for(var p=a.sqrt(D),v=2;v<=p;v++)if(!(D%v))return!1;return!0}function m(D){return(D-(D|0))*4294967296|0}for(var g=2,C=0;C<64;)h(g)&&(C<8&&(c[C]=m(a.pow(g,1/2))),f[C]=m(a.pow(g,1/3)),C++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,C=g[0],D=g[1],p=g[2],v=g[3],x=g[4],k=g[5],E=g[6],R=g[7],O=0;O<64;O++){if(O<16)y[O]=h[m+O]|0;else{var N=y[O-15],S=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,w=y[O-2],B=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;y[O]=S+y[O-7]+B+y[O-16]}var b=x&k^~x&E,T=C&D^C&p^D&p,A=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),I=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),F=R+I+b+f[O]+y[O],q=A+T;R=E,E=k,k=x,x=v+F|0,v=p,p=D,D=C,C=F+q|0}g[0]=g[0]+C|0,g[1]=g[1]+D|0,g[2]=g[2]+p|0,g[3]=g[3]+v|0,g[4]=g[4]+x|0,g[5]=g[5]+k|0,g[6]=g[6]+E|0,g[7]=g[7]+R|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,C=h.sigBytes*8;return m[C>>>5]|=128<<24-C%32,m[(C+64>>>9<<4)+14]=a.floor(g/4294967296),m[(C+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),t.SHA256})}(Zn)),Zn.exports}var Yn={exports:{}},Rr;function Os(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),Dr())})(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})}(Yn)),Yn.exports}var Qn={exports:{}},Ir;function _r(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ye(),cn())})(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 f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=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,g){for(var C=this._hash.words,D=C[0],p=C[1],v=C[2],x=C[3],k=C[4],E=C[5],R=C[6],O=C[7],N=D.high,S=D.low,w=p.high,B=p.low,b=v.high,T=v.low,A=x.high,I=x.low,F=k.high,q=k.low,W=E.high,$=E.low,z=R.high,P=R.low,M=O.high,_=O.low,L=N,V=S,Z=w,U=B,ae=b,Q=T,le=A,re=I,Y=F,X=q,te=W,pe=$,Ae=z,Ee=P,$e=M,Me=_,Ie=0;Ie<80;Ie++){var ke,He,Fe=u[Ie];if(Ie<16)He=Fe.high=m[g+Ie*2]|0,ke=Fe.low=m[g+Ie*2+1]|0;else{var Ke=u[Ie-15],We=Ke.high,je=Ke.low,ut=(We>>>1|je<<31)^(We>>>8|je<<24)^We>>>7,tt=(je>>>1|We<<31)^(je>>>8|We<<24)^(je>>>7|We<<25),nt=u[Ie-2],H=nt.high,K=nt.low,J=(H>>>19|K<<13)^(H<<3|K>>>29)^H>>>6,oe=(K>>>19|H<<13)^(K<<3|H>>>29)^(K>>>6|H<<26),ie=u[Ie-7],ne=ie.high,ee=ie.low,fe=u[Ie-16],he=fe.high,ge=fe.low;ke=tt+ee,He=ut+ne+(ke>>>0<tt>>>0?1:0),ke=ke+oe,He=He+J+(ke>>>0<oe>>>0?1:0),ke=ke+ge,He=He+he+(ke>>>0<ge>>>0?1:0),Fe.high=He,Fe.low=ke}var Le=Y&te^~Y&Ae,Ze=X&pe^~X&Ee,yt=L&Z^L&ae^Z&ae,It=V&U^V&Q^U&Q,Cn=(L>>>28|V<<4)^(L<<30|V>>>2)^(L<<25|V>>>7),Ye=(V>>>28|L<<4)^(V<<30|L>>>2)^(V<<25|L>>>7),_t=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(Y<<23|X>>>9),Kt=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(X<<23|Y>>>9),wn=y[Ie],pu=wn.high,Vl=wn.low,ot=Me+Kt,Bt=$e+_t+(ot>>>0<Me>>>0?1:0),ot=ot+Ze,Bt=Bt+Le+(ot>>>0<Ze>>>0?1:0),ot=ot+Vl,Bt=Bt+pu+(ot>>>0<Vl>>>0?1:0),ot=ot+ke,Bt=Bt+He+(ot>>>0<ke>>>0?1:0),Hl=Ye+It,bu=Cn+yt+(Hl>>>0<Ye>>>0?1:0);$e=Ae,Me=Ee,Ae=te,Ee=pe,te=Y,pe=X,X=re+ot|0,Y=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=Z,Q=U,Z=L,U=V,V=ot+Hl|0,L=Bt+bu+(V>>>0<ot>>>0?1:0)|0}S=D.low=S+V,D.high=N+L+(S>>>0<V>>>0?1:0),B=p.low=B+U,p.high=w+Z+(B>>>0<U>>>0?1:0),T=v.low=T+Q,v.high=b+ae+(T>>>0<Q>>>0?1:0),I=x.low=I+re,x.high=A+le+(I>>>0<re>>>0?1:0),q=k.low=q+X,k.high=F+Y+(q>>>0<X>>>0?1:0),$=E.low=$+pe,E.high=W+te+($>>>0<pe>>>0?1:0),P=R.low=P+Ee,R.high=z+Ae+(P>>>0<Ee>>>0?1:0),_=O.low=_+Me,O.high=M+$e+(_>>>0<Me>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,C=this._nDataBytes*8,D=m.sigBytes*8;g[D>>>5]|=128<<24-D%32,g[(D+128>>>10<<5)+30]=Math.floor(C/4294967296),g[(D+128>>>10<<5)+31]=C,m.sigBytes=g.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(h),a.HmacSHA512=i._createHmacHelper(h)}(),t.SHA512})}(Qn)),Qn.exports}var Jn={exports:{}},Or;function Ls(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ye(),cn(),_r())})(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 f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),t.SHA384})}(Jn)),Jn.exports}var Xn={exports:{}},Lr;function Ns(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),cn())})(de,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var C=1,D=0,p=0;p<24;p++){y[C+5*D]=(p+1)*(p+2)/2%64;var v=D%5,x=(2*C+3*D)%5;C=v,D=x}for(var C=0;C<5;C++)for(var D=0;D<5;D++)u[C+5*D]=D+(2*C+3*D)%5*5;for(var k=1,E=0;E<24;E++){for(var R=0,O=0,N=0;N<7;N++){if(k&1){var S=(1<<N)-1;S<32?O^=1<<S:R^=1<<S-32}k&128?k=k<<1^113:k<<=1}h[E]=c.create(R,O)}})();var m=[];(function(){for(var C=0;C<25;C++)m[C]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],D=0;D<25;D++)C[D]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,D){for(var p=this._state,v=this.blockSize/2,x=0;x<v;x++){var k=C[D+2*x],E=C[D+2*x+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var R=p[x];R.high^=E,R.low^=k}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var S=0,w=0,B=0;B<5;B++){var R=p[N+5*B];S^=R.high,w^=R.low}var b=m[N];b.high=S,b.low=w}for(var N=0;N<5;N++)for(var T=m[(N+4)%5],A=m[(N+1)%5],I=A.high,F=A.low,S=T.high^(I<<1|F>>>31),w=T.low^(F<<1|I>>>31),B=0;B<5;B++){var R=p[N+5*B];R.high^=S,R.low^=w}for(var q=1;q<25;q++){var S,w,R=p[q],W=R.high,$=R.low,z=y[q];z<32?(S=W<<z|$>>>32-z,w=$<<z|W>>>32-z):(S=$<<z-32|W>>>64-z,w=W<<z-32|$>>>64-z);var P=m[u[q]];P.high=S,P.low=w}var M=m[0],_=p[0];M.high=_.high,M.low=_.low;for(var N=0;N<5;N++)for(var B=0;B<5;B++){var q=N+5*B,R=p[q],L=m[q],V=m[(N+1)%5+5*B],Z=m[(N+2)%5+5*B];R.high=L.high^~V.high&Z.high,R.low=L.low^~V.low&Z.low}var R=p[0],U=h[O];R.high^=U.high,R.low^=U.low}},_doFinalize:function(){var C=this._data,D=C.words;this._nDataBytes*8;var p=C.sigBytes*8,v=this.blockSize*32;D[p>>>5]|=1<<24-p%32,D[(a.ceil((p+1)/v)*v>>>5)-1]|=128,C.sigBytes=D.length*4,this._process();for(var x=this._state,k=this.cfg.outputLength/8,E=k/8,R=[],O=0;O<E;O++){var N=x[O],S=N.high,w=N.low;S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,R.push(w),R.push(S)}return new s.init(R,k)},clone:function(){for(var C=l.clone.call(this),D=C._state=this._state.slice(0),p=0;p<25;p++)D[p]=D[p].clone();return C}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),t.SHA3})}(Xn)),Xn.exports}var eo={exports:{}},Nr;function Fs(){return Nr||(Nr=1,function(e,o){(function(t,a){e.exports=a(ye())})(de,function(t){/** @preserve
|
|
56
|
+
`,tr=!1,O0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R0;t.nextTick(function(){tr||(typeof window<"u"&&window.document&&window.document.documentElement&&B0(o,{prepend:!0}),tr=!0)})},_0=["icon","primaryColor","secondaryColor"];function L0(e,o){if(e==null)return{};var n=N0(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)&&(n[a]=e[a])}return n}function N0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}function ln(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){F0(e,r,n[r])})}return e}function F0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Jt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function z0(e){var o=e.primaryColor,n=e.secondaryColor;Jt.primaryColor=o,Jt.secondaryColor=n||Xa(o),Jt.calculated=!!n}function M0(){return ln({},Jt)}var _t=function(o,n){var a=ln({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=L0(a,_0),d=Jt;if(i&&(d={primaryColor:i,secondaryColor:s||Xa(i)}),O0(),I0(Ja(r),"icon should be icon definiton, but got ".concat(r)),!Ja(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=ln({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),On(c.icon,"svg-".concat(c.name),ln({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};_t.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},_t.inheritAttrs=!1,_t.displayName="IconBase",_t.getTwoToneColors=M0,_t.setTwoToneColors=z0;const _n=_t;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.
|
|
57
|
+
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 nr(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,o)}}function nr(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function V0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function j0(e){if(Array.isArray(e))return e}function or(e){var o=er(e),n=P0(o,2),a=n[0],r=n[1];return _n.setTwoToneColors({primaryColor:a,secondaryColor:r})}function W0(){var e=_n.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var U0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function G0(e,o){return Y0(e)||Z0(e,o)||K0(e,o)||$0()}function $0(){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 K0(e,o){if(e){if(typeof e=="string")return ar(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(e,o)}}function ar(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function Z0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Y0(e){if(Array.isArray(e))return e}function rr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Ln(e,r,n[r])})}return e}function Ln(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Q0(e,o){if(e==null)return{};var n=J0(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)&&(n[a]=e[a])}return n}function J0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}or("#1890ff");var Lt=function(o,n){var a,r=rr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,y=r.onClick,u=Q0(r,U0),h=(a={anticon:!0},Ln(a,"anticon-".concat(s.name),!!s.name),Ln(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,D=er(f),b=G0(D,2),v=b[0],x=b[1];return t.createVNode("span",rr({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[t.createVNode(_n,{class:m,icon:s,primaryColor:v,secondaryColor:x,style:S},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=W0,Lt.setTwoToneColor=or;const ir=Lt;var X0={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 es=X0;function lr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){ts(e,r,n[r])})}return e}function ts(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Nn=function(o,n){var a=lr({},o,n.attrs);return t.createVNode(ir,lr({},a,{icon:es}),null)};Nn.displayName="CloseOutlined",Nn.inheritAttrs=!1;const ns=Nn;var os={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 as=os;function sr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){rs(e,r,n[r])})}return e}function rs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Fn=function(o,n){var a=sr({},o,n.attrs);return t.createVNode(ir,sr({},a,{icon:as}),null)};Fn.displayName="LoadingOutlined",Fn.inheritAttrs=!1;const is=Fn,ls=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:t.h(is,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Nu="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ss={class:"spin-wrapper"};function cs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ss,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Nt=me(ls,[["render",cs]]),ds=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function fs(e,o,n,a,r,i){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const sn=me(ds,[["render",fs]]);(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 us=Object.defineProperty,cr=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,dr=(e,o,n)=>o in e?us(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,fr=(e,o)=>{for(var n in o||(o={}))hs.call(o,n)&&dr(e,n,o[n]);if(cr)for(var n of cr(o))gs.call(o,n)&&dr(e,n,o[n]);return e},ms=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const ys=t.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 n=t.ref(0),a=t.ref("100%"),r=t.ref("100%"),i=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),y=t.ref(0),u=t.ref(!1),h=t.ref(!1),m=t.ref(0),g=t.ref(null),S=t.ref("200px"),D=t.ref(!1),b=t.ref(null),v=t.ref(null),x=async()=>{await T(),i.value++},T=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&v.value!==null&&b.value&&v.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in v.value){y.value=b.value.clientHeight,f.value=v.value.clientHeight;const R=Math.ceil(f.value/y.value);return n.value=isFinite(R)?R:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in v.value){if(c.value=b.value.clientWidth,d.value=v.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const R=Math.ceil(d.value/c.value);return n.value=isFinite(R)?R:0,n.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};t.watch(c,async()=>{e.clone&&x()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),t.watch(()=>e.pause,(R,F)=>{R!==F&&o(R?"onResume":"onPause")});const E=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},I=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},k=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),B=t.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),A=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&k.value==="paused"?"paused":"running"),p=t.computed(()=>{const R={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${A.value}`,"--pauseAnimation":`${k.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":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),fr(fr({},R),F)}),w=t.computed(()=>!!e.gradient),C=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."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await T(),x()),D.value=!0};return t.onMounted(async()=>{C(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:v,componentKey:i,showGradient:w,cloneAmount:n,ForcesUpdate:x,checkForClone:T,setupMarquee:C,getCurrentStyle:p,hoverStarted:E,hoverEnded:I,mouseDown:_,mouseUp:N}}}),xs={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},ps={class:"marquee",ref:"marqueeContent"},bs={key:1,"aria-hidden":!0,class:"marquee"};function vs(e,o,n,a,r,i){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.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))},[t.createElementVNode("div",xs,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",ps,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",bs,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var Ss=ms(ys,[["render",vs]]);const Cs=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ss},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),ws={key:1,class:"list-wrap"};function As(e,o,n,a,r,i){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(t.openBlock(),t.createElementBlock("div",ws,[t.renderSlot(e.$slots,"default")]))}const ur=me(Cs,[["render",As]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},we={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 n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},zn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(zn),ks=["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 n=Ne.without(ks,...o);return t.computed(()=>Ne.pick(e,n))},Pn="EVENT_BUS",Pe="GLOBAL_CONFIG",Te="GLOBAL_MODEL",ze="REQUEST_MODEL",hr="GLOBAL_TOKEN",Xt="REFRESH_PAGE",gr="MODAL_MODEL",vt="LOADED_DATA",Ue=18,mr="ygt",yr=((zl=window==null?void 0:window.config)==null?void 0:zl.indicatorURL)||"";(Ml=window==null?void 0:window.config)!=null&&Ml.uploadPath;const xr=((Pl=window==null?void 0:window.config)==null?void 0:Pl.routerBaseURL)||"./",Ts=((ql=window==null?void 0:window.config)==null?void 0:ql.erdURL)||"",Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Pn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Be=e=>{const o=e.events,n=e.id,a=t.inject(Pn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(Pe,{touchEventId:t.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=n,l(d.target,d.emit)}catch(c){console.error(c)}})}},Ft=(e,o)=>{let{name:n="name",value:a="value",type:r="type"}=o||{};n=n==null?void 0:n.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 f=e[c],y=f[n]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.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 pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bs(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var br={exports:{}};function Es(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 qn={exports:{}};const Ds=Bs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var vr;function ye(){return vr||(vr=1,function(e,o){(function(n,a){e.exports=a()})(de,function(){var n=n||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 Es=="function")try{i=Ds}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(v){var x;return b.prototype=v,x=new b,b.prototype=null,x}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(b){var v=l(this);return b&&v.mixIn(b),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var v in b)b.hasOwnProperty(v)&&(this[v]=b[v]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(b,v){b=this.words=b||[],v!=r?this.sigBytes=v:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var v=this.words,x=b.words,T=this.sigBytes,E=b.sigBytes;if(this.clamp(),T%4)for(var I=0;I<E;I++){var _=x[I>>>2]>>>24-I%4*8&255;v[T+I>>>2]|=_<<24-(T+I)%4*8}else for(var N=0;N<E;N+=4)v[T+N>>>2]=x[N>>>2];return this.sigBytes+=E,this},clamp:function(){var b=this.words,v=this.sigBytes;b[v>>>2]&=4294967295<<32-v%4*8,b.length=a.ceil(v/4)},clone:function(){var b=f.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var v=[],x=0;x<b;x+=4)v.push(s());return new y.init(v,b)}}),u=d.enc={},h=u.Hex={stringify:function(b){for(var v=b.words,x=b.sigBytes,T=[],E=0;E<x;E++){var I=v[E>>>2]>>>24-E%4*8&255;T.push((I>>>4).toString(16)),T.push((I&15).toString(16))}return T.join("")},parse:function(b){for(var v=b.length,x=[],T=0;T<v;T+=2)x[T>>>3]|=parseInt(b.substr(T,2),16)<<24-T%8*4;return new y.init(x,v/2)}},m=u.Latin1={stringify:function(b){for(var v=b.words,x=b.sigBytes,T=[],E=0;E<x;E++){var I=v[E>>>2]>>>24-E%4*8&255;T.push(String.fromCharCode(I))}return T.join("")},parse:function(b){for(var v=b.length,x=[],T=0;T<v;T++)x[T>>>2]|=(b.charCodeAt(T)&255)<<24-T%4*8;return new y.init(x,v)}},g=u.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var v,x=this._data,T=x.words,E=x.sigBytes,I=this.blockSize,_=I*4,N=E/_;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var k=N*I,B=a.min(k*4,E);if(k){for(var A=0;A<k;A+=I)this._doProcessBlock(T,A);v=T.splice(0,k),x.sigBytes-=B}return new y.init(v,B)},clone:function(){var b=f.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:f.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(b){return function(v,x){return new b.init(x).finalize(v)}},_createHmacHelper:function(b){return function(v,x){return new D.HMAC.init(b,x).finalize(v)}}});var D=d.algo={};return d}(Math);return n})}(qn)),qn.exports}var Hn={exports:{}},Sr;function cn(){return Sr||(Sr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),n})}(Hn)),Hn.exports}var Vn={exports:{}},Cr;function Is(){return Cr||(Cr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,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,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Vn)),Vn.exports}var jn={exports:{}},wr;function Rs(){return wr||(wr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(jn)),jn.exports}var Wn={exports:{}},Ar;function zt(){return Ar||(Ar=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,S=c[h+2>>>2]>>>24-(h+2)%4*8&255,D=m<<16|g<<8|S,b=0;b<4&&h+b*.75<f;b++)u.push(y.charAt(D>>>6*(3-b)&63));var v=y.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,S=m|g;y[u>>>2]|=S<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64})}(Wn)),Wn.exports}var Un={exports:{}},kr;function Os(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,S=f[m+1>>>2]>>>24-(m+1)%4*8&255,D=f[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|S<<8|D,v=0;v<4&&m+v*.75<y;v++)h.push(u.charAt(b>>>6*(3-v)&63));var x=u.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,S=m|g;y[u>>>2]|=S<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64url})}(Un)),Un.exports}var Gn={exports:{}},Tr;function Mt(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,S){for(var D=0;D<16;D++){var b=S+D,v=g[b];g[b]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var x=this._hash.words,T=g[S+0],E=g[S+1],I=g[S+2],_=g[S+3],N=g[S+4],k=g[S+5],B=g[S+6],A=g[S+7],p=g[S+8],w=g[S+9],C=g[S+10],R=g[S+11],F=g[S+12],q=g[S+13],W=g[S+14],$=g[S+15],z=x[0],P=x[1],M=x[2],O=x[3];z=y(z,P,M,O,T,7,c[0]),O=y(O,z,P,M,E,12,c[1]),M=y(M,O,z,P,I,17,c[2]),P=y(P,M,O,z,_,22,c[3]),z=y(z,P,M,O,N,7,c[4]),O=y(O,z,P,M,k,12,c[5]),M=y(M,O,z,P,B,17,c[6]),P=y(P,M,O,z,A,22,c[7]),z=y(z,P,M,O,p,7,c[8]),O=y(O,z,P,M,w,12,c[9]),M=y(M,O,z,P,C,17,c[10]),P=y(P,M,O,z,R,22,c[11]),z=y(z,P,M,O,F,7,c[12]),O=y(O,z,P,M,q,12,c[13]),M=y(M,O,z,P,W,17,c[14]),P=y(P,M,O,z,$,22,c[15]),z=u(z,P,M,O,E,5,c[16]),O=u(O,z,P,M,B,9,c[17]),M=u(M,O,z,P,R,14,c[18]),P=u(P,M,O,z,T,20,c[19]),z=u(z,P,M,O,k,5,c[20]),O=u(O,z,P,M,C,9,c[21]),M=u(M,O,z,P,$,14,c[22]),P=u(P,M,O,z,N,20,c[23]),z=u(z,P,M,O,w,5,c[24]),O=u(O,z,P,M,W,9,c[25]),M=u(M,O,z,P,_,14,c[26]),P=u(P,M,O,z,p,20,c[27]),z=u(z,P,M,O,q,5,c[28]),O=u(O,z,P,M,I,9,c[29]),M=u(M,O,z,P,A,14,c[30]),P=u(P,M,O,z,F,20,c[31]),z=h(z,P,M,O,k,4,c[32]),O=h(O,z,P,M,p,11,c[33]),M=h(M,O,z,P,R,16,c[34]),P=h(P,M,O,z,W,23,c[35]),z=h(z,P,M,O,E,4,c[36]),O=h(O,z,P,M,N,11,c[37]),M=h(M,O,z,P,A,16,c[38]),P=h(P,M,O,z,C,23,c[39]),z=h(z,P,M,O,q,4,c[40]),O=h(O,z,P,M,T,11,c[41]),M=h(M,O,z,P,_,16,c[42]),P=h(P,M,O,z,B,23,c[43]),z=h(z,P,M,O,w,4,c[44]),O=h(O,z,P,M,F,11,c[45]),M=h(M,O,z,P,$,16,c[46]),P=h(P,M,O,z,I,23,c[47]),z=m(z,P,M,O,T,6,c[48]),O=m(O,z,P,M,A,10,c[49]),M=m(M,O,z,P,W,15,c[50]),P=m(P,M,O,z,k,21,c[51]),z=m(z,P,M,O,F,6,c[52]),O=m(O,z,P,M,_,10,c[53]),M=m(M,O,z,P,C,15,c[54]),P=m(P,M,O,z,E,21,c[55]),z=m(z,P,M,O,p,6,c[56]),O=m(O,z,P,M,$,10,c[57]),M=m(M,O,z,P,B,15,c[58]),P=m(P,M,O,z,q,21,c[59]),z=m(z,P,M,O,N,6,c[60]),O=m(O,z,P,M,R,10,c[61]),M=m(M,O,z,P,I,15,c[62]),P=m(P,M,O,z,w,21,c[63]),x[0]=x[0]+z|0,x[1]=x[1]+P|0,x[2]=x[2]+M|0,x[3]=x[3]+O|0},_doFinalize:function(){var g=this._data,S=g.words,D=this._nDataBytes*8,b=g.sigBytes*8;S[b>>>5]|=128<<24-b%32;var v=a.floor(D/4294967296),x=D;S[(b+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var T=this._hash,E=T.words,I=0;I<4;I++){var _=E[I];E[I]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return T},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,S,D,b,v,x,T){var E=g+(S&D|~S&b)+v+T;return(E<<x|E>>>32-x)+S}function u(g,S,D,b,v,x,T){var E=g+(S&b|D&~b)+v+T;return(E<<x|E>>>32-x)+S}function h(g,S,D,b,v,x,T){var E=g+(S^D^b)+v+T;return(E<<x|E>>>32-x)+S}function m(g,S,D,b,v,x,T){var E=g+(D^(S|~b))+v+T;return(E<<x|E>>>32-x)+S}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(Gn)),Gn.exports}var $n={exports:{}},Br;function Kn(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,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(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],S=u[3],D=u[4],b=0;b<80;b++){if(b<16)d[b]=f[y+b]|0;else{var v=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=v<<1|v>>>31}var x=(h<<5|h>>>27)+D+d[b];b<20?x+=(m&g|~m&S)+1518500249:b<40?x+=(m^g^S)+1859775393:b<60?x+=(m&g|m&S|g&S)-1894007588:x+=(m^g^S)-899497514,D=S,S=g,g=m<<30|m>>>2,m=h,h=x}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+S|0,u[4]=u[4]+D|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}($n)),$n.exports}var Zn={exports:{}},Er;function Dr(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(D){for(var b=a.sqrt(D),v=2;v<=b;v++)if(!(D%v))return!1;return!0}function m(D){return(D-(D|0))*4294967296|0}for(var g=2,S=0;S<64;)h(g)&&(S<8&&(c[S]=m(a.pow(g,1/2))),f[S]=m(a.pow(g,1/3)),S++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,S=g[0],D=g[1],b=g[2],v=g[3],x=g[4],T=g[5],E=g[6],I=g[7],_=0;_<64;_++){if(_<16)y[_]=h[m+_]|0;else{var N=y[_-15],k=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,B=y[_-2],A=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;y[_]=k+y[_-7]+A+y[_-16]}var p=x&T^~x&E,w=S&D^S&b^D&b,C=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),R=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),F=I+R+p+f[_]+y[_],q=C+w;I=E,E=T,T=x,x=v+F|0,v=b,b=D,D=S,S=F+q|0}g[0]=g[0]+S|0,g[1]=g[1]+D|0,g[2]=g[2]+b|0,g[3]=g[3]+v|0,g[4]=g[4]+x|0,g[5]=g[5]+T|0,g[6]=g[6]+E|0,g[7]=g[7]+I|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,S=h.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(g/4294967296),m[(S+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(Zn)),Zn.exports}var Yn={exports:{}},Ir;function _s(){return Ir||(Ir=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Dr())})(de,function(n){return function(){var a=n,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)}(),n.SHA224})}(Yn)),Yn.exports}var Qn={exports:{}},Rr;function Or(){return Rr||(Rr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=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,g){for(var S=this._hash.words,D=S[0],b=S[1],v=S[2],x=S[3],T=S[4],E=S[5],I=S[6],_=S[7],N=D.high,k=D.low,B=b.high,A=b.low,p=v.high,w=v.low,C=x.high,R=x.low,F=T.high,q=T.low,W=E.high,$=E.low,z=I.high,P=I.low,M=_.high,O=_.low,L=N,H=k,Z=B,U=A,ae=p,Q=w,le=C,re=R,Y=F,X=q,te=W,pe=$,Ae=z,Ee=P,$e=M,Me=O,Re=0;Re<80;Re++){var ke,Ve,Fe=u[Re];if(Re<16)Ve=Fe.high=m[g+Re*2]|0,ke=Fe.low=m[g+Re*2+1]|0;else{var Ke=u[Re-15],We=Ke.high,je=Ke.low,ut=(We>>>1|je<<31)^(We>>>8|je<<24)^We>>>7,tt=(je>>>1|We<<31)^(je>>>8|We<<24)^(je>>>7|We<<25),nt=u[Re-2],V=nt.high,K=nt.low,J=(V>>>19|K<<13)^(V<<3|K>>>29)^V>>>6,oe=(K>>>19|V<<13)^(K<<3|V>>>29)^(K>>>6|V<<26),ie=u[Re-7],ne=ie.high,ee=ie.low,fe=u[Re-16],he=fe.high,ge=fe.low;ke=tt+ee,Ve=ut+ne+(ke>>>0<tt>>>0?1:0),ke=ke+oe,Ve=Ve+J+(ke>>>0<oe>>>0?1:0),ke=ke+ge,Ve=Ve+he+(ke>>>0<ge>>>0?1:0),Fe.high=Ve,Fe.low=ke}var Le=Y&te^~Y&Ae,Ze=X&pe^~X&Ee,xt=L&Z^L&ae^Z&ae,Rt=H&U^H&Q^U&Q,Cn=(L>>>28|H<<4)^(L<<30|H>>>2)^(L<<25|H>>>7),Ye=(H>>>28|L<<4)^(H<<30|L>>>2)^(H<<25|L>>>7),Ot=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(Y<<23|X>>>9),Kt=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(X<<23|Y>>>9),wn=y[Re],vu=wn.high,Hl=wn.low,ot=Me+Kt,Bt=$e+Ot+(ot>>>0<Me>>>0?1:0),ot=ot+Ze,Bt=Bt+Le+(ot>>>0<Ze>>>0?1:0),ot=ot+Hl,Bt=Bt+vu+(ot>>>0<Hl>>>0?1:0),ot=ot+ke,Bt=Bt+Ve+(ot>>>0<ke>>>0?1:0),Vl=Ye+Rt,Su=Cn+xt+(Vl>>>0<Ye>>>0?1:0);$e=Ae,Me=Ee,Ae=te,Ee=pe,te=Y,pe=X,X=re+ot|0,Y=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=Z,Q=U,Z=L,U=H,H=ot+Vl|0,L=Bt+Su+(H>>>0<ot>>>0?1:0)|0}k=D.low=k+H,D.high=N+L+(k>>>0<H>>>0?1:0),A=b.low=A+U,b.high=B+Z+(A>>>0<U>>>0?1:0),w=v.low=w+Q,v.high=p+ae+(w>>>0<Q>>>0?1:0),R=x.low=R+re,x.high=C+le+(R>>>0<re>>>0?1:0),q=T.low=q+X,T.high=F+Y+(q>>>0<X>>>0?1:0),$=E.low=$+pe,E.high=W+te+($>>>0<pe>>>0?1:0),P=I.low=P+Ee,I.high=z+Ae+(P>>>0<Ee>>>0?1:0),O=_.low=O+Me,_.high=M+$e+(O>>>0<Me>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,S=this._nDataBytes*8,D=m.sigBytes*8;g[D>>>5]|=128<<24-D%32,g[(D+128>>>10<<5)+30]=Math.floor(S/4294967296),g[(D+128>>>10<<5)+31]=S,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(Qn)),Qn.exports}var Jn={exports:{}},_r;function Ls(){return _r||(_r=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn(),Or())})(de,function(n){return function(){var a=n,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 f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(Jn)),Jn.exports}var Xn={exports:{}},Lr;function Ns(){return Lr||(Lr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var S=1,D=0,b=0;b<24;b++){y[S+5*D]=(b+1)*(b+2)/2%64;var v=D%5,x=(2*S+3*D)%5;S=v,D=x}for(var S=0;S<5;S++)for(var D=0;D<5;D++)u[S+5*D]=D+(2*S+3*D)%5*5;for(var T=1,E=0;E<24;E++){for(var I=0,_=0,N=0;N<7;N++){if(T&1){var k=(1<<N)-1;k<32?_^=1<<k:I^=1<<k-32}T&128?T=T<<1^113:T<<=1}h[E]=c.create(I,_)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],D=0;D<25;D++)S[D]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,D){for(var b=this._state,v=this.blockSize/2,x=0;x<v;x++){var T=S[D+2*x],E=S[D+2*x+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var I=b[x];I.high^=E,I.low^=T}for(var _=0;_<24;_++){for(var N=0;N<5;N++){for(var k=0,B=0,A=0;A<5;A++){var I=b[N+5*A];k^=I.high,B^=I.low}var p=m[N];p.high=k,p.low=B}for(var N=0;N<5;N++)for(var w=m[(N+4)%5],C=m[(N+1)%5],R=C.high,F=C.low,k=w.high^(R<<1|F>>>31),B=w.low^(F<<1|R>>>31),A=0;A<5;A++){var I=b[N+5*A];I.high^=k,I.low^=B}for(var q=1;q<25;q++){var k,B,I=b[q],W=I.high,$=I.low,z=y[q];z<32?(k=W<<z|$>>>32-z,B=$<<z|W>>>32-z):(k=$<<z-32|W>>>64-z,B=W<<z-32|$>>>64-z);var P=m[u[q]];P.high=k,P.low=B}var M=m[0],O=b[0];M.high=O.high,M.low=O.low;for(var N=0;N<5;N++)for(var A=0;A<5;A++){var q=N+5*A,I=b[q],L=m[q],H=m[(N+1)%5+5*A],Z=m[(N+2)%5+5*A];I.high=L.high^~H.high&Z.high,I.low=L.low^~H.low&Z.low}var I=b[0],U=h[_];I.high^=U.high,I.low^=U.low}},_doFinalize:function(){var S=this._data,D=S.words;this._nDataBytes*8;var b=S.sigBytes*8,v=this.blockSize*32;D[b>>>5]|=1<<24-b%32,D[(a.ceil((b+1)/v)*v>>>5)-1]|=128,S.sigBytes=D.length*4,this._process();for(var x=this._state,T=this.cfg.outputLength/8,E=T/8,I=[],_=0;_<E;_++){var N=x[_],k=N.high,B=N.low;k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,I.push(B),I.push(k)}return new s.init(I,T)},clone:function(){for(var S=l.clone.call(this),D=S._state=this._state.slice(0),b=0;b<25;b++)D[b]=D[b].clone();return S}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),n.SHA3})}(Xn)),Xn.exports}var eo={exports:{}},Nr;function Fs(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){/** @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,58 +64,58 @@ 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]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,R){for(var O=0;O<16;O++){var N=R+O,S=E[N];E[N]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var w=this._hash.words,B=h.words,b=m.words,T=c.words,A=f.words,I=y.words,F=u.words,q,W,$,z,P,M,_,L,V,Z;M=q=w[0],_=W=w[1],L=$=w[2],V=z=w[3],Z=P=w[4];for(var U,O=0;O<80;O+=1)U=q+E[R+T[O]]|0,O<16?U+=C(W,$,z)+B[0]:O<32?U+=D(W,$,z)+B[1]:O<48?U+=p(W,$,z)+B[2]:O<64?U+=v(W,$,z)+B[3]:U+=x(W,$,z)+B[4],U=U|0,U=k(U,I[O]),U=U+P|0,q=P,P=z,z=k($,10),$=W,W=U,U=M+E[R+A[O]]|0,O<16?U+=x(_,L,V)+b[0]:O<32?U+=v(_,L,V)+b[1]:O<48?U+=p(_,L,V)+b[2]:O<64?U+=D(_,L,V)+b[3]:U+=C(_,L,V)+b[4],U=U|0,U=k(U,F[O]),U=U+Z|0,M=Z,Z=V,V=k(L,10),L=_,_=U;U=w[1]+$+V|0,w[1]=w[2]+z+Z|0,w[2]=w[3]+P+M|0,w[3]=w[4]+q+_|0,w[4]=w[0]+W+L|0,w[0]=U},_doFinalize:function(){var E=this._data,R=E.words,O=this._nDataBytes*8,N=E.sigBytes*8;R[N>>>5]|=128<<24-N%32,R[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,E.sigBytes=(R.length+1)*4,this._process();for(var S=this._hash,w=S.words,B=0;B<5;B++){var b=w[B];w[B]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return S},clone:function(){var E=l.clone.call(this);return E._hash=this._hash.clone(),E}});function C(E,R,O){return E^R^O}function D(E,R,O){return E&R|~E&O}function p(E,R,O){return(E|~R)^O}function v(E,R,O){return E&O|R&~O}function x(E,R,O){return E^(R|~O)}function k(E,R){return E<<R|E>>>32-R}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),t.RIPEMD160})}(eo)),eo.exports}var to={exports:{}},Fr;function no(){return Fr||(Fr=1,function(e,o){(function(t,a){e.exports=a(ye())})(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,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,C=m.words,D=0;D<y;D++)g[D]^=1549556828,C[D]^=909522486;h.sigBytes=m.sigBytes=u,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 f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(to)),to.exports}var oo={exports:{}},zr;function zs(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),Kn(),no())})(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,f=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),C=s.create([1]),D=g.words,p=C.words,v=h.keySize,x=h.iterations;D.length<v;){var k=m.update(u).finalize(C);m.reset();for(var E=k.words,R=E.length,O=k,N=1;N<x;N++){O=m.finalize(O),m.reset();for(var S=O.words,w=0;w<R;w++)E[w]^=S[w]}g.concat(k),p[0]++}return g.sigBytes=v*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),t.PBKDF2})}(oo)),oo.exports}var ao={exports:{}},Mr;function Dt(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),Kn(),no())})(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(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),C=g.words,D=h.keySize,p=h.iterations;C.length<D;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var v=1;v<p;v++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=D*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),t.EvpKDF})}(ao)),ao.exports}var ro={exports:{}},Pr;function qe(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),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 f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(S,w){return this.create(this._ENC_XFORM_MODE,S,w)},createDecryptor:function(S,w){return this.create(this._DEC_XFORM_MODE,S,w)},init:function(S,w,B){this.cfg=this.cfg.extend(B),this._xformMode=S,this._key=w,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(S){return this._append(S),this._process()},finalize:function(S){S&&this._append(S);var w=this._doFinalize();return w},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function S(w){return typeof w=="string"?N:E}return function(w){return{encrypt:function(B,b,T){return S(b).encrypt(w,B,b,T)},decrypt:function(B,b,T){return S(b).decrypt(w,B,b,T)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var S=this._process(!0);return S},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(S,w){return this.Encryptor.create(S,w)},createDecryptor:function(S,w){return this.Decryptor.create(S,w)},init:function(S,w){this._cipher=S,this._iv=w}}),C=m.CBC=function(){var S=g.extend();S.Encryptor=S.extend({processBlock:function(B,b){var T=this._cipher,A=T.blockSize;w.call(this,B,b,A),T.encryptBlock(B,b),this._prevBlock=B.slice(b,b+A)}}),S.Decryptor=S.extend({processBlock:function(B,b){var T=this._cipher,A=T.blockSize,I=B.slice(b,b+A);T.decryptBlock(B,b),w.call(this,B,b,A),this._prevBlock=I}});function w(B,b,T){var A,I=this._iv;I?(A=I,this._iv=a):A=this._prevBlock;for(var F=0;F<T;F++)B[b+F]^=A[F]}return S}(),D=r.pad={},p=D.Pkcs7={pad:function(S,w){for(var B=w*4,b=B-S.sigBytes%B,T=b<<24|b<<16|b<<8|b,A=[],I=0;I<b;I+=4)A.push(T);var F=l.create(A,b);S.concat(F)},unpad:function(S){var w=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=w}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:C,padding:p}),reset:function(){var S;h.reset.call(this);var w=this.cfg,B=w.iv,b=w.mode;this._xformMode==this._ENC_XFORM_MODE?S=b.createEncryptor:(S=b.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==S?this._mode.init(this,B&&B.words):(this._mode=S.call(b,this,B&&B.words),this._mode.__creator=S)},_doProcessBlock:function(S,w){this._mode.processBlock(S,w)},_doFinalize:function(){var S,w=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(w.pad(this._data,this.blockSize),S=this._process(!0)):(S=this._process(!0),w.unpad(S)),S},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(S){this.mixIn(S)},toString:function(S){return(S||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(S){var w,B=S.ciphertext,b=S.salt;return b?w=l.create([1398893684,1701076831]).concat(b).concat(B):w=B,w.toString(f)},parse:function(S){var w,B=f.parse(S),b=B.words;return b[0]==1398893684&&b[1]==1701076831&&(w=l.create(b.slice(2,4)),b.splice(0,4),B.sigBytes-=16),v.create({ciphertext:B,salt:w})}},E=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(S,w,B,b){b=this.cfg.extend(b);var T=S.createEncryptor(B,b),A=T.finalize(w),I=T.cfg;return v.create({ciphertext:A,key:B,iv:I.iv,algorithm:S,mode:I.mode,padding:I.padding,blockSize:S.blockSize,formatter:b.format})},decrypt:function(S,w,B,b){b=this.cfg.extend(b),w=this._parse(w,b.format);var T=S.createDecryptor(B,b).finalize(w.ciphertext);return T},_parse:function(S,w){return typeof S=="string"?w.parse(S,this):S}}),R=r.kdf={},O=R.OpenSSL={execute:function(S,w,B,b){b||(b=l.random(64/8));var T=u.create({keySize:w+B}).compute(S,b),A=l.create(T.words.slice(w),B*4);return T.sigBytes=w*4,v.create({key:T,iv:A,salt:b})}},N=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:O}),encrypt:function(S,w,B,b){b=this.cfg.extend(b);var T=b.kdf.execute(B,S.keySize,S.ivSize);b.iv=T.iv;var A=E.encrypt.call(this,S,w,T.key,b);return A.mixIn(T),A},decrypt:function(S,w,B,b){b=this.cfg.extend(b),w=this._parse(w,b.format);var T=b.kdf.execute(B,S.keySize,S.ivSize,w.salt);b.iv=T.iv;var A=E.decrypt.call(this,S,w,T.key,b);return A}})}()})}(ro)),ro.exports}var io={exports:{}},qr;function Ms(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),t.mode.CFB})}(io)),io.exports}var lo={exports:{}},Vr;function Ps(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),t.mode.CTR})}(lo)),lo.exports}var so={exports:{}},Hr;function qs(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(de,function(t){/** @preserve
|
|
67
|
+
*/return function(a){var r=n,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]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,I){for(var _=0;_<16;_++){var N=I+_,k=E[N];E[N]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var B=this._hash.words,A=h.words,p=m.words,w=c.words,C=f.words,R=y.words,F=u.words,q,W,$,z,P,M,O,L,H,Z;M=q=B[0],O=W=B[1],L=$=B[2],H=z=B[3],Z=P=B[4];for(var U,_=0;_<80;_+=1)U=q+E[I+w[_]]|0,_<16?U+=S(W,$,z)+A[0]:_<32?U+=D(W,$,z)+A[1]:_<48?U+=b(W,$,z)+A[2]:_<64?U+=v(W,$,z)+A[3]:U+=x(W,$,z)+A[4],U=U|0,U=T(U,R[_]),U=U+P|0,q=P,P=z,z=T($,10),$=W,W=U,U=M+E[I+C[_]]|0,_<16?U+=x(O,L,H)+p[0]:_<32?U+=v(O,L,H)+p[1]:_<48?U+=b(O,L,H)+p[2]:_<64?U+=D(O,L,H)+p[3]:U+=S(O,L,H)+p[4],U=U|0,U=T(U,F[_]),U=U+Z|0,M=Z,Z=H,H=T(L,10),L=O,O=U;U=B[1]+$+H|0,B[1]=B[2]+z+Z|0,B[2]=B[3]+P+M|0,B[3]=B[4]+q+O|0,B[4]=B[0]+W+L|0,B[0]=U},_doFinalize:function(){var E=this._data,I=E.words,_=this._nDataBytes*8,N=E.sigBytes*8;I[N>>>5]|=128<<24-N%32,I[(N+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E.sigBytes=(I.length+1)*4,this._process();for(var k=this._hash,B=k.words,A=0;A<5;A++){var p=B[A];B[A]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}return k},clone:function(){var E=l.clone.call(this);return E._hash=this._hash.clone(),E}});function S(E,I,_){return E^I^_}function D(E,I,_){return E&I|~E&_}function b(E,I,_){return(E|~I)^_}function v(E,I,_){return E&_|I&~_}function x(E,I,_){return E^(I|~_)}function T(E,I){return E<<I|E>>>32-I}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),n.RIPEMD160})}(eo)),eo.exports}var to={exports:{}},Fr;function no(){return Fr||(Fr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){(function(){var a=n,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,S=m.words,D=0;D<y;D++)g[D]^=1549556828,S[D]^=909522486;h.sigBytes=m.sigBytes=u,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 f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(to)),to.exports}var oo={exports:{}},zr;function zs(){return zr||(zr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Kn(),no())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,f=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),S=s.create([1]),D=g.words,b=S.words,v=h.keySize,x=h.iterations;D.length<v;){var T=m.update(u).finalize(S);m.reset();for(var E=T.words,I=E.length,_=T,N=1;N<x;N++){_=m.finalize(_),m.reset();for(var k=_.words,B=0;B<I;B++)E[B]^=k[B]}g.concat(T),b[0]++}return g.sigBytes=v*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),n.PBKDF2})}(oo)),oo.exports}var ao={exports:{}},Mr;function Dt(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Kn(),no())})(de,function(n){return function(){var a=n,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(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),S=g.words,D=h.keySize,b=h.iterations;S.length<D;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var v=1;v<b;v++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=D*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),n.EvpKDF})}(ao)),ao.exports}var ro={exports:{}},Pr;function qe(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Dt())})(de,function(n){n.lib.Cipher||function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(k,B){return this.create(this._ENC_XFORM_MODE,k,B)},createDecryptor:function(k,B){return this.create(this._DEC_XFORM_MODE,k,B)},init:function(k,B,A){this.cfg=this.cfg.extend(A),this._xformMode=k,this._key=B,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(B){return typeof B=="string"?N:E}return function(B){return{encrypt:function(A,p,w){return k(p).encrypt(B,A,p,w)},decrypt:function(A,p,w){return k(p).decrypt(B,A,p,w)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(k,B){return this.Encryptor.create(k,B)},createDecryptor:function(k,B){return this.Decryptor.create(k,B)},init:function(k,B){this._cipher=k,this._iv=B}}),S=m.CBC=function(){var k=g.extend();k.Encryptor=k.extend({processBlock:function(A,p){var w=this._cipher,C=w.blockSize;B.call(this,A,p,C),w.encryptBlock(A,p),this._prevBlock=A.slice(p,p+C)}}),k.Decryptor=k.extend({processBlock:function(A,p){var w=this._cipher,C=w.blockSize,R=A.slice(p,p+C);w.decryptBlock(A,p),B.call(this,A,p,C),this._prevBlock=R}});function B(A,p,w){var C,R=this._iv;R?(C=R,this._iv=a):C=this._prevBlock;for(var F=0;F<w;F++)A[p+F]^=C[F]}return k}(),D=r.pad={},b=D.Pkcs7={pad:function(k,B){for(var A=B*4,p=A-k.sigBytes%A,w=p<<24|p<<16|p<<8|p,C=[],R=0;R<p;R+=4)C.push(w);var F=l.create(C,p);k.concat(F)},unpad:function(k){var B=k.words[k.sigBytes-1>>>2]&255;k.sigBytes-=B}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:S,padding:b}),reset:function(){var k;h.reset.call(this);var B=this.cfg,A=B.iv,p=B.mode;this._xformMode==this._ENC_XFORM_MODE?k=p.createEncryptor:(k=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,A&&A.words):(this._mode=k.call(p,this,A&&A.words),this._mode.__creator=k)},_doProcessBlock:function(k,B){this._mode.processBlock(k,B)},_doFinalize:function(){var k,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),B.unpad(k)),k},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),x=r.format={},T=x.OpenSSL={stringify:function(k){var B,A=k.ciphertext,p=k.salt;return p?B=l.create([1398893684,1701076831]).concat(p).concat(A):B=A,B.toString(f)},parse:function(k){var B,A=f.parse(k),p=A.words;return p[0]==1398893684&&p[1]==1701076831&&(B=l.create(p.slice(2,4)),p.splice(0,4),A.sigBytes-=16),v.create({ciphertext:A,salt:B})}},E=i.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(k,B,A,p){p=this.cfg.extend(p);var w=k.createEncryptor(A,p),C=w.finalize(B),R=w.cfg;return v.create({ciphertext:C,key:A,iv:R.iv,algorithm:k,mode:R.mode,padding:R.padding,blockSize:k.blockSize,formatter:p.format})},decrypt:function(k,B,A,p){p=this.cfg.extend(p),B=this._parse(B,p.format);var w=k.createDecryptor(A,p).finalize(B.ciphertext);return w},_parse:function(k,B){return typeof k=="string"?B.parse(k,this):k}}),I=r.kdf={},_=I.OpenSSL={execute:function(k,B,A,p){p||(p=l.random(64/8));var w=u.create({keySize:B+A}).compute(k,p),C=l.create(w.words.slice(B),A*4);return w.sigBytes=B*4,v.create({key:w,iv:C,salt:p})}},N=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:_}),encrypt:function(k,B,A,p){p=this.cfg.extend(p);var w=p.kdf.execute(A,k.keySize,k.ivSize);p.iv=w.iv;var C=E.encrypt.call(this,k,B,w.key,p);return C.mixIn(w),C},decrypt:function(k,B,A,p){p=this.cfg.extend(p),B=this._parse(B,p.format);var w=p.kdf.execute(A,k.keySize,k.ivSize,B.salt);p.iv=w.iv;var C=E.decrypt.call(this,k,B,w.key,p);return C}})}()})}(ro)),ro.exports}var io={exports:{}},qr;function Ms(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.CFB=function(){var a=n.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,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(io)),io.exports}var lo={exports:{}},Hr;function Ps(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),n.mode.CTR})}(lo)),lo.exports}var so={exports:{}},Vr;function qs(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){/** @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,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}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,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(so)),so.exports}var co={exports:{}},jr;function Vs(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),t.mode.OFB})}(co)),co.exports}var fo={exports:{}},Wr;function Hs(){return Wr||(Wr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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})}(fo)),fo.exports}var uo={exports:{}},Ur;function js(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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})}(uo)),uo.exports}var ho={exports:{}},Gr;function Ws(){return Gr||(Gr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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})}(ho)),ho.exports}var go={exports:{}},$r;function Us(){return $r||($r=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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})}(go)),go.exports}var mo={exports:{}},Kr;function Gs(){return Kr||(Kr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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})}(mo)),mo.exports}var yo={exports:{}},Zr;function $s(){return Zr||(Zr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(de,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(yo)),yo.exports}var xo={exports:{}},Yr;function Ks(){return Yr||(Yr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),qe())})(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(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),t.format.Hex})}(xo)),xo.exports}var po={exports:{}},Qr;function Zs(){return Qr||(Qr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],C=[];(function(){for(var v=[],x=0;x<256;x++)x<128?v[x]=x<<1:v[x]=x<<1^283;for(var k=0,E=0,x=0;x<256;x++){var R=E^E<<1^E<<2^E<<3^E<<4;R=R>>>8^R&255^99,l[k]=R,d[R]=k;var O=v[k],N=v[O],S=v[N],w=v[R]*257^R*16843008;c[k]=w<<24|w>>>8,f[k]=w<<16|w>>>16,y[k]=w<<8|w>>>24,u[k]=w;var w=S*16843009^N*65537^O*257^k*16843008;h[R]=w<<24|w>>>8,m[R]=w<<16|w>>>16,g[R]=w<<8|w>>>24,C[R]=w,k?(k=O^v[v[v[S^O]]],E^=v[v[E]]):k=E=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,E=x.sigBytes/4,R=this._nRounds=E+6,O=(R+1)*4,N=this._keySchedule=[],S=0;S<O;S++)S<E?N[S]=k[S]:(v=N[S-1],S%E?E>6&&S%E==4&&(v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255]):(v=v<<8|v>>>24,v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255],v^=D[S/E|0]<<24),N[S]=N[S-E]^v);for(var w=this._invKeySchedule=[],B=0;B<O;B++){var S=O-B;if(B%4)var v=N[S];else var v=N[S-4];B<4||S<=4?w[B]=v:w[B]=h[l[v>>>24]]^m[l[v>>>16&255]]^g[l[v>>>8&255]]^C[l[v&255]]}}},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._keySchedule,c,f,y,u,l)},decryptBlock:function(v,x){var k=v[x+1];v[x+1]=v[x+3],v[x+3]=k,this._doCryptBlock(v,x,this._invKeySchedule,h,m,g,C,d);var k=v[x+1];v[x+1]=v[x+3],v[x+3]=k},_doCryptBlock:function(v,x,k,E,R,O,N,S){for(var w=this._nRounds,B=v[x]^k[0],b=v[x+1]^k[1],T=v[x+2]^k[2],A=v[x+3]^k[3],I=4,F=1;F<w;F++){var q=E[B>>>24]^R[b>>>16&255]^O[T>>>8&255]^N[A&255]^k[I++],W=E[b>>>24]^R[T>>>16&255]^O[A>>>8&255]^N[B&255]^k[I++],$=E[T>>>24]^R[A>>>16&255]^O[B>>>8&255]^N[b&255]^k[I++],z=E[A>>>24]^R[B>>>16&255]^O[b>>>8&255]^N[T&255]^k[I++];B=q,b=W,T=$,A=z}var q=(S[B>>>24]<<24|S[b>>>16&255]<<16|S[T>>>8&255]<<8|S[A&255])^k[I++],W=(S[b>>>24]<<24|S[T>>>16&255]<<16|S[A>>>8&255]<<8|S[B&255])^k[I++],$=(S[T>>>24]<<24|S[A>>>16&255]<<16|S[B>>>8&255]<<8|S[b&255])^k[I++],z=(S[A>>>24]<<24|S[B>>>16&255]<<16|S[b>>>8&255]<<8|S[T&255])^k[I++];v[x]=q,v[x+1]=W,v[x+2]=$,v[x+3]=z},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(po)),po.exports}var bo={exports:{}},Jr;function Ys(){return Jr||(Jr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var D=this._key,p=D.words,v=[],x=0;x<56;x++){var k=d[x]-1;v[x]=p[k>>>5]>>>31-k%32&1}for(var E=this._subKeys=[],R=0;R<16;R++){for(var O=E[R]=[],N=f[R],x=0;x<24;x++)O[x/6|0]|=v[(c[x]-1+N)%28]<<31-x%6,O[4+(x/6|0)]|=v[28+(c[x+24]-1+N)%28]<<31-x%6;O[0]=O[0]<<1|O[0]>>>31;for(var x=1;x<7;x++)O[x]=O[x]>>>(x-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var S=this._invSubKeys=[],x=0;x<16;x++)S[x]=E[15-x]},encryptBlock:function(D,p){this._doCryptBlock(D,p,this._subKeys)},decryptBlock:function(D,p){this._doCryptBlock(D,p,this._invSubKeys)},_doCryptBlock:function(D,p,v){this._lBlock=D[p],this._rBlock=D[p+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=v[x],E=this._lBlock,R=this._rBlock,O=0,N=0;N<8;N++)O|=y[N][((R^k[N])&u[N])>>>0];this._lBlock=R,this._rBlock=E^O}var S=this._lBlock;this._lBlock=this._rBlock,this._rBlock=S,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),D[p]=this._lBlock,D[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(D,p){var v=(this._lBlock>>>D^this._rBlock)&p;this._rBlock^=v,this._lBlock^=v<<D}function g(D,p){var v=(this._rBlock>>>D^this._lBlock)&p;this._lBlock^=v,this._rBlock^=v<<D}a.DES=s._createHelper(h);var C=l.TripleDES=s.extend({_doReset:function(){var D=this._key,p=D.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 v=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=h.createEncryptor(i.create(v)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(D,p){this._des1.encryptBlock(D,p),this._des2.decryptBlock(D,p),this._des3.encryptBlock(D,p)},decryptBlock:function(D,p){this._des3.decryptBlock(D,p),this._des2.encryptBlock(D,p),this._des1.decryptBlock(D,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(C)}(),t.TripleDES})}(bo)),bo.exports}var vo={exports:{}},Xr;function Qs(){return Xr||(Xr=1,function(e,o){(function(t,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(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 f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var C=m%u,D=y[C>>>2]>>>24-C%4*8&255;g=(g+h[m]+D)%256;var p=h[m];h[m]=h[g],h[g]=p}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(vo)),vo.exports}var So={exports:{}},ei;function Js(){return ei||(ei=1,function(e,o){(function(t,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],C=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)C[m]^=g[m+4&7];if(h){var D=h.words,p=D[0],v=D[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=x>>>16|k&4294901760,R=k<<16|x&65535;C[0]^=x,C[1]^=E,C[2]^=k,C[3]^=R,C[4]^=x,C[5]^=E,C[6]^=k,C[7]^=R;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,D=g>>>16,p=((C*C>>>17)+C*D>>>15)+D*D,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=p^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),t.Rabbit})}(So)),So.exports}var Co={exports:{}},ti;function Xs(){return ti||(ti=1,function(e,o){(function(t,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var C=0;C<4;C++)y.call(this);for(var C=0;C<8;C++)g[C]^=m[C+4&7];if(h){var D=h.words,p=D[0],v=D[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=x>>>16|k&4294901760,R=k<<16|x&65535;g[0]^=x,g[1]^=E,g[2]^=k,g[3]^=R,g[4]^=x,g[5]^=E,g[6]^=k,g[7]^=R;for(var C=0;C<4;C++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,D=g>>>16,p=((C*C>>>17)+C*D>>>15)+D*D,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=p^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),t.RabbitLegacy})}(Co)),Co.exports}(function(e,o){(function(t,a,r){e.exports=a(ye(),cn(),Rs(),Is(),zt(),_s(),Mt(),Kn(),Dr(),Os(),_r(),Ls(),Ns(),Fs(),no(),zs(),Dt(),qe(),Ms(),Ps(),qs(),Vs(),Hs(),js(),Ws(),Us(),Gs(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs())})(de,function(t){return t})})(br);var ec=br.exports;const Xe=pr(ec);var tc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return tc.charAt(e)}function nc(e,o){return e&o}function dn(e,o){return e|o}function ni(e,o){return e^o}function oi(e,o){return e&~o}function oc(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 ac(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ai="=";function fn(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+=ai;return a}function ri(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=ai;++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,rc={decode:function(e){var o;if(qt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
74
|
-
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,
|
|
75
|
-
`}r&&(a=a-256);for(var d=new en(a),c=o+1;c<
|
|
76
|
-
`,l="",d=o+1;d<
|
|
77
|
-
`;a/=2,r>a&&(
|
|
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 Ao?t=o:t=new Ao(o,0);var a=new Ao(t),r=new li(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;t.pos<u;)y[y.length]=e.decode(t);if(t.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(t);if(h.tag.isEOC())break;y[y.length]=h}i=s-t.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)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 f=0;f<d.length;++f)if(d[f].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}(),li=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 en;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,cc=0xdeadbeefcafe,si=(cc&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],dc=(1<<26)/Ge[Ge.length-1],ce=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)+hn(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 ci(t):a=new di(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,nc,t),t},e.prototype.or=function(o){var t=ue();return this.bitwiseTo(o,dn,t),t},e.prototype.xor=function(o){var t=ue();return this.bitwiseTo(o,ni,t),t},e.prototype.andNot=function(o){var t=ue();return this.bitwiseTo(o,oi,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+oc(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+=ac(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,dn)},e.prototype.clearBit=function(o){return this.changeBit(o,oi)},e.prototype.flipBit=function(o){return this.changeBit(o,ni)},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 ci(t):t.isEven()?s=new uc(t):s=new di(t);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=ue();for(s.sqrTo(l[1],y);d<=f;)l[d]=ue(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=ue(),C;for(a=hn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(C=i,i=g,g=C),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),C=i,i=g,g=C,--a<0&&(a=this.DB-1,--u)}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 fc)},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<dc;)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:ui(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-hn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,C=a.t,D=C-f,p=t??ue();for(s.dlShiftTo(D,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(f,p),p.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--D>=0;){var v=a[--C]==y?this.DM:Math.floor(a[C]*h+(a[C-1]+g)*m);if((a[C]+=s.am(0,v,a,D,0,f))<v)for(s.dlShiftTo(D,p),a.subTo(p,a);a[C]<--v;)a.subTo(p,a)}t!=null&&(a.drShiftTo(f,t),l!=d&&e.ZERO.subTo(t,t)),a.t=f,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=hn(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=ui(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),dn,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),dn,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}(),fc=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}(),ci=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}(),di=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(ce.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}(),uc=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),ce.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 ce(null)}function Re(e,o){return new ce(e,o)}var fi=typeof navigator<"u";fi&&si&&navigator.appName=="Microsoft Internet Explorer"?(ce.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,d=t>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},vt=30):fi&&si&&navigator.appName!="Netscape"?(ce.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):(ce.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,d=t>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},vt=28),ce.prototype.DB=vt,ce.prototype.DM=(1<<vt)-1,ce.prototype.DV=1<<vt;var ko=52;ce.prototype.FV=Math.pow(2,ko),ce.prototype.F1=ko-vt,ce.prototype.F2=2*vt-ko;var un=[],jt,rt;for(jt="0".charCodeAt(0),rt=0;rt<=9;++rt)un[jt++]=rt;for(jt="a".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;for(jt="A".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;function ui(e,o){var t=un[e.charCodeAt(o)];return t??-1}function St(e){var o=ue();return o.fromInt(e),o}function hn(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}ce.ZERO=St(0),ce.ONE=St(1);var hc=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 gc(){return new hc}var hi=256,gn,Ct=null,ct;if(Ct==null){Ct=[],ct=0;var mn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var To=new Uint32Array(256);for(window.crypto.getRandomValues(To),mn=0;mn<To.length;++mn)Ct[ct++]=To[mn]&255}var yn=0,xn=function(e){if(yn=yn||0,yn>=256||ct>=hi){window.removeEventListener?window.removeEventListener("mousemove",xn,!1):window.detachEvent&&window.detachEvent("onmousemove",xn);return}try{var o=e.x+e.y;Ct[ct++]=o&255,yn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xn,!1):window.attachEvent&&window.attachEvent("onmousemove",xn))}function mc(){if(gn==null){for(gn=gc();ct<hi;){var e=Math.floor(65536*Math.random());Ct[ct++]=e&255}for(gn.init(Ct),ct=0;ct<Ct.length;++ct)Ct[ct]=0;ct=0}return gn.next()}var Bo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=mc()},e}();function yc(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 xc(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 Bo,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 ce(t)}var pc=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=xc(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 Bo,r=o>>1;this.e=parseInt(t,16);for(var i=new ce(t,16);;){for(;this.p=new ce(o-r,1,a),!(this.p.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ce(r,1,a),!(this.q.subtract(ce.ONE).gcd(i).compareTo(ce.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(ce.ONE),d=this.q.subtract(ce.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ce.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:bc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Bo,i=o>>1;this.e=parseInt(t,16);var s=new ce(t,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ce.ONE),m=l.q.subtract(ce.ONE),g=h.multiply(m);g.gcd(s).compareTo(ce.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,t,a){var r=vc(a),i=r+t(o).toString(),s=yc(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=Sc(s);return l==a(o).toString()},e}();function bc(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 pn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function vc(e){return pn[e]||""}function Sc(e){for(var o in pn)if(pn.hasOwnProperty(o)){var t=pn[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
71
|
+
*/return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}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,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(so)),so.exports}var co={exports:{}},jr;function Hs(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(co)),co.exports}var fo={exports:{}},Wr;function Vs(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.ECB=function(){var a=n.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}(),n.mode.ECB})}(fo)),fo.exports}var uo={exports:{}},Ur;function js(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.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}},n.pad.Ansix923})}(uo)),uo.exports}var ho={exports:{}},Gr;function Ws(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Iso10126})}(ho)),ho.exports}var go={exports:{}},$r;function Us(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.Iso97971={pad:function(a,r){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,r)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(go)),go.exports}var mo={exports:{}},Kr;function Gs(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.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}}},n.pad.ZeroPadding})}(mo)),mo.exports}var yo={exports:{}},Zr;function $s(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(yo)),yo.exports}var xo={exports:{}},Yr;function Ks(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),n.format.Hex})}(xo)),xo.exports}var po={exports:{}},Qr;function Zs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],S=[];(function(){for(var v=[],x=0;x<256;x++)x<128?v[x]=x<<1:v[x]=x<<1^283;for(var T=0,E=0,x=0;x<256;x++){var I=E^E<<1^E<<2^E<<3^E<<4;I=I>>>8^I&255^99,l[T]=I,d[I]=T;var _=v[T],N=v[_],k=v[N],B=v[I]*257^I*16843008;c[T]=B<<24|B>>>8,f[T]=B<<16|B>>>16,y[T]=B<<8|B>>>24,u[T]=B;var B=k*16843009^N*65537^_*257^T*16843008;h[I]=B<<24|B>>>8,m[I]=B<<16|B>>>16,g[I]=B<<8|B>>>24,S[I]=B,T?(T=_^v[v[v[k^_]]],E^=v[v[E]]):T=E=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,T=x.words,E=x.sigBytes/4,I=this._nRounds=E+6,_=(I+1)*4,N=this._keySchedule=[],k=0;k<_;k++)k<E?N[k]=T[k]:(v=N[k-1],k%E?E>6&&k%E==4&&(v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255]):(v=v<<8|v>>>24,v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255],v^=D[k/E|0]<<24),N[k]=N[k-E]^v);for(var B=this._invKeySchedule=[],A=0;A<_;A++){var k=_-A;if(A%4)var v=N[k];else var v=N[k-4];A<4||k<=4?B[A]=v:B[A]=h[l[v>>>24]]^m[l[v>>>16&255]]^g[l[v>>>8&255]]^S[l[v&255]]}}},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._keySchedule,c,f,y,u,l)},decryptBlock:function(v,x){var T=v[x+1];v[x+1]=v[x+3],v[x+3]=T,this._doCryptBlock(v,x,this._invKeySchedule,h,m,g,S,d);var T=v[x+1];v[x+1]=v[x+3],v[x+3]=T},_doCryptBlock:function(v,x,T,E,I,_,N,k){for(var B=this._nRounds,A=v[x]^T[0],p=v[x+1]^T[1],w=v[x+2]^T[2],C=v[x+3]^T[3],R=4,F=1;F<B;F++){var q=E[A>>>24]^I[p>>>16&255]^_[w>>>8&255]^N[C&255]^T[R++],W=E[p>>>24]^I[w>>>16&255]^_[C>>>8&255]^N[A&255]^T[R++],$=E[w>>>24]^I[C>>>16&255]^_[A>>>8&255]^N[p&255]^T[R++],z=E[C>>>24]^I[A>>>16&255]^_[p>>>8&255]^N[w&255]^T[R++];A=q,p=W,w=$,C=z}var q=(k[A>>>24]<<24|k[p>>>16&255]<<16|k[w>>>8&255]<<8|k[C&255])^T[R++],W=(k[p>>>24]<<24|k[w>>>16&255]<<16|k[C>>>8&255]<<8|k[A&255])^T[R++],$=(k[w>>>24]<<24|k[C>>>16&255]<<16|k[A>>>8&255]<<8|k[p&255])^T[R++],z=(k[C>>>24]<<24|k[A>>>16&255]<<16|k[p>>>8&255]<<8|k[w&255])^T[R++];v[x]=q,v[x+1]=W,v[x+2]=$,v[x+3]=z},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(po)),po.exports}var bo={exports:{}},Jr;function Ys(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var D=this._key,b=D.words,v=[],x=0;x<56;x++){var T=d[x]-1;v[x]=b[T>>>5]>>>31-T%32&1}for(var E=this._subKeys=[],I=0;I<16;I++){for(var _=E[I]=[],N=f[I],x=0;x<24;x++)_[x/6|0]|=v[(c[x]-1+N)%28]<<31-x%6,_[4+(x/6|0)]|=v[28+(c[x+24]-1+N)%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 k=this._invSubKeys=[],x=0;x<16;x++)k[x]=E[15-x]},encryptBlock:function(D,b){this._doCryptBlock(D,b,this._subKeys)},decryptBlock:function(D,b){this._doCryptBlock(D,b,this._invSubKeys)},_doCryptBlock:function(D,b,v){this._lBlock=D[b],this._rBlock=D[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var T=v[x],E=this._lBlock,I=this._rBlock,_=0,N=0;N<8;N++)_|=y[N][((I^T[N])&u[N])>>>0];this._lBlock=I,this._rBlock=E^_}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),D[b]=this._lBlock,D[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(D,b){var v=(this._lBlock>>>D^this._rBlock)&b;this._rBlock^=v,this._lBlock^=v<<D}function g(D,b){var v=(this._rBlock>>>D^this._lBlock)&b;this._lBlock^=v,this._rBlock^=v<<D}a.DES=s._createHelper(h);var S=l.TripleDES=s.extend({_doReset:function(){var D=this._key,b=D.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),T=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(v)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(T))},encryptBlock:function(D,b){this._des1.encryptBlock(D,b),this._des2.decryptBlock(D,b),this._des3.encryptBlock(D,b)},decryptBlock:function(D,b){this._des3.decryptBlock(D,b),this._des2.encryptBlock(D,b),this._des1.decryptBlock(D,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(bo)),bo.exports}var vo={exports:{}},Xr;function Qs(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var S=m%u,D=y[S>>>2]>>>24-S%4*8&255;g=(g+h[m]+D)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(vo)),vo.exports}var So={exports:{}},ei;function Js(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],S=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)S[m]^=g[m+4&7];if(h){var D=h.words,b=D[0],v=D[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=x>>>16|T&4294901760,I=T<<16|x&65535;S[0]^=x,S[1]^=E,S[2]^=T,S[3]^=I,S[4]^=x,S[5]^=E,S[6]^=T,S[7]^=I;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],S=g&65535,D=g>>>16,b=((S*S>>>17)+S*D>>>15)+D*D,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),n.Rabbit})}(So)),So.exports}var Co={exports:{}},ti;function Xs(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)g[S]^=m[S+4&7];if(h){var D=h.words,b=D[0],v=D[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,E=x>>>16|T&4294901760,I=T<<16|x&65535;g[0]^=x,g[1]^=E,g[2]^=T,g[3]^=I,g[4]^=x,g[5]^=E,g[6]^=T,g[7]^=I;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],S=g&65535,D=g>>>16,b=((S*S>>>17)+S*D>>>15)+D*D,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),n.RabbitLegacy})}(Co)),Co.exports}(function(e,o){(function(n,a,r){e.exports=a(ye(),cn(),Is(),Rs(),zt(),Os(),Mt(),Kn(),Dr(),_s(),Or(),Ls(),Ns(),Fs(),no(),zs(),Dt(),qe(),Ms(),Ps(),qs(),Hs(),Vs(),js(),Ws(),Us(),Gs(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs())})(de,function(n){return n})})(br);var ec=br.exports;const Xe=pr(ec);var tc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return tc.charAt(e)}function nc(e,o){return e&o}function dn(e,o){return e|o}function ni(e,o){return e^o}function oi(e,o){return e&~o}function oc(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 ac(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ai="=";function fn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(n>>6)+Pt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(n>>2)+Pt.charAt((n&3)<<4));(a.length&3)>0;)a+=ai;return a}function ri(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=ai;++n){var i=Pt.indexOf(e.charAt(n));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,rc={decode:function(e){var o;if(qt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)qt[n.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}},It,wo={decode:function(e){var o;if(It===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(It=Object.create(null),o=0;o<64;++o)It[n.charAt(o)]=o;for(It["-"]=62,It._=63,o=0;o<a.length;++o)It[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=It[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=wo.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 wo.decode(e)}},Ht=1e13,en=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+n,s<Ht?n=0:(n=0|s/Ht,s-=n*Ht),a[i]=s;n>0&&(a[i]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,r,i;for(r=0;r<a;++r)i=n[r]-o,i<0?(i+=Ht,o=1):o=0,n[r]=i;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),r=n.length-2;r>=0;--r)a+=(Ht+n[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*Ht+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),ii="…",ic=/^(\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)?)?$/,lc=/^(\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)+ii),e}var Ao=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}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,n,a){for(var r="",i=o;i<n;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
|
+
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",r=o;r<n;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",r=o;r<n;){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,n){for(var a="",r,i,s=o;s<n;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,n,a){var r=this.parseStringISO(o,n),i=(a?ic:lc).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,n){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<n;)a=this.get(o);if(s=n-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
+
`}r&&(a=a-256);for(var d=new en(a),c=o+1;c<n;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,n,a){for(var r=this.get(o),i=(n-o-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),f=d==n-1?r:0,y=7;y>=f;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Vt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Vt(this.parseStringISO(o,n),a);var r=n-o,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(n=o+a);for(var s=o;s<n;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=ii),i},e.prototype.parseOID=function(o,n,a){for(var r="",i=new en,s=0,l=o;l<n;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof en)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 en,s=0}}return s>0&&(r+=".incomplete"),r},e}(),sc=function(){function e(o,n,a,r,i){if(!(r instanceof li))throw new Error("Invalid tag value.");this.stream=o,this.header=n,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 n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Vt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Vt(this.stream.parseStringISO(n,n+a),o);case 30:return Vt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+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 n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
|
|
78
|
+
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)n+=this.sub[a].toPrettyString(o)}return n},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 n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var r=0;r<a;++r)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Ao?n=o:n=new Ao(o,0);var a=new Ao(n),r=new li(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;n.pos<u;)y[y.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(n);if(h.tag.isEOC())break;y[y.length]=h}i=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].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);n.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),li=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new en;do n=o.get(),a.mulAdd(128,n&127);while(n&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}(),St,cc=0xdeadbeefcafe,si=(cc&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],dc=(1<<26)/Ge[Ge.length-1],ce=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=mt(r));l>=0;)d<n?(r=(this[l]&(1<<d)-1)<<n-d,r|=this[--l]>>(d+=this.DB-n)):(r=this[l]>>(d-=n)&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 n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+hn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=ue();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new ci(n):a=new di(n),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,n=[];n[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&&(n[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)&&(n[i++]=r);return n},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 n=ue();return this.bitwiseTo(o,nc,n),n},e.prototype.or=function(o){var n=ue();return this.bitwiseTo(o,dn,n),n},e.prototype.xor=function(o){var n=ue();return this.bitwiseTo(o,ni,n),n},e.prototype.andNot=function(o){var n=ue();return this.bitwiseTo(o,oi,n),n},e.prototype.not=function(){for(var o=ue(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=ue();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=ue();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+oc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=ac(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,dn)},e.prototype.clearBit=function(o){return this.changeBit(o,oi)},e.prototype.flipBit=function(o){return this.changeBit(o,ni)},e.prototype.add=function(o){var n=ue();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=ue();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=ue();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=ue();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=ue();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=ue(),a=ue();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=Ct(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 ci(n):n.isEven()?s=new uc(n):s=new di(n);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=ue();for(s.sqrTo(l[1],y);d<=f;)l[d]=ue(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=ue(),S;for(a=hn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(S=i,i=g,g=S),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),S=i,i=g,g=S,--a<0&&(a=this.DB-1,--u)}return s.revert(i)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=Ct(1),s=Ct(0),l=Ct(0),d=Ct(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!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),n?((!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),n&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),n&&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 fc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var r=n;n=a,a=r}var i=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(i<s&&(s=i),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Ge[Ge.length-1]){for(n=0;n<Ge.length;++n)if(a[0]==Ge[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ge.length;){for(var r=Ge[n],i=n+1;i<Ge.length&&r<dc;)r*=Ge[i++];for(r=a.modInt(r);n<i;)if(r%Ge[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];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,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);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:ui(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,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){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)n[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;n[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<i,n[l-a]=this[l]>>r;r>0&&(n[this.t-a-1]|=(this.s&s)<<i),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],n[a++]=r&this.DM,r>>=this.DB;r-=o.s}n.s=r<0?-1:0,r<-1?n[a++]=this.DV+r:r>0&&(n[a++]=r),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),r=o.abs(),i=a.t;for(n.t=i+r.t;--i>=0;)n[i]=0;for(i=0;i<r.t;++i)n[i+a.t]=a.am(0,r[i],n,i,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var r=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,r,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-hn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,S=a.t,D=S-f,b=n??ue();for(s.dlShiftTo(D,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--D>=0;){var v=a[--S]==y?this.DM:Math.floor(a[S]*h+(a[S-1]+g)*m);if((a[S]+=s.am(0,v,a,D,0,f))<v)for(s.dlShiftTo(D,b),a.subTo(b,a);a[S]<--v;)a.subTo(b,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,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 n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=ue(),r=ue(),i=n.convert(this),s=hn(o)-1;for(i.copyTo(a);--s>=0;)if(n.sqrTo(a,r),(o&1<<s)>0)n.mulTo(r,i,a);else{var l=a;a=r,r=l}return n.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 n=this.chunkSize(o),a=Math.pow(o,n),r=Ct(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,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),r=Math.pow(n,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=ui(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)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,n.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,n,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=n(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=n(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=n(i,o[r]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],n[a++]=r&this.DM,r>>=this.DB;r+=o.s}n.s=r<0?-1:0,r>0?n[a++]=r:r<-1&&(n[a++]=this.DV+r),n.t=a,n.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,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var r=Math.min(this.t+o.t,n);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,n);r<i;++r)this.am(0,o[r],a,r,0,n-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var r=a.t=this.t+o.t-n;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(n-this.t,0);r<o.t;++r)a[this.t+r-n]=this.am(n-r,o[r],a,0,0,this.t+r-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(n*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var r=n.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(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=ue();return this.squareTo(o),o},e.prototype.gcda=function(o,n){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){n(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(){n(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,r){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,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(n)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),fc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),ci=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,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),di=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 n=ue();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ce.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=ue();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,r=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,r,o,n,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,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),uc=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),ce.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 n=ue();return o.copyTo(n),this.reduce(n),n},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,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function ue(){return new ce(null)}function Ie(e,o){return new ce(e,o)}var fi=typeof navigator<"u";fi&&si&&navigator.appName=="Microsoft Internet Explorer"?(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},St=30):fi&&si&&navigator.appName!="Netscape"?(ce.prototype.am=function(o,n,a,r,i,s){for(;--s>=0;){var l=n*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},St=26):(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},St=28),ce.prototype.DB=St,ce.prototype.DM=(1<<St)-1,ce.prototype.DV=1<<St;var ko=52;ce.prototype.FV=Math.pow(2,ko),ce.prototype.F1=ko-St,ce.prototype.F2=2*St-ko;var un=[],jt,rt;for(jt="0".charCodeAt(0),rt=0;rt<=9;++rt)un[jt++]=rt;for(jt="a".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;for(jt="A".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;function ui(e,o){var n=un[e.charCodeAt(o)];return n??-1}function Ct(e){var o=ue();return o.fromInt(e),o}function hn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ce.ZERO=Ct(0),ce.ONE=Ct(1);var hc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,r;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,r=this.S[n],this.S[n]=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 gc(){return new hc}var hi=256,gn,wt=null,ct;if(wt==null){wt=[],ct=0;var mn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var To=new Uint32Array(256);for(window.crypto.getRandomValues(To),mn=0;mn<To.length;++mn)wt[ct++]=To[mn]&255}var yn=0,xn=function(e){if(yn=yn||0,yn>=256||ct>=hi){window.removeEventListener?window.removeEventListener("mousemove",xn,!1):window.detachEvent&&window.detachEvent("onmousemove",xn);return}try{var o=e.x+e.y;wt[ct++]=o&255,yn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xn,!1):window.attachEvent&&window.attachEvent("onmousemove",xn))}function mc(){if(gn==null){for(gn=gc();ct<hi;){var e=Math.floor(65536*Math.random());wt[ct++]=e&255}for(gn.init(wt),ct=0;ct<wt.length;++ct)wt[ct]=0;ct=0}return gn.next()}var Bo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=mc()},e}();function yc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",r=0;r<n;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ie(i,16)}function xc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?n[--o]=r:r>127&&r<2048?(n[--o]=r&63|128,n[--o]=r>>6|192):(n[--o]=r&63|128,n[--o]=r>>6&63|128,n[--o]=r>>12|224)}n[--o]=0;for(var i=new Bo,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ce(n)}var pc=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 n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=xc(o,n);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<n*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16),this.d=Ie(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,r,i,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16),this.d=Ie(a,16),this.p=Ie(r,16),this.q=Ie(i,16),this.dmp1=Ie(s,16),this.dmq1=Ie(l,16),this.coeff=Ie(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Bo,r=o>>1;this.e=parseInt(n,16);for(var i=new ce(n,16);;){for(;this.p=new ce(o-r,1,a),!(this.p.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ce(r,1,a),!(this.q.subtract(ce.ONE).gcd(i).compareTo(ce.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(ce.ONE),d=this.q.subtract(ce.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ce.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 n=Ie(o,16),a=this.doPrivate(n);return a==null?null:bc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Bo,i=o>>1;this.e=parseInt(n,16);var s=new ce(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ce.ONE),m=l.q.subtract(ce.ONE),g=h.multiply(m);g.gcd(s).compareTo(ce.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=vc(a),i=r+n(o).toString(),s=yc(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,n,a){var r=Ie(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Sc(s);return l==a(o).toString()},e}();function bc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var r="";++a<n.length;){var i=n[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|n[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return r}var pn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function vc(e){return pn[e]||""}function Sc(e){for(var o in pn)if(pn.hasOwnProperty(o)){var n=pn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
82
82
|
version: 2.9.0
|
|
83
|
-
*/var
|
|
83
|
+
*/var _e={};_e.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var r;for(r in n)e.prototype[r]=n[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],f=d[c];typeof f=="function"&&f!=Object.prototype[c]&&(l[c]=f)}})}catch{}i(e.prototype,n)}}};/**
|
|
84
84
|
* @fileOverview
|
|
85
85
|
* @name asn1-1.0.js
|
|
86
86
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var 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 ce(r,16),l=s.xor(e).add(ce.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,d=t.DERObjectIdentifier,c=t.DEREnumerated,f=t.DERUTF8String,y=t.DERNumericString,u=t.DERPrintableString,h=t.DERTeletexString,m=t.DERIA5String,g=t.DERUTCTime,C=t.DERGeneralizedTime,D=t.DERSequence,p=t.DERSet,v=t.DERTaggedObject,x=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var E=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":")==-1)throw"undefined key: "+E;if(E=="bool")return new a(e[E]);if(E=="int")return new r(e[E]);if(E=="bitstr")return new i(e[E]);if(E=="octstr")return new s(e[E]);if(E=="null")return new l(e[E]);if(E=="oid")return new d(e[E]);if(E=="enum")return new c(e[E]);if(E=="utf8str")return new f(e[E]);if(E=="numstr")return new y(e[E]);if(E=="prnstr")return new u(e[E]);if(E=="telstr")return new h(e[E]);if(E=="ia5str")return new m(e[E]);if(E=="utctime")return new g(e[E]);if(E=="gentime")return new C(e[E]);if(E=="seq"){for(var R=e[E],O=[],N=0;N<R.length;N++){var S=x(R[N]);O.push(S)}return new D({array:O})}if(E=="set"){for(var R=e[E],O=[],N=0;N<R.length;N++){var S=x(R[N]);O.push(S)}return new p({array:O})}if(E=="tag"){var w=e[E];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var B=x(w[2]);return new v({tag:w[0],explicit:w[1],obj:B})}else{var b={};if(w.explicit!==void 0&&(b.explicit=w.explicit),w.tag!==void 0&&(b.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return b.obj=x(w.obj),new v(b)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.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 ce(i,2);r=r+"."+c.toString(10),i=""}}return r},G.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 ce(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.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},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var 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""}},G.asn1.DERAbstractString=function(e){G.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))},Oe.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.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),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"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}},Oe.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.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)},Oe.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Oe.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new ce(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))},Oe.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Oe.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Oe.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Oe.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.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 ce(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 f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=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=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Oe.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new ce(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))},Oe.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Oe.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Oe.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Oe.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Oe.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Oe.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(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))},Oe.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(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))},Oe.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Oe.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var 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)},Oe.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(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)))},Oe.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Cc=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)}}(),gi=function(e){Cc(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)?rc.decode(t):wo.unarmor(t),l=sc.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 f=l.sub[5].getHexStringValue();this.q=Re(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Re(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Re(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Re(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Re(a,16),r=g.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 G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return fn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return fn(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
91
|
-
?)|(.{1,`+a+"})";return
|
|
92
|
-
`)},o.prototype.getPrivateKey=function(){var
|
|
93
|
-
`;return
|
|
94
|
-
`,
|
|
95
|
-
`;return
|
|
96
|
-
`,
|
|
97
|
-
`),Do=(e,o=2)=>{const
|
|
90
|
+
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.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 n=o.substr(1),a=n.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 ce(r,16),l=s.xor(e).add(ce.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,f=n.DERUTF8String,y=n.DERNumericString,u=n.DERPrintableString,h=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,S=n.DERGeneralizedTime,D=n.DERSequence,b=n.DERSet,v=n.DERTaggedObject,x=n.ASN1Util.newObject,T=Object.keys(e);if(T.length!=1)throw"key of param shall be only one.";var E=T[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":")==-1)throw"undefined key: "+E;if(E=="bool")return new a(e[E]);if(E=="int")return new r(e[E]);if(E=="bitstr")return new i(e[E]);if(E=="octstr")return new s(e[E]);if(E=="null")return new l(e[E]);if(E=="oid")return new d(e[E]);if(E=="enum")return new c(e[E]);if(E=="utf8str")return new f(e[E]);if(E=="numstr")return new y(e[E]);if(E=="prnstr")return new u(e[E]);if(E=="telstr")return new h(e[E]);if(E=="ia5str")return new m(e[E]);if(E=="utctime")return new g(e[E]);if(E=="gentime")return new S(e[E]);if(E=="seq"){for(var I=e[E],_=[],N=0;N<I.length;N++){var k=x(I[N]);_.push(k)}return new D({array:_})}if(E=="set"){for(var I=e[E],_=[],N=0;N<I.length;N++){var k=x(I[N]);_.push(k)}return new b({array:_})}if(E=="tag"){var B=e[E];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var A=x(B[2]);return new v({tag:B[0],explicit:B[1],obj:A})}else{var p={};if(B.explicit!==void 0&&(p.explicit=B.explicit),B.tag!==void 0&&(p.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return p.obj=x(B.obj),new v(p)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,r=n+"."+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 ce(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ce(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.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+=n(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.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)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(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(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());n=="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),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-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,n,a,r,i,s){var l=new Date(Date.UTC(o,n-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},_e.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.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(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},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(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var r="0"+n;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)n+="0";for(var i="",r=0;r<n.length-1;r+=8){var s=n.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(n){for(var a="",r=0;r<n.length;r++)n[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),r=0;r<n;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(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},n=function(a){var r="",i=new ce(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 f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=n(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},_e.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},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(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(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(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(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(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},_e.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];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(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,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(/^../,n),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(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Cc=globalThis&&globalThis.__extends||function(){var e=function(o,n){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,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),gi=function(e){Cc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(n)?rc.decode(n):wo.unarmor(n),l=sc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ie(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ie(d,16);var c=l.sub[4].getHexStringValue();this.p=Ie(c,16);var f=l.sub[5].getHexStringValue();this.q=Ie(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ie(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Ie(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Ie(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Ie(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ie(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 n={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return fn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return fn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
91
|
+
?)|(.{1,`+a+"})";return n.match(RegExp(r,"g")).join(`
|
|
92
|
+
`)},o.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
|
+
`;return n+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
|
+
`,n+="-----END RSA PRIVATE KEY-----",n},o.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|
95
|
+
`;return n+=o.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
+
`,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(pc),Eo,wc=typeof process<"u"?(Eo=process.env)===null||Eo===void 0?void 0:Eo.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 gi(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(ri(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return fn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return fn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,ri(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new gi,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=wc,e}();const mi=new Ac,Wt=kc();function kc(){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 yi=Xe.enc.Utf8.parse("ABCDEF1234123412");function Tc(e,o){o=o||Wt;const n=Xe.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Xe.enc.Utf8.parse(e);break;case"object":a=Xe.enc.Utf8.parse(JSON.stringify(e));break;default:a=Xe.enc.Utf8.parse(e.toString())}return Xe.AES.encrypt(a,n,{iv:yi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding}).toString()}function xi(e,o){o=o||Wt;const n=Xe.enc.Utf8.parse(o),a=Xe.AES.decrypt(e,n,{iv:yi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding});return Xe.enc.Utf8.stringify(a).toString()}function Bc(e){mi.setPublicKey(e)}function Ec(e){return mi.encrypt(e)}function pi(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of n)if(new RegExp(a).test(e))return!0;return!1}function Dc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n,"string"):["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n)}function Ut(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}Bc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Ec(Wt);return{c:Tc(n,Wt),p:r}}window.getEncryptParam=Ut;function Ic(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&pi(e.url)&&(e.data instanceof FormData?e.data=Rc(e.data):Dc(e))}function Rc(e){const o=e.entries(),n=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?n.append(s,l):a[s]=l}const r=Ut(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Wt,window.xhaesDecrypt=xi;function bi(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&pi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=xi(e.data.data.content,Wt);e.data=JSON.parse(a)}}const vi=window.config.requestErrorTip,dt=jl.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),Ic(e),e},e=>Promise.reject(e)),dt.interceptors.response.use(e=>{var o,n,a;return vi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),bi(e),e},e=>{if(bi(e==null?void 0:e.response),vi)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Oc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Do=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},_c=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},bn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Lc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Si=(e,o)=>lt(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 n=o.length;for(let a=0;a<n;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Gt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),tn=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...n,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},it=(e,o)=>{let n=!0;const a=tn(e);return a!=null&&a.length&&(n=a.map(r=>o[r.id]).every(r=>r)),n},nn=(e,o)=>{var s;const n=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: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 f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=vn(f,t)),e=e.replace(c,f)}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(Pe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=n.inject(Te,{getGlobalModel:m=>{}}),y=De(t),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:k,value:E}=x;if(typeof E=="object"&&E!=null&&E.id){let R={};const{id:O,prop:N,propKey:S,operate:w}=E;O==="THIS"?R=f(n.unref(c))||{}:R=f(O)||{};const B=n.unref(R[N]);let b=null;if(["date","range"].some(A=>ft(R==null?void 0:R.type,A))){const{value:A,type:I,mode:F}=w||{};if(A&&I&&F)switch(I){case"add":b=n.unref(B).add(A,F);break;case"minus":b=n.unref(B).subtract(A,F);break}b==null&&(b=n.unref(B)),b=(b==null?void 0:b.format((S==null?void 0:S.trim())||R.format))||""}else Object.prototype.toString.call(B)==="[object Object]"?S?b=B[S]:b=N?B[N]:B:ft(R==null?void 0:R.type,"select")&&n.unref(B)&&N&&Array.isArray(n.unref(B))?b=n.unref(B).map(A=>Object.prototype.hasOwnProperty.call(A,N)?A[N]:A):b=B;g[k]=b}else typeof E=="string"&&(g[k]=De(E))}),g={...window.config.requestParams,...m,...g};let C="";const D=Object.keys(g),p=D.length-1,v=D.length;D.forEach((x,k)=>{let E=g[x];Object.prototype.toString.call(E)==="[object Object]"&&(E=JSON.stringify(E)),k===0?v!==1?C+=`?${x}=${E}&`:C+=`?${x}=${E}`:k===p?C+=`${x}=${E}`:C+=`${x}=${E}&`});try{const x=["get","head"].includes(a),k={};let E=x?y+C:y;g.dataSqlId&&!E.includes("dataSqlId")&&(E+=`${E.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(k.signal=g.signal);const R=await dt({baseURL:n.unref(d)||"",url:E,method:a,headers:r,data:x?{}:g,...k});return o(R),R}catch(x){console.error(x)}},h=l&&setInterval(u,s*1e3);return n.onUnmounted(()=>{clearInterval(h)}),u},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 y=[];for(let h=0;h<d;h++){const m=r[h],{label:g,value:C}=m,D={...e[0],value:e[0][C]};i.add(g),y.push(D)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:C,value:D}=g,p={...u,value:u[D]||0};if(s.has(C)){const v=s.get(C);v.push(p),s.set(C,v)}else s.set(C,[p])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},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},Ci=(e,o)=>{const t=`${xr}/preview?pageId=${o}`,a=`${xr}/${o}`;return e==="preview"?t:a},lt=(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},et=(e={})=>{const{requestToken:o}=n.inject(hr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(bt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=n.inject(Te,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:C}=h;let D="";const{pageMode:p="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,k=null;if(p==="design"){const E=v==null?void 0:v.find(b=>b.id===C);if(!E)return[];const{interval:R,intervalUnit:O,startTime:N,endTime:S,operate:w,useCurrentTime:B}=E||{};if(B&&(x=be().subtract(R,O),k=be()),N&&(x=be(N)),S&&(k=be(S)),w){const{type:b,value:T,mode:A}=w;switch(b){case"add":x=x&&x.add(T,A),k=k&&k.add(T,A);break;case"minus":x=x&&x.subtract(T,A),k=k&&k.subtract(T,A)}}}else{const E=a(C)||{};n.unref(E.startTime)&&(x=be(n.unref(E.startTime))),n.unref(E.endTime)&&(k=be(n.unref(E.endTime)))}if(x&&k){const E=k.diff(x,g.toLowerCase());D=`${m==="before"?"-":""}${E+1}`}return D?[D]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:C,componentId:D=""}=h;if(C===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&D){const p=m[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(h.calcWays=r({around:p[1],unit:g[0],id:D})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=be().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ne.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const C=!g.conditions.some(D=>D.join&&D.conditions);g.conditions.forEach((D,p)=>{s(D),C?p<g.conditions.length-1?m.push({join:g.join,...D}):m.push(D):D.join&&D.conditions?m.push({conditions:l([D]),join:g.join}):m.push(D)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const B=u(h);B&&(m.sort=B)}const{label:g,name:C,location:D,show:p,indexCode:v,calcType:x="COLUMN",builtInFormula:k,builtInValueSource:E,builtInCalcWay:R,formula:O,conditions:N,aggregate:S}=h;let w;if(N&&(w=l(N)),x==="COMPONENT"){const B={};return y(B,E),{label:g.trim(),columnName:C,show:p,calcType:x,componentAlias:R,componentValue:B.fieldValue||null}}else return{label:g.trim(),columnName:C,location:D,show:p,calcType:x,hrpIndexCode:v,aggregate:S,builtInFormula:k,builtInValueSource:E,builtInCalcWay:R,formula:O,conditions:w}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:C=[],dimensionList:D=[],seriesList:p=[],leftAxisList:v=[],rightAxisList:x=[],queryColumnList:k=[],indicators:E=[]}=h,R=[...g,...C,...D,...p,...v,...x,...k,...E],O=[];for(const B of R){const b=c((B==null?void 0:B.conditions)||[]);if(b!=null&&b.length){const T=b.filter(A=>(A==null?void 0:A.dataType)==="component").map(A=>{const I={};return A!=null&&A.dateFormat&&(I.format=A.dateFormat),{conditionKey:A.fieldName,conditionLabel:A.fieldName,conditionName:A.fieldName,conditionValueType:A.fieldType,id:A.componentId,keyName:A.fieldValue,rule:A.rule,notGlobal:!0,indexCode:A.indexCode,typeGuid:A.typeGuid,...I}});if(T!=null&&T.length)for(const A of T)O.find(I=>I.keyName===A.keyName)||O.push(A)}}const N=m.concat(O),S=N.length,w=[];for(let B=0;B<S;B++){const b=N[B];if((b==null?void 0:b.conditionKey)==="parentCode")continue;const{id:T,keyName:A,conditionLabel:I,conditionKey:F,conditionValueType:q,prop:W,rule:$="NONE",notGlobal:z=!1,format:P,modelKey:M,indexCode:_,typeGuid:L}=b;let V=A||T;V&&W&&(V+=`-${W}`);let Z=$;Z==="NONE"&&(["startTime","endTime"].includes(W)?Z=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":A!=null&&A.includes("startTime")?Z=W==="GREATER_EQUAL":A!=null&&A.includes("endTime")?Z=W==="LESS_EQUAL":Z="EQUAL");const U={rule:Z,label:I,fieldName:F,fieldValue:"",valueType:q,alias:V,globalCondition:!z,indexCode:_,typeGuid:L};y(U,T,{prop:W,dateFormat:P,modelKey:M,keyName:A}),w.push(U)}for(let B=w.length-1;B>=0;B--){const b=w[B];b.globalCondition||w.find(A=>A.alias===b.alias&&A.globalCondition)&&w.splice(B,1)}return w};function y(h,m,g){var w,B;const C=a(m)||{},{prop:D="",dateFormat:p="",modelKey:v="",keyName:x=""}=g||{},{value:k,format:E="YYYY-MM-DD",type:R="",useCurrentTime:O,RECORD:N}=C||{},S=p||E;if(ft(C.type,"date"))O?k?h.fieldValue=(w=n.unref(k))==null?void 0:w.format(S):h.fieldValue=be().format(S):h.fieldValue=(B=n.unref(k))==null?void 0:B.format(S),h.dateFormat=S;else if(R==="ecanRangePicker"){let b=D;if(!D){const A=x&&x.split("-");A!=null&&A.length&&(b=A[A.length-1])}if(!b)return;let T=null;n.unref(C[b])&&(T=be(n.unref(C[b]))),T&&(h.fieldValue=T==null?void 0:T.format(S)),h.dateFormat=S}else ft(R,["table","bar","combograph","line","pie","radar","scatter","list"])?v&&N?h.fieldValue=N[v]:!v&&N?h.fieldValue=N.value:h.fieldValue=n.unref(k):h.fieldValue=n.unref(k)}const u=h=>{const{sortCpnts:m=[]}=h;let g,C="";for(const D of m){const p=a(D)||{},{type:v,RECORD:x}=p;if(ft(v,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){C=x.value.toUpperCase();break}}return C&&(g={label:h.label,columnName:h.name,order:C,type:"NORMAL"}),g};return async(h={})=>{var Z,U,ae,Q,le,re;t(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:C=!1}=e;let{source:D,dataViewId:p,plugin:v="1",layer:x,chartType:k,classificationList:E=[],rowHeaderList:R=[],dimensionList:O=[],seriesList:N=[],leftAxisList:S=[],rightAxisList:w=[],queryColumnList:B=[],indicators:b=[],controlList:T=[],formFields:A={},idxLibMode:I,preview:F=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(Y=>{const X=Y.rule||"EQUAL",te={};return i(Y,"globalCondition")||(te.globalCondition=!0),{...Y,rule:X==="NONE"?"EQUAL":X,...te}}):q=f(m);for(const Y of q)i(Y,"indexCode")&&(Y.hrpIndexCode=Y.indexCode,delete Y.indexCode);x==null&&(ft(g,["table"])?x="1":ft(g,["select","checkbox","radio"])?x="3":x="2");let W,$="";if(Array.isArray(E)&&E.length>0){const Y=E.length;for(let X=0;X<Y;X++){const te=E[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Ie,dateFormat:ke,typeGuid:He="",truncations:Fe=[]}=te;if(Ee||Y===1){$=He,W={label:pe.trim(),columnName:Ae,show:Ee,sort:u(te)||$e,customGroup:Me,conditions:l(Ie),typeGuid:He},ke&&(W.dateFormat=ke),Ae==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(Fe)&&Fe.length>0){const We=Fe.length;for(let je=0;je<We;je++){const ut=Fe[je]||{},{rule:tt="",num:nt=0,name:H=""}=ut;tt&&nt&&(Ke.num=nt,Ke.rule=tt,H&&(Ke.otherGroupName=H))}}(Z=Object.keys(Ke))!=null&&Z.length&&(W.truncation=Ke);break}}}let z;if(Array.isArray(N)&&N.length>0){const Y=N.length;for(let X=0;X<Y;X++){const te=N[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Ie}=te;if(Ee||Y===1){z={label:pe.trim(),columnName:Ae,show:Ee,sort:$e,customGroup:Me,conditions:l(Ie)};break}}}const P=[];S==null||S.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))}),w==null||w.forEach(Y=>{Y.location="RIGHT",P.push(d(Y,W))}),b==null||b.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))});const M=[];B==null||B.forEach(Y=>{const{label:X,name:te,location:pe,show:Ae,indexCode:Ee,sort:$e,typeGuid:Me}=Y;let Ie=$e;if(h.sort){const{field:ke,order:He}=h.sort;let Fe=P.find(Ke=>Ke.label===ke);!Fe&&X===ke&&(Fe=Y),Fe&&(Ie={columnName:Fe.columnName,label:h.sort.field,order:He.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:te,location:pe,show:Ae,sort:Ie,calcType:"COLUMN",hrpIndexCode:Ee,typeGuid:Me})});const _=[];let L=[];if(Array.isArray(R)&&R.length>0?L=R:Array.isArray(O)&&O.length>0&&(L=O),L!=null&&L.length){const Y=L.length;for(let X=0;X<Y;X++){const te=L[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Ie,truncations:ke,typeGuid:He="",dateFormat:Fe}=te;let Ke=$e;if(h.sort){const{field:ut,order:tt}=h.sort;let nt=P.find(H=>H.label===ut);!nt&&te.label===ut&&(nt=te),nt&&(Ke={columnName:nt.columnName,label:h.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:pe.trim(),columnName:Ae,show:Ee,sort:Ke,customGroup:Me,conditions:l(Ie),typeGuid:He};Fe&&(We.dateFormat=Fe),Ae==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const je={};if(Array.isArray(ke)&&ke.length>0){const ut=ke.length;for(let tt=0;tt<ut;tt++){const nt=ke[tt]||{},{rule:H="",num:K=0,name:J=""}=nt;H&&K&&(je.num=K,je.rule=H,J&&(je.otherGroupName=J))}}(U=Object.keys(je))!=null&&U.length&&(We.truncation=je),_.push(We)}}if(ft(g,["text","proportion"])&&(k="zb"),C){if(_.length===0||P.length===0)return;k="grouptable"}else{if(x==="1"&&M.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!$||!A.labelField||!A.valueField))return;if(x==="3"&&g==="ecanDataSelect"&&P.length===0)return}O!=null&&O.length&&(x="1",k="grouptable");let V=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!V){const{pathname:Y}=window==null?void 0:window.location;if(Y){const X=Y.split("/");X!=null&&X.length&&(V=X[X.length-1])}}if((Q=Object.keys(A))!=null&&Q.length){const Y=T.find(te=>te.conditionKey==="parentCode"),X={};if(Y){const te=a(Y.id)||{};if(te!=null&&te.itemCodes)X.parentItemCodes=te.itemCodes;else return}g==="ecanDataSelect"&&(X.indicatorList=P.filter(te=>te.show));try{return await dt.post(`${yr}/diagram/formData`,{source:D,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:$,type:g==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:A.labelField,valueField:A.valueField,pageId:V,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:mr}})}catch(te){console.error(te)}finally{}}else try{return await dt.post(`${yr}/diagram`,{source:D,dataViewId:p,plugin:v,layer:x,chartType:k,classification:W,series:z,indicatorList:P,queryColumns:C?[]:M,pageFlag:!0,pageId:V,sqlConditions:q.map(X=>{const{fieldValue:te}=X,pe={};return te&&Array.isArray(te)&&(pe.fieldValue=JSON.stringify(te)),{...X,...pe}}),idxLibMode:I,preview:F,rowHeaders:_,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:mr}})}catch(Y){console.error(Y)}finally{}}},Nc=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Fc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},setup(e){const{width:o,height:t}=n.inject(Pe,{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),f=n.ref(!1),y=n.ref();let u;const h=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await h(),m(),C(),window.addEventListener("resize",D),p(),f.value=!0},{immediate:!0});const g=n.ref({});n.provide("scaleValue",g);const C=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,E=s.value||d.value,R=l.value||c.value,O=x/E;let N=k/R;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/R),g.value={widthScale:O,heightScale:N},y.value&&(y.value.style.transform=`scale(${O}, ${N})`),a(N)},D=Ne.debounce(async()=>{await h(),C()},100),p=()=>{const x=window.MutationObserver;u=new x(D),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return n.onMounted(()=>{f.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",D),v()}),{style:i,container:y,ready:f}}}),Fu="",zc={id:"container",ref:"container"};function Mc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",zc,[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 wi=xe(me(Fc,[["render",Mc],["__scopeId","data-v-b496b36e"]])),Ro={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Io=Se(Ro),Pc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Io},setup(e,{expose:o}){Nc();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),f=n.computed(()=>e.height),y=n.ref("");n.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",L=>{let V=L;t.value||(V=parseFloat(f.value)*L+"px"),u.value.height=V}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const h=n.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),C=(L,V)=>{h.value=V,m.set(L,V)},D=()=>{h.value=null},p=L=>{let V=L;if(V){const Z=L.match(/\{(.+?)\}/g);if(Z!=null&&Z.length){let U=Z[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=n.unref(i).find(re=>re.keyName===U);if(le){const re=g(le.id),{type:Y,value:X,RECORD:te}=re||{};ft(Y,["table","bar","combograph","line","pie","radar","scatter","list"])?V=te[Q]:V=X}else V=""}}return V};n.provide(Te,{getGlobalModel:g,setGlobalModel:C,clearInteractiveData:D,getRecordValueByKeyName:p,interactiveData:h});const v=n.ref({}),x=(L,V)=>{v.value[L]=V};n.provide(bt,{loadedData:v,setLoadedData:x});const k=[],E=()=>{k.pop()},R=L=>{k.push(L)},O=new Map,N=L=>O.get(L),S=(L,V)=>{O.set(L,V)};n.provide(gr,{popUseModalIds:E,pushUseModalIds:R,getModalModel:N,setModalModel:S});const w=Wl(),B=new Set,b=(L,V)=>{B.add(L),w.on(L,Z=>typeof V[Z]=="function"&&V[Z]()),n.onBeforeUnmount(()=>{T(L)})},T=L=>{B.delete(L),w.off(L)},A=(L,V)=>{if(L==="PAGE"){const Z=k.length;let U=[];if(Z===0)U=[...B];else{const ae=k[Z-1];U=[...N(ae)]}U.forEach(ae=>{w.emit(ae,V)})}else w.emit(L,V)};n.provide(Pn,{onEvent:b,offEvent:T,emitEvent:A});const I=n.ref(0),F=()=>{I.value=n.unref(I)+1};n.provide(hr,{requestToken:F});const q=new Map,W=new Map,$=({requestFn:L=()=>{},sortNum:V=0,id:Z=""})=>{if(q.has(V)){const U=q.get(V);U==null||U.push(L)}else q.set(V,[L]);W.set(Z,L)},z=L=>new Promise((V,Z)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{V(ae)}).catch(ae=>{Z(ae)})}),P=L=>new Promise(async(V,Z)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Q=>(V(Q),Q),Q=>(Z(Q),Promise.reject(Q)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Q,le)=>le[0]-Q[0]);const ae=U.length;try{e.pageMode!=="design"&&n.unref(I)>0;for(let Q=0;Q<ae;Q++){const le=U[Q][1];await z(le)}}catch(Q){console.error(Q)}finally{q.clear(),V(null)}}});n.provide(ze,{setRequest:$,touchRequest:P});const M=()=>{w.emit(Xt)};n.provide(Xt,{emitRefreshPage:M});const _=L=>{w.on(Xt,()=>L()),n.onMounted(()=>{w.off(Xt)})};return n.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:_}),{providerConfig:a,configStyle:u}}}),Mu="";function qc(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 Ai=xe(me(Pc,[["render",qc],["__scopeId","data-v-a6d93422"]])),_o={...we,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"},Oo=Se(_o),ki=["refreshData","click","valueChange"],Lo="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=",No="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Fo=n.defineComponent({name:"EcanText",components:{Skeleton:sn},props:{...Oo},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],([b,T])=>{T==="static"&&(r.value=b)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=n.inject(Te,{getGlobalModel:b=>{},setGlobalModel:(b,T)=>{},getRecordValueByKeyName:b=>{}}),{setLoadedData:f}=n.inject(bt,{setLoadedData:(b,T)=>{}}),y=n.computed(()=>{let b="";if(e.gradientShow){const{gradientColor:T,gradientOffset:A,gradientAngle:I,color:F}=e;b+=`background: linear-gradient(${I}, ${F}, ${T||"transparent"} ${A*100}%);-webkit-background-clip: text;color: transparent;`}return b}),u=n.computed(()=>{const b={};if(e.gradientShow){const{gradientColor:T,gradientOffset:A,gradientAngle:I,color:F}=e,q=T||"transparent";b.background=`linear-gradient(${I}, ${F}, ${q} ${A*100}%)`,b["-webkit-background-clip"]="text",b.color="transparent"}return b}),h=n.computed(()=>{var W;if(n.unref(t))return"NaN";const b=n.unref(r),T=e.increaseColor||e.color,A=e.declineColor||e.color;let I=e.text;I=I==null?void 0:I.replace(/\n|\\n/g,"<br/>"),I=I==null?void 0:I.replace(/\s(?!\{) | (?!\})\s/g," ");const F=I.match(/\{(.+?)\}/g)||[];let q="";if(F==null||F.length===0){if(I&&e.format==="percentage"&&!isNaN(+I)){const $=parseFloat(I),z=$*100,P=m(z.toFixed(2));$>=0?I=`<span style="color: ${P||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(y)}">
|
|
99
|
+
`;let i=e;if(n!=null&&n.length){for(const l of n){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 n={dayjs:be,...o};let a="";const r=[];for(const l in n)a+=`${l},`,r.push(n[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:n}={},{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 f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=vn(f,n)),e=e.replace(c,f)}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},He=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Pe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=t.inject(Te,{getGlobalModel:m=>{}}),y=De(n),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:T,value:E}=x;if(typeof E=="object"&&E!=null&&E.id){let I={};const{id:_,prop:N,propKey:k,operate:B}=E;_==="THIS"?I=f(t.unref(c))||{}:I=f(_)||{};const A=t.unref(I[N]);let p=null;if(["date","range"].some(C=>ft(I==null?void 0:I.type,C))){const{value:C,type:R,mode:F}=B||{};if(C&&R&&F)switch(R){case"add":p=t.unref(A).add(C,F);break;case"minus":p=t.unref(A).subtract(C,F);break}p==null&&(p=t.unref(A)),p=(p==null?void 0:p.format((k==null?void 0:k.trim())||I.format))||""}else Object.prototype.toString.call(A)==="[object Object]"?k?p=A[k]:p=N?A[N]:A:ft(I==null?void 0:I.type,"select")&&t.unref(A)&&N&&Array.isArray(t.unref(A))?p=t.unref(A).map(C=>Object.prototype.hasOwnProperty.call(C,N)?C[N]:C):p=A;g[T]=p}else typeof E=="string"&&(g[T]=De(E))}),g={...window.config.requestParams,...m,...g};let S="";const D=Object.keys(g),b=D.length-1,v=D.length;D.forEach((x,T)=>{let E=g[x];Object.prototype.toString.call(E)==="[object Object]"&&(E=JSON.stringify(E)),T===0?v!==1?S+=`?${x}=${E}&`:S+=`?${x}=${E}`:T===b?S+=`${x}=${E}`:S+=`${x}=${E}&`});try{const x=["get","head"].includes(a),T={};let E=x?y+S:y;g.dataSqlId&&!E.includes("dataSqlId")&&(E+=`${E.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(T.signal=g.signal);const I=await dt({baseURL:t.unref(d)||"",url:E,method:a,headers:r,data:x?{}:g,...T});return o(I),I}catch(x){console.error(x)}},h=l&&setInterval(u,s*1e3);return t.onUnmounted(()=>{clearInterval(h)}),u},At=(e=[],o,n=!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&&!n){const y=[];for(let h=0;h<d;h++){const m=r[h],{label:g,value:S}=m,D={...e[0],value:e[0][S]};i.add(g),y.push(D)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:S,value:D}=g,b={...u,value:u[D]||0};if(s.has(S)){const v=s.get(S);v.push(b),s.set(S,v)}else s.set(S,[b])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},yt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Ci=(e,o)=>{const n=`${xr}/preview?pageId=${o}`,a=`${xr}/${o}`;return e==="preview"?n:a},lt=(e,o)=>{var r;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let i=0;i<a;i++){const s=n[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},et=(e={})=>{const{requestToken:o}=t.inject(hr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=t.inject(Te,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:S}=h;let D="";const{pageMode:b="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,T=null;if(b==="design"){const E=v==null?void 0:v.find(p=>p.id===S);if(!E)return[];const{interval:I,intervalUnit:_,startTime:N,endTime:k,operate:B,useCurrentTime:A}=E||{};if(A&&(x=be().subtract(I,_),T=be()),N&&(x=be(N)),k&&(T=be(k)),B){const{type:p,value:w,mode:C}=B;switch(p){case"add":x=x&&x.add(w,C),T=T&&T.add(w,C);break;case"minus":x=x&&x.subtract(w,C),T=T&&T.subtract(w,C)}}}else{const E=a(S)||{};t.unref(E.startTime)&&(x=be(t.unref(E.startTime))),t.unref(E.endTime)&&(T=be(t.unref(E.endTime)))}if(x&&T){const E=T.diff(x,g.toLowerCase());D=`${m==="before"?"-":""}${E+1}`}return D?[D]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:S,componentId:D=""}=h;if(S===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&D){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(h.calcWays=r({around:b[1],unit:g[0],id:D})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=be().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ne.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const S=!g.conditions.some(D=>D.join&&D.conditions);g.conditions.forEach((D,b)=>{s(D),S?b<g.conditions.length-1?m.push({join:g.join,...D}):m.push(D):D.join&&D.conditions?m.push({conditions:l([D]),join:g.join}):m.push(D)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const A=u(h);A&&(m.sort=A)}const{label:g,name:S,location:D,show:b,indexCode:v,calcType:x="COLUMN",builtInFormula:T,builtInValueSource:E,builtInCalcWay:I,formula:_,conditions:N,aggregate:k}=h;let B;if(N&&(B=l(N)),x==="COMPONENT"){const A={};return y(A,E),{label:g.trim(),columnName:S,show:b,calcType:x,componentAlias:I,componentValue:A.fieldValue||null}}else return{label:g.trim(),columnName:S,location:D,show:b,calcType:x,hrpIndexCode:v,aggregate:k,builtInFormula:T,builtInValueSource:E,builtInCalcWay:I,formula:_,conditions:B}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:S=[],dimensionList:D=[],seriesList:b=[],leftAxisList:v=[],rightAxisList:x=[],queryColumnList:T=[],indicators:E=[]}=h,I=[...g,...S,...D,...b,...v,...x,...T,...E],_=[];for(const A of I){const p=c((A==null?void 0:A.conditions)||[]);if(p!=null&&p.length){const w=p.filter(C=>(C==null?void 0:C.dataType)==="component").map(C=>{const R={};return C!=null&&C.dateFormat&&(R.format=C.dateFormat),{conditionKey:C.fieldName,conditionLabel:C.fieldName,conditionName:C.fieldName,conditionValueType:C.fieldType,id:C.componentId,keyName:C.fieldValue,rule:C.rule,notGlobal:!0,indexCode:C.indexCode,typeGuid:C.typeGuid,...R}});if(w!=null&&w.length)for(const C of w)_.find(R=>R.keyName===C.keyName)||_.push(C)}}const N=m.concat(_),k=N.length,B=[];for(let A=0;A<k;A++){const p=N[A];if((p==null?void 0:p.conditionKey)==="parentCode")continue;const{id:w,keyName:C,conditionLabel:R,conditionKey:F,conditionValueType:q,prop:W,rule:$="NONE",notGlobal:z=!1,format:P,modelKey:M,indexCode:O,typeGuid:L}=p;let H=C||w;H&&W&&(H+=`-${W}`);let Z=$;Z==="NONE"&&(["startTime","endTime"].includes(W)?Z=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":C!=null&&C.includes("startTime")?Z=W==="GREATER_EQUAL":C!=null&&C.includes("endTime")?Z=W==="LESS_EQUAL":Z="EQUAL");const U={rule:Z,label:R,fieldName:F,fieldValue:"",valueType:q,alias:H,globalCondition:!z,indexCode:O,typeGuid:L};y(U,w,{prop:W,dateFormat:P,modelKey:M,keyName:C}),B.push(U)}for(let A=B.length-1;A>=0;A--){const p=B[A];p.globalCondition||B.find(C=>C.alias===p.alias&&C.globalCondition)&&B.splice(A,1)}return B};function y(h,m,g){var B,A;const S=a(m)||{},{prop:D="",dateFormat:b="",modelKey:v="",keyName:x=""}=g||{},{value:T,format:E="YYYY-MM-DD",type:I="",useCurrentTime:_,RECORD:N}=S||{},k=b||E;if(ft(S.type,"date"))_?T?h.fieldValue=(B=t.unref(T))==null?void 0:B.format(k):h.fieldValue=be().format(k):h.fieldValue=(A=t.unref(T))==null?void 0:A.format(k),h.dateFormat=k;else if(I==="ecanRangePicker"){let p=D;if(!D){const C=x&&x.split("-");C!=null&&C.length&&(p=C[C.length-1])}if(!p)return;let w=null;t.unref(S[p])&&(w=be(t.unref(S[p]))),w&&(h.fieldValue=w==null?void 0:w.format(k)),h.dateFormat=k}else ft(I,["table","bar","combograph","line","pie","radar","scatter","list"])?v&&N?h.fieldValue=N[v]:!v&&N?h.fieldValue=N.value:h.fieldValue=t.unref(T):h.fieldValue=t.unref(T)}const u=h=>{const{sortCpnts:m=[]}=h;let g,S="";for(const D of m){const b=a(D)||{},{type:v,RECORD:x}=b;if(ft(v,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){S=x.value.toUpperCase();break}}return S&&(g={label:h.label,columnName:h.name,order:S,type:"NORMAL"}),g};return async(h={})=>{var Z,U,ae,Q,le,re;n(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:S=!1}=e;let{source:D,dataViewId:b,plugin:v="1",layer:x,chartType:T,classificationList:E=[],rowHeaderList:I=[],dimensionList:_=[],seriesList:N=[],leftAxisList:k=[],rightAxisList:B=[],queryColumnList:A=[],indicators:p=[],controlList:w=[],formFields:C={},idxLibMode:R,preview:F=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(Y=>{const X=Y.rule||"EQUAL",te={};return i(Y,"globalCondition")||(te.globalCondition=!0),{...Y,rule:X==="NONE"?"EQUAL":X,...te}}):q=f(m);for(const Y of q)i(Y,"indexCode")&&(Y.hrpIndexCode=Y.indexCode,delete Y.indexCode);x==null&&(ft(g,["table"])?x="1":ft(g,["select","checkbox","radio"])?x="3":x="2");let W,$="";if(Array.isArray(E)&&E.length>0){const Y=E.length;for(let X=0;X<Y;X++){const te=E[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Re,dateFormat:ke,typeGuid:Ve="",truncations:Fe=[]}=te;if(Ee||Y===1){$=Ve,W={label:pe.trim(),columnName:Ae,show:Ee,sort:u(te)||$e,customGroup:Me,conditions:l(Re),typeGuid:Ve},ke&&(W.dateFormat=ke),Ae==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(Fe)&&Fe.length>0){const We=Fe.length;for(let je=0;je<We;je++){const ut=Fe[je]||{},{rule:tt="",num:nt=0,name:V=""}=ut;tt&&nt&&(Ke.num=nt,Ke.rule=tt,V&&(Ke.otherGroupName=V))}}(Z=Object.keys(Ke))!=null&&Z.length&&(W.truncation=Ke);break}}}let z;if(Array.isArray(N)&&N.length>0){const Y=N.length;for(let X=0;X<Y;X++){const te=N[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Re}=te;if(Ee||Y===1){z={label:pe.trim(),columnName:Ae,show:Ee,sort:$e,customGroup:Me,conditions:l(Re)};break}}}const P=[];k==null||k.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))}),B==null||B.forEach(Y=>{Y.location="RIGHT",P.push(d(Y,W))}),p==null||p.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))});const M=[];A==null||A.forEach(Y=>{const{label:X,name:te,location:pe,show:Ae,indexCode:Ee,sort:$e,typeGuid:Me}=Y;let Re=$e;if(h.sort){const{field:ke,order:Ve}=h.sort;let Fe=P.find(Ke=>Ke.label===ke);!Fe&&X===ke&&(Fe=Y),Fe&&(Re={columnName:Fe.columnName,label:h.sort.field,order:Ve.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:te,location:pe,show:Ae,sort:Re,calcType:"COLUMN",hrpIndexCode:Ee,typeGuid:Me})});const O=[];let L=[];if(Array.isArray(I)&&I.length>0?L=I:Array.isArray(_)&&_.length>0&&(L=_),L!=null&&L.length){const Y=L.length;for(let X=0;X<Y;X++){const te=L[X]||{},{label:pe="",name:Ae="",show:Ee=!1,sort:$e,customGroup:Me,conditions:Re,truncations:ke,typeGuid:Ve="",dateFormat:Fe}=te;let Ke=$e;if(h.sort){const{field:ut,order:tt}=h.sort;let nt=P.find(V=>V.label===ut);!nt&&te.label===ut&&(nt=te),nt&&(Ke={columnName:nt.columnName,label:h.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:pe.trim(),columnName:Ae,show:Ee,sort:Ke,customGroup:Me,conditions:l(Re),typeGuid:Ve};Fe&&(We.dateFormat=Fe),Ae==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const je={};if(Array.isArray(ke)&&ke.length>0){const ut=ke.length;for(let tt=0;tt<ut;tt++){const nt=ke[tt]||{},{rule:V="",num:K=0,name:J=""}=nt;V&&K&&(je.num=K,je.rule=V,J&&(je.otherGroupName=J))}}(U=Object.keys(je))!=null&&U.length&&(We.truncation=je),O.push(We)}}if(ft(g,["text","proportion"])&&(T="zb"),S){if(O.length===0||P.length===0)return;T="grouptable"}else{if(x==="1"&&M.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!$||!C.labelField||!C.valueField))return;if(x==="3"&&g==="ecanDataSelect"&&P.length===0)return}_!=null&&_.length&&(x="1",T="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(C))!=null&&Q.length){const Y=w.find(te=>te.conditionKey==="parentCode"),X={};if(Y){const te=a(Y.id)||{};if(te!=null&&te.itemCodes)X.parentItemCodes=te.itemCodes;else return}g==="ecanDataSelect"&&(X.indicatorList=P.filter(te=>te.show));try{return await dt.post(`${yr}/diagram/formData`,{source:D,dataViewId:b,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:$,type:g==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:C.labelField,valueField:C.valueField,pageId:H,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:mr}})}catch(te){console.error(te)}finally{}}else try{return await dt.post(`${yr}/diagram`,{source:D,dataViewId:b,plugin:v,layer:x,chartType:T,classification:W,series:z,indicatorList:P,queryColumns:S?[]:M,pageFlag:!0,pageId:H,sqlConditions:q.map(X=>{const{fieldValue:te}=X,pe={};return te&&Array.isArray(te)&&(pe.fieldValue=JSON.stringify(te)),{...X,...pe}}),idxLibMode:R,preview:F,rowHeaders:O,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:mr}})}catch(Y){console.error(Y)}finally{}}},Nc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Fc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},setup(e){const{width:o,height:n}=t.inject(Pe,{width:null,height:null}),a=t.inject("setPageHeight",x=>{}),r=t.inject("isMobile",!1),i=t.computed(()=>{const x={};return r||(x.width=o.value,x.height=n.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:yt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),y=t.ref();let u;const h=()=>new Promise(x=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await h(),m(),S(),window.addEventListener("resize",D),b(),f.value=!0},{immediate:!0});const g=t.ref({});t.provide("scaleValue",g);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,T=document.body.clientHeight,E=s.value||d.value,I=l.value||c.value,_=x/E;let N=T/I;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/I),g.value={widthScale:_,heightScale:N},y.value&&(y.value.style.transform=`scale(${_}, ${N})`),a(N)},D=Ne.debounce(async()=>{await h(),S()},100),b=()=>{const x=window.MutationObserver;u=new x(D),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",D),v()}),{style:i,container:y,ready:f}}}),Mu="",zc={id:"container",ref:"container"};function Mc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",zc,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const wi=xe(me(Fc,[["render",Mc],["__scopeId","data-v-b496b36e"]])),Io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Ro=Se(Io),Pc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Ro},setup(e,{expose:o}){Nc();const n=t.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=t.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=t.inject("usedComponentList",[]);t.watch(()=>e.theme,()=>{r()}),t.onMounted(()=>{r()});const s=t.computed(()=>De(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),f=t.computed(()=>e.height),y=t.ref("");t.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",L=>{let H=L;n.value||(H=parseFloat(f.value)*L+"px"),u.value.height=H}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const h=t.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),S=(L,H)=>{h.value=H,m.set(L,H)},D=()=>{h.value=null},b=L=>{let H=L;if(H){const Z=L.match(/\{(.+?)\}/g);if(Z!=null&&Z.length){let U=Z[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=t.unref(i).find(re=>re.keyName===U);if(le){const re=g(le.id),{type:Y,value:X,RECORD:te}=re||{};ft(Y,["table","bar","combograph","line","pie","radar","scatter","list"])?H=te[Q]:H=X}else H=""}}return H};t.provide(Te,{getGlobalModel:g,setGlobalModel:S,clearInteractiveData:D,getRecordValueByKeyName:b,interactiveData:h});const v=t.ref({}),x=(L,H)=>{v.value[L]=H};t.provide(vt,{loadedData:v,setLoadedData:x});const T=[],E=()=>{T.pop()},I=L=>{T.push(L)},_=new Map,N=L=>_.get(L),k=(L,H)=>{_.set(L,H)};t.provide(gr,{popUseModalIds:E,pushUseModalIds:I,getModalModel:N,setModalModel:k});const B=Wl(),A=new Set,p=(L,H)=>{A.add(L),B.on(L,Z=>typeof H[Z]=="function"&&H[Z]()),t.onBeforeUnmount(()=>{w(L)})},w=L=>{A.delete(L),B.off(L)},C=(L,H)=>{if(L==="PAGE"){const Z=T.length;let U=[];if(Z===0)U=[...A];else{const ae=T[Z-1];U=[...N(ae)]}U.forEach(ae=>{B.emit(ae,H)})}else B.emit(L,H)};t.provide(Pn,{onEvent:p,offEvent:w,emitEvent:C});const R=t.ref(0),F=()=>{R.value=t.unref(R)+1};t.provide(hr,{requestToken:F});const q=new Map,W=new Map,$=({requestFn:L=()=>{},sortNum:H=0,id:Z=""})=>{if(q.has(H)){const U=q.get(H);U==null||U.push(L)}else q.set(H,[L]);W.set(Z,L)},z=L=>new Promise((H,Z)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{H(ae)}).catch(ae=>{Z(ae)})}),P=L=>new Promise(async(H,Z)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Q=>(H(Q),Q),Q=>(Z(Q),Promise.reject(Q)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Q,le)=>le[0]-Q[0]);const ae=U.length;try{e.pageMode!=="design"&&t.unref(R)>0;for(let Q=0;Q<ae;Q++){const le=U[Q][1];await z(le)}}catch(Q){console.error(Q)}finally{q.clear(),H(null)}}});t.provide(ze,{setRequest:$,touchRequest:P});const M=()=>{B.emit(Xt)};t.provide(Xt,{emitRefreshPage:M});const O=L=>{B.on(Xt,()=>L()),t.onMounted(()=>{B.off(Xt)})};return t.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:O}),{providerConfig:a,configStyle:u}}}),qu="";function qc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle(e.configStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Ai=xe(me(Pc,[["render",qc],["__scopeId","data-v-a6d93422"]])),Oo={...we,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(Oo),ki=["refreshData","click","valueChange"],Lo="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=",No="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Fo=t.defineComponent({name:"EcanText",components:{Skeleton:sn},props:{..._o},setup(e,{expose:o}){const n=t.ref(!1),a=Ce(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([p,w])=>{w==="static"&&(r.value=p)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{},getRecordValueByKeyName:p=>{}}),{setLoadedData:f}=t.inject(vt,{setLoadedData:(p,w)=>{}}),y=t.computed(()=>{let p="";if(e.gradientShow){const{gradientColor:w,gradientOffset:C,gradientAngle:R,color:F}=e;p+=`background: linear-gradient(${R}, ${F}, ${w||"transparent"} ${C*100}%);-webkit-background-clip: text;color: transparent;`}return p}),u=t.computed(()=>{const p={};if(e.gradientShow){const{gradientColor:w,gradientOffset:C,gradientAngle:R,color:F}=e,q=w||"transparent";p.background=`linear-gradient(${R}, ${F}, ${q} ${C*100}%)`,p["-webkit-background-clip"]="text",p.color="transparent"}return p}),h=t.computed(()=>{var W;if(t.unref(n))return"NaN";const p=t.unref(r),w=e.increaseColor||e.color,C=e.declineColor||e.color;let R=e.text;R=R==null?void 0:R.replace(/\n|\\n/g,"<br/>"),R=R==null?void 0:R.replace(/\s(?!\{) | (?!\})\s/g," ");const F=R.match(/\{(.+?)\}/g)||[];let q="";if(F==null||F.length===0){if(R&&e.format==="percentage"&&!isNaN(+R)){const $=parseFloat(R),z=$*100,P=m(z.toFixed(2));$>=0?R=`<span style="color: ${P||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${
|
|
101
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Lo}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${P||e.color};${
|
|
104
|
-
</span>`:
|
|
103
|
+
<span style="color: ${P||e.color};${t.unref(y)}">${Math.abs(+z).toFixed(2)}%</span>
|
|
104
|
+
</span>`:R=`<span style="color: ${P||C||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${
|
|
106
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||C||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${No}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${P||e.color};${
|
|
109
|
-
</span>`}q=
|
|
108
|
+
<span style="color: ${P||e.color};${t.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+z).toFixed(2)}%</span>
|
|
109
|
+
</span>`}q=R}for(let $=0;$<F.length;$++){const z=F[$],P=(W=z==null?void 0:z.slice(1,z.length-1))==null?void 0:W.trim();let M=P;const O=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let H=0;H<O.length;H++){const Z=O[H],U=p[Z];U&&(M=P.replace(Z,c(String(U))||U))}if(/\(.*\)/g.test(M)){const H=vn(M);H!=null&&(M=H)}let L=M;if(L===P&&(L=e.variableDefaultValue),L!=null){const H=e.format;if(H==="percentage")if(L=+L,isNaN(L))R=R.replace(z,`<span style="color:${m("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">0%</span>`);else if(L>=0){L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${
|
|
111
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Lo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${Z||e.color};${
|
|
114
|
-
</span>`)}else{L=L*100;const Z=m(L.toFixed(2));
|
|
113
|
+
<span style="color: ${Z||e.color};${t.unref(y)}">${Math.abs(+L).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||C||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${
|
|
116
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||C||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${No}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${Z||e.color};${
|
|
119
|
-
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),I=I.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Do(L),I=I.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`))):V==="thousands"?(L=+L,isNaN(L)||(L=Oc(L),I=I.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`))):I=I.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(I)};${n.unref(y)}">${I}</span>`),e.unitShow&&e.unitText){const{unitTop:$,unitLeft:z}=e;let P="position:relative;";$&&(P+=`top:${$};`),z&&(P+=`margin-left:${z};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${n.unref(y)}'>${e.unitText}</span>`}return q});function m(b){let T="",A=!1;const{targetValue:I,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":b!==I&&(A=!0);break;case"greater":b<=I&&(A=!0);break;case"greater_equal":b<I&&(A=!0);break;case"less":b>=I&&(A=!0);break;case"less_equal":b>I&&(A=!0);break}A&&(T=q)}return T}const{pageMode:g}=n.inject(Pe,{pageMode:"normal"}),C=Ve(e),D=n.ref(!1),p=async()=>{var b;try{D.value=!0;const T=await C();r.value=((b=T==null?void 0:T.data)==null?void 0:b.data)||{}}catch(T){console.error(T)}finally{D.value=!1}},v=(b={})=>{r.value=b},x=b=>{const T=e.id,A=l(T);d(T,{...A,value:b||"",RECORD:b||""})},k=()=>{x("")},E=et(e),R=async()=>{var b,T;try{D.value=!0;const A=await E(),{data:I}=(A==null?void 0:A.data)||{};if(I){t.value=!1;const{columns:F=[],rows:q=[]}=((b=A==null?void 0:A.data)==null?void 0:b.data)??{},{graphicConfig:W}=e;let $={};if(F.length>0)if((T=W==null?void 0:W.dimensionList)!=null&&T.length){const z=F[0];z&&(q!=null&&q.length)&&($={value:q[0][z]})}else{const z=F.find(P=>!!P);z&&($={value:isNaN(q[z])?0:q[z]||0})}x($==null?void 0:$.value),v($)}else t.value=!0,x("NaN"),v({value:"NaN"})}catch(A){console.error(A)}finally{D.value=!1,f(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":R();break;case"request":p();break}},{setRequest:N}=n.inject(ze,{setRequest:({id:b,sortNum:T,requestFn:A})=>{}});typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),_e(e,{refreshData:O,resetRecord:k}),o({refreshData:O});const S=Be(e),w=S("click",()=>{const b=document.getElementsByClassName(`ecan-text_${e.id}`);if(b!=null&&b.length&&x(b[0].innerText),setTimeout(()=>{x("")},0),!e.linkPage&&!e.href)return;const T=e.linkPage||"",A=Ci(n.unref(g),T),I=e.href;let F=I||A;F=De(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:I},"*"))}),B=S("valueChange",()=>{});return n.watch(()=>h.value,(b,T)=>{b!==T&&B()}),{style:a,myText:h,loading:D,click:w,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ti=()=>{n.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},Bi=Fo.setup;Fo.setup=Bi?(e,o)=>(Ti(),Bi(e,o)):Ti;const qu="",Vc=["innerHTML"];function Hc(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,Vc))}const Ei=xe(me(Fo,[["render",Hc],["__scopeId","data-v-fc956f5c"]])),jc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Hu="",Wc={class:"red"};function Uc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Wc,n.toDisplayString(e.text),1)}const Di=xe(me(jc,[["render",Uc],["__scopeId","data-v-4dd9c03e"]])),zo={...we,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(zo),Ri=["timeChange"],Gc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:f}=e;let y=be();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.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=Be(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=t(),l()},c)};return _e(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Wu="";function $c(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 Ii=xe(me(Gc,[["render",$c],["__scopeId","data-v-b628fca2"]])),Po={...we,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:{}},qo=Se(Po),_i=["refreshData","click","resetRecord"],Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",Jc=n.defineComponent({name:"EcanList",components:{Skeleton:sn,ATooltip:se.Tooltip,MarqueeScroll:ur},props:{...qo},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(S,w)=>{const{format:B,customFormatter:b}=w;if(B==null||B==="")return S;const T={money:Do,percentage:bn,contrast:bn,custom:Si};return T[B]?B==="custom"?T[B](S,b)||"":T[B](S)||"":""},i=(S,w)=>{const B=parseFloat(S+"");if(w!=="contrast")return"";switch(!0){case B>=0:return"goUp";case B<0:return"goDown"}},s=Ve(e),l=n.ref(!1),d=async()=>{var S;if(e.dataType==="request")try{l.value=!0;const w=await s();t.value=((S=w==null?void 0:w.data)==null?void 0:S.data.rows)||[]}catch(w){console.error(w)}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})),f=n.computed(()=>{const{columns:S,isUseSeq:w}=e;return w?[n.unref(c),...S]:S}),y=et(e),u=async()=>{var S;try{l.value=!0;const w=await y(),{columns:B=[],rows:b=[]}=((S=w==null?void 0:w.data)==null?void 0:S.data)??{};e.isUseSeq&&B.unshift(e.seqName),f.value.forEach((T,A)=>{(!e.isUseSeq||A!==0)&&(T.title=B[A],T.key=B[A])}),t.value=b}catch(w){console.error(w)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Be(e),{getGlobalModel:g,setGlobalModel:C}=n.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,w)=>{}}),D=S=>{m("click",()=>{const w=g(e.id);C(e.id,{...w,type:e.type,RECORD:S})})()};_e(e,{refreshData:h,resetRecord:()=>{const S=e.id,w=g(S);C(S,{...w,type:e.type,RECORD:""})}});const{setRequest:v}=n.inject(ze,{setRequest:({id:S,sortNum:w,requestFn:B})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=S=>({flex:S.width?"none":"1",width:S.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:S.align||"left",backgroundColor:S.cellColor}),k=(S,w)=>{let B=0;const b=n.unref(t).map(A=>A[w]),T=Math.max(...b);return T&&(B=S[w]/T*100),B},E=S=>{const{progressColor:w="#1890ff",progressGradientColor:B=""}=S;return B?{background:`linear-gradient(to right, ${w} 0%, ${B} 100%)`}:{backgroundColor:w||"#1890ff"}},R=n.computed(()=>{const S=parseFloat(e.seqFontSize)+5;return{width:S+10,height:S}}),{pageMode:O}=n.inject(Pe,{pageMode:"normal"}),N=n.computed(()=>n.unref(O)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:f,click:D,getColumnStyle:x,getPercentage:k,getBackgroundColor:E,seqIcon4:Kc,seqIcon5:Zc,seqIcon6:Yc,seqIcon7:Qc,iconSize:R,isScroll:N}}}),Gu="",$u="",Xc=e=>(n.pushScopeId("data-v-f66dda69"),e=e(),n.popScopeId(),e),ed={key:0,class:"title"},td={key:0,class:"ranking"},nd={key:1,class:"ecan-list-content"},od=["onClick"],ad={key:0,class:"ranking"},rd=Xc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),id={class:"sort"},ld=["src","width","height"],sd=["src","width","height"],cd=["src","width","height"],dd=["src","width","height"],fd={key:1},ud={key:2,class:"empty"};function hd(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",ed,[(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",td)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(f,y)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:f.key||y,style:n.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},n.toDisplayString(f.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",nd,[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,f)=>(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:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",ad,[rd,n.createElementVNode("div",id," Top "+n.toDisplayString(f+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,y=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[y.key],y.format)]),key:y.key,style:n.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[f===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,ld)):f===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,sd)):f===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,cd)):f>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,dd)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(f+1),5)],64)):(n.openBlock(),n.createElementBlock("span",fd,n.toDisplayString(f+1),1))],64)):y.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:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[n.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6))),128))],12,od))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",ud," 暂无数据 "))]),_:1},8,["loading"])],4)}const Oi=xe(me(Jc,[["render",hd],["__scopeId","data-v-f66dda69"]])),Vo={...we,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(Vo),Li=["refreshData","click"],gd=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:sn},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Pe,{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 E=e.text.match(/\{.+\}/g)||[];let R;const O=new Set(Object.keys(x));for(let N=0;N<E.length;N++){const S=E[N],w=S.slice(1,S.length-1);if(O.has(w)){R=x[w];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(k)?R=0:R=k*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),d=n.computed(()=>{var O;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,E=n.unref(s),R=x.match(/\{.+\}/g)||[];for(let N=0;N<R.length;N++){const S=R[N];let w=S.slice(1,S.length-1);const B=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=S.match(B);for(let A=0;A<(b==null?void 0:b.length);A++){const I=(O=b[A])==null?void 0:O.trim();E[I]!=null&&(w=w.replace(I,E[I]))}let T=w;try{/\(.*\)/g.test(w)&&(T=vn(w))}catch(A){console.error(A)}typeof+T=="number"&&!isNaN(+T)?(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))):T=k,x=x.replace(S,T+"")}return n.unref(t)?"NaN":x}),c=Ve(e),f=n.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{f.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{f.value=!1}},u=(x={})=>{s.value=x},h=et(e),m=async()=>{var x;try{f.value=!0;const k=await h(),{data:E}=(k==null?void 0:k.data)||{};if(E){t.value=!1;const{columns:R=[],rows:O=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let N={};if(R.length>0){const S=R.find(w=>!!w);S&&(N={percent:O[S]})}u(N)}else t.value=!0,u({percent:"NaN"})}catch(k){console.error(k)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};_e(e,{refreshData:g}),o({refreshData:g});const D=Be(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:E})=>{}});typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort});const v=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:E,strokeColor:R}=e;let O=R;return x&&k&&(O={"0%":R,[`${E*100}%`]:k}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:D,customStrokeColor:v}}}),Zu="";function md(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 Ni=xe(me(gd,[["render",md],["__scopeId","data-v-cf942b5f"]])),jo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Wo=Se(jo),Fi=["inputChange","inputBlur"],yd=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Wo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Te,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});n.watch(()=>e.value,f=>{t.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:t})},l=Be(e),d=Ne.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Qu="";function xd(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 zi=xe(me(yd,[["render",xd]])),Uo={...we,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"},Go=Se(Uo),Mi=["dateChange"],$o=n.defineComponent({name:"EcanDatePicker",props:{...Go},components:{ADatePicker:se.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],([u,h,m])=>{let g=null;if(u?g=be(De(u)):h&&(g=be()),m&&g){const{type:C,value:D,mode:p}=m;switch(C){case"add":g=g.add(D,p);break;case"minus":g=g.subtract(D,p)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Te,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Be(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};_e(e,{dateChange:l});const c=n.ref({}),f=n.ref({}),y=u=>{u?setTimeout(()=>{f.value=n.unref(c)},300):f.value={}};return n.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:qa,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),Pi=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},qi=$o.setup;$o.setup=qi?(e,o)=>(Pi(),qi(e,o)):Pi;const Xu="",e1="",pd=["id"];function bd(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,pd)}const Vi=xe(me($o,[["render",bd],["__scopeId","data-v-d4ec0d66"]])),Ko={...we,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(Ko),Hi=["dateChange"];var ji={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,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,t):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return d.bind(this)(c,f)}}})})(ji);var vd=ji.exports;const Sd=pr(vd);be.extend(Sd);const Yo=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.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],([v,x,k,E,R,O])=>{let N=null,S=null;if(k&&(N=be().subtract(E,R),S=be()),v&&(N=be(De(v))),x&&(S=be(De(x))),O){const{type:w,value:B,mode:b}=O;switch(w){case"add":N=N&&N.add(B,b),S=S&&S.add(B,b);break;case"minus":N=N&&N.subtract(B,b),S=S&&S.subtract(B,b)}}a.value=[N,S]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(v,x,k)=>{Array.isArray(v)?(r=v[0],i=v[1],s=k.range):(r=null,i=null)};window.dayjs=be;const d=v=>{let x=!1,{limitStartTime:k,limitEndTime:E}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(k=De(k,{codeData:R}),E=De(E,{codeData:R}),k&&E?x=!(be(k)<v&&v<be(E)):k?x=be(k)>v:E&&(x=be(E)<v),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),S=O.endOf("year");x=!(N<=v&&v<S)}}if(!x){const{value:O=0,mode:N="year"}=e.limitInterval||{};O&&(s==="start"?x=r.add(O,N)<v:s==="end"&&(x=i.subtract(O,N)>v))}return x},{getGlobalModel:c,setGlobalModel:f}=n.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}}),y=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),u=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Be(e);let m=!1;const g=h("dateChange",()=>{}),C=v=>{const x=n.unref(a),k=x&&x[0]&&x[1];v===!1&&m===!0&&k&&(g(),m=!1),v||(s="")},D=()=>{m=!0};return _e(e,{dateChange:()=>{const{associated:v}=e;if(v){const x=c(v)||{};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}}}g()}}),{style:o,getPopupContainer:t,locale:qa,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:C,change:D}}}),Wi=()=>{n.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Ui=Yo.setup;Yo.setup=Ui?(e,o)=>(Wi(),Ui(e,o)):Wi;const n1="",o1="";function Cd(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 Gi=xe(me(Yo,[["render",Cd],["__scopeId","data-v-c9c68612"]])),Qo={...we,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"},Jo=Se(Qo),$i=["click"],wd=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...Jo},setup(e){const o=Ce(e),a=Be(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}}}),r1="";function Ad(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 Ki=xe(me(wd,[["render",Ad]])),Xo={...we,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:{}},ea=Se(Xo),Zi=["checkboxChange"],kd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...ea},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=C=>{const D=e.value;let p=[];C.forEach(v=>{v.checked&&p.push(v.value)}),typeof D=="string"&&D!==""?p=p.concat(D.split(",")):Array.isArray(D)&&(p=p.concat(D)),a.value=C,r.value=p};n.watch(()=>[e.data,e.value],([C])=>{i(C)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var p,v;if(e.dataType!=="request")return;const C=await s(),D=((v=(p=C==null?void 0:C.data)==null?void 0:p.data)==null?void 0:v.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Te,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("checkboxChange",()=>{const C=d(e.id);c(e.id,{...C,RECORD:r})}),u=et(e),h=async()=>{var C;try{const D=await u(),{data:p}=(D==null?void 0:D.data)||{};if(p){const x=(((C=D==null?void 0:D.data)==null?void 0:C.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(D){console.error(D)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=n.inject(ze,{setRequest:({id:C,sortNum:D,requestFn:p})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:t,myValue:r,checkboxChange:y}}}),l1="";function Td(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 Yi=xe(me(kd,[["render",Td]])),ta={...we,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"},na=Se(ta),Qi=["selectChange","refreshData"],Bd=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...na},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 A;const{mode:T}=e;return(A=n.unref(i))!=null&&A.length?s.value:T==="multiple"||T==="tags"||T==="combobox"?[]:""},set:T=>{s.value=T}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=n.inject(Te,{getGlobalModel:T=>{},setGlobalModel:(T,A)=>{},getRecordValueByKeyName:T=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:T,selectFirstOption:A,value:I}=e,F=f(I);T==="multiple"||T==="tags"||T==="combobox"?F?s.value=F.split(","):A&&(s.value=[n.unref(i)[0]]):F?s.value=F:A&&(s.value=n.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(T,A)=>{const I=y.label,F=y.value;let q;const W=A[I],$=A[F];return W!=null?q=W:$!=null&&(q=$),(q==null?void 0:q.toLowerCase().indexOf(T==null?void 0:T.toLowerCase()))>=0},h=T=>{const{label:A,value:I,options:F}=e.dataFieldNames;if(F&&Array.isArray(T))if(T.some(q=>F in q)){const q={},W=[];T.forEach($=>{q[$[F]]||(q[$[F]]=[]),q[$[F]].push({[A]:$[A],[I]:$[I]})});for(const $ in q)W.push({[A]:$,[F]:q[$]});return W}else return T;else if(!F)return T},m=n.ref(!1),g=async()=>{var T,A;if(e.dataType==="request"){m.value=!0;try{const I=await r();if(i.value=h(((A=(T=I==null?void 0:I.data)==null?void 0:T.data)==null?void 0:A.rows)||[]),e.selectFirstOption){let F=n.unref(i)[0];if(y.options){const q=F[y.options];q&&q.length&&(F=q[0])}s.value=F[y.value]}}catch(I){console.error(I)}finally{m.value=!1}}},{setLoadedData:C,loadedData:D}=n.inject(bt,{setLoadedData:(T,A)=>{},loadedData:{}}),p=n.computed(()=>{let T=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const A=y.label,I=y.value;if(e.mode==="multiple")T=n.unref(i).filter(F=>n.unref(s).includes(F[I])).map(F=>F[A]);else{const F=n.unref(i).find(q=>n.unref(s)===q[I]);F&&(T=F[A])}}return T}),v=n.ref([]),x=n.computed(()=>{const T={};if(e.mode!=="multiple"){const A=n.unref(v).find(I=>I.value===n.unref(s));A&&(T.itemCodes=A.item_codes)}return T});c(e.id,{type:e.type,value:p,...n.unref(x)});const E=Be(e)("selectChange",()=>{const T=e.id,A=d(T);c(T,{...A,...n.unref(x),RECORD:p})}),R=(T=[])=>{if(i.value=h(T),e.selectFirstOption){let A=n.unref(i)[0];if(y.options){const I=A[y.options];I&&I.length&&(A=I[0])}s.value=A[y.value]}},O=et(e),N=async()=>{var T;try{m.value=!0;const A=await O(),{data:I}=(A==null?void 0:A.data)||{},F=y.label,q=y.value;if(I){const W=((T=A==null?void 0:A.data)==null?void 0:T.data)??[];v.value=W;const $=W.map(M=>({[F]:M.label,[q]:M.value})),{id:z}=e,P=d(z);c(z,{...P,...n.unref(x)}),C(z,!0),R($)}else R([])}catch(A){console.error(A)}finally{m.value=!1}},S=n.computed(()=>{var T,A;return(A=(T=e==null?void 0:e.graphicConfig)==null?void 0:T.controlList)==null?void 0:A.find(I=>I.conditionKey==="parentCode")}),w=n.ref(!1);n.watch(D,T=>{!n.unref(w)&&n.unref(S)&&T[n.unref(S).id]&&(w.value=!0,B())},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":{if(n.unref(S)){if(n.unref(D)[n.unref(S).id]){const{mode:T}=e;T==="multiple"||T==="tags"||T==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":g();break}};_e(e,{selectChange:E,refreshData:B});const{setRequest:b}=n.inject(ze,{setRequest:({id:T,sortNum:A,requestFn:I})=>{}});return typeof b=="function"&&b({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{style:t,getPopupContainer:a,myValue:s,selectChange:E,options:i,filterOption:u,loading:m,resultValue:l}}}),c1="",d1="";function Ed(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ji=xe(me(Bd,[["render",Ed],["__scopeId","data-v-e5517626"]])),oa={...we,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},aa=Se(oa),Xi=["selectChange","refreshData"],Dd={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...aa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,C=g.label,D=g.value;let p;const v=m[C],x=m[D];return v!=null?p=v:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[n.unref(t)[0]]):m?r.value=m:g&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=Ve(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();t.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const C=n.unref(t)[0];e.value===""&&C!=null&&(r.value=C[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Te,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});_e(e,{selectChange:y,refreshData:l});const{setRequest:u}=n.inject(ze,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},u1="",h1="";function Rd(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 el=xe(me(Dd,[["render",Rd],["__scopeId","data-v-37236421"]])),ra={...we,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:""},ia=Se(ra),tl=["checkboxChange","click"],Id=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ia},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=v=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=v,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var k,E;if(e.dataType!=="request")return;const v=await s(),x=((E=(k=v==null?void 0:v.data)==null?void 0:k.data)==null?void 0:E.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}});c(e.id,{type:e.type,value:r});const f=Be(e),y=f("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),u=v=>{r.value=v,f("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{y()});const h=et(e),m=async()=>{var v;try{const x=await h(),{data:k}=(x==null?void 0:x.data)||{};if(k){const R=(((v=x==null?void 0:x.data)==null?void 0:v.data)??[]).map(O=>({label:O.label,value:O.value}));i(R)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:C}=n.inject(ze,{setRequest:({id:v,sortNum:x,requestFn:k})=>{}});typeof C=="function"&&C({id:e.id,requestFn:g,sortNum:e.requestSort});const D=v=>{r.value=v.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:u,useImagePath:At,tabChange:D}}}),m1="",y1="",_d=["onClick"];function Od(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,f)=>(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:f,onClick:n.withModifiers(y=>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,_d))),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:f=>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 nl=xe(me(Id,[["render",Od],["__scopeId","data-v-baa84768"]])),la={...we,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},sa=Se(la),ol=["click","refreshData","resetRecord"],$t=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)},ca={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)",allComponentList:[]},da=Se(ca),al=["showModal","hideModal"];function rl(e){const{containerMap:o={},sourceList:t=[]}=e,a=Ne.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!Gt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=t.find(m=>m.id===u)),h&&(y.push(h),["ecanBorder","ecanTabs"].includes(h.type)&&y.push(...Sn(h.id,o,t)))}for(const u of y)Gt(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Pd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function il(e){var i,s;const{combinationMap:o={},sourceList:t=[]}=e,a=e.containerMap,r=Ne.cloneDeep([...e.componentList,...Nd(a,t)]);if(Ld(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){Gt(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const C=r.find(D=>D.id===g);C&&(C.parentId=u,C.sourceLeft=C.left,C.sourceTop=C.top,C.left=parseFloat(C.left)-parseFloat(h.sourceLeft||h.left)+"px",C.top=parseFloat(C.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!Gt(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=Fd(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!Gt(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&["ecanBorder","ecanTabs"].includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),C=h/g;u.scale=C,u.top=parseFloat(u.top)*C-parseFloat(u.height)*(1-C)/2+"px",u.left=parseFloat(u.left)*C-parseFloat(u.width)*(1-C)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return zd(r)}return r}function Ld(e,o){const t=Ne.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=t[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&["ecanBorder","ecanTabs"].includes(d.type)){const c=Sn(d.id,t,o);for(const f of c)e[r.id][s].push(f.id),["ecanBorder","ecanTabs"].includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function Nd(e,o){const t=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(t.push(d),["ecanBorder","ecanTabs"].includes(d.type)&&t.push(...Sn(d.id,e,o)))}}return t}function Sn(e,o,t){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=t.find(d=>d.id===s);l&&(a.push(l),["ecanBorder","ecanTabs"].includes(l.type)&&a.push(...Sn(l.id,o,t)))}return a}function Fd(e,o,t){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=Md(d);if(c){i.push({...c,id:s,keyName:s,parentId:t||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function zd(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=Ne.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Md(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}function Pd(e){const o=e.map(t=>parseFloat(t.left)+parseFloat(t.width)).sort((t,a)=>a-t)[0];return o||0}const qd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Vd(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 Hd=xe(me(qd,[["render",Vd]])),jd=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:ns,Render:Hd},props:{...da},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(Te,{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]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=n.ref("80%"),g=n.ref(0),C=n.ref(),D=n.ref(0),p=n.ref({}),v=Ce(e),x=n.ref({}),k=n.ref(!1),E=n.ref();let R;const O=()=>{C.value=parseFloat(f)/parseFloat(u);const Q=parseFloat(y)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;g.value=le*n.unref(C),D.value=re*Q,m.value=`${n.unref(C)*100}%`,p.value={width:`${n.unref(g)}px`,height:`${n.unref(D)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(v),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(g)/parseFloat(f)},${n.unref(D)/parseFloat(y)})`,width:f,height:y}},N=Ne.debounce(()=>{O()},100),S=()=>{const Q=window.MutationObserver;R=new Q(N),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},w=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},B=n.ref(!1),{touchRequest:b}=n.inject(ze,{touchRequest:()=>{}}),T=n.ref(""),A=()=>{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},I=Be(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),T.value=A(),B.value=!0},q=I("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),B.value=!1}),W=()=>{q()},$=()=>{q(),s()},{setModalModel:z,pushUseModalIds:P,popUseModalIds:M}=n.inject(gr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),_=n.computed(()=>{let Q=e.componentList;const le=Ne.cloneDeep(e.componentList),re=r(),Y=i(),X={containerMap:re,combinationMap:Y};return a&&(Q=il({...X,componentList:le,sourceList:e.allComponentList})),Q=rl({...X,componentList:Q,sourceList:e.allComponentList}),Q}),L=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(Y=>Y.id),z(Q,[...new Set(le)]))};n.watch(()=>B.value,async Q=>{Q?(k.value=!1,P(e.id),L(),await n.nextTick(()=>{O(),window.addEventListener("resize",N),S(),k.value=!0}),b()):(M(),window.removeEventListener("resize",N),w())});const V=n.computed(()=>n.unref(C)>=1),Z=n.computed(()=>e.fullModal),U=n.computed(()=>{let Q="ecan-modal";return n.unref(V)&&(Q+=" ecan-full-width-modal"),n.unref(Z)&&(Q+=" ecan-full-modal"),Q});return _e(e,{showModal:F,hideModal:q}),{modalRef:E,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Z,style:v,visible:B,showModal:F,onOk:W,onCancel:$,isFullWidth:V,wrapClassName:U,ready:k,usedComponentList:_,isMobile:a,readyIds:t,hasOwn:Gt,onComponentReady:Q=>{t.value.push(Q)},formatTitle:T}}}),b1="",v1="";function Wd(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,f)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+f},[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=xe(me(jd,[["render",Wd],["__scopeId","data-v-613a7718"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const Ud=n.defineComponent({name:"EcanPie",props:{...sa},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:w=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const B=e.isUseLabelColors,b=e.colors;w=w.map((T,A)=>({label:B?{color:b[A]}:{},...T}))}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(){$t(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 B;t.value=!0,(B=i.value)==null||B.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:B=>{const{marker:b,seriesName:T,name:A,value:I,percent:F,data:q}=B||{};return De(e.tooltipFormatter,{textData:{marker:b,name:A,value:I,percent:F,a:T,b:A,c:I,d:F,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:w,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:_c(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 w=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:w+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:w}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:B=>{const{data:b}=r.value[0]||{};let T=0,A,I="0%";if(b)for(const F of b)F.name===B&&(A=+F.value),T+=+F.value;return T&&(I=`${(A/T*100).toFixed(2)}%`),nn(e.legendFormatter,{name:B,value:A,percent:I})}}},c=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:y}=n.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,B)=>{}}),{pageMode:u}=n.inject(Pe,{pageMode:"normal"}),h=(w=[],B)=>{const{dataset:b}=Ft(w,B);r.value=b},m=(w=[],B)=>{const b=Ft(w,B);r.value=b.dataset};n.watch(()=>e.data,w=>{(e.dataType==="static"||n.unref(u)==="design")&&h(w)},{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 g=n.ref(!1),C=Ve(e),D=async()=>{var w,B;if(e.dataType==="request")try{g.value=!0;const b=await C();h((B=(w=b==null?void 0:b.data)==null?void 0:w.data)==null?void 0:B.rows,e.valueTypeDataFieldNames)}catch(b){console.error(b)}finally{g.value=!1}},p=Be(e);y(e.id,{type:e.type,RECORD:""});const v=p("click",w=>{const B=f(e.id);y(e.id,{...B,type:e.type,RECORD:w==null?void 0:w.data})}),x=et(e),k=async()=>{var w;try{g.value=!0;const B=await x(),{data:b}=(B==null?void 0:B.data)||{};if(b){const{columns:T=[],rows:A=[]}=((w=B==null?void 0:B.data)==null?void 0:w.data)??{};let I=[];if(T.length>0){const F=T[0],q=T[1];I=A.filter(W=>!!W).map(W=>({name:W[F],value:isNaN(W[q])?0:W[q]||0}))}m(I)}}catch(B){console.error(B)}finally{g.value=!1}},{loadedData:E}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(E,w=>{if(e.dataType==="indicator"){const B=tn(e.graphicConfig);B!=null&&B.length&&(!n.unref(R)&&it(e.graphicConfig,w)?(R.value=!0,O()):it(e.graphicConfig,w)||(R.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,n.unref(E))&&k();break;case"request":D();break}};_e(e,{resetRecord:()=>{const w=e.id,B=f(w);y(w,{...B,RECORD:""})},refreshData:O,click:v}),o({refreshData:O});const{setRequest:S}=n.inject(ze,{setRequest:w=>{}});return typeof S=="function"&&S({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:g,ecanModal:i}}}),C1="";function Gd(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 ll=xe(me(Ud,[["render",Gd]])),fa={...we,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,yAxisName:"",xAxisName:""},ua=Se(fa),sl=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const $d=n.defineComponent({name:"EcanLine",props:{...ua},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 f;const y=n.ref([]),u=n.computed(()=>{const A=e.xAxisLabelFormatter,I=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(){$t(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(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:F=>{var z;const q=F.length;let W="",$=e.tooltipFormatter;f=(z=F[0])==null?void 0:z.data,$===""&&($="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:_,name:L,value:V,data:Z}=F[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${lt(A,U)}<br/>`}W+=De($,{textData:{marker:M,name:L,value:V,a:_,b:L,c:V||0,...Z}},{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 q={};return F&&typeof F=="object"?q={...F}:q={value:F},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),lt(A,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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 lt(I,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},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(y).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>nn(e.legendFormatter,{name:F})},series:n.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=n.inject(Te,{getGlobalModel:A=>{},setGlobalModel:(A,I)=>{}}),{pageMode:C}=n.inject(Pe,{pageMode:"normal"}),D=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(A=[],I=!1)=>{let F;if(e.dataFieldConfigType==="key"){const z=I?e.keyTypeDataFieldNames:null;F=wt(A,z)}else if(e.dataFieldConfigType==="value"){const z=I?e.valueTypeDataFieldNames:null;F=Ft(A,z)}s.value=F.dimensions,y.value=F.dataset;const q=F.dataset,W=[],$=q.length;for(let z=0;z<$;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[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,...P},...n.unref(D)})}i.value=W},v=(A=[],I,F=!1)=>{const W=wt(A,F?I:null,!0);s.value=W.dimensions,y.value=W.dataset;const $=W.dataset,z=[],P=$.length;for(let M=0;M<P;M++){const _={};e.shadowColor&&(_.shadowColor=e.shadowColor,_.shadowBlur=e.shadowBlur,_.shadowOffsetY=e.shadowOffsetY,_.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...$[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,..._},...n.unref(D)})}i.value=z};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],([A])=>{(e.dataType==="static"||n.unref(C)==="design")&&p(A)},{immediate:!0,deep:!0});const x=n.ref(!1),k=Ve(e),E=async()=>{var A,I;if(e.dataType==="request")try{x.value=!0;const F=await k();p((I=(A=F==null?void 0:F.data)==null?void 0:A.data)==null?void 0:I.rows,!0)}catch(F){console.error(F)}finally{x.value=!1}},R=Be(e);g(e.id,{type:e.type,RECORD:""});const O=R("click",A=>{const I=m(e.id);g(e.id,{...I,type:e.type,RECORD:e.tooltipShow?f:A.data})}),N=A=>{t.value.chart.containPixel("grid",[A.offsetX,A.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const S=et(e),w=async()=>{var A;try{x.value=!0;const I=await S(),{columns:F=[],rows:q=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map($=>({label:$,value:$}))}),v(q,W,!0)}catch(I){console.error(I)}finally{x.value=!1}},B=()=>{switch(e.dataType){case"indicator":w();break;case"request":E();break}};_e(e,{refreshData:B,resetRecord:()=>{const A=e.id,I=m(A);g(A,{...I,RECORD:""})},click:O});const{setRequest:T}=n.inject(ze,{setRequest:A=>{}});return typeof T=="function"&&T({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{option:u,style:r,click:O,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),A1="";function Kd(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 cl=xe(me($d,[["render",Kd]])),ha={...we,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,yAxisName:"",xAxisName:""},ga=Se(ha),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanBar",props:{...ga},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Ce(e),d=n.ref([]),c=n.ref(),f=n.ref({});let y;const u=n.computed(()=>a.value?Ue:12),h=n.computed(()=>{const{gradientShow:M,gradientColors:_,gradientOffset:L,barBorderRadius:V}=e,Z=n.unref(d),U=Z.length,ae=[];for(let Q=0;Q<U;Q++){const le={...Z[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:te,name:pe,value:Ae,data:Ee}=re||{};return Y+=De(X,{textData:{name:pe,value:Ae,a:te,b:pe,c:Ae||0,...Ee}},{useNewline:!0,useSpace:!0}),Y}},le.itemStyle={},M&&(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:L,color:_[Q]},{offset:1,color:_[Q]}]}}),V){const re=V.split(",");if(re!=null&&re.length){const Y=[];for(const X of re){const te=parseFloat(X);isNaN(te)||Y.push(te)}le.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=n.ref([]),g=n.ref(!1),C=n.computed(()=>{const M=e.yAxisLabelFormatter,_=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 L=t.value.chart.getOption(),{xAxis:V}=L||{};V&&V.length&&(s.value=V[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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const V=L.length;let Z="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Q=0;Q<V;Q++){const{marker:le,seriesName:re,name:Y,value:X,data:te}=L[Q]||{};if(Q===0){let pe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(pe=(+Y).toString()),Z+=`${lt(_,pe)}<br/>`}Z+=De(U,{textData:{marker:le,name:Y,value:X,a:re,b:Y,c:X||0,...te}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.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((L,V)=>({name:L.name,itemStyle:{color:e.colors[V]},icon:e.legendType})),formatter:L=>nn(e.legendFormatter,{name:L})},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(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(_,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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(L){return lt(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:n.unref(h)}}),{pageMode:D}=n.inject(Pe,{pageMode:"normal"}),p=()=>{a.value=!1},v=(M=[],_=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const V=_?e.keyTypeDataFieldNames:null;L=wt(M,V)}else if(e.dataFieldConfigType==="value"){const V=_?e.valueTypeDataFieldNames:null;L=Ft(M,V)}d.value=L.dataset,m.value=L.dimensions},x=(M=[],_,L=!1)=>{const Z=wt(M,L?_:null,!0);d.value=Z.dataset,m.value=Z.dimensions},k=n.computed(()=>n.unref(m).map(M=>{let _={};return M&&typeof M=="object"?_={...M}:_={value:M},_}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||n.unref(D)==="design")&&v(M)},{immediate:!0,deep:!0});const E=Ve(e),R=async()=>{var M,_;try{g.value=!0;const L=await E();v((_=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:_.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},O=et(e),N=async()=>{var M;try{g.value=!0;const _=await O(),{columns:L=[],rows:V=[]}=((M=_==null?void 0:_.data)==null?void 0:M.data)??{};let Z;L.length>0&&(Z={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),x(V,Z,!0)}catch(_){console.error(_)}finally{g.value=!1}},{loadedData:S}=n.inject(bt,{loadedData:{}}),w=n.ref(!1);n.watch(S,M=>{if(e.dataType==="indicator"){const _=tn(e.graphicConfig);_!=null&&_.length&&(!n.unref(w)&&it(e.graphicConfig,M)?(w.value=!0,B()):it(e.graphicConfig,M)||(w.value=!1))}},{deep:!0});const B=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,n.unref(S))&&N();break;case"request":R();break}},b=(M,_)=>!!n.unref(s)[_.value].value.includes(M),T=async()=>{r.value=!1;const M=t.value.chart.getOption();for(let _=0;_<7;_++)await A(M,_)},A=(M,_)=>new Promise(L=>{setTimeout(()=>{const{series:V,color:Z,xAxis:U}=M,ae=t.value.chart,{splitArea:Q={}}=U[0]||{};V.forEach((le,re)=>{const Y=le.data;let X="";_%2?X=Z[re]+"a8":X=Z[re],Y[i.value].itemStyle={color:X}}),_%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:V,xAxis:U}),L()},200)});o({refreshData:B});const I=Be(e),{getGlobalModel:F,setGlobalModel:q}=n.inject(Te,{getGlobalModel:M=>{},setGlobalModel:(M,_)=>{}});q(e.id,{type:e.type,RECORD:""});const W=I("click",M=>{const _=F(e.id);q(e.id,{..._,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:$}=n.inject(ze,{setRequest:M=>{}});typeof $=="function"&&$({id:e.id,requestFn:B,sortNum:e.requestSort});const z=()=>{const M=e.id,_=F(M);q(M,{..._,RECORD:""})},P=M=>{t.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=W,_e(e,{refreshData:B,click:W,resetRecord:z}),{option:C,style:l,refreshData:B,click:W,loading:g,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:T,onFilterOption:b,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),T1="",B1="",Yd=e=>(n.pushScopeId("data-v-21d7ed90"),e=e(),n.popScopeId(),e),Qd={class:"location-wrap"},Jd=Yd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Xd(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"),f=n.resolveComponent("a-select"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Qd,[Jd,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),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,(u,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=xe(me(Zd,[["render",Xd],["__scopeId","data-v-21d7ed90"]])),ma={...we,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",yAxisName:"",xAxisName:""},ya=Se(ma),ul=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const ef=n.defineComponent({name:"EcanScatter",props:{...ya},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,E=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(){$t(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(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),lt(k,R)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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 lt(E,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(R){var b;const{marker:O,seriesName:N}=R,S=((b=R==null?void 0:R.data)==null?void 0:b.record)??{},{name:w,value:B}=S;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:w,c:B,...S}})},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(Te,{getGlobalModel:k=>{},setGlobalModel:(k,E)=>{}}),{pageMode:f}=n.inject(Pe,{pageMode:"normal"}),y=(k=[],E)=>{const{name:R="name",value:O="value"}=E||{};a.value=k.map(N=>({value:[N[R],N[O]],record:N}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(f)==="design")&&y(k)},{immediate:!0,deep:!0});const u=n.ref(!1),h=Ve(e),m=async()=>{var k,E;if(e.dataType==="request"){u.value=!0;try{const R=await h();y((E=(k=R==null?void 0:R.data)==null?void 0:k.data)==null?void 0:E.rows,e.dataFieldNames)}catch(R){console.error(R)}finally{u.value=!1}}},g=()=>{o.value=!1},C=Be(e);c(e.id,{type:e.type,RECORD:""});const D=C("click",k=>{const E=e.id,R=d(E);c(E,{...R,type:e.type,RECORD:k==null?void 0:k.data})});_e(e,{refreshData:()=>{m()},click:D,resetRecord:()=>{const k=e.id,E=d(k);c(k,{...E,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:D,loading:u,onClose:g,ecanModal:r}}}),D1="";function tf(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 hl=xe(me(ef,[["render",tf]])),xa={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},pa=Se(xa),nf=n.defineComponent({name:"EcanCustomGraph",props:{...pa},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:Kl}}});function of(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 gl=xe(me(nf,[["render",of]])),ba={...we,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,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},va=Se(ba),ml=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const af=n.defineComponent({name:"EcanComboGraph",props:{...va},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=Ce(e),f=n.ref([]),y=n.ref([]),u=n.ref(),h=n.ref([]),m=n.computed(()=>a.value?Ue:12),g=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 _=t.value.chart.getOption(),{xAxis:L}=_||{};L&&L.length&&(s.value=L[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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;a.value=!0,(_=u.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{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((_,L)=>({name:_.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:_=>nn(e.legendFormatter,{name:_})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:_=>{var ae;const L=_.length;let V="",Z=e.tooltipFormatter;d=(ae=_[0])==null?void 0:ae.data,Z===""&&(Z="{marker} {a} {c}");const U=e.seriesTypes;for(let Q=0;Q<L;Q++){const le=U[Q],{tooltipFormatter:re}=le||{},{marker:Y,seriesName:X,name:te,value:pe,data:Ae}=_[Q]||{};if(Q===0){let Ee=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(Ee=(+te).toString()),V+=`${lt(e.xAxisLabelFormatter,Ee)}<br/>`}V+=De(re||Z,{textData:{marker:Y,name:te,value:pe,seriesName:X,a:X,b:te,c:pe||0,...Ae}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(y).map(_=>{let L={};return _&&typeof _=="object"?L={..._}:L={value:_},L}),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(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),lt(e.xAxisLabelFormatter,_)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:n.unref(k),series:n.unref(f)})),{pageMode:C}=n.inject(Pe,{pageMode:"normal"}),D=()=>{a.value=!1},p=(_=[],L=!1)=>{let V;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;V=wt(_,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;V=Ft(_,U)}y.value=V.dimensions;const Z=V.dataset;h.value=V.dataset,f.value=x(Z)},v=(_=[],L,V=!1)=>{const U=wt(_,V?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=x(ae)};function x(_){const L=[],V=_.length,Z=e.seriesTypes;for(let U=0;U<V;U++){const ae=Z[U],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,..._[U]};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[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(Q==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:te}=e,pe={};if(e.barBorderRadius){const Ae=e.barBorderRadius.split(",");if(Ae!=null&&Ae.length){const Ee=[];for(const $e of Ae){const Me=parseFloat($e);isNaN(Me)||Ee.push(Me)}pe.borderRadius=Ee}}Y&&(pe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:te,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:pe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}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],([_])=>{(e.dataType==="static"||n.unref(C)==="design")&&p(_)},{immediate:!0,deep:!0});const k=n.computed(()=>{const _=e.yAxis;return _==null?void 0:_.map((L,V)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:V===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:V===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Z){return lt(L.axisLabelFormatter,Z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:V===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:V===0?"right":"left"}}))}),E=n.ref(!1),R=Ve(e),O=async()=>{var _,L;if(e.dataType==="request")try{E.value=!0;const V=await R();p((L=(_=V==null?void 0:V.data)==null?void 0:_.data)==null?void 0:L.rows,!0)}catch(V){console.error(V)}finally{E.value=!1}},N=et(e),S=async()=>{var _;try{E.value=!0;const L=await N(),{columns:V=[],rows:Z=[]}=((_=L==null?void 0:L.data)==null?void 0:_.data)??{};let U;V.length>0&&(U={name:V[0],types:V.slice(1).map(ae=>({label:ae,value:ae}))}),v(Z,U,!0)}catch(L){console.error(L)}finally{E.value=!1}},{loadedData:w}=n.inject(bt,{loadedData:{}}),B=n.ref(!1);n.watch(w,_=>{if(e.dataType==="indicator"){const L=tn(e.graphicConfig);L!=null&&L.length&&(!n.unref(B)&&it(e.graphicConfig,_)?(B.value=!0,b()):it(e.graphicConfig,_)||(B.value=!1))}},{deep:!0});const b=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,n.unref(w))&&S();break;case"request":O();break}},T=(_,L)=>!!n.unref(s)[L.value].value.includes(_),A=async()=>{r.value=!1;const _=t.value.chart.getOption();for(let L=0;L<7;L++)await I(_,L)},I=(_,L)=>new Promise(V=>{setTimeout(()=>{const{series:Z,color:U,xAxis:ae}=_,Q=t.value.chart,{splitArea:le={}}=ae[0]||{};Z.forEach((re,Y)=>{const X=re.data;let te="";L%2?te=U[Y]+"a8":te=U[Y],X[i.value].itemStyle={color:te}}),L%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,Y)=>Y===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:Z,xAxis:ae}),V()},200)});o({refreshData:b});const F=Be(e),{getGlobalModel:q,setGlobalModel:W}=n.inject(Te,{getGlobalModel:_=>{},setGlobalModel:(_,L)=>{}});W(e.id,{type:e.type,RECORD:""});const $=F("click",_=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:_==null?void 0:_.data})}),z=_=>{t.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=$;const{setRequest:P}=n.inject(ze,{setRequest:_=>{}});return typeof P=="function"&&P({id:e.id,requestFn:b,sortNum:e.requestSort}),_e(e,{resetRecord:()=>{const _=e.id,L=q(_);W(_,{...L,RECORD:""})},refreshData:b,click:$}),{style:c,option:g,click:$,loading:E,onClose:D,ecanModal:u,echartRef:t,handleLocationOk:A,onFilterOption:T,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),_1="",O1="",rf=e=>(n.pushScopeId("data-v-1858b3c3"),e=e(),n.popScopeId(),e),lf={class:"location-wrap"},sf=rf(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function cf(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"),f=n.resolveComponent("a-select"),y=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(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",lf,[sf,n.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),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,(u,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const yl=xe(me(af,[["render",cf],["__scopeId","data-v-1858b3c3"]])),Sa={...we,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},Ca=Se(Sa),xl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const df=n.defineComponent({name:"EcanRadar",props:{...Ca},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),f=n.computed(()=>{const b=n.unref(d),T=b.length,A=[];for(let I=0;I<T;I++){const{name:F,data:q=[]}=b[I],W=[{name:F,value:q.map(P=>P.value)}];let $=e.colors[I];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;$={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[I]},{offset:P,color:M[I]},{offset:1,color:M[I]}]}}const z={type:"radar",name:F,data:W,areaStyle:{color:$,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:M,value:_}=P;let L=0,V="0%";if(M)for(const Z of M.value)L+=+Z;return L&&(V=`${(_/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:_,percent:V}},{useNewline:!1,useSpace:!1})}}};A.push(z)}return A}),y=n.computed(()=>{var F;const b=[],T=[],A=n.unref(d),I=A.length;for(let q=0;q<I;q++){const{data:W=[]}=A[q];for(let $=0;$<W.length;$++)T.push(W[$].value)}if((F=i.value)!=null&&F.length){const q=T!=null&&T.length?Math.max(...T)*1.2:0;for(const W of i.value)b.push({name:W,max:q})}return b}),u=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(){$t(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 b;a.value=!0,(b=s.value)==null||b.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:b=>{let T="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let I=0;I<n.unref(y).length;I++){const F=n.unref(y)[I],{marker:q,seriesName:W,value:$}=b||{};I===0&&W&&(T+=`${W}<br/>`),T+=De(A,{textData:{marker:q,name:F.name,value:$[I],a:F.name,b:F.name,c:$[I]||0,type:W}},{useNewline:!0,useSpace:!0}),T+="<br/>"}return T},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(y),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(b=>({name:b.name,icon:e.legendType})),formatter:b=>nn(e.legendFormatter,{name:b})},series:n.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=n.inject(Te,{getGlobalModel:b=>{},setGlobalModel:(b,T)=>{}}),{pageMode:C}=n.inject(Pe,{pageMode:"normal"}),D=(b=[],T=!1)=>{let A;if(e.dataFieldConfigType==="key"){const I=T?e.keyTypeDataFieldNames:null;A=wt(b,I)}else if(e.dataFieldConfigType==="value"){const I=T?e.valueTypeDataFieldNames:null;A=Ft(b,I)}i.value=A.dimensions,d.value=A.dataset},p=(b=[],T,A=!1)=>{const F=wt(b,A?T: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],([b])=>{(e.dataType==="static"||n.unref(C)==="design")&&D(b)},{immediate:!0,deep:!0});const v=n.ref(!1),x=Ve(e),k=async()=>{var b,T;if(e.dataType==="request")try{v.value=!0;const A=await x();D((T=(b=A==null?void 0:A.data)==null?void 0:b.data)==null?void 0:T.rows,!0)}catch(A){console.error(A)}finally{v.value=!1}},E=Be(e);g(e.id,{type:e.type,RECORD:""});const R=b=>{const T=b.event.topTarget.__dimIdx;T!==void 0&&E("click",()=>{var q;const{value:A,name:I}=b.data||{},F=m(e.id);g(e.id,{...F,type:e.type,RECORD:{[n.unref(c)]:((q=n.unref(y)[T])==null?void 0:q.name)||"",[I]:A[T],seriesName:I}})})()},O=et(e),N=async()=>{var b;try{v.value=!0;const T=await O(),{columns:A=[],rows:I=[]}=((b=T==null?void 0:T.data)==null?void 0:b.data)??{};let F;A.length>0&&(c.value=A[0],F={name:A[0],types:A.slice(1).map(q=>({label:q,value:q}))}),p(I,F,!0)}catch(T){console.error(T)}finally{v.value=!1}},S=()=>{switch(e.dataType){case"indicator":N();break;case"request":k();break}};_e(e,{refreshData:S,resetRecord:()=>{const b=e.id,T=m(b);g(b,{...T,RECORD:""})},click:R});const{setRequest:B}=n.inject(ze,{setRequest:b=>{}});return typeof B=="function"&&B({id:e.id,requestFn:S,sortNum:e.requestSort}),o({refreshData:S}),{option:u,style:r,click:R,loading:v,onClose:h,ecanModal:s,echartRef:t}}}),N1="";function ff(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 pl=xe(me(df,[["render",ff]])),uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",hf="data:image/png;base64,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",gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",mf="data:image/png;base64,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",wa={...we,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"},Aa=Se(wa),bl=["click"],yf=n.defineComponent({name:"EcanBorder",props:{...Aa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:C,gradientOffset:D,gradientAngle:p,backgroundColor:v}=e;if(g){let x=C;return m&&(x="transparent"),x?{background:`linear-gradient(${p}, ${v}, ${x} ${D*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(D=>D.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=n.inject(Pe,{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":uf,"../../assets/border-title-decoration-left2.png":hf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":gf,"../../assets/border-title-decoration-right2.png":mf})[`../../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,g=[],C={};if(m){const D=m.split(",");for(const p of D)(+p||+p==0)&&g.push(+p+"px")}return g!=null&&g.length&&(C.borderRadius=g.join(" ")),C}),y=Be(e)("click",()=>{}),u=n.ref([]);n.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),_e(e,{click:y});const{setGlobalModel:h}=n.inject(Te,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:t,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),z1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),xf=["id"],pf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),vf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Sf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Cf={class:"title-item"},wf=["src"],Af={class:"title"},kf=["src"],Tf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),Bf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),Ef=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Df=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Rf={key:2,class:"left-title"},If={class:"title"};function _f(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},[pf,bf,vf,Sf],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",Cf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,wf),n.createElementVNode("div",Af,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,kf)])],2),Tf,Bf,Ef,Df],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",Rf,[n.createElementVNode("div",If,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,xf)}const vl=xe(me(yf,[["render",_f],["__scopeId","data-v-8dd53b8f"]])),ka={...we,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",isAutoScroll:!1,scrollSpeed:.3,componentList:[]},Ta=Se(ka),Sl=["tabChange"],Of=n.defineComponent({name:"EcanTabs",props:{...Ta},components:{ASelect:se.Select,ASelectOption:se.SelectOption,MarqueeScroll:ur},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,m=>{t.value=m},{immediate:!0});const{pageMode:a}=n.inject(Pe,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(n.unref(s))?n.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const g=n.unref(t)+1;g<=m?t.value=g:t.value=0,l.value=n.unref(s)[n.unref(t)],y()},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,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>t.value===m,c=Be(e),{setGlobalModel:f}=n.inject(Te,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:t});const{emitRefreshPage:y}=n.inject(Xt,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==n.unref(t)&&(l.value=m,t.value=g,y())})()},h=n.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,C)=>C-g)[0];return{width:m?m+"px":"100%"}});return _e(e,{tabChange:u}),{style:o,activeKey:t,isActive:d,tabChange:u,myData:s,useImagePath:At,pageMode:a,scrollWrapStyle:h}}}),P1="",Lf=["id"],Nf=["onClick"];function Ff(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select"),d=n.resolveComponent("marquee-scroll");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?(n.openBlock(),n.createElementBlock("div",{key:0,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,(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?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:f,onClick:n.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.title),5)],12,Nf))),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,(c,f)=>(n.openBlock(),n.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(n.openBlock(),n.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:n.normalizeStyle({height:e.height})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"scroll-wrap",style:n.normalizeStyle(e.scrollWrapStyle)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.componentList,c=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):n.createCommentVNode("",!0)],12,Lf)}const Cl=xe(me(Of,[["render",Ff],["__scopeId","data-v-132544b5"]])),Ba={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ea=Se(Ba),wl=["click"],Da=n.defineComponent({name:"EcanImage",props:{...Ea},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Pe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Te,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Be(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||"",f=Ci(n.unref(a),c),y=e.href;let u=y||f;u=De(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return _e(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),Al=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},kl=Da.setup;Da.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const V1="",zf=["src"];function Mf(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,zf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Tl=xe(me(Da,[["render",Mf],["__scopeId","data-v-47ea6e7c"]])),Ra={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ia=Se(Ra),Pf=n.defineComponent({name:"EcanIframe",props:{...Ia},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Pe,{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=`${Ts||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),j1="",qf=["src"];function Vf(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,qf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Bl=xe(me(Pf,[["render",Vf],["__scopeId","data-v-19bc100c"]])),_a={...we,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},Oa=Se(_a),El=["click","refreshData","resetRecord","exportTableData"],Hf="data:image/png;base64,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",jf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",Wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",La=n.defineComponent({name:"EcanTable",components:{Skeleton:sn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Oa},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const H=Ne.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),f=()=>{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 K=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 ne=0;if(oe&&(K-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(ne=(ie==null?void 0:ie.clientHeight)||0,K-=ne),e.paginationShow){let ee=0;ee=f(),ee&&(K-=ee)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,n.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;ne!==fe&&n.unref(c)&&(c.value=K+ne-fe)}})})});const y=n.ref([]),u=n.ref([]),h=n.ref([]),m=n.ref([]),g=n.ref(0),C=n.ref(1),D=n.ref(e.paginationPageSize||10),p=n.reactive([]),v=(H=[])=>{var K,J;if(Array.isArray(H)&&H.length>0){let oe=H.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=n.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ne=[]}}=e;H.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Le in n.unref(a)[fe])["dataIndex","title"].includes(Le)||(ee[Le]=n.unref(a)[fe][Le]);const he=ne.find(Le=>Le.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let ne=oe-1;ne>=0;ne--)(J=H[ne])!=null&&J.isHidden&&H.splice(ne,1);oe=H.length;for(let ne=0;ne<oe;ne++){const ee=H[ne];if(ne<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ye=ee.dataIndex;ee.sorter=(_t,Kt)=>_t[Ye]-Kt[Ye]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Le,tableFilter:Ze,headerCellAlign:yt,headerCellColor:It,overflow:Cn}=ee;Ze&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ye,_t)=>_t[ge].toString().toLowerCase().includes(Ye.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=(Ye,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(V)===_t&&e.clickHighlight},onClick:$("click",()=>{const Kt=e.id,wn=z(Kt);Ye={dataIndex:ge,title:Le,...Ye},P(Kt,{...wn,type:e.type,RECORD:Ye})})}),Cn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&v(ee.children)}}},x=(H=[])=>{var J;let K=Ne.cloneDeep(H);return(J=n.unref(m))!=null&&J.length&&(K=Ne.cloneDeep(n.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(K),K};n.watch(D,()=>{C.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],()=>{y.value=x(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([H,K])=>{K==="static"&&(u.value=H)},{immediate:!0});const k=n.ref({}),E=H=>{if(Array.isArray(H)){const K=H.length,J=p,oe=J.length,ie={};for(let ee=0;ee<K;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 Le=new Set;Le.add(fe[ge]),ie[ge]=Le}}}const ne={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);ne[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=ne}};n.watch(()=>[e.isReverse,y.value,u.value],()=>{const H=n.unref(y),K=n.unref(u);if(E(K),e.isReverse){const{columns:J,dataSource:oe}=R(Ne.cloneDeep(H),Ne.cloneDeep(K));h.value=J,l.value=oe}else h.value=H,l.value=K},{immediate:!0});const R=(H,K)=>{const J=H[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<K.length;ne++){const ee=K[ne],fe="col"+(ne+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let ne=1;ne<H.length;ne++){const ee=H[ne],fe={col0:ee.title};for(let he=0;he<K.length;he++){const ge=K[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},O=n.ref(""),N=Ve(e),S=async(H=!0,K={})=>{var J;try{H&&(t.value=!0),n.unref(O)&&(K.orderCondition=n.unref(O)),e.paginationShow&&(K={pageNum:n.unref(C),pageSize:n.unref(D)||"10",layer:"1",...K});const oe=await N(K),{rows:ie=[],total:ne=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=ne,Array.isArray(ie)&&(u.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(()=>{se.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},w=({current:H},K,J)=>{if(C.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?O.value=oe+" "+ee:ee||(O.value="")}e.isSortByFront||Q(!1)},B=n.computed(()=>{const H=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:K,total:n.unref(g),current:n.unref(C),pageSize:n.unref(D)||"10",showSizeChanger:!1,size:"large",...J}}),b=H=>+H==1?"是":+H==0?"否":H,T=(H,K)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=K;if(J==null||J==="")return H;const ne={money:Do,percentage:bn,contrast:bn,boolean:b,decimals:Lc,custom:Si};return ne[J]?J==="decimals"?ne[J](H,oe)||"":J==="custom"?ne[J](H,ie)||"":ne[J](H)||"":""},A=H=>H==="contrast"?"upDown":"",I=H=>{const{text:K,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=H;if(J==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(K+"");return ee>=0?ne.color=ie:ee<0&&(ne.color=oe),ne}else return{}},F=n.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),q=H=>{const{text:K,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:ie}=e,ne=parseFloat(K+""),ee={width:ie,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:ne<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=H=>{const K=parseFloat(H+"");if(K>=0)return Lo;if(K<0)return No},$=Be(e),{getGlobalModel:z,setGlobalModel:P}=n.inject(Te,{getGlobalModel:H=>{},setGlobalModel:(H,K)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(H=[],K=[])=>{const J=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ne.cloneDeep(J),y.value=x(J),u.value=K},_=et(e),L=async(H=!0)=>{var K,J,oe,ie;try{H&&(t.value=!0);const ne=n.unref(O).split(" "),ee={};e.isSortByFront||(ee.sort={order:ne[1],field:ne[0]});const fe=await _(ee);M((J=(K=fe==null?void 0:fe.data)==null?void 0:K.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(ne){console.error(ne)}finally{t.value=!1}},V=n.ref(-1),Z=(H,K)=>({onClick:$("rowClick",()=>{const J=e.id,oe=z(J);P(J,{...oe,type:e.type,RECORD:H}),V.value=K})}),{loadedData:U}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch(U,H=>{if(e.dataType==="indicator"){const K=tn(e.graphicConfig);K!=null&&K.length&&(!n.unref(ae)&&it(e.graphicConfig,H)?(ae.value=!0,Q()):it(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Q=(H=!0)=>{switch(e.dataType){case"request":S(H);break;case"indicator":it(e.graphicConfig,n.unref(U))&&L(H);break}},le=()=>{const H=e.id,K=z(H);P(H,{...K,type:e.type,RECORD:""})},re=n.computed(()=>{const H=n.unref(h);let K=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(K=H.findIndex(he=>he.dataIndex===J),K<0&&(K=0));const ie=[];let ne=0;for(let he=0;he<H.length;he++){const ge=H[he],{isCalcTotal:Le}=ge;he===K?ie.push({...ge,total:oe}):Le?(ie.push({...ge,index:he,total:0}),ne++):ie.push({...ge})}if(ne===0)return[];const ee=n.unref(l),fe=Y(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Le=0;const{isCalcTotal:Ze,dataIndex:yt}=ge;if(Ze===!0){for(let It=0;It<ee.length;It++){const Ye=+ee[It][yt];isNaN(Ye)||(Le=new Gl.Big(Le).add(Ye).toNumber())}ge.total=Le}}return fe});function Y(H){var J;const K=[];for(const oe of H)(J=oe.children)!=null&&J.length?K.push(...Y(oe.children)):K.push(oe);return K}const{setRequest:X}=n.inject(ze,{setRequest:H=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const te=(H="",K)=>De(H,K),pe=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},Ae=(H,K="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},Ee=(H,K)=>{H(K.filterCheckboxGroupValue)},$e=(H,K)=>{H({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Me=()=>{},Ie=H=>{const K=H.dataIndex;if(typeof K=="string"){let J=n.unref(k)[K];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[]},ke=async()=>{var ge,Le;const H="EXPORT_KEY";se.message.loading({key:H,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};n.unref(O)&&(Ze.orderCondition=n.unref(O));const yt=await N(Ze);K=((Le=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Le.rows)||{}}const J=n.unref(h),oe=[],ie=[];J==null||J.forEach(Ze=>{oe.push(Ze.dataIndex),ie.push(Ze.title)});const ne=K.map(Ze=>Ne.pick(Ze,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,ne,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:H,content:"导出成功"})},He=(H,K=2)=>{const J=+H*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};_e(e,{resetRecord:le,refreshData:Q,exportTableData:ke});const Fe=(H,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ke=n.computed(()=>{let H=0;const{height:K,isPageBottom:J}=e;return J&&K&&(H=parseFloat(K)-f()),H?H+"px":"100%"}),We=n.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),je=n.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),ut=n.computed(()=>parseFloat(e.fontSize)+16),tt=n.computed(()=>{let H="";const{paginationColor:K,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:ne}=e;return K&&(H+="p-color "),J&&(H+="p-bg-color "),oe&&(H+="active-p-color "),ie&&(H+="active-p-bg-color "),ne&&(H+="hover-bg-color "),H});return{x:d,y:c,style:s,customRow:Z,pagination:B,formatFn:T,contrastClass:A,tableChange:w,summaryList:re,loading:t,onTouchHrefEvent:Ae,handleHref:te,handleHrefTarget:pe,useRowIndex:V,tableColumns:h,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:Ee,onResetFilter:$e,onSearchFilterOptions:Me,exportTableData:ke,handleProgressText:He,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Fe,tableHeight:Ke,tableHeaderBgColor:We,tableBodyBgColor:je,getChgStyle:I,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:Hf,seqIcon2:jf,seqIcon3:Wf,iconSize:ut,containerClass:tt,getCellStyle:H=>{const{overflow:K}=H;if(K==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(K==="wrap")return{}}}}}),Dl=()=>{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}))},Rl=La.setup;La.setup=Rl?(e,o)=>(Dl(),Rl(e,o)):Dl;const U1="",G1="",Uf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Gf=["id"],$f={key:0,class:"table-tool"},Kf=n.createTextVNode("导出数据"),Zf=n.createTextVNode(" 搜索 "),Yf=n.createTextVNode(" 重置 "),Qf=["src","width","height"],Jf=["src","width","height"],Xf=["src","width","height"],eu={key:1},tu={key:1,class:"action-list"},nu=["href","target","onClick"],ou={key:2,class:"progress-cell"},au=["title"],ru=["title"],iu=["src"],lu=["title"],su=["src"],cu={class:"ant-pagination-options-quick-jumper"},du=Uf(()=>n.createElementVNode("span",null,"条 / 页",-1));function fu(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"),f=n.resolveComponent("a-table-summary-row"),y=n.resolveComponent("a-table-summary"),u=n.resolveComponent("a-table"),h=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(h,{loading:e.loading},{default:n.withCtx(()=>{var m;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",$f,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Kf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(u,{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:g,selectedKeys:C,setSelectedKeys:D,confirm:p,clearFilters:v})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(D,g)},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(()=>[Zf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(v,g),["stop"])},{default:n.withCtx(()=>[Yf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:g,index:C,text:D,record:p})=>{var v,x,k,E;return[g.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[C===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Qf)):C===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Jf)):C>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Xf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(C+1),5)],64)):(n.openBlock(),n.createElementBlock("span",eu,n.toDisplayString(C+1),1))],64)):g.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",tu,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(R,O)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:O},[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:N=>e.onTouchHrefEvent(R.target,e.handleHref(R.href,p))},n.toDisplayString(R.title),13,nu)]))),128))])):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",ou,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(D,g.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(D)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(D,g.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((v=g==null?void 0:g.customFormatter)==null?void 0:v.split("{value}")[0])||""},n.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,au)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(g.format)]),style:n.normalizeStyle(e.getChgStyle({...g,text:D})),title:g.format!=null?e.formatFn(D,g):D},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...g,text:D})),src:e.getChgBoxImgSrc(D)},null,12,iu)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(g.format!=null?e.formatFn(D,g):D),1)],14,ru),g.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((k=g==null?void 0:g.customFormatter)==null?void 0:k.split("{value}")[1])||""},n.toDisplayString(((E=g==null?void 0:g.customFormatter)==null?void 0:E.split("{value}")[1])||""),9,lu)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(f,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(g,C)=>(n.openBlock(),n.createBlock(c,{key:C,index:C,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(g.format)]),style:n.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,su)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),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",cu,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[n.vModelText,e.pageSize]]),du])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Gf)}const Il=xe(me(La,[["render",fu],["__scopeId","data-v-f641124f"]])),Na={...we,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"},Fa=Se(Na),_l=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const uu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Fa},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)),f=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=n.computed(()=>{const b=e.symbolImage;return e.symbolImage?"image://"+At(b):"circle"}),u=b=>{let T=e.tooltipFormatter;const A=T.match(/\{(.+?)\}/g);if(A==null||A.length===0)return T;for(let I=0;I<A.length;I++){const F=A[I];let q=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=q.match(W);for(let z=0;z<$.length;z++){const P=$[z],M=b[P];M!=null&&(q=q.replace(P,M))}T=T.replace(F,q)}return T.split(`
|
|
120
|
-
`)},h=n.ref(!1),m=n.ref("");let g=new AbortController;const C=(b,T)=>{const A=g.signal;h.value=!0,r.value=b,t({name:b,signal:A}).then(I=>{var F,q;if(I){const W=((q=(F=I==null?void 0:I.data)==null?void 0:F.data)==null?void 0:q.rows)||[];let $="";for(const z of W){const P=u(z)||[];if(P!=null&&P.length)for(const M of P)$+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,T(n.unref(m),$)}else A.aborted?i.value="Loading":i.value=b,T(n.unref(m),i.value);h.value=!1})},D=n.computed(()=>{const b=e.geoCenter;let T;return typeof b=="string"&&b!==""&&(T=b.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:T,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(A,I,F)=>{m.value=I;const{name:q=""}=A,{requestUrl:W}=e.tooltipRequestData;if(!W)return q;if(n.unref(h))n.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(n.unref(r)===q)return n.unref(i);C(q,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(f),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(y),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),v=async()=>{var A;p.value=!1;const b=e.mapJson,T=`map-${e.id}`;if(b!=null&&b.path){const I=await dt(((A=window==null?void 0:window.config)==null?void 0:A.uploadPath)+b.path);Qe.registerMap(T,(I==null?void 0:I.data)||{})}else Qe.registerMap(T,{});p.value=!0};n.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const x=async()=>{var b,T;if(e.dataType==="request"){p.value=!1;try{const A=await o(),I=((T=(b=A==null?void 0:A.data)==null?void 0:b.data)==null?void 0:T.rows)||{},F=`map-${e.id}`;if(I!=null&&I.path){const q=await dt(I.path);Qe.registerMap(F,(q==null?void 0:q.data)||{})}else Qe.registerMap(F,{})}catch(A){console.error(A)}finally{p.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:E,setGlobalModel:R}=n.inject(Te,{getGlobalModel:b=>{},setGlobalModel:(b,T)=>{}}),N=Be(e)("click",()=>{const b=E(e.id);R(e.id,{...b,RECORD:n.unref(a)})});_e(e,{refreshData:k});const{setRequest:S}=n.inject(ze,{setRequest:b=>{}});return typeof S=="function"&&S({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&N()},onMouseOver:(b={})=>{b.componentType==="geo"&&b.region?a.value=b.region:a.value=null}}}}),K1="",hu=["src"];function gu(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,hu),[[n.vShow,!1]])],4)}const Ol=xe(me(uu,[["render",gu],["__scopeId","data-v-10f150ac"]])),za={...we,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",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"},Ma=Se(za),Ll=["selectChange","refreshData"],mu=n.defineComponent({name:"EcanDataSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Ma},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 w;const{mode:S}=e;return(w=n.unref(i))!=null&&w.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=n.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,w)=>{},getRecordValueByKeyName:S=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:w,value:B}=e,b=f(B);S==="multiple"||S==="tags"||S==="combobox"?b?s.value=b.split(","):w&&(s.value=[n.unref(i)[0]]):b?s.value=b:w&&(s.value=n.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(S,w)=>{const B=y.label,b=y.value;let T;const A=w[B],I=w[b];return A!=null?T=A:I!=null&&(T=I),(T==null?void 0:T.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},h=S=>{const{label:w,value:B,options:b}=e.dataFieldNames;if(b&&Array.isArray(S))if(S.some(T=>b in T)){const T={},A=[];S.forEach(I=>{T[I[b]]||(T[I[b]]=[]),T[I[b]].push({[w]:I[w],[B]:I[B]})});for(const I in T)A.push({[w]:I,[b]:T[I]});return A}else return S;else if(!b)return S},m=n.ref(!1),g=async()=>{var S,w;if(e.dataType==="request"){m.value=!0;try{const B=await r();if(i.value=h(((w=(S=B==null?void 0:B.data)==null?void 0:S.data)==null?void 0:w.rows)||[]),e.selectFirstOption){let b=n.unref(i)[0];if(y.options){const T=b[y.options];T&&T.length&&(b=T[0])}s.value=b[y.value]}}catch(B){console.error(B)}finally{m.value=!1}}},C=n.computed(()=>{let S=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const w=y.label,B=y.value;if(e.mode==="multiple")S=n.unref(i).filter(b=>n.unref(s).includes(b[B])).map(b=>b[w]);else{const b=n.unref(i).find(T=>n.unref(s)===T[B]);b&&(S=b[w])}}return S}),D=n.ref([]),p=n.computed(()=>{const S={};if(e.mode!=="multiple"){const w=n.unref(D).find(B=>B.value===n.unref(s));w&&(S.itemCodes=w.item_codes)}return S});c(e.id,{type:e.type,value:C,...n.unref(p)});const x=Be(e)("selectChange",()=>{const S=e.id,w=d(S);c(S,{...w,...n.unref(p),RECORD:C})}),k=(S=[])=>{if(i.value=h(S),e.selectFirstOption){let w=n.unref(i)[0];if(y.options){const B=w[y.options];B&&B.length&&(w=B[0])}s.value=w[y.value]}},E=et(e),R=async()=>{var S;try{m.value=!0;const w=await E(),{data:B}=(w==null?void 0:w.data)||{},b=y.label,T=y.value;if(B){const A=((S=w==null?void 0:w.data)==null?void 0:S.data)??[];D.value=A;const I=A.map(W=>({[b]:W.label,[T]:W.value})),{id:F}=e,q=d(F);c(F,{...q,...n.unref(p)}),k(I)}else k([])}catch(w){console.error(w)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{R();break}case"request":g();break}};_e(e,{selectChange:x,refreshData:O});const{setRequest:N}=n.inject(ze,{setRequest:({id:S,sortNum:w,requestFn:B})=>{}});return typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:t,getPopupContainer:a,myValue:s,selectChange:x,options:i,filterOption:u,loading:m,resultValue:l}}}),Y1="",Q1="";function yu(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 Nl=xe(me(mu,[["render",yu],["__scopeId","data-v-5b50dc15"]])),Fl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:fl,EcanBorder:vl,EcanButton:Ki,EcanCheckbox:Yi,EcanComboGraph:yl,EcanCustomGraph:gl,EcanDataSelect:Nl,EcanDatePicker:Vi,EcanIframe:Bl,EcanImage:Tl,EcanInput:zi,EcanLine:cl,EcanList:Oi,EcanMap:Ol,EcanModal:kt,EcanPageConfig:wi,EcanPie:ll,EcanProportion:Ni,EcanProviderConfig:Ai,EcanRadar:pl,EcanRadio:nl,EcanRangePicker:Gi,EcanScatter:hl,EcanScrollText:Di,EcanSelect:Ji,EcanTable:Il,EcanTabs:Cl,EcanText:Ei,EcanTimeDisplay:Ii,EcanTreeSelect:el,barComponentProps:ga,barEvents:dl,barProps:ha,borderComponentProps:Aa,borderEvents:bl,borderProps:wa,buttonComponentProps:Jo,buttonEvents:$i,buttonProps:Qo,checkboxComponentProps:ea,checkboxEvents:Zi,checkboxProps:Xo,comboGraphComponentProps:va,comboGraphEvents:ml,comboGraphProps:ba,customGraphComponentProps:pa,customGraphProps:xa,dataSelectComponentProps:Ma,dataSelectEvents:Ll,dataSelectProps:za,datePickerComponentProps:Go,datePickerEvents:Mi,datePickerProps:Uo,iframeComponentProps:Ia,iframeProps:Ra,imageComponentProps:Ea,imageEvents:wl,imageProps:Ba,inputComponentProps:Wo,inputEvents:Fi,inputProps:jo,lineComponentProps:ua,lineEvents:sl,lineProps:fa,listComponentProps:qo,listEvents:_i,listProps:Po,mapComponentProps:Fa,mapEvents:_l,mapProps:Na,modalComponentProps:da,modalEvents:al,modalProps:ca,pageConfig:zn,pageConfigComponentProps:Mn,pieComponentProps:sa,pieEvents:ol,pieProps:la,proportionComponentProps:Ho,proportionEvents:Li,proportionProps:Vo,providerConfig:Ro,providerConfigComponentProps:Io,radarComponentProps:Ca,radarEvents:xl,radarProps:Sa,radioComponentProps:ia,radioEvents:tl,radioProps:ra,rangePickerComponentProps:Zo,rangePickerEvents:Hi,rangePickerProps:Ko,scatterComponentProps:ya,scatterEvents:ul,scatterProps:ma,selectComponentProps:na,selectEvents:Qi,selectProps:ta,tableComponentProps:Oa,tableEvents:El,tableProps:_a,tabsComponentProps:Ta,tabsEvents:Sl,tabsProps:ka,textComponentProps:Oo,textEvents:ki,textProps:_o,timeDisplayComponentProps:Mo,timeDisplayEvents:Ri,timeDisplayProps:zo,treeSelectComponentProps:aa,treeSelectEvents:Xi,treeSelectProps:oa},Symbol.toStringTag,{value:"Module"})),xu={install:e=>{Object.keys(Fl).forEach(o=>{const t=Fl[o];t.install&&e.use(t)})}};j.EcanBar=fl,j.EcanBorder=vl,j.EcanButton=Ki,j.EcanCheckbox=Yi,j.EcanComboGraph=yl,j.EcanCustomGraph=gl,j.EcanDataSelect=Nl,j.EcanDatePicker=Vi,j.EcanIframe=Bl,j.EcanImage=Tl,j.EcanInput=zi,j.EcanLine=cl,j.EcanList=Oi,j.EcanMap=Ol,j.EcanModal=kt,j.EcanPageConfig=wi,j.EcanPie=ll,j.EcanProportion=Ni,j.EcanProviderConfig=Ai,j.EcanRadar=pl,j.EcanRadio=nl,j.EcanRangePicker=Gi,j.EcanScatter=hl,j.EcanScrollText=Di,j.EcanSelect=Ji,j.EcanTable=Il,j.EcanTabs=Cl,j.EcanText=Ei,j.EcanTimeDisplay=Ii,j.EcanTreeSelect=el,j.barComponentProps=ga,j.barEvents=dl,j.barProps=ha,j.borderComponentProps=Aa,j.borderEvents=bl,j.borderProps=wa,j.buttonComponentProps=Jo,j.buttonEvents=$i,j.buttonProps=Qo,j.checkboxComponentProps=ea,j.checkboxEvents=Zi,j.checkboxProps=Xo,j.comboGraphComponentProps=va,j.comboGraphEvents=ml,j.comboGraphProps=ba,j.compatibleMobileList=il,j.customGraphComponentProps=pa,j.customGraphProps=xa,j.dataSelectComponentProps=Ma,j.dataSelectEvents=Ll,j.dataSelectProps=za,j.datePickerComponentProps=Go,j.datePickerEvents=Mi,j.datePickerProps=Uo,j.default=xu,j.handleScrollCombinations=rl,j.iframeComponentProps=Ia,j.iframeProps=Ra,j.imageComponentProps=Ea,j.imageEvents=wl,j.imageProps=Ba,j.inputComponentProps=Wo,j.inputEvents=Fi,j.inputProps=jo,j.lineComponentProps=ua,j.lineEvents=sl,j.lineProps=fa,j.listComponentProps=qo,j.listEvents=_i,j.listProps=Po,j.mapComponentProps=Fa,j.mapEvents=_l,j.mapProps=Na,j.modalComponentProps=da,j.modalEvents=al,j.modalProps=ca,j.pageConfig=zn,j.pageConfigComponentProps=Mn,j.pieComponentProps=sa,j.pieEvents=ol,j.pieProps=la,j.proportionComponentProps=Ho,j.proportionEvents=Li,j.proportionProps=Vo,j.providerConfig=Ro,j.providerConfigComponentProps=Io,j.radarComponentProps=Ca,j.radarEvents=xl,j.radarProps=Sa,j.radioComponentProps=ia,j.radioEvents=tl,j.radioProps=ra,j.rangePickerComponentProps=Zo,j.rangePickerEvents=Hi,j.rangePickerProps=Ko,j.scatterComponentProps=ya,j.scatterEvents=ul,j.scatterProps=ma,j.selectComponentProps=na,j.selectEvents=Qi,j.selectProps=ta,j.tableComponentProps=Oa,j.tableEvents=El,j.tableProps=_a,j.tabsComponentProps=Ta,j.tabsEvents=Sl,j.tabsProps=ka,j.textComponentProps=Oo,j.textEvents=ki,j.textProps=_o,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=Ri,j.timeDisplayProps=zo,j.treeSelectComponentProps=aa,j.treeSelectEvents=Xi,j.treeSelectProps=oa,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
|
+
<span style="color: ${Z||e.color};${t.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Do(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):H==="thousands"?(L=+L,isNaN(L)||(L=_c(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(R)};${t.unref(y)}">${R}</span>`),e.unitShow&&e.unitText){const{unitTop:$,unitLeft:z}=e;let P="position:relative;";$&&(P+=`top:${$};`),z&&(P+=`margin-left:${z};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${t.unref(y)}'>${e.unitText}</span>`}return q});function m(p){let w="",C=!1;const{targetValue:R,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":p!==R&&(C=!0);break;case"greater":p<=R&&(C=!0);break;case"greater_equal":p<R&&(C=!0);break;case"less":p>=R&&(C=!0);break;case"less_equal":p>R&&(C=!0);break}C&&(w=q)}return w}const{pageMode:g}=t.inject(Pe,{pageMode:"normal"}),S=He(e),D=t.ref(!1),b=async()=>{var p;try{D.value=!0;const w=await S();r.value=((p=w==null?void 0:w.data)==null?void 0:p.data)||{}}catch(w){console.error(w)}finally{D.value=!1}},v=(p={})=>{r.value=p},x=p=>{const w=e.id,C=l(w);d(w,{...C,value:p||"",RECORD:p||""})},T=()=>{x("")},E=et(e),I=async()=>{var p,w;try{D.value=!0;const C=await E(),{data:R}=(C==null?void 0:C.data)||{};if(R){n.value=!1;const{columns:F=[],rows:q=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{},{graphicConfig:W}=e;let $={};if(F.length>0)if((w=W==null?void 0:W.dimensionList)!=null&&w.length){const z=F[0];z&&(q!=null&&q.length)&&($={value:q[0][z]})}else{const z=F.find(P=>!!P);z&&($={value:isNaN(q[z])?0:q[z]||0})}x($==null?void 0:$.value),v($)}else n.value=!0,x("NaN"),v({value:"NaN"})}catch(C){console.error(C)}finally{D.value=!1,f(e.id,!0)}},_=()=>{switch(e.dataType){case"indicator":I();break;case"request":b();break}},{setRequest:N}=t.inject(ze,{setRequest:({id:p,sortNum:w,requestFn:C})=>{}});typeof N=="function"&&N({id:e.id,requestFn:_,sortNum:e.requestSort}),Oe(e,{refreshData:_,resetRecord:T}),o({refreshData:_});const k=Be(e),B=k("click",()=>{const p=document.getElementsByClassName(`ecan-text_${e.id}`);if(p!=null&&p.length&&x(p[0].innerText),setTimeout(()=>{x("")},0),!e.linkPage&&!e.href)return;const w=e.linkPage||"",C=Ci(t.unref(g),w),R=e.href;let F=R||C;F=De(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:R},"*"))}),A=k("valueChange",()=>{});return t.watch(()=>h.value,(p,w)=>{p!==w&&A()}),{style:a,myText:h,loading:D,click:B,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ti=()=>{t.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},Bi=Fo.setup;Fo.setup=Bi?(e,o)=>(Ti(),Bi(e,o)):Ti;const Vu="",Hc=["innerHTML"];function Vc(e,o,n,a,r,i){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,Hc))}const Ei=xe(me(Fo,[["render",Vc],["__scopeId","data-v-fc956f5c"]])),jc=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Wu="",Wc={class:"red"};function Uc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Wc,t.toDisplayString(e.text),1)}const Di=xe(me(jc,[["render",Uc],["__scopeId","data-v-4dd9c03e"]])),zo={...we,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(zo),Ii=["timeChange"],Gc=t.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),n=()=>{const{format:c,operate:f}=e;let y=be();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Be(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),Gu="";function $c(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Ri=xe(me(Gc,[["render",$c],["__scopeId","data-v-b628fca2"]])),Po={...we,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:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0},qo=Se(Po),Oi=["refreshData","click","resetRecord"],Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",Jc=t.defineComponent({name:"EcanList",components:{Skeleton:sn,ATooltip:se.Tooltip,MarqueeScroll:ur},props:{...qo},setup(e,{expose:o}){const n=t.ref(),a=Ce(e,["backgroundColor"]),r=(A,p)=>{const{format:w,customFormatter:C}=p;if(w==null||w==="")return A;const R={money:Do,percentage:bn,contrast:bn,custom:Si};return R[w]?w==="custom"?R[w](A,C)||"":R[w](A)||"":""},i=(A,p)=>{const w=parseFloat(A+"");if(p!=="contrast")return"";switch(!0){case w>=0:return"goUp";case w<0:return"goDown"}},s=He(e),l=t.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const p=await s();n.value=((A=p==null?void 0:p.data)==null?void 0:A.data.rows)||[]}catch(p){console.error(p)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:A,isUseSeq:p}=e;return p?[t.unref(c),...A]:A}),y=et(e),u=async()=>{var A;try{l.value=!0;const p=await y(),{columns:w=[],rows:C=[]}=((A=p==null?void 0:p.data)==null?void 0:A.data)??{};e.isUseSeq&&w.unshift(e.seqName),f.value.forEach((R,F)=>{(!e.isUseSeq||F!==0)&&(R.title=w[F],R.key=w[F])}),n.value=C}catch(p){console.error(p)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Be(e),{getGlobalModel:g,setGlobalModel:S}=t.inject(Te,{getGlobalModel:A=>{},setGlobalModel:(A,p)=>{}}),D=A=>{m("click",()=>{const p=g(e.id);S(e.id,{...p,type:e.type,RECORD:A})})()};Oe(e,{refreshData:h,resetRecord:()=>{const A=e.id,p=g(A);S(A,{...p,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(ze,{setRequest:({id:A,sortNum:p,requestFn:w})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=A=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:A.align||"left",backgroundColor:A.cellColor}),T=(A,p)=>{let w=0;const C=t.unref(n).map(F=>F[p]),R=Math.max(...C);return R&&(w=A[p]/R*100),w},E=A=>{const{progressColor:p="#1890ff",progressGradientColor:w=""}=A;return w?{background:`linear-gradient(to right, ${p} 0%, ${w} 100%)`}:{backgroundColor:p||"#1890ff"}},I=t.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=t.inject(Pe,{pageMode:"normal"}),N=t.computed(()=>t.unref(_)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:f,click:D,getColumnStyle:x,getPercentage:T,getBackgroundColor:E,isShowSeqIcon:A=>{const{seqIconConfig:p}=e;let w=p.find(C=>C.key===A+1);return w||(w=p.find(C=>C.key==="other")),!!(w!=null&&w.icon)},getSeqIconData:(A,p)=>{const{seqIconConfig:w}=e;let C=w.find(R=>R.key===A+1);return C||(C=w.find(R=>R.key==="other")),p===1?C!=null&&C.icon?yt(C.icon):"":p===2?(C==null?void 0:C.color)||"#fff":""},seqIcon4:Kc,seqIcon5:Zc,seqIcon6:Yc,seqIcon7:Qc,iconSize:I,isScroll:N}}}),Ku="",Zu="",Xc=e=>(t.pushScopeId("data-v-16b2e85a"),e=e(),t.popScopeId(),e),ed={key:0,class:"title"},td={key:0,class:"ranking"},nd={key:1,class:"ecan-list-content"},od=["onClick"],ad={key:0,class:"ranking"},rd=Xc(()=>t.createElementVNode("div",{class:"icon"},null,-1)),id={class:"sort"},ld=["src"],sd={key:1},cd=["src","width","height"],dd=["src","width","height"],fd=["src","width","height"],ud=["src","width","height"],hd={key:1},gd={key:2,class:"empty"};function md(e,o,n,a,r,i){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",ed,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.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?(t.openBlock(),t.createElementBlock("div",td)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||y,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",nd,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",ad,[rd,t.createElementVNode("div",id," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,ld)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(f+1),5)],4)):(t.openBlock(),t.createElementBlock("div",sd,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,cd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,dd)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,fd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ud)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(f+1),5)]))],64)):(t.openBlock(),t.createElementBlock("span",hd,t.toDisplayString(f+1),1))],64)):y.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,od))),128))]),_:1},8,["visible","step"])])):(t.openBlock(),t.createElementBlock("div",gd," 暂无数据 "))]),_:1},8,["loading"])],4)}const _i=xe(me(Jc,[["render",md],["__scopeId","data-v-16b2e85a"]])),Ho={...we,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:{}},Vo=Se(Ho),Li=["refreshData","click"],yd=t.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:sn},props:{...Vo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),r=Ce(e),i=t.computed(()=>{const x=e.width;return parseFloat(x)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const x=t.unref(s),T=+e.variableDefaultValue;if(x==null)return isNaN(T)?0:T;const E=e.text.match(/\{.+\}/g)||[];let I;const _=new Set(Object.keys(x));for(let N=0;N<E.length;N++){const k=E[N],B=k.slice(1,k.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(T)?I=0:I=T*100,e.decimalFormat&&(I=+I.toFixed(2)),I}),d=t.computed(()=>{var _;let x=e.text;if(x==="")return t.unref(l);const T=e.variableDefaultValue,E=t.unref(s),I=x.match(/\{.+\}/g)||[];for(let N=0;N<I.length;N++){const k=I[N];let B=k.slice(1,k.length-1);const A=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,p=k.match(A);for(let C=0;C<(p==null?void 0:p.length);C++){const R=(_=p[C])==null?void 0:_.trim();E[R]!=null&&(B=B.replace(R,E[R]))}let w=B;try{/\(.*\)/g.test(B)&&(w=vn(B))}catch(C){console.error(C)}typeof+w=="number"&&!isNaN(+w)?(w=+w*100,e.decimalFormat&&(w=w.toFixed(2))):w=T,x=x.replace(k,w+"")}return t.unref(n)?"NaN":x}),c=He(e),f=t.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{f.value=!0;const T=await c();s.value=((x=T==null?void 0:T.data)==null?void 0:x.data)||{}}catch(T){console.error(T)}finally{f.value=!1}},u=(x={})=>{s.value=x},h=et(e),m=async()=>{var x;try{f.value=!0;const T=await h(),{data:E}=(T==null?void 0:T.data)||{};if(E){n.value=!1;const{columns:I=[],rows:_=[]}=((x=T==null?void 0:T.data)==null?void 0:x.data)??{};let N={};if(I.length>0){const k=I.find(B=>!!B);k&&(N={percent:_[k]})}u(N)}else n.value=!0,u({percent:"NaN"})}catch(T){console.error(T)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Oe(e,{refreshData:g}),o({refreshData:g});const D=Be(e)("click",()=>{}),{setRequest:b}=t.inject(ze,{setRequest:({id:x,sortNum:T,requestFn:E})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:x,gradientColor:T,gradientOffset:E,strokeColor:I}=e;let _=I;return x&&T&&(_={"0%":I,[`${E*100}%`]:T}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:D,customStrokeColor:v}}}),Qu="";function xd(e,o,n,a,r,i){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.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:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ni=xe(me(yd,[["render",xd],["__scopeId","data-v-cf942b5f"]])),jo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Wo=Se(jo),Fi=["inputChange","inputBlur"],pd=t.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Wo},setup(e){const o=Ce(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Te,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:n})},l=Be(e),d=Ne.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Xu="";function bd(e,o,n,a,r,i){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.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:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const zi=xe(me(pd,[["render",bd]])),Uo={...we,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"},Go=Se(Uo),Mi=["dateChange"],$o=t.defineComponent({name:"EcanDatePicker",props:{...Go},components:{ADatePicker:se.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,m])=>{let g=null;if(u?g=be(De(u)):h&&(g=be()),m&&g){const{type:S,value:D,mode:b}=m;switch(S){case"add":g=g.add(D,b);break;case"minus":g=g.subtract(D,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Te,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Be(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Oe(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),y=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:qa,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),Pi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},qi=$o.setup;$o.setup=qi?(e,o)=>(Pi(),qi(e,o)):Pi;const t1="",n1="",vd=["id"];function Sd(e,o,n,a,r,i){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.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,vd)}const Hi=xe(me($o,[["render",Sd],["__scopeId","data-v-d4ec0d66"]])),Ko={...we,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(Ko),Vi=["dateChange"];var ji={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(de,function(){var n="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,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(ji);var Cd=ji.exports;const wd=pr(Cd);be.extend(wd);const Yo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Zo},setup(e){const o=Ce(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([v,x,T,E,I,_])=>{let N=null,k=null;if(T&&(N=be().subtract(E,I),k=be()),v&&(N=be(De(v))),x&&(k=be(De(x))),_){const{type:B,value:A,mode:p}=_;switch(B){case"add":N=N&&N.add(A,p),k=k&&k.add(A,p);break;case"minus":N=N&&N.subtract(A,p),k=k&&k.subtract(A,p)}}a.value=[N,k]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(v,x,T)=>{Array.isArray(v)?(r=v[0],i=v[1],s=T.range):(r=null,i=null)};window.dayjs=be;const d=v=>{let x=!1,{limitStartTime:T,limitEndTime:E}=e;const I={startTime:`${r||""}`,endTime:`${i||""}`};if(T=De(T,{codeData:I}),E=De(E,{codeData:I}),T&&E?x=!(be(T)<v&&v<be(E)):T?x=be(T)>v:E&&(x=be(E)<v),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const N=_.startOf("year"),k=_.endOf("year");x=!(N<=v&&v<k)}}if(!x){const{value:_=0,mode:N="year"}=e.limitInterval||{};_&&(s==="start"?x=r.add(_,N)<v:s==="end"&&(x=i.subtract(_,N)>v))}return x},{getGlobalModel:c,setGlobalModel:f}=t.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Be(e);let m=!1;const g=h("dateChange",()=>{}),S=v=>{const x=t.unref(a),T=x&&x[0]&&x[1];v===!1&&m===!0&&T&&(g(),m=!1),v||(s="")},D=()=>{m=!0};return Oe(e,{dateChange:()=>{const{associated:v}=e;if(v){const x=c(v)||{};if(x){const{value:T}=x;if(T)switch(t.unref(T)){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}}}g()}}),{style:o,getPopupContainer:n,locale:qa,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:D}}}),Wi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Ui=Yo.setup;Yo.setup=Ui?(e,o)=>(Wi(),Ui(e,o)):Wi;const a1="",r1="";function Ad(e,o,n,a,r,i){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.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 Gi=xe(me(Yo,[["render",Ad],["__scopeId","data-v-c9c68612"]])),Qo={...we,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"},Jo=Se(Qo),$i=["click"],kd=t.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...Jo},setup(e){const o=Ce(e),a=Be(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=t.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=t.computed(()=>De(e.text)),s=t.computed(()=>De(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),l1="";function Td(e,o,n,a,r,i){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Ki=xe(me(kd,[["render",Td]])),Xo={...we,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:{}},ea=Se(Xo),Zi=["checkboxChange"],Bd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...ea},setup(e,{expose:o}){const n=Ce(e),a=t.ref([]),r=t.ref([]),i=S=>{const D=e.value;let b=[];S.forEach(v=>{v.checked&&b.push(v.value)}),typeof D=="string"&&D!==""?b=b.concat(D.split(",")):Array.isArray(D)&&(b=b.concat(D)),a.value=S,r.value=b};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var b,v;if(e.dataType!=="request")return;const S=await s(),D=((v=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:v.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),u=et(e),h=async()=>{var S;try{const D=await u(),{data:b}=(D==null?void 0:D.data)||{};if(b){const x=(((S=D==null?void 0:D.data)==null?void 0:S.data)??[]).map(T=>({label:T.label,value:T.value}));i(x)}else i([])}catch(D){console.error(D)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=t.inject(ze,{setRequest:({id:S,sortNum:D,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),c1="";function Ed(e,o,n,a,r,i){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.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 Yi=xe(me(Bd,[["render",Ed]])),ta={...we,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"},na=Se(ta),Qi=["selectChange","refreshData"],Dd=t.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...na},setup(e,{expose:o}){const n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var C;const{mode:w}=e;return(C=t.unref(i))!=null&&C.length?s.value:w==="multiple"||w==="tags"||w==="combobox"?[]:""},set:w=>{s.value=w}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{},getRecordValueByKeyName:w=>{}});t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:w,selectFirstOption:C,value:R}=e,F=f(R);w==="multiple"||w==="tags"||w==="combobox"?F?s.value=F.split(","):C&&(s.value=[t.unref(i)[0]]):F?s.value=F:C&&(s.value=t.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(w,C)=>{const R=y.label,F=y.value;let q;const W=C[R],$=C[F];return W!=null?q=W:$!=null&&(q=$),(q==null?void 0:q.toLowerCase().indexOf(w==null?void 0:w.toLowerCase()))>=0},h=w=>{const{label:C,value:R,options:F}=e.dataFieldNames;if(F&&Array.isArray(w))if(w.some(q=>F in q)){const q={},W=[];w.forEach($=>{q[$[F]]||(q[$[F]]=[]),q[$[F]].push({[C]:$[C],[R]:$[R]})});for(const $ in q)W.push({[C]:$,[F]:q[$]});return W}else return w;else if(!F)return w},m=t.ref(!1),g=async()=>{var w,C;if(e.dataType==="request"){m.value=!0;try{const R=await r();if(i.value=h(((C=(w=R==null?void 0:R.data)==null?void 0:w.data)==null?void 0:C.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(y.options){const q=F[y.options];q&&q.length&&(F=q[0])}s.value=F[y.value]}}catch(R){console.error(R)}finally{m.value=!1}}},{setLoadedData:S,loadedData:D}=t.inject(vt,{setLoadedData:(w,C)=>{},loadedData:{}}),b=t.computed(()=>{let w=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const C=y.label,R=y.value;if(e.mode==="multiple")w=t.unref(i).filter(F=>t.unref(s).includes(F[R])).map(F=>F[C]);else{const F=t.unref(i).find(q=>t.unref(s)===q[R]);F&&(w=F[C])}}return w}),v=t.ref([]),x=t.computed(()=>{const w={};if(e.mode!=="multiple"){const C=t.unref(v).find(R=>R.value===t.unref(s));C&&(w.itemCodes=C.item_codes)}return w});c(e.id,{type:e.type,value:b,...t.unref(x)});const E=Be(e)("selectChange",()=>{const w=e.id,C=d(w);c(w,{...C,...t.unref(x),RECORD:b})}),I=(w=[])=>{if(i.value=h(w),e.selectFirstOption){let C=t.unref(i)[0];if(y.options){const R=C[y.options];R&&R.length&&(C=R[0])}s.value=C[y.value]}},_=et(e),N=async()=>{var w;try{m.value=!0;const C=await _(),{data:R}=(C==null?void 0:C.data)||{},F=y.label,q=y.value;if(R){const W=((w=C==null?void 0:C.data)==null?void 0:w.data)??[];v.value=W;const $=W.map(M=>({[F]:M.label,[q]:M.value})),{id:z}=e,P=d(z);c(z,{...P,...t.unref(x)}),S(z,!0),I($)}else I([])}catch(C){console.error(C)}finally{m.value=!1}},k=t.computed(()=>{var w,C;return(C=(w=e==null?void 0:e.graphicConfig)==null?void 0:w.controlList)==null?void 0:C.find(R=>R.conditionKey==="parentCode")}),B=t.ref(!1);t.watch(D,w=>{!t.unref(B)&&t.unref(k)&&w[t.unref(k).id]&&(B.value=!0,A())},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":{if(t.unref(k)){if(t.unref(D)[t.unref(k).id]){const{mode:w}=e;w==="multiple"||w==="tags"||w==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":g();break}};Oe(e,{selectChange:E,refreshData:A});const{setRequest:p}=t.inject(ze,{setRequest:({id:w,sortNum:C,requestFn:R})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{style:n,getPopupContainer:a,myValue:s,selectChange:E,options:i,filterOption:u,loading:m,resultValue:l}}}),f1="",u1="";function Id(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.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:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ji=xe(me(Dd,[["render",Id],["__scopeId","data-v-e5517626"]])),oa={...we,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},aa=Se(oa),Xi=["selectChange","refreshData"],Rd={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...aa},setup(e){const o=Ce(e),n=t.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,S=g.label,D=g.value;let b;const v=m[S],x=m[D];return v!=null?b=v:x!=null&&(b=x),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[t.unref(n)[0]]):m?r.value=m:g&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=He(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();n.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});Oe(e,{selectChange:y,refreshData:l});const{setRequest:u}=t.inject(ze,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},g1="",m1="";function Od(e,o,n,a,r,i){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.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 el=xe(me(Rd,[["render",Od],["__scopeId","data-v-37236421"]])),ra={...we,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:""},ia=Se(ra),tl=["checkboxChange","click"],_d=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ia},setup(e,{expose:o}){const n=Ce(e),a=t.ref([]),r=t.ref(""),i=v=>{const x=e.value;let T=[];typeof x=="string"&&x!==""?T=T.concat(x.split(",")):Array.isArray(x)&&(T=T.concat(x)),a.value=v,r.value=T[0]||""};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var T,E;if(e.dataType!=="request")return;const v=await s(),x=((E=(T=v==null?void 0:v.data)==null?void 0:T.data)==null?void 0:E.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}});c(e.id,{type:e.type,value:r});const f=Be(e),y=f("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),u=v=>{r.value=v,f("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};t.watch(r,()=>{y()});const h=et(e),m=async()=>{var v;try{const x=await h(),{data:T}=(x==null?void 0:x.data)||{};if(T){const I=(((v=x==null?void 0:x.data)==null?void 0:v.data)??[]).map(_=>({label:_.label,value:_.value}));i(I)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(ze,{setRequest:({id:v,sortNum:x,requestFn:T})=>{}});typeof S=="function"&&S({id:e.id,requestFn:g,sortNum:e.requestSort});const D=v=>{r.value=v.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:u,useImagePath:yt,tabChange:D}}}),x1="",p1="",Ld=["onClick"];function Nd(e,o,n,a,r,i){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.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:f,onClick:t.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,Ld))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const nl=xe(me(_d,[["render",Nd],["__scopeId","data-v-baa84768"]])),la={...we,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},sa=Se(la),ol=["click","refreshData","resetRecord"],$t=async e=>{var d;const o=await dt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([n]),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)},ca={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)",allComponentList:[]},da=Se(ca),al=["showModal","hideModal"];function rl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Ne.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!Gt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=n.find(m=>m.id===u)),h&&(y.push(h),["ecanBorder","ecanTabs"].includes(h.type)&&y.push(...Sn(h.id,o,n)))}for(const u of y)Gt(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Hd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function il(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Ne.cloneDeep([...e.componentList,...zd(a,n)]);if(Fd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){Gt(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const S=r.find(D=>D.id===g);S&&(S.parentId=u,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(h.sourceLeft||h.left)+"px",S.top=parseFloat(S.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!Gt(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=Md(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!Gt(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&["ecanBorder","ecanTabs"].includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),S=h/g;u.scale=S,u.top=parseFloat(u.top)*S-parseFloat(u.height)*(1-S)/2+"px",u.left=parseFloat(u.left)*S-parseFloat(u.width)*(1-S)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return Pd(r)}return r}function Fd(e,o){const n=Ne.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=n[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&["ecanBorder","ecanTabs"].includes(d.type)){const c=Sn(d.id,n,o);for(const f of c)e[r.id][s].push(f.id),["ecanBorder","ecanTabs"].includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function zd(e,o){const n=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),["ecanBorder","ecanTabs"].includes(d.type)&&n.push(...Sn(d.id,e,o)))}}return n}function Sn(e,o,n){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=n.find(d=>d.id===s);l&&(a.push(l),["ecanBorder","ecanTabs"].includes(l.type)&&a.push(...Sn(l.id,o,n)))}return a}function Md(e,o,n){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=qd(d);if(c){i.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function Pd(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Ne.cloneDeep(n).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 qd(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],n=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&&n&&a&&r?{left:n.left,top:o.top,width:r.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function Hd(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}const Vd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function jd(e,o,n,a,r,i){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const Wd=xe(me(Vd,[["render",jd]])),Ud=t.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:ns,Render:Wd},props:{...da},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),r=t.inject("getContainerMap",()=>{}),i=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=t.inject(Te,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=t.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=t.ref("80%"),g=t.ref(0),S=t.ref(),D=t.ref(0),b=t.ref({}),v=Ce(e),x=t.ref({}),T=t.ref(!1),E=t.ref();let I;const _=()=>{S.value=parseFloat(f)/parseFloat(u);const Q=parseFloat(y)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;g.value=le*t.unref(S),D.value=re*Q,m.value=`${t.unref(S)*100}%`,b.value={width:`${t.unref(g)}px`,height:`${t.unref(D)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...t.unref(v),backgroundImage:yt(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${t.unref(g)/parseFloat(f)},${t.unref(D)/parseFloat(y)})`,width:f,height:y}},N=Ne.debounce(()=>{_()},100),k=()=>{const Q=window.MutationObserver;I=new Q(N),I.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},B=()=>{I&&(I.disconnect(),I.takeRecords(),I=null)},A=t.ref(!1),{touchRequest:p}=t.inject(ze,{touchRequest:()=>{}}),w=t.ref(""),C=()=>{var re;const{title:Q}=e,le=(re=t.unref(l))==null?void 0:re.RECORD;return le?De(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},R=Be(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),w.value=C(),A.value=!0},q=R("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),A.value=!1}),W=()=>{q()},$=()=>{q(),s()},{setModalModel:z,pushUseModalIds:P,popUseModalIds:M}=t.inject(gr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),O=t.computed(()=>{let Q=e.componentList;const le=Ne.cloneDeep(e.componentList),re=r(),Y=i(),X={containerMap:re,combinationMap:Y};return a&&(Q=il({...X,componentList:le,sourceList:e.allComponentList})),Q=rl({...X,componentList:Q,sourceList:e.allComponentList}),Q}),L=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(Y=>Y.id),z(Q,[...new Set(le)]))};t.watch(()=>A.value,async Q=>{Q?(T.value=!1,P(e.id),L(),await t.nextTick(()=>{_(),window.addEventListener("resize",N),k(),T.value=!0}),p()):(M(),window.removeEventListener("resize",N),B())});const H=t.computed(()=>t.unref(S)>=1),Z=t.computed(()=>e.fullModal),U=t.computed(()=>{let Q="ecan-modal";return t.unref(H)&&(Q+=" ecan-full-width-modal"),t.unref(Z)&&(Q+=" ecan-full-modal"),Q});return Oe(e,{showModal:F,hideModal:q}),{modalRef:E,containStyle:b,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Z,style:v,visible:A,showModal:F,onOk:W,onCancel:$,isFullWidth:H,wrapClassName:U,ready:T,usedComponentList:O,isMobile:a,readyIds:n,hasOwn:Gt,onComponentReady:Q=>{n.value.push(Q)},formatTitle:w}}}),S1="",C1="";function Gd(e,o,n,a,r,i){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.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:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=xe(me(Ud,[["render",Gd],["__scopeId","data-v-613a7718"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const $d=t.defineComponent({name:"EcanPie",props:{...sa},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Ce(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:B=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,p=e.colors;B=B.map((w,C)=>({label:A?{color:p[C]}:{},...w}))}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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var A;n.value=!0,(A=i.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:p,seriesName:w,name:C,value:R,percent:F,data:q}=A||{};return De(e.tooltipFormatter,{textData:{marker:p,name:C,value:R,percent:F,a:w,b:C,c:R,d:F,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.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:n.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:Oc(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=n.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:A=>{const{data:p}=r.value[0]||{};let w=0,C,R="0%";if(p)for(const F of p)F.name===A&&(C=+F.value),w+=+F.value;return w&&(R=`${(C/w*100).toFixed(2)}%`),nn(e.legendFormatter,{name:A,value:C,percent:R})}}},c=()=>{n.value=!1},{getGlobalModel:f,setGlobalModel:y}=t.inject(Te,{getGlobalModel:B=>{},setGlobalModel:(B,A)=>{}}),{pageMode:u}=t.inject(Pe,{pageMode:"normal"}),h=(B=[],A)=>{const{dataset:p}=Ft(B,A);r.value=p},m=(B=[],A)=>{const p=Ft(B,A);r.value=p.dataset};t.watch(()=>e.data,B=>{(e.dataType==="static"||t.unref(u)==="design")&&h(B)},{immediate:!0,deep:!0}),t.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 g=t.ref(!1),S=He(e),D=async()=>{var B,A;if(e.dataType==="request")try{g.value=!0;const p=await S();h((A=(B=p==null?void 0:p.data)==null?void 0:B.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(p){console.error(p)}finally{g.value=!1}},b=Be(e);y(e.id,{type:e.type,RECORD:""});const v=b("click",B=>{const A=f(e.id);y(e.id,{...A,type:e.type,RECORD:B==null?void 0:B.data})}),x=et(e),T=async()=>{var B;try{g.value=!0;const A=await x(),{data:p}=(A==null?void 0:A.data)||{};if(p){const{columns:w=[],rows:C=[]}=((B=A==null?void 0:A.data)==null?void 0:B.data)??{};let R=[];if(w.length>0){const F=w[0],q=w[1];R=C.filter(W=>!!W).map(W=>({name:W[F],value:isNaN(W[q])?0:W[q]||0}))}m(R)}}catch(A){console.error(A)}finally{g.value=!1}},{loadedData:E}=t.inject(vt,{loadedData:{}}),I=t.ref(!1);t.watch(E,B=>{if(e.dataType==="indicator"){const A=tn(e.graphicConfig);A!=null&&A.length&&(!t.unref(I)&&it(e.graphicConfig,B)?(I.value=!0,_()):it(e.graphicConfig,B)||(I.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(E))&&T();break;case"request":D();break}};Oe(e,{resetRecord:()=>{const B=e.id,A=f(B);y(B,{...A,RECORD:""})},refreshData:_,click:v}),o({refreshData:_});const{setRequest:k}=t.inject(ze,{setRequest:B=>{}});return typeof k=="function"&&k({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:g,ecanModal:i}}}),A1="";function Kd(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ll=xe(me($d,[["render",Kd]])),fa={...we,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,yAxisName:"",xAxisName:""},ua=Se(fa),sl=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const Zd=t.defineComponent({name:"EcanLine",props:{...ua},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ce(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?Ue:12),c=t.ref({});let f;const y=t.ref([]),u=t.computed(()=>{const C=e.xAxisLabelFormatter,R=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(){$t(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(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:F=>{var z;const q=F.length;let W="",$=e.tooltipFormatter;f=(z=F[0])==null?void 0:z.data,$===""&&($="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:O,name:L,value:H,data:Z}=F[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${lt(C,U)}<br/>`}W+=De($,{textData:{marker:M,name:L,value:H,a:O,b:L,c:H||0,...Z}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(F=>{let q={};return F&&typeof F=="object"?q={...F}:q={value:F},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),lt(C,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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 lt(R,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},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:t.unref(y).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>nn(e.legendFormatter,{name:F})},series:t.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:C=>{},setGlobalModel:(C,R)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(C=[],R=!1)=>{let F;if(e.dataFieldConfigType==="key"){const z=R?e.keyTypeDataFieldNames:null;F=At(C,z)}else if(e.dataFieldConfigType==="value"){const z=R?e.valueTypeDataFieldNames:null;F=Ft(C,z)}s.value=F.dimensions,y.value=F.dataset;const q=F.dataset,W=[],$=q.length;for(let z=0;z<$;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[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,...P},...t.unref(D)})}i.value=W},v=(C=[],R,F=!1)=>{const W=At(C,F?R:null,!0);s.value=W.dimensions,y.value=W.dataset;const $=W.dataset,z=[],P=$.length;for(let M=0;M<P;M++){const O={};e.shadowColor&&(O.shadowColor=e.shadowColor,O.shadowBlur=e.shadowBlur,O.shadowOffsetY=e.shadowOffsetY,O.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...$[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,...O},...t.unref(D)})}i.value=z};t.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],([C])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(C)},{immediate:!0,deep:!0});const x=t.ref(!1),T=He(e),E=async()=>{var C,R;if(e.dataType==="request")try{x.value=!0;const F=await T();b((R=(C=F==null?void 0:F.data)==null?void 0:C.data)==null?void 0:R.rows,!0)}catch(F){console.error(F)}finally{x.value=!1}},I=Be(e);g(e.id,{type:e.type,RECORD:""});const _=I("click",C=>{const R=m(e.id);g(e.id,{...R,type:e.type,RECORD:e.tooltipShow?f:C.data})}),N=C=>{n.value.chart.containPixel("grid",[C.offsetX,C.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=_;const k=et(e),B=async()=>{var C;try{x.value=!0;const R=await k(),{columns:F=[],rows:q=[]}=((C=R==null?void 0:R.data)==null?void 0:C.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map($=>({label:$,value:$}))}),v(q,W,!0)}catch(R){console.error(R)}finally{x.value=!1}},A=()=>{switch(e.dataType){case"indicator":B();break;case"request":E();break}};Oe(e,{refreshData:A,resetRecord:()=>{const C=e.id,R=m(C);g(C,{...R,RECORD:""})},click:_});const{setRequest:w}=t.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:u,style:r,click:_,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:n}}}),T1="";function Yd(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const cl=xe(me(Zd,[["render",Yd]])),ha={...we,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,yAxisName:"",xAxisName:""},ga=Se(ha),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Qd=t.defineComponent({name:"EcanBar",props:{...ga},components:{Spin:Nt,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=Ce(e),d=t.ref([]),c=t.ref(),f=t.ref({});let y;const u=t.computed(()=>a.value?Ue:12),h=t.computed(()=>{const{gradientShow:M,gradientColors:O,gradientOffset:L,barBorderRadius:H}=e,Z=t.unref(d),U=Z.length,ae=[];for(let Q=0;Q<U;Q++){const le={...Z[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:te,name:pe,value:Ae,data:Ee}=re||{};return Y+=De(X,{textData:{name:pe,value:Ae,a:te,b:pe,c:Ae||0,...Ee}},{useNewline:!0,useSpace:!0}),Y}},le.itemStyle={},M&&(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:L,color:O[Q]},{offset:1,color:O[Q]}]}}),H){const re=H.split(",");if(re!=null&&re.length){const Y=[];for(const X of re){const te=parseFloat(X);isNaN(te)||Y.push(te)}le.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=t.ref([]),g=t.ref(!1),S=t.computed(()=>{const M=e.yAxisLabelFormatter,O=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 L=n.value.chart.getOption(),{xAxis:H}=L||{};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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const H=L.length;let Z="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Q=0;Q<H;Q++){const{marker:le,seriesName:re,name:Y,value:X,data:te}=L[Q]||{};if(Q===0){let pe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(pe=(+Y).toString()),Z+=`${lt(O,pe)}<br/>`}Z+=De(U,{textData:{marker:le,name:Y,value:X,a:re,b:Y,c:X||0,...te}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.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:t.unref(d).map((L,H)=>({name:L.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:L=>nn(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(T),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(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(O,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.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(L){return lt(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(h)}}),{pageMode:D}=t.inject(Pe,{pageMode:"normal"}),b=()=>{a.value=!1},v=(M=[],O=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const H=O?e.keyTypeDataFieldNames:null;L=At(M,H)}else if(e.dataFieldConfigType==="value"){const H=O?e.valueTypeDataFieldNames:null;L=Ft(M,H)}d.value=L.dataset,m.value=L.dimensions},x=(M=[],O,L=!1)=>{const Z=At(M,L?O:null,!0);d.value=Z.dataset,m.value=Z.dimensions},T=t.computed(()=>t.unref(m).map(M=>{let O={};return M&&typeof M=="object"?O={...M}:O={value:M},O}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||t.unref(D)==="design")&&v(M)},{immediate:!0,deep:!0});const E=He(e),I=async()=>{var M,O;try{g.value=!0;const L=await E();v((O=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:O.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},_=et(e),N=async()=>{var M;try{g.value=!0;const O=await _(),{columns:L=[],rows:H=[]}=((M=O==null?void 0:O.data)==null?void 0:M.data)??{};let Z;L.length>0&&(Z={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),x(H,Z,!0)}catch(O){console.error(O)}finally{g.value=!1}},{loadedData:k}=t.inject(vt,{loadedData:{}}),B=t.ref(!1);t.watch(k,M=>{if(e.dataType==="indicator"){const O=tn(e.graphicConfig);O!=null&&O.length&&(!t.unref(B)&&it(e.graphicConfig,M)?(B.value=!0,A()):it(e.graphicConfig,M)||(B.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(k))&&N();break;case"request":I();break}},p=(M,O)=>!!t.unref(s)[O.value].value.includes(M),w=async()=>{r.value=!1;const M=n.value.chart.getOption();for(let O=0;O<7;O++)await C(M,O)},C=(M,O)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:Z,xAxis:U}=M,ae=n.value.chart,{splitArea:Q={}}=U[0]||{};H.forEach((le,re)=>{const Y=le.data;let X="";O%2?X=Z[re]+"a8":X=Z[re],Y[i.value].itemStyle={color:X}}),O%2?(Q.show=!0,Q.areaStyle.color=t.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:H,xAxis:U}),L()},200)});o({refreshData:A});const R=Be(e),{getGlobalModel:F,setGlobalModel:q}=t.inject(Te,{getGlobalModel:M=>{},setGlobalModel:(M,O)=>{}});q(e.id,{type:e.type,RECORD:""});const W=R("click",M=>{const O=F(e.id);q(e.id,{...O,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:$}=t.inject(ze,{setRequest:M=>{}});typeof $=="function"&&$({id:e.id,requestFn:A,sortNum:e.requestSort});const z=()=>{const M=e.id,O=F(M);q(M,{...O,RECORD:""})},P=M=>{n.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=W,Oe(e,{refreshData:A,click:W,resetRecord:z}),{option:S,style:l,refreshData:A,click:W,loading:g,onClose:b,ecanModal:c,echartRef:n,handleLocationOk:w,onFilterOption:p,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),E1="",D1="",Jd=e=>(t.pushScopeId("data-v-21d7ed90"),e=e(),t.popScopeId(),e),Xd={class:"location-wrap"},ef=Jd(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function tf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Xd,[ef,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=xe(me(Qd,[["render",tf],["__scopeId","data-v-21d7ed90"]])),ma={...we,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",yAxisName:"",xAxisName:""},ya=Se(ma),ul=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const nf=t.defineComponent({name:"EcanScatter",props:{...ya},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Ce(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?Ue:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const T=e.xAxisLabelFormatter,E=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(){$t(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(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),lt(T,I)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},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 lt(E,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(I){var p;const{marker:_,seriesName:N}=I,k=((p=I==null?void 0:I.data)==null?void 0:p.record)??{},{name:B,value:A}=k;return De(e.tooltipFormatter,{textData:{marker:_,seriesName:N,a:N,b:B,c:A,...k}})},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:t.unref(a),type:"scatter",symbolSize:e.symbolSize,...t.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{}}),{pageMode:f}=t.inject(Pe,{pageMode:"normal"}),y=(T=[],E)=>{const{name:I="name",value:_="value"}=E||{};a.value=T.map(N=>({value:[N[I],N[_]],record:N}))};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(f)==="design")&&y(T)},{immediate:!0,deep:!0});const u=t.ref(!1),h=He(e),m=async()=>{var T,E;if(e.dataType==="request"){u.value=!0;try{const I=await h();y((E=(T=I==null?void 0:I.data)==null?void 0:T.data)==null?void 0:E.rows,e.dataFieldNames)}catch(I){console.error(I)}finally{u.value=!1}}},g=()=>{o.value=!1},S=Be(e);c(e.id,{type:e.type,RECORD:""});const D=S("click",T=>{const E=e.id,I=d(E);c(E,{...I,type:e.type,RECORD:T==null?void 0:T.data})});Oe(e,{refreshData:()=>{m()},click:D,resetRecord:()=>{const T=e.id,E=d(T);c(T,{...E,RECORD:""})}});const{setRequest:x}=t.inject(ze,{setRequest:T=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:D,loading:u,onClose:g,ecanModal:r}}}),R1="";function of(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const hl=xe(me(nf,[["render",of]])),xa={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},pa=Se(xa),af=t.defineComponent({name:"EcanCustomGraph",props:{...pa},components:{Echarts:pt},setup(e){const o=Ce(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const r=eval;n.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:n,echarts:Kl}}});function rf(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const gl=xe(me(af,[["render",rf]])),ba={...we,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,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},va=Se(ba),ml=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const lf=t.defineComponent({name:"EcanComboGraph",props:{...va},components:{Spin:Nt,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=t.ref({});let d;const c=Ce(e),f=t.ref([]),y=t.ref([]),u=t.ref(),h=t.ref([]),m=t.computed(()=>a.value?Ue:12),g=t.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 O=n.value.chart.getOption(),{xAxis:L}=O||{};L&&L.length&&(s.value=L[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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;a.value=!0,(O=u.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},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:t.unref(h).map((O,L)=>({name:O.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:O=>nn(e.legendFormatter,{name:O})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:O=>{var ae;const L=O.length;let H="",Z=e.tooltipFormatter;d=(ae=O[0])==null?void 0:ae.data,Z===""&&(Z="{marker} {a} {c}");const U=e.seriesTypes;for(let Q=0;Q<L;Q++){const le=U[Q],{tooltipFormatter:re}=le||{},{marker:Y,seriesName:X,name:te,value:pe,data:Ae}=O[Q]||{};if(Q===0){let Ee=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(Ee=(+te).toString()),H+=`${lt(e.xAxisLabelFormatter,Ee)}<br/>`}H+=De(re||Z,{textData:{marker:Y,name:te,value:pe,seriesName:X,a:X,b:te,c:pe||0,...Ae}},{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:t.unref(y).map(O=>{let L={};return O&&typeof O=="object"?L={...O}:L={value:O},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(O){return typeof O=="string"&&O[0]==="0"&&!isNaN(+O)&&(O=(+O).toString()),lt(e.xAxisLabelFormatter,O)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:t.unref(T),series:t.unref(f)})),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=()=>{a.value=!1},b=(O=[],L=!1)=>{let H;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;H=At(O,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;H=Ft(O,U)}y.value=H.dimensions;const Z=H.dataset;h.value=H.dataset,f.value=x(Z)},v=(O=[],L,H=!1)=>{const U=At(O,H?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=x(ae)};function x(O){const L=[],H=O.length,Z=e.seriesTypes;for(let U=0;U<H;U++){const ae=Z[U],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...O[U]};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[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(Q==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:te}=e,pe={};if(e.barBorderRadius){const Ae=e.barBorderRadius.split(",");if(Ae!=null&&Ae.length){const Ee=[];for(const $e of Ae){const Me=parseFloat($e);isNaN(Me)||Ee.push(Me)}pe.borderRadius=Ee}}Y&&(pe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:te,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:pe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}t.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],([O])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(O)},{immediate:!0,deep:!0});const T=t.computed(()=>{const O=e.yAxis;return O==null?void 0:O.map((L,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(Z){return lt(L.axisLabelFormatter,Z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:H===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:H===0?"right":"left"}}))}),E=t.ref(!1),I=He(e),_=async()=>{var O,L;if(e.dataType==="request")try{E.value=!0;const H=await I();b((L=(O=H==null?void 0:H.data)==null?void 0:O.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{E.value=!1}},N=et(e),k=async()=>{var O;try{E.value=!0;const L=await N(),{columns:H=[],rows:Z=[]}=((O=L==null?void 0:L.data)==null?void 0:O.data)??{};let U;H.length>0&&(U={name:H[0],types:H.slice(1).map(ae=>({label:ae,value:ae}))}),v(Z,U,!0)}catch(L){console.error(L)}finally{E.value=!1}},{loadedData:B}=t.inject(vt,{loadedData:{}}),A=t.ref(!1);t.watch(B,O=>{if(e.dataType==="indicator"){const L=tn(e.graphicConfig);L!=null&&L.length&&(!t.unref(A)&&it(e.graphicConfig,O)?(A.value=!0,p()):it(e.graphicConfig,O)||(A.value=!1))}},{deep:!0});const p=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(B))&&k();break;case"request":_();break}},w=(O,L)=>!!t.unref(s)[L.value].value.includes(O),C=async()=>{r.value=!1;const O=n.value.chart.getOption();for(let L=0;L<7;L++)await R(O,L)},R=(O,L)=>new Promise(H=>{setTimeout(()=>{const{series:Z,color:U,xAxis:ae}=O,Q=n.value.chart,{splitArea:le={}}=ae[0]||{};Z.forEach((re,Y)=>{const X=re.data;let te="";L%2?te=U[Y]+"a8":te=U[Y],X[i.value].itemStyle={color:te}}),L%2?(le.show=!0,le.areaStyle.color=t.unref(s).map((re,Y)=>Y===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:Z,xAxis:ae}),H()},200)});o({refreshData:p});const F=Be(e),{getGlobalModel:q,setGlobalModel:W}=t.inject(Te,{getGlobalModel:O=>{},setGlobalModel:(O,L)=>{}});W(e.id,{type:e.type,RECORD:""});const $=F("click",O=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:O==null?void 0:O.data})}),z=O=>{n.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=$;const{setRequest:P}=t.inject(ze,{setRequest:O=>{}});return typeof P=="function"&&P({id:e.id,requestFn:p,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const O=e.id,L=q(O);W(O,{...L,RECORD:""})},refreshData:p,click:$}),{style:c,option:g,click:$,loading:E,onClose:D,ecanModal:u,echartRef:n,handleLocationOk:C,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),L1="",N1="",sf=e=>(t.pushScopeId("data-v-1858b3c3"),e=e(),t.popScopeId(),e),cf={class:"location-wrap"},df=sf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function ff(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",cf,[df,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const yl=xe(me(lf,[["render",ff],["__scopeId","data-v-1858b3c3"]])),Sa={...we,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},Ca=Se(Sa),xl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const uf=t.defineComponent({name:"EcanRadar",props:{...Ca},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ce(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ue:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const p=t.unref(d),w=p.length,C=[];for(let R=0;R<w;R++){const{name:F,data:q=[]}=p[R],W=[{name:F,value:q.map(P=>P.value)}];let $=e.colors[R];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;$={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[R]},{offset:P,color:M[R]},{offset:1,color:M[R]}]}}const z={type:"radar",name:F,data:W,areaStyle:{color:$,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:M,value:O}=P;let L=0,H="0%";if(M)for(const Z of M.value)L+=+Z;return L&&(H=`${(O/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:O,percent:H}},{useNewline:!1,useSpace:!1})}}};C.push(z)}return C}),y=t.computed(()=>{var F;const p=[],w=[],C=t.unref(d),R=C.length;for(let q=0;q<R;q++){const{data:W=[]}=C[q];for(let $=0;$<W.length;$++)w.push(W[$].value)}if((F=i.value)!=null&&F.length){const q=w!=null&&w.length?Math.max(...w)*1.2:0;for(const W of i.value)p.push({name:W,max:q})}return p}),u=t.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(){$t(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 p;a.value=!0,(p=s.value)==null||p.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:p=>{let w="",C=e.tooltipFormatter;C===""&&(C="{marker} {a} {c}");for(let R=0;R<t.unref(y).length;R++){const F=t.unref(y)[R],{marker:q,seriesName:W,value:$}=p||{};R===0&&W&&(w+=`${W}<br/>`),w+=De(C,{textData:{marker:q,name:F.name,value:$[R],a:F.name,b:F.name,c:$[R]||0,type:W}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(y),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:t.unref(d).map(p=>({name:p.name,icon:e.legendType})),formatter:p=>nn(e.legendFormatter,{name:p})},series:t.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),D=(p=[],w=!1)=>{let C;if(e.dataFieldConfigType==="key"){const R=w?e.keyTypeDataFieldNames:null;C=At(p,R)}else if(e.dataFieldConfigType==="value"){const R=w?e.valueTypeDataFieldNames:null;C=Ft(p,R)}i.value=C.dimensions,d.value=C.dataset},b=(p=[],w,C=!1)=>{const F=At(p,C?w:null,!0);i.value=F.dimensions,d.value=F.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([p])=>{(e.dataType==="static"||t.unref(S)==="design")&&D(p)},{immediate:!0,deep:!0});const v=t.ref(!1),x=He(e),T=async()=>{var p,w;if(e.dataType==="request")try{v.value=!0;const C=await x();D((w=(p=C==null?void 0:C.data)==null?void 0:p.data)==null?void 0:w.rows,!0)}catch(C){console.error(C)}finally{v.value=!1}},E=Be(e);g(e.id,{type:e.type,RECORD:""});const I=p=>{const w=p.event.topTarget.__dimIdx;w!==void 0&&E("click",()=>{var q;const{value:C,name:R}=p.data||{},F=m(e.id);g(e.id,{...F,type:e.type,RECORD:{[t.unref(c)]:((q=t.unref(y)[w])==null?void 0:q.name)||"",[R]:C[w],seriesName:R}})})()},_=et(e),N=async()=>{var p;try{v.value=!0;const w=await _(),{columns:C=[],rows:R=[]}=((p=w==null?void 0:w.data)==null?void 0:p.data)??{};let F;C.length>0&&(c.value=C[0],F={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),b(R,F,!0)}catch(w){console.error(w)}finally{v.value=!1}},k=()=>{switch(e.dataType){case"indicator":N();break;case"request":T();break}};Oe(e,{refreshData:k,resetRecord:()=>{const p=e.id,w=m(p);g(p,{...w,RECORD:""})},click:I});const{setRequest:A}=t.inject(ze,{setRequest:p=>{}});return typeof A=="function"&&A({id:e.id,requestFn:k,sortNum:e.requestSort}),o({refreshData:k}),{option:u,style:r,click:I,loading:v,onClose:h,ecanModal:s,echartRef:n}}}),z1="";function hf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const pl=xe(me(uf,[["render",hf]])),gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",mf="data:image/png;base64,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",yf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",xf="data:image/png;base64,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",wa={...we,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"},Aa=Se(wa),bl=["click"],pf=t.defineComponent({name:"EcanBorder",props:{...Aa},setup(e){const o=Ce(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:S,gradientOffset:D,gradientAngle:b,backgroundColor:v}=e;if(g){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${v}, ${x} ${D*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(D=>D.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=t.inject(Pe,{theme:"light"}),i=t.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":gf,"../../assets/border-title-decoration-left2.png":mf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":yf,"../../assets/border-title-decoration-right2.png":xf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,g=[],S={};if(m){const D=m.split(",");for(const b of D)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(S.borderRadius=g.join(" ")),S}),y=Be(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Oe(e,{click:y});const{setGlobalModel:h}=t.inject(Te,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),P1="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),bf=["id"],vf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Sf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Cf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),wf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Af={class:"title-item"},kf=["src"],Tf={class:"title"},Bf=["src"],Ef=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Df=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),If=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Of={key:2,class:"left-title"},_f={class:"title"};function Lf(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.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"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[vf,Sf,Cf,wf],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",Af,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,kf),t.createElementVNode("div",Tf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Bf)])],2),Ef,Df,If,Rf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Of,[t.createElementVNode("div",_f,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,bf)}const vl=xe(me(pf,[["render",Lf],["__scopeId","data-v-8dd53b8f"]])),ka={...we,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",isAutoScroll:!1,scrollSpeed:.3,componentList:[]},Ta=Se(ka),Sl=["tabChange"],Nf=t.defineComponent({name:"EcanTabs",props:{...Ta},components:{ASelect:se.Select,ASelectOption:se.SelectOption,MarqueeScroll:ur},setup(e){const o=Ce(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Pe,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const g=t.unref(n)+1;g<=m?n.value=g:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(r)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>n.value===m,c=Be(e),{setGlobalModel:f}=t.inject(Te,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(Xt,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==t.unref(n)&&(l.value=m,n.value=g,y())})()},h=t.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,S)=>S-g)[0];return{width:m?m+"px":"100%"}});return Oe(e,{tabChange:u}),{style:o,activeKey:n,isActive:d,tabChange:u,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:h}}}),H1="",Ff=["id"],zf=["onClick"];function Mf(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?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:f,onClick:t.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,zf))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],12,Ff)}const Cl=xe(me(Nf,[["render",Mf],["__scopeId","data-v-132544b5"]])),Ba={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ea=Se(Ba),wl=["click"],Da=t.defineComponent({name:"EcanImage",props:{...Ea},setup(e){const o=Ce(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Te,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Be(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||"",f=Ci(t.unref(a),c),y=e.href;let u=y||f;u=De(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Al=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},kl=Da.setup;Da.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const j1="",Pf=["src"];function qf(e,o,n,a,r,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Pf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Tl=xe(me(Da,[["render",qf],["__scopeId","data-v-47ea6e7c"]])),Ia={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=Se(Ia),Hf=t.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:n}=t.inject(Pe,{contextRequestUrl:""}),a=t.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Ts||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),U1="",Vf=["src"];function jf(e,o,n,a,r,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Vf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Bl=xe(me(Hf,[["render",jf],["__scopeId","data-v-19bc100c"]])),Oa={...we,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(Oa),El=["click","refreshData","resetRecord","exportTableData"],Wf="data:image/png;base64,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",Uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",Gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",La=t.defineComponent({name:"EcanTable",components:{Skeleton:sn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=t.ref(),i=t.ref(!1),s=Ce(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};t.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&t.nextTick(()=>{let K=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 ne=0;if(oe&&(K-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(ne=(ie==null?void 0:ie.clientHeight)||0,K-=ne),e.paginationShow){let ee=0;ee=f(),ee&&(K-=ee)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;ne!==fe&&t.unref(c)&&(c.value=K+ne-fe)}})})});const y=t.ref([]),u=t.ref([]),h=t.ref([]),m=t.ref([]),g=t.ref(0),S=t.ref(1),D=t.ref(e.paginationPageSize||10),b=t.reactive([]),v=(V=[])=>{var K,J;if(Array.isArray(V)&&V.length>0){let oe=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ne=[]}}=e;V.forEach((ee,fe)=>{if(t.unref(a)[fe])for(const Le in t.unref(a)[fe])["dataIndex","title"].includes(Le)||(ee[Le]=t.unref(a)[fe][Le]);const he=ne.find(Le=>Le.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let ne=oe-1;ne>=0;ne--)(J=V[ne])!=null&&J.isHidden&&V.splice(ne,1);oe=V.length;for(let ne=0;ne<oe;ne++){const ee=V[ne];if(ne<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ye=ee.dataIndex;ee.sorter=(Ot,Kt)=>Ot[Ye]-Kt[Ye]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Le,tableFilter:Ze,headerCellAlign:xt,headerCellColor:Rt,overflow:Cn}=ee;Ze&&(b.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ye,Ot)=>Ot[ge].toString().toLowerCase().includes(Ye.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Rt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ye,Ot)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(H)===Ot&&e.clickHighlight},onClick:$("click",()=>{const Kt=e.id,wn=z(Kt);Ye={dataIndex:ge,title:Le,...Ye},P(Kt,{...wn,type:e.type,RECORD:Ye})})}),Cn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&v(ee.children)}}},x=(V=[])=>{var J;let K=Ne.cloneDeep(V);return(J=t.unref(m))!=null&&J.length&&(K=Ne.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(K),K};t.watch(D,()=>{S.value=1,Q(!1)}),t.watch(r,V=>{i.value=!!V}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=x(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([V,K])=>{K==="static"&&(u.value=V)},{immediate:!0});const T=t.ref({}),E=V=>{if(Array.isArray(V)){const K=V.length,J=b,oe=J.length,ie={};for(let ee=0;ee<K;ee++){const fe=V[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Le=new Set;Le.add(fe[ge]),ie[ge]=Le}}}const ne={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);ne[ee]=he.map(ge=>({label:ge,value:ge}))}T.value=ne}};t.watch(()=>[e.isReverse,y.value,u.value],()=>{const V=t.unref(y),K=t.unref(u);if(E(K),e.isReverse){const{columns:J,dataSource:oe}=I(Ne.cloneDeep(V),Ne.cloneDeep(K));h.value=J,l.value=oe}else h.value=V,l.value=K},{immediate:!0});const I=(V,K)=>{const J=V[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<K.length;ne++){const ee=K[ne],fe="col"+(ne+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let ne=1;ne<V.length;ne++){const ee=V[ne],fe={col0:ee.title};for(let he=0;he<K.length;he++){const ge=K[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=t.ref(""),N=He(e),k=async(V=!0,K={})=>{var J;try{V&&(n.value=!0),t.unref(_)&&(K.orderCondition=t.unref(_)),e.paginationShow&&(K={pageNum:t.unref(S),pageSize:t.unref(D)||"10",layer:"1",...K});const oe=await N(K),{rows:ie=[],total:ne=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=ne,Array.isArray(ie)&&(u.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&&t.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{n.value=!1}},B=({current:V},K,J)=>{if(S.value=V,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)},A=t.computed(()=>{const V=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:K,total:t.unref(g),current:t.unref(S),pageSize:t.unref(D)||"10",showSizeChanger:!1,size:"large",...J}}),p=V=>+V==1?"是":+V==0?"否":V,w=(V,K)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=K;if(J==null||J==="")return V;const ne={money:Do,percentage:bn,contrast:bn,boolean:p,decimals:Lc,custom:Si};return ne[J]?J==="decimals"?ne[J](V,oe)||"":J==="custom"?ne[J](V,ie)||"":ne[J](V)||"":""},C=V=>V==="contrast"?"upDown":"",R=V=>{const{text:K,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(J==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(K+"");return ee>=0?ne.color=ie:ee<0&&(ne.color=oe),ne}else return{}},F=t.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),q=V=>{const{text:K,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,ne=parseFloat(K+""),ee={width:ie,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:ne<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=V=>{const K=parseFloat(V+"");if(K>=0)return Lo;if(K<0)return No},$=Be(e),{getGlobalModel:z,setGlobalModel:P}=t.inject(Te,{getGlobalModel:V=>{},setGlobalModel:(V,K)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(V=[],K=[])=>{const J=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ne.cloneDeep(J),y.value=x(J),u.value=K},O=et(e),L=async(V=!0)=>{var K,J,oe,ie;try{V&&(n.value=!0);const ne=t.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:ne[1],field:ne[0]});const fe=await O(ee);M((J=(K=fe==null?void 0:fe.data)==null?void 0:K.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(ne){console.error(ne)}finally{n.value=!1}},H=t.ref(-1),Z=(V,K)=>({onClick:$("rowClick",()=>{const J=e.id,oe=z(J);P(J,{...oe,type:e.type,RECORD:V}),H.value=K})}),{loadedData:U}=t.inject(vt,{loadedData:{}}),ae=t.ref(!1);t.watch(U,V=>{if(e.dataType==="indicator"){const K=tn(e.graphicConfig);K!=null&&K.length&&(!t.unref(ae)&&it(e.graphicConfig,V)?(ae.value=!0,Q()):it(e.graphicConfig,V)||(ae.value=!1))}},{deep:!0});const Q=(V=!0)=>{switch(e.dataType){case"request":k(V);break;case"indicator":it(e.graphicConfig,t.unref(U))&&L(V);break}},le=()=>{const V=e.id,K=z(V);P(V,{...K,type:e.type,RECORD:""})},re=t.computed(()=>{const V=t.unref(h);let K=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(K=V.findIndex(he=>he.dataIndex===J),K<0&&(K=0));const ie=[];let ne=0;for(let he=0;he<V.length;he++){const ge=V[he],{isCalcTotal:Le}=ge;he===K?ie.push({...ge,total:oe}):Le?(ie.push({...ge,index:he,total:0}),ne++):ie.push({...ge})}if(ne===0)return[];const ee=t.unref(l),fe=Y(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Le=0;const{isCalcTotal:Ze,dataIndex:xt}=ge;if(Ze===!0){for(let Rt=0;Rt<ee.length;Rt++){const Ye=+ee[Rt][xt];isNaN(Ye)||(Le=new Gl.Big(Le).add(Ye).toNumber())}ge.total=Le}}return fe});function Y(V){var J;const K=[];for(const oe of V)(J=oe.children)!=null&&J.length?K.push(...Y(oe.children)):K.push(oe);return K}const{setRequest:X}=t.inject(ze,{setRequest:V=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const te=(V="",K)=>De(V,K),pe=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},Ae=(V,K="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},Ee=(V,K)=>{V(K.filterCheckboxGroupValue)},$e=(V,K)=>{V({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Me=()=>{},Re=V=>{const K=V.dataIndex;if(typeof K=="string"){let J=t.unref(T)[K];const oe=t.unref(V.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},ke=async()=>{var ge,Le;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};t.unref(_)&&(Ze.orderCondition=t.unref(_));const xt=await N(Ze);K=((Le=(ge=xt==null?void 0:xt.data)==null?void 0:ge.data)==null?void 0:Le.rows)||{}}const J=t.unref(h),oe=[],ie=[];J==null||J.forEach(Ze=>{oe.push(Ze.dataIndex),ie.push(Ze.title)});const ne=K.map(Ze=>Ne.pick(Ze,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,ne,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Ve=(V,K=2)=>{const J=+V*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};Oe(e,{resetRecord:le,refreshData:Q,exportTableData:ke});const Fe=(V,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ke=t.computed(()=>{let V=0;const{height:K,isPageBottom:J}=e;return J&&K&&(V=parseFloat(K)-f()),V?V+"px":"100%"}),We=t.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),je=t.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let V="";const{paginationColor:K,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:ne}=e;return K&&(V+="p-color "),J&&(V+="p-bg-color "),oe&&(V+="active-p-color "),ie&&(V+="active-p-bg-color "),ne&&(V+="hover-bg-color "),V});return{x:d,y:c,style:s,customRow:Z,pagination:A,formatFn:w,contrastClass:C,tableChange:B,summaryList:re,loading:n,onTouchHrefEvent:Ae,handleHref:te,handleHrefTarget:pe,useRowIndex:H,tableColumns:h,tableDataSource:l,useFilterOptions:Re,useSetSelectedKeys:Ee,onResetFilter:$e,onSearchFilterOptions:Me,exportTableData:ke,handleProgressText:Ve,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Fe,tableHeight:Ke,tableHeaderBgColor:We,tableBodyBgColor:je,getChgStyle:R,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:Wf,seqIcon2:Uf,seqIcon3:Gf,iconSize:ut,containerClass:tt,getCellStyle:V=>{const{overflow:K}=V;if(K==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(K==="wrap")return{}}}}}),Dl=()=>{t.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}))},Il=La.setup;La.setup=Il?(e,o)=>(Dl(),Il(e,o)):Dl;const $1="",K1="",$f=e=>(t.pushScopeId("data-v-f641124f"),e=e(),t.popScopeId(),e),Kf=["id"],Zf={key:0,class:"table-tool"},Yf=t.createTextVNode("导出数据"),Qf=t.createTextVNode(" 搜索 "),Jf=t.createTextVNode(" 重置 "),Xf=["src","width","height"],eu=["src","width","height"],tu=["src","width","height"],nu={key:1},ou={key:1,class:"action-list"},au=["href","target","onClick"],ru={key:2,class:"progress-cell"},iu=["title"],lu=["title"],su=["src"],cu=["title"],du=["src"],fu={class:"ant-pagination-options-quick-jumper"},uu=$f(()=>t.createElementVNode("span",null,"条 / 页",-1));function hu(e,o,n,a,r,i){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),h=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(h,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Zf,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Yf]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.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:t.withCtx(({column:g,selectedKeys:S,setSelectedKeys:D,confirm:b,clearFilters:v})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(D,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:t.withCtx(()=>[Qf]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(x=>e.onResetFilter(v,g),["stop"])},{default:t.withCtx(()=>[Jf]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:S,text:D,record:b})=>{var v,x,T,E;return[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Xf)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,eu)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,tu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(S+1),5)],64)):(t.openBlock(),t.createElementBlock("span",nu,t.toDisplayString(S+1),1))],64)):g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",ou,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(I,_)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:_},[t.createElementVNode("a",{href:e.handleHref(I.href,b),target:e.handleHrefTarget(I.target),style:t.normalizeStyle({color:I.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(I.target,e.handleHref(I.href,b))},t.toDisplayString(I.title),13,au)]))),128))])):g.format==="progress"?(t.openBlock(),t.createElementBlock("div",ru,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(D,g.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(D)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(D,g.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((v=g==null?void 0:g.customFormatter)==null?void 0:v.split("{value}")[0])||""},t.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,iu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle(e.getChgStyle({...g,text:D})),title:g.format!=null?e.formatFn(D,g):D},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:D})),src:e.getChgBoxImgSrc(D)},null,12,su)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(g.format!=null?e.formatFn(D,g):D),1)],14,lu),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((T=g==null?void 0:g.customFormatter)==null?void 0:T.split("{value}")[1])||""},t.toDisplayString(((E=g==null?void 0:g.customFormatter)==null?void 0:E.split("{value}")[1])||""),9,cu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,du)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",fu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[t.vModelText,e.pageSize]]),uu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Kf)}const Rl=xe(me(La,[["render",hu],["__scopeId","data-v-f641124f"]])),Na={...we,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"},Fa=Se(Na),Ol=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const gu=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Fa},setup(e){const o=He(e),n=He({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Ce(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),f=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const p=e.symbolImage;return e.symbolImage?"image://"+yt(p):"circle"}),u=p=>{let w=e.tooltipFormatter;const C=w.match(/\{(.+?)\}/g);if(C==null||C.length===0)return w;for(let R=0;R<C.length;R++){const F=C[R];let q=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=q.match(W);for(let z=0;z<$.length;z++){const P=$[z],M=p[P];M!=null&&(q=q.replace(P,M))}w=w.replace(F,q)}return w.split(`
|
|
120
|
+
`)},h=t.ref(!1),m=t.ref("");let g=new AbortController;const S=(p,w)=>{const C=g.signal;h.value=!0,r.value=p,n({name:p,signal:C}).then(R=>{var F,q;if(R){const W=((q=(F=R==null?void 0:R.data)==null?void 0:F.data)==null?void 0:q.rows)||[];let $="";for(const z of W){const P=u(z)||[];if(P!=null&&P.length)for(const M of P)$+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,w(t.unref(m),$)}else C.aborted?i.value="Loading":i.value=p,w(t.unref(m),i.value);h.value=!1})},D=t.computed(()=>{const p=e.geoCenter;let w;return typeof p=="string"&&p!==""&&(w=p.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:w,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(C,R,F)=>{m.value=R;const{name:q=""}=C,{requestUrl:W}=e.tooltipRequestData;if(!W)return q;if(t.unref(h))t.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(t.unref(r)===q)return t.unref(i);S(q,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(f),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:t.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=t.ref(!1),v=async()=>{var C;b.value=!1;const p=e.mapJson,w=`map-${e.id}`;if(p!=null&&p.path){const R=await dt(((C=window==null?void 0:window.config)==null?void 0:C.uploadPath)+p.path);Qe.registerMap(w,(R==null?void 0:R.data)||{})}else Qe.registerMap(w,{});b.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const x=async()=>{var p,w;if(e.dataType==="request"){b.value=!1;try{const C=await o(),R=((w=(p=C==null?void 0:C.data)==null?void 0:p.data)==null?void 0:w.rows)||{},F=`map-${e.id}`;if(R!=null&&R.path){const q=await dt(R.path);Qe.registerMap(F,(q==null?void 0:q.data)||{})}else Qe.registerMap(F,{})}catch(C){console.error(C)}finally{b.value=!0}}},T=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:E,setGlobalModel:I}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}}),N=Be(e)("click",()=>{const p=E(e.id);I(e.id,{...p,RECORD:t.unref(a)})});Oe(e,{refreshData:T});const{setRequest:k}=t.inject(ze,{setRequest:p=>{}});return typeof k=="function"&&k({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(p={})=>{p.componentType==="geo"&&p.region?a.value=p.region:a.value=null}}}}),Y1="",mu=["src"];function yu(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.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"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,mu),[[t.vShow,!1]])],4)}const _l=xe(me(gu,[["render",yu],["__scopeId","data-v-10f150ac"]])),za={...we,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",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"},Ma=Se(za),Ll=["selectChange","refreshData"],xu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Ma},setup(e,{expose:o}){const n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var B;const{mode:k}=e;return(B=t.unref(i))!=null&&B.length?s.value:k==="multiple"||k==="tags"||k==="combobox"?[]:""},set:k=>{s.value=k}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:k=>{},setGlobalModel:(k,B)=>{},getRecordValueByKeyName:k=>{}});t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:k,selectFirstOption:B,value:A}=e,p=f(A);k==="multiple"||k==="tags"||k==="combobox"?p?s.value=p.split(","):B&&(s.value=[t.unref(i)[0]]):p?s.value=p:B&&(s.value=t.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(k,B)=>{const A=y.label,p=y.value;let w;const C=B[A],R=B[p];return C!=null?w=C:R!=null&&(w=R),(w==null?void 0:w.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},h=k=>{const{label:B,value:A,options:p}=e.dataFieldNames;if(p&&Array.isArray(k))if(k.some(w=>p in w)){const w={},C=[];k.forEach(R=>{w[R[p]]||(w[R[p]]=[]),w[R[p]].push({[B]:R[B],[A]:R[A]})});for(const R in w)C.push({[B]:R,[p]:w[R]});return C}else return k;else if(!p)return k},m=t.ref(!1),g=async()=>{var k,B;if(e.dataType==="request"){m.value=!0;try{const A=await r();if(i.value=h(((B=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:B.rows)||[]),e.selectFirstOption){let p=t.unref(i)[0];if(y.options){const w=p[y.options];w&&w.length&&(p=w[0])}s.value=p[y.value]}}catch(A){console.error(A)}finally{m.value=!1}}},S=t.computed(()=>{let k=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const B=y.label,A=y.value;if(e.mode==="multiple")k=t.unref(i).filter(p=>t.unref(s).includes(p[A])).map(p=>p[B]);else{const p=t.unref(i).find(w=>t.unref(s)===w[A]);p&&(k=p[B])}}return k}),D=t.ref([]),b=t.computed(()=>{const k={};if(e.mode!=="multiple"){const B=t.unref(D).find(A=>A.value===t.unref(s));B&&(k.itemCodes=B.item_codes)}return k});c(e.id,{type:e.type,value:S,...t.unref(b)});const x=Be(e)("selectChange",()=>{const k=e.id,B=d(k);c(k,{...B,...t.unref(b),RECORD:S})}),T=(k=[])=>{if(i.value=h(k),e.selectFirstOption){let B=t.unref(i)[0];if(y.options){const A=B[y.options];A&&A.length&&(B=A[0])}s.value=B[y.value]}},E=et(e),I=async()=>{var k;try{m.value=!0;const B=await E(),{data:A}=(B==null?void 0:B.data)||{},p=y.label,w=y.value;if(A){const C=((k=B==null?void 0:B.data)==null?void 0:k.data)??[];D.value=C;const R=C.map(W=>({[p]:W.label,[w]:W.value})),{id:F}=e,q=d(F);c(F,{...q,...t.unref(b)}),T(R)}else T([])}catch(B){console.error(B)}finally{m.value=!1}},_=()=>{switch(e.dataType){case"indicator":{I();break}case"request":g();break}};Oe(e,{selectChange:x,refreshData:_});const{setRequest:N}=t.inject(ze,{setRequest:({id:k,sortNum:B,requestFn:A})=>{}});return typeof N=="function"&&N({id:e.id,requestFn:_,sortNum:e.requestSort}),o({refreshData:_}),{style:n,getPopupContainer:a,myValue:s,selectChange:x,options:i,filterOption:u,loading:m,resultValue:l}}}),J1="",X1="";function pu(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.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:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.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 Nl=xe(me(xu,[["render",pu],["__scopeId","data-v-5b50dc15"]])),Fl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:fl,EcanBorder:vl,EcanButton:Ki,EcanCheckbox:Yi,EcanComboGraph:yl,EcanCustomGraph:gl,EcanDataSelect:Nl,EcanDatePicker:Hi,EcanIframe:Bl,EcanImage:Tl,EcanInput:zi,EcanLine:cl,EcanList:_i,EcanMap:_l,EcanModal:kt,EcanPageConfig:wi,EcanPie:ll,EcanProportion:Ni,EcanProviderConfig:Ai,EcanRadar:pl,EcanRadio:nl,EcanRangePicker:Gi,EcanScatter:hl,EcanScrollText:Di,EcanSelect:Ji,EcanTable:Rl,EcanTabs:Cl,EcanText:Ei,EcanTimeDisplay:Ri,EcanTreeSelect:el,barComponentProps:ga,barEvents:dl,barProps:ha,borderComponentProps:Aa,borderEvents:bl,borderProps:wa,buttonComponentProps:Jo,buttonEvents:$i,buttonProps:Qo,checkboxComponentProps:ea,checkboxEvents:Zi,checkboxProps:Xo,comboGraphComponentProps:va,comboGraphEvents:ml,comboGraphProps:ba,customGraphComponentProps:pa,customGraphProps:xa,dataSelectComponentProps:Ma,dataSelectEvents:Ll,dataSelectProps:za,datePickerComponentProps:Go,datePickerEvents:Mi,datePickerProps:Uo,iframeComponentProps:Ra,iframeProps:Ia,imageComponentProps:Ea,imageEvents:wl,imageProps:Ba,inputComponentProps:Wo,inputEvents:Fi,inputProps:jo,lineComponentProps:ua,lineEvents:sl,lineProps:fa,listComponentProps:qo,listEvents:Oi,listProps:Po,mapComponentProps:Fa,mapEvents:Ol,mapProps:Na,modalComponentProps:da,modalEvents:al,modalProps:ca,pageConfig:zn,pageConfigComponentProps:Mn,pieComponentProps:sa,pieEvents:ol,pieProps:la,proportionComponentProps:Vo,proportionEvents:Li,proportionProps:Ho,providerConfig:Io,providerConfigComponentProps:Ro,radarComponentProps:Ca,radarEvents:xl,radarProps:Sa,radioComponentProps:ia,radioEvents:tl,radioProps:ra,rangePickerComponentProps:Zo,rangePickerEvents:Vi,rangePickerProps:Ko,scatterComponentProps:ya,scatterEvents:ul,scatterProps:ma,selectComponentProps:na,selectEvents:Qi,selectProps:ta,tableComponentProps:_a,tableEvents:El,tableProps:Oa,tabsComponentProps:Ta,tabsEvents:Sl,tabsProps:ka,textComponentProps:_o,textEvents:ki,textProps:Oo,timeDisplayComponentProps:Mo,timeDisplayEvents:Ii,timeDisplayProps:zo,treeSelectComponentProps:aa,treeSelectEvents:Xi,treeSelectProps:oa},Symbol.toStringTag,{value:"Module"})),bu={install:e=>{Object.keys(Fl).forEach(o=>{const n=Fl[o];n.install&&e.use(n)})}};j.EcanBar=fl,j.EcanBorder=vl,j.EcanButton=Ki,j.EcanCheckbox=Yi,j.EcanComboGraph=yl,j.EcanCustomGraph=gl,j.EcanDataSelect=Nl,j.EcanDatePicker=Hi,j.EcanIframe=Bl,j.EcanImage=Tl,j.EcanInput=zi,j.EcanLine=cl,j.EcanList=_i,j.EcanMap=_l,j.EcanModal=kt,j.EcanPageConfig=wi,j.EcanPie=ll,j.EcanProportion=Ni,j.EcanProviderConfig=Ai,j.EcanRadar=pl,j.EcanRadio=nl,j.EcanRangePicker=Gi,j.EcanScatter=hl,j.EcanScrollText=Di,j.EcanSelect=Ji,j.EcanTable=Rl,j.EcanTabs=Cl,j.EcanText=Ei,j.EcanTimeDisplay=Ri,j.EcanTreeSelect=el,j.barComponentProps=ga,j.barEvents=dl,j.barProps=ha,j.borderComponentProps=Aa,j.borderEvents=bl,j.borderProps=wa,j.buttonComponentProps=Jo,j.buttonEvents=$i,j.buttonProps=Qo,j.checkboxComponentProps=ea,j.checkboxEvents=Zi,j.checkboxProps=Xo,j.comboGraphComponentProps=va,j.comboGraphEvents=ml,j.comboGraphProps=ba,j.compatibleMobileList=il,j.customGraphComponentProps=pa,j.customGraphProps=xa,j.dataSelectComponentProps=Ma,j.dataSelectEvents=Ll,j.dataSelectProps=za,j.datePickerComponentProps=Go,j.datePickerEvents=Mi,j.datePickerProps=Uo,j.default=bu,j.handleScrollCombinations=rl,j.iframeComponentProps=Ra,j.iframeProps=Ia,j.imageComponentProps=Ea,j.imageEvents=wl,j.imageProps=Ba,j.inputComponentProps=Wo,j.inputEvents=Fi,j.inputProps=jo,j.lineComponentProps=ua,j.lineEvents=sl,j.lineProps=fa,j.listComponentProps=qo,j.listEvents=Oi,j.listProps=Po,j.mapComponentProps=Fa,j.mapEvents=Ol,j.mapProps=Na,j.modalComponentProps=da,j.modalEvents=al,j.modalProps=ca,j.pageConfig=zn,j.pageConfigComponentProps=Mn,j.pieComponentProps=sa,j.pieEvents=ol,j.pieProps=la,j.proportionComponentProps=Vo,j.proportionEvents=Li,j.proportionProps=Ho,j.providerConfig=Io,j.providerConfigComponentProps=Ro,j.radarComponentProps=Ca,j.radarEvents=xl,j.radarProps=Sa,j.radioComponentProps=ia,j.radioEvents=tl,j.radioProps=ra,j.rangePickerComponentProps=Zo,j.rangePickerEvents=Vi,j.rangePickerProps=Ko,j.scatterComponentProps=ya,j.scatterEvents=ul,j.scatterProps=ma,j.selectComponentProps=na,j.selectEvents=Qi,j.selectProps=ta,j.tableComponentProps=_a,j.tableEvents=El,j.tableProps=Oa,j.tabsComponentProps=Ta,j.tabsEvents=Sl,j.tabsProps=ka,j.textComponentProps=_o,j.textEvents=ki,j.textProps=Oo,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=Ii,j.timeDisplayProps=zo,j.treeSelectComponentProps=aa,j.treeSelectEvents=Xi,j.treeSelectProps=oa,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|