@ecan-bi/datav 1.3.32 → 1.3.34
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 +4318 -4293
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +31 -31
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/table/table/Table.vue.d.ts +8 -6
- package/types/table/table/index.d.ts +8 -6
- package/types/text/list/List.vue.d.ts +1 -0
- package/types/text/list/index.d.ts +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(H,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):(H=typeof globalThis<"u"?globalThis:H||self,t(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,t,Je,Ua,de,Hu,Wu,_e,ye,os,as,ju,Gu,Uu,$a,$u,Yu,Ku,Zu,Et,gt,ke,Qu,rs,Ju,Xu,Qt,is){var Ql,Jl,Xl,es;"use strict";function ls(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 ss=ls(rs),cs=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ds(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 cs.forEach(i=>{r[i]=n(i)}),r}return a()}function fs(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Je.throttle(()=>{i.resize()},100),Ua.addListener(r,a)),d(()=>{a&&r&&Ua.removeListener(r,a)})})}const us={autoresize:Boolean},hs="ecLoadingOptions";function gs(e,o,n){const a=t.inject(hs,{}),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 ms={loading:Boolean,loadingOptions:Object},eh="",ys=/^on[^a-z]/,xs=e=>ys.test(e);function ps(e){const o={};for(const n in e)xs(n)||(o[n]=e[n]);return o}const bs="x-vue-echarts",vs="ecTheme",Ss="ecInitOptions",Cs="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...us,...ms},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(vs,null),l=t.inject(Ss,null),d=t.inject(Cs,null),{autoresize:c,manualUpdate:h,loading:y,loadingOptions:f}=t.toRefs(e),g=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),u=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),E=t.computed(()=>ps(o));function v(D){if(r.value||!a.value)return;const I=r.value=Je.init(a.value,m.value,u.value);e.group&&(I.group=e.group);let O=n;O||(O={},Object.keys(o).filter(B=>B.indexOf("on")===0&&B.length>2).forEach(B=>{const C=B.charAt(2).toLowerCase()+B.slice(3);O[C]=o[B]})),Object.keys(O).forEach(B=>{const C=O[B];C&&(B.indexOf("zr:")===0?I.getZr().on(B.slice(3).toLowerCase(),C):I.on(B.toLowerCase(),C))});function R(){if(I&&!I.isDisposed())try{I.resize()}catch(B){if(B.message==="Cannot read property 'get' of undefined")return;throw B}}function T(){I.setOption(D||g.value,S.value)}c.value?t.nextTick(()=>{R(),T()}):T()}function b(D,I){e.manualUpdate&&(i.value=D),r.value?r.value.setOption(D,I||{}):v(D)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let w=null;t.watch(h,D=>{typeof w=="function"&&(w(),w=null),D||(w=t.watch(()=>e.option,I=>{I&&(r.value?r.value.setOption(I,S.value):v())},{deep:!0}))},{immediate:!0}),t.watch([m,u],()=>{x(),v()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=ds(r,v);return gs(r,y,f),fs(r,c,a),t.onMounted(()=>{e.option&&v()}),t.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(bs,e)}});function at(e,o){ws(e)&&(e="100%");var n=As(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 ws(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function As(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ks(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ln(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kn(e){return e.length===1?"0"+e:String(e)}function Ts(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function Tn(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 Bs(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=Tn(l,s,e+1/3),r=Tn(l,s,e),i=Tn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Es(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 Ds(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],h=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:h*255,b:y*255}}function Rs(e,o,n,a){var r=[kn(Math.round(e).toString(16)),kn(Math.round(o).toString(16)),kn(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 Ya(e){return Xe(e)/255}function Xe(e){return parseInt(e,16)}var Ka={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Jt(e){var o={r:0,g:0,b:0},n=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Ls(e)),typeof e=="object"&&(mt(e.r)&&mt(e.g)&&mt(e.b)?(o=Ts(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):mt(e.h)&&mt(e.s)&&mt(e.v)?(a=ln(e.s),r=ln(e.v),o=Ds(e.h,a,r),s=!0,l="hsv"):mt(e.h)&&mt(e.s)&&mt(e.l)&&(a=ln(e.s),i=ln(e.l),o=Bs(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ks(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 Is="[-\\+]?\\d+%?",_s="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(_s,")|(?:").concat(Is,")"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),En="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),ct={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Bn),rgba:new RegExp("rgba"+En),hsl:new RegExp("hsl"+Bn),hsla:new RegExp("hsla"+En),hsv:new RegExp("hsv"+Bn),hsva:new RegExp("hsva"+En),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 Ls(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ka[e])e=Ka[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ct.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ct.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ct.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ct.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ct.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ct.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ct.hex8.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),a:Ya(n[4]),format:o?"name":"hex8"}:(n=ct.hex6.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),format:o?"name":"hex"}:(n=ct.hex4.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),a:Ya(n[4]+n[4]),format:o?"name":"hex8"}:(n=ct.hex3.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function mt(e){return!!ct.CSS_UNIT.exec(String(e))}var sn=2,Za=.16,Os=.05,Ns=.05,Fs=.15,Qa=5,Ja=4,Ms=[{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 Xa(e){var o=e.r,n=e.g,a=e.b,r=Es(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function cn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Rs(o,n,a,!1))}function zs(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 er(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-sn*o:Math.round(e.h)+sn*o:a=n?Math.round(e.h)+sn*o:Math.round(e.h)-sn*o,a<0?a+=360:a>=360&&(a-=360),a}function tr(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Za*o:o===Ja?a=e.s+Za:a=e.s+Os*o,a>1&&(a=1),n&&o===Qa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function nr(e,o,n){var a;return n?a=e.v+Ns*o:a=e.v-Fs*o,a>1&&(a=1),Number(a.toFixed(2))}function Dn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Jt(e),r=Qa;r>0;r-=1){var i=Xa(a),s=cn(Jt({h:er(i,r,!0),s:tr(i,r,!0),v:nr(i,r,!0)}));n.push(s)}n.push(cn(a));for(var l=1;l<=Ja;l+=1){var d=Xa(a),c=cn(Jt({h:er(d,l),s:tr(d,l),v:nr(d,l)}));n.push(c)}return o.theme==="dark"?Ms.map(function(h){var y=h.index,f=h.opacity,g=cn(zs(Jt(o.backgroundColor||"#141414"),Jt(n[y]),f*100));return g}):n}var Rn={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={},_n={};Object.keys(Rn).forEach(function(e){In[e]=Dn(Rn[e]),In[e].primary=In[e][5],_n[e]=Dn(Rn[e],{theme:"dark",backgroundColor:"#141414"}),_n[e].primary=_n[e][5]});var or=[],Xt=[],Ps="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function qs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Vs(e,o){if(o=o||{},e===void 0)throw new Error(Ps);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=or.indexOf(a);r===-1&&(r=or.push(a)-1,Xt[r]={});var i;return Xt[r]!==void 0&&Xt[r][n]!==void 0?i=Xt[r][n]:(i=Xt[r][n]=qs(),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 ar(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){Hs(e,r,n[r])})}return e}function Hs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ws(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function js(e,o){Ws(e,"[@ant-design/icons-vue] ".concat(o))}function rr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Ln(e,o,n){return n?t.h(e.tag,ar({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return Ln(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,ar({key:o},e.attrs),(e.children||[]).map(function(a,r){return Ln(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function ir(e){return Dn(e)[0]}function lr(e){return e?Array.isArray(e)?e:[e]:[]}var Gs=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.34 */
|
|
2
|
+
(function(H,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):(H=typeof globalThis<"u"?globalThis:H||self,t(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,t,et,Ka,de,ju,Gu,_e,ye,as,rs,Uu,$u,Yu,Za,Ku,Zu,Qu,Ju,Rt,yt,Ae,Xu,is,eh,th,Jt,ls){var es,ts,ns,os;"use strict";function ss(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 cs=ss(is),ds=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function fs(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 ds.forEach(i=>{r[i]=n(i)}),r}return a()}function us(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=et.throttle(()=>{i.resize()},100),Ka.addListener(r,a)),d(()=>{a&&r&&Ka.removeListener(r,a)})})}const hs={autoresize:Boolean},gs="ecLoadingOptions";function ms(e,o,n){const a=t.inject(gs,{}),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 ys={loading:Boolean,loadingOptions:Object},nh="",xs=/^on[^a-z]/,ps=e=>xs.test(e);function bs(e){const o={};for(const n in e)ps(n)||(o[n]=e[n]);return o}const vs="x-vue-echarts",Ss="ecTheme",Cs="ecInitOptions",ws="ecUpdateOptions",St=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...hs,...ys},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(Ss,null),l=t.inject(Cs,null),d=t.inject(ws,null),{autoresize:c,manualUpdate:h,loading:y,loadingOptions:u}=t.toRefs(e),g=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),f=t.computed(()=>e.initOptions||t.unref(l)||{}),v=t.computed(()=>e.updateOptions||t.unref(d)||{}),B=t.computed(()=>bs(o));function b(D){if(r.value||!a.value)return;const _=r.value=et.init(a.value,m.value,f.value);e.group&&(_.group=e.group);let O=n;O||(O={},Object.keys(o).filter(E=>E.indexOf("on")===0&&E.length>2).forEach(E=>{const C=E.charAt(2).toLowerCase()+E.slice(3);O[C]=o[E]})),Object.keys(O).forEach(E=>{const C=O[E];C&&(E.indexOf("zr:")===0?_.getZr().on(E.slice(3).toLowerCase(),C):_.on(E.toLowerCase(),C))});function R(){if(_&&!_.isDisposed())try{_.resize()}catch(E){if(E.message==="Cannot read property 'get' of undefined")return;throw E}}function T(){_.setOption(D||g.value,v.value)}c.value?t.nextTick(()=>{R(),T()}):T()}function p(D,_){e.manualUpdate&&(i.value=D),r.value?r.value.setOption(D,_||{}):b(D)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let w=null;t.watch(h,D=>{typeof w=="function"&&(w(),w=null),D||(w=t.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,v.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,f],()=>{x(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=fs(r,b);return ms(r,y,u),us(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(x),{chart:r,root:a,setOption:p,nonEventAttrs:B,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(vs,e)}});function rt(e,o){As(e)&&(e="100%");var n=ks(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 As(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ks(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ts(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Bn(e){return e.length===1?"0"+e:String(e)}function Bs(e,o,n){return{r:rt(e,255)*255,g:rt(o,255)*255,b:rt(n,255)*255}}function En(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 Es(e,o,n){var a,r,i;if(e=rt(e,360),o=rt(o,100),n=rt(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=En(l,s,e+1/3),r=En(l,s,e),i=En(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function Ds(e,o,n){e=rt(e,255),o=rt(o,255),n=rt(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 Rs(e,o,n){e=rt(e,360)*6,o=rt(o,100),n=rt(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],h=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:h*255,b:y*255}}function Is(e,o,n,a){var r=[Bn(Math.round(e).toString(16)),Bn(Math.round(o).toString(16)),Bn(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 Qa(e){return tt(e)/255}function tt(e){return parseInt(e,16)}var Ja={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 Xt(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=Os(e)),typeof e=="object"&&(xt(e.r)&&xt(e.g)&&xt(e.b)?(o=Bs(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):xt(e.h)&&xt(e.s)&&xt(e.v)?(a=fn(e.s),r=fn(e.v),o=Rs(e.h,a,r),s=!0,l="hsv"):xt(e.h)&&xt(e.s)&&xt(e.l)&&(a=fn(e.s),i=fn(e.l),o=Es(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ts(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 _s="[-\\+]?\\d+%?",Ls="[-\\+]?\\d*\\.\\d+%?",Ct="(?:".concat(Ls,")|(?:").concat(_s,")"),Dn="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),Rn="[\\s|\\(]+(".concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")[,|\\s]+(").concat(Ct,")\\s*\\)?"),dt={CSS_UNIT:new RegExp(Ct),rgb:new RegExp("rgb"+Dn),rgba:new RegExp("rgba"+Rn),hsl:new RegExp("hsl"+Dn),hsla:new RegExp("hsla"+Rn),hsv:new RegExp("hsv"+Dn),hsva:new RegExp("hsva"+Rn),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 Os(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Ja[e])e=Ja[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=dt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=dt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=dt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=dt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=dt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=dt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=dt.hex8.exec(e),n?{r:tt(n[1]),g:tt(n[2]),b:tt(n[3]),a:Qa(n[4]),format:o?"name":"hex8"}:(n=dt.hex6.exec(e),n?{r:tt(n[1]),g:tt(n[2]),b:tt(n[3]),format:o?"name":"hex"}:(n=dt.hex4.exec(e),n?{r:tt(n[1]+n[1]),g:tt(n[2]+n[2]),b:tt(n[3]+n[3]),a:Qa(n[4]+n[4]),format:o?"name":"hex8"}:(n=dt.hex3.exec(e),n?{r:tt(n[1]+n[1]),g:tt(n[2]+n[2]),b:tt(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function xt(e){return!!dt.CSS_UNIT.exec(String(e))}var un=2,Xa=.16,Ns=.05,Fs=.05,Ms=.15,er=5,tr=4,zs=[{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 nr(e){var o=e.r,n=e.g,a=e.b,r=Ds(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function hn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(Is(o,n,a,!1))}function Ps(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 or(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-un*o:Math.round(e.h)+un*o:a=n?Math.round(e.h)+un*o:Math.round(e.h)-un*o,a<0?a+=360:a>=360&&(a-=360),a}function ar(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Xa*o:o===tr?a=e.s+Xa:a=e.s+Ns*o,a>1&&(a=1),n&&o===er&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function rr(e,o,n){var a;return n?a=e.v+Fs*o:a=e.v-Ms*o,a>1&&(a=1),Number(a.toFixed(2))}function In(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Xt(e),r=er;r>0;r-=1){var i=nr(a),s=hn(Xt({h:or(i,r,!0),s:ar(i,r,!0),v:rr(i,r,!0)}));n.push(s)}n.push(hn(a));for(var l=1;l<=tr;l+=1){var d=nr(a),c=hn(Xt({h:or(d,l),s:ar(d,l),v:rr(d,l)}));n.push(c)}return o.theme==="dark"?zs.map(function(h){var y=h.index,u=h.opacity,g=hn(Ps(Xt(o.backgroundColor||"#141414"),Xt(n[y]),u*100));return g}):n}var _n={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"},Ln={},On={};Object.keys(_n).forEach(function(e){Ln[e]=In(_n[e]),Ln[e].primary=Ln[e][5],On[e]=In(_n[e],{theme:"dark",backgroundColor:"#141414"}),On[e].primary=On[e][5]});var ir=[],en=[],qs="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Vs(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Hs(e,o){if(o=o||{},e===void 0)throw new Error(qs);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=ir.indexOf(a);r===-1&&(r=ir.push(a)-1,en[r]={});var i;return en[r]!==void 0&&en[r][n]!==void 0?i=en[r][n]:(i=en[r][n]=Vs(),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 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){Ws(e,r,n[r])})}return e}function Ws(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function js(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Gs(e,o){js(e,"[@ant-design/icons-vue] ".concat(o))}function sr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Nn(e,o,n){return n?t.h(e.tag,lr({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return Nn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,lr({key:o},e.attrs),(e.children||[]).map(function(a,r){return Nn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function cr(e){return In(e)[0]}function dr(e){return e?Array.isArray(e)?e:[e]:[]}var Us=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s0(e,o){if(e){if(typeof e=="string")return fr(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 fr(e,o)}}function fr(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 c0(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 d0(e){if(Array.isArray(e))return e}function ur(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){Nn(e,r,n[r])})}return e}function Nn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function f0(e,o){if(e==null)return{};var n=u0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function u0(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}dr("#1890ff");var Nt=function(o,n){var a,r=ur({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,h=r.twoToneColor,y=r.onClick,f=f0(r,r0),g=(a={anticon:!0},Nn(a,"anticon-".concat(s.name),!!s.name),Nn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",u=c;u===void 0&&y&&(u=-1,f.tabindex=u);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=lr(h),v=i0(E,2),b=v[0],x=v[1];return t.createVNode("span",ur({role:"img","aria-label":s.name},f,{onClick:y,class:g}),[t.createVNode(On,{class:m,icon:s,primaryColor:b,secondaryColor:x,style:S},null)])};Nt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Nt.displayName="AntdIcon",Nt.inheritAttrs=!1,Nt.getTwoToneColor=a0,Nt.setTwoToneColor=dr;const hr=Nt;var h0={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 g0=h0;function gr(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){m0(e,r,n[r])})}return e}function m0(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=gr({},o,n.attrs);return t.createVNode(hr,gr({},a,{icon:g0}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const y0=Fn;var x0={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 p0=x0;function mr(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){b0(e,r,n[r])})}return e}function b0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Mn=function(o,n){var a=mr({},o,n.attrs);return t.createVNode(hr,mr({},a,{icon:p0}),null)};Mn.displayName="LoadingOutlined",Mn.inheritAttrs=!1;const v0=Mn,S0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:de.Spin},setup(){return{indicator:t.h(v0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),th="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},C0={class:"spin-wrapper"};function w0(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",C0,[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 Ft=me(S0,[["render",w0]]),A0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:de.Skeleton}});function k0(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 Mt=me(A0,[["render",k0]]);(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 T0=Object.defineProperty,yr=Object.getOwnPropertySymbols,B0=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,xr=(e,o,n)=>o in e?T0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,pr=(e,o)=>{for(var n in o||(o={}))B0.call(o,n)&&xr(e,n,o[n]);if(yr)for(var n of yr(o))E0.call(o,n)&&xr(e,n,o[n]);return e},D0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const R0=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),h=t.ref(0),y=t.ref(0),f=t.ref(!1),g=t.ref(!1),m=t.ref(0),u=t.ref(null),S=t.ref("200px"),E=t.ref(!1),v=t.ref(null),b=t.ref(null),x=async()=>{await w(),i.value++},w=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",v.value!==null&&b.value!==null&&v.value&&b.value)if(e.vertical&&"clientHeight"in v.value&&"clientHeight"in b.value){y.value=v.value.clientHeight,h.value=b.value.clientHeight;const A=Math.ceil(h.value/y.value);return n.value=isFinite(A)?A:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in v.value&&"clientWidth"in b.value){if(c.value=v.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const A=Math.ceil(d.value/c.value);return n.value=isFinite(A)?A: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,(A,L)=>{A!==L&&o(A?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),f.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),f.value=!1)},I=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},R=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),T=t.computed(()=>e.pauseOnHover&&(f.value||g.value)||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),B=t.computed(()=>e.pauseOnHover&&f.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),C=t.computed(()=>{const A={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${T.value}`,"--pauseOnClick":`${B.value}`,"--pauseAnimation":`${R.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}`},L={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(L["--orientation"]="scrollY"),pr(pr({},A),L)}),_=t.computed(()=>!!e.gradient),p=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 w(),x()),E.value=!0};return t.onMounted(async()=>{p(),u.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(u.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(u.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:h,loopCounter:m,loopInterval:u,mouseOverMarquee:f,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:v,marqueeOverlayContainer:b,componentKey:i,showGradient:_,cloneAmount:n,ForcesUpdate:x,checkForClone:w,setupMarquee:p,getCurrentStyle:C,hoverStarted:k,hoverEnded:D,mouseDown:I,mouseUp:O}}}),I0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},_0={class:"marquee",ref:"marqueeContent"},L0={key:1,"aria-hidden":!0,class:"marquee"};function O0(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",I0,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",_0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",L0,[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 N0=D0(R0,[["render",O0]]);const F0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:N0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),nh="";function M0(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:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const zn=me(F0,[["render",M0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ve=(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},Ee={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",scale:1},Ce=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},Pn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},qn=Ce(Pn),z0=["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","scale"],Te=(e,o=[])=>{const n=_e.without(z0,...o);return t.computed(()=>_e.pick(e,n))},Vn="EVENT_BUS",qe="GLOBAL_CONFIG",De="GLOBAL_MODEL",ze="REQUEST_MODEL",br="GLOBAL_TOKEN",tn="REFRESH_PAGE",vr="MODAL_MODEL",vt="LOADED_DATA",$e=18,Sr="ygt",Cr=((Ql=window==null?void 0:window.config)==null?void 0:Ql.indicatorURL)||"";(Jl=window==null?void 0:window.config)!=null&&Jl.uploadPath;const wr=((Xl=window==null?void 0:window.config)==null?void 0:Xl.routerBaseURL)||"./",P0=((es=window==null?void 0:window.config)==null?void 0:es.erdURL)||"",Ar=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Le=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(qe,{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)}})}},zt=(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 h=e[c],y=h[n]||"",f=h[a]||"",g=h[r]||"";if(i.has(g)){const m=i.get(g);m.push({name:y,value:f,...h}),i.set(g,m)}else i.set(g,[{name:y,value:f,...h}])}const l=[],d=[];for(const[c,h]of i)if(d.push({name:c,data:h}),h!=null&&h.length)if(l.length)for(const y of h)l.includes(y.name)||l.push(y.name);else l.push(...h.map(y=>y.name));return{dimensions:l,dataset:d}};var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q0(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 Tr={exports:{}};function V0(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 Hn={exports:{}};const H0=q0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Br;function be(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a()})(ue,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 ue<"u"&&ue.crypto&&(i=ue.crypto),!i&&typeof V0=="function")try{i=H0}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 v(){}return function(b){var x;return v.prototype=b,x=new v,v.prototype=null,x}}(),d={},c=d.lib={},h=c.Base=function(){return{extend:function(v){var b=l(this);return v&&b.mixIn(v),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=h.extend({init:function(v,b){v=this.words=v||[],b!=r?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||g).stringify(this)},concat:function(v){var b=this.words,x=v.words,w=this.sigBytes,k=v.sigBytes;if(this.clamp(),w%4)for(var D=0;D<k;D++){var I=x[D>>>2]>>>24-D%4*8&255;b[w+D>>>2]|=I<<24-(w+D)%4*8}else for(var O=0;O<k;O+=4)b[w+O>>>2]=x[O>>>2];return this.sigBytes+=k,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=a.ceil(b/4)},clone:function(){var v=h.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],x=0;x<v;x+=4)b.push(s());return new y.init(b,v)}}),f=d.enc={},g=f.Hex={stringify:function(v){for(var b=v.words,x=v.sigBytes,w=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;w.push((D>>>4).toString(16)),w.push((D&15).toString(16))}return w.join("")},parse:function(v){for(var b=v.length,x=[],w=0;w<b;w+=2)x[w>>>3]|=parseInt(v.substr(w,2),16)<<24-w%8*4;return new y.init(x,b/2)}},m=f.Latin1={stringify:function(v){for(var b=v.words,x=v.sigBytes,w=[],k=0;k<x;k++){var D=b[k>>>2]>>>24-k%4*8&255;w.push(String.fromCharCode(D))}return w.join("")},parse:function(v){for(var b=v.length,x=[],w=0;w<b;w++)x[w>>>2]|=(v.charCodeAt(w)&255)<<24-w%4*8;return new y.init(x,b)}},u=f.Utf8={stringify:function(v){try{return decodeURIComponent(escape(m.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return m.parse(unescape(encodeURIComponent(v)))}},S=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=u.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,x=this._data,w=x.words,k=x.sigBytes,D=this.blockSize,I=D*4,O=k/I;v?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var R=O*D,T=a.min(R*4,k);if(R){for(var B=0;B<R;B+=D)this._doProcessBlock(w,B);b=w.splice(0,R),x.sigBytes-=T}return new y.init(b,T)},clone:function(){var v=h.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});c.Hasher=S.extend({cfg:h.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(v){return function(b,x){return new v.init(x).finalize(b)}},_createHmacHelper:function(v){return function(b,x){return new E.HMAC.init(v,x).finalize(b)}}});var E=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var Wn={exports:{}},Er;function fn(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){this.high=c,this.low=h}}),d.WordArray=s.extend({init:function(c,h){c=this.words=c||[],h!=a?this.sigBytes=h:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,h=c.length,y=[],f=0;f<h;f++){var g=c[f];y.push(g.high),y.push(g.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),h=c.words=this.words.slice(0),y=h.length,f=0;f<y;f++)h[f]=h[f].clone();return c}})}(),n})}(Wn)),Wn.exports}var jn={exports:{}},Dr;function W0(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=[],y=0;y<c;y++)h[y>>>2]|=d[y]<<24-y%4*8;s.call(this,h,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(jn)),jn.exports}var Gn={exports:{}},Rr;function j0(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=c[f>>>2]>>>16-f%4*8&65535;y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(h,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,h=d.sigBytes,y=[],f=0;f<h;f+=2){var g=l(c[f>>>2]>>>16-f%4*8&65535);y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(h,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Gn)),Gn.exports}var Un={exports:{}},Ir;function Pt(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h=d.sigBytes,y=this._map;d.clamp();for(var f=[],g=0;g<h;g+=3)for(var m=c[g>>>2]>>>24-g%4*8&255,u=c[g+1>>>2]>>>24-(g+1)%4*8&255,S=c[g+2>>>2]>>>24-(g+2)%4*8&255,E=m<<16|u<<8|S,v=0;v<4&&g+v*.75<h;v++)f.push(y.charAt(E>>>6*(3-v)&63));var b=y.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(d){var c=d.length,h=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var f=0;f<h.length;f++)y[h.charCodeAt(f)]=f}var g=h.charAt(64);if(g){var m=d.indexOf(g);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64})}(Un)),Un.exports}var $n={exports:{}},_r;function G0(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var h=d.words,y=d.sigBytes,f=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var u=h[m>>>2]>>>24-m%4*8&255,S=h[m+1>>>2]>>>24-(m+1)%4*8&255,E=h[m+2>>>2]>>>24-(m+2)%4*8&255,v=u<<16|S<<8|E,b=0;b<4&&m+b*.75<y;b++)g.push(f.charAt(v>>>6*(3-b)&63));var x=f.charAt(64);if(x)for(;g.length%4;)g.push(x);return g.join("")},parse:function(d,c=!0){var h=d.length,y=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var g=0;g<y.length;g++)f[y.charCodeAt(g)]=g}var m=y.charAt(64);if(m){var u=d.indexOf(m);u!==-1&&(h=u)}return l(d,h,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,h){for(var y=[],f=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,u=h[d.charCodeAt(g)]>>>6-g%4*2,S=m|u;y[f>>>2]|=S<<24-f%4*8,f++}return i.create(y,f)}}(),n.enc.Base64url})}($n)),$n.exports}var Yn={exports:{}},Lr;function qt(){return Lr||(Lr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var u=0;u<64;u++)c[u]=a.abs(a.sin(u+1))*4294967296|0})();var h=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(u,S){for(var E=0;E<16;E++){var v=S+E,b=u[v];u[v]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,w=u[S+0],k=u[S+1],D=u[S+2],I=u[S+3],O=u[S+4],R=u[S+5],T=u[S+6],B=u[S+7],C=u[S+8],_=u[S+9],p=u[S+10],A=u[S+11],L=u[S+12],M=u[S+13],q=u[S+14],U=u[S+15],F=x[0],z=x[1],V=x[2],N=x[3];F=y(F,z,V,N,w,7,c[0]),N=y(N,F,z,V,k,12,c[1]),V=y(V,N,F,z,D,17,c[2]),z=y(z,V,N,F,I,22,c[3]),F=y(F,z,V,N,O,7,c[4]),N=y(N,F,z,V,R,12,c[5]),V=y(V,N,F,z,T,17,c[6]),z=y(z,V,N,F,B,22,c[7]),F=y(F,z,V,N,C,7,c[8]),N=y(N,F,z,V,_,12,c[9]),V=y(V,N,F,z,p,17,c[10]),z=y(z,V,N,F,A,22,c[11]),F=y(F,z,V,N,L,7,c[12]),N=y(N,F,z,V,M,12,c[13]),V=y(V,N,F,z,q,17,c[14]),z=y(z,V,N,F,U,22,c[15]),F=f(F,z,V,N,k,5,c[16]),N=f(N,F,z,V,T,9,c[17]),V=f(V,N,F,z,A,14,c[18]),z=f(z,V,N,F,w,20,c[19]),F=f(F,z,V,N,R,5,c[20]),N=f(N,F,z,V,p,9,c[21]),V=f(V,N,F,z,U,14,c[22]),z=f(z,V,N,F,O,20,c[23]),F=f(F,z,V,N,_,5,c[24]),N=f(N,F,z,V,q,9,c[25]),V=f(V,N,F,z,I,14,c[26]),z=f(z,V,N,F,C,20,c[27]),F=f(F,z,V,N,M,5,c[28]),N=f(N,F,z,V,D,9,c[29]),V=f(V,N,F,z,B,14,c[30]),z=f(z,V,N,F,L,20,c[31]),F=g(F,z,V,N,R,4,c[32]),N=g(N,F,z,V,C,11,c[33]),V=g(V,N,F,z,A,16,c[34]),z=g(z,V,N,F,q,23,c[35]),F=g(F,z,V,N,k,4,c[36]),N=g(N,F,z,V,O,11,c[37]),V=g(V,N,F,z,B,16,c[38]),z=g(z,V,N,F,p,23,c[39]),F=g(F,z,V,N,M,4,c[40]),N=g(N,F,z,V,w,11,c[41]),V=g(V,N,F,z,I,16,c[42]),z=g(z,V,N,F,T,23,c[43]),F=g(F,z,V,N,_,4,c[44]),N=g(N,F,z,V,L,11,c[45]),V=g(V,N,F,z,U,16,c[46]),z=g(z,V,N,F,D,23,c[47]),F=m(F,z,V,N,w,6,c[48]),N=m(N,F,z,V,B,10,c[49]),V=m(V,N,F,z,q,15,c[50]),z=m(z,V,N,F,R,21,c[51]),F=m(F,z,V,N,L,6,c[52]),N=m(N,F,z,V,I,10,c[53]),V=m(V,N,F,z,p,15,c[54]),z=m(z,V,N,F,k,21,c[55]),F=m(F,z,V,N,C,6,c[56]),N=m(N,F,z,V,U,10,c[57]),V=m(V,N,F,z,T,15,c[58]),z=m(z,V,N,F,M,21,c[59]),F=m(F,z,V,N,O,6,c[60]),N=m(N,F,z,V,A,10,c[61]),V=m(V,N,F,z,D,15,c[62]),z=m(z,V,N,F,_,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+z|0,x[2]=x[2]+V|0,x[3]=x[3]+N|0},_doFinalize:function(){var u=this._data,S=u.words,E=this._nDataBytes*8,v=u.sigBytes*8;S[v>>>5]|=128<<24-v%32;var b=a.floor(E/4294967296),x=E;S[(v+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,S[(v+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,u.sigBytes=(S.length+1)*4,this._process();for(var w=this._hash,k=w.words,D=0;D<4;D++){var I=k[D];k[D]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return w},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});function y(u,S,E,v,b,x,w){var k=u+(S&E|~S&v)+b+w;return(k<<x|k>>>32-x)+S}function f(u,S,E,v,b,x,w){var k=u+(S&v|E&~v)+b+w;return(k<<x|k>>>32-x)+S}function g(u,S,E,v,b,x,w){var k=u+(S^E^v)+b+w;return(k<<x|k>>>32-x)+S}function m(u,S,E,v,b,x,w){var k=u+(E^(S|~v))+b+w;return(k<<x|k>>>32-x)+S}r.MD5=l._createHelper(h),r.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(Yn)),Yn.exports}var Kn={exports:{}},Or;function Zn(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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(h,y){for(var f=this._hash.words,g=f[0],m=f[1],u=f[2],S=f[3],E=f[4],v=0;v<80;v++){if(v<16)d[v]=h[y+v]|0;else{var b=d[v-3]^d[v-8]^d[v-14]^d[v-16];d[v]=b<<1|b>>>31}var x=(g<<5|g>>>27)+E+d[v];v<20?x+=(m&u|~m&S)+1518500249:v<40?x+=(m^u^S)+1859775393:v<60?x+=(m&u|m&S|u&S)-1894007588:x+=(m^u^S)-899497514,E=S,S=u,u=m<<30|m>>>2,m=g,g=x}f[0]=f[0]+g|0,f[1]=f[1]+m|0,f[2]=f[2]+u|0,f[3]=f[3]+S|0,f[4]=f[4]+E|0},_doFinalize:function(){var h=this._data,y=h.words,f=this._nDataBytes*8,g=h.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=Math.floor(f/4294967296),y[(g+64>>>9<<4)+15]=f,h.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Kn)),Kn.exports}var Qn={exports:{}},Nr;function Fr(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],h=[];(function(){function g(E){for(var v=a.sqrt(E),b=2;b<=v;b++)if(!(E%b))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var u=2,S=0;S<64;)g(u)&&(S<8&&(c[S]=m(a.pow(u,1/2))),h[S]=m(a.pow(u,1/3)),S++),u++})();var y=[],f=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,m){for(var u=this._hash.words,S=u[0],E=u[1],v=u[2],b=u[3],x=u[4],w=u[5],k=u[6],D=u[7],I=0;I<64;I++){if(I<16)y[I]=g[m+I]|0;else{var O=y[I-15],R=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,T=y[I-2],B=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;y[I]=R+y[I-7]+B+y[I-16]}var C=x&w^~x&k,_=S&E^S&v^E&v,p=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),A=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),L=D+A+C+h[I]+y[I],M=p+_;D=k,k=w,w=x,x=b+L|0,b=v,v=E,E=S,S=L+M|0}u[0]=u[0]+S|0,u[1]=u[1]+E|0,u[2]=u[2]+v|0,u[3]=u[3]+b|0,u[4]=u[4]+x|0,u[5]=u[5]+w|0,u[6]=u[6]+k|0,u[7]=u[7]+D|0},_doFinalize:function(){var g=this._data,m=g.words,u=this._nDataBytes*8,S=g.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(u/4294967296),m[(S+64>>>9<<4)+15]=u,g.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA256=l._createHelper(f),r.HmacSHA256=l._createHmacHelper(f)}(Math),n.SHA256})}(Qn)),Qn.exports}var Jn={exports:{}},Mr;function U0(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Fr())})(ue,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})}(Jn)),Jn.exports}var Xn={exports:{}},zr;function Pr(){return zr||(zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,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 h(){return l.create.apply(l,arguments)}var y=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],f=[];(function(){for(var m=0;m<80;m++)f[m]=h()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,u){for(var S=this._hash.words,E=S[0],v=S[1],b=S[2],x=S[3],w=S[4],k=S[5],D=S[6],I=S[7],O=E.high,R=E.low,T=v.high,B=v.low,C=b.high,_=b.low,p=x.high,A=x.low,L=w.high,M=w.low,q=k.high,U=k.low,F=D.high,z=D.low,V=I.high,N=I.low,P=O,j=R,$=T,W=B,K=C,ne=_,oe=p,ae=A,J=L,Y=M,ee=q,re=U,xe=F,Se=z,Be=V,Oe=N,we=0;we<80;we++){var Ae,Ve,Ue=f[we];if(we<16)Ve=Ue.high=m[u+we*2]|0,Ae=Ue.low=m[u+we*2+1]|0;else{var He=f[we-15],We=He.high,Ge=He.low,ht=(We>>>1|Ge<<31)^(We>>>8|Ge<<24)^We>>>7,tt=(Ge>>>1|We<<31)^(Ge>>>8|We<<24)^(Ge>>>7|We<<25),nt=f[we-2],G=nt.high,Q=nt.low,X=(G>>>19|Q<<13)^(G<<3|Q>>>29)^G>>>6,ie=(Q>>>19|G<<13)^(Q<<3|G>>>29)^(Q>>>6|G<<26),se=f[we-7],le=se.high,te=se.low,ce=f[we-16],ge=ce.high,pe=ce.low;Ae=tt+te,Ve=ht+le+(Ae>>>0<tt>>>0?1:0),Ae=Ae+ie,Ve=Ve+X+(Ae>>>0<ie>>>0?1:0),Ae=Ae+pe,Ve=Ve+ge+(Ae>>>0<pe>>>0?1:0),Ue.high=Ve,Ue.low=Ae}var Me=J&ee^~J&xe,Ze=Y&re^~Y&Se,xt=P&$^P&K^$&K,_t=j&W^j&ne^W&ne,wn=(P>>>28|j<<4)^(P<<30|j>>>2)^(P<<25|j>>>7),Qe=(j>>>28|P<<4)^(j<<30|P>>>2)^(j<<25|P>>>7),Lt=(J>>>14|Y<<18)^(J>>>18|Y<<14)^(J<<23|Y>>>9),Zt=(Y>>>14|J<<18)^(Y>>>18|J<<14)^(Y<<23|J>>>9),An=y[we],qu=An.high,ts=An.low,ot=Oe+Zt,Bt=Be+Lt+(ot>>>0<Oe>>>0?1:0),ot=ot+Ze,Bt=Bt+Me+(ot>>>0<Ze>>>0?1:0),ot=ot+ts,Bt=Bt+qu+(ot>>>0<ts>>>0?1:0),ot=ot+Ae,Bt=Bt+Ve+(ot>>>0<Ae>>>0?1:0),ns=Qe+_t,Vu=wn+xt+(ns>>>0<Qe>>>0?1:0);Be=xe,Oe=Se,xe=ee,Se=re,ee=J,re=Y,Y=ae+ot|0,J=oe+Bt+(Y>>>0<ae>>>0?1:0)|0,oe=K,ae=ne,K=$,ne=W,$=P,W=j,j=ot+ns|0,P=Bt+Vu+(j>>>0<ot>>>0?1:0)|0}R=E.low=R+j,E.high=O+P+(R>>>0<j>>>0?1:0),B=v.low=B+W,v.high=T+$+(B>>>0<W>>>0?1:0),_=b.low=_+ne,b.high=C+K+(_>>>0<ne>>>0?1:0),A=x.low=A+ae,x.high=p+oe+(A>>>0<ae>>>0?1:0),M=w.low=M+Y,w.high=L+J+(M>>>0<Y>>>0?1:0),U=k.low=U+re,k.high=q+ee+(U>>>0<re>>>0?1:0),z=D.low=z+Se,D.high=F+xe+(z>>>0<Se>>>0?1:0),N=I.low=N+Oe,I.high=V+Be+(N>>>0<Oe>>>0?1:0)},_doFinalize:function(){var m=this._data,u=m.words,S=this._nDataBytes*8,E=m.sigBytes*8;u[E>>>5]|=128<<24-E%32,u[(E+128>>>10<<5)+30]=Math.floor(S/4294967296),u[(E+128>>>10<<5)+31]=S,m.sigBytes=u.length*4,this._process();var v=this._hash.toX32();return v},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(g),a.HmacSHA512=i._createHmacHelper(g)}(),n.SHA512})}(Xn)),Xn.exports}var eo={exports:{}},qr;function $0(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn(),Pr())})(ue,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 h=d._doFinalize.call(this);return h.sigBytes-=16,h}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Vr;function Y0(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(be(),fn())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,h=r.algo,y=[],f=[],g=[];(function(){for(var S=1,E=0,v=0;v<24;v++){y[S+5*E]=(v+1)*(v+2)/2%64;var b=E%5,x=(2*S+3*E)%5;S=b,E=x}for(var S=0;S<5;S++)for(var E=0;E<5;E++)f[S+5*E]=E+(2*S+3*E)%5*5;for(var w=1,k=0;k<24;k++){for(var D=0,I=0,O=0;O<7;O++){if(w&1){var R=(1<<O)-1;R<32?I^=1<<R:D^=1<<R-32}w&128?w=w<<1^113:w<<=1}g[k]=c.create(D,I)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var u=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],E=0;E<25;E++)S[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,E){for(var v=this._state,b=this.blockSize/2,x=0;x<b;x++){var w=S[E+2*x],k=S[E+2*x+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var D=v[x];D.high^=k,D.low^=w}for(var I=0;I<24;I++){for(var O=0;O<5;O++){for(var R=0,T=0,B=0;B<5;B++){var D=v[O+5*B];R^=D.high,T^=D.low}var C=m[O];C.high=R,C.low=T}for(var O=0;O<5;O++)for(var _=m[(O+4)%5],p=m[(O+1)%5],A=p.high,L=p.low,R=_.high^(A<<1|L>>>31),T=_.low^(L<<1|A>>>31),B=0;B<5;B++){var D=v[O+5*B];D.high^=R,D.low^=T}for(var M=1;M<25;M++){var R,T,D=v[M],q=D.high,U=D.low,F=y[M];F<32?(R=q<<F|U>>>32-F,T=U<<F|q>>>32-F):(R=U<<F-32|q>>>64-F,T=q<<F-32|U>>>64-F);var z=m[f[M]];z.high=R,z.low=T}var V=m[0],N=v[0];V.high=N.high,V.low=N.low;for(var O=0;O<5;O++)for(var B=0;B<5;B++){var M=O+5*B,D=v[M],P=m[M],j=m[(O+1)%5+5*B],$=m[(O+2)%5+5*B];D.high=P.high^~j.high&$.high,D.low=P.low^~j.low&$.low}var D=v[0],W=g[I];D.high^=W.high,D.low^=W.low}},_doFinalize:function(){var S=this._data,E=S.words;this._nDataBytes*8;var v=S.sigBytes*8,b=this.blockSize*32;E[v>>>5]|=1<<24-v%32,E[(a.ceil((v+1)/b)*b>>>5)-1]|=128,S.sigBytes=E.length*4,this._process();for(var x=this._state,w=this.cfg.outputLength/8,k=w/8,D=[],I=0;I<k;I++){var O=x[I],R=O.high,T=O.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,D.push(T),D.push(R)}return new s.init(D,w)},clone:function(){for(var S=l.clone.call(this),E=S._state=this._state.slice(0),v=0;v<25;v++)E[v]=E[v].clone();return S}});r.SHA3=l._createHelper(u),r.HmacSHA3=l._createHmacHelper(u)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},Hr;function K0(){return Hr||(Hr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,function(n){/** @preserve
|
|
56
|
+
`,fr=!1,$s=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Us;t.nextTick(function(){fr||(typeof window<"u"&&window.document&&window.document.documentElement&&Hs(o,{prepend:!0}),fr=!0)})},Ys=["icon","primaryColor","secondaryColor"];function Ks(e,o){if(e==null)return{};var n=Zs(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 Zs(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 gn(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){Qs(e,r,n[r])})}return e}function Qs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var tn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Js(e){var o=e.primaryColor,n=e.secondaryColor;tn.primaryColor=o,tn.secondaryColor=n||cr(o),tn.calculated=!!n}function Xs(){return gn({},tn)}var Ft=function(o,n){var a=gn({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=Ks(a,Ys),d=tn;if(i&&(d={primaryColor:i,secondaryColor:s||cr(i)}),$s(),Gs(sr(r),"icon should be icon definiton, but got ".concat(r)),!sr(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=gn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),Nn(c.icon,"svg-".concat(c.name),gn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ft.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ft.inheritAttrs=!1,Ft.displayName="IconBase",Ft.getTwoToneColors=Xs,Ft.setTwoToneColors=Js;const Fn=Ft;function e0(e,o){return a0(e)||o0(e,o)||n0(e,o)||t0()}function t0(){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 n0(e,o){if(e){if(typeof e=="string")return ur(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 ur(e,o)}}function ur(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 o0(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 a0(e){if(Array.isArray(e))return e}function hr(e){var o=dr(e),n=e0(o,2),a=n[0],r=n[1];return Fn.setTwoToneColors({primaryColor:a,secondaryColor:r})}function r0(){var e=Fn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var i0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function l0(e,o){return f0(e)||d0(e,o)||c0(e,o)||s0()}function s0(){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 c0(e,o){if(e){if(typeof e=="string")return gr(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 gr(e,o)}}function gr(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 d0(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 f0(e){if(Array.isArray(e))return e}function mr(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){Mn(e,r,n[r])})}return e}function Mn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function u0(e,o){if(e==null)return{};var n=h0(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 h0(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}hr("#1890ff");var Mt=function(o,n){var a,r=mr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,h=r.twoToneColor,y=r.onClick,u=u0(r,i0),g=(a={anticon:!0},Mn(a,"anticon-".concat(s.name),!!s.name),Mn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",f=c;f===void 0&&y&&(f=-1,u.tabindex=f);var v=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,B=dr(h),b=l0(B,2),p=b[0],x=b[1];return t.createVNode("span",mr({role:"img","aria-label":s.name},u,{onClick:y,class:g}),[t.createVNode(Fn,{class:m,icon:s,primaryColor:p,secondaryColor:x,style:v},null)])};Mt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Mt.displayName="AntdIcon",Mt.inheritAttrs=!1,Mt.getTwoToneColor=r0,Mt.setTwoToneColor=hr;const yr=Mt;var g0={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const m0=g0;function xr(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){y0(e,r,n[r])})}return e}function y0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var zn=function(o,n){var a=xr({},o,n.attrs);return t.createVNode(yr,xr({},a,{icon:m0}),null)};zn.displayName="CloseOutlined",zn.inheritAttrs=!1;const x0=zn;var p0={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 b0=p0;function pr(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){v0(e,r,n[r])})}return e}function v0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Pn=function(o,n){var a=pr({},o,n.attrs);return t.createVNode(yr,pr({},a,{icon:b0}),null)};Pn.displayName="LoadingOutlined",Pn.inheritAttrs=!1;const S0=Pn,C0=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:de.Spin},setup(){return{indicator:t.h(S0,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),oh="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},w0={class:"spin-wrapper"};function A0(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",w0,[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 zt=me(C0,[["render",A0]]),k0=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:de.Skeleton}});function T0(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 Pt=me(k0,[["render",T0]]);(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 B0=Object.defineProperty,br=Object.getOwnPropertySymbols,E0=Object.prototype.hasOwnProperty,D0=Object.prototype.propertyIsEnumerable,vr=(e,o,n)=>o in e?B0(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,Sr=(e,o)=>{for(var n in o||(o={}))E0.call(o,n)&&vr(e,n,o[n]);if(br)for(var n of br(o))D0.call(o,n)&&vr(e,n,o[n]);return e},R0=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const I0=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),h=t.ref(0),y=t.ref(0),u=t.ref(!1),g=t.ref(!1),m=t.ref(0),f=t.ref(null),v=t.ref("200px"),B=t.ref(!1),b=t.ref(null),p=t.ref(null),x=async()=>{await w(),i.value++},w=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&p.value!==null&&b.value&&p.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in p.value){y.value=b.value.clientHeight,h.value=p.value.clientHeight;const A=Math.ceil(h.value/y.value);return n.value=isFinite(A)?A:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in p.value){if(c.value=b.value.clientWidth,d.value=p.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const A=Math.ceil(d.value/c.value);return n.value=isFinite(A)?A: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,(A,I)=>{A!==I&&o(A?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),g.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),g.value=!1)},R=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),T=t.computed(()=>e.pauseOnHover&&(u.value||g.value)||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),E=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&g.value||!e.pauseOnHover&&R.value==="paused"?"paused":"running"),C=t.computed(()=>{const A={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${T.value}`,"--pauseOnClick":`${E.value}`,"--pauseAnimation":`${R.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${v.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},I={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(I["--orientation"]="scrollY"),Sr(Sr({},A),I)}),L=t.computed(()=>!!e.gradient),S=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),v.value=e.gradientWidth):e.gradientLength&&(v.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await w(),x()),B.value=!0};return t.onMounted(async()=>{S(),f.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:B,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:h,loopCounter:m,loopInterval:f,mouseOverMarquee:u,mouseDownMarquee:g,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:p,componentKey:i,showGradient:L,cloneAmount:n,ForcesUpdate:x,checkForClone:w,setupMarquee:S,getCurrentStyle:C,hoverStarted:k,hoverEnded:D,mouseDown:_,mouseUp:O}}}),_0={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},L0={class:"marquee",ref:"marqueeContent"},O0={key:1,"aria-hidden":!0,class:"marquee"};function N0(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",_0,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",L0,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",O0,[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 F0=R0(I0,[["render",N0]]);const M0=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:F0},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},vertical:{type:Boolean,default:!0},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),ah="";function z0(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:e.vertical,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration","vertical"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const qn=me(M0,[["render",z0]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const ve=(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},Ee={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",scale:1},Ce=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},Vn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Hn=Ce(Vn),P0=["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","scale"],ke=(e,o=[])=>{const n=_e.without(P0,...o);return t.computed(()=>_e.pick(e,n))},Wn="EVENT_BUS",He="GLOBAL_CONFIG",De="GLOBAL_MODEL",ze="REQUEST_MODEL",Cr="GLOBAL_TOKEN",nn="REFRESH_PAGE",wr="MODAL_MODEL",wt="LOADED_DATA",Ke=18,Ar="ygt",kr=((es=window==null?void 0:window.config)==null?void 0:es.indicatorURL)||"";(ts=window==null?void 0:window.config)!=null&&ts.uploadPath;const Tr=((ns=window==null?void 0:window.config)==null?void 0:ns.routerBaseURL)||"./",q0=((os=window==null?void 0:window.config)==null?void 0:os.erdURL)||"",Br=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Le=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Wn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Re=e=>{const o=e.events,n=e.id,a=t.inject(Wn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(He,{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)}})}},qt=(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 h=e[c],y=h[n]||"",u=h[a]||"",g=h[r]||"";if(i.has(g)){const m=i.get(g);m.push({name:y,value:u,...h}),i.set(g,m)}else i.set(g,[{name:y,value:u,...h}])}const l=[],d=[];for(const[c,h]of i)if(d.push({name:c,data:h}),h!=null&&h.length)if(l.length)for(const y of h)l.includes(y.name)||l.push(y.name);else l.push(...h.map(y=>y.name));return{dimensions:l,dataset:d}};var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V0(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 Dr={exports:{}};function H0(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 jn={exports:{}};const W0=V0(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Rr;function pe(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a()})(ue,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 ue<"u"&&ue.crypto&&(i=ue.crypto),!i&&typeof H0=="function")try{i=W0}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(p){var x;return b.prototype=p,x=new b,b.prototype=null,x}}(),d={},c=d.lib={},h=c.Base=function(){return{extend:function(b){var p=l(this);return b&&p.mixIn(b),(!p.hasOwnProperty("init")||this.init===p.init)&&(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var p in b)b.hasOwnProperty(p)&&(this[p]=b[p]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=h.extend({init:function(b,p){b=this.words=b||[],p!=r?this.sigBytes=p:this.sigBytes=b.length*4},toString:function(b){return(b||g).stringify(this)},concat:function(b){var p=this.words,x=b.words,w=this.sigBytes,k=b.sigBytes;if(this.clamp(),w%4)for(var D=0;D<k;D++){var _=x[D>>>2]>>>24-D%4*8&255;p[w+D>>>2]|=_<<24-(w+D)%4*8}else for(var O=0;O<k;O+=4)p[w+O>>>2]=x[O>>>2];return this.sigBytes+=k,this},clamp:function(){var b=this.words,p=this.sigBytes;b[p>>>2]&=4294967295<<32-p%4*8,b.length=a.ceil(p/4)},clone:function(){var b=h.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var p=[],x=0;x<b;x+=4)p.push(s());return new y.init(p,b)}}),u=d.enc={},g=u.Hex={stringify:function(b){for(var p=b.words,x=b.sigBytes,w=[],k=0;k<x;k++){var D=p[k>>>2]>>>24-k%4*8&255;w.push((D>>>4).toString(16)),w.push((D&15).toString(16))}return w.join("")},parse:function(b){for(var p=b.length,x=[],w=0;w<p;w+=2)x[w>>>3]|=parseInt(b.substr(w,2),16)<<24-w%8*4;return new y.init(x,p/2)}},m=u.Latin1={stringify:function(b){for(var p=b.words,x=b.sigBytes,w=[],k=0;k<x;k++){var D=p[k>>>2]>>>24-k%4*8&255;w.push(String.fromCharCode(D))}return w.join("")},parse:function(b){for(var p=b.length,x=[],w=0;w<p;w++)x[w>>>2]|=(b.charCodeAt(w)&255)<<24-w%4*8;return new y.init(x,p)}},f=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)))}},v=c.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=f.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var p,x=this._data,w=x.words,k=x.sigBytes,D=this.blockSize,_=D*4,O=k/_;b?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var R=O*D,T=a.min(R*4,k);if(R){for(var E=0;E<R;E+=D)this._doProcessBlock(w,E);p=w.splice(0,R),x.sigBytes-=T}return new y.init(p,T)},clone:function(){var b=h.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=v.extend({cfg:h.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var p=this._doFinalize();return p},blockSize:16,_createHelper:function(b){return function(p,x){return new b.init(x).finalize(p)}},_createHmacHelper:function(b){return function(p,x){return new B.HMAC.init(b,x).finalize(p)}}});var B=d.algo={};return d}(Math);return n})}(jn)),jn.exports}var Gn={exports:{}},Ir;function mn(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,h){this.high=c,this.low=h}}),d.WordArray=s.extend({init:function(c,h){c=this.words=c||[],h!=a?this.sigBytes=h:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,h=c.length,y=[],u=0;u<h;u++){var g=c[u];y.push(g.high),y.push(g.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),h=c.words=this.words.slice(0),y=h.length,u=0;u<y;u++)h[u]=h[u].clone();return c}})}(),n})}(Gn)),Gn.exports}var Un={exports:{}},_r;function j0(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,h=[],y=0;y<c;y++)h[y>>>2]|=d[y]<<24-y%4*8;s.call(this,h,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Un)),Un.exports}var $n={exports:{}},Lr;function G0(){return Lr||(Lr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,h=d.sigBytes,y=[],u=0;u<h;u+=2){var g=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(h,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,h=d.sigBytes,y=[],u=0;u<h;u+=2){var g=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(g))}return y.join("")},parse:function(d){for(var c=d.length,h=[],y=0;y<c;y++)h[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(h,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}($n)),$n.exports}var Yn={exports:{}},Or;function Vt(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,h=d.sigBytes,y=this._map;d.clamp();for(var u=[],g=0;g<h;g+=3)for(var m=c[g>>>2]>>>24-g%4*8&255,f=c[g+1>>>2]>>>24-(g+1)%4*8&255,v=c[g+2>>>2]>>>24-(g+2)%4*8&255,B=m<<16|f<<8|v,b=0;b<4&&g+b*.75<h;b++)u.push(y.charAt(B>>>6*(3-b)&63));var p=y.charAt(64);if(p)for(;u.length%4;)u.push(p);return u.join("")},parse:function(d){var c=d.length,h=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<h.length;u++)y[h.charCodeAt(u)]=u}var g=h.charAt(64);if(g){var m=d.indexOf(g);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,h){for(var y=[],u=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,f=h[d.charCodeAt(g)]>>>6-g%4*2,v=m|f;y[u>>>2]|=v<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64})}(Yn)),Yn.exports}var Kn={exports:{}},Nr;function U0(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var h=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var g=[],m=0;m<y;m+=3)for(var f=h[m>>>2]>>>24-m%4*8&255,v=h[m+1>>>2]>>>24-(m+1)%4*8&255,B=h[m+2>>>2]>>>24-(m+2)%4*8&255,b=f<<16|v<<8|B,p=0;p<4&&m+p*.75<y;p++)g.push(u.charAt(b>>>6*(3-p)&63));var x=u.charAt(64);if(x)for(;g.length%4;)g.push(x);return g.join("")},parse:function(d,c=!0){var h=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var g=0;g<y.length;g++)u[y.charCodeAt(g)]=g}var m=y.charAt(64);if(m){var f=d.indexOf(m);f!==-1&&(h=f)}return l(d,h,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,h){for(var y=[],u=0,g=0;g<c;g++)if(g%4){var m=h[d.charCodeAt(g-1)]<<g%4*2,f=h[d.charCodeAt(g)]>>>6-g%4*2,v=m|f;y[u>>>2]|=v<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64url})}(Kn)),Kn.exports}var Zn={exports:{}},Fr;function Ht(){return Fr||(Fr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var f=0;f<64;f++)c[f]=a.abs(a.sin(f+1))*4294967296|0})();var h=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,v){for(var B=0;B<16;B++){var b=v+B,p=f[b];f[b]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var x=this._hash.words,w=f[v+0],k=f[v+1],D=f[v+2],_=f[v+3],O=f[v+4],R=f[v+5],T=f[v+6],E=f[v+7],C=f[v+8],L=f[v+9],S=f[v+10],A=f[v+11],I=f[v+12],F=f[v+13],q=f[v+14],U=f[v+15],N=x[0],z=x[1],V=x[2],M=x[3];N=y(N,z,V,M,w,7,c[0]),M=y(M,N,z,V,k,12,c[1]),V=y(V,M,N,z,D,17,c[2]),z=y(z,V,M,N,_,22,c[3]),N=y(N,z,V,M,O,7,c[4]),M=y(M,N,z,V,R,12,c[5]),V=y(V,M,N,z,T,17,c[6]),z=y(z,V,M,N,E,22,c[7]),N=y(N,z,V,M,C,7,c[8]),M=y(M,N,z,V,L,12,c[9]),V=y(V,M,N,z,S,17,c[10]),z=y(z,V,M,N,A,22,c[11]),N=y(N,z,V,M,I,7,c[12]),M=y(M,N,z,V,F,12,c[13]),V=y(V,M,N,z,q,17,c[14]),z=y(z,V,M,N,U,22,c[15]),N=u(N,z,V,M,k,5,c[16]),M=u(M,N,z,V,T,9,c[17]),V=u(V,M,N,z,A,14,c[18]),z=u(z,V,M,N,w,20,c[19]),N=u(N,z,V,M,R,5,c[20]),M=u(M,N,z,V,S,9,c[21]),V=u(V,M,N,z,U,14,c[22]),z=u(z,V,M,N,O,20,c[23]),N=u(N,z,V,M,L,5,c[24]),M=u(M,N,z,V,q,9,c[25]),V=u(V,M,N,z,_,14,c[26]),z=u(z,V,M,N,C,20,c[27]),N=u(N,z,V,M,F,5,c[28]),M=u(M,N,z,V,D,9,c[29]),V=u(V,M,N,z,E,14,c[30]),z=u(z,V,M,N,I,20,c[31]),N=g(N,z,V,M,R,4,c[32]),M=g(M,N,z,V,C,11,c[33]),V=g(V,M,N,z,A,16,c[34]),z=g(z,V,M,N,q,23,c[35]),N=g(N,z,V,M,k,4,c[36]),M=g(M,N,z,V,O,11,c[37]),V=g(V,M,N,z,E,16,c[38]),z=g(z,V,M,N,S,23,c[39]),N=g(N,z,V,M,F,4,c[40]),M=g(M,N,z,V,w,11,c[41]),V=g(V,M,N,z,_,16,c[42]),z=g(z,V,M,N,T,23,c[43]),N=g(N,z,V,M,L,4,c[44]),M=g(M,N,z,V,I,11,c[45]),V=g(V,M,N,z,U,16,c[46]),z=g(z,V,M,N,D,23,c[47]),N=m(N,z,V,M,w,6,c[48]),M=m(M,N,z,V,E,10,c[49]),V=m(V,M,N,z,q,15,c[50]),z=m(z,V,M,N,R,21,c[51]),N=m(N,z,V,M,I,6,c[52]),M=m(M,N,z,V,_,10,c[53]),V=m(V,M,N,z,S,15,c[54]),z=m(z,V,M,N,k,21,c[55]),N=m(N,z,V,M,C,6,c[56]),M=m(M,N,z,V,U,10,c[57]),V=m(V,M,N,z,T,15,c[58]),z=m(z,V,M,N,F,21,c[59]),N=m(N,z,V,M,O,6,c[60]),M=m(M,N,z,V,A,10,c[61]),V=m(V,M,N,z,D,15,c[62]),z=m(z,V,M,N,L,21,c[63]),x[0]=x[0]+N|0,x[1]=x[1]+z|0,x[2]=x[2]+V|0,x[3]=x[3]+M|0},_doFinalize:function(){var f=this._data,v=f.words,B=this._nDataBytes*8,b=f.sigBytes*8;v[b>>>5]|=128<<24-b%32;var p=a.floor(B/4294967296),x=B;v[(b+64>>>9<<4)+15]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,v[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,f.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,k=w.words,D=0;D<4;D++){var _=k[D];k[D]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return w},clone:function(){var f=l.clone.call(this);return f._hash=this._hash.clone(),f}});function y(f,v,B,b,p,x,w){var k=f+(v&B|~v&b)+p+w;return(k<<x|k>>>32-x)+v}function u(f,v,B,b,p,x,w){var k=f+(v&b|B&~b)+p+w;return(k<<x|k>>>32-x)+v}function g(f,v,B,b,p,x,w){var k=f+(v^B^b)+p+w;return(k<<x|k>>>32-x)+v}function m(f,v,B,b,p,x,w){var k=f+(B^(v|~b))+p+w;return(k<<x|k>>>32-x)+v}r.MD5=l._createHelper(h),r.HmacMD5=l._createHmacHelper(h)}(Math),n.MD5})}(Zn)),Zn.exports}var Qn={exports:{}},Mr;function Jn(){return Mr||(Mr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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(h,y){for(var u=this._hash.words,g=u[0],m=u[1],f=u[2],v=u[3],B=u[4],b=0;b<80;b++){if(b<16)d[b]=h[y+b]|0;else{var p=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=p<<1|p>>>31}var x=(g<<5|g>>>27)+B+d[b];b<20?x+=(m&f|~m&v)+1518500249:b<40?x+=(m^f^v)+1859775393:b<60?x+=(m&f|m&v|f&v)-1894007588:x+=(m^f^v)-899497514,B=v,v=f,f=m<<30|m>>>2,m=g,g=x}u[0]=u[0]+g|0,u[1]=u[1]+m|0,u[2]=u[2]+f|0,u[3]=u[3]+v|0,u[4]=u[4]+B|0},_doFinalize:function(){var h=this._data,y=h.words,u=this._nDataBytes*8,g=h.sigBytes*8;return y[g>>>5]|=128<<24-g%32,y[(g+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(g+64>>>9<<4)+15]=u,h.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Qn)),Qn.exports}var Xn={exports:{}},zr;function Pr(){return zr||(zr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],h=[];(function(){function g(B){for(var b=a.sqrt(B),p=2;p<=b;p++)if(!(B%p))return!1;return!0}function m(B){return(B-(B|0))*4294967296|0}for(var f=2,v=0;v<64;)g(f)&&(v<8&&(c[v]=m(a.pow(f,1/2))),h[v]=m(a.pow(f,1/3)),v++),f++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(g,m){for(var f=this._hash.words,v=f[0],B=f[1],b=f[2],p=f[3],x=f[4],w=f[5],k=f[6],D=f[7],_=0;_<64;_++){if(_<16)y[_]=g[m+_]|0;else{var O=y[_-15],R=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,T=y[_-2],E=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;y[_]=R+y[_-7]+E+y[_-16]}var C=x&w^~x&k,L=v&B^v&b^B&b,S=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),A=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),I=D+A+C+h[_]+y[_],F=S+L;D=k,k=w,w=x,x=p+I|0,p=b,b=B,B=v,v=I+F|0}f[0]=f[0]+v|0,f[1]=f[1]+B|0,f[2]=f[2]+b|0,f[3]=f[3]+p|0,f[4]=f[4]+x|0,f[5]=f[5]+w|0,f[6]=f[6]+k|0,f[7]=f[7]+D|0},_doFinalize:function(){var g=this._data,m=g.words,f=this._nDataBytes*8,v=g.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=a.floor(f/4294967296),m[(v+64>>>9<<4)+15]=f,g.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(Xn)),Xn.exports}var eo={exports:{}},qr;function $0(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Pr())})(ue,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})}(eo)),eo.exports}var to={exports:{}},Vr;function Hr(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),mn())})(ue,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 h(){return l.create.apply(l,arguments)}var y=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=h()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,f){for(var v=this._hash.words,B=v[0],b=v[1],p=v[2],x=v[3],w=v[4],k=v[5],D=v[6],_=v[7],O=B.high,R=B.low,T=b.high,E=b.low,C=p.high,L=p.low,S=x.high,A=x.low,I=w.high,F=w.low,q=k.high,U=k.low,N=D.high,z=D.low,V=_.high,M=_.low,P=O,j=R,$=T,W=E,K=C,oe=L,ne=S,ie=A,J=I,Y=F,ee=q,le=U,xe=N,Se=z,Te=V,Oe=M,we=0;we<80;we++){var Be,qe,Ye=u[we];if(we<16)qe=Ye.high=m[f+we*2]|0,Be=Ye.low=m[f+we*2+1]|0;else{var We=u[we-15],je=We.high,Ue=We.low,mt=(je>>>1|Ue<<31)^(je>>>8|Ue<<24)^je>>>7,ot=(Ue>>>1|je<<31)^(Ue>>>8|je<<24)^(Ue>>>7|je<<25),Je=u[we-2],$e=Je.high,bt=Je.low,cn=($e>>>19|bt<<13)^($e<<3|bt>>>29)^$e>>>6,Ya=(bt>>>19|$e<<13)^(bt<<3|$e>>>29)^(bt>>>6|$e<<26),G=u[we-7],Q=G.high,X=G.low,ae=u[we-16],se=ae.high,re=ae.low;Be=ot+X,qe=mt+Q+(Be>>>0<ot>>>0?1:0),Be=Be+Ya,qe=qe+cn+(Be>>>0<Ya>>>0?1:0),Be=Be+re,qe=qe+se+(Be>>>0<re>>>0?1:0),Ye.high=qe,Ye.low=Be}var te=J&ee^~J&xe,ce=Y&le^~Y&Se,ge=P&$^P&K^$&K,be=j&W^j&oe^W&oe,Me=(P>>>28|j<<4)^(P<<30|j>>>2)^(P<<25|j>>>7),Xe=(j>>>28|P<<4)^(j<<30|P>>>2)^(j<<25|P>>>7),vt=(J>>>14|Y<<18)^(J>>>18|Y<<14)^(J<<23|Y>>>9),Ot=(Y>>>14|J<<18)^(Y>>>18|J<<14)^(Y<<23|J>>>9),dn=y[we],Nt=dn.high,ht=dn.low,Ve=Oe+Ot,at=Te+vt+(Ve>>>0<Oe>>>0?1:0),Ve=Ve+ce,at=at+te+(Ve>>>0<ce>>>0?1:0),Ve=Ve+ht,at=at+Nt+(Ve>>>0<ht>>>0?1:0),Ve=Ve+Be,at=at+qe+(Ve>>>0<Be>>>0?1:0),Tn=Xe+be,Wu=Me+ge+(Tn>>>0<Xe>>>0?1:0);Te=xe,Oe=Se,xe=ee,Se=le,ee=J,le=Y,Y=ie+Ve|0,J=ne+at+(Y>>>0<ie>>>0?1:0)|0,ne=K,ie=oe,K=$,oe=W,$=P,W=j,j=Ve+Tn|0,P=at+Wu+(j>>>0<Ve>>>0?1:0)|0}R=B.low=R+j,B.high=O+P+(R>>>0<j>>>0?1:0),E=b.low=E+W,b.high=T+$+(E>>>0<W>>>0?1:0),L=p.low=L+oe,p.high=C+K+(L>>>0<oe>>>0?1:0),A=x.low=A+ie,x.high=S+ne+(A>>>0<ie>>>0?1:0),F=w.low=F+Y,w.high=I+J+(F>>>0<Y>>>0?1:0),U=k.low=U+le,k.high=q+ee+(U>>>0<le>>>0?1:0),z=D.low=z+Se,D.high=N+xe+(z>>>0<Se>>>0?1:0),M=_.low=M+Oe,_.high=V+Te+(M>>>0<Oe>>>0?1:0)},_doFinalize:function(){var m=this._data,f=m.words,v=this._nDataBytes*8,B=m.sigBytes*8;f[B>>>5]|=128<<24-B%32,f[(B+128>>>10<<5)+30]=Math.floor(v/4294967296),f[(B+128>>>10<<5)+31]=v,m.sigBytes=f.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(g),a.HmacSHA512=i._createHmacHelper(g)}(),n.SHA512})}(to)),to.exports}var no={exports:{}},Wr;function Y0(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),mn(),Hr())})(ue,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 h=d._doFinalize.call(this);return h.sigBytes-=16,h}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(no)),no.exports}var oo={exports:{}},jr;function K0(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),mn())})(ue,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,h=r.algo,y=[],u=[],g=[];(function(){for(var v=1,B=0,b=0;b<24;b++){y[v+5*B]=(b+1)*(b+2)/2%64;var p=B%5,x=(2*v+3*B)%5;v=p,B=x}for(var v=0;v<5;v++)for(var B=0;B<5;B++)u[v+5*B]=B+(2*v+3*B)%5*5;for(var w=1,k=0;k<24;k++){for(var D=0,_=0,O=0;O<7;O++){if(w&1){var R=(1<<O)-1;R<32?_^=1<<R:D^=1<<R-32}w&128?w=w<<1^113:w<<=1}g[k]=c.create(D,_)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=c.create()})();var f=h.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],B=0;B<25;B++)v[B]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,B){for(var b=this._state,p=this.blockSize/2,x=0;x<p;x++){var w=v[B+2*x],k=v[B+2*x+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var D=b[x];D.high^=k,D.low^=w}for(var _=0;_<24;_++){for(var O=0;O<5;O++){for(var R=0,T=0,E=0;E<5;E++){var D=b[O+5*E];R^=D.high,T^=D.low}var C=m[O];C.high=R,C.low=T}for(var O=0;O<5;O++)for(var L=m[(O+4)%5],S=m[(O+1)%5],A=S.high,I=S.low,R=L.high^(A<<1|I>>>31),T=L.low^(I<<1|A>>>31),E=0;E<5;E++){var D=b[O+5*E];D.high^=R,D.low^=T}for(var F=1;F<25;F++){var R,T,D=b[F],q=D.high,U=D.low,N=y[F];N<32?(R=q<<N|U>>>32-N,T=U<<N|q>>>32-N):(R=U<<N-32|q>>>64-N,T=q<<N-32|U>>>64-N);var z=m[u[F]];z.high=R,z.low=T}var V=m[0],M=b[0];V.high=M.high,V.low=M.low;for(var O=0;O<5;O++)for(var E=0;E<5;E++){var F=O+5*E,D=b[F],P=m[F],j=m[(O+1)%5+5*E],$=m[(O+2)%5+5*E];D.high=P.high^~j.high&$.high,D.low=P.low^~j.low&$.low}var D=b[0],W=g[_];D.high^=W.high,D.low^=W.low}},_doFinalize:function(){var v=this._data,B=v.words;this._nDataBytes*8;var b=v.sigBytes*8,p=this.blockSize*32;B[b>>>5]|=1<<24-b%32,B[(a.ceil((b+1)/p)*p>>>5)-1]|=128,v.sigBytes=B.length*4,this._process();for(var x=this._state,w=this.cfg.outputLength/8,k=w/8,D=[],_=0;_<k;_++){var O=x[_],R=O.high,T=O.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,D.push(T),D.push(R)}return new s.init(D,w)},clone:function(){for(var v=l.clone.call(this),B=v._state=this._state.slice(0),b=0;b<25;b++)B[b]=B[b].clone();return v}});r.SHA3=l._createHelper(f),r.HmacSHA3=l._createHmacHelper(f)}(Math),n.SHA3})}(oo)),oo.exports}var ao={exports:{}},Gr;function Z0(){return Gr||(Gr=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,18 +64,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(a){var r=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]),h=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]),f=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),u=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,D){for(var I=0;I<16;I++){var O=D+I,R=k[O];k[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var T=this._hash.words,B=g.words,C=m.words,_=c.words,p=h.words,A=y.words,L=f.words,M,q,U,F,z,V,N,P,j,$;V=M=T[0],N=q=T[1],P=U=T[2],j=F=T[3],$=z=T[4];for(var W,I=0;I<80;I+=1)W=M+k[D+_[I]]|0,I<16?W+=S(q,U,F)+B[0]:I<32?W+=E(q,U,F)+B[1]:I<48?W+=v(q,U,F)+B[2]:I<64?W+=b(q,U,F)+B[3]:W+=x(q,U,F)+B[4],W=W|0,W=w(W,A[I]),W=W+z|0,M=z,z=F,F=w(U,10),U=q,q=W,W=V+k[D+p[I]]|0,I<16?W+=x(N,P,j)+C[0]:I<32?W+=b(N,P,j)+C[1]:I<48?W+=v(N,P,j)+C[2]:I<64?W+=E(N,P,j)+C[3]:W+=S(N,P,j)+C[4],W=W|0,W=w(W,L[I]),W=W+$|0,V=$,$=j,j=w(P,10),P=N,N=W;W=T[1]+U+j|0,T[1]=T[2]+F+$|0,T[2]=T[3]+z+V|0,T[3]=T[4]+M+N|0,T[4]=T[0]+q+P|0,T[0]=W},_doFinalize:function(){var k=this._data,D=k.words,I=this._nDataBytes*8,O=k.sigBytes*8;D[O>>>5]|=128<<24-O%32,D[(O+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,k.sigBytes=(D.length+1)*4,this._process();for(var R=this._hash,T=R.words,B=0;B<5;B++){var C=T[B];T[B]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return R},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function S(k,D,I){return k^D^I}function E(k,D,I){return k&D|~k&I}function v(k,D,I){return(k|~D)^I}function b(k,D,I){return k&I|D&~I}function x(k,D,I){return k^(D|~I)}function w(k,D){return k<<D|k>>>32-D}r.RIPEMD160=l._createHelper(u),r.HmacRIPEMD160=l._createHmacHelper(u)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Wr;function ao(){return Wr||(Wr=1,function(e,o){(function(n,a){e.exports=a(be())})(ue,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,h){c=this._hasher=new c.init,typeof h=="string"&&(h=l.parse(h));var y=c.blockSize,f=y*4;h.sigBytes>f&&(h=c.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),m=this._iKey=h.clone(),u=g.words,S=m.words,E=0;E<y;E++)u[E]^=1549556828,S[E]^=909522486;g.sigBytes=m.sigBytes=f,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var h=this._hasher,y=h.finalize(c);h.reset();var f=h.finalize(this._oKey.clone().concat(y));return f}})})()})}(oo)),oo.exports}var ro={exports:{}},jr;function Z0(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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,h=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,f){for(var g=this.cfg,m=c.create(g.hasher,y),u=s.create(),S=s.create([1]),E=u.words,v=S.words,b=g.keySize,x=g.iterations;E.length<b;){var w=m.update(f).finalize(S);m.reset();for(var k=w.words,D=k.length,I=w,O=1;O<x;O++){I=m.finalize(I),m.reset();for(var R=I.words,T=0;T<D;T++)k[T]^=R[T]}u.concat(w),v[0]++}return u.sigBytes=b*4,u}});a.PBKDF2=function(y,f,g){return h.create(g).compute(y,f)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},Gr;function Dt(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(be(),Zn(),ao())})(ue,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,y){for(var f,g=this.cfg,m=g.hasher.create(),u=s.create(),S=u.words,E=g.keySize,v=g.iterations;S.length<E;){f&&m.update(f),f=m.update(h).finalize(y),m.reset();for(var b=1;b<v;b++)f=m.finalize(f),m.reset();u.concat(f)}return u.sigBytes=E*4,u}});a.EvpKDF=function(h,y,f){return c.create(f).compute(h,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},Ur;function je(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(be(),Dt())})(ue,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 h=c.Base64,y=r.algo,f=y.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(R,T){return this.create(this._ENC_XFORM_MODE,R,T)},createDecryptor:function(R,T){return this.create(this._DEC_XFORM_MODE,R,T)},init:function(R,T,B){this.cfg=this.cfg.extend(B),this._xformMode=R,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(T){return typeof T=="string"?O:k}return function(T){return{encrypt:function(B,C,_){return R(C).encrypt(T,B,C,_)},decrypt:function(B,C,_){return R(C).decrypt(T,B,C,_)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var m=r.mode={},u=i.BlockCipherMode=s.extend({createEncryptor:function(R,T){return this.Encryptor.create(R,T)},createDecryptor:function(R,T){return this.Decryptor.create(R,T)},init:function(R,T){this._cipher=R,this._iv=T}}),S=m.CBC=function(){var R=u.extend();R.Encryptor=R.extend({processBlock:function(B,C){var _=this._cipher,p=_.blockSize;T.call(this,B,C,p),_.encryptBlock(B,C),this._prevBlock=B.slice(C,C+p)}}),R.Decryptor=R.extend({processBlock:function(B,C){var _=this._cipher,p=_.blockSize,A=B.slice(C,C+p);_.decryptBlock(B,C),T.call(this,B,C,p),this._prevBlock=A}});function T(B,C,_){var p,A=this._iv;A?(p=A,this._iv=a):p=this._prevBlock;for(var L=0;L<_;L++)B[C+L]^=p[L]}return R}(),E=r.pad={},v=E.Pkcs7={pad:function(R,T){for(var B=T*4,C=B-R.sigBytes%B,_=C<<24|C<<16|C<<8|C,p=[],A=0;A<C;A+=4)p.push(_);var L=l.create(p,C);R.concat(L)},unpad:function(R){var T=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=T}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:S,padding:v}),reset:function(){var R;g.reset.call(this);var T=this.cfg,B=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?R=C.createEncryptor:(R=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,B&&B.words):(this._mode=R.call(C,this,B&&B.words),this._mode.__creator=R)},_doProcessBlock:function(R,T){this._mode.processBlock(R,T)},_doFinalize:function(){var R,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),T.unpad(R)),R},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),x=r.format={},w=x.OpenSSL={stringify:function(R){var T,B=R.ciphertext,C=R.salt;return C?T=l.create([1398893684,1701076831]).concat(C).concat(B):T=B,T.toString(h)},parse:function(R){var T,B=h.parse(R),C=B.words;return C[0]==1398893684&&C[1]==1701076831&&(T=l.create(C.slice(2,4)),C.splice(0,4),B.sigBytes-=16),b.create({ciphertext:B,salt:T})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(R,T,B,C){C=this.cfg.extend(C);var _=R.createEncryptor(B,C),p=_.finalize(T),A=_.cfg;return b.create({ciphertext:p,key:B,iv:A.iv,algorithm:R,mode:A.mode,padding:A.padding,blockSize:R.blockSize,formatter:C.format})},decrypt:function(R,T,B,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var _=R.createDecryptor(B,C).finalize(T.ciphertext);return _},_parse:function(R,T){return typeof R=="string"?T.parse(R,this):R}}),D=r.kdf={},I=D.OpenSSL={execute:function(R,T,B,C){C||(C=l.random(64/8));var _=f.create({keySize:T+B}).compute(R,C),p=l.create(_.words.slice(T),B*4);return _.sigBytes=T*4,b.create({key:_,iv:p,salt:C})}},O=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:I}),encrypt:function(R,T,B,C){C=this.cfg.extend(C);var _=C.kdf.execute(B,R.keySize,R.ivSize);C.iv=_.iv;var p=k.encrypt.call(this,R,T,_.key,C);return p.mixIn(_),p},decrypt:function(R,T,B,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var _=C.kdf.execute(B,R.keySize,R.ivSize,T.salt);C.iv=_.iv;var p=k.decrypt.call(this,R,T,_.key,C);return p}})}()})}(lo)),lo.exports}var so={exports:{}},$r;function Q0(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._iv;h?(c=h.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})}(so)),so.exports}var co={exports:{}},Yr;function J0(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var y=h.slice(0);l.encryptBlock(y,0),h[d-1]=h[d-1]+1|0;for(var f=0;f<d;f++)i[s+f]^=y[f]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},Kr;function X0(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,function(n){/** @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]),h=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]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),f=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,D){for(var _=0;_<16;_++){var O=D+_,R=k[O];k[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var T=this._hash.words,E=g.words,C=m.words,L=c.words,S=h.words,A=y.words,I=u.words,F,q,U,N,z,V,M,P,j,$;V=F=T[0],M=q=T[1],P=U=T[2],j=N=T[3],$=z=T[4];for(var W,_=0;_<80;_+=1)W=F+k[D+L[_]]|0,_<16?W+=v(q,U,N)+E[0]:_<32?W+=B(q,U,N)+E[1]:_<48?W+=b(q,U,N)+E[2]:_<64?W+=p(q,U,N)+E[3]:W+=x(q,U,N)+E[4],W=W|0,W=w(W,A[_]),W=W+z|0,F=z,z=N,N=w(U,10),U=q,q=W,W=V+k[D+S[_]]|0,_<16?W+=x(M,P,j)+C[0]:_<32?W+=p(M,P,j)+C[1]:_<48?W+=b(M,P,j)+C[2]:_<64?W+=B(M,P,j)+C[3]:W+=v(M,P,j)+C[4],W=W|0,W=w(W,I[_]),W=W+$|0,V=$,$=j,j=w(P,10),P=M,M=W;W=T[1]+U+j|0,T[1]=T[2]+N+$|0,T[2]=T[3]+z+V|0,T[3]=T[4]+F+M|0,T[4]=T[0]+q+P|0,T[0]=W},_doFinalize:function(){var k=this._data,D=k.words,_=this._nDataBytes*8,O=k.sigBytes*8;D[O>>>5]|=128<<24-O%32,D[(O+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,k.sigBytes=(D.length+1)*4,this._process();for(var R=this._hash,T=R.words,E=0;E<5;E++){var C=T[E];T[E]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}return R},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function v(k,D,_){return k^D^_}function B(k,D,_){return k&D|~k&_}function b(k,D,_){return(k|~D)^_}function p(k,D,_){return k&_|D&~_}function x(k,D,_){return k^(D|~_)}function w(k,D){return k<<D|k>>>32-D}r.RIPEMD160=l._createHelper(f),r.HmacRIPEMD160=l._createHmacHelper(f)}(),n.RIPEMD160})}(ao)),ao.exports}var ro={exports:{}},Ur;function io(){return Ur||(Ur=1,function(e,o){(function(n,a){e.exports=a(pe())})(ue,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,h){c=this._hasher=new c.init,typeof h=="string"&&(h=l.parse(h));var y=c.blockSize,u=y*4;h.sigBytes>u&&(h=c.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),m=this._iKey=h.clone(),f=g.words,v=m.words,B=0;B<y;B++)f[B]^=1549556828,v[B]^=909522486;g.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 h=this._hasher,y=h.finalize(c);h.reset();var u=h.finalize(this._oKey.clone().concat(y));return u}})})()})}(ro)),ro.exports}var lo={exports:{}},$r;function Q0(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Jn(),io())})(ue,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,h=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 g=this.cfg,m=c.create(g.hasher,y),f=s.create(),v=s.create([1]),B=f.words,b=v.words,p=g.keySize,x=g.iterations;B.length<p;){var w=m.update(u).finalize(v);m.reset();for(var k=w.words,D=k.length,_=w,O=1;O<x;O++){_=m.finalize(_),m.reset();for(var R=_.words,T=0;T<D;T++)k[T]^=R[T]}f.concat(w),b[0]++}return f.sigBytes=p*4,f}});a.PBKDF2=function(y,u,g){return h.create(g).compute(y,u)}}(),n.PBKDF2})}(lo)),lo.exports}var so={exports:{}},Yr;function It(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Jn(),io())})(ue,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(h){this.cfg=this.cfg.extend(h)},compute:function(h,y){for(var u,g=this.cfg,m=g.hasher.create(),f=s.create(),v=f.words,B=g.keySize,b=g.iterations;v.length<B;){u&&m.update(u),u=m.update(h).finalize(y),m.reset();for(var p=1;p<b;p++)u=m.finalize(u),m.reset();f.concat(u)}return f.sigBytes=B*4,f}});a.EvpKDF=function(h,y,u){return c.create(u).compute(h,y)}}(),n.EvpKDF})}(so)),so.exports}var co={exports:{}},Kr;function Ge(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),It())})(ue,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 h=c.Base64,y=r.algo,u=y.EvpKDF,g=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(R,T){return this.create(this._ENC_XFORM_MODE,R,T)},createDecryptor:function(R,T){return this.create(this._DEC_XFORM_MODE,R,T)},init:function(R,T,E){this.cfg=this.cfg.extend(E),this._xformMode=R,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(T){return typeof T=="string"?O:k}return function(T){return{encrypt:function(E,C,L){return R(C).encrypt(T,E,C,L)},decrypt:function(E,C,L){return R(C).decrypt(T,E,C,L)}}}}()});i.StreamCipher=g.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var m=r.mode={},f=i.BlockCipherMode=s.extend({createEncryptor:function(R,T){return this.Encryptor.create(R,T)},createDecryptor:function(R,T){return this.Decryptor.create(R,T)},init:function(R,T){this._cipher=R,this._iv=T}}),v=m.CBC=function(){var R=f.extend();R.Encryptor=R.extend({processBlock:function(E,C){var L=this._cipher,S=L.blockSize;T.call(this,E,C,S),L.encryptBlock(E,C),this._prevBlock=E.slice(C,C+S)}}),R.Decryptor=R.extend({processBlock:function(E,C){var L=this._cipher,S=L.blockSize,A=E.slice(C,C+S);L.decryptBlock(E,C),T.call(this,E,C,S),this._prevBlock=A}});function T(E,C,L){var S,A=this._iv;A?(S=A,this._iv=a):S=this._prevBlock;for(var I=0;I<L;I++)E[C+I]^=S[I]}return R}(),B=r.pad={},b=B.Pkcs7={pad:function(R,T){for(var E=T*4,C=E-R.sigBytes%E,L=C<<24|C<<16|C<<8|C,S=[],A=0;A<C;A+=4)S.push(L);var I=l.create(S,C);R.concat(I)},unpad:function(R){var T=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=T}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:v,padding:b}),reset:function(){var R;g.reset.call(this);var T=this.cfg,E=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?R=C.createEncryptor:(R=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,E&&E.words):(this._mode=R.call(C,this,E&&E.words),this._mode.__creator=R)},_doProcessBlock:function(R,T){this._mode.processBlock(R,T)},_doFinalize:function(){var R,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),T.unpad(R)),R},blockSize:128/32});var p=i.CipherParams=s.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),x=r.format={},w=x.OpenSSL={stringify:function(R){var T,E=R.ciphertext,C=R.salt;return C?T=l.create([1398893684,1701076831]).concat(C).concat(E):T=E,T.toString(h)},parse:function(R){var T,E=h.parse(R),C=E.words;return C[0]==1398893684&&C[1]==1701076831&&(T=l.create(C.slice(2,4)),C.splice(0,4),E.sigBytes-=16),p.create({ciphertext:E,salt:T})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(R,T,E,C){C=this.cfg.extend(C);var L=R.createEncryptor(E,C),S=L.finalize(T),A=L.cfg;return p.create({ciphertext:S,key:E,iv:A.iv,algorithm:R,mode:A.mode,padding:A.padding,blockSize:R.blockSize,formatter:C.format})},decrypt:function(R,T,E,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var L=R.createDecryptor(E,C).finalize(T.ciphertext);return L},_parse:function(R,T){return typeof R=="string"?T.parse(R,this):R}}),D=r.kdf={},_=D.OpenSSL={execute:function(R,T,E,C){C||(C=l.random(64/8));var L=u.create({keySize:T+E}).compute(R,C),S=l.create(L.words.slice(T),E*4);return L.sigBytes=T*4,p.create({key:L,iv:S,salt:C})}},O=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:_}),encrypt:function(R,T,E,C){C=this.cfg.extend(C);var L=C.kdf.execute(E,R.keySize,R.ivSize);C.iv=L.iv;var S=k.encrypt.call(this,R,T,L.key,C);return S.mixIn(L),S},decrypt:function(R,T,E,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var L=C.kdf.execute(E,R.keySize,R.ivSize,T.salt);C.iv=L.iv;var S=k.decrypt.call(this,R,T,L.key,C);return S}})}()})}(co)),co.exports}var fo={exports:{}},Zr;function J0(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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,h=this._iv;h?(c=h.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})}(fo)),fo.exports}var uo={exports:{}},Qr;function X0(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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,h=this._counter;c&&(h=this._counter=c.slice(0),this._iv=void 0);var y=h.slice(0);l.encryptBlock(y,0),h[d-1]=h[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),n.mode.CTR})}(uo)),uo.exports}var ho={exports:{}},Jr;function ec(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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 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,h=l&255;d===255?(d=0,c===255?(c=0,h===255?h=0:++h):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=h}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,h=c.blockSize,y=this._iv,f=this._counter;y&&(f=this._counter=y.slice(0),this._iv=void 0),i(f);var g=f.slice(0);c.encryptBlock(g,0);for(var m=0;m<h;m++)l[d+m]^=g[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Zr;function ec(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Qr;function tc(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(ho)),ho.exports}var go={exports:{}},Jr;function nc(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(go)),go.exports}var mo={exports:{}},Xr;function oc(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(mo)),mo.exports}var yo={exports:{}},ei;function ac(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(yo)),yo.exports}var xo={exports:{}},ti;function rc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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})}(xo)),xo.exports}var po={exports:{}},ni;function ic(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},oi;function lc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(be(),je())})(ue,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(h){return h.ciphertext.toString(d)},parse:function(h){var y=d.parse(h);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ai;function sc(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],h=[],y=[],f=[],g=[],m=[],u=[],S=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var w=0,k=0,x=0;x<256;x++){var D=k^k<<1^k<<2^k<<3^k<<4;D=D>>>8^D&255^99,l[w]=D,d[D]=w;var I=b[w],O=b[I],R=b[O],T=b[D]*257^D*16843008;c[w]=T<<24|T>>>8,h[w]=T<<16|T>>>16,y[w]=T<<8|T>>>24,f[w]=T;var T=R*16843009^O*65537^I*257^w*16843008;g[D]=T<<24|T>>>8,m[D]=T<<16|T>>>16,u[D]=T<<8|T>>>24,S[D]=T,w?(w=I^b[b[b[R^I]]],k^=b[b[k]]):w=k=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],v=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,w=x.words,k=x.sigBytes/4,D=this._nRounds=k+6,I=(D+1)*4,O=this._keySchedule=[],R=0;R<I;R++)R<k?O[R]=w[R]:(b=O[R-1],R%k?k>6&&R%k==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=E[R/k|0]<<24),O[R]=O[R-k]^b);for(var T=this._invKeySchedule=[],B=0;B<I;B++){var R=I-B;if(B%4)var b=O[R];else var b=O[R-4];B<4||R<=4?T[B]=b:T[B]=g[l[b>>>24]]^m[l[b>>>16&255]]^u[l[b>>>8&255]]^S[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,h,y,f,l)},decryptBlock:function(b,x){var w=b[x+1];b[x+1]=b[x+3],b[x+3]=w,this._doCryptBlock(b,x,this._invKeySchedule,g,m,u,S,d);var w=b[x+1];b[x+1]=b[x+3],b[x+3]=w},_doCryptBlock:function(b,x,w,k,D,I,O,R){for(var T=this._nRounds,B=b[x]^w[0],C=b[x+1]^w[1],_=b[x+2]^w[2],p=b[x+3]^w[3],A=4,L=1;L<T;L++){var M=k[B>>>24]^D[C>>>16&255]^I[_>>>8&255]^O[p&255]^w[A++],q=k[C>>>24]^D[_>>>16&255]^I[p>>>8&255]^O[B&255]^w[A++],U=k[_>>>24]^D[p>>>16&255]^I[B>>>8&255]^O[C&255]^w[A++],F=k[p>>>24]^D[B>>>16&255]^I[C>>>8&255]^O[_&255]^w[A++];B=M,C=q,_=U,p=F}var M=(R[B>>>24]<<24|R[C>>>16&255]<<16|R[_>>>8&255]<<8|R[p&255])^w[A++],q=(R[C>>>24]<<24|R[_>>>16&255]<<16|R[p>>>8&255]<<8|R[B&255])^w[A++],U=(R[_>>>24]<<24|R[p>>>16&255]<<16|R[B>>>8&255]<<8|R[C&255])^w[A++],F=(R[p>>>24]<<24|R[B>>>16&255]<<16|R[C>>>8&255]<<8|R[_&255])^w[A++];b[x]=M,b[x+1]=q,b[x+2]=U,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(v)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},ri;function cc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,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],h=[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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var E=this._key,v=E.words,b=[],x=0;x<56;x++){var w=d[x]-1;b[x]=v[w>>>5]>>>31-w%32&1}for(var k=this._subKeys=[],D=0;D<16;D++){for(var I=k[D]=[],O=h[D],x=0;x<24;x++)I[x/6|0]|=b[(c[x]-1+O)%28]<<31-x%6,I[4+(x/6|0)]|=b[28+(c[x+24]-1+O)%28]<<31-x%6;I[0]=I[0]<<1|I[0]>>>31;for(var x=1;x<7;x++)I[x]=I[x]>>>(x-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var R=this._invSubKeys=[],x=0;x<16;x++)R[x]=k[15-x]},encryptBlock:function(E,v){this._doCryptBlock(E,v,this._subKeys)},decryptBlock:function(E,v){this._doCryptBlock(E,v,this._invSubKeys)},_doCryptBlock:function(E,v,b){this._lBlock=E[v],this._rBlock=E[v+1],m.call(this,4,252645135),m.call(this,16,65535),u.call(this,2,858993459),u.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var w=b[x],k=this._lBlock,D=this._rBlock,I=0,O=0;O<8;O++)I|=y[O][((D^w[O])&f[O])>>>0];this._lBlock=D,this._rBlock=k^I}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,m.call(this,1,1431655765),u.call(this,8,16711935),u.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[v]=this._lBlock,E[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,v){var b=(this._lBlock>>>E^this._rBlock)&v;this._rBlock^=b,this._lBlock^=b<<E}function u(E,v){var b=(this._rBlock>>>E^this._lBlock)&v;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(g);var S=l.TripleDES=s.extend({_doReset:function(){var E=this._key,v=E.words;if(v.length!==2&&v.length!==4&&v.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=v.slice(0,2),x=v.length<4?v.slice(0,2):v.slice(2,4),w=v.length<6?v.slice(0,2):v.slice(4,6);this._des1=g.createEncryptor(i.create(b)),this._des2=g.createEncryptor(i.create(x)),this._des3=g.createEncryptor(i.create(w))},encryptBlock:function(E,v){this._des1.encryptBlock(E,v),this._des2.decryptBlock(E,v),this._des3.encryptBlock(E,v)},decryptBlock:function(E,v){this._des3.decryptBlock(E,v),this._des2.encryptBlock(E,v),this._des1.decryptBlock(E,v)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(So)),So.exports}var Co={exports:{}},ii;function dc(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,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 h=this._key,y=h.words,f=h.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,u=0;m<256;m++){var S=m%f,E=y[S>>>2]>>>24-S%4*8&255;u=(u+g[m]+E)%256;var v=g[m];g[m]=g[u],g[u]=v}this._i=this._j=0},_doProcessBlock:function(h,y){h[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var h=this._S,y=this._i,f=this._j,g=0,m=0;m<4;m++){y=(y+1)%256,f=(f+h[y])%256;var u=h[y];h[y]=h[f],h[f]=u,g|=h[(h[y]+h[f])%256]<<24-m*8}return this._i=y,this._j=f,g}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},li;function fc(){return li||(li=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.Rabbit=i.extend({_doReset:function(){for(var f=this._key.words,g=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var u=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],S=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)S[m]^=u[m+4&7];if(g){var E=g.words,v=E[0],b=E[1],x=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|w&4294901760,D=w<<16|x&65535;S[0]^=x,S[1]^=k,S[2]^=w,S[3]^=D,S[4]^=x,S[5]^=k,S[6]^=w,S[7]^=D;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,E=u>>>16,v=((S*S>>>17)+S*E>>>15)+E*E,b=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=v^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(h)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},si;function uc(){return si||(si=1,function(e,o){(function(n,a,r){e.exports=a(be(),Pt(),qt(),Dt(),je())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.RabbitLegacy=i.extend({_doReset:function(){var f=this._key.words,g=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],u=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)u[S]^=m[S+4&7];if(g){var E=g.words,v=E[0],b=E[1],x=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,w=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|w&4294901760,D=w<<16|x&65535;u[0]^=x,u[1]^=k,u[2]^=w,u[3]^=D,u[4]^=x,u[5]^=k,u[6]^=w,u[7]^=D;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(f,g){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 u=0;u<4;u++)l[u]=(l[u]<<8|l[u]>>>24)&16711935|(l[u]<<24|l[u]>>>8)&4278255360,f[g+u]^=l[u]},blockSize:128/32,ivSize:64/32});function y(){for(var f=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var u=f[m]+g[m],S=u&65535,E=u>>>16,v=((S*S>>>17)+S*E>>>15)+E*E,b=((u&4294901760)*u|0)+((u&65535)*u|0);c[m]=v^b}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(h)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(be(),fn(),W0(),j0(),Pt(),G0(),qt(),Zn(),Fr(),U0(),Pr(),$0(),Y0(),K0(),ao(),Z0(),Dt(),je(),Q0(),J0(),X0(),ec(),tc(),nc(),oc(),ac(),rc(),ic(),lc(),sc(),cc(),dc(),fc(),uc())})(ue,function(n){return n})})(Tr);var hc=Tr.exports;const et=kr(hc);var gc="0123456789abcdefghijklmnopqrstuvwxyz";function yt(e){return gc.charAt(e)}function mc(e,o){return e&o}function un(e,o){return e|o}function ci(e,o){return e^o}function di(e,o){return e&~o}function yc(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 xc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi="=";function hn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Vt.charAt(n>>6)+Vt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Vt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Vt.charAt(n>>2)+Vt.charAt((n&3)<<4));(a.length&3)>0;)a+=fi;return a}function ui(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=fi;++n){var i=Vt.indexOf(e.charAt(n));i<0||(a==0?(o+=yt(i>>2),r=i&3,a=1):a==1?(o+=yt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=yt(r),o+=yt(i>>2),r=i&3,a=3):(o+=yt(r<<2|i>>4),o+=yt(i&15),a=0))}return a==1&&(o+=yt(r<<2)),o}var Ht,pc={decode:function(e){var o;if(Ht===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
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?
|
|
75
|
-
`}r&&(a=a-256);for(var d=new
|
|
76
|
-
`,l="",d=o+1;d<n;++d){for(var c=this.get(d),h=d==n-1?r:0,y=7;y>=h;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+
|
|
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+=
|
|
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 To?n=o:n=new To(o,0);var a=new To(n),r=new gi(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var f=s+i;n.pos<f;)y[y.length]=e.decode(n);if(n.pos!=f)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;y[y.length]=g}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 h=0;h<d.length;++h)if(d[h].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}(),gi=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 nn;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,mi=(Cc&16777215)==15715070,Ye=[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],wc=(1<<26)/Ye[Ye.length-1],fe=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=yt(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+=yt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+mn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=he();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 yi(n):a=new xi(n),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,mc,n),n},e.prototype.or=function(o){var n=he();return this.bitwiseTo(o,un,n),n},e.prototype.xor=function(o){var n=he();return this.bitwiseTo(o,ci,n),n},e.prototype.andNot=function(o){var n=he();return this.bitwiseTo(o,di,n),n},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=he();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+yc(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+=xc(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,un)},e.prototype.clearBit=function(o){return this.changeBit(o,di)},e.prototype.flipBit=function(o){return this.changeBit(o,ci)},e.prototype.add=function(o){var n=he();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=he();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=he();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=he();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=he();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=he(),a=he();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 yi(n):n.isEven()?s=new kc(n):s=new xi(n);var l=[],d=3,c=r-1,h=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=h;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var f=o.t-1,g,m=!0,u=he(),S;for(a=mn(o[f])-1;f>=0;){for(a>=c?g=o[f]>>a-c&h:(g=(o[f]&(1<<a+1)-1)<<c-a,f>0&&(g|=o[f-1]>>this.DB+a-c)),d=r;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--f),m)l[g].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,u),s.sqrTo(u,i),d-=2;d>0?s.sqrTo(i,u):(S=i,i=u,u=S),s.mulTo(u,l[g],i)}for(;f>=0&&!(o[f]&1<<a);)s.sqrTo(i,u),S=i,i=u,u=S,--a<0&&(a=this.DB-1,--f)}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 Ac)},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]<=Ye[Ye.length-1]){for(n=0;n<Ye.length;++n)if(a[0]==Ye[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ye.length;){for(var r=Ye[n],i=n+1;i<Ye.length&&r<wc;)r*=Ye[i++];for(r=a.modInt(r);n<i;)if(r%Ye[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:bi(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=he());var s=he(),l=this.s,d=o.s,c=this.DB-mn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var h=s.t,y=s[h-1];if(y!=0){var f=y*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/f,m=(1<<this.F1)/f,u=1<<this.F2,S=a.t,E=S-h,v=n??he();for(s.dlShiftTo(E,v),a.compareTo(v)>=0&&(a[a.t++]=1,a.subTo(v,a)),e.ONE.dlShiftTo(h,v),v.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--E>=0;){var b=a[--S]==y?this.DM:Math.floor(a[S]*g+(a[S-1]+u)*m);if((a[S]+=s.am(0,b,a,E,0,h))<b)for(s.dlShiftTo(E,v),a.subTo(v,a);a[S]<--b;)a.subTo(v,a)}n!=null&&(a.drShiftTo(h,n),l!=d&&e.ZERO.subTo(n,n)),a.t=h,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=he(),r=he(),i=n.convert(this),s=mn(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=he(),s=he(),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=bi(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),un,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>Ye.length&&(o=Ye.length);for(var i=he(),s=0;s<o;++s){i.fromInt(Ye[Math.floor(Math.random()*Ye.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=he();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),un,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}(),Ac=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}(),yi=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}(),xi=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=he();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(fe.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=he();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}(),kc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),fe.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=he();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 he(){return new fe(null)}function Ne(e,o){return new fe(e,o)}var pi=typeof navigator<"u";pi&&mi&&navigator.appName=="Microsoft Internet Explorer"?(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,h=this[o++]>>15,y=d*c+h*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*h+(i>>>30),a[r++]=c&1073741823}return i},St=30):pi&&mi&&navigator.appName!="Netscape"?(fe.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):(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,h=this[o++]>>14,y=d*c+h*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*h,a[r++]=c&268435455}return i},St=28),fe.prototype.DB=St,fe.prototype.DM=(1<<St)-1,fe.prototype.DV=1<<St;var Bo=52;fe.prototype.FV=Math.pow(2,Bo),fe.prototype.F1=Bo-St,fe.prototype.F2=2*St-Bo;var gn=[],Gt,rt;for(Gt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[Gt++]=rt;for(Gt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[Gt++]=rt;for(Gt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[Gt++]=rt;function bi(e,o){var n=gn[e.charCodeAt(o)];return n??-1}function Ct(e){var o=he();return o.fromInt(e),o}function mn(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}fe.ZERO=Ct(0),fe.ONE=Ct(1);var Tc=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 Bc(){return new Tc}var vi=256,yn,wt=null,dt;if(wt==null){wt=[],dt=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Eo=new Uint32Array(256);for(window.crypto.getRandomValues(Eo),xn=0;xn<Eo.length;++xn)wt[dt++]=Eo[xn]&255}var pn=0,bn=function(e){if(pn=pn||0,pn>=256||dt>=vi){window.removeEventListener?window.removeEventListener("mousemove",bn,!1):window.detachEvent&&window.detachEvent("onmousemove",bn);return}try{var o=e.x+e.y;wt[dt++]=o&255,pn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",bn,!1):window.attachEvent&&window.attachEvent("onmousemove",bn))}function Ec(){if(yn==null){for(yn=Bc();dt<vi;){var e=Math.floor(65536*Math.random());wt[dt++]=e&255}for(yn.init(wt),dt=0;dt<wt.length;++dt)wt[dt]=0;dt=0}return yn.next()}var Do=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Ec()},e}();function Dc(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 Ne(i,16)}function Rc(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 Do,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 fe(n)}var Ic=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=Ne(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=Rc(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(a,16),this.p=Ne(r,16),this.q=Ne(i,16),this.dmp1=Ne(s,16),this.dmq1=Ne(l,16),this.coeff=Ne(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Do,r=o>>1;this.e=parseInt(n,16);for(var i=new fe(n,16);;){for(;this.p=new fe(o-r,1,a),!(this.p.subtract(fe.ONE).gcd(i).compareTo(fe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new fe(r,1,a),!(this.q.subtract(fe.ONE).gcd(i).compareTo(fe.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(fe.ONE),d=this.q.subtract(fe.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(fe.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=Ne(o,16),a=this.doPrivate(n);return a==null?null:_c(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Do,i=o>>1;this.e=parseInt(n,16);var s=new fe(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var f=l.p;l.p=l.q,l.q=f}var g=l.p.subtract(fe.ONE),m=l.q.subtract(fe.ONE),u=g.multiply(m);u.gcd(s).compareTo(fe.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(u),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},h=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(h,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(fe.ONE).gcda(s,function(f){f.compareTo(fe.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Lc(a),i=r+n(o).toString(),s=Dc(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=Ne(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Oc(s);return l==a(o).toString()},e}();function _c(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 vn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Lc(e){return vn[e]||""}function Oc(e){for(var o in vn)if(vn.hasOwnProperty(o)){var n=vn[o],a=n.length;if(e.substr(0,a)==n)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,h=l&255;d===255?(d=0,c===255?(c=0,h===255?h=0:++h):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=h}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,h=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var g=u.slice(0);c.encryptBlock(g,0);for(var m=0;m<h;m++)l[d+m]^=g[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(ho)),ho.exports}var go={exports:{}},Xr;function tc(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(h,0);for(var y=0;y<d;y++)i[s+y]^=h[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(go)),go.exports}var mo={exports:{}},ei;function nc(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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})}(mo)),mo.exports}var yo={exports:{}},ti;function oc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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})}(yo)),yo.exports}var xo={exports:{}},ni;function ac(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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})}(xo)),xo.exports}var po={exports:{}},oi;function rc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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})}(po)),po.exports}var bo={exports:{}},ai;function ic(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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})}(bo)),bo.exports}var vo={exports:{}},ri;function lc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(vo)),vo.exports}var So={exports:{}},ii;function sc(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Ge())})(ue,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(h){return h.ciphertext.toString(d)},parse:function(h){var y=d.parse(h);return s.create({ciphertext:y})}}}(),n.format.Hex})}(So)),So.exports}var Co={exports:{}},li;function cc(){return li||(li=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Vt(),Ht(),It(),Ge())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],h=[],y=[],u=[],g=[],m=[],f=[],v=[];(function(){for(var p=[],x=0;x<256;x++)x<128?p[x]=x<<1:p[x]=x<<1^283;for(var w=0,k=0,x=0;x<256;x++){var D=k^k<<1^k<<2^k<<3^k<<4;D=D>>>8^D&255^99,l[w]=D,d[D]=w;var _=p[w],O=p[_],R=p[O],T=p[D]*257^D*16843008;c[w]=T<<24|T>>>8,h[w]=T<<16|T>>>16,y[w]=T<<8|T>>>24,u[w]=T;var T=R*16843009^O*65537^_*257^w*16843008;g[D]=T<<24|T>>>8,m[D]=T<<16|T>>>16,f[D]=T<<8|T>>>24,v[D]=T,w?(w=_^p[p[p[R^_]]],k^=p[p[k]]):w=k=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var p;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,w=x.words,k=x.sigBytes/4,D=this._nRounds=k+6,_=(D+1)*4,O=this._keySchedule=[],R=0;R<_;R++)R<k?O[R]=w[R]:(p=O[R-1],R%k?k>6&&R%k==4&&(p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255]):(p=p<<8|p>>>24,p=l[p>>>24]<<24|l[p>>>16&255]<<16|l[p>>>8&255]<<8|l[p&255],p^=B[R/k|0]<<24),O[R]=O[R-k]^p);for(var T=this._invKeySchedule=[],E=0;E<_;E++){var R=_-E;if(E%4)var p=O[R];else var p=O[R-4];E<4||R<=4?T[E]=p:T[E]=g[l[p>>>24]]^m[l[p>>>16&255]]^f[l[p>>>8&255]]^v[l[p&255]]}}},encryptBlock:function(p,x){this._doCryptBlock(p,x,this._keySchedule,c,h,y,u,l)},decryptBlock:function(p,x){var w=p[x+1];p[x+1]=p[x+3],p[x+3]=w,this._doCryptBlock(p,x,this._invKeySchedule,g,m,f,v,d);var w=p[x+1];p[x+1]=p[x+3],p[x+3]=w},_doCryptBlock:function(p,x,w,k,D,_,O,R){for(var T=this._nRounds,E=p[x]^w[0],C=p[x+1]^w[1],L=p[x+2]^w[2],S=p[x+3]^w[3],A=4,I=1;I<T;I++){var F=k[E>>>24]^D[C>>>16&255]^_[L>>>8&255]^O[S&255]^w[A++],q=k[C>>>24]^D[L>>>16&255]^_[S>>>8&255]^O[E&255]^w[A++],U=k[L>>>24]^D[S>>>16&255]^_[E>>>8&255]^O[C&255]^w[A++],N=k[S>>>24]^D[E>>>16&255]^_[C>>>8&255]^O[L&255]^w[A++];E=F,C=q,L=U,S=N}var F=(R[E>>>24]<<24|R[C>>>16&255]<<16|R[L>>>8&255]<<8|R[S&255])^w[A++],q=(R[C>>>24]<<24|R[L>>>16&255]<<16|R[S>>>8&255]<<8|R[E&255])^w[A++],U=(R[L>>>24]<<24|R[S>>>16&255]<<16|R[E>>>8&255]<<8|R[C&255])^w[A++],N=(R[S>>>24]<<24|R[E>>>16&255]<<16|R[C>>>8&255]<<8|R[L&255])^w[A++];p[x]=F,p[x+1]=q,p[x+2]=U,p[x+3]=N},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(Co)),Co.exports}var wo={exports:{}},si;function dc(){return si||(si=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Vt(),Ht(),It(),Ge())})(ue,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],h=[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],g=l.DES=s.extend({_doReset:function(){for(var B=this._key,b=B.words,p=[],x=0;x<56;x++){var w=d[x]-1;p[x]=b[w>>>5]>>>31-w%32&1}for(var k=this._subKeys=[],D=0;D<16;D++){for(var _=k[D]=[],O=h[D],x=0;x<24;x++)_[x/6|0]|=p[(c[x]-1+O)%28]<<31-x%6,_[4+(x/6|0)]|=p[28+(c[x+24]-1+O)%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 R=this._invSubKeys=[],x=0;x<16;x++)R[x]=k[15-x]},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._subKeys)},decryptBlock:function(B,b){this._doCryptBlock(B,b,this._invSubKeys)},_doCryptBlock:function(B,b,p){this._lBlock=B[b],this._rBlock=B[b+1],m.call(this,4,252645135),m.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var w=p[x],k=this._lBlock,D=this._rBlock,_=0,O=0;O<8;O++)_|=y[O][((D^w[O])&u[O])>>>0];this._lBlock=D,this._rBlock=k^_}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,m.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),B[b]=this._lBlock,B[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(B,b){var p=(this._lBlock>>>B^this._rBlock)&b;this._rBlock^=p,this._lBlock^=p<<B}function f(B,b){var p=(this._rBlock>>>B^this._lBlock)&b;this._lBlock^=p,this._rBlock^=p<<B}a.DES=s._createHelper(g);var v=l.TripleDES=s.extend({_doReset:function(){var B=this._key,b=B.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var p=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),w=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=g.createEncryptor(i.create(p)),this._des2=g.createEncryptor(i.create(x)),this._des3=g.createEncryptor(i.create(w))},encryptBlock:function(B,b){this._des1.encryptBlock(B,b),this._des2.decryptBlock(B,b),this._des3.encryptBlock(B,b)},decryptBlock:function(B,b){this._des3.decryptBlock(B,b),this._des2.encryptBlock(B,b),this._des1.decryptBlock(B,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),n.TripleDES})}(wo)),wo.exports}var Ao={exports:{}},ci;function fc(){return ci||(ci=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Vt(),Ht(),It(),Ge())})(ue,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 h=this._key,y=h.words,u=h.sigBytes,g=this._S=[],m=0;m<256;m++)g[m]=m;for(var m=0,f=0;m<256;m++){var v=m%u,B=y[v>>>2]>>>24-v%4*8&255;f=(f+g[m]+B)%256;var b=g[m];g[m]=g[f],g[f]=b}this._i=this._j=0},_doProcessBlock:function(h,y){h[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var h=this._S,y=this._i,u=this._j,g=0,m=0;m<4;m++){y=(y+1)%256,u=(u+h[y])%256;var f=h[y];h[y]=h[u],h[u]=f,g|=h[(h[y]+h[u])%256]<<24-m*8}return this._i=y,this._j=u,g}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Ao)),Ao.exports}var ko={exports:{}},di;function uc(){return di||(di=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Vt(),Ht(),It(),Ge())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,g=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 f=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],v=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++)v[m]^=f[m+4&7];if(g){var B=g.words,b=B[0],p=B[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=x>>>16|w&4294901760,D=w<<16|x&65535;v[0]^=x,v[1]^=k,v[2]^=w,v[3]^=D,v[4]^=x,v[5]^=k,v[6]^=w,v[7]^=D;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,g){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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,u[g+f]^=l[f]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=u[m]+g[m],v=f&65535,B=f>>>16,b=((v*v>>>17)+v*B>>>15)+B*B,p=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=b^p}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(h)}(),n.Rabbit})}(ko)),ko.exports}var To={exports:{}},fi;function hc(){return fi||(fi=1,function(e,o){(function(n,a,r){e.exports=a(pe(),Vt(),Ht(),It(),Ge())})(ue,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],h=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,g=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],f=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 v=0;v<4;v++)y.call(this);for(var v=0;v<8;v++)f[v]^=m[v+4&7];if(g){var B=g.words,b=B[0],p=B[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=x>>>16|w&4294901760,D=w<<16|x&65535;f[0]^=x,f[1]^=k,f[2]^=w,f[3]^=D,f[4]^=x,f[5]^=k,f[6]^=w,f[7]^=D;for(var v=0;v<4;v++)y.call(this)}},_doProcessBlock:function(u,g){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 f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360,u[g+f]^=l[f]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,g=this._C,m=0;m<8;m++)d[m]=g[m];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var f=u[m]+g[m],v=f&65535,B=f>>>16,b=((v*v>>>17)+v*B>>>15)+B*B,p=((f&4294901760)*f|0)+((f&65535)*f|0);c[m]=b^p}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(h)}(),n.RabbitLegacy})}(To)),To.exports}(function(e,o){(function(n,a,r){e.exports=a(pe(),mn(),j0(),G0(),Vt(),U0(),Ht(),Jn(),Pr(),$0(),Hr(),Y0(),K0(),Z0(),io(),Q0(),It(),Ge(),J0(),X0(),ec(),tc(),nc(),oc(),ac(),rc(),ic(),lc(),sc(),cc(),dc(),fc(),uc(),hc())})(ue,function(n){return n})})(Dr);var gc=Dr.exports;const nt=Er(gc);var mc="0123456789abcdefghijklmnopqrstuvwxyz";function pt(e){return mc.charAt(e)}function yc(e,o){return e&o}function yn(e,o){return e|o}function ui(e,o){return e^o}function hi(e,o){return e&~o}function xc(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 pc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gi="=";function xn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Wt.charAt(n>>6)+Wt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Wt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Wt.charAt(n>>2)+Wt.charAt((n&3)<<4));(a.length&3)>0;)a+=gi;return a}function mi(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=gi;++n){var i=Wt.indexOf(e.charAt(n));i<0||(a==0?(o+=pt(i>>2),r=i&3,a=1):a==1?(o+=pt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=pt(r),o+=pt(i>>2),r=i&3,a=3):(o+=pt(r<<2|i>>4),o+=pt(i&15),a=0))}return a==1&&(o+=pt(r<<2)),o}var jt,bc={decode:function(e){var o;if(jt===void 0){var n="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(jt={},o=0;o<16;++o)jt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)jt[n.charAt(o)]=o;for(o=0;o<a.length;++o)jt[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=jt[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}},_t,Bo={decode:function(e){var o;if(_t===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(_t=Object.create(null),o=0;o<64;++o)_t[n.charAt(o)]=o;for(_t["-"]=62,_t._=63,o=0;o<a.length;++o)_t[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=_t[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=Bo.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 Bo.decode(e)}},Gt=1e13,on=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<Gt?n=0:(n=0|s/Gt,s-=n*Gt),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+=Gt,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+=(Gt+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*Gt+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),yi="…",vc=/^(\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)?)?$/,Sc=/^(\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 Ut(e,o){return e.length>o&&(e=e.substring(0,o)+yi),e}var Eo=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?vc:Sc).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 on(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),h=d==n-1?r:0,y=7;y>=h;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Ut(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Ut(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+=yi),i},e.prototype.parseOID=function(o,n,a){for(var r="",i=new on,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 on)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 Ut(r,a);i=new on,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Cc=function(){function e(o,n,a,r,i){if(!(r instanceof xi))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 Ut(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Ut(this.stream.parseStringISO(n,n+a),o);case 30:return Ut(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 Eo?n=o:n=new Eo(o,0);var a=new Eo(n),r=new xi(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 g=e.decode(n);if(g.tag.isEOC())break;y[y.length]=g}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 h=0;h<d.length;++h)if(d[h].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}(),xi=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 on;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}(),At,wc=0xdeadbeefcafe,pi=(wc&16777215)==15715070,Ze=[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],Ac=(1<<26)/Ze[Ze.length-1],fe=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=pt(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+=pt(r));return i?s:"0"},e.prototype.negate=function(){var o=he();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)+bn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=he();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 bi(n):a=new vi(n),this.exp(o,a)},e.prototype.clone=function(){var o=he();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=he();return this.bitwiseTo(o,yc,n),n},e.prototype.or=function(o){var n=he();return this.bitwiseTo(o,yn,n),n},e.prototype.xor=function(o){var n=he();return this.bitwiseTo(o,ui,n),n},e.prototype.andNot=function(o){var n=he();return this.bitwiseTo(o,hi,n),n},e.prototype.not=function(){for(var o=he(),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=he();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=he();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+xc(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+=pc(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,yn)},e.prototype.clearBit=function(o){return this.changeBit(o,hi)},e.prototype.flipBit=function(o){return this.changeBit(o,ui)},e.prototype.add=function(o){var n=he();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=he();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=he();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=he();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=he();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=he(),a=he();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=kt(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 bi(n):n.isEven()?s=new Tc(n):s=new vi(n);var l=[],d=3,c=r-1,h=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=he();for(s.sqrTo(l[1],y);d<=h;)l[d]=he(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,g,m=!0,f=he(),v;for(a=bn(o[u])-1;u>=0;){for(a>=c?g=o[u]>>a-c&h:(g=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(g|=o[u-1]>>this.DB+a-c)),d=r;!(g&1);)g>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[g].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,f),s.sqrTo(f,i),d-=2;d>0?s.sqrTo(i,f):(v=i,i=f,f=v),s.mulTo(f,l[g],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,f),v=i,i=f,f=v,--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=kt(1),s=kt(0),l=kt(0),d=kt(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 kc)},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]<=Ze[Ze.length-1]){for(n=0;n<Ze.length;++n)if(a[0]==Ze[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ze.length;){for(var r=Ze[n],i=n+1;i<Ze.length&&r<Ac;)r*=Ze[i++];for(r=a.modInt(r);n<i;)if(r%Ze[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:Ci(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=he());var s=he(),l=this.s,d=o.s,c=this.DB-bn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var h=s.t,y=s[h-1];if(y!=0){var u=y*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/u,m=(1<<this.F1)/u,f=1<<this.F2,v=a.t,B=v-h,b=n??he();for(s.dlShiftTo(B,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(h,b),b.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--B>=0;){var p=a[--v]==y?this.DM:Math.floor(a[v]*g+(a[v-1]+f)*m);if((a[v]+=s.am(0,p,a,B,0,h))<p)for(s.dlShiftTo(B,b),a.subTo(b,a);a[v]<--p;)a.subTo(b,a)}n!=null&&(a.drShiftTo(h,n),l!=d&&e.ZERO.subTo(n,n)),a.t=h,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=he(),r=he(),i=n.convert(this),s=bn(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=kt(a),i=he(),s=he(),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=Ci(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),yn,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>Ze.length&&(o=Ze.length);for(var i=he(),s=0;s<o;++s){i.fromInt(Ze[Math.floor(Math.random()*Ze.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=he();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),yn,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}(),kc=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}(),bi=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}(),vi=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=he();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(fe.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=he();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}(),Tc=function(){function e(o){this.m=o,this.r2=he(),this.q3=he(),fe.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=he();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 he(){return new fe(null)}function Ne(e,o){return new fe(e,o)}var Si=typeof navigator<"u";Si&&pi&&navigator.appName=="Microsoft Internet Explorer"?(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,h=this[o++]>>15,y=d*c+h*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*h+(i>>>30),a[r++]=c&1073741823}return i},At=30):Si&&pi&&navigator.appName!="Netscape"?(fe.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},At=26):(fe.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,h=this[o++]>>14,y=d*c+h*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*h,a[r++]=c&268435455}return i},At=28),fe.prototype.DB=At,fe.prototype.DM=(1<<At)-1,fe.prototype.DV=1<<At;var Do=52;fe.prototype.FV=Math.pow(2,Do),fe.prototype.F1=Do-At,fe.prototype.F2=2*At-Do;var pn=[],$t,it;for($t="0".charCodeAt(0),it=0;it<=9;++it)pn[$t++]=it;for($t="a".charCodeAt(0),it=10;it<36;++it)pn[$t++]=it;for($t="A".charCodeAt(0),it=10;it<36;++it)pn[$t++]=it;function Ci(e,o){var n=pn[e.charCodeAt(o)];return n??-1}function kt(e){var o=he();return o.fromInt(e),o}function bn(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}fe.ZERO=kt(0),fe.ONE=kt(1);var Bc=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 Ec(){return new Bc}var wi=256,vn,Tt=null,ft;if(Tt==null){Tt=[],ft=0;var Sn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Ro=new Uint32Array(256);for(window.crypto.getRandomValues(Ro),Sn=0;Sn<Ro.length;++Sn)Tt[ft++]=Ro[Sn]&255}var Cn=0,wn=function(e){if(Cn=Cn||0,Cn>=256||ft>=wi){window.removeEventListener?window.removeEventListener("mousemove",wn,!1):window.detachEvent&&window.detachEvent("onmousemove",wn);return}try{var o=e.x+e.y;Tt[ft++]=o&255,Cn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",wn,!1):window.attachEvent&&window.attachEvent("onmousemove",wn))}function Dc(){if(vn==null){for(vn=Ec();ft<wi;){var e=Math.floor(65536*Math.random());Tt[ft++]=e&255}for(vn.init(Tt),ft=0;ft<Tt.length;++ft)Tt[ft]=0;ft=0}return vn.next()}var Io=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Dc()},e}();function Rc(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 Ne(i,16)}function Ic(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 Io,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 fe(n)}var _c=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=Ne(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=Ic(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(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=Ne(o,16),this.e=parseInt(n,16),this.d=Ne(a,16),this.p=Ne(r,16),this.q=Ne(i,16),this.dmp1=Ne(s,16),this.dmq1=Ne(l,16),this.coeff=Ne(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Io,r=o>>1;this.e=parseInt(n,16);for(var i=new fe(n,16);;){for(;this.p=new fe(o-r,1,a),!(this.p.subtract(fe.ONE).gcd(i).compareTo(fe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new fe(r,1,a),!(this.q.subtract(fe.ONE).gcd(i).compareTo(fe.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(fe.ONE),d=this.q.subtract(fe.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(fe.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=Ne(o,16),a=this.doPrivate(n);return a==null?null:Lc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Io,i=o>>1;this.e=parseInt(n,16);var s=new fe(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 g=l.p.subtract(fe.ONE),m=l.q.subtract(fe.ONE),f=g.multiply(m);f.gcd(s).compareTo(fe.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(f),l.dmp1=l.d.mod(g),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},h=function(){l.q=he(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(fe.ONE).gcda(s,function(u){u.compareTo(fe.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(h,0)})})},y=function(){l.p=he(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(fe.ONE).gcda(s,function(u){u.compareTo(fe.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Oc(a),i=r+n(o).toString(),s=Rc(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=Ne(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Nc(s);return l==a(o).toString()},e}();function Lc(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 An={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Oc(e){return An[e]||""}function Nc(e){for(var o in An)if(An.hasOwnProperty(o)){var n=An[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
|
|
@@ -87,35 +87,35 @@ version: 2.9.0
|
|
|
87
87
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|
88
88
|
* @since jsrsasign 2.1
|
|
89
89
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
90
|
-
*/var Z={};(typeof Z.asn1>"u"||!Z.asn1)&&(Z.asn1={}),Z.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 fe(r,16),l=s.xor(e).add(fe.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Z,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,y=n.DERNumericString,f=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,u=n.DERUTCTime,S=n.DERGeneralizedTime,E=n.DERSequence,v=n.DERSet,b=n.DERTaggedObject,x=n.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var k=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new d(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new h(e[k]);if(k=="numstr")return new y(e[k]);if(k=="prnstr")return new f(e[k]);if(k=="telstr")return new g(e[k]);if(k=="ia5str")return new m(e[k]);if(k=="utctime")return new u(e[k]);if(k=="gentime")return new S(e[k]);if(k=="seq"){for(var D=e[k],I=[],O=0;O<D.length;O++){var R=x(D[O]);I.push(R)}return new E({array:I})}if(k=="set"){for(var D=e[k],I=[],O=0;O<D.length;O++){var R=x(D[O]);I.push(R)}return new v({array:I})}if(k=="tag"){var T=e[k];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var B=x(T[2]);return new b({tag:T[0],explicit:T[1],obj:B})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=x(T.obj),new b(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Z.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 fe(i,2);r=r+"."+c.toString(10),i=""}}return r},Z.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 fe(l,10),h=c.toString(2),y=7-h.length%7;y==7&&(y=0);for(var f="",g=0;g<y;g++)f+="0";h=f+h;for(var g=0;g<h.length-1;g+=7){var m=h.substr(g,7);g!=h.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},Z.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""}},Z.asn1.DERAbstractString=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERAbstractString,Z.asn1.ASN1Object),Z.asn1.DERAbstractTime=function(e){Z.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),h=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),f=s+l+d+c+h+y;if(a===!0){var g=i.getMilliseconds();if(g!=0){var m=r(String(g),3);m=m.replace(/[0]+$/,""),f=f+"."+m}}return f+"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}},Fe.lang.extend(Z.asn1.DERAbstractTime,Z.asn1.ASN1Object),Z.asn1.DERAbstractStructured=function(e){Z.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)},Fe.lang.extend(Z.asn1.DERAbstractStructured,Z.asn1.ASN1Object),Z.asn1.DERBoolean=function(){Z.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fe.lang.extend(Z.asn1.DERBoolean,Z.asn1.ASN1Object),Z.asn1.DERInteger=function(e){Z.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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))},Fe.lang.extend(Z.asn1.DERInteger,Z.asn1.ASN1Object),Z.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Z.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))},Fe.lang.extend(Z.asn1.DERBitString,Z.asn1.ASN1Object),Z.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Z.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Fe.lang.extend(Z.asn1.DEROctetString,Z.asn1.DERAbstractString),Z.asn1.DERNull=function(){Z.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fe.lang.extend(Z.asn1.DERNull,Z.asn1.ASN1Object),Z.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 fe(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 h=s.substr(c,7);c!=s.length-7&&(h="1"+h),r+=o(parseInt(h,2))}return r};Z.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=Z.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))},Fe.lang.extend(Z.asn1.DERObjectIdentifier,Z.asn1.ASN1Object),Z.asn1.DEREnumerated=function(e){Z.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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))},Fe.lang.extend(Z.asn1.DEREnumerated,Z.asn1.ASN1Object),Z.asn1.DERUTF8String=function(e){Z.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Fe.lang.extend(Z.asn1.DERUTF8String,Z.asn1.DERAbstractString),Z.asn1.DERNumericString=function(e){Z.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Fe.lang.extend(Z.asn1.DERNumericString,Z.asn1.DERAbstractString),Z.asn1.DERPrintableString=function(e){Z.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Fe.lang.extend(Z.asn1.DERPrintableString,Z.asn1.DERAbstractString),Z.asn1.DERTeletexString=function(e){Z.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Fe.lang.extend(Z.asn1.DERTeletexString,Z.asn1.DERAbstractString),Z.asn1.DERIA5String=function(e){Z.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Fe.lang.extend(Z.asn1.DERIA5String,Z.asn1.DERAbstractString),Z.asn1.DERUTCTime=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERUTCTime,Z.asn1.DERAbstractTime),Z.asn1.DERGeneralizedTime=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERGeneralizedTime,Z.asn1.DERAbstractTime),Z.asn1.DERSequence=function(e){Z.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}},Fe.lang.extend(Z.asn1.DERSequence,Z.asn1.DERAbstractStructured),Z.asn1.DERSet=function(e){Z.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)},Fe.lang.extend(Z.asn1.DERSet,Z.asn1.DERAbstractStructured),Z.asn1.DERTaggedObject=function(e){Z.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)))},Fe.lang.extend(Z.asn1.DERTaggedObject,Z.asn1.ASN1Object);var Nc=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)}}(),Si=function(e){Nc(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)?pc.decode(n):ko.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=Ne(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ne(d,16);var c=l.sub[4].getHexStringValue();this.p=Ne(c,16);var h=l.sub[5].getHexStringValue();this.q=Ne(h,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var f=l.sub[7].getHexStringValue();this.dmq1=Ne(f,16);var g=l.sub[8].getHexStringValue();this.coeff=Ne(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],u=m.sub[0];a=u.sub[0].getHexStringValue(),this.n=Ne(a,16),r=u.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ne(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 Z.asn1.DERInteger({int:0}),new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e}),new Z.asn1.DERInteger({bigint:this.d}),new Z.asn1.DERInteger({bigint:this.p}),new Z.asn1.DERInteger({bigint:this.q}),new Z.asn1.DERInteger({bigint:this.dmp1}),new Z.asn1.DERInteger({bigint:this.dmq1}),new Z.asn1.DERInteger({bigint:this.coeff})]},a=new Z.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return hn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Z.asn1.DERSequence({array:[new Z.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Z.asn1.DERNull]}),a=new Z.asn1.DERSequence({array:[new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e})]}),r=new Z.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new Z.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return hn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var Z={};(typeof Z.asn1>"u"||!Z.asn1)&&(Z.asn1={}),Z.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 fe(r,16),l=s.xor(e).add(fe.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=Z,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,y=n.DERNumericString,u=n.DERPrintableString,g=n.DERTeletexString,m=n.DERIA5String,f=n.DERUTCTime,v=n.DERGeneralizedTime,B=n.DERSequence,b=n.DERSet,p=n.DERTaggedObject,x=n.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var k=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new d(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new h(e[k]);if(k=="numstr")return new y(e[k]);if(k=="prnstr")return new u(e[k]);if(k=="telstr")return new g(e[k]);if(k=="ia5str")return new m(e[k]);if(k=="utctime")return new f(e[k]);if(k=="gentime")return new v(e[k]);if(k=="seq"){for(var D=e[k],_=[],O=0;O<D.length;O++){var R=x(D[O]);_.push(R)}return new B({array:_})}if(k=="set"){for(var D=e[k],_=[],O=0;O<D.length;O++){var R=x(D[O]);_.push(R)}return new b({array:_})}if(k=="tag"){var T=e[k];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var E=x(T[2]);return new p({tag:T[0],explicit:T[1],obj:E})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=x(T.obj),new p(C)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},Z.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 fe(i,2);r=r+"."+c.toString(10),i=""}}return r},Z.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 fe(l,10),h=c.toString(2),y=7-h.length%7;y==7&&(y=0);for(var u="",g=0;g<y;g++)u+="0";h=u+h;for(var g=0;g<h.length-1;g+=7){var m=h.substr(g,7);g!=h.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},Z.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""}},Z.asn1.DERAbstractString=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERAbstractString,Z.asn1.ASN1Object),Z.asn1.DERAbstractTime=function(e){Z.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),h=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+h+y;if(a===!0){var g=i.getMilliseconds();if(g!=0){var m=r(String(g),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}},Fe.lang.extend(Z.asn1.DERAbstractTime,Z.asn1.ASN1Object),Z.asn1.DERAbstractStructured=function(e){Z.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)},Fe.lang.extend(Z.asn1.DERAbstractStructured,Z.asn1.ASN1Object),Z.asn1.DERBoolean=function(){Z.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Fe.lang.extend(Z.asn1.DERBoolean,Z.asn1.ASN1Object),Z.asn1.DERInteger=function(e){Z.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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))},Fe.lang.extend(Z.asn1.DERInteger,Z.asn1.ASN1Object),Z.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}Z.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))},Fe.lang.extend(Z.asn1.DERBitString,Z.asn1.ASN1Object),Z.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=Z.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}Z.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Fe.lang.extend(Z.asn1.DEROctetString,Z.asn1.DERAbstractString),Z.asn1.DERNull=function(){Z.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Fe.lang.extend(Z.asn1.DERNull,Z.asn1.ASN1Object),Z.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 fe(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 h=s.substr(c,7);c!=s.length-7&&(h="1"+h),r+=o(parseInt(h,2))}return r};Z.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=Z.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))},Fe.lang.extend(Z.asn1.DERObjectIdentifier,Z.asn1.ASN1Object),Z.asn1.DEREnumerated=function(e){Z.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new fe(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))},Fe.lang.extend(Z.asn1.DEREnumerated,Z.asn1.ASN1Object),Z.asn1.DERUTF8String=function(e){Z.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Fe.lang.extend(Z.asn1.DERUTF8String,Z.asn1.DERAbstractString),Z.asn1.DERNumericString=function(e){Z.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Fe.lang.extend(Z.asn1.DERNumericString,Z.asn1.DERAbstractString),Z.asn1.DERPrintableString=function(e){Z.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Fe.lang.extend(Z.asn1.DERPrintableString,Z.asn1.DERAbstractString),Z.asn1.DERTeletexString=function(e){Z.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Fe.lang.extend(Z.asn1.DERTeletexString,Z.asn1.DERAbstractString),Z.asn1.DERIA5String=function(e){Z.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Fe.lang.extend(Z.asn1.DERIA5String,Z.asn1.DERAbstractString),Z.asn1.DERUTCTime=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERUTCTime,Z.asn1.DERAbstractTime),Z.asn1.DERGeneralizedTime=function(e){Z.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))},Fe.lang.extend(Z.asn1.DERGeneralizedTime,Z.asn1.DERAbstractTime),Z.asn1.DERSequence=function(e){Z.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}},Fe.lang.extend(Z.asn1.DERSequence,Z.asn1.DERAbstractStructured),Z.asn1.DERSet=function(e){Z.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)},Fe.lang.extend(Z.asn1.DERSet,Z.asn1.DERAbstractStructured),Z.asn1.DERTaggedObject=function(e){Z.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)))},Fe.lang.extend(Z.asn1.DERTaggedObject,Z.asn1.ASN1Object);var Fc=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)}}(),Ai=function(e){Fc(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)?bc.decode(n):Bo.unarmor(n),l=Cc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ne(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ne(d,16);var c=l.sub[4].getHexStringValue();this.p=Ne(c,16);var h=l.sub[5].getHexStringValue();this.q=Ne(h,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ne(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Ne(u,16);var g=l.sub[8].getHexStringValue();this.coeff=Ne(g,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],f=m.sub[0];a=f.sub[0].getHexStringValue(),this.n=Ne(a,16),r=f.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ne(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 Z.asn1.DERInteger({int:0}),new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e}),new Z.asn1.DERInteger({bigint:this.d}),new Z.asn1.DERInteger({bigint:this.p}),new Z.asn1.DERInteger({bigint:this.q}),new Z.asn1.DERInteger({bigint:this.dmp1}),new Z.asn1.DERInteger({bigint:this.dmq1}),new Z.asn1.DERInteger({bigint:this.coeff})]},a=new Z.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return xn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new Z.asn1.DERSequence({array:[new Z.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Z.asn1.DERNull]}),a=new Z.asn1.DERSequence({array:[new Z.asn1.DERInteger({bigint:this.n}),new Z.asn1.DERInteger({int:this.e})]}),r=new Z.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new Z.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return xn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
|
|
91
91
|
?)|(.{1,`+a+"})";return n.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},o.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return n+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,n+="-----END RSA PRIVATE KEY-----",n},o.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|
95
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}(
|
|
97
|
-
`),
|
|
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}(_c),_o,Mc=typeof process<"u"?(_o=process.env)===null||_o===void 0?void 0:_o.npm_package_version:void 0,zc=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 Ai(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(mi(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return xn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return xn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,mi(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new Ai,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=Mc,e}();const ki=new zc,Yt=Pc();function Pc(){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 Ti=nt.enc.Utf8.parse("ABCDEF1234123412");function qc(e,o){o=o||Yt;const n=nt.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=nt.enc.Utf8.parse(e);break;case"object":a=nt.enc.Utf8.parse(JSON.stringify(e));break;default:a=nt.enc.Utf8.parse(e.toString())}return nt.AES.encrypt(a,n,{iv:Ti,mode:nt.mode.CBC,padding:nt.pad.ZeroPadding}).toString()}function Bi(e,o){o=o||Yt;const n=nt.enc.Utf8.parse(o),a=nt.AES.decrypt(e,n,{iv:Ti,mode:nt.mode.CBC,padding:nt.pad.ZeroPadding});return nt.enc.Utf8.stringify(a).toString()}function Vc(e){ki.setPublicKey(e)}function Hc(e){return ki.encrypt(e)}function Ei(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 Wc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Kt(a,"string"):e.data=Kt(n,"string"):["get","delete"].includes(r)?e.params=Kt(a,"string"):e.data=Kt(n)}function Kt(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)}&`}}Vc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Hc(Yt);return{c:qc(n,Yt),p:r}}window.getEncryptParam=Kt;function jc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ei(e.url)&&(e.data instanceof FormData?e.data=Gc(e.data):Wc(e))}function Gc(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=Kt(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Yt,window.xhaesDecrypt=Bi;function Di(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&Ei(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Bi(e.data.data.content,Yt);e.data=JSON.parse(a)}}const Ri=window.config.requestErrorTip,gt=as.create({timeout:1e3*180});gt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),jc(e),e},e=>Promise.reject(e)),gt.interceptors.response.use(e=>{var o,n,a;return Ri&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&de.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}),Di(e),e},e=>{if(Di(e==null?void 0:e.response),Ri)if(e.message.includes("timeout"))de.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&de.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&de.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Uc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Lo=(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,",")},kn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Yc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Ii=(e,o)=>ct(o,e),lt=(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},Zt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),an=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}))},st=(e,o)=>{let n=!0;const a=an(e);return a!=null&&a.length&&(n=a.map(r=>o[r.id]).every(r=>r)),n},rn=(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(n!=null&&n.length){for(const l of n){const d=Ie(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Di=(e,o)=>{const{props:n,componentList:a,getGlobalModel:r}=e,{graphicConfig:i={},startValue:s,endValue:l}=n,d=Yc({graphicConfig:i,startValue:s,endValue:l,componentList:a,getGlobalModel:r}),{dimensions:c,dataset:h}=o,{classificationList:y=[]}=i,g=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,u)=>ye(m).isBefore(ye(u))?-1:1);for(const m of h){const{data:u}=m;if(u!=null&&u.length){const S=[];for(const E of d)if(u.find(v=>v[g]!==E)){const v=_e.cloneDeep(u[0]);for(const b in v)b===g?v[b]=E:v[b]=0;S.push(v)}m.data.push(...S),m.data.sort((E,v)=>ye(E[g]).isBefore(ye(v[g]))?-1:1)}}};function Yc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:r,getGlobalModel:i}=e,s=Ri(o),l=Ri(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),h=a.find(y=>y.keyName===l.keyName);if(c&&h){const y=i(c.id),f=i(h.id),{classificationList:g=[]}=r,m=g.find(u=>u.show);if(m){let u="YYYY-MM";switch(m.name){case"the_year":u="YYYY";break;case"the_month":u="MM";break;case"the_day":u="DD";break;case"the_date":u=(m==null?void 0:m.dateFormat)||u;break}const S=Kc(u);if(u){const E=t.unref(y[s.field]),v=t.unref(f[l.field]);let b=ye(E);const x=ye(v);for(d.push(x.format(u));b.isBefore(x);)d.push(b.format(u)),b=b.add(1,S)}}}}return d}function Ri(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const r=a.match(/\[(.+?)\]/g);let i="";r!=null&&r.length&&(a=a.replace(r[0],""),i=r[0].slice(1,-1).trim()),o={keyName:a,field:i}}}return o}function Kc(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const Cn=(e,o)=>{const n={dayjs:ye,...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},Ie=(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 h=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=h.match(y);for(let g=0;g<f.length;g++){const m=f[g],u=s[m];u!=null&&typeof u!="function"&&(h=h.replace(m,u))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=Cn(h,n)),e=e.replace(c,h)}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},Pe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(qe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:h}=t.inject(De,{getGlobalModel:m=>{}}),y=Ie(n),f=async(m={})=>{if(!y||!a||!r)return;let u={};i.forEach(x=>{const{key:w,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let D={};const{id:I,prop:O,propKey:R,operate:T}=k;I==="THIS"?D=h(t.unref(c))||{}:D=h(I)||{};const B=t.unref(D[O]);let C=null;if(["date","range"].some(p=>it(D==null?void 0:D.type,p))){const{value:p,type:A,mode:L}=T||{};if(p&&A&&L)switch(A){case"add":C=t.unref(B).add(p,L);break;case"minus":C=t.unref(B).subtract(p,L);break}C==null&&(C=t.unref(B)),C=(C==null?void 0:C.format((R==null?void 0:R.trim())||D.format))||""}else Object.prototype.toString.call(B)==="[object Object]"?R?C=B[R]:C=O?B[O]:B:it(D==null?void 0:D.type,"select")&&t.unref(B)&&O&&Array.isArray(t.unref(B))?C=t.unref(B).map(p=>Object.prototype.hasOwnProperty.call(p,O)?p[O]:p):C=B;u[w]=C}else typeof k=="string"&&(u[w]=Ie(k))}),u={...window.config.requestParams,...m,...u};let S="";const E=Object.keys(u),v=E.length-1,b=E.length;E.forEach((x,w)=>{let k=u[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),w===0?b!==1?S+=`?${x}=${k}&`:S+=`?${x}=${k}`:w===v?S+=`${x}=${k}`:S+=`${x}=${k}&`});try{const x=["get","head"].includes(a),w={};let k=x?y+S:y;u.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${u.dataSqlId}`),Object.prototype.hasOwnProperty.call(u,"signal")&&(w.signal=u.signal);const D=await ft({baseURL:t.unref(d)||"",url:k,method:a,headers:r,data:x?{}:u,...w});return o(D),D}catch(x){console.error(x)}},g=l&&setInterval(f,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),f},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 g=0;g<d;g++){const m=r[g],{label:u,value:S}=m,E={...e[0],value:e[0][S]};i.add(u),y.push(E)}const f=e[0][a]||"";s.set(f,y)}else for(let y=0;y<l;y++){const f=e[y],g=f[a];i.add(g);for(let m=0;m<d;m++){const u=r[m],{label:S,value:E}=u,v={...f,value:f[E]||0};if(s.has(S)){const b=s.get(S);b.push(v),s.set(S,b)}else s.set(S,[v])}}const c=Array.from(i),h=[];for(const[y,f]of s)h.push({name:y,data:f});return{dimensions:c,dataset:h}},ut=(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},Ii=(e,o)=>{const n=`${wr}/preview?pageId=${o}`,a=`${wr}/${o}`;return e==="preview"?n:a},st=(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=Cn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ke=(e={})=>{const{requestToken:o}=t.inject(br,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(g,m)=>{}}),{getGlobalModel:a}=t.inject(De,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const r=g=>{const{around:m,unit:u,id:S}=g;let E="";const{pageMode:v="",componentList:b=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,w=null;if(v==="design"){const k=b==null?void 0:b.find(C=>C.id===S);if(!k)return[];const{interval:D,intervalUnit:I,startTime:O,endTime:R,operate:T,useCurrentTime:B}=k||{};if(B&&(x=ye().subtract(D,I),w=ye()),O&&(x=ye(O)),R&&(w=ye(R)),T){const{type:C,value:_,mode:p}=T;switch(C){case"add":x=x&&x.add(_,p),w=w&&w.add(_,p);break;case"minus":x=x&&x.subtract(_,p),w=w&&w.subtract(_,p)}}}else{const k=a(S)||{};t.unref(k.startTime)&&(x=ye(t.unref(k.startTime))),t.unref(k.endTime)&&(w=ye(t.unref(k.endTime)))}if(x&&w){const k=w.diff(x,u.toLowerCase());E=`${m==="before"?"-":""}${k+1}`}return E?[E]:[]},i=(g,m)=>Object.prototype.hasOwnProperty.call(g,m),s=g=>{const{calcWays:m=[],dateCalcTypes:u=[],activeKey:S,componentId:E=""}=g;if(S===5&&(m!=null&&m.length)&&(u!=null&&u.length)&&E){const v=m[0].split("-");(v==null?void 0:v.length)>1&&v[0]==="rangeValue"&&(g.calcWays=r({around:v[1],unit:u[0],id:E})),delete g.radioValue}i(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),i(g,"activeKey")&&delete g.activeKey,i(g,"radioValue")&&delete g.radioValue,i(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),i(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=ye().format(g.dateFormat)),delete g.useCurrentTime},l=g=>{const m=[];return g!=null&&g.length&&_e.cloneDeep(g).forEach(u=>{if(u.join&&u.conditions){const S=!u.conditions.some(E=>E.join&&E.conditions);u.conditions.forEach((E,v)=>{s(E);const b={};v<u.conditions.length-1&&(b.join=u.join),S?m.push({...b,...E}):E.join&&E.conditions?m.push({conditions:l([E]),join:u.join}):m.push({...b,...E})})}else s(u),m.push(u)}),m},d=(g={},m)=>{if(g!=null&&g.sortCpnts&&m){const A=f(g);A&&(m.sort=A)}const{label:u,name:S,location:E,show:v,indexCode:b,indexCodeNum:x,calcType:w="COLUMN",builtInFormula:k,builtInValueSource:D,builtInCalcWay:I,formula:O,conditions:R,aggregate:T,distinct:B,dimByCount:C}=g;let _;if(R&&(_=l(R)),w==="COMPONENT"){const A={};return y(A,D),{label:u.trim(),columnName:S,show:v,calcType:w,componentAlias:I,componentValue:A.fieldValue||null}}const p={label:u.trim(),columnName:S,location:E,show:v,calcType:w,hrpIndexCode:b,hrpIndexCodeNum:x,aggregate:T,builtInFormula:k,builtInValueSource:D,formula:O,conditions:_};if(k==="DATE_OFFSET"){const A=I.split("-");if((A==null?void 0:A.length)===3){let L=A[0];return A[2]==="before"&&A[0]!=="0"&&(L=`-${A[0]}`),{...p,calcWays:[L],dateCalcTypes:[A[1]]}}}else return S==="the_count"&&(p.calcType="AGGREGATE",p.distinct=!!B,p.typeGuid=C),{...p,builtInCalcWay:I}},c=g=>{const m=[];for(const u of g)u.conditions?m.push(...c(u.conditions)):(u==null?void 0:u.dataType)==="component"&&m.push(u);return m},h=g=>{if(!g)return[];const{controlList:m=[],classificationList:u=[],rowHeaderList:S=[],dimensionList:E=[],seriesList:v=[],leftAxisList:b=[],rightAxisList:x=[],queryColumnList:w=[],indicators:k=[]}=g,D=[...u,...S,...E,...v,...b,...x,...w,...k],I=[];for(const B of D){const C=c((B==null?void 0:B.conditions)||[]);if(C!=null&&C.length){const _=C.filter(p=>(p==null?void 0:p.dataType)==="component").map(p=>{const A={};return p!=null&&p.dateFormat&&(A.format=p.dateFormat),{conditionKey:p.fieldName,conditionLabel:p.fieldName,conditionName:p.fieldName,conditionValueType:p.fieldType,id:p.componentId,keyName:p.fieldValue,rule:p.rule,notGlobal:!0,indexCode:p.indexCode,typeGuid:p.typeGuid,indexCodeNum:p.indexCodeNum,...A}});if(_!=null&&_.length)for(const p of _)I.find(A=>A.keyName===p.keyName)||I.push(p)}}const O=m.concat(I),R=O.length,T=[];for(let B=0;B<R;B++){const C=O[B];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:_,keyName:p,conditionLabel:A,conditionKey:L,conditionValueType:M,prop:q,rule:U="NONE",notGlobal:F=!1,format:z,modelKey:V,indexCode:N,typeGuid:P,indexCodeNum:j,dataType:$="component",customValue:W}=C;let K=p||_;K&&q&&(K+=`-${q}`);let ne=U;ne==="NONE"&&(["startTime","endTime"].includes(q)?ne=q==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":p!=null&&p.includes("startTime")?ne=q==="GREATER_EQUAL":p!=null&&p.includes("endTime")?ne=q==="LESS_EQUAL":ne="EQUAL");const oe={rule:ne,label:A,fieldName:L,fieldValue:"",valueType:M,alias:K,globalCondition:!F,indexCode:N,typeGuid:P,indexCodeNum:j};y(oe,_,{prop:q,dateFormat:z,modelKey:V,keyName:p}),$===""&&(oe.fieldValue=W||""),T.push(oe)}for(let B=T.length-1;B>=0;B--){const C=T[B];C.globalCondition||T.find(p=>p.alias===C.alias&&p.globalCondition)&&T.splice(B,1)}return T};function y(g,m,u){var T,B;const S=a(m)||{},{prop:E="",dateFormat:v="",modelKey:b="",keyName:x=""}=u||{},{value:w,format:k="YYYY-MM-DD",type:D="",useCurrentTime:I,RECORD:O}=S||{},R=v||k;if(it(S.type,"date"))I?w?g.fieldValue=(T=t.unref(w))==null?void 0:T.format(R):g.fieldValue=ye().format(R):g.fieldValue=(B=t.unref(w))==null?void 0:B.format(R),g.dateFormat=R;else if(D==="ecanRangePicker"){let C=E;if(!E){const p=x&&x.split("-");p!=null&&p.length&&(C=p[p.length-1])}if(!C)return;let _=null;t.unref(S[C])&&(_=ye(t.unref(S[C]))),_&&(g.fieldValue=_==null?void 0:_.format(R)),g.dateFormat=R}else it(D,Ar)?b&&O?g.fieldValue=O[b]:!b&&O?g.fieldValue=O.value:g.fieldValue=t.unref(w):g.fieldValue=t.unref(w)}const f=g=>{const{sortCpnts:m=[]}=g;let u,S="";for(const E of m){const v=a(E)||{},{type:b,RECORD:x}=v;if(it(b,"image")&&it(x==null?void 0:x.value,["asc","desc"])){S=x.value.toUpperCase();break}}return S&&(u={label:g.label,columnName:g.name,order:S,type:"NORMAL"}),u};return async(g={})=>{var $,W,K,ne,oe,ae;n(e.id,!1);const{graphicConfig:m,type:u,isGroupTable:S=!1}=e;let{source:E,dataViewId:v,plugin:b="1",layer:x,chartType:w,classificationList:k=[],rowHeaderList:D=[],dimensionList:I=[],seriesList:O=[],leftAxisList:R=[],rightAxisList:T=[],queryColumnList:B=[],indicators:C=[],controlList:_=[],formFields:p={},idxLibMode:A,preview:L=!1}=m||{},M=[];(m==null?void 0:m.pageMode)==="design"?M=(m.sqlConditions??[]).map(J=>{const Y=J.rule||"EQUAL",ee={};return i(J,"globalCondition")||(ee.globalCondition=!0),{...J,rule:Y==="NONE"?"EQUAL":Y,...ee}}):M=h(m);for(const J of M)i(J,"indexCode")&&(J.hrpIndexCode=J.indexCode,delete J.indexCode),i(J,"indexCodeNum")&&(J.hrpIndexCodeNum=J.indexCodeNum,delete J.indexCodeNum);x==null&&(it(u,["table"])||it(u,"list")&&(k==null?void 0:k.length)>1?x="1":it(u,["select","checkbox","radio"])?x="3":x="2");let q,U="";if(Array.isArray(k)&&k.length>0&&(u!=="ecanList"||(k==null?void 0:k.length)===1)){const J=k.length;for(let Y=0;Y<J;Y++){const ee=k[Y]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we,dateFormat:Ae,typeGuid:Ve="",truncations:Ue=[]}=ee;if(Se||J===1){U=Ve,q={label:re.trim(),columnName:xe,show:Se,sort:f(ee)||Be,customGroup:Oe,conditions:l(we),typeGuid:Ve},Ae&&(q.dateFormat=Ae),xe==="the_date"&&!q.dateFormat&&(q.dateFormat="YYYY-MM");const He={};if(Array.isArray(Ue)&&Ue.length>0){const We=Ue.length;for(let Ge=0;Ge<We;Ge++){const ht=Ue[Ge]||{},{rule:tt="",num:nt=0,name:G=""}=ht;tt&&nt&&(He.num=nt,He.rule=tt,G&&(He.otherGroupName=G))}}($=Object.keys(He))!=null&&$.length&&(q.truncation=He);break}}}let F;if(Array.isArray(O)&&O.length>0){const J=O.length;for(let Y=0;Y<J;Y++){const ee=O[Y]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we}=ee;if(Se||J===1){F={label:re.trim(),columnName:xe,show:Se,sort:Be,customGroup:Oe,conditions:l(we)};break}}}const z=[];R==null||R.forEach(J=>{J.location="LEFT",z.push(d(J,q))}),T==null||T.forEach(J=>{J.location="RIGHT",z.push(d(J,q))}),C==null||C.forEach(J=>{J.location="LEFT",z.push(d(J,q))});const V=[];u==="ecanList"&&(k==null?void 0:k.length)>1&&(B=k),B==null||B.forEach(J=>{const{label:Y,name:ee,location:re,show:xe,indexCode:Se,sort:Be,typeGuid:Oe,indexCodeNum:we}=J;let Ae=Be;if(g.sort){const{field:Ve,order:Ue}=g.sort;let He=z.find(We=>We.label===Ve);!He&&Y===Ve&&(He=J),He&&(Ae={columnName:He.columnName,label:g.sort.field,order:Ue.toUpperCase(),type:"NORMAL"})}V.push({label:Y,columnName:ee,location:re,show:xe,sort:Ae,calcType:"COLUMN",hrpIndexCode:Se,hrpIndexCodeNum:we,typeGuid:Oe})});const N=[];let P=[];if(Array.isArray(D)&&D.length>0?P=D:Array.isArray(I)&&I.length>0&&(P=I),P!=null&&P.length){const J=P.length;for(let Y=0;Y<J;Y++){const ee=P[Y]||{},{label:re="",name:xe="",show:Se=!1,sort:Be,customGroup:Oe,conditions:we,truncations:Ae,typeGuid:Ve="",dateFormat:Ue}=ee;let He=Be;if(g.sort){const{field:ht,order:tt}=g.sort;let nt=z.find(G=>G.label===ht);!nt&&ee.label===ht&&(nt=ee),nt&&(He={columnName:nt.columnName,label:g.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:re.trim(),columnName:xe,show:Se,sort:He,customGroup:Oe,conditions:l(we),typeGuid:Ve};Ue&&(We.dateFormat=Ue),xe==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const Ge={};if(Array.isArray(Ae)&&Ae.length>0){const ht=Ae.length;for(let tt=0;tt<ht;tt++){const nt=Ae[tt]||{},{rule:G="",num:Q=0,name:X=""}=nt;G&&Q&&(Ge.num=Q,Ge.rule=G,X&&(Ge.otherGroupName=X))}}(W=Object.keys(Ge))!=null&&W.length&&(We.truncation=Ge),N.push(We)}}if(it(u,["text","proportion","counter"])&&(w="zb"),S){if(N.length===0||z.length===0)return;w="grouptable"}else{if(x==="1"&&V.length===0)return;if(x==="2"&&z.length===0)return;if(x==="3"&&(!U||!p.labelField||!p.valueField))return;if(x==="3"&&u==="ecanDataSelect"&&z.length===0)return}I!=null&&I.length&&(x="1",w="grouptable");let j=(K=window==null?void 0:window.config)==null?void 0:K.pageId;if(!j){const{pathname:J}=window==null?void 0:window.location;if(J){const Y=J.split("/");Y!=null&&Y.length&&(j=Y[Y.length-1])}}if((ne=Object.keys(p))!=null&&ne.length){const J=_.find(ee=>ee.conditionKey==="parentCode"),Y={};if(J){const ee=a(J.id)||{};if(ee!=null&&ee.itemCodes)Y.parentItemCodes=ee.itemCodes;else return}u==="ecanDataSelect"&&(Y.indicatorList=z.filter(ee=>ee.show));try{return await ft.post(`${Cr}/diagram/formData`,{source:E,dataViewId:v,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:u==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:p.labelField,valueField:p.valueField,pageId:j,sqlConditions:M,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...Y},{headers:{Authentication:(oe=window==null?void 0:window.config)==null?void 0:oe.indicatorToken,operateContext:Sr}})}catch(ee){console.error(ee)}finally{}}else try{return await ft.post(`${Cr}/diagram`,{source:E,dataViewId:v,plugin:b,layer:x,chartType:w,classification:q,series:F,indicatorList:z,queryColumns:S?[]:V,pageFlag:!0,pageId:j,sqlConditions:M.map(Y=>{const{fieldValue:ee}=Y,re={};return ee&&Array.isArray(ee)&&(re.fieldValue=JSON.stringify(ee)),{...Y,...re}}),idxLibMode:A,preview:L,rowHeaders:N,keyName:e.keyName},{headers:{Authentication:(ae=window==null?void 0:window.config)==null?void 0:ae.indicatorToken,operateContext:Sr}})}catch(J){console.error(J)}finally{}}},Zc=()=>{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}},Qc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...qn},setup(e){const{width:o,height:n}=t.inject(qe,{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:ut(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),h=t.ref(!1),y=t.ref();let f;const g=()=>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 g(),m(),S(),window.addEventListener("resize",E),v(),h.value=!0},{immediate:!0});const u=t.ref({});t.provide("scaleValue",u);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,w=document.body.clientHeight,k=s.value||d.value,D=l.value||c.value,I=x/k;let O=w/D;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*x/D),u.value={widthScale:I,heightScale:O},y.value&&(y.value.style.transform=`scale(${I}, ${O})`),a(O)},E=_e.debounce(async()=>{await g(),S()},100),v=()=>{const x=window.MutationObserver;f=new x(E),f.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return t.onMounted(()=>{h.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:y,ready:h}}}),rh="",Jc={id:"container",ref:"container"};function Xc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Jc,[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 _i=ve(me(Qc,[["render",Xc],["__scopeId","data-v-b496b36e"]])),_o={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Lo=Ce(_o),ed=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Lo},setup(e,{expose:o}){Zc();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(()=>Ie(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),h=t.computed(()=>e.height),y=t.ref("");t.provide(qe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:h});const f=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",W=>{let K=W;n.value||(K=parseFloat(h.value)*W+"px"),f.value.height=K}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const g=t.ref(),m=new Map;console.log("globalModel",m);const u=W=>m.get(W),S=(W,K)=>{g.value=K,m.set(W,K)},E=()=>{g.value=null},v=W=>{let K=W;if(K){const ne=W.match(/\{(.+?)\}/g);if(ne!=null&&ne.length){let oe=ne[0].slice(1,-1).trim();const ae=oe.match(/\[(.+?)\]/g);let J="";ae!=null&&ae.length&&(oe=oe.replace(ae[0],""),J=ae[0].slice(1,-1).trim());const Y=t.unref(i).find(ee=>ee.keyName===oe);if(Y){const ee=u(Y.id),{type:re,value:xe,RECORD:Se,recordData:Be}=ee||{};it(re,Ar)?K=Se[J]:it(re,"select")?K=Be[J]:K=xe}else K=""}}return K},b=new Map,x=W=>b.get(W),w=(W,K)=>{b.set(W,K)};t.provide(De,{getGlobalModel:u,setGlobalModel:S,clearInteractiveData:E,getRecordValueByKeyName:v,getRequestData:x,setRequestData:w,interactiveData:g});const k=t.ref({}),D=(W,K)=>{k.value[W]=K};t.provide(vt,{loadedData:k,setLoadedData:D});const I=[],O=()=>{I.pop()},R=W=>{I.push(W)},T=new Map,B=W=>T.get(W),C=(W,K)=>{T.set(W,K)};t.provide(vr,{popUseModalIds:O,pushUseModalIds:R,getModalModel:B,setModalModel:C});const _=as(),p=new Set,A=(W,K)=>{p.add(W),_.on(W,ne=>typeof K[ne]=="function"&&K[ne]()),t.onBeforeUnmount(()=>{L(W)})},L=W=>{p.delete(W),_.off(W)},M=(W,K)=>{if(W==="PAGE"){const ne=I.length;let oe=[];if(ne===0)oe=[...p];else{const ae=I[ne-1];oe=[...B(ae)]}oe.forEach(ae=>{_.emit(ae,K)})}else _.emit(W,K)};t.provide(Vn,{onEvent:A,offEvent:L,emitEvent:M});const q=t.ref(0),U=()=>{q.value=t.unref(q)+1};t.provide(br,{requestToken:U});const F=new Map,z=new Map,V=({requestFn:W=()=>{},sortNum:K=0,id:ne=""})=>{if(F.has(K)){const oe=F.get(K);oe==null||oe.push(W)}else F.set(K,[W]);z.set(ne,W)},N=W=>new Promise((K,ne)=>{const oe=W.map(ae=>ae());Promise.all(oe).then(ae=>{K(ae)}).catch(ae=>{ne(ae)})}),P=W=>new Promise(async(K,ne)=>{if(W){if(typeof W=="string"){const oe=z.get(W);if(typeof oe=="function"){const ae=ft.interceptors.response.use(J=>(K(J),J),J=>(ne(J),Promise.reject(J)));oe(),ft.interceptors.response.eject(ae)}}}else{const oe=Array.from(F);oe.sort((J,Y)=>Y[0]-J[0]);const ae=oe.length;try{e.pageMode!=="design"&&t.unref(q)>0;for(let J=0;J<ae;J++){const Y=oe[J][1];await N(Y)}}catch(J){console.error(J)}finally{F.clear(),K(null)}}});t.provide(ze,{setRequest:V,touchRequest:P});const j=()=>{_.emit(tn)};t.provide(tn,{emitRefreshPage:j});const $=W=>{_.on(tn,()=>W()),t.onMounted(()=>{_.off(tn)})};return t.onBeforeUnmount(()=>{F==null||F.clear(),z==null||z.clear()}),o({touchRequest:P,getGlobalModel:u,onRefreshPage:$}),{providerConfig:a,configStyle:f}}}),lh="";function td(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 Li=ve(me(ed,[["render",td],["__scopeId","data-v-b651b2cf"]])),Oo={...Ee,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",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1},No=Ce(Oo),Oi=["refreshData","click","valueChange"],Fo="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=",Mo="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==",zo=t.defineComponent({name:"EcanText",components:{Skeleton:Mt},props:{...No},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([_,p])=>{p==="static"&&(r.value=_)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:h}=t.inject(De,{getGlobalModel:_=>{},setGlobalModel:(_,p)=>{},getRecordValueByKeyName:_=>{},getRequestData:_=>{}}),{setLoadedData:y}=t.inject(vt,{setLoadedData:(_,p)=>{}}),f=t.computed(()=>{let _="";if(e.gradientShow){const{gradientColor:p,gradientOffset:A,gradientAngle:L,color:M}=e;_+=`background: linear-gradient(${L}, ${M}, ${p||"transparent"} ${A*100}%);-webkit-background-clip: text;color: transparent;`}return _}),g=t.computed(()=>{const _={};if(e.gradientShow){const{gradientColor:p,gradientOffset:A,gradientAngle:L,color:M}=e,q=p||"transparent";_.background=`linear-gradient(${L}, ${M}, ${q} ${A*100}%)`,_["-webkit-background-clip"]="text",_.color="transparent"}return _}),m=t.computed(()=>{var F;if(t.unref(n))return"NaN";const _=t.unref(r),p=e.increaseColor||e.color,A=e.declineColor||e.color;let L=e.text;L=L==null?void 0:L.replace(/\n|\\n/g,"<br/>"),L=L==null?void 0:L.replace(/\s(?!\{) | (?!\})\s/g," ");const M=L.match(/\{(.+?)\}/g)||[];let q="";const U=e.showEllipsis?"show-ellipsis":"";if(M==null||M.length===0){if(L&&e.format==="percentage"&&!isNaN(+L)){const z=parseFloat(L),V=z*100,N=u(V.toFixed(2));z>=0?L=`<span class="${U}" style="color: ${N||p||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(f)}">
|
|
99
|
+
`;let i=e;if(n!=null&&n.length){for(const l of n){const d=Ie(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},_i=(e,o)=>{const{props:n,componentList:a,getGlobalModel:r}=e,{graphicConfig:i={},startValue:s,endValue:l}=n,d=Kc({graphicConfig:i,startValue:s,endValue:l,componentList:a,getGlobalModel:r}),{dimensions:c,dataset:h}=o,{classificationList:y=[]}=i,g=y.find(m=>m.show).label||"";for(const m of d)c.includes(m)||c.push(m);c.sort((m,f)=>ye(m).isBefore(ye(f))?-1:1);for(const m of h){const{data:f}=m;if(f!=null&&f.length){const v=[];for(const B of d)if(f.find(b=>b[g]!==B)){const b=_e.cloneDeep(f[0]);for(const p in b)p===g?b[p]=B:b[p]=0;v.push(b)}m.data.push(...v),m.data.sort((B,b)=>ye(B[g]).isBefore(ye(b[g]))?-1:1)}}};function Kc(e){const{startValue:o,endValue:n,componentList:a,graphicConfig:r,getGlobalModel:i}=e,s=Li(o),l=Li(n),d=[];if(s&&l){const c=a.find(y=>y.keyName===s.keyName),h=a.find(y=>y.keyName===l.keyName);if(c&&h){const y=i(c.id),u=i(h.id),{classificationList:g=[]}=r,m=g.find(f=>f.show);if(m){let f="YYYY-MM";switch(m.name){case"the_year":f="YYYY";break;case"the_month":f="MM";break;case"the_day":f="DD";break;case"the_date":f=(m==null?void 0:m.dateFormat)||f;break}const v=Zc(f);if(f){const B=t.unref(y[s.field]),b=t.unref(u[l.field]);let p=ye(B);const x=ye(b);for(d.push(x.format(f));p.isBefore(x);)d.push(p.format(f)),p=p.add(1,v)}}}}return d}function Li(e){let o=null;if(e){const n=e.match(/\{(.+?)\}/g);if(n!=null&&n.length){let a=n[0].slice(1,-1).trim();const r=a.match(/\[(.+?)\]/g);let i="";r!=null&&r.length&&(a=a.replace(r[0],""),i=r[0].slice(1,-1).trim()),o={keyName:a,field:i}}}return o}function Zc(e){const o=e.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}const ln=(e,o)=>{const n={dayjs:ye,...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},Ie=(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 h=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=h.match(y);for(let g=0;g<u.length;g++){const m=u[g],f=s[m];f!=null&&typeof f!="function"&&(h=h.replace(m,f))}(/\(.*\)/g.test(h)||/[+/\\*]/g.test(h))&&(h=ln(h,n)),e=e.replace(c,h)}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},Pe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(He,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:h}=t.inject(De,{getGlobalModel:m=>{}}),y=Ie(n),u=async(m={})=>{if(!y||!a||!r)return;let f={};i.forEach(x=>{const{key:w,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let D={};const{id:_,prop:O,propKey:R,operate:T}=k;_==="THIS"?D=h(t.unref(c))||{}:D=h(_)||{};const E=t.unref(D[O]);let C=null;if(["date","range"].some(S=>lt(D==null?void 0:D.type,S))){const{value:S,type:A,mode:I}=T||{};if(S&&A&&I)switch(A){case"add":C=t.unref(E).add(S,I);break;case"minus":C=t.unref(E).subtract(S,I);break}C==null&&(C=t.unref(E)),C=(C==null?void 0:C.format((R==null?void 0:R.trim())||D.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?R?C=E[R]:C=O?E[O]:E:lt(D==null?void 0:D.type,"select")&&t.unref(E)&&O&&Array.isArray(t.unref(E))?C=t.unref(E).map(S=>Object.prototype.hasOwnProperty.call(S,O)?S[O]:S):C=E;f[w]=C}else typeof k=="string"&&(f[w]=Ie(k))}),f={...window.config.requestParams,...m,...f};let v="";const B=Object.keys(f),b=B.length-1,p=B.length;B.forEach((x,w)=>{let k=f[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),w===0?p!==1?v+=`?${x}=${k}&`:v+=`?${x}=${k}`:w===b?v+=`${x}=${k}`:v+=`${x}=${k}&`});try{const x=["get","head"].includes(a),w={};let k=x?y+v:y;f.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${f.dataSqlId}`),Object.prototype.hasOwnProperty.call(f,"signal")&&(w.signal=f.signal);const D=await gt({baseURL:t.unref(d)||"",url:k,method:a,headers:r,data:x?{}:f,...w});return o(D),D}catch(x){console.error(x)}},g=l&&setInterval(u,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),u},Bt=(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 g=0;g<d;g++){const m=r[g],{label:f,value:v}=m,B={...e[0],value:e[0][v]};i.add(f),y.push(B)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],g=u[a];i.add(g);for(let m=0;m<d;m++){const f=r[m],{label:v,value:B}=f,b={...u,value:u[B]||0};if(s.has(v)){const p=s.get(v);p.push(b),s.set(v,p)}else s.set(v,[b])}}const c=Array.from(i),h=[];for(const[y,u]of s)h.push({name:y,data:u});return{dimensions:c,dataset:h}},ut=(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},Oi=(e,o)=>{const n=`${Tr}/preview?pageId=${o}`,a=`${Tr}/${o}`;return e==="preview"?n:a},ct=(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=ln(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Qe=(e={})=>{const{requestToken:o}=t.inject(Cr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(wt,{setLoadedData:(g,m)=>{}}),{getGlobalModel:a}=t.inject(De,{getGlobalModel:g=>{}});e.dataType==="indicator"&&o();const r=g=>{const{around:m,unit:f,id:v}=g;let B="";const{pageMode:b="",componentList:p=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,w=null;if(b==="design"){const k=p==null?void 0:p.find(C=>C.id===v);if(!k)return[];const{interval:D,intervalUnit:_,startTime:O,endTime:R,operate:T,useCurrentTime:E}=k||{};if(E&&(x=ye().subtract(D,_),w=ye()),O&&(x=ye(O)),R&&(w=ye(R)),T){const{type:C,value:L,mode:S}=T;switch(C){case"add":x=x&&x.add(L,S),w=w&&w.add(L,S);break;case"minus":x=x&&x.subtract(L,S),w=w&&w.subtract(L,S)}}}else{const k=a(v)||{};t.unref(k.startTime)&&(x=ye(t.unref(k.startTime))),t.unref(k.endTime)&&(w=ye(t.unref(k.endTime)))}if(x&&w){const k=w.diff(x,f.toLowerCase());B=`${m==="before"?"-":""}${k+1}`}return B?[B]:[]},i=(g,m)=>Object.prototype.hasOwnProperty.call(g,m),s=g=>{const{calcWays:m=[],dateCalcTypes:f=[],activeKey:v,componentId:B=""}=g;if(v===5&&(m!=null&&m.length)&&(f!=null&&f.length)&&B){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(g.calcWays=r({around:b[1],unit:f[0],id:B})),delete g.radioValue}i(g,"dataType")&&(g.fieldType==="DATE"&&(g.label=g.fieldName),g.dataType==="component"&&(g.fieldValue="${"+g.fieldValue+"}"),delete g.dataType),i(g,"activeKey")&&delete g.activeKey,i(g,"radioValue")&&delete g.radioValue,i(g,"indexCode")&&(g.hrpIndexCode=g.indexCode,delete g.indexCode),i(g,"indexCodeNum")&&(g.hrpIndexCodeNum=g.indexCodeNum,delete g.indexCodeNum),g.dataType!=="component"&&g.useCurrentTime&&(g.fieldValue=ye().format(g.dateFormat)),delete g.useCurrentTime},l=g=>{const m=[];return g!=null&&g.length&&_e.cloneDeep(g).forEach(f=>{if(f.join&&f.conditions){const v=!f.conditions.some(B=>B.join&&B.conditions);f.conditions.forEach((B,b)=>{s(B);const p={};b<f.conditions.length-1&&(p.join=f.join),v?m.push({...p,...B}):B.join&&B.conditions?m.push({conditions:l([B]),join:f.join}):m.push({...p,...B})})}else s(f),m.push(f)}),m},d=(g={},m)=>{if(g!=null&&g.sortCpnts&&m){const A=u(g);A&&(m.sort=A)}const{label:f,name:v,location:B,show:b,indexCode:p,indexCodeNum:x,calcType:w="COLUMN",builtInFormula:k,builtInValueSource:D,builtInCalcWay:_,formula:O,conditions:R,aggregate:T,distinct:E,dimByCount:C}=g;let L;if(R&&(L=l(R)),w==="COMPONENT"){const A={};return y(A,D),{label:f.trim(),columnName:v,show:b,calcType:w,componentAlias:_,componentValue:A.fieldValue||null}}const S={label:f.trim(),columnName:v,location:B,show:b,calcType:w,hrpIndexCode:p,hrpIndexCodeNum:x,aggregate:T,builtInFormula:k,builtInValueSource:D,formula:O,conditions:L};if(k==="DATE_OFFSET"){const A=_.split("-");if((A==null?void 0:A.length)===3){let I=A[0];return A[2]==="before"&&A[0]!=="0"&&(I=`-${A[0]}`),{...S,calcWays:[I],dateCalcTypes:[A[1]]}}}else return v==="the_count"&&(S.calcType="AGGREGATE",S.distinct=!!E,S.typeGuid=C),{...S,builtInCalcWay:_}},c=g=>{const m=[];for(const f of g)f.conditions?m.push(...c(f.conditions)):(f==null?void 0:f.dataType)==="component"&&m.push(f);return m},h=g=>{if(!g)return[];const{controlList:m=[],classificationList:f=[],rowHeaderList:v=[],dimensionList:B=[],seriesList:b=[],leftAxisList:p=[],rightAxisList:x=[],queryColumnList:w=[],indicators:k=[]}=g,D=[...f,...v,...B,...b,...p,...x,...w,...k],_=[];for(const E of D){const C=c((E==null?void 0:E.conditions)||[]);if(C!=null&&C.length){const L=C.filter(S=>(S==null?void 0:S.dataType)==="component").map(S=>{const A={};return S!=null&&S.dateFormat&&(A.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:S.componentId,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,indexCode:S.indexCode,typeGuid:S.typeGuid,indexCodeNum:S.indexCodeNum,...A}});if(L!=null&&L.length)for(const S of L)_.find(A=>A.keyName===S.keyName)||_.push(S)}}const O=m.concat(_),R=O.length,T=[];for(let E=0;E<R;E++){const C=O[E];if((C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:L,keyName:S,conditionLabel:A,conditionKey:I,conditionValueType:F,prop:q,rule:U="NONE",notGlobal:N=!1,format:z,modelKey:V,indexCode:M,typeGuid:P,indexCodeNum:j,dataType:$="component",customValue:W}=C;let K=S||L;K&&q&&(K+=`-${q}`);let oe=U;oe==="NONE"&&(["startTime","endTime"].includes(q)?oe=q==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":S!=null&&S.includes("startTime")?oe=q==="GREATER_EQUAL":S!=null&&S.includes("endTime")?oe=q==="LESS_EQUAL":oe="EQUAL");const ne={rule:oe,label:A,fieldName:I,fieldValue:"",valueType:F,alias:K,globalCondition:!N,indexCode:M,typeGuid:P,indexCodeNum:j};y(ne,L,{prop:q,dateFormat:z,modelKey:V,keyName:S}),$===""&&(ne.fieldValue=W||""),T.push(ne)}for(let E=T.length-1;E>=0;E--){const C=T[E];C.globalCondition||T.find(S=>S.alias===C.alias&&S.globalCondition)&&T.splice(E,1)}return T};function y(g,m,f){var T,E;const v=a(m)||{},{prop:B="",dateFormat:b="",modelKey:p="",keyName:x=""}=f||{},{value:w,format:k="YYYY-MM-DD",type:D="",useCurrentTime:_,RECORD:O}=v||{},R=b||k;if(lt(v.type,"date"))_?w?g.fieldValue=(T=t.unref(w))==null?void 0:T.format(R):g.fieldValue=ye().format(R):g.fieldValue=(E=t.unref(w))==null?void 0:E.format(R),g.dateFormat=R;else if(D==="ecanRangePicker"){let C=B;if(!B){const S=x&&x.split("-");S!=null&&S.length&&(C=S[S.length-1])}if(!C)return;let L=null;t.unref(v[C])&&(L=ye(t.unref(v[C]))),L&&(g.fieldValue=L==null?void 0:L.format(R)),g.dateFormat=R}else lt(D,Br)?p&&O?g.fieldValue=O[p]:!p&&O?g.fieldValue=O.value:g.fieldValue=t.unref(w):g.fieldValue=t.unref(w)}const u=g=>{const{sortCpnts:m=[]}=g;let f,v="";for(const B of m){const b=a(B)||{},{type:p,RECORD:x}=b;if(lt(p,"image")&<(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(f={label:g.label,columnName:g.name,order:v,type:"NORMAL"}),f};return async(g={})=>{var $,W,K,oe,ne,ie;n(e.id,!1);const{graphicConfig:m,type:f,isGroupTable:v=!1}=e;let{source:B,dataViewId:b,plugin:p="1",layer:x,chartType:w,classificationList:k=[],rowHeaderList:D=[],dimensionList:_=[],seriesList:O=[],leftAxisList:R=[],rightAxisList:T=[],queryColumnList:E=[],indicators:C=[],controlList:L=[],formFields:S={},idxLibMode:A,preview:I=!1}=m||{},F=[];(m==null?void 0:m.pageMode)==="design"?F=(m.sqlConditions??[]).map(J=>{const Y=J.rule||"EQUAL",ee={};return i(J,"globalCondition")||(ee.globalCondition=!0),{...J,rule:Y==="NONE"?"EQUAL":Y,...ee}}):F=h(m);for(const J of F)i(J,"indexCode")&&(J.hrpIndexCode=J.indexCode,delete J.indexCode),i(J,"indexCodeNum")&&(J.hrpIndexCodeNum=J.indexCodeNum,delete J.indexCodeNum);x==null&&(lt(f,["table"])||lt(f,"list")&&(k==null?void 0:k.length)>1?x="1":lt(f,["select","checkbox","radio"])?x="3":x="2");let q,U="";if(Array.isArray(k)&&k.length>0&&(f!=="ecanList"||(k==null?void 0:k.length)===1)){const J=k.length;for(let Y=0;Y<J;Y++){const ee=k[Y]||{},{label:le="",name:xe="",show:Se=!1,sort:Te,customGroup:Oe,conditions:we,dateFormat:Be,typeGuid:qe="",truncations:Ye=[]}=ee;if(Se||J===1){U=qe,q={label:le.trim(),columnName:xe,show:Se,sort:u(ee)||Te,customGroup:Oe,conditions:l(we),typeGuid:qe},Be&&(q.dateFormat=Be),xe==="the_date"&&!q.dateFormat&&(q.dateFormat="YYYY-MM");const We={};if(Array.isArray(Ye)&&Ye.length>0){const je=Ye.length;for(let Ue=0;Ue<je;Ue++){const mt=Ye[Ue]||{},{rule:ot="",num:Je=0,name:$e=""}=mt;ot&&Je&&(We.num=Je,We.rule=ot,$e&&(We.otherGroupName=$e))}}($=Object.keys(We))!=null&&$.length&&(q.truncation=We);break}}}let N;if(Array.isArray(O)&&O.length>0){const J=O.length;for(let Y=0;Y<J;Y++){const ee=O[Y]||{},{label:le="",name:xe="",show:Se=!1,sort:Te,customGroup:Oe,conditions:we}=ee;if(Se||J===1){N={label:le.trim(),columnName:xe,show:Se,sort:Te,customGroup:Oe,conditions:l(we)};break}}}const z=[];R==null||R.forEach(J=>{J.location="LEFT",z.push(d(J,q))}),T==null||T.forEach(J=>{J.location="RIGHT",z.push(d(J,q))}),C==null||C.forEach(J=>{J.location="LEFT",z.push(d(J,q))});const V=[];f==="ecanList"&&(k==null?void 0:k.length)>1&&(E=k),E==null||E.forEach(J=>{const{label:Y,name:ee,location:le,show:xe,indexCode:Se,sort:Te,typeGuid:Oe,indexCodeNum:we}=J;let Be=Te;if(g.sort){const{field:qe,order:Ye}=g.sort;let We=z.find(je=>je.label===qe);!We&&Y===qe&&(We=J),We&&(Be={columnName:We.columnName,label:g.sort.field,order:Ye.toUpperCase(),type:"NORMAL"})}V.push({label:Y,columnName:ee,location:le,show:xe,sort:Be,calcType:"COLUMN",hrpIndexCode:Se,hrpIndexCodeNum:we,typeGuid:Oe})});const M=[];let P=[];if(Array.isArray(D)&&D.length>0?P=D:Array.isArray(_)&&_.length>0&&(P=_),P!=null&&P.length){const J=P.length;for(let Y=0;Y<J;Y++){const ee=P[Y]||{},{label:le="",name:xe="",show:Se=!1,sort:Te,customGroup:Oe,conditions:we,truncations:Be,typeGuid:qe="",dateFormat:Ye}=ee;let We=Te;if(g.sort){const{field:mt,order:ot}=g.sort;let Je=z.find($e=>$e.label===mt);!Je&&ee.label===mt&&(Je=ee),Je&&(We={columnName:Je.columnName,label:g.sort.field,order:ot.toUpperCase(),type:"NORMAL"})}const je={label:le.trim(),columnName:xe,show:Se,sort:We,customGroup:Oe,conditions:l(we),typeGuid:qe};Ye&&(je.dateFormat=Ye),xe==="the_date"&&!je.dateFormat&&(je.dateFormat="YYYY-MM");const Ue={};if(Array.isArray(Be)&&Be.length>0){const mt=Be.length;for(let ot=0;ot<mt;ot++){const Je=Be[ot]||{},{rule:$e="",num:bt=0,name:cn=""}=Je;$e&&bt&&(Ue.num=bt,Ue.rule=$e,cn&&(Ue.otherGroupName=cn))}}(W=Object.keys(Ue))!=null&&W.length&&(je.truncation=Ue),M.push(je)}}if(lt(f,["text","proportion","counter"])&&(w="zb"),v){if(M.length===0||z.length===0)return;w="grouptable"}else{if(x==="1"&&V.length===0)return;if(x==="2"&&z.length===0)return;if(x==="3"&&(!U||!S.labelField||!S.valueField))return;if(x==="3"&&f==="ecanDataSelect"&&z.length===0)return}_!=null&&_.length&&(x="1",w="grouptable");let j=(K=window==null?void 0:window.config)==null?void 0:K.pageId;if(!j){const{pathname:J}=window==null?void 0:window.location;if(J){const Y=J.split("/");Y!=null&&Y.length&&(j=Y[Y.length-1])}}if((oe=Object.keys(S))!=null&&oe.length){const J=L.find(ee=>ee.conditionKey==="parentCode"),Y={};if(J){const ee=a(J.id)||{};if(ee!=null&&ee.itemCodes)Y.parentItemCodes=ee.itemCodes;else return}f==="ecanDataSelect"&&(Y.indicatorList=z.filter(ee=>ee.show));try{return await gt.post(`${kr}/diagram/formData`,{source:B,dataViewId:b,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:f==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:S.labelField,valueField:S.valueField,pageId:j,sqlConditions:F,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...Y},{headers:{Authentication:(ne=window==null?void 0:window.config)==null?void 0:ne.indicatorToken,operateContext:Ar}})}catch(ee){console.error(ee)}finally{}}else try{return await gt.post(`${kr}/diagram`,{source:B,dataViewId:b,plugin:p,layer:x,chartType:w,classification:q,series:N,indicatorList:z,queryColumns:v?[]:V,pageFlag:!0,pageId:j,sqlConditions:F.map(Y=>{const{fieldValue:ee}=Y,le={};return ee&&Array.isArray(ee)&&(le.fieldValue=JSON.stringify(ee)),{...Y,...le}}),idxLibMode:A,preview:I,rowHeaders:M,keyName:e.keyName},{headers:{Authentication:(ie=window==null?void 0:window.config)==null?void 0:ie.indicatorToken,operateContext:Ar}})}catch(J){console.error(J)}finally{}}},Qc=()=>{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}},Jc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Hn},setup(e){const{width:o,height:n}=t.inject(He,{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:ut(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),h=t.ref(!1),y=t.ref();let u;const g=()=>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 g(),m(),v(),window.addEventListener("resize",B),b(),h.value=!0},{immediate:!0});const f=t.ref({});t.provide("scaleValue",f);const v=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,w=document.body.clientHeight,k=s.value||d.value,D=l.value||c.value,_=x/k;let O=w/D;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*x/D),f.value={widthScale:_,heightScale:O},y.value&&(y.value.style.transform=`scale(${_}, ${O})`),a(O)},B=_e.debounce(async()=>{await g(),v()},100),b=()=>{const x=window.MutationObserver;u=new x(B),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},p=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{h.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",B),p()}),{style:i,container:y,ready:h}}}),lh="",Xc={id:"container",ref:"container"};function ed(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Xc,[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 Ni=ve(me(Jc,[["render",ed],["__scopeId","data-v-b496b36e"]])),Oo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},No=Ce(Oo),td=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...No},setup(e,{expose:o}){Qc();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(()=>Ie(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),h=t.computed(()=>e.height),y=t.ref("");t.provide(He,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:h});const u=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",W=>{let K=W;n.value||(K=parseFloat(h.value)*W+"px"),u.value.height=K}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const g=t.ref(),m=new Map;console.log("globalModel",m);const f=W=>m.get(W),v=(W,K)=>{g.value=K,m.set(W,K)},B=()=>{g.value=null},b=W=>{let K=W;if(K){const oe=W.match(/\{(.+?)\}/g);if(oe!=null&&oe.length){let ne=oe[0].slice(1,-1).trim();const ie=ne.match(/\[(.+?)\]/g);let J="";ie!=null&&ie.length&&(ne=ne.replace(ie[0],""),J=ie[0].slice(1,-1).trim());const Y=t.unref(i).find(ee=>ee.keyName===ne);if(Y){const ee=f(Y.id),{type:le,value:xe,RECORD:Se,recordData:Te}=ee||{};lt(le,Br)?K=Se[J]:lt(le,"select")?K=Te[J]:K=xe}else K=""}}return K},p=new Map,x=W=>p.get(W),w=(W,K)=>{p.set(W,K)};t.provide(De,{getGlobalModel:f,setGlobalModel:v,clearInteractiveData:B,getRecordValueByKeyName:b,getRequestData:x,setRequestData:w,interactiveData:g});const k=t.ref({}),D=(W,K)=>{k.value[W]=K};t.provide(wt,{loadedData:k,setLoadedData:D});const _=[],O=()=>{_.pop()},R=W=>{_.push(W)},T=new Map,E=W=>T.get(W),C=(W,K)=>{T.set(W,K)};t.provide(wr,{popUseModalIds:O,pushUseModalIds:R,getModalModel:E,setModalModel:C});const L=rs(),S=new Set,A=(W,K)=>{S.add(W),L.on(W,oe=>typeof K[oe]=="function"&&K[oe]()),t.onBeforeUnmount(()=>{I(W)})},I=W=>{S.delete(W),L.off(W)},F=(W,K)=>{if(W==="PAGE"){const oe=_.length;let ne=[];if(oe===0)ne=[...S];else{const ie=_[oe-1];ne=[...E(ie)]}ne.forEach(ie=>{L.emit(ie,K)})}else L.emit(W,K)};t.provide(Wn,{onEvent:A,offEvent:I,emitEvent:F});const q=t.ref(0),U=()=>{q.value=t.unref(q)+1};t.provide(Cr,{requestToken:U});const N=new Map,z=new Map,V=({requestFn:W=()=>{},sortNum:K=0,id:oe=""})=>{if(N.has(K)){const ne=N.get(K);ne==null||ne.push(W)}else N.set(K,[W]);z.set(oe,W)},M=W=>new Promise((K,oe)=>{const ne=W.map(ie=>ie());Promise.all(ne).then(ie=>{K(ie)}).catch(ie=>{oe(ie)})}),P=W=>new Promise(async(K,oe)=>{if(W){if(typeof W=="string"){const ne=z.get(W);if(typeof ne=="function"){const ie=gt.interceptors.response.use(J=>(K(J),J),J=>(oe(J),Promise.reject(J)));ne(),gt.interceptors.response.eject(ie)}}}else{const ne=Array.from(N);ne.sort((J,Y)=>Y[0]-J[0]);const ie=ne.length;try{e.pageMode!=="design"&&t.unref(q)>0;for(let J=0;J<ie;J++){const Y=ne[J][1];await M(Y)}}catch(J){console.error(J)}finally{N.clear(),K(null)}}});t.provide(ze,{setRequest:V,touchRequest:P});const j=()=>{L.emit(nn)};t.provide(nn,{emitRefreshPage:j});const $=W=>{L.on(nn,()=>W()),t.onMounted(()=>{L.off(nn)})};return t.onBeforeUnmount(()=>{N==null||N.clear(),z==null||z.clear()}),o({touchRequest:P,getGlobalModel:f,onRefreshPage:$}),{providerConfig:a,configStyle:u}}}),ch="";function nd(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 Fi=ve(me(td,[["render",nd],["__scopeId","data-v-b651b2cf"]])),Fo={...Ee,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",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1},Mo=Ce(Fo),Mi=["refreshData","click","valueChange"],zo="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=",Po="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==",qo=t.defineComponent({name:"EcanText",components:{Skeleton:Pt},props:{...Mo},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([L,S])=>{S==="static"&&(r.value=L)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c,getRequestData:h}=t.inject(De,{getGlobalModel:L=>{},setGlobalModel:(L,S)=>{},getRecordValueByKeyName:L=>{},getRequestData:L=>{}}),{setLoadedData:y}=t.inject(wt,{setLoadedData:(L,S)=>{}}),u=t.computed(()=>{let L="";if(e.gradientShow){const{gradientColor:S,gradientOffset:A,gradientAngle:I,color:F}=e;L+=`background: linear-gradient(${I}, ${F}, ${S||"transparent"} ${A*100}%);-webkit-background-clip: text;color: transparent;`}return L}),g=t.computed(()=>{const L={};if(e.gradientShow){const{gradientColor:S,gradientOffset:A,gradientAngle:I,color:F}=e,q=S||"transparent";L.background=`linear-gradient(${I}, ${F}, ${q} ${A*100}%)`,L["-webkit-background-clip"]="text",L.color="transparent"}return L}),m=t.computed(()=>{var N;if(t.unref(n))return"NaN";const L=t.unref(r),S=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="";const U=e.showEllipsis?"show-ellipsis":"";if(F==null||F.length===0){if(I&&e.format==="percentage"&&!isNaN(+I)){const z=parseFloat(I),V=z*100,M=f(V.toFixed(2));z>=0?I=`<span class="${U}" style="color: ${M||S||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(u)}">
|
|
100
100
|
<div class="percentage-img-box">
|
|
101
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${
|
|
101
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${M||S||"#ED6643"} ${t.unref(i)} 0px)`};" src="${zo}"/>
|
|
102
102
|
</div>
|
|
103
|
-
<span style="color: ${
|
|
104
|
-
</span>`:
|
|
103
|
+
<span style="color: ${M||e.color};${t.unref(u)}">${Math.abs(+V).toFixed(2)}%</span>
|
|
104
|
+
</span>`:I=`<span class="${U}" style="color: ${M||A||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(u)}">
|
|
105
105
|
<div class="percentage-img-box">
|
|
106
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${
|
|
106
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${M||A||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${Po}"/>
|
|
107
107
|
</div>
|
|
108
|
-
<span style="color: ${
|
|
109
|
-
</span>`}q=
|
|
108
|
+
<span style="color: ${M||e.color};${t.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+V).toFixed(2)}%</span>
|
|
109
|
+
</span>`}q=I}for(let z=0;z<F.length;z++){const V=F[z],M=(N=V==null?void 0:V.slice(1,V.length-1))==null?void 0:N.trim();let P=M;const j=M.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let W=0;W<j.length;W++){const K=j[W],oe=L[K];oe&&(P=M.replace(K,c(String(oe))||oe))}if(/\(.*\)/g.test(P)){const W=ln(P);W!=null&&(P=W)}let $=P;if($===M&&($=e.variableDefaultValue),$!=null){const W=e.format;if(W==="percentage")if($=+$,isNaN($))I=I.replace(V,`<span class="${U}" style="color:${f("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(u)}">0%</span>`);else if($>=0){$=$*100;const K=f($.toFixed(2));I=I.replace(V,`<span class="${U}" style="color: ${K||S||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(u)}">
|
|
110
110
|
<div class="percentage-img-box">
|
|
111
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${K||
|
|
111
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${K||S||"#ED6643"} ${t.unref(i)} 0px)`};" src="${zo}"/>
|
|
112
112
|
</div>
|
|
113
|
-
<span style="color: ${K||e.color};${t.unref(
|
|
114
|
-
</span>`)}else{$=$*100;const K=
|
|
113
|
+
<span style="color: ${K||e.color};${t.unref(u)}">${Math.abs(+$).toFixed(2)}%</span>
|
|
114
|
+
</span>`)}else{$=$*100;const K=f($.toFixed(2));I=I.replace(V,`<span class="${U}" style="color: ${K||A||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(u)}">
|
|
115
115
|
<div class="percentage-img-box">
|
|
116
|
-
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${K||A||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${
|
|
116
|
+
<img style="width: ${t.unref(i)};filter: ${`drop-shadow(${K||A||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${Po}"/>
|
|
117
117
|
</div>
|
|
118
|
-
<span style="color: ${K||e.color};${t.unref(
|
|
119
|
-
</span>`)}else e.format==="percent"?($=+$,isNaN($)||($=($*100).toFixed(2),L=L.replace(V,`<span class="${U}" style="color:${u($)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${$}%</span>`))):e.format==="money"?($=+$,isNaN($)||($=Io($),L=L.replace(V,`<span class="${U}" style="color:${u($)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${$}</span>`))):W==="thousands"?($=+$,isNaN($)||($=Uc($),L=L.replace(V,`<span class="${U}" style="color:${u($)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${$}</span>`))):L=L.replace(V,`<span class="${U}" style="color:${u($)||e.variableColor};font-size:${t.unref(i)};${t.unref(f)}">${$}</span>`)}}if(q||(q=`<span class="${U}" style="color: ${u(L)};${t.unref(f)}">${L}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:V}=e;let N="position:relative;";z&&(N+=`top:${z};`),V&&(N+=`margin-left:${V};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${N};${t.unref(f)}'>${e.unitText}</span>`}return e.showEllipsis&&(q=`<span class="show-ellipsis" style="display: inline-block;">${q}</span>`),q});function u(_){let p="",A=!1;const{targetValue:L,targetShow:M,notExpectColor:q}=e;if(M){switch(e.targetRule){case"equal":_!==L&&(A=!0);break;case"greater":_<=L&&(A=!0);break;case"greater_equal":_<L&&(A=!0);break;case"less":_>=L&&(A=!0);break;case"less_equal":_>L&&(A=!0);break}A&&(p=q)}return p}const{pageMode:S}=t.inject(qe,{pageMode:"normal"}),E=Pe(e),v=t.ref(!1),b=async()=>{var _;try{v.value=!0;const p=await E();r.value=((_=p==null?void 0:p.data)==null?void 0:_.data)||{}}catch(p){console.error(p)}finally{v.value=!1}},x=(_={})=>{r.value=_},w=_=>{const p=e.id,A=l(p);d(p,{...A,value:_||"",RECORD:_||""})},k=()=>{w("")},D=Ke(e),I=async()=>{var _,p;try{v.value=!0;const A=await D(),{data:L}=(A==null?void 0:A.data)||{};if(L){n.value=!1;const{columns:M=[],rows:q=[]}=((_=A==null?void 0:A.data)==null?void 0:_.data)??{},{graphicConfig:U}=e;let F={};if(M.length>0)if((p=U==null?void 0:U.dimensionList)!=null&&p.length){const z=M[0];z&&(q!=null&&q.length)&&(F={value:q[0][z]})}else{const z=M.find(V=>!!V);z&&(F={value:isNaN(q[z])?0:q[z]||0})}w(F==null?void 0:F.value),x(F)}else n.value=!0,w("NaN"),x({value:"NaN"})}catch(A){console.error(A)}finally{v.value=!1,y(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":I();break;case"request":{const{openCustomRequestData:_,customRequestName:p,customRequestField:A}=e;if(_||_===void 0)b();else{const L=h(p);L&&(r.value={[A]:L[A]})}break}}},{setRequest:R}=t.inject(ze,{setRequest:({id:_,sortNum:p,requestFn:A})=>{}});typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),Le(e,{refreshData:O,resetRecord:k}),o({refreshData:O});const T=Re(e),B=T("click",()=>{const _=document.getElementsByClassName(`ecan-text_${e.id}`);if(_!=null&&_.length&&w(_[0].innerText),setTimeout(()=>{w("")},0),!e.linkPage&&!e.href)return;const p=e.linkPage||"",A=Ii(t.unref(S),p),L=e.href;let M=L||A;M=Ie(M);const q=e.target;q&&(q!=="event"?window.open(M,"_"+q):window.parent.postMessage({type:"openPage",url:L},"*"))}),C=T("valueChange",()=>{});return t.watch(()=>m.value,(_,p)=>{_!==p&&C()}),{style:a,myText:m,loading:v,click:B,textIndent:s,vFontSize:i,gradientStyle:g}}}),Ni=()=>{t.useCssVars(e=>({"902d650e":e.vFontSize,"253f26b4":e.textIndent,"14fdee04":e.percentageSide}))},Fi=zo.setup;zo.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const ch="",dh="",nd=["innerHTML"];function od(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,nd))}const Mi=ve(me(zo,[["render",od],["__scopeId","data-v-16622f13"]])),ad=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),uh="",rd={class:"red"};function id(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",rd,t.toDisplayString(e.text),1)}const zi=ve(me(ad,[["render",id],["__scopeId","data-v-4dd9c03e"]])),Po={...Ee,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"}},qo=Ce(Po),Pi=["timeChange"],ld=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=Te(e),n=()=>{const{format:c,operate:h}=e;let y=ye();if(h){const{type:f,value:g,mode:m}=h;switch(f){case"add":y=y.add(g,m);break;case"minus":y=y.subtract(g,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=Re(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:h,mode:y}=e.updateInterval||{};h&&(c=c*h);const f={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*f[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Le(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),gh="";function sd(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 qi=ve(me(ld,[["render",sd],["__scopeId","data-v-b628fca2"]])),Vo={...Ee,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",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:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},Ho=Ce(Vo),Vi=["refreshData","click","resetRecord"],cd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",hd=t.defineComponent({name:"EcanList",components:{Skeleton:Mt,ATooltip:de.Tooltip,MarqueeScroll:zn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=Te(e,["backgroundColor"]),r=(p,A)=>{const{format:L,customFormatter:M}=A;if(L==null||L==="")return p;const q={money:Io,percentage:Sn,contrast:Sn,custom:Ei};return q[L]?L==="custom"?q[L](p,M)||"":q[L](p)||"":""},i=(p,A)=>{const L=parseFloat(p+"");if(A!=="contrast")return"";switch(!0){case L>=0:return"goUp";case L<0:return"goDown"}},s=Pe(e),l=t.ref(!1),d=async()=>{var p;if(e.dataType==="request")try{l.value=!0;const A=await s();n.value=((p=A==null?void 0:A.data)==null?void 0:p.data.rows)||[]}catch(A){console.error(A)}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})),h=t.computed(()=>{const{columns:p,isUseSeq:A}=e;return A?[t.unref(c),...p]:p}),y=Ke(e),f=async()=>{var p;try{l.value=!0;const A=await y(),{columns:L=[],rows:M=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};e.isUseSeq&&L.unshift(e.seqName),h.value.forEach((q,U)=>{(!e.isUseSeq||U!==0)&&(q.title=L[U],q.key=L[U])}),n.value=M}catch(A){console.error(A)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":f();break;case"request":d();break}},m=Re(e),{getGlobalModel:u,setGlobalModel:S}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{}}),E=p=>{m("click",()=>{const A=u(e.id);S(e.id,{...A,type:e.type,RECORD:p})})()};Le(e,{refreshData:g,resetRecord:()=>{const p=e.id,A=u(p);S(p,{...A,type:e.type,RECORD:""})}});const{setRequest:b}=t.inject(ze,{setRequest:({id:p,sortNum:A,requestFn:L})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const x=(p,A)=>({flex:p.width?"none":"1",width:p.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(A?p.cellAlign:p.align)||"left",backgroundColor:p.cellColor}),w=(p,A)=>{let L=0;const M=t.unref(n).map(U=>U[A]),q=Math.max(...M);return q&&(L=p[A]/q*100),L},k=p=>{const{progressColor:A="#1890ff",progressGradientColor:L=""}=p;return L?{background:`linear-gradient(to right, ${A} 0%, ${L} 100%)`}:{backgroundColor:A||"#1890ff"}},D=t.computed(()=>{const p=parseFloat(e.seqFontSize)+5;return{width:p+10,height:p}}),{pageMode:I}=t.inject(qe,{pageMode:"normal"}),O=t.computed(()=>t.unref(I)!=="design"&&e.isAutoScroll),R=p=>{const{seqIconConfig:A}=e;let L=A.find(M=>M.key===p+1);return L||(L=A.find(M=>M.key==="other")),!!(L!=null&&L.icon)},T=(p,A)=>{const{seqIconConfig:L}=e;let M=L.find(q=>q.key===p+1);return M||(M=L.find(q=>q.key==="other")),A===1?M!=null&&M.icon?ut(M.icon):"":A===2?(M==null?void 0:M.color)||"#fff":""},B=p=>{const{seqIndexFormatter:A}=e,L=p+1;return A?Ie(A,{textData:{index:L}},{useNewline:!1,useSpace:!0}):L},C=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),_=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:h,click:E,getColumnStyle:x,getPercentage:w,getBackgroundColor:k,isShowSeqIcon:R,getSeqIconData:T,seqIcon4:cd,seqIcon5:dd,seqIcon6:fd,seqIcon7:ud,iconSize:D,isScroll:O,formatSeq:B,wrapStyle:C,colSpan:_}}}),yh="",xh="",gd=e=>(t.pushScopeId("data-v-08ae0187"),e=e(),t.popScopeId(),e),md={key:0,class:"title"},yd={key:0,class:"ranking"},xd=["onClick"],pd={key:0,class:"ranking"},bd=gd(()=>t.createElementVNode("div",{class:"icon"},null,-1)),vd={class:"sort"},Sd=["src"],Cd={key:1},wd=["src","width","height"],Ad=["src","width","height"],kd=["src","width","height"],Td=["src","width","height"],Bd={key:1},Ed={key:2,class:"empty"};function Dd(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",md,[(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",yd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:h.key||y,style:t.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},t.toDisplayString(h.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.itemRowSpan})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||h,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",pd,[bd,t.createElementVNode("div",vd," Top "+t.toDisplayString(h+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var f;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,"cell")})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(f=e.seqIconConfig)!=null&&f.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(h)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,Sd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(h)),5)],4)):(t.openBlock(),t.createElementBlock("div",Cd,[h===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,wd)):h===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Ad)):h===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):h>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(h)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Bd,t.toDisplayString(e.formatSeq(h)),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,xd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Ed," 暂无数据 "))]),_:1},8,["loading"])],4)}const Hi=ve(me(hd,[["render",Dd],["__scopeId","data-v-08ae0187"]])),Wo={...Ee,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:{}},jo=Ce(Wo),Wi=["refreshData","click"],Rd=t.defineComponent({name:"EcanProportion",components:{AProgress:de.Progress,Skeleton:Mt},props:{...jo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(qe,{pageMode:"normal"}),r=Te(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),w=+e.variableDefaultValue;if(x==null)return isNaN(w)?0:w;const k=e.text.match(/\{.+\}/g)||[];let D;const I=new Set(Object.keys(x));for(let O=0;O<k.length;O++){const R=k[O],T=R.slice(1,R.length-1);if(I.has(T)){D=x[T];break}}return typeof D=="number"?D=D*100:typeof D=="string"&&!isNaN(+D)?D=+D*100:isNaN(w)?D=0:D=w*100,e.decimalFormat&&(D=+D.toFixed(2)),D}),d=t.computed(()=>{var I;let x=e.text;if(x==="")return t.unref(l);const w=e.variableDefaultValue,k=t.unref(s),D=x.match(/\{.+\}/g)||[];for(let O=0;O<D.length;O++){const R=D[O];let T=R.slice(1,R.length-1);const B=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=R.match(B);for(let p=0;p<(C==null?void 0:C.length);p++){const A=(I=C[p])==null?void 0:I.trim();k[A]!=null&&(T=T.replace(A,k[A]))}let _=T;try{/\(.*\)/g.test(T)&&(_=Cn(T))}catch(p){console.error(p)}typeof+_=="number"&&!isNaN(+_)?(_=+_*100,e.decimalFormat&&(_=_.toFixed(2))):_=w,x=x.replace(R,_+"")}return t.unref(n)?"NaN":x}),c=Pe(e),h=t.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{h.value=!0;const w=await c();s.value=((x=w==null?void 0:w.data)==null?void 0:x.data)||{}}catch(w){console.error(w)}finally{h.value=!1}},f=(x={})=>{s.value=x},g=Ke(e),m=async()=>{var x;try{h.value=!0;const w=await g(),{data:k}=(w==null?void 0:w.data)||{};if(k){n.value=!1;const{columns:D=[],rows:I=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let O={};if(D.length>0){const R=D.find(T=>!!T);R&&(O={percent:I[R]})}f(O)}else n.value=!0,f({percent:"NaN"})}catch(w){console.error(w)}finally{h.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Le(e,{refreshData:u}),o({refreshData:u});const E=Re(e)("click",()=>{}),{setRequest:v}=t.inject(ze,{setRequest:({id:x,sortNum:w,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:u,sortNum:e.requestSort});const b=t.computed(()=>{const{gradientShow:x,gradientColor:w,gradientOffset:k,strokeColor:D}=e;let I=D;return x&&w&&(I={"0%":D,[`${k*100}%`]:w}),I});return{style:r,myWidth:i,text:d,myValue:l,loading:h,click:E,customStrokeColor:b}}}),bh="";function Id(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 ji=ve(me(Rd,[["render",Id],["__scopeId","data-v-cf942b5f"]])),Go={...Ee,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Uo=Ce(Go),Gi=["refreshData","click","resetRecord"],_d=t.defineComponent({name:"EcanCounter",components:{Skeleton:Mt},props:{...Uo},setup(e,{expose:o}){const n=t.ref(),a=Te(e),r=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),i=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([b,x])=>{x==="static"&&(n.value=b)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),c=Re(e)("click",()=>{const b=s(e.id);l(e.id,{...b,type:e.type,value:t.unref(n)})}),h=()=>{const b=e.id,x=s(b);l(b,{...x,type:e.type,value:""})},y=Pe(e),f=t.ref(!1),g=async()=>{var b,x;try{f.value=!0;const w=await y();n.value=((x=(b=w==null?void 0:w.data)==null?void 0:b.data)==null?void 0:x.value)||""}catch(w){console.error(w)}finally{f.value=!1}},m=Ke(e),u=async()=>{var b;try{f.value=!0;const x=await m(),{data:w}=(x==null?void 0:x.data)||{};let k="";if(w){const{columns:D=[],rows:I=[]}=((b=x==null?void 0:x.data)==null?void 0:b.data)??{};if(D.length>0){const O=D.find(R=>!!R);O&&(k=I[O]||"")}}n.value=String(k)}catch(x){console.error(x)}finally{f.value=!1}},S=()=>{switch(e.dataType){case"indicator":u();break;case"request":g();break}},E=t.computed(()=>{const b=[],{digits:x}=e;console.log("myValue",n.value);const w=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let k=0;k<x;k++)w&&w[k]?b.push(w[k]):b.push("0");return b.reverse()});Le(e,{refreshData:S,resetRecord:h});const{setRequest:v}=t.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:w})=>{}});return typeof v=="function"&&v({id:e.id,requestFn:S,sortNum:e.requestSort}),o({refreshData:S}),{style:a,valueList:E,digitsStyle:r,fontStyle:i,loading:f,useImagePath:ut,click:c}}}),Sh="",Ld=["src"];function Od(e,o,n,a,r,i){var l;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:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Ld)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Ui=ve(me(_d,[["render",Od],["__scopeId","data-v-4d462642"]])),$o={...Ee,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Yo=Ce($o),$i=["inputChange","inputBlur"],Nd=t.defineComponent({name:"EcanInput",components:{AInput:de.Input},props:{...Yo},setup(e){const o=Te(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(De,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{},getRecordValueByKeyName:h=>{}});t.watch(()=>e.value,h=>{n.value=i(h)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const h=a(e.id);r(e.id,{...h,RECORD:n})},l=Re(e),d=_e.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),wh="";function Fd(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 Yi=ve(me(Nd,[["render",Fd]])),Ko={...Ee,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"},Zo=Ce(Ko),Ki=["dateChange"],Qo=t.defineComponent({name:"EcanDatePicker",props:{...Zo},components:{ADatePicker:de.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,g,m])=>{let u=null;if(f?u=ye(Ie(f)):g&&(u=ye()),m&&u){const{type:S,value:E,mode:v}=m;switch(S){case"add":u=u.add(E,v);break;case"minus":u=u.subtract(E,v)}}r.value=u},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(De,{setGlobalModel:(f,g)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Le(e,{dateChange:l});const c=t.ref({}),h=t.ref({}),y=f=>{f?setTimeout(()=>{h.value=t.unref(c)},300):h.value={}};return t.onMounted(()=>{setTimeout(()=>{const f=document.querySelector(`#ecan-date-picker-${e.id}`);if(f){const g=f.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-g.left<m&&(c.value.marginLeft=-1*(m-g.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:$a,change:d,scaleValue:o,popupStyle:c,customStyle:h,openChange:y}}}),Zi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Qi=Qo.setup;Qo.setup=Qi?(e,o)=>(Zi(),Qi(e,o)):Zi;const kh="",Th="",Md=["id"];function zd(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,Md)}const Ji=ve(me(Qo,[["render",zd],["__scopeId","data-v-d4ec0d66"]])),Jo={...Ee,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},Xo=Ce(Jo),Xi=["dateChange"];var el={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(ue,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,h){return c=Number(c),this.$utils().p(h)===a?this.add(3*c,n):l.bind(this)(c,h)};var d=s.startOf;s.startOf=function(c,h){var y=this.$utils(),f=!!y.u(h)||h;if(y.p(c)===a){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return d.bind(this)(c,h)}}})})(el);var Pd=el.exports;const qd=kr(Pd);ye.extend(qd);const ea=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:de.RangePicker},props:{...Xo},setup(e){const o=Te(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],([b,x,w,k,D,I])=>{let O=null,R=null;if(w&&(O=ye().subtract(k,D),R=ye()),b&&(O=ye(Ie(b))),x&&(R=ye(Ie(x))),I){const{type:T,value:B,mode:C}=I;switch(T){case"add":O=O&&O.add(B,C),R=R&&R.add(B,C);break;case"minus":O=O&&O.subtract(B,C),R=R&&R.subtract(B,C)}}a.value=[O,R]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(b,x,w)=>{Array.isArray(b)?(r=b[0],i=b[1],s=w.range):(r=null,i=null)};window.dayjs=ye;const d=b=>{let x=!1,{limitStartTime:w,limitEndTime:k}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(w=Ie(w,{codeData:D}),k=Ie(k,{codeData:D}),w&&k?x=!(ye(w)<b&&b<ye(k)):w?x=ye(w)>b:k&&(x=ye(k)<b),!e.isAllowSpanYear&&s){let I=null;if(s==="start"?I=r:s==="end"&&(I=i),I){const O=I.startOf("year"),R=I.endOf("year");x=!(O<=b&&b<R)}}if(!x){const{value:I=0,mode:O="year"}=e.limitInterval||{};I&&(s==="start"?x=r.add(I,O)<b:s==="end"&&(x=i.subtract(I,O)>b))}return x},{getGlobalModel:c,setGlobalModel:h}=t.inject(De,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),f=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);h(e.id,{type:e.type,format:e.format,startTime:y,endTime:f,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const g=Re(e);let m=!1;const u=g("dateChange",()=>{}),S=b=>{const x=t.unref(a),w=x&&x[0]&&x[1];b===!1&&m===!0&&w&&(u(),m=!1),b||(s="")},E=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:w}=x;if(w)switch(t.unref(w)){case"month":a.value=[ye().startOf("month"),ye().endOf("month")];break;case"quarter":a.value=[ye().startOf("quarter"),ye().endOf("quarter")];break;case"year":a.value=[ye().startOf("year"),ye().endOf("year")];break}}}u()}}),{style:o,getPopupContainer:n,locale:$a,dateChange:u,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:E}}}),tl=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},nl=ea.setup;ea.setup=nl?(e,o)=>(tl(),nl(e,o)):tl;const Eh="",Dh="";function Vd(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 ol=ve(me(ea,[["render",Vd],["__scopeId","data-v-c9c68612"]])),ta={...Ee,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"},na=Ce(ta),al=["click"],Hd=t.defineComponent({name:"EcanButton",components:{AButton:de.Button},props:{...na},setup(e){const o=Te(e),a=Re(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(()=>Ie(e.text)),s=t.computed(()=>Ie(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}}}),Ih="";function Wd(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 rl=ve(me(Hd,[["render",Wd]])),oa={...Ee,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:{}},aa=Ce(oa),il=["checkboxChange"],jd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:de.CheckboxGroup},props:{...aa},setup(e,{expose:o}){const n=Te(e),a=t.ref([]),r=t.ref([]),i=S=>{const E=e.value;let v=[];S.forEach(b=>{b.checked&&v.push(b.value)}),typeof E=="string"&&E!==""?v=v.concat(E.split(",")):Array.isArray(E)&&(v=v.concat(E)),a.value=S,r.value=v};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var v,b;if(e.dataType!=="request")return;const S=await s(),E=((b=(v=S==null?void 0:S.data)==null?void 0:v.data)==null?void 0:b.rows)||[];i(E)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),f=Ke(e),g=async()=>{var S;try{const E=await f(),{data:v}=(E==null?void 0:E.data)||{};if(v){const x=(((S=E==null?void 0:E.data)==null?void 0:S.data)??[]).map(w=>({label:w.label,value:w.value}));i(x)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:u}=t.inject(ze,{setRequest:({id:S,sortNum:E,requestFn:v})=>{}});return typeof u=="function"&&u({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),Lh="";function Gd(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 ll=ve(me(jd,[["render",Gd]])),ra={...Ee,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"},ia=Ce(ra),sl=["selectChange","refreshData"],Ud=t.defineComponent({name:"EcanSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...ia},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var A;const{mode:p}=e;return(A=t.unref(i))!=null&&A.length?s.value:p==="multiple"||p==="tags"||p==="combobox"?[]:""},set:p=>{s.value=p}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{},getRecordValueByKeyName:p=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:p,selectFirstOption:A,value:L}=e,M=h(L),q=y.value;if(p==="multiple"||p==="tags"||p==="combobox"){if(M)s.value=M.split(",");else if(A){const U=t.unref(i)[0];s.value=U?[U[q]]:[]}}else if(M)s.value=M;else if(A){const U=t.unref(i)[0];s.value=U?U[q]:""}},{immediate:!0});const f=(p,A)=>{const L=y.label,M=y.value;let q;const U=A[L],F=A[M];return U!=null?q=U:F!=null&&(q=F),(q==null?void 0:q.toLowerCase().indexOf(p==null?void 0:p.toLowerCase()))>=0},g=p=>{const{label:A,value:L,options:M}=e.dataFieldNames;if(M&&Array.isArray(p))if(p.some(q=>M in q)){const q={},U=[];p.forEach(F=>{q[F[M]]||(q[F[M]]=[]),q[F[M]].push({[A]:F[A],[L]:F[L]})});for(const F in q)U.push({[A]:F,[M]:q[F]});return U}else return p;else if(!M)return p},m=t.ref(!1),u=async()=>{var p,A;if(e.dataType==="request"){m.value=!0;try{const L=await r();if(i.value=g(((A=(p=L==null?void 0:L.data)==null?void 0:p.data)==null?void 0:A.rows)||[]),e.selectFirstOption){let M=t.unref(i)[0];if(y.options){const q=M[y.options];q&&q.length&&(M=q[0])}s.value=M[y.value]}}catch(L){console.error(L)}finally{m.value=!1}}},{setLoadedData:S,loadedData:E}=t.inject(vt,{setLoadedData:(p,A)=>{},loadedData:{}}),v=t.computed(()=>{let p=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const A=y.label,L=y.value;if(e.mode==="multiple")p=t.unref(i).filter(M=>t.unref(s).includes(M[L])).map(M=>M[A]);else{const M=t.unref(i).find(q=>t.unref(s)===q[L]);M&&(p=M[A])}}return p}),b=t.ref([]),x=t.computed(()=>{const p={};if(e.mode!=="multiple"){const A=t.unref(b).find(L=>L.value===t.unref(s));A&&(p.itemCodes=A.item_codes)}return p}),w=t.computed(()=>{const{value:p,label:A}=y,L=t.unref(i).find(M=>M[p]===t.unref(l));return L?{label:L[A],value:L[p]}:{}});c(e.id,{type:e.type,value:v,...t.unref(x),recordData:t.unref(w)});const D=Re(e)("selectChange",()=>{const p=e.id,A=d(p);c(p,{...A,...t.unref(x),RECORD:v,recordData:t.unref(w)})}),I=(p=[])=>{if(i.value=g(p),e.selectFirstOption){let A=t.unref(i)[0];if(y.options){const L=A[y.options];L&&L.length&&(A=L[0])}s.value=A[y.value]}c(e.id,{type:e.type,value:v,...t.unref(x),recordData:t.unref(w)})},O=Ke(e),R=async()=>{var p;try{m.value=!0;const A=await O(),{data:L}=(A==null?void 0:A.data)||{},M=y.label,q=y.value;if(L){const U=((p=A==null?void 0:A.data)==null?void 0:p.data)??[];b.value=U;const F=U.map(N=>({[M]:N.label,[q]:N.value})),{id:z}=e,V=d(z);c(z,{...V,...t.unref(x)}),S(z,!0),I(F)}else I([])}catch(A){console.error(A)}finally{m.value=!1}},T=t.computed(()=>{var p,A;return(A=(p=e==null?void 0:e.graphicConfig)==null?void 0:p.controlList)==null?void 0:A.find(L=>L.conditionKey==="parentCode")}),B=t.ref(!1);t.watch(E,p=>{!t.unref(B)&&t.unref(T)&&p[t.unref(T).id]&&(B.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(t.unref(T)){if(t.unref(E)[t.unref(T).id]){const{mode:p}=e;p==="multiple"||p==="tags"||p==="combobox"?l.value=[]:l.value="",R()}}else R();break}case"request":u();break}};Le(e,{selectChange:D,refreshData:C});const{setRequest:_}=t.inject(ze,{setRequest:({id:p,sortNum:A,requestFn:L})=>{}});return typeof _=="function"&&_({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{style:n,getPopupContainer:a,myValue:s,selectChange:D,options:i,filterOption:f,loading:m,resultValue:l}}}),Nh="",Fh="";function $d(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 cl=ve(me(Ud,[["render",$d],["__scopeId","data-v-8da65528"]])),la={...Ee,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},sa=Ce(la),dl=["selectChange","refreshData"],Yd={name:"EcanTreeSelect",components:{ATreeSelect:de.TreeSelect},props:{...sa},setup(e){const o=Te(e),n=t.ref(e.data),a=(g,m)=>{const u=e.dataFieldNames,S=u.label,E=u.value;let v;const b=m[S],x=m[E];return b!=null?v=b:x!=null&&(v=x),(v==null?void 0:v.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:m,selectFirstOption:u}=e;g?m?r.value=m.split(","):u&&(r.value=[t.unref(n)[0]]):m?r.value=m:u&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=Pe(e),l=async()=>{var g,m;if(e.dataType==="request"){i.value=!0;try{const u=await s();n.value=((m=(g=u==null?void 0:u.data)==null?void 0:g.data)==null?void 0:m.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(u){console.error(u)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:r})});Le(e,{selectChange:y,refreshData:l});const{setRequest:f}=t.inject(ze,{setRequest:({id:g,sortNum:m,requestFn:u})=>{}});return f({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},zh="",Ph="";function Kd(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 fl=ve(me(Yd,[["render",Kd],["__scopeId","data-v-37236421"]])),ca={...Ee,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:""},da=Ce(ca),ul=["checkboxChange","click"],Zd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:de.RadioGroup,ARadioButton:de.RadioButton,ARadio:de.Radio},props:{...da},setup(e,{expose:o}){const n=Te(e),a=t.ref([]),r=t.ref(""),i=b=>{const x=e.value;let w=[];typeof x=="string"&&x!==""?w=w.concat(x.split(",")):Array.isArray(x)&&(w=w.concat(x)),a.value=b,r.value=w[0]||""};t.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var w,k;if(e.dataType!=="request")return;const b=await s(),x=((k=(w=b==null?void 0:b.data)==null?void 0:w.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const h=Re(e),y=h("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),f=b=>{r.value=b,h("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};t.watch(r,()=>{y()});const g=Ke(e),m=async()=>{var b;try{const x=await g(),{data:w}=(x==null?void 0:x.data)||{};if(w){const D=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(I=>({label:I.label,value:I.value}));i(D)}else i([])}catch(x){console.error(x)}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:w})=>{}});typeof S=="function"&&S({id:e.id,requestFn:u,sortNum:e.requestSort});const E=b=>{r.value=b.value},v=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:u}),{myOption:a,style:n,myValue:r,radioStyle:v,onClickButton:f,useImagePath:ut,tabChange:E}}}),Vh="",Hh="",Qd=["onClick"];function Jd(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,h)=>(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:h,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,Qd))),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:h=>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 hl=ve(me(Zd,[["render",Jd],["__scopeId","data-v-baa84768"]])),fa={...Ee,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},ua=Ce(fa),gl=["click","refreshData","resetRecord"],Kt=async e=>{var d;const o=await ft.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)},ha={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:[],requestList:[]},ga=Ce(ha),ml=["showModal","hideModal"],It=["ecanBorder","ecanTabs","ecanCirculate"];function yl(e){const{containerMap:o={},sourceList:n=[]}=e,a=_e.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((!Yt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const h=s[c],y=[];if(h!=null&&h.length)for(const f of h){let g=a.find(m=>m.id===f);g||(g=n.find(m=>m.id===f)),g&&(y.push(g),It.includes(g.type)&&y.push(...rn(g.id,o,n)))}for(const f of y)Yt(f,"scale")?parseFloat(c)>0&&(f.left=parseFloat(f.left)+d+"px"):(f.left=parseFloat(f.sourceLeft||f.left)-parseFloat(i.sourceLeft||i.left)+d+"px",f.top=parseFloat(f.sourceTop||f.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(f.id)||l.push(f.id);i.componentList.push(...y),d=af(y)}}for(const d of l){const c=a.findIndex(h=>h.id===d);c!==-1&&a.splice(c,1)}}return a}function xl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=_e.cloneDeep([...e.componentList,...ef(a,n)]);if(Xd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const f in a){const g=r.find(m=>m.id===f);if(g){Yt(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const m in a[f])if(a[f][m])for(const u of a[f][m]){const S=r.find(E=>E.id===u);S&&(S.parentId=f,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(g.sourceLeft||g.left)+"px",S.top=parseFloat(S.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(r.filter(f=>(!Yt(f,"parentId")||f.parentId==="")&&f.combinationId).map(f=>f.combinationId))),d=tf(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=r.filter(f=>c.includes(f.type)&&!Yt(f,"parentId")),y=[];for(const f of h)if(f){const g=f.id+"_vir";y.push({id:g,keyName:f.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:f.width,height:f.height,left:f.left,top:f.top,sourceLeft:f.left,sourceTop:f.top}),f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=0,f.top=0}y!=null&&y.length&&r.unshift(...y);for(const f of r){const g=document.body.clientWidth;if(f.parentId===""&&It.includes(f.type))f.sourceWidth=parseFloat(f.width),f.height=(g/(f.sourceWidth/parseFloat(f.height))).toFixed(2)+"px",f.width="100%",f.position="relative",f.top="auto",f.left="auto";else{const m=r.find(u=>u.id===f.parentId);if((m==null?void 0:m.parentId)===""){const u=m.sourceWidth||parseFloat(m.width),S=g/u;f.scale=S,f.top=parseFloat(f.top)*S-parseFloat(f.height)*(1-S)/2+"px",f.left=parseFloat(f.left)*S-parseFloat(f.width)*(1-S)/2+"px"}}f.type==="ecanModal"&&(f.parentId="",f.fullModal=!0)}return nf(r)}return r}function Xd(e,o){const n=_e.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&&It.includes(d.type)){const c=rn(d.id,n,o);for(const h of c)e[r.id][s].push(h.id),It.includes(h.type)&&delete e[h.id];delete e[d.id]}}}}function ef(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),It.includes(d.type)&&n.push(...rn(d.id,e,o)))}}return n}function rn(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),It.includes(l.type)&&a.push(...rn(l.id,o,n)))}return a}function tf(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=of(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 h of d)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(c.left)+"px",h.top=parseFloat(h.top)-parseFloat(c.top)+"px")}}}}return i}function nf(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=_e.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 of(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 af(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function ma(e,o,n){const a=e[n],r=[];if(a)for(const i in a){const s=a[i];for(const l of s){const d=o.find(c=>c.id===l);d&&(r.push(d),It.includes(d.type)&&r.push(...rn(d.id,e,o)))}}return r}const rf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function lf(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 sf=ve(me(rf,[["render",lf]])),cf=t.defineComponent({name:"EcanModal",components:{AModal:de.Modal,CloseOutlined:y0,Render:sf},props:{...ga},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,setRequestData:d}=t.inject(De,{setRequestData:(Y,ee)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,h=t.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),y=e.fullModal?"1920px":e.width,f=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,u=t.ref("80%"),S=t.ref(0),E=t.ref(),v=t.ref(0),b=t.ref({}),x=Te(e),w=t.ref({}),k=t.ref(!1),D=t.ref();let I;const O=()=>{E.value=parseFloat(y)/parseFloat(g);const Y=parseFloat(f)/parseFloat(m),ee=document.body.offsetWidth,re=document.body.offsetHeight;S.value=ee*t.unref(E),v.value=re*Y,u.value=`${t.unref(E)*100}%`,b.value={width:`${t.unref(S)}px`,height:`${t.unref(v)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},w.value={...t.unref(x),backgroundImage:ut(e.backgroundImage,!0)},a?w.value={...w.value,width:"100%",height:"100%"}:w.value={...w.value,transform:`scale(${t.unref(S)/parseFloat(y)},${t.unref(v)/parseFloat(f)})`,width:y,height:f}},R=_e.debounce(()=>{O()},100),T=()=>{const Y=window.MutationObserver;I=new Y(R),I.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},B=()=>{I&&(I.disconnect(),I.takeRecords(),I=null)},C=t.ref(!1),{touchRequest:_}=t.inject(ze,{touchRequest:()=>{}}),p=t.ref(""),A=()=>{var re;const{title:Y}=e,ee=(re=t.unref(l))==null?void 0:re.RECORD;return ee?Ie(Y,{textData:ee},{useNewline:!1,useSpace:!1}):Y},L=Re(e),M=()=>{a&&(document.documentElement.style.overflow="hidden"),p.value=A(),C.value=!0},q=L("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),C.value=!1}),U=()=>{q()},F=()=>{q(),s()},{setModalModel:z,pushUseModalIds:V,popUseModalIds:N}=t.inject(vr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,ee)=>{}}),P=t.computed(()=>{let Y=e.componentList;const ee=_e.cloneDeep(e.componentList),re=r(),xe=i(),Se={containerMap:re,combinationMap:xe};a&&(Y=xl({...Se,componentList:ee,sourceList:e.allComponentList})),Y=yl({...Se,componentList:Y,sourceList:e.allComponentList});const Be=[];for(const Oe of Y)if(Oe.type==="ecanCirculate"){const we=ma(re,t.unref(ee),Oe.id);Oe.componentList=we,Be.push(...we.map(Ae=>Ae.id))}if(Be!=null&&Be.length)for(const Oe of Be){const we=Y.findIndex(Ae=>Ae.id===Oe);we!==-1&&Y.splice(we,1)}return Y}),j=()=>{const Y=e.id;let ee=[];const re=e.componentList;Array.isArray(re)&&(ee=re.map(xe=>xe.id),z(Y,[...new Set(ee)]))},$=t.ref(!1),W={};for(const Y of e.requestList)W[Y.requestName]=Pe(Y);const K=async()=>{var Y;for(const ee in W){const re=await W[ee]();d(ee,((Y=re==null?void 0:re.data)==null?void 0:Y.data)||{})}$.value=!0};t.watch(()=>C.value,async Y=>{if(Y)k.value=!1,await K(),V(e.id),j(),await t.nextTick(()=>{O(),window.addEventListener("resize",R),T(),k.value=!0}),_();else{for(const ee in W)d(ee,{});N(),window.removeEventListener("resize",R),B()}});const ne=t.computed(()=>t.unref(E)>=1),oe=t.computed(()=>e.fullModal),ae=t.computed(()=>{let Y="ecan-modal";return t.unref(ne)&&(Y+=" ecan-full-width-modal"),t.unref(oe)&&(Y+=" ecan-full-modal"),Y});return Le(e,{showModal:M,hideModal:q}),{modalRef:D,containStyle:b,contentStyle:w,getContainer:c,modalStyle:h,modalWith:u,isFullModal:oe,style:x,visible:C,showModal:M,onOk:U,onCancel:F,isFullWidth:ne,wrapClassName:ae,ready:k,usedComponentList:P,isMobile:a,readyIds:n,hasOwn:Yt,onComponentReady:Y=>{n.value.push(Y)},formatTitle:p,requestLoaded:$}}}),Gh="",Uh="";function df(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.requestLoaded&&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,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+h},[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=ve(me(cf,[["render",df],["__scopeId","data-v-513bc596"]]));Je.use([Et.CanvasRenderer,gt.PieChart,ke.TitleComponent,ke.ToolboxComponent,ke.TooltipComponent,ke.LegendComponent]);const ff=t.defineComponent({name:"EcanPie",props:{...ua},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:T=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const B=e.isUseLabelColors,C=e.colors;T=T.map((_,p)=>({label:B?{color:C[p]}:{},..._}))}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(){Kt(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 B;n.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(){de.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:C,seriesName:_,name:p,value:A,percent:L,data:M}=B||{};return Ie(e.tooltipFormatter,{textData:{marker:C,name:p,value:A,percent:L,a:_,b:p,c:A,d:L,...M}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:T,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?$e:e.labelFontSize,position:e.labelPosition,formatter:Gc(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 T=n.value?$e: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:T+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:T}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:B=>{const{data:C}=r.value[0]||{};let _=0,p,A="0%";if(C)for(const L of C)L.name===B&&(p=+L.value),_+=+L.value;return _&&(A=`${(p/_*100).toFixed(2)}%`),an(e.legendFormatter,{name:B,value:p,percent:A})}}},c=()=>{n.value=!1},{getGlobalModel:h,setGlobalModel:y}=t.inject(De,{getGlobalModel:T=>{},setGlobalModel:(T,B)=>{}}),{pageMode:f}=t.inject(qe,{pageMode:"normal"}),g=(T=[],B)=>{const{dataset:C}=zt(T,B);r.value=C},m=(T=[],B)=>{const C=zt(T,B);r.value=C.dataset};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(f)==="design")&&g(T)},{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 u=t.ref(!1),S=Pe(e),E=async()=>{var T,B;if(e.dataType==="request")try{u.value=!0;const C=await S();g((B=(T=C==null?void 0:C.data)==null?void 0:T.data)==null?void 0:B.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{u.value=!1}},v=Re(e);y(e.id,{type:e.type,RECORD:""});const b=v("click",T=>{const B=h(e.id);y(e.id,{...B,type:e.type,RECORD:T==null?void 0:T.data})}),x=Ke(e),w=async()=>{var T;try{u.value=!0;const B=await x(),{data:C}=(B==null?void 0:B.data)||{};if(C){const{columns:_=[],rows:p=[]}=((T=B==null?void 0:B.data)==null?void 0:T.data)??{};let A=[];if(_.length>0){const L=_[0],M=_[1];A=p.filter(q=>!!q).map(q=>({name:q[L],value:isNaN(q[M])?0:q[M]||0}))}m(A)}}catch(B){console.error(B)}finally{u.value=!1}},{loadedData:k}=t.inject(vt,{loadedData:{}}),D=t.ref(!1);t.watch(k,T=>{if(e.dataType==="indicator"){const B=on(e.graphicConfig);B!=null&&B.length&&(!t.unref(D)&<(e.graphicConfig,T)?(D.value=!0,I()):lt(e.graphicConfig,T)||(D.value=!1))}},{deep:!0});const I=()=>{switch(e.dataType){case"indicator":lt(e.graphicConfig,t.unref(k))&&w();break;case"request":E();break}};Le(e,{resetRecord:()=>{const T=e.id,B=h(T);y(T,{...B,RECORD:""})},refreshData:I,click:b}),o({refreshData:I});const{setRequest:R}=t.inject(ze,{setRequest:T=>{}});return typeof R=="function"&&R({id:e.id,requestFn:I,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:u,ecanModal:i}}}),Yh="";function uf(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 pl=ve(me(ff,[["render",uf]])),ya={...Ee,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:"",xAxisMaxValue:null,yAxisMaxValue:null},xa=Ce(ya),bl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,gt.LineChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent,ke.MarkLineComponent]);const hf=t.defineComponent({name:"EcanLine",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Te(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?$e:12),c=t.ref({});let h;const y=t.ref([]),f=t.computed(()=>{const p=e.xAxisLabelFormatter,A=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(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=l.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(){de.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:L=>{var F;const M=L.length;let q="",U=e.tooltipFormatter;h=(F=L[0])==null?void 0:F.data,U===""&&(U="{marker} {a} {c}");for(let z=0;z<M;z++){const{marker:V,seriesName:N,name:P,value:j,data:$}=L[z]||{};if(z===0){let W=P;typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(W=(+P).toString()),q+=`${st(p,W)}<br/>`}q+=Ie(U,{textData:{marker:V,name:P,value:j,a:N,b:P,c:j||0,...$}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(L=>{let M={};return L&&typeof L=="object"?M={...L}:M={value:L},M}),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(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),st(p,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"},max:e.xAxisMaxValue||null},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(L){return st(A,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},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?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(L=>({name:L.name,icon:e.legendType})),formatter:L=>an(e.legendFormatter,{name:L})},series:t.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,A)=>{}}),{pageMode:S}=t.inject(qe,{pageMode:"normal"}),E=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),v=(p=[],A=!1)=>{let L;if(e.dataFieldConfigType==="key"){const F=A?e.keyTypeDataFieldNames:null;L=At(p,F)}else if(e.dataFieldConfigType==="value"){const F=A?e.valueTypeDataFieldNames:null;L=zt(p,F)}s.value=L.dimensions,y.value=L.dataset;const M=L.dataset,q=[],U=M.length;for(let F=0;F<U;F++){const z={};e.shadowColor&&(z.shadowColor=e.shadowColor,z.shadowBlur=e.shadowBlur,z.shadowOffsetY=e.shadowOffsetY,z.shadowOffsetX=e.shadowOffsetX),q.push({type:"line",...M[F],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[F]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[F],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...z},...t.unref(E)})}i.value=q},b=(p=[],A,L=!1)=>{const q=At(p,L?A:null,!0);s.value=q.dimensions,y.value=q.dataset;const U=q.dataset,F=[],z=U.length;for(let V=0;V<z;V++){const N={};e.shadowColor&&(N.shadowColor=e.shadowColor,N.shadowBlur=e.shadowBlur,N.shadowOffsetY=e.shadowOffsetY,N.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...U[V],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[V]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[V],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...N},...t.unref(E)})}i.value=F};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],([p])=>{(e.dataType==="static"||t.unref(S)==="design")&&v(p)},{immediate:!0,deep:!0});const x=t.ref(!1),w=Pe(e),k=async()=>{var p,A;if(e.dataType==="request")try{x.value=!0;const L=await w();v((A=(p=L==null?void 0:L.data)==null?void 0:p.data)==null?void 0:A.rows,!0)}catch(L){console.error(L)}finally{x.value=!1}},D=Re(e);u(e.id,{type:e.type,RECORD:""});const I=D("click",p=>{const A=m(e.id);u(e.id,{...A,type:e.type,RECORD:e.tooltipShow?h:p.data})}),O=p=>{n.value.chart.containPixel("grid",[p.offsetX,p.offsetY])&&I()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=I;const R=Ke(e),T=async()=>{var p;try{x.value=!0;const A=await R(),{columns:L=[],rows:M=[]}=((p=A==null?void 0:A.data)==null?void 0:p.data)??{};let q;L.length>0&&(q={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),b(M,q,!0)}catch(A){console.error(A)}finally{x.value=!1}},B=()=>{switch(e.dataType){case"indicator":T();break;case"request":k();break}};Le(e,{refreshData:B,resetRecord:()=>{const p=e.id,A=m(p);u(p,{...A,RECORD:""})},click:I});const{setRequest:_}=t.inject(ze,{setRequest:p=>{}});return typeof _=="function"&&_({id:e.id,requestFn:B,sortNum:e.requestSort}),o({refreshData:B}),{option:f,style:r,click:I,loading:x,onClose:g,ecanModal:l,eventObj:c,echartRef:n}}}),Zh="";function gf(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 vl=ve(me(hf,[["render",gf]])),pa={...Ee,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:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},ba=Ce(pa),Sl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.BarChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const mf=t.defineComponent({name:"EcanBar",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),a=t.ref(),r=t.ref(!1),i=t.ref(!1),s=t.ref(null),l=t.ref([]),d=Te(e),c=t.ref([]),h=t.ref(),y=t.ref({});let f;const g=t.computed(()=>r.value?$e:12),m=t.computed(()=>{const{gradientShow:N,gradientColors:P,gradientOffset:j,barBorderRadius:$}=e,W=t.unref(c),K=W.length,ne=[];for(let oe=0;oe<K;oe++){const ae={...W[oe],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ae.stack="stack"),ae.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:J=>{let Y="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:re,name:xe,value:Se,data:Be}=J||{};return Y+=Ie(ee,{textData:{name:xe,value:Se,a:re,b:xe,c:Se||0,...Be}},{useNewline:!0,useSpace:!0}),Y}},ae.itemStyle={},N&&(ae.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[oe]},{offset:j,color:P[oe]},{offset:1,color:P[oe]}]}}),$){const J=$.split(",");if(J!=null&&J.length){const Y=[];for(const ee of J){const re=parseFloat(ee);isNaN(re)||Y.push(re)}ae.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(ae.markLine={data:[{type:e.markLineType}]}),ne.push(ae)}return ne}),u=t.ref([]),S=t.ref(!1),E=t.computed(()=>{const N=e.yAxisLabelFormatter,P=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:r.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(){i.value=!0;const j=a.value.chart.getOption(),{xAxis:$}=j||{};$&&$.length&&(l.value=$[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(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.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 j;r.value=!0,(j=h.value)==null||j.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(){de.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:j=>{var ne;const $=j.length;let W="",K=e.tooltipFormatter;f=(ne=j[0])==null?void 0:ne.data,K===""&&(K="{marker} {a} {c}");for(let oe=0;oe<$;oe++){const{marker:ae,seriesName:J,name:Y,value:ee,data:re}=j[oe]||{};if(oe===0){let xe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(xe=(+Y).toString()),W+=`${st(P,xe)}<br/>`}W+=Ie(K,{textData:{marker:ae,name:Y,value:ee,a:J,b:Y,c:ee||0,...re}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.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:(r.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(c).map((j,$)=>({name:j.name,itemStyle:{color:e.colors[$]},icon:e.legendType})),formatter:j=>an(e.legendFormatter,{name:j})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.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(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),st(P,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(u):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(j){return st(N,j)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(m)}}),{pageMode:v}=t.inject(qe,{pageMode:"normal"}),b=()=>{r.value=!1},x=(N=[],P=!1)=>{let j={};if(e.dataFieldConfigType==="key"){const $=P?e.keyTypeDataFieldNames:null;j=At(N,$)}else if(e.dataFieldConfigType==="value"){const $=P?e.valueTypeDataFieldNames:null;j=zt(N,$)}c.value=j.dataset,u.value=j.dimensions},w=(N=[],P,j=!1)=>{const W=At(N,j?P:null,!0);e.defaultRangeValue&&Di({props:e,componentList:t.unref(n),getGlobalModel:M},W),c.value=W.dataset,u.value=W.dimensions},k=t.computed(()=>t.unref(u).map(N=>{let P={};return N&&typeof N=="object"?P={...N}:P={value:N},P}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([N])=>{(e.dataType==="static"||t.unref(v)==="design")&&x(N)},{immediate:!0,deep:!0});const D=Pe(e),I=async()=>{var N,P;try{S.value=!0;const j=await D();x((P=(N=j==null?void 0:j.data)==null?void 0:N.data)==null?void 0:P.rows,!0)}catch(j){console.error(j)}finally{S.value=!1}},O=Ke(e),R=async()=>{var N;try{S.value=!0;const P=await O(),{columns:j=[],rows:$=[]}=((N=P==null?void 0:P.data)==null?void 0:N.data)??{};let W;j.length>0&&(W={name:j[0],types:j.slice(1).map(K=>({label:K,value:K}))}),w($,W,!0)}catch(P){console.error(P)}finally{S.value=!1}},{loadedData:T}=t.inject(vt,{loadedData:{}}),B=t.ref(!1);t.watch(T,N=>{if(e.dataType==="indicator"){const P=on(e.graphicConfig);P!=null&&P.length&&(!t.unref(B)&<(e.graphicConfig,N)?(B.value=!0,C()):lt(e.graphicConfig,N)||(B.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":lt(e.graphicConfig,t.unref(T))&&R();break;case"request":I();break}},_=(N,P)=>!!t.unref(l)[P.value].value.includes(N),p=async()=>{i.value=!1;const N=a.value.chart.getOption();for(let P=0;P<7;P++)await A(N,P)},A=(N,P)=>new Promise(j=>{setTimeout(()=>{const{series:$,color:W,xAxis:K}=N,ne=a.value.chart,{splitArea:oe={}}=K[0]||{};$.forEach((ae,J)=>{const Y=ae.data;let ee="";P%2?ee=W[J]+"a8":ee=W[J],Y[s.value].itemStyle={color:ee}}),P%2?(oe.show=!0,oe.areaStyle.color=t.unref(l).map((ae,J)=>J===s.value?"#ff003b26":"")):oe.show=!1,ne.setOption({series:$,xAxis:K}),j()},200)});o({refreshData:C});const L=Re(e),{getGlobalModel:M,setGlobalModel:q}=t.inject(De,{getGlobalModel:N=>{},setGlobalModel:(N,P)=>{}});q(e.id,{type:e.type,RECORD:""});const U=L("click",N=>{const P=M(e.id);q(e.id,{...P,type:e.type,RECORD:e.tooltipShow?f:N.data})}),{setRequest:F}=t.inject(ze,{setRequest:N=>{}});typeof F=="function"&&F({id:e.id,requestFn:C,sortNum:e.requestSort});const z=()=>{const N=e.id,P=M(N);q(N,{...P,RECORD:""})},V=N=>{a.value.chart.containPixel("grid",[N.offsetX,N.offsetY])&&U()};return e.tooltipShow?y.value["zr:click"]=V:y.value.click=U,Le(e,{refreshData:C,click:U,resetRecord:z}),{option:E,style:d,refreshData:C,click:U,loading:S,onClose:b,ecanModal:h,echartRef:a,handleLocationOk:p,onFilterOption:_,locationVisible:i,locationValue:s,locationNames:l,eventObj:y}}}),Jh="",Xh="",yf=e=>(t.pushScopeId("data-v-f2d3b670"),e=e(),t.popScopeId(),e),xf={class:"location-wrap"},pf=yf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function bf(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"),h=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]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",xf,[pf,t.createVNode(h,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Cl=ve(me(mf,[["render",bf],["__scopeId","data-v-f2d3b670"]])),va={...Ee,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:""},Sa=Ce(va),wl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,gt.ScatterChart,ke.ToolboxComponent,ke.TitleComponent,ke.TooltipComponent,ke.LegendComponent,ke.MarkLineComponent]);const vf=t.defineComponent({name:"EcanScatter",props:{...Sa},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Te(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?$e:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const w=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(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 D;o.value=!0,(D=r.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.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(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),st(w,D)}},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(D){return st(k,D)}},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(D){var C;const{marker:I,seriesName:O}=D,R=((C=D==null?void 0:D.data)==null?void 0:C.record)??{},{name:T,value:B}=R;return Ie(e.tooltipFormatter,{textData:{marker:I,seriesName:O,a:O,b:T,c:B,...R}})},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(De,{getGlobalModel:w=>{},setGlobalModel:(w,k)=>{}}),{pageMode:h}=t.inject(qe,{pageMode:"normal"}),y=(w=[],k)=>{const{name:D="name",value:I="value"}=k||{};a.value=w.map(O=>({value:[O[D],O[I]],record:O}))};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(h)==="design")&&y(w)},{immediate:!0,deep:!0});const f=t.ref(!1),g=Pe(e),m=async()=>{var w,k;if(e.dataType==="request"){f.value=!0;try{const D=await g();y((k=(w=D==null?void 0:D.data)==null?void 0:w.data)==null?void 0:k.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{f.value=!1}}},u=()=>{o.value=!1},S=Re(e);c(e.id,{type:e.type,RECORD:""});const E=S("click",w=>{const k=e.id,D=d(k);c(k,{...D,type:e.type,RECORD:w==null?void 0:w.data})});Le(e,{refreshData:()=>{m()},click:E,resetRecord:()=>{const w=e.id,k=d(w);c(w,{...k,RECORD:""})}});const{setRequest:x}=t.inject(ze,{setRequest:w=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:E,loading:f,onClose:u,ecanModal:r}}}),t1="";function Sf(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 Al=ve(me(vf,[["render",Sf]])),Ca={...Ee,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},wa=Ce(Ca),Cf=t.defineComponent({name:"EcanCustomGraph",props:{...wa},components:{Echarts:pt},setup(e){const o=Te(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:ss}}});function wf(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 kl=ve(me(Cf,[["render",wf]])),Aa={...Ee,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:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},ka=Ce(Aa),Tl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.BarChart,gt.LineChart,ke.TitleComponent,ke.LegendComponent,ke.DatasetComponent,ke.ToolboxComponent,ke.MarkLineComponent]);const Af=t.defineComponent({name:"EcanComboGraph",props:{...ka},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),{getGlobalModel:a,setGlobalModel:r}=t.inject(De,{getGlobalModel:P=>{},setGlobalModel:(P,j)=>{}}),i=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),h=t.ref({});let y;const f=Te(e),g=t.ref([]),m=t.ref([]),u=t.ref(),S=t.ref([]),E=t.computed(()=>s.value?$e:12),v=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:s.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(){l.value=!0;const P=i.value.chart.getOption(),{xAxis:j}=P||{};j&&j.length&&(c.value=j[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(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:s.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;s.value=!0,(P=u.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(){de.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:(s.value?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(S).map((P,j)=>({name:P.name,itemStyle:{color:e.colors[j]},icon:e.legendType})),formatter:P=>an(e.legendFormatter,{name:P})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:P=>{var ne;const j=P.length;let $="",W=e.tooltipFormatter;y=(ne=P[0])==null?void 0:ne.data,W===""&&(W="{marker} {a} {c}");const K=e.seriesTypes;for(let oe=0;oe<j;oe++){const ae=K[oe],{tooltipFormatter:J}=ae||{},{marker:Y,seriesName:ee,name:re,value:xe,data:Se}=P[oe]||{};if(oe===0){let Be=re;typeof re=="string"&&re[0]==="0"&&!isNaN(+re)&&(Be=(+re).toString()),$+=`${st(e.xAxisLabelFormatter,Be)}<br/>`}$+=Ie(J||W,{textData:{marker:Y,name:re,value:xe,seriesName:ee,a:ee,b:re,c:xe||0,...Se}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},textStyle:{color:e.tooltipTextStyleColor,fontSize:E.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(P=>{let j={};return P&&typeof P=="object"?j={...P}:j={value:P},j}),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(P){return typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(P=(+P).toString()),st(e.xAxisLabelFormatter,P)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(I),series:t.unref(g)})),{pageMode:b}=t.inject(qe,{pageMode:"normal"}),x=()=>{s.value=!1},w=(P=[],j=!1)=>{let $;if(e.dataFieldConfigType==="key"){const K=j?e.keyTypeDataFieldNames:null;$=At(P,K)}else if(e.dataFieldConfigType==="value"){const K=j?e.valueTypeDataFieldNames:null;$=zt(P,K)}m.value=$.dimensions;const W=$.dataset;S.value=$.dataset,g.value=D(W)},k=(P=[],j,$=!1)=>{const K=At(P,$?j:null,!0);e.defaultRangeValue&&Di({props:e,componentList:t.unref(n),getGlobalModel:a},K),m.value=K.dimensions;const ne=K.dataset;S.value=K.dataset,g.value=D(ne)};function D(P){const j=[],$=P.length,W=e.seriesTypes;for(let K=0;K<$;K++){const ne=W[K],{type:oe,axisIndex:ae}=ne||{};let J={type:oe,yAxisIndex:ae,...P[K]};if(oe==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.shadowOffsetX=e.shadowOffsetX),J={...J,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[K]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[K],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(oe==="bar"){const{gradientShow:Y,gradientColors:ee,gradientOffset:re}=e,xe={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const Be=[];for(const Oe of Se){const we=parseFloat(Oe);isNaN(we)||Be.push(we)}xe.borderRadius=Be}}Y&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:re,color:ee[K]},{offset:1,color:ee[K]}]}),J={...J,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),j.push(J)}return j}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],([P])=>{(e.dataType==="static"||t.unref(b)==="design")&&w(P)},{immediate:!0,deep:!0});const I=t.computed(()=>{const P=e.yAxis;return P==null?void 0:P.map((j,$)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:$===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:$===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(W){return st(j.axisLabelFormatter,W)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:$===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:$===0?"right":"left"},max:e.yAxisMaxValue||null}))}),O=t.ref(!1),R=Pe(e),T=async()=>{var P,j;if(e.dataType==="request")try{O.value=!0;const $=await R();w((j=(P=$==null?void 0:$.data)==null?void 0:P.data)==null?void 0:j.rows,!0)}catch($){console.error($)}finally{O.value=!1}},B=Ke(e),C=async()=>{var P;try{O.value=!0;const j=await B(),{columns:$=[],rows:W=[]}=((P=j==null?void 0:j.data)==null?void 0:P.data)??{};let K;$.length>0&&(K={name:$[0],types:$.slice(1).map(ne=>({label:ne,value:ne}))}),k(W,K,!0)}catch(j){console.error(j)}finally{O.value=!1}},{loadedData:_}=t.inject(vt,{loadedData:{}}),p=t.ref(!1);t.watch(_,P=>{if(e.dataType==="indicator"){const j=on(e.graphicConfig);j!=null&&j.length&&(!t.unref(p)&<(e.graphicConfig,P)?(p.value=!0,A()):lt(e.graphicConfig,P)||(p.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":lt(e.graphicConfig,t.unref(_))&&C();break;case"request":T();break}},L=(P,j)=>!!t.unref(c)[j.value].value.includes(P),M=async()=>{l.value=!1;const P=i.value.chart.getOption();for(let j=0;j<7;j++)await q(P,j)},q=(P,j)=>new Promise($=>{setTimeout(()=>{const{series:W,color:K,xAxis:ne}=P,oe=i.value.chart,{splitArea:ae={}}=ne[0]||{};W.forEach((J,Y)=>{const ee=J.data;let re="";j%2?re=K[Y]+"a8":re=K[Y],ee[d.value].itemStyle={color:re}}),j%2?(ae.show=!0,ae.areaStyle.color=t.unref(c).map((J,Y)=>Y===d.value?"#ff003b26":"")):ae.show=!1,oe.setOption({series:W,xAxis:ne}),$()},200)});o({refreshData:A});const U=Re(e);r(e.id,{type:e.type,RECORD:""});const F=U("click",P=>{const j=a(e.id);r(e.id,{...j,type:e.type,RECORD:e.tooltipShow?y:P==null?void 0:P.data})}),z=P=>{i.value.chart.containPixel("grid",[P.offsetX,P.offsetY])&&F()};e.tooltipShow?h.value["zr:click"]=z:h.value.click=F;const{setRequest:V}=t.inject(ze,{setRequest:P=>{}});return typeof V=="function"&&V({id:e.id,requestFn:A,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const P=e.id,j=a(P);r(P,{...j,RECORD:""})},refreshData:A,click:F}),{style:f,option:v,click:F,loading:O,onClose:x,ecanModal:u,echartRef:i,handleLocationOk:M,onFilterOption:L,locationVisible:l,locationValue:d,locationNames:c,eventObj:h}}}),a1="",r1="",kf=e=>(t.pushScopeId("data-v-a80f0ebc"),e=e(),t.popScopeId(),e),Tf={class:"location-wrap"},Bf=kf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Ef(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"),h=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]=f=>e.locationVisible=f),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Tf,[Bf,t.createVNode(h,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=f=>e.locationValue=f),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,(f,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(f.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bl=ve(me(Af,[["render",Ef],["__scopeId","data-v-a80f0ebc"]])),Ta={...Ee,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},Ba=Ce(Ta),El=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,gt.RadarChart,ke.ToolboxComponent,ke.TitleComponent,ke.LegendComponent]);const Df=t.defineComponent({name:"EcanRadar",props:{...Ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Te(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?$e:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),h=t.computed(()=>{const C=t.unref(d),_=C.length,p=[];for(let A=0;A<_;A++){const{name:L,data:M=[]}=C[A],q=[{name:L,value:M.map(z=>z.value)}];let U=e.colors[A];if(e.gradientShow){const{gradientOffset:z,gradientColors:V}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[A]},{offset:z,color:V[A]},{offset:1,color:V[A]}]}}const F={type:"radar",name:L,data:q,areaStyle:{color:U,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:z=>{const{data:V,value:N}=z;let P=0,j="0%";if(V)for(const $ of V.value)P+=+$;return P&&(j=`${(N/P*100).toFixed(2)}%`),Ie(e.labelFormatter,{textData:{value:N,percent:j}},{useNewline:!1,useSpace:!1})}}};p.push(F)}return p}),y=t.computed(()=>{var L;const C=[],_=[],p=t.unref(d),A=p.length;for(let M=0;M<A;M++){const{data:q=[]}=p[M];for(let U=0;U<q.length;U++)_.push(q[U].value)}if((L=i.value)!=null&&L.length){const M=_!=null&&_.length?Math.max(..._)*1.2:0;for(const q of i.value)C.push({name:q,max:M})}return C}),f=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(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var C;a.value=!0,(C=s.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:C=>{let _="",p=e.tooltipFormatter;p===""&&(p="{marker} {a} {c}");for(let A=0;A<t.unref(y).length;A++){const L=t.unref(y)[A],{marker:M,seriesName:q,value:U}=C||{};A===0&&q&&(_+=`${q}<br/>`),_+=Ie(p,{textData:{marker:M,name:L.name,value:U[A],a:L.name,b:L.name,c:U[A]||0,type:q}},{useNewline:!0,useSpace:!0}),_+="<br/>"}return _},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?$e:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?$e:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>an(e.legendFormatter,{name:C})},series:t.unref(h)})),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:u}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,_)=>{}}),{pageMode:S}=t.inject(qe,{pageMode:"normal"}),E=(C=[],_=!1)=>{let p;if(e.dataFieldConfigType==="key"){const A=_?e.keyTypeDataFieldNames:null;p=At(C,A)}else if(e.dataFieldConfigType==="value"){const A=_?e.valueTypeDataFieldNames:null;p=zt(C,A)}i.value=p.dimensions,d.value=p.dataset},v=(C=[],_,p=!1)=>{const L=At(C,p?_:null,!0);i.value=L.dimensions,d.value=L.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||t.unref(S)==="design")&&E(C)},{immediate:!0,deep:!0});const b=t.ref(!1),x=Pe(e),w=async()=>{var C,_;if(e.dataType==="request")try{b.value=!0;const p=await x();E((_=(C=p==null?void 0:p.data)==null?void 0:C.data)==null?void 0:_.rows,!0)}catch(p){console.error(p)}finally{b.value=!1}},k=Re(e);u(e.id,{type:e.type,RECORD:""});const D=C=>{const _=C.event.topTarget.__dimIdx;_!==void 0&&k("click",()=>{var M;const{value:p,name:A}=C.data||{},L=m(e.id);u(e.id,{...L,type:e.type,RECORD:{[t.unref(c)]:((M=t.unref(y)[_])==null?void 0:M.name)||"",[A]:p[_],seriesName:A}})})()},I=Ke(e),O=async()=>{var C;try{b.value=!0;const _=await I(),{columns:p=[],rows:A=[]}=((C=_==null?void 0:_.data)==null?void 0:C.data)??{};let L;p.length>0&&(c.value=p[0],L={name:p[0],types:p.slice(1).map(M=>({label:M,value:M}))}),v(A,L,!0)}catch(_){console.error(_)}finally{b.value=!1}},R=()=>{switch(e.dataType){case"indicator":O();break;case"request":w();break}};Le(e,{refreshData:R,resetRecord:()=>{const C=e.id,_=m(C);u(C,{..._,RECORD:""})},click:D});const{setRequest:B}=t.inject(ze,{setRequest:C=>{}});return typeof B=="function"&&B({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:f,style:r,click:D,loading:b,onClose:g,ecanModal:s,echartRef:n}}}),l1="";function Rf(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 Dl=ve(me(Df,[["render",Rf]])),If="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",Lf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ea={...Ee,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"},Da=Ce(Ea),Rl=["click"],Nf=t.defineComponent({name:"EcanBorder",props:{...Da},setup(e){const o=Te(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:u,gradientColor:S,gradientOffset:E,gradientAngle:v,backgroundColor:b}=e;if(u){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${v}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let u={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(u={cursor:"pointer"}),u}),{theme:r}=t.inject(qe,{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":If,"../../assets/border-title-decoration-left2.png":_f})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Lf,"../../assets/border-title-decoration-right2.png":Of})[`../../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,u=[],S={};if(m){const E=m.split(",");for(const v of E)(+v||+v==0)&&u.push(+v+"px")}return u!=null&&u.length&&(S.borderRadius=u.join(" ")),S}),y=Re(e)("click",()=>{}),f=t.ref([]);t.watch(()=>e.data,m=>{f.value=m},{immediate:!0,deep:!0}),Le(e,{click:y});const{setGlobalModel:g}=t.inject(De,{setGlobalModel:(m,u)=>{}});return g(e.id,{type:e.type,value:f}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),c1="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Ff=["id"],Mf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),zf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),qf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Vf={class:"title-item"},Hf=["src"],Wf={class:"title"},jf=["src"],Gf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Uf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),$f=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Yf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Kf={key:2,class:"left-title"},Zf={class:"title"};function Qf(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},[Mf,zf,Pf,qf],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",Vf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Hf),t.createElementVNode("div",Wf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,jf)])],2),Gf,Uf,$f,Yf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Kf,[t.createElementVNode("div",Zf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Ff)}const Il=ve(me(Nf,[["render",Qf],["__scopeId","data-v-8dd53b8f"]])),Ra={...Ee,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:10,componentList:[]},Ia=Ce(Ra),_l=["tabChange"],Jf=t.defineComponent({name:"EcanTabs",props:{...Ia},components:{ASelect:de.Select,ASelectOption:de.SelectOption,MarqueeScroll:zn},setup(e){const o=Te(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(qe,{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 u=t.unref(n)+1;u<=m?n.value=u: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=Re(e),{setGlobalModel:h}=t.inject(De,{setGlobalModel:(m,u)=>{}});h(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),f=(m,u)=>{c("tabChange",()=>{u!==t.unref(n)&&(l.value=m,n.value=u,y())})()},g=t.computed(()=>{const m=e.componentList.map(u=>parseFloat(u.left)+parseFloat(u.width)).sort((u,S)=>S-u)[0];return{width:m?m+"px":"100%"}});return Le(e,{tabChange:f}),{style:o,activeKey:n,isActive:d,tabChange:f,myData:s,useImagePath:ut,pageMode:a,scrollWrapStyle:g}}}),f1="",Xf=["id"],eu=["onClick"];function tu(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,h)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:t.withModifiers(y=>e.tabChange(c,h),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,eu))),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,h)=>(t.openBlock(),t.createBlock(s,{key:h,value:h,onClick:y=>e.tabChange(c,h)},{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,Xf)}const Ll=ve(me(Jf,[["render",tu],["__scopeId","data-v-132544b5"]])),_a={...Ee,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},La=Ce(_a),Ol=["click","refreshData","resetRecord"];let Nl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const nu=t.defineComponent({name:"EcanCirculate",props:{...La,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:zn,Skeleton:Mt},setup(e,{expose:o}){const n=t.ref(!1),a=Te(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:D=>{},setGlobalModel:(D,I)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:h}=t.inject(qe,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const D=document.body.clientWidth,I=e.sourceWidth||parseFloat(e.width);return D/I||1}else return 1});function f(D,I){const O=I.find(R=>R.id===e.id);if(O)for(const R of D)R.left=parseFloat(R.left)-parseFloat(O.sourceLeft||O.left)+"px",R.top=parseFloat(R.top)-parseFloat(O.sourceTop||O.top)+"px"}const g=D=>{const I=D.sort((B,C)=>parseFloat(B.top)-parseFloat(C.top))[0],O=D.sort((B,C)=>parseFloat(B.left)-parseFloat(C.left))[0],R=D.map(B=>parseFloat(B.left)+parseFloat(B.width)).sort((B,C)=>C-B)[0],T=D.map(B=>parseFloat(B.top)+parseFloat(B.height)).sort((B,C)=>C-B)[0];if(O&&R&&I&&T){const B=parseFloat(O.left),C=parseFloat(I.top);return{width:R-B,height:T-C,left:B}}else return{width:0,height:0,left:0}},m=t.ref({}),u=D=>{var M,q;const I=[],{graphicConfig:O,id:R,componentList:T,keyFieldMap:B,unitInterval:C,colNum:_}=e;let p=_e.cloneDeep(T),A=[];if((M=t.unref(r))!=null&&M.length)for(const U of t.unref(r))A.push(U),(q=U==null?void 0:U.componentList)!=null&&q.length&&A.push(...U.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:U}=O.pageConfig||{};A=O.componentList||[],A.push(e),p=ma(U,_e.cloneDeep(A),R)}f(p,A);const L=g(p);if(D!=null&&D.length){const{width:U,left:F,height:z}=L;let V=0,N=0;D.forEach((P,j)=>{P.index=j+1;const $=Nl(),W=_e.cloneDeep(p);for(const K of W){const ne=B.find(ae=>ae.keyName===K.keyName),oe=Nl();if(K.left=(parseFloat(K.left)+V)*t.unref(y)+"px",K.top=(parseFloat(K.top)+N)*t.unref(y)+"px",K.scale=t.unref(y),K.id=oe,K.keyName=K.name+"_"+oe,K.unitId=$,ne!=null&&ne.fieldName){const ae=K.text.match(/\{(.+?)\}/g);switch(K.type){case"ecanText":{K.data={value:String(P[ne.fieldName])},ae!=null&&ae.length||(K.text="{value}");break}case"ecanProportion":{K.data={percent:String(P[ne.fieldName])},ae!=null&&ae.length||(K.text="{percent}");break}}}}_&&P.index%_===0?(V=0,N+=C+z):V+=C+U,I.push(...W),m.value[$]=P}),c.value={width:((_||D.length)*(U+C)+F)*t.unref(y)+"px"}}console.log("resultList",I),d.value=I},S=Ke(e),E=async()=>{var D;try{n.value=!0;const I=await S(),{rows:O=[]}=((D=I==null?void 0:I.data)==null?void 0:D.data)??{};u(O)}catch(I){console.error(I)}finally{n.value=!1}},v=()=>{switch(e.dataType){case"indicator":E();break}};Le(e,{refreshData:v,resetRecord:()=>{const D=e.id,I=s(D);l(D,{...I,RECORD:""})}}),o({refreshData:v}),l(e.id,{type:e.type,RECORD:""});const{setRequest:x}=t.inject(ze,{setRequest:D=>{}});typeof x=="function"&&x({id:e.id,requestFn:v,sortNum:e.requestSort});const w=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:h,click:D=>{let I=D.target;if(I){let O=I.getAttribute("unitId");for(;!O&&!I.className.includes("ecan-");)I=I.parentElement,O=I.getAttribute("unitId");O&&w("click",()=>{const R=s(e.id);l(e.id,{...R,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),h1="",ou=["id"];function au(e,o,n,a,r,i){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",style:t.normalizeStyle({height:e.height}),wrapStyle:{overflow:"auto"}},{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.myComponentList,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","vertical","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ou)}const Fl=ve(me(nu,[["render",au],["__scopeId","data-v-297ba9c9"]])),Oa={...Ee,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Na=Ce(Oa),Ml=["click"],Fa=t.defineComponent({name:"EcanImage",props:{...Na},setup(e){const o=Te(e),n=t.computed(()=>ut(e.imgUrl)),{pageMode:a}=t.inject(qe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(De,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Re(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||"",h=Ii(t.unref(a),c),y=e.href;let f=y||h;f=Ie(f);const g=e.target;g&&(g!=="event"?window.open(f,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),zl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Pl=Fa.setup;Fa.setup=Pl?(e,o)=>(zl(),Pl(e,o)):zl;const m1="",ru=["src"];function iu(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,ru)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const ql=ve(me(Fa,[["render",iu],["__scopeId","data-v-47ea6e7c"]])),Ma={...Ee,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},za=Ce(Ma),lu=t.defineComponent({name:"EcanIframe",props:{...za},setup(e){const o=Te(e),{contextRequestUrl:n}=t.inject(qe,{contextRequestUrl:""}),a=t.computed(()=>{let r=Ie(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${P0||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),x1="",su=["src"];function cu(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,su)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Vl=ve(me(lu,[["render",cu],["__scopeId","data-v-19bc100c"]])),Pa={...Ee,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:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},qa=Ce(Pa),Hl=["click","refreshData","resetRecord","exportTableData"],du="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",fu="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==",uu="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==",Va=t.defineComponent({name:"EcanTable",components:{Skeleton:Mt,AButton:de.Button,AInput:de.Input,ACheckboxGroup:de.CheckboxGroup,ATable:de.Table,ATableSummary:de.TableSummary,ATableSummaryRow:de.TableSummaryRow,ATableSummaryCell:de.TableSummaryCell},props:{...qa},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const G=_e.cloneDeep(e.columns);return e.isUseSeq&&G.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&G.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),G}),r=t.ref(),i=t.ref(!1),s=Te(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),h=()=>{let G=0;switch(e.size){case"small":G=50;break;case"middle":G=53;break;default:G=65;break}return G};t.watchEffect(()=>{var G;(G=l.value)!=null&&G.length&&e.height&&t.nextTick(()=>{let Q=parseFloat(e.height);const X=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ie=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let le=0;if(ie&&(Q-=(ie==null?void 0:ie.clientHeight)||0),se&&e.isSummaryFixed&&(le=(se==null?void 0:se.clientHeight)||0,Q-=le),e.paginationShow){let te=0;te=h(),te&&(Q-=te)}(X==null?void 0:X.clientHeight)>Q?c.value=Q:c.value=0,t.nextTick(()=>{if(le){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ce=(te==null?void 0:te.clientHeight)||0;le!==ce&&t.unref(c)&&(c.value=Q+le-ce)}})})});const y=t.ref([]),f=t.ref([]),g=t.ref([]),m=t.ref([]),u=t.ref(0),S=t.ref(1),E=t.ref(e.paginationPageSize||10),v=t.reactive([]),b=(G=[])=>{var Q,X;if(Array.isArray(G)&&G.length>0){let ie=G.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Q=t.unref(a))!=null&&Q.length)){const{graphicConfig:{indicators:le=[]}}=e;G.forEach((te,ce)=>{if(t.unref(a)[ce])for(const Me in t.unref(a)[ce])["dataIndex","title"].includes(Me)||(te[Me]=t.unref(a)[ce][Me]);const ge=le.find(Me=>Me.label===te.title),{showLabel:pe=""}=ge||{};pe&&(te.title=pe)})}for(let le=ie-1;le>=0;le--)(X=G[le])!=null&&X.isHidden&&G.splice(le,1);ie=G.length;for(let le=0;le<ie;le++){const te=G[le];if(le<se?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const Qe=te.dataIndex;te.sorter=(Lt,Zt)=>Lt[Qe]-Zt[Qe]}const{cellAlign:ce="center",cellColor:ge,dataIndex:pe,title:Me,tableFilter:Ze,headerCellAlign:xt,headerCellColor:_t,overflow:wn}=te;Ze&&(v.push(pe),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(Qe,Lt)=>Lt[pe].toString().toLowerCase().includes(Qe.toLowerCase())),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:_t||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(Qe,Lt)=>({style:{textAlign:ce,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(j)===Lt&&e.clickHighlight},onClick:U("click",()=>{const Zt=e.id,An=F(Zt);Qe={dataIndex:pe,title:Me,...Qe},z(Zt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&b(te.children)}}},x=(G=[])=>{var X;let Q=_e.cloneDeep(G);return(X=t.unref(m))!=null&&X.length&&(Q=_e.cloneDeep(t.unref(m))),e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Q),Q};t.watch(E,()=>{S.value=1,ne(!1)}),t.watch(r,G=>{i.value=!!G}),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(_e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([G,Q])=>{Q==="static"&&(f.value=G)},{immediate:!0});const w=t.ref({}),k=G=>{if(Array.isArray(G)){const Q=G.length,X=v,ie=X.length,se={};for(let te=0;te<Q;te++){const ce=G[te];for(let ge=0;ge<ie;ge++){const pe=X[ge];if(se[pe])se[pe].add(ce[pe]);else{const Me=new Set;Me.add(ce[pe]),se[pe]=Me}}}const le={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const ce=se[te],ge=Array.from(ce);le[te]=ge.map(pe=>({label:pe,value:pe}))}w.value=le}};t.watch(()=>[e.isReverse,y.value,f.value],()=>{const G=t.unref(y),Q=t.unref(f);if(k(Q),e.isReverse){const{columns:X,dataSource:ie}=D(_e.cloneDeep(G),_e.cloneDeep(Q));g.value=X,l.value=ie}else g.value=G,l.value=Q},{immediate:!0});const D=(G,Q)=>{const X=G[0],ie=[{title:X.title,dataIndex:"col0",key:"col0",align:"center"}];for(let le=0;le<Q.length;le++){const te=Q[le],ce="col"+(le+1);ie.push({title:te[X.dataIndex],dataIndex:ce,key:ce,align:"center"})}const se=[];for(let le=1;le<G.length;le++){const te=G[le],ce={col0:te.title};for(let ge=0;ge<Q.length;ge++){const pe=Q[ge];ce[`col${ge+1}`]=pe[te.dataIndex]}se.push(ce)}return{columns:ie,dataSource:se}},I=t.ref(""),O=Pe(e),R=async(G=!0,Q={})=>{var X;try{G&&(n.value=!0),t.unref(I)&&(Q.orderCondition=t.unref(I)),e.paginationShow&&(Q={pageNum:t.unref(S),pageSize:t.unref(E)||"10",layer:"1",...Q});const ie=await O(Q),{rows:se=[],total:le=0}=((X=ie==null?void 0:ie.data)==null?void 0:X.data)||{};if(u.value=le,Array.isArray(se)&&(f.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ce=te.find(ge=>ge.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const ge=se.filter(pe=>!pe.绩效总额).map(pe=>pe.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{de.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(ie){console.error(ie)}finally{n.value=!1}},T=({current:G},Q,X)=>{if(S.value=G,X&&Object.keys(X).length>0){const{field:ie,order:se}=X,te={ascend:"asc",descend:"desc"}[se];ie!=null&&te!=null&&te?I.value=ie+" "+te:te||(I.value="")}e.isSortByFront||ne(!1)},B=t.computed(()=>{const G=e.simple,Q=[e.paginationPosition],X={};return e.isShowTotal&&(X.showTotal=ie=>`共 ${ie} 条数据`),e.paginationShow&&{simple:G,position:Q,total:t.unref(u),current:t.unref(S),pageSize:t.unref(E)||"10",showSizeChanger:!1,size:"large",...X}}),C=G=>+G==1?"是":+G==0?"否":G,_=(G,Q)=>{const{format:X,retentiondigit:ie,customFormatter:se,defaultVal:le}=Q;let te="";if(X==null||X==="")te=G;else{const ce={money:Io,percentage:Sn,contrast:Sn,boolean:C,decimals:$c,custom:Ei};ce[X]||(te=""),X==="decimals"?te=ce[X](G,ie)||"":X==="custom"?te=ce[X](G,se)||"":te=ce[X](G)||""}return te||(te=le),te},p=G=>G==="contrast"?"upDown":"",A=G=>{const{text:Q,format:X,declineColor:ie="#39cf93",increaseColor:se="#ff512e"}=G;if(X==="contrast"){const le={fontSize:e.fontSize},te=parseFloat(Q+"");return te>=0?le.color=se:te<0&&(le.color=ie),le}else return{}},L=t.computed(()=>{const{fontSize:G}=e;return{width:G,height:G,textIndent:`-${parseFloat(G)*2}px`,overflow:"hidden"}}),M=G=>{const{text:Q,declineColor:X="#39cf93",increaseColor:ie="#ff512e"}=G,{fontSize:se}=e,le=parseFloat(Q+""),te={width:se,verticalAlign:"unset"};return le>=0?te.filter=`drop-shadow(${ie||"#ff512e"} ${se} -1px)`:le<0&&(te.filter=`drop-shadow(${X||"#39cf93"} ${se} -1px)`),te},q=G=>{const Q=parseFloat(G+"");if(Q>=0)return Fo;if(Q<0)return Mo},U=Re(e),{getGlobalModel:F,setGlobalModel:z}=t.inject(De,{getGlobalModel:G=>{},setGlobalModel:(G,Q)=>{}});z(e.id,{type:e.type,RECORD:""});const V=(G=[],Q=[])=>{const X=G.map(ie=>({title:ie,dataIndex:ie,key:ie}));m.value=_e.cloneDeep(X),y.value=x(X),f.value=Q},N=Ke(e),P=async(G=!0)=>{var Q,X,ie,se;try{G&&(n.value=!0);const le=t.unref(I).split(" "),te={};e.isSortByFront||(te.sort={order:le[1],field:le[0]});const ce=await N(te);V((X=(Q=ce==null?void 0:ce.data)==null?void 0:Q.data)==null?void 0:X.columns,(se=(ie=ce==null?void 0:ce.data)==null?void 0:ie.data)==null?void 0:se.rows)}catch(le){console.error(le)}finally{n.value=!1}},j=t.ref(-1),$=(G,Q)=>({onClick:U("rowClick",()=>{const X=e.id,ie=F(X);z(X,{...ie,type:e.type,RECORD:G}),j.value=Q})}),{loadedData:W}=t.inject(vt,{loadedData:{}}),K=t.ref(!1);t.watch(W,G=>{if(e.dataType==="indicator"){const Q=on(e.graphicConfig);Q!=null&&Q.length&&(!t.unref(K)&<(e.graphicConfig,G)?(K.value=!0,ne()):lt(e.graphicConfig,G)||(K.value=!1))}},{deep:!0});const ne=(G=!0)=>{switch(e.dataType){case"request":R(G);break;case"indicator":lt(e.graphicConfig,t.unref(W))&&P(G);break}},oe=()=>{const G=e.id,Q=F(G);z(G,{...Q,type:e.type,RECORD:""})},ae=t.computed(()=>{const G=t.unref(g);let Q=0;const{subTotalColumn:X,subTotalName:ie}=e;X&&(Q=G.findIndex(ge=>ge.dataIndex===X),Q<0&&(Q=0));const se=[];let le=0;for(let ge=0;ge<G.length;ge++){const pe=G[ge],{isCalcTotal:Me}=pe;ge===Q?se.push({...pe,total:ie}):Me?(se.push({...pe,index:ge,total:0}),le++):se.push({...pe})}if(le===0)return[];const te=t.unref(l),ce=J(se);for(let ge=0;ge<ce.length;ge++){const pe=ce[ge];let Me=0;const{isCalcTotal:Ze,dataIndex:xt}=pe;if(Ze===!0){for(let _t=0;_t<te.length;_t++){const Qe=+te[_t][xt];isNaN(Qe)||(Me=new is.Big(Me).add(Qe).toNumber())}pe.total=Me}}return ce});function J(G){var X;const Q=[];for(const ie of G)(X=ie.children)!=null&&X.length?Q.push(...J(ie.children)):Q.push(ie);return Q}const{setRequest:Y}=t.inject(ze,{setRequest:G=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:ne,sortNum:e.requestSort}),o({refreshData:ne});const ee=(G="",Q)=>Ie(G,Q),re=G=>{if(G!=="event")return{self:"_self",blank:"_blank"}[G]},xe=(G,Q="")=>{G==="event"&&window.parent.postMessage({type:"openPage",url:Q},"*")},Se=(G,Q)=>{G(Q.filterCheckboxGroupValue)},Be=(G,Q)=>{G({confirm:!0}),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[]},Oe=()=>{},we=G=>{const Q=G.dataIndex;if(typeof Q=="string"){let X=t.unref(w)[Q];const ie=t.unref(G.filterOptionsInputValue).trim();return Array.isArray(X)?(X=X.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ie.toLowerCase()):!0),X):[]}return[]},Ae=async()=>{var pe,Me;const G="EXPORT_KEY";de.message.loading({key:G,content:"正在导出...",duration:0});let Q=[];if(e.dataType==="static")Q=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};t.unref(I)&&(Ze.orderCondition=t.unref(I));const xt=await O(Ze);Q=((Me=(pe=xt==null?void 0:xt.data)==null?void 0:pe.data)==null?void 0:Me.rows)||{}}const X=t.unref(g),ie=[],se=[];X==null||X.forEach(Ze=>{ie.push(Ze.dataIndex),se.push(Ze.title)});const le=Q.map(Ze=>_e.pick(Ze,ie)),te=Qt.utils.book_new(),ce=Qt.utils.aoa_to_sheet([se]),ge=Qt.utils.sheet_add_json(ce,le,{skipHeader:!0,origin:"A2"});Qt.utils.book_append_sheet(te,ge,"sheet"),Qt.writeFile(te,"表格数据.xlsx"),de.message.success({key:G,content:"导出成功"})},Ve=(G,Q=2)=>{const X=+G*100;return isNaN(X)||X<=0?0:X>=100?100:X.toFixed(Q)};Le(e,{resetRecord:oe,refreshData:ne,exportTableData:Ae});const Ue=(G,Q)=>{let X=null;return e.stripedShow&&(X=Q%2===1?"table-striped":null),X},He=t.computed(()=>{let G=0;const{height:Q,isPageBottom:X}=e;return X&&Q&&(G=parseFloat(Q)-h()),G?G+"px":"100%"}),We=t.computed(()=>{let G="#071655";return e.headerBackgroundColor&&(G="transparent"),G}),Ge=t.computed(()=>{let G="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(G="transparent"),G}),ht=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let G="";const{paginationColor:Q,paginationBgColor:X,activePaginationColor:ie,activePaginationBgColor:se,hoverBackgroundColor:le}=e;return Q&&(G+="p-color "),X&&(G+="p-bg-color "),ie&&(G+="active-p-color "),se&&(G+="active-p-bg-color "),le&&(G+="hover-bg-color "),G});return{x:d,y:c,style:s,customRow:$,pagination:B,formatFn:_,contrastClass:p,tableChange:T,summaryList:ae,loading:n,onTouchHrefEvent:xe,handleHref:ee,handleHrefTarget:re,useRowIndex:j,tableColumns:g,tableDataSource:l,useFilterOptions:we,useSetSelectedKeys:Se,onResetFilter:Be,onSearchFilterOptions:Oe,exportTableData:Ae,handleProgressText:Ve,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:Ue,tableHeight:He,tableHeaderBgColor:We,tableBodyBgColor:Ge,getChgStyle:A,chgBoxStyle:L,getChgBoxImgStyle:M,getChgBoxImgSrc:q,seqIcon1:du,seqIcon2:fu,seqIcon3:uu,iconSize:ht,containerClass:tt,getCellStyle:G=>{const{overflow:Q}=G;if(Q==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Q==="wrap")return{}}}}}),Wl=()=>{t.useCssVars(e=>({"35f7e0e1":e.stripedColor,f8e64a50:e.tableHeaderBgColor,"371eb03a":e.tableBodyBgColor,"2776154f":e.paginationBgColor,"04097258":e.paginationColor,"5b8ff6a9":e.activePaginationBgColor,"55f1b6ae":e.activePaginationColor,"0e9c5c24":e.hoverBackgroundColor}))},jl=Va.setup;Va.setup=jl?(e,o)=>(Wl(),jl(e,o)):Wl;const b1="",v1="",hu=e=>(t.pushScopeId("data-v-2a78e5dc"),e=e(),t.popScopeId(),e),gu=["id"],mu={key:0,class:"table-tool"},yu=t.createTextVNode("导出数据"),xu=t.createTextVNode(" 搜索 "),pu=t.createTextVNode(" 重置 "),bu=["src","width","height"],vu=["src","width","height"],Su=["src","width","height"],Cu={key:1},wu={key:1,class:"action-list"},Au=["href","target","onClick"],ku={key:2,class:"progress-cell"},Tu=["title"],Bu=["title"],Eu=["src"],Du=["title"],Ru=["src"],Iu={class:"ant-pagination-options-quick-jumper"},_u=hu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Lu(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"),h=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),f=t.resolveComponent("a-table"),g=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(g,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",mu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[yu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(f,{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:u,selectedKeys:S,setSelectedKeys:E,confirm:v,clearFilters:b})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:u.filterOptionsInputValue,"onUpdate:value":x=>u.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:u.filterCheckboxGroupValue,"onUpdate:value":x=>u.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:x=>e.useSetSelectedKeys(E,u)},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:()=>v()},{default:t.withCtx(()=>[xu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(x=>e.onResetFilter(b,u),["stop"])},{default:t.withCtx(()=>[pu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:S,text:E,record:v})=>{var b,x,w,k;return[u.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,bu)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,vu)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,Su)):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",Cu,t.toDisplayString(S+1),1))],64)):u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",wu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(D,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(D.href,v),target:e.handleHrefTarget(D.target),style:t.normalizeStyle({color:D.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:O=>e.onTouchHrefEvent(D.target,e.handleHref(D.href,v))},t.toDisplayString(D.title),13,Au)]))),128))])):u.format==="progress"?(t.openBlock(),t.createElementBlock("div",ku,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:u.progressColor||"#1890ff",height:u.progressWidth||"18px",width:`${e.handleProgressText(E,u.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(E)<100?u.progressTextColor||"#333":u.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(E,u.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(u)})},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((b=u==null?void 0:u.customFormatter)==null?void 0:b.split("{value}")[0])||""},t.toDisplayString(((x=u==null?void 0:u.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Tu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle(e.getChgStyle({...u,text:E})),title:u.format!=null?e.formatFn(E,u):E},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...u,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Eu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(u.format!=null?e.formatFn(E,u):E||(u==null?void 0:u.defaultVal)),1)],14,Bu),u.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((w=u==null?void 0:u.customFormatter)==null?void 0:w.split("{value}")[1])||""},t.toDisplayString(((k=u==null?void 0:u.customFormatter)==null?void 0:k.split("{value}")[1])||""),9,Du)):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(h,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:u.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(u.format)]),style:t.normalizeStyle({...e.getChgStyle({...u,text:u.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[u.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...u,text:u.total})),src:e.getChgBoxImgSrc(u.total)},null,12,Ru)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((u.format!=null||u.format!=="")&&e.formatFn(u.total,u)),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",Iu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=u=>e.pageSize=u)},null,512),[[t.vModelText,e.pageSize]]),_u])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,gu)}const Gl=ve(me(Va,[["render",Lu],["__scopeId","data-v-2a78e5dc"]])),Ha={...Ee,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"},Wa=Ce(Ha),Ul=["click"];Je.use([Et.CanvasRenderer,gt.MapChart,gt.ScatterChart,ke.VisualMapComponent,ke.TooltipComponent,ke.GraphicComponent]);const Ou=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Wa},setup(e){const o=Pe(e),n=Pe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Te(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>ut(e.geoBackgroundImage)),c=t.computed(()=>ut(e.backgroundImage)),h=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+ut(C):"circle"}),f=C=>{let _=e.tooltipFormatter;const p=_.match(/\{(.+?)\}/g);if(p==null||p.length===0)return _;for(let A=0;A<p.length;A++){const L=p[A];let M=L.slice(1,-1).trim();const q=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=M.match(q);for(let F=0;F<U.length;F++){const z=U[F],V=C[z];V!=null&&(M=M.replace(z,V))}_=_.replace(L,M)}return _.split(`
|
|
120
|
-
`)},g=t.ref(!1),m=t.ref("");let u=new AbortController;const S=(C,_)=>{const p=u.signal;g.value=!0,r.value=C,n({name:C,signal:p}).then(A=>{var L,M;if(A){const q=((M=(L=A==null?void 0:A.data)==null?void 0:L.data)==null?void 0:M.rows)||[];let U="";for(const F of q){const z=f(F)||[];if(z!=null&&z.length)for(const V of z)U+=`<div style="word-break: break-all;white-space: normal;">${V}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,_(t.unref(m),U)}else p.aborted?i.value="Loading":i.value=C,_(t.unref(m),i.value);g.value=!1})},E=t.computed(()=>{const C=e.geoCenter;let _;return typeof C=="string"&&C!==""&&(_=C.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:_,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(p,A,L)=>{m.value=A;const{name:M=""}=p,{requestUrl:q}=e.tooltipRequestData;if(!q)return M;if(t.unref(g))t.unref(r)!==M&&(u.abort(),u=new AbortController);else{if(t.unref(r)===M)return t.unref(i);S(M,L)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(h),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}]}}),v=t.ref(!1),b=async()=>{var p;v.value=!1;const C=e.mapJson,_=`map-${e.id}`;if(C!=null&&C.path){const A=await ft(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+C.path);Je.registerMap(_,(A==null?void 0:A.data)||{})}else Je.registerMap(_,{});v.value=!0};t.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var C,_;if(e.dataType==="request"){v.value=!1;try{const p=await o(),A=((_=(C=p==null?void 0:p.data)==null?void 0:C.data)==null?void 0:_.rows)||{},L=`map-${e.id}`;if(A!=null&&A.path){const M=await ft(A.path);Je.registerMap(L,(M==null?void 0:M.data)||{})}else Je.registerMap(L,{})}catch(p){console.error(p)}finally{v.value=!0}}},w=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:k,setGlobalModel:D}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,_)=>{}}),O=Re(e)("click",()=>{const C=k(e.id);D(e.id,{...C,RECORD:t.unref(a)})});Le(e,{refreshData:w});const{setRequest:R}=t.inject(ze,{setRequest:C=>{}});return typeof R=="function"&&R({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:v,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),C1="",Nu=["src"];function Fu(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,Nu),[[t.vShow,!1]])],4)}const $l=ve(me(Ou,[["render",Fu],["__scopeId","data-v-10f150ac"]])),ja={...Ee,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"},Ga=Ce(ja),Yl=["selectChange","refreshData"],Mu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...Ga},setup(e,{expose:o}){const n=Te(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var B;const{mode:T}=e;return(B=t.unref(i))!=null&&B.length?s.value:T==="multiple"||T==="tags"||T==="combobox"?[]:""},set:T=>{s.value=T}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:T=>{},setGlobalModel:(T,B)=>{},getRecordValueByKeyName:T=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:T,selectFirstOption:B,value:C}=e,_=h(C),p=y.value;if(T==="multiple"||T==="tags"||T==="combobox"){if(_)s.value=_.split(",");else if(B){const A=t.unref(i)[0];s.value=A?[A[p]]:[]}}else if(_)s.value=_;else if(B){const A=t.unref(i)[0];s.value=A?A[p]:""}},{immediate:!0});const f=(T,B)=>{const C=y.label,_=y.value;let p;const A=B[C],L=B[_];return A!=null?p=A:L!=null&&(p=L),(p==null?void 0:p.toLowerCase().indexOf(T==null?void 0:T.toLowerCase()))>=0},g=T=>{const{label:B,value:C,options:_}=e.dataFieldNames;if(_&&Array.isArray(T))if(T.some(p=>_ in p)){const p={},A=[];T.forEach(L=>{p[L[_]]||(p[L[_]]=[]),p[L[_]].push({[B]:L[B],[C]:L[C]})});for(const L in p)A.push({[B]:L,[_]:p[L]});return A}else return T;else if(!_)return T},m=t.ref(!1),u=async()=>{var T,B;if(e.dataType==="request"){m.value=!0;try{const C=await r();if(i.value=g(((B=(T=C==null?void 0:C.data)==null?void 0:T.data)==null?void 0:B.rows)||[]),e.selectFirstOption){let _=t.unref(i)[0];if(y.options){const p=_[y.options];p&&p.length&&(_=p[0])}s.value=_[y.value]}}catch(C){console.error(C)}finally{m.value=!1}}},S=t.computed(()=>{let T=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const B=y.label,C=y.value;if(e.mode==="multiple")T=t.unref(i).filter(_=>t.unref(s).includes(_[C])).map(_=>_[B]);else{const _=t.unref(i).find(p=>t.unref(s)===p[C]);_&&(T=_[B])}}return T}),E=t.ref([]),v=t.computed(()=>{const T={};if(e.mode!=="multiple"){const B=t.unref(E).find(C=>C.value===t.unref(s));B&&(T.itemCodes=B.item_codes)}return T}),b=t.computed(()=>{const{value:T,label:B}=y,C=t.unref(i).find(_=>_[T]===t.unref(l));return C?{label:C[B],value:C[T]}:{}});c(e.id,{type:e.type,value:S,...t.unref(v),recordData:t.unref(b)});const w=Re(e)("selectChange",()=>{const T=e.id,B=d(T);c(T,{...B,...t.unref(v),RECORD:S,recordData:t.unref(b)})}),k=(T=[])=>{if(i.value=g(T),e.selectFirstOption){let B=t.unref(i)[0];if(y.options){const C=B[y.options];C&&C.length&&(B=C[0])}s.value=B[y.value]}c(e.id,{type:e.type,value:S,...t.unref(v),recordData:t.unref(b)})},D=Ke(e),I=async()=>{var T;try{m.value=!0;const B=await D(),{data:C}=(B==null?void 0:B.data)||{},_=y.label,p=y.value;if(C){const A=((T=B==null?void 0:B.data)==null?void 0:T.data)??[];E.value=A;const L=A.map(U=>({[_]:U.label,[p]:U.value})),{id:M}=e,q=d(M);c(M,{...q,...t.unref(v)}),k(L)}else k([])}catch(B){console.error(B)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{I();break}case"request":u();break}};Le(e,{selectChange:w,refreshData:O});const{setRequest:R}=t.inject(ze,{setRequest:({id:T,sortNum:B,requestFn:C})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:w,options:i,filterOption:f,loading:m,resultValue:l}}}),A1="",k1="";function zu(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 Kl=ve(me(Mu,[["render",zu],["__scopeId","data-v-3639c038"]])),Zl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Cl,EcanBorder:Il,EcanButton:rl,EcanCheckbox:ll,EcanCirculate:Fl,EcanComboGraph:Bl,EcanCounter:Ui,EcanCustomGraph:kl,EcanDataSelect:Kl,EcanDatePicker:Ji,EcanIframe:Vl,EcanImage:ql,EcanInput:Yi,EcanLine:vl,EcanList:Hi,EcanMap:$l,EcanModal:kt,EcanPageConfig:_i,EcanPie:pl,EcanProportion:ji,EcanProviderConfig:Li,EcanRadar:Dl,EcanRadio:hl,EcanRangePicker:ol,EcanScatter:Al,EcanScrollText:zi,EcanSelect:cl,EcanTable:Gl,EcanTabs:Ll,EcanText:Mi,EcanTimeDisplay:qi,EcanTreeSelect:fl,barComponentProps:ba,barEvents:Sl,barProps:pa,borderComponentProps:Da,borderEvents:Rl,borderProps:Ea,buttonComponentProps:na,buttonEvents:al,buttonProps:ta,checkboxComponentProps:aa,checkboxEvents:il,checkboxProps:oa,circulateComponentProps:La,circulateEvents:Ol,circulateProps:_a,comboGraphComponentProps:ka,comboGraphEvents:Tl,comboGraphProps:Aa,counterComponentProps:Uo,counterEvents:Gi,counterProps:Go,customGraphComponentProps:wa,customGraphProps:Ca,dataSelectComponentProps:Ga,dataSelectEvents:Yl,dataSelectProps:ja,datePickerComponentProps:Zo,datePickerEvents:Ki,datePickerProps:Ko,iframeComponentProps:za,iframeProps:Ma,imageComponentProps:Na,imageEvents:Ml,imageProps:Oa,inputComponentProps:Yo,inputEvents:$i,inputProps:$o,lineComponentProps:xa,lineEvents:bl,lineProps:ya,listComponentProps:Ho,listEvents:Vi,listProps:Vo,mapComponentProps:Wa,mapEvents:Ul,mapProps:Ha,modalComponentProps:ga,modalEvents:ml,modalProps:ha,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:ua,pieEvents:gl,pieProps:fa,proportionComponentProps:jo,proportionEvents:Wi,proportionProps:Wo,providerConfig:_o,providerConfigComponentProps:Lo,radarComponentProps:Ba,radarEvents:El,radarProps:Ta,radioComponentProps:da,radioEvents:ul,radioProps:ca,rangePickerComponentProps:Xo,rangePickerEvents:Xi,rangePickerProps:Jo,scatterComponentProps:Sa,scatterEvents:wl,scatterProps:va,selectComponentProps:ia,selectEvents:sl,selectProps:ra,tableComponentProps:qa,tableEvents:Hl,tableProps:Pa,tabsComponentProps:Ia,tabsEvents:_l,tabsProps:Ra,textComponentProps:No,textEvents:Oi,textProps:Oo,timeDisplayComponentProps:qo,timeDisplayEvents:Pi,timeDisplayProps:Po,treeSelectComponentProps:sa,treeSelectEvents:dl,treeSelectProps:la},Symbol.toStringTag,{value:"Module"})),Pu={install:e=>{Object.keys(Zl).forEach(o=>{const n=Zl[o];n.install&&e.use(n)})}};H.EcanBar=Cl,H.EcanBorder=Il,H.EcanButton=rl,H.EcanCheckbox=ll,H.EcanCirculate=Fl,H.EcanComboGraph=Bl,H.EcanCounter=Ui,H.EcanCustomGraph=kl,H.EcanDataSelect=Kl,H.EcanDatePicker=Ji,H.EcanIframe=Vl,H.EcanImage=ql,H.EcanInput=Yi,H.EcanLine=vl,H.EcanList=Hi,H.EcanMap=$l,H.EcanModal=kt,H.EcanPageConfig=_i,H.EcanPie=pl,H.EcanProportion=ji,H.EcanProviderConfig=Li,H.EcanRadar=Dl,H.EcanRadio=hl,H.EcanRangePicker=ol,H.EcanScatter=Al,H.EcanScrollText=zi,H.EcanSelect=cl,H.EcanTable=Gl,H.EcanTabs=Ll,H.EcanText=Mi,H.EcanTimeDisplay=qi,H.EcanTreeSelect=fl,H.barComponentProps=ba,H.barEvents=Sl,H.barProps=pa,H.borderComponentProps=Da,H.borderEvents=Rl,H.borderProps=Ea,H.buttonComponentProps=na,H.buttonEvents=al,H.buttonProps=ta,H.checkboxComponentProps=aa,H.checkboxEvents=il,H.checkboxProps=oa,H.circulateComponentProps=La,H.circulateEvents=Ol,H.circulateProps=_a,H.comboGraphComponentProps=ka,H.comboGraphEvents=Tl,H.comboGraphProps=Aa,H.compatibleMobileList=xl,H.counterComponentProps=Uo,H.counterEvents=Gi,H.counterProps=Go,H.customGraphComponentProps=wa,H.customGraphProps=Ca,H.dataSelectComponentProps=Ga,H.dataSelectEvents=Yl,H.dataSelectProps=ja,H.datePickerComponentProps=Zo,H.datePickerEvents=Ki,H.datePickerProps=Ko,H.default=Pu,H.handleScrollCombinations=yl,H.iframeComponentProps=za,H.iframeProps=Ma,H.imageComponentProps=Na,H.imageEvents=Ml,H.imageProps=Oa,H.inputComponentProps=Yo,H.inputEvents=$i,H.inputProps=$o,H.lineComponentProps=xa,H.lineEvents=bl,H.lineProps=ya,H.listComponentProps=Ho,H.listEvents=Vi,H.listProps=Vo,H.mapComponentProps=Wa,H.mapEvents=Ul,H.mapProps=Ha,H.modalComponentProps=ga,H.modalEvents=ml,H.modalProps=ha,H.moveToComponentList=ma,H.pageConfig=Pn,H.pageConfigComponentProps=qn,H.pieComponentProps=ua,H.pieEvents=gl,H.pieProps=fa,H.proportionComponentProps=jo,H.proportionEvents=Wi,H.proportionProps=Wo,H.providerConfig=_o,H.providerConfigComponentProps=Lo,H.radarComponentProps=Ba,H.radarEvents=El,H.radarProps=Ta,H.radioComponentProps=da,H.radioEvents=ul,H.radioProps=ca,H.rangePickerComponentProps=Xo,H.rangePickerEvents=Xi,H.rangePickerProps=Jo,H.scatterComponentProps=Sa,H.scatterEvents=wl,H.scatterProps=va,H.selectComponentProps=ia,H.selectEvents=sl,H.selectProps=ra,H.tableComponentProps=qa,H.tableEvents=Hl,H.tableProps=Pa,H.tabsComponentProps=Ia,H.tabsEvents=_l,H.tabsProps=Ra,H.textComponentProps=No,H.textEvents=Oi,H.textProps=Oo,H.timeDisplayComponentProps=qo,H.timeDisplayEvents=Pi,H.timeDisplayProps=Po,H.treeSelectComponentProps=sa,H.treeSelectEvents=dl,H.treeSelectProps=la,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
118
|
+
<span style="color: ${K||e.color};${t.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+$).toFixed(2)}%</span>
|
|
119
|
+
</span>`)}else e.format==="percent"?($=+$,isNaN($)||($=($*100).toFixed(2),I=I.replace(V,`<span class="${U}" style="color:${f($)||e.variableColor};font-size:${t.unref(i)};${t.unref(u)}">${$}%</span>`))):e.format==="money"?($=+$,isNaN($)||($=Lo($),I=I.replace(V,`<span class="${U}" style="color:${f($)||e.variableColor};font-size:${t.unref(i)};${t.unref(u)}">${$}</span>`))):W==="thousands"?($=+$,isNaN($)||($=$c($),I=I.replace(V,`<span class="${U}" style="color:${f($)||e.variableColor};font-size:${t.unref(i)};${t.unref(u)}">${$}</span>`))):I=I.replace(V,`<span class="${U}" style="color:${f($)||e.variableColor};font-size:${t.unref(i)};${t.unref(u)}">${$}</span>`)}}if(q||(q=`<span class="${U}" style="color: ${f(I)};${t.unref(u)}">${I}</span>`),e.unitShow&&e.unitText){const{unitTop:z,unitLeft:V}=e;let M="position:relative;";z&&(M+=`top:${z};`),V&&(M+=`margin-left:${V};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${M};${t.unref(u)}'>${e.unitText}</span>`}return e.showEllipsis&&(q=`<span class="show-ellipsis" style="display: inline-block;">${q}</span>`),q});function f(L){let S="",A=!1;const{targetValue:I,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":L!==I&&(A=!0);break;case"greater":L<=I&&(A=!0);break;case"greater_equal":L<I&&(A=!0);break;case"less":L>=I&&(A=!0);break;case"less_equal":L>I&&(A=!0);break}A&&(S=q)}return S}const{pageMode:v}=t.inject(He,{pageMode:"normal"}),B=Pe(e),b=t.ref(!1),p=async()=>{var L;try{b.value=!0;const S=await B();r.value=((L=S==null?void 0:S.data)==null?void 0:L.data)||{}}catch(S){console.error(S)}finally{b.value=!1}},x=(L={})=>{r.value=L},w=L=>{const S=e.id,A=l(S);d(S,{...A,value:L||"",RECORD:L||""})},k=()=>{w("")},D=Qe(e),_=async()=>{var L,S;try{b.value=!0;const A=await D(),{data:I}=(A==null?void 0:A.data)||{};if(I){n.value=!1;const{columns:F=[],rows:q=[]}=((L=A==null?void 0:A.data)==null?void 0:L.data)??{},{graphicConfig:U}=e;let N={};if(F.length>0)if((S=U==null?void 0:U.dimensionList)!=null&&S.length){const z=F[0];z&&(q!=null&&q.length)&&(N={value:q[0][z]})}else{const z=F.find(V=>!!V);z&&(N={value:isNaN(q[z])?0:q[z]||0})}w(N==null?void 0:N.value),x(N)}else n.value=!0,w("NaN"),x({value:"NaN"})}catch(A){console.error(A)}finally{b.value=!1,y(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":_();break;case"request":{const{openCustomRequestData:L,customRequestName:S,customRequestField:A}=e;if(L||L===void 0)p();else{const I=h(S);I&&(r.value={[A]:I[A]})}break}}},{setRequest:R}=t.inject(ze,{setRequest:({id:L,sortNum:S,requestFn:A})=>{}});typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),Le(e,{refreshData:O,resetRecord:k}),o({refreshData:O});const T=Re(e),E=T("click",()=>{const L=document.getElementsByClassName(`ecan-text_${e.id}`);if(L!=null&&L.length&&w(L[0].innerText),setTimeout(()=>{w("")},0),!e.linkPage&&!e.href)return;const S=e.linkPage||"",A=Oi(t.unref(v),S),I=e.href;let F=I||A;F=Ie(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:I},"*"))}),C=T("valueChange",()=>{});return t.watch(()=>m.value,(L,S)=>{L!==S&&C()}),{style:a,myText:m,loading:b,click:E,textIndent:s,vFontSize:i,gradientStyle:g}}}),zi=()=>{t.useCssVars(e=>({"902d650e":e.vFontSize,"253f26b4":e.textIndent,"14fdee04":e.percentageSide}))},Pi=qo.setup;qo.setup=Pi?(e,o)=>(zi(),Pi(e,o)):zi;const fh="",uh="",od=["innerHTML"];function ad(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,od))}const qi=ve(me(qo,[["render",ad],["__scopeId","data-v-16622f13"]])),rd=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),gh="",id={class:"red"};function ld(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",id,t.toDisplayString(e.text),1)}const Vi=ve(me(rd,[["render",ld],["__scopeId","data-v-4dd9c03e"]])),Vo={...Ee,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"}},Ho=Ce(Vo),Hi=["timeChange"],sd=t.defineComponent({name:"EcanTimeDisplay",props:{...Ho},setup(e){const o=ke(e),n=()=>{const{format:c,operate:h}=e;let y=ye();if(h){const{type:u,value:g,mode:m}=h;switch(u){case"add":y=y.add(g,m);break;case"minus":y=y.subtract(g,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=Re(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:h,mode:y}=e.updateInterval||{};h&&(c=c*h);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 Le(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),yh="";function cd(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 Wi=ve(me(sd,[["render",cd],["__scopeId","data-v-b628fca2"]])),Wo={...Ee,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",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:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},jo=Ce(Wo),ji=["refreshData","click","resetRecord"],dd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",fd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",gd=t.defineComponent({name:"EcanList",components:{Skeleton:Pt,ATooltip:de.Tooltip,MarqueeScroll:qn},props:{...jo},setup(e,{expose:o}){const n=t.ref(),a=ke(e,["backgroundColor"]),r=(A,I)=>{const{format:F,customFormatter:q}=I;if(F==null||F==="")return A;const U={money:Lo,percentage:kn,contrast:kn,custom:Ii};return U[F]?F==="custom"?U[F](A,q)||"":U[F](A)||"":""},i=(A,I)=>{const F=parseFloat(A+"");if(I!=="contrast")return"";switch(!0){case F>=0:return"goUp";case F<0:return"goDown"}},s=Pe(e),l=t.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const I=await s();n.value=((A=I==null?void 0:I.data)==null?void 0:A.data.rows)||[]}catch(I){console.error(I)}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})),h=t.computed(()=>{const{columns:A,isUseSeq:I}=e;return I?[t.unref(c),...A]:A}),y=Qe(e),u=async()=>{var A;try{l.value=!0;const I=await y(),{columns:F=[],rows:q=[]}=((A=I==null?void 0:I.data)==null?void 0:A.data)??{};e.isUseSeq&&F.unshift(e.seqName),h.value.forEach((U,N)=>{(!e.isUseSeq||N!==0)&&(U.title=F[N],U.key=F[N])}),n.value=q}catch(I){console.error(I)}finally{l.value=!1}},g=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Re(e),{getGlobalModel:f,setGlobalModel:v}=t.inject(De,{getGlobalModel:A=>{},setGlobalModel:(A,I)=>{}}),B=A=>{m("click",()=>{const I=f(e.id);v(e.id,{...I,type:e.type,RECORD:A})})()};Le(e,{refreshData:g,resetRecord:()=>{const A=e.id,I=f(A);v(A,{...I,type:e.type,RECORD:""})}});const{setRequest:p}=t.inject(ze,{setRequest:({id:A,sortNum:I,requestFn:F})=>{}});typeof p=="function"&&p({id:e.id,requestFn:g,sortNum:e.requestSort}),o({refreshData:g});const x=(A,I)=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:(I?A.cellAlign:A.align)||"left",backgroundColor:A.cellColor}),w=(A,I)=>{let F=0;const q=t.unref(n).map(N=>N[I]),U=Math.max(...q);return U&&(F=A[I]/U*100),F},k=A=>{const{progressColor:I="#1890ff",progressGradientColor:F=""}=A;return F?{background:`linear-gradient(to right, ${I} 0%, ${F} 100%)`}:{backgroundColor:I||"#1890ff"}},D=t.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=t.inject(He,{pageMode:"normal"}),O=t.computed(()=>t.unref(_)!=="design"&&e.isAutoScroll),R=A=>{const{seqIconConfig:I}=e;let F=I.find(q=>q.key===A+1);return F||(F=I.find(q=>q.key==="other")),!!(F!=null&&F.icon)},T=(A,I)=>{const{seqIconConfig:F}=e;let q=F.find(U=>U.key===A+1);return q||(q=F.find(U=>U.key==="other")),I===1?q!=null&&q.icon?ut(q.icon):"":I===2?(q==null?void 0:q.color)||"#fff":""},E=A=>{const{seqIndexFormatter:I}=e,F=A+1;return I?Ie(I,{textData:{index:F}},{useNewline:!1,useSpace:!0}):F},C=t.computed(()=>parseFloat(e.itemWidth)!==100?{height:"100%"}:{}),L=t.computed(()=>!e.itemWidth||e.itemWidth==="100%"?"0":e.itemColSpan);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:h,click:B,getColumnStyle:x,getPercentage:w,getBackgroundColor:k,isShowSeqIcon:R,getSeqIconData:T,seqIcon4:dd,seqIcon5:fd,seqIcon6:ud,seqIcon7:hd,iconSize:D,isScroll:O,formatSeq:E,wrapStyle:C,colSpan:L,getText:(A,I)=>(A.format!=null||A.format!=="")&&r(I[A.key],A)}}}),ph="",bh="",md=e=>(t.pushScopeId("data-v-8c32652d"),e=e(),t.popScopeId(),e),yd={key:0,class:"title"},xd={key:0,class:"ranking"},pd=["onClick"],bd={key:0,class:"ranking"},vd=md(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Sd={class:"sort"},Cd=["src"],wd={key:1},Ad=["src","width","height"],kd=["src","width","height"],Td=["src","width","height"],Bd=["src","width","height"],Ed={key:1},Dd=["title"],Rd={key:2,class:"empty"};function Id(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",yd,[(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",xd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(h,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:h.key||y,style:t.normalizeStyle({color:h.titleColor,...e.getColumnStyle(h)})},t.toDisplayString(h.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-list-content",style:t.normalizeStyle({paddingTop:e.useTitle?e.itemRowSpan:0,height:e.useTitle?"calc(100% - 40px)":"100%"})},[t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...e.wrapStyle}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(${e.itemWidth} - ${e.colSpan})`,marginRight:e.colSpan,marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||h,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",bd,[vd,t.createElementVNode("div",Sd," Top "+t.toDisplayString(h+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,"cell")})},[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(h)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(h,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,Cd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(h,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(h)),5)],4)):(t.openBlock(),t.createElementBlock("div",wd,[h===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Ad)):h===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,kd)):h===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,Td)):h>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,Bd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(h)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",Ed,t.toDisplayString(e.formatSeq(h)),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("span",{key:2,title:e.getText(y,c)},t.toDisplayString(e.getText(y,c)),9,Dd))],6)}),128))],12,pd))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(t.openBlock(),t.createElementBlock("div",Rd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Gi=ve(me(gd,[["render",Id],["__scopeId","data-v-8c32652d"]])),Go={...Ee,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:{}},Uo=Ce(Go),Ui=["refreshData","click"],_d=t.defineComponent({name:"EcanProportion",components:{AProgress:de.Progress,Skeleton:Pt},props:{...Uo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(He,{pageMode:"normal"}),r=ke(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),w=+e.variableDefaultValue;if(x==null)return isNaN(w)?0:w;const k=e.text.match(/\{.+\}/g)||[];let D;const _=new Set(Object.keys(x));for(let O=0;O<k.length;O++){const R=k[O],T=R.slice(1,R.length-1);if(_.has(T)){D=x[T];break}}return typeof D=="number"?D=D*100:typeof D=="string"&&!isNaN(+D)?D=+D*100:isNaN(w)?D=0:D=w*100,e.decimalFormat&&(D=+D.toFixed(2)),D}),d=t.computed(()=>{var _;let x=e.text;if(x==="")return t.unref(l);const w=e.variableDefaultValue,k=t.unref(s),D=x.match(/\{.+\}/g)||[];for(let O=0;O<D.length;O++){const R=D[O];let T=R.slice(1,R.length-1);const E=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=R.match(E);for(let S=0;S<(C==null?void 0:C.length);S++){const A=(_=C[S])==null?void 0:_.trim();k[A]!=null&&(T=T.replace(A,k[A]))}let L=T;try{/\(.*\)/g.test(T)&&(L=ln(T))}catch(S){console.error(S)}typeof+L=="number"&&!isNaN(+L)?(L=+L*100,e.decimalFormat&&(L=L.toFixed(2))):L=w,x=x.replace(R,L+"")}return t.unref(n)?"NaN":x}),c=Pe(e),h=t.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{h.value=!0;const w=await c();s.value=((x=w==null?void 0:w.data)==null?void 0:x.data)||{}}catch(w){console.error(w)}finally{h.value=!1}},u=(x={})=>{s.value=x},g=Qe(e),m=async()=>{var x;try{h.value=!0;const w=await g(),{data:k}=(w==null?void 0:w.data)||{};if(k){n.value=!1;const{columns:D=[],rows:_=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let O={};if(D.length>0){const R=D.find(T=>!!T);R&&(O={percent:_[R]})}u(O)}else n.value=!0,u({percent:"NaN"})}catch(w){console.error(w)}finally{h.value=!1}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Le(e,{refreshData:f}),o({refreshData:f});const B=Re(e)("click",()=>{}),{setRequest:b}=t.inject(ze,{setRequest:({id:x,sortNum:w,requestFn:k})=>{}});typeof b=="function"&&b({id:e.id,requestFn:f,sortNum:e.requestSort});const p=t.computed(()=>{const{gradientShow:x,gradientColor:w,gradientOffset:k,strokeColor:D}=e;let _=D;return x&&w&&(_={"0%":D,[`${k*100}%`]:w}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:h,click:B,customStrokeColor:p}}}),Sh="";function Ld(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 $i=ve(me(_d,[["render",Ld],["__scopeId","data-v-cf942b5f"]])),$o={...Ee,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},Yo=Ce($o),Yi=["refreshData","click","resetRecord"],Od=t.defineComponent({name:"EcanCounter",components:{Skeleton:Pt},props:{...Yo},setup(e,{expose:o}){const n=t.ref(),a=ke(e),r=t.computed(()=>({width:e.unitWidth,height:e.unitHeight,marginRight:e.unitInterval+"px"})),i=t.computed(()=>({color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}));t.watch(()=>[e.data,e.dataType],([p,x])=>{x==="static"&&(n.value=p)},{immediate:!0});const{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}}),c=Re(e)("click",()=>{const p=s(e.id);l(e.id,{...p,type:e.type,value:t.unref(n)})}),h=()=>{const p=e.id,x=s(p);l(p,{...x,type:e.type,value:""})},y=Pe(e),u=t.ref(!1),g=async()=>{var p,x;try{u.value=!0;const w=await y();n.value=((x=(p=w==null?void 0:w.data)==null?void 0:p.data)==null?void 0:x.value)||""}catch(w){console.error(w)}finally{u.value=!1}},m=Qe(e),f=async()=>{var p;try{u.value=!0;const x=await m(),{data:w}=(x==null?void 0:x.data)||{};let k="";if(w){const{columns:D=[],rows:_=[]}=((p=x==null?void 0:x.data)==null?void 0:p.data)??{};if(D.length>0){const O=D.find(R=>!!R);O&&(k=_[O]||"")}}n.value=String(k)}catch(x){console.error(x)}finally{u.value=!1}},v=()=>{switch(e.dataType){case"indicator":f();break;case"request":g();break}},B=t.computed(()=>{const p=[],{digits:x}=e;console.log("myValue",n.value);const w=t.unref(n)?t.unref(n).split("").reverse().join(""):"";for(let k=0;k<x;k++)w&&w[k]?p.push(w[k]):p.push("0");return p.reverse()});Le(e,{refreshData:v,resetRecord:h});const{setRequest:b}=t.inject(ze,{setRequest:({id:p,sortNum:x,requestFn:w})=>{}});return typeof b=="function"&&b({id:e.id,requestFn:v,sortNum:e.requestSort}),o({refreshData:v}),{style:a,valueList:B,digitsStyle:r,fontStyle:i,loading:u,useImagePath:ut,click:c}}}),wh="",Nd=["src"];function Fd(e,o,n,a,r,i){var l;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:"ecan-counter",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[(l=e.valueList)!=null&&l.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.valueList,(d,c)=>(t.openBlock(),t.createElementBlock("div",{class:"digits-item",style:t.normalizeStyle(e.digitsStyle),key:c},[e.counterBackgroundImage?(t.openBlock(),t.createElementBlock("img",{key:0,class:"item-image",src:e.useImagePath(e.counterBackgroundImage)},null,8,Nd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"item-text",style:t.normalizeStyle(e.fontStyle)},t.toDisplayString(d),5)],4))),128)):t.createCommentVNode("",!0)],4))}const Ki=ve(me(Od,[["render",Fd],["__scopeId","data-v-4d462642"]])),Ko={...Ee,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Zo=Ce(Ko),Zi=["inputChange","inputBlur"],Md=t.defineComponent({name:"EcanInput",components:{AInput:de.Input},props:{...Zo},setup(e){const o=ke(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(De,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{},getRecordValueByKeyName:h=>{}});t.watch(()=>e.value,h=>{n.value=i(h)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const h=a(e.id);r(e.id,{...h,RECORD:n})},l=Re(e),d=_e.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),kh="";function zd(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 Qi=ve(me(Md,[["render",zd]])),Qo={...Ee,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"},Jo=Ce(Qo),Ji=["dateChange"],Xo=t.defineComponent({name:"EcanDatePicker",props:{...Jo},components:{ADatePicker:de.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,g,m])=>{let f=null;if(u?f=ye(Ie(u)):g&&(f=ye()),m&&f){const{type:v,value:B,mode:b}=m;switch(v){case"add":f=f.add(B,b);break;case"minus":f=f.subtract(B,b)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(De,{setGlobalModel:(u,g)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Re(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Le(e,{dateChange:l});const c=t.ref({}),h=t.ref({}),y=u=>{u?setTimeout(()=>{h.value=t.unref(c)},300):h.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const g=u.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-g.left<m&&(c.value.marginLeft=-1*(m-g.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:Za,change:d,scaleValue:o,popupStyle:c,customStyle:h,openChange:y}}}),Xi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},el=Xo.setup;Xo.setup=el?(e,o)=>(Xi(),el(e,o)):Xi;const Bh="",Eh="",Pd=["id"];function qd(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,Pd)}const tl=ve(me(Xo,[["render",qd],["__scopeId","data-v-d4ec0d66"]])),ea={...Ee,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},ta=Ce(ea),nl=["dateChange"];var ol={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(ue,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,h){return c=Number(c),this.$utils().p(h)===a?this.add(3*c,n):l.bind(this)(c,h)};var d=s.startOf;s.startOf=function(c,h){var y=this.$utils(),u=!!y.u(h)||h;if(y.p(c)===a){var g=this.quarter()-1;return u?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return d.bind(this)(c,h)}}})})(ol);var Vd=ol.exports;const Hd=Er(Vd);ye.extend(Hd);const na=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:de.RangePicker},props:{...ta},setup(e){const o=ke(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],([p,x,w,k,D,_])=>{let O=null,R=null;if(w&&(O=ye().subtract(k,D),R=ye()),p&&(O=ye(Ie(p))),x&&(R=ye(Ie(x))),_){const{type:T,value:E,mode:C}=_;switch(T){case"add":O=O&&O.add(E,C),R=R&&R.add(E,C);break;case"minus":O=O&&O.subtract(E,C),R=R&&R.subtract(E,C)}}a.value=[O,R]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(p,x,w)=>{Array.isArray(p)?(r=p[0],i=p[1],s=w.range):(r=null,i=null)};window.dayjs=ye;const d=p=>{let x=!1,{limitStartTime:w,limitEndTime:k}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(w=Ie(w,{codeData:D}),k=Ie(k,{codeData:D}),w&&k?x=!(ye(w)<p&&p<ye(k)):w?x=ye(w)>p:k&&(x=ye(k)<p),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const O=_.startOf("year"),R=_.endOf("year");x=!(O<=p&&p<R)}}if(!x){const{value:_=0,mode:O="year"}=e.limitInterval||{};_&&(s==="start"?x=r.add(_,O)<p:s==="end"&&(x=i.subtract(_,O)>p))}return x},{getGlobalModel:c,setGlobalModel:h}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,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);h(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 g=Re(e);let m=!1;const f=g("dateChange",()=>{}),v=p=>{const x=t.unref(a),w=x&&x[0]&&x[1];p===!1&&m===!0&&w&&(f(),m=!1),p||(s="")},B=()=>{m=!0};return Le(e,{dateChange:()=>{const{associated:p}=e;if(p){const x=c(p)||{};if(x){const{value:w}=x;if(w)switch(t.unref(w)){case"month":a.value=[ye().startOf("month"),ye().endOf("month")];break;case"quarter":a.value=[ye().startOf("quarter"),ye().endOf("quarter")];break;case"year":a.value=[ye().startOf("year"),ye().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:n,locale:Za,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:v,change:B}}}),al=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},rl=na.setup;na.setup=rl?(e,o)=>(al(),rl(e,o)):al;const Rh="",Ih="";function Wd(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 il=ve(me(na,[["render",Wd],["__scopeId","data-v-c9c68612"]])),oa={...Ee,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"},aa=Ce(oa),ll=["click"],jd=t.defineComponent({name:"EcanButton",components:{AButton:de.Button},props:{...aa},setup(e){const o=ke(e),a=Re(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(()=>Ie(e.text)),s=t.computed(()=>Ie(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}}}),Lh="";function Gd(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 sl=ve(me(jd,[["render",Gd]])),ra={...Ee,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:{}},ia=Ce(ra),cl=["checkboxChange"],Ud=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:de.CheckboxGroup},props:{...ia},setup(e,{expose:o}){const n=ke(e),a=t.ref([]),r=t.ref([]),i=v=>{const B=e.value;let b=[];v.forEach(p=>{p.checked&&b.push(p.value)}),typeof B=="string"&&B!==""?b=b.concat(B.split(",")):Array.isArray(B)&&(b=b.concat(B)),a.value=v,r.value=b};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var b,p;if(e.dataType!=="request")return;const v=await s(),B=((p=(b=v==null?void 0:v.data)==null?void 0:b.data)==null?void 0:p.rows)||[];i(B)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:v=>{},setGlobalModel:(v,B)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),u=Qe(e),g=async()=>{var v;try{const B=await u(),{data:b}=(B==null?void 0:B.data)||{};if(b){const x=(((v=B==null?void 0:B.data)==null?void 0:v.data)??[]).map(w=>({label:w.label,value:w.value}));i(x)}else i([])}catch(B){console.error(B)}},m=()=>{switch(e.dataType){case"indicator":g();break;case"request":l();break}},{setRequest:f}=t.inject(ze,{setRequest:({id:v,sortNum:B,requestFn:b})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),Nh="";function $d(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 dl=ve(me(Ud,[["render",$d]])),la={...Ee,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"},sa=Ce(la),fl=["selectChange","refreshData"],Yd=t.defineComponent({name:"EcanSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...sa},setup(e,{expose:o}){const n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var A;const{mode:S}=e;return(A=t.unref(i))!=null&&A.length?s.value:S==="multiple"||S==="tags"||S==="combobox"?[]:""},set:S=>{s.value=S}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:S=>{},setGlobalModel:(S,A)=>{},getRecordValueByKeyName:S=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:S,selectFirstOption:A,value:I}=e,F=h(I),q=y.value;if(S==="multiple"||S==="tags"||S==="combobox"){if(F)s.value=F.split(",");else if(A){const U=t.unref(i)[0];s.value=U?[U[q]]:[]}}else if(F)s.value=F;else if(A){const U=t.unref(i)[0];s.value=U?U[q]:""}},{immediate:!0});const u=(S,A)=>{const I=y.label,F=y.value;let q;const U=A[I],N=A[F];return U!=null?q=U:N!=null&&(q=N),(q==null?void 0:q.toLowerCase().indexOf(S==null?void 0:S.toLowerCase()))>=0},g=S=>{const{label:A,value:I,options:F}=e.dataFieldNames;if(F&&Array.isArray(S))if(S.some(q=>F in q)){const q={},U=[];S.forEach(N=>{q[N[F]]||(q[N[F]]=[]),q[N[F]].push({[A]:N[A],[I]:N[I]})});for(const N in q)U.push({[A]:N,[F]:q[N]});return U}else return S;else if(!F)return S},m=t.ref(!1),f=async()=>{var S,A;if(e.dataType==="request"){m.value=!0;try{const I=await r();if(i.value=g(((A=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:A.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(I){console.error(I)}finally{m.value=!1}}},{setLoadedData:v,loadedData:B}=t.inject(wt,{setLoadedData:(S,A)=>{},loadedData:{}}),b=t.computed(()=>{let S=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const A=y.label,I=y.value;if(e.mode==="multiple")S=t.unref(i).filter(F=>t.unref(s).includes(F[I])).map(F=>F[A]);else{const F=t.unref(i).find(q=>t.unref(s)===q[I]);F&&(S=F[A])}}return S}),p=t.ref([]),x=t.computed(()=>{const S={};if(e.mode!=="multiple"){const A=t.unref(p).find(I=>I.value===t.unref(s));A&&(S.itemCodes=A.item_codes)}return S}),w=t.computed(()=>{const{value:S,label:A}=y,I=t.unref(i).find(F=>F[S]===t.unref(l));return I?{label:I[A],value:I[S]}:{}});c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(w)});const D=Re(e)("selectChange",()=>{const S=e.id,A=d(S);c(S,{...A,...t.unref(x),RECORD:b,recordData:t.unref(w)})}),_=(S=[])=>{if(i.value=g(S),e.selectFirstOption){let A=t.unref(i)[0];if(y.options){const I=A[y.options];I&&I.length&&(A=I[0])}s.value=A[y.value]}c(e.id,{type:e.type,value:b,...t.unref(x),recordData:t.unref(w)})},O=Qe(e),R=async()=>{var S;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 U=((S=A==null?void 0:A.data)==null?void 0:S.data)??[];p.value=U;const N=U.map(M=>({[F]:M.label,[q]:M.value})),{id:z}=e,V=d(z);c(z,{...V,...t.unref(x)}),v(z,!0),_(N)}else _([])}catch(A){console.error(A)}finally{m.value=!1}},T=t.computed(()=>{var S,A;return(A=(S=e==null?void 0:e.graphicConfig)==null?void 0:S.controlList)==null?void 0:A.find(I=>I.conditionKey==="parentCode")}),E=t.ref(!1);t.watch(B,S=>{!t.unref(E)&&t.unref(T)&&S[t.unref(T).id]&&(E.value=!0,C())},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":{if(t.unref(T)){if(t.unref(B)[t.unref(T).id]){const{mode:S}=e;S==="multiple"||S==="tags"||S==="combobox"?l.value=[]:l.value="",R()}}else R();break}case"request":f();break}};Le(e,{selectChange:D,refreshData:C});const{setRequest:L}=t.inject(ze,{setRequest:({id:S,sortNum:A,requestFn:I})=>{}});return typeof L=="function"&&L({id:e.id,requestFn:C,sortNum:e.requestSort}),o({refreshData:C}),{style:n,getPopupContainer:a,myValue:s,selectChange:D,options:i,filterOption:u,loading:m,resultValue:l}}}),Mh="",zh="";function Kd(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 ul=ve(me(Yd,[["render",Kd],["__scopeId","data-v-8da65528"]])),ca={...Ee,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},da=Ce(ca),hl=["selectChange","refreshData"],Zd={name:"EcanTreeSelect",components:{ATreeSelect:de.TreeSelect},props:{...da},setup(e){const o=ke(e),n=t.ref(e.data),a=(g,m)=>{const f=e.dataFieldNames,v=f.label,B=f.value;let b;const p=m[v],x=m[B];return p!=null?b=p:x!=null&&(b=x),(b==null?void 0:b.toLowerCase().indexOf(g==null?void 0:g.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:g,value:m,selectFirstOption:f}=e;g?m?r.value=m.split(","):f&&(r.value=[t.unref(n)[0]]):m?r.value=m:f&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=Pe(e),l=async()=>{var g,m;if(e.dataType==="request"){i.value=!0;try{const f=await s();n.value=((m=(g=f==null?void 0:f.data)==null?void 0:g.data)==null?void 0:m.rows)||[];const v=t.unref(n)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:g=>{},setGlobalModel:(g,m)=>{}});c(e.id,{type:e.type,value:r});const y=Re(e)("selectChange",()=>{const g=e.id,m=d(g);c(g,{...m,RECORD:r})});Le(e,{selectChange:y,refreshData:l});const{setRequest:u}=t.inject(ze,{setRequest:({id:g,sortNum:m,requestFn:f})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},qh="",Vh="";function Qd(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 gl=ve(me(Zd,[["render",Qd],["__scopeId","data-v-37236421"]])),fa={...Ee,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:""},ua=Ce(fa),ml=["checkboxChange","click"],Jd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:de.RadioGroup,ARadioButton:de.RadioButton,ARadio:de.Radio},props:{...ua},setup(e,{expose:o}){const n=ke(e),a=t.ref([]),r=t.ref(""),i=p=>{const x=e.value;let w=[];typeof x=="string"&&x!==""?w=w.concat(x.split(",")):Array.isArray(x)&&(w=w.concat(x)),a.value=p,r.value=w[0]||""};t.watch(()=>[e.data,e.value],([p])=>{i(p)},{immediate:!0,deep:!0});const s=Pe(e),l=async()=>{var w,k;if(e.dataType!=="request")return;const p=await s(),x=((k=(w=p==null?void 0:p.data)==null?void 0:w.data)==null?void 0:k.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=t.inject(De,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}});c(e.id,{type:e.type,value:r});const h=Re(e),y=h("checkboxChange",()=>{const p=d(e.id);c(e.id,{...p,RECORD:r})}),u=p=>{r.value=p,h("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};t.watch(r,()=>{y()});const g=Qe(e),m=async()=>{var p;try{const x=await g(),{data:w}=(x==null?void 0:x.data)||{};if(w){const D=(((p=x==null?void 0:x.data)==null?void 0:p.data)??[]).map(_=>({label:_.label,value:_.value}));i(D)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:v}=t.inject(ze,{setRequest:({id:p,sortNum:x,requestFn:w})=>{}});typeof v=="function"&&v({id:e.id,requestFn:f,sortNum:e.requestSort});const B=p=>{r.value=p.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:f}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:u,useImagePath:ut,tabChange:B}}}),Wh="",jh="",Xd=["onClick"];function ef(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,h)=>(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:h,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,Xd))),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:h=>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 yl=ve(me(Jd,[["render",ef],["__scopeId","data-v-baa84768"]])),ha={...Ee,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},ga=Ce(ha),xl=["click","refreshData","resetRecord"],Qt=async e=>{var d;const o=await gt.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)},ma={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:[],requestList:[]},ya=Ce(ma),pl=["showModal","hideModal"],Lt=["ecanBorder","ecanTabs","ecanCirculate"];function bl(e){const{containerMap:o={},sourceList:n=[]}=e,a=_e.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((!Zt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const h=s[c],y=[];if(h!=null&&h.length)for(const u of h){let g=a.find(m=>m.id===u);g||(g=n.find(m=>m.id===u)),g&&(y.push(g),Lt.includes(g.type)&&y.push(...sn(g.id,o,n)))}for(const u of y)Zt(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=lf(y)}}for(const d of l){const c=a.findIndex(h=>h.id===d);c!==-1&&a.splice(c,1)}}return a}function vl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=_e.cloneDeep([...e.componentList,...nf(a,n)]);if(tf(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const g=r.find(m=>m.id===u);if(g){Zt(g,"parentId")||(g.parentId="",g.sourceLeft=g.left,g.sourceTop=g.top);for(const m in a[u])if(a[u][m])for(const f of a[u][m]){const v=r.find(B=>B.id===f);v&&(v.parentId=u,v.sourceLeft=v.left,v.sourceTop=v.top,v.left=parseFloat(v.left)-parseFloat(g.sourceLeft||g.left)+"px",v.top=parseFloat(v.top)-parseFloat(g.sourceTop||g.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!Zt(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=of(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],h=r.filter(u=>c.includes(u.type)&&!Zt(u,"parentId")),y=[];for(const u of h)if(u){const g=u.id+"_vir";y.push({id:g,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=g,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 g=document.body.clientWidth;if(u.parentId===""&&Lt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(g/(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(f=>f.id===u.parentId);if((m==null?void 0:m.parentId)===""){const f=m.sourceWidth||parseFloat(m.width),v=g/f;u.scale=v,u.top=parseFloat(u.top)*v-parseFloat(u.height)*(1-v)/2+"px",u.left=parseFloat(u.left)*v-parseFloat(u.width)*(1-v)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return af(r)}return r}function tf(e,o){const n=_e.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&&Lt.includes(d.type)){const c=sn(d.id,n,o);for(const h of c)e[r.id][s].push(h.id),Lt.includes(h.type)&&delete e[h.id];delete e[d.id]}}}}function nf(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),Lt.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),Lt.includes(l.type)&&a.push(...sn(l.id,o,n)))}return a}function of(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=rf(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 h of d)h&&(h.parentId=s,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(c.left)+"px",h.top=parseFloat(h.top)-parseFloat(c.top)+"px")}}}}return i}function af(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=_e.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 rf(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 lf(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function xa(e,o,n){const a=e[n],r=[];if(a)for(const i in a){const s=a[i];for(const l of s){const d=o.find(c=>c.id===l);d&&(r.push(d),Lt.includes(d.type)&&r.push(...sn(d.id,e,o)))}}return r}const sf=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function cf(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 df=ve(me(sf,[["render",cf]])),ff=t.defineComponent({name:"EcanModal",components:{AModal:de.Modal,CloseOutlined:x0,Render:df},props:{...ya},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,setRequestData:d}=t.inject(De,{setRequestData:(Y,ee)=>{},clearInteractiveData:()=>{},interactiveData:null}),c=()=>document.getElementById("ProviderConfig")||document.body,h=t.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),y=e.fullModal?"1920px":e.width,u=e.fullModal?"1080px":e.height,g=e.originalWidth,m=e.originalHeight,f=t.ref("80%"),v=t.ref(0),B=t.ref(),b=t.ref(0),p=t.ref({}),x=ke(e),w=t.ref({}),k=t.ref(!1),D=t.ref();let _;const O=()=>{B.value=parseFloat(y)/parseFloat(g);const Y=parseFloat(u)/parseFloat(m),ee=document.body.offsetWidth,le=document.body.offsetHeight;v.value=ee*t.unref(B),b.value=le*Y,f.value=`${t.unref(B)*100}%`,p.value={width:`${t.unref(v)}px`,height:`${t.unref(b)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},w.value={...t.unref(x),backgroundImage:ut(e.backgroundImage,!0)},a?w.value={...w.value,width:"100%",height:"100%"}:w.value={...w.value,transform:`scale(${t.unref(v)/parseFloat(y)},${t.unref(b)/parseFloat(u)})`,width:y,height:u}},R=_e.debounce(()=>{O()},100),T=()=>{const Y=window.MutationObserver;_=new Y(R),_.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},E=()=>{_&&(_.disconnect(),_.takeRecords(),_=null)},C=t.ref(!1),{touchRequest:L}=t.inject(ze,{touchRequest:()=>{}}),S=t.ref(""),A=()=>{var le;const{title:Y}=e,ee=(le=t.unref(l))==null?void 0:le.RECORD;return ee?Ie(Y,{textData:ee},{useNewline:!1,useSpace:!1}):Y},I=Re(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),S.value=A(),C.value=!0},q=I("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),C.value=!1}),U=()=>{q()},N=()=>{q(),s()},{setModalModel:z,pushUseModalIds:V,popUseModalIds:M}=t.inject(wr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,ee)=>{}}),P=t.computed(()=>{let Y=e.componentList;const ee=_e.cloneDeep(e.componentList),le=r(),xe=i(),Se={containerMap:le,combinationMap:xe};a&&(Y=vl({...Se,componentList:ee,sourceList:e.allComponentList})),Y=bl({...Se,componentList:Y,sourceList:e.allComponentList});const Te=[];for(const Oe of Y)if(Oe.type==="ecanCirculate"){const we=xa(le,t.unref(ee),Oe.id);Oe.componentList=we,Te.push(...we.map(Be=>Be.id))}if(Te!=null&&Te.length)for(const Oe of Te){const we=Y.findIndex(Be=>Be.id===Oe);we!==-1&&Y.splice(we,1)}return Y}),j=()=>{const Y=e.id;let ee=[];const le=e.componentList;Array.isArray(le)&&(ee=le.map(xe=>xe.id),z(Y,[...new Set(ee)]))},$=t.ref(!1),W={};for(const Y of e.requestList)W[Y.requestName]=Pe(Y);const K=async()=>{var Y;for(const ee in W){const le=await W[ee]();d(ee,((Y=le==null?void 0:le.data)==null?void 0:Y.data)||{})}$.value=!0};t.watch(()=>C.value,async Y=>{if(Y)k.value=!1,await K(),V(e.id),j(),await t.nextTick(()=>{O(),window.addEventListener("resize",R),T(),k.value=!0}),L();else{for(const ee in W)d(ee,{});M(),window.removeEventListener("resize",R),E()}});const oe=t.computed(()=>t.unref(B)>=1),ne=t.computed(()=>e.fullModal),ie=t.computed(()=>{let Y="ecan-modal";return t.unref(oe)&&(Y+=" ecan-full-width-modal"),t.unref(ne)&&(Y+=" ecan-full-modal"),Y});return Le(e,{showModal:F,hideModal:q}),{modalRef:D,containStyle:p,contentStyle:w,getContainer:c,modalStyle:h,modalWith:f,isFullModal:ne,style:x,visible:C,showModal:F,onOk:U,onCancel:N,isFullWidth:oe,wrapClassName:ie,ready:k,usedComponentList:P,isMobile:a,readyIds:n,hasOwn:Zt,onComponentReady:Y=>{n.value.push(Y)},formatTitle:S,requestLoaded:$}}}),$h="",Yh="";function uf(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.requestLoaded&&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,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+h},[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 Et=ve(me(ff,[["render",uf],["__scopeId","data-v-513bc596"]]));et.use([Rt.CanvasRenderer,yt.PieChart,Ae.TitleComponent,Ae.ToolboxComponent,Ae.TooltipComponent,Ae.LegendComponent]);const hf=t.defineComponent({name:"EcanPie",props:{...ga},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:T=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,C=e.colors;T=T.map((L,S)=>({label:E?{color:C[S]}:{},...L}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Qt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var E;n.value=!0,(E=i.value)==null||E.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.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:E=>{const{marker:C,seriesName:L,name:S,value:A,percent:I,data:F}=E||{};return Ie(e.tooltipFormatter,{textData:{marker:C,name:S,value:A,percent:I,a:L,b:S,c:A,d:I,...F}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:T,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?Ke:e.labelFontSize,position:e.labelPosition,formatter:Uc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const T=n.value?Ke: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:T+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:T}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:E=>{const{data:C}=r.value[0]||{};let L=0,S,A="0%";if(C)for(const I of C)I.name===E&&(S=+I.value),L+=+I.value;return L&&(A=`${(S/L*100).toFixed(2)}%`),rn(e.legendFormatter,{name:E,value:S,percent:A})}}},c=()=>{n.value=!1},{getGlobalModel:h,setGlobalModel:y}=t.inject(De,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{}}),{pageMode:u}=t.inject(He,{pageMode:"normal"}),g=(T=[],E)=>{const{dataset:C}=qt(T,E);r.value=C},m=(T=[],E)=>{const C=qt(T,E);r.value=C.dataset};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(u)==="design")&&g(T)},{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 f=t.ref(!1),v=Pe(e),B=async()=>{var T,E;if(e.dataType==="request")try{f.value=!0;const C=await v();g((E=(T=C==null?void 0:C.data)==null?void 0:T.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{f.value=!1}},b=Re(e);y(e.id,{type:e.type,RECORD:""});const p=b("click",T=>{const E=h(e.id);y(e.id,{...E,type:e.type,RECORD:T==null?void 0:T.data})}),x=Qe(e),w=async()=>{var T;try{f.value=!0;const E=await x(),{data:C}=(E==null?void 0:E.data)||{};if(C){const{columns:L=[],rows:S=[]}=((T=E==null?void 0:E.data)==null?void 0:T.data)??{};let A=[];if(L.length>0){const I=L[0],F=L[1];A=S.filter(q=>!!q).map(q=>({name:q[I],value:isNaN(q[F])?0:q[F]||0}))}m(A)}}catch(E){console.error(E)}finally{f.value=!1}},{loadedData:k}=t.inject(wt,{loadedData:{}}),D=t.ref(!1);t.watch(k,T=>{if(e.dataType==="indicator"){const E=an(e.graphicConfig);E!=null&&E.length&&(!t.unref(D)&&st(e.graphicConfig,T)?(D.value=!0,_()):st(e.graphicConfig,T)||(D.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":st(e.graphicConfig,t.unref(k))&&w();break;case"request":B();break}};Le(e,{resetRecord:()=>{const T=e.id,E=h(T);y(T,{...E,RECORD:""})},refreshData:_,click:p}),o({refreshData:_});const{setRequest:R}=t.inject(ze,{setRequest:T=>{}});return typeof R=="function"&&R({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:p,onClose:c,loading:f,ecanModal:i}}}),Zh="";function gf(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 Sl=ve(me(hf,[["render",gf]])),pa={...Ee,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:"",xAxisMaxValue:null,yAxisMaxValue:null},ba=Ce(pa),Cl=["click","refreshData","resetRecord"];et.use([Rt.CanvasRenderer,yt.LineChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.LegendComponent,Ae.MarkLineComponent]);const mf=t.defineComponent({name:"EcanLine",props:{...ba},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=ke(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?Ke:12),c=t.ref({});let h;const y=t.ref([]),u=t.computed(()=>{const S=e.xAxisLabelFormatter,A=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;a.value=!0,(I=l.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(){de.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:I=>{var N;const F=I.length;let q="",U=e.tooltipFormatter;h=(N=I[0])==null?void 0:N.data,U===""&&(U="{marker} {a} {c}");for(let z=0;z<F;z++){const{marker:V,seriesName:M,name:P,value:j,data:$}=I[z]||{};if(z===0){let W=P;typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(W=(+P).toString()),q+=`${ct(S,W)}<br/>`}q+=Ie(U,{textData:{marker:V,name:P,value:j,a:M,b:P,c:j||0,...$}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(I=>{let F={};return I&&typeof I=="object"?F={...I}:F={value:I},F}),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(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),ct(S,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},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(I){return ct(A,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(I=>({name:I.name,icon:e.legendType})),formatter:I=>rn(e.legendFormatter,{name:I})},series:t.unref(i)}}),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=t.inject(De,{getGlobalModel:S=>{},setGlobalModel:(S,A)=>{}}),{pageMode:v}=t.inject(He,{pageMode:"normal"}),B=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(S=[],A=!1)=>{let I;if(e.dataFieldConfigType==="key"){const N=A?e.keyTypeDataFieldNames:null;I=Bt(S,N)}else if(e.dataFieldConfigType==="value"){const N=A?e.valueTypeDataFieldNames:null;I=qt(S,N)}s.value=I.dimensions,y.value=I.dataset;const F=I.dataset,q=[],U=F.length;for(let N=0;N<U;N++){const z={};e.shadowColor&&(z.shadowColor=e.shadowColor,z.shadowBlur=e.shadowBlur,z.shadowOffsetY=e.shadowOffsetY,z.shadowOffsetX=e.shadowOffsetX),q.push({type:"line",...F[N],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[N]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[N],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...z},...t.unref(B)})}i.value=q},p=(S=[],A,I=!1)=>{const q=Bt(S,I?A:null,!0);s.value=q.dimensions,y.value=q.dataset;const U=q.dataset,N=[],z=U.length;for(let V=0;V<z;V++){const M={};e.shadowColor&&(M.shadowColor=e.shadowColor,M.shadowBlur=e.shadowBlur,M.shadowOffsetY=e.shadowOffsetY,M.shadowOffsetX=e.shadowOffsetX),N.push({type:"line",...U[V],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[V]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[V],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...M},...t.unref(B)})}i.value=N};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],([S])=>{(e.dataType==="static"||t.unref(v)==="design")&&b(S)},{immediate:!0,deep:!0});const x=t.ref(!1),w=Pe(e),k=async()=>{var S,A;if(e.dataType==="request")try{x.value=!0;const I=await w();b((A=(S=I==null?void 0:I.data)==null?void 0:S.data)==null?void 0:A.rows,!0)}catch(I){console.error(I)}finally{x.value=!1}},D=Re(e);f(e.id,{type:e.type,RECORD:""});const _=D("click",S=>{const A=m(e.id);f(e.id,{...A,type:e.type,RECORD:e.tooltipShow?h:S.data})}),O=S=>{n.value.chart.containPixel("grid",[S.offsetX,S.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=_;const R=Qe(e),T=async()=>{var S;try{x.value=!0;const A=await R(),{columns:I=[],rows:F=[]}=((S=A==null?void 0:A.data)==null?void 0:S.data)??{};let q;I.length>0&&(q={name:I[0],types:I.slice(1).map(U=>({label:U,value:U}))}),p(F,q,!0)}catch(A){console.error(A)}finally{x.value=!1}},E=()=>{switch(e.dataType){case"indicator":T();break;case"request":k();break}};Le(e,{refreshData:E,resetRecord:()=>{const S=e.id,A=m(S);f(S,{...A,RECORD:""})},click:_});const{setRequest:L}=t.inject(ze,{setRequest:S=>{}});return typeof L=="function"&&L({id:e.id,requestFn:E,sortNum:e.requestSort}),o({refreshData:E}),{option:u,style:r,click:_,loading:x,onClose:g,ecanModal:l,eventObj:c,echartRef:n}}}),Jh="";function yf(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 wl=ve(me(mf,[["render",yf]])),va={...Ee,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:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Sa=Ce(va),Al=["refreshData","click","resetRecord"];et.use([Rt.CanvasRenderer,yt.BarChart,Ae.TitleComponent,Ae.LegendComponent,Ae.DatasetComponent,Ae.ToolboxComponent,Ae.MarkLineComponent]);const xf=t.defineComponent({name:"EcanBar",props:{...Sa},components:{Spin:zt,Echarts:St,EcanModal:Et,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),a=t.ref(),r=t.ref(!1),i=t.ref(!1),s=t.ref(null),l=t.ref([]),d=ke(e),c=t.ref([]),h=t.ref(),y=t.ref({});let u;const g=t.computed(()=>r.value?Ke:12),m=t.computed(()=>{const{gradientShow:M,gradientColors:P,gradientOffset:j,barBorderRadius:$}=e,W=t.unref(c),K=W.length,oe=[];for(let ne=0;ne<K;ne++){const ie={...W[ne],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ie.stack="stack"),ie.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:J=>{let Y="",ee=e.labelFormatter;ee===""&&(ee="{c}");const{seriesName:le,name:xe,value:Se,data:Te}=J||{};return Y+=Ie(ee,{textData:{name:xe,value:Se,a:le,b:xe,c:Se||0,...Te}},{useNewline:!0,useSpace:!0}),Y}},ie.itemStyle={},M&&(ie.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[ne]},{offset:j,color:P[ne]},{offset:1,color:P[ne]}]}}),$){const J=$.split(",");if(J!=null&&J.length){const Y=[];for(const ee of J){const le=parseFloat(ee);isNaN(le)||Y.push(le)}ie.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(ie.markLine={data:[{type:e.markLineType}]}),oe.push(ie)}return oe}),f=t.ref([]),v=t.ref(!1),B=t.computed(()=>{const M=e.yAxisLabelFormatter,P=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:r.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(){i.value=!0;const j=a.value.chart.getOption(),{xAxis:$}=j||{};$&&$.length&&(l.value=$[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Qt(e.toolboxDownloadUrl)}},myDataZoom:{show:r.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 j;r.value=!0,(j=h.value)==null||j.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(){de.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:j=>{var oe;const $=j.length;let W="",K=e.tooltipFormatter;u=(oe=j[0])==null?void 0:oe.data,K===""&&(K="{marker} {a} {c}");for(let ne=0;ne<$;ne++){const{marker:ie,seriesName:J,name:Y,value:ee,data:le}=j[ne]||{};if(ne===0){let xe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(xe=(+Y).toString()),W+=`${ct(P,xe)}<br/>`}W+=Ie(K,{textData:{marker:ie,name:Y,value:ee,a:J,b:Y,c:ee||0,...le}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:g.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:(r.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:r.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(c).map((j,$)=>({name:j.name,itemStyle:{color:e.colors[$]},icon:e.legendType})),formatter:j=>rn(e.legendFormatter,{name:j})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.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(j){return typeof j=="string"&&j[0]==="0"&&!isNaN(+j)&&(j=(+j).toString()),ct(P,j)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(f):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(j){return ct(M,j)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"},max:e.yAxisMaxValue||null},series:t.unref(m)}}),{pageMode:b}=t.inject(He,{pageMode:"normal"}),p=()=>{r.value=!1},x=(M=[],P=!1)=>{let j={};if(e.dataFieldConfigType==="key"){const $=P?e.keyTypeDataFieldNames:null;j=Bt(M,$)}else if(e.dataFieldConfigType==="value"){const $=P?e.valueTypeDataFieldNames:null;j=qt(M,$)}c.value=j.dataset,f.value=j.dimensions},w=(M=[],P,j=!1)=>{const W=Bt(M,j?P:null,!0);e.defaultRangeValue&&_i({props:e,componentList:t.unref(n),getGlobalModel:F},W),c.value=W.dataset,f.value=W.dimensions},k=t.computed(()=>t.unref(f).map(M=>{let P={};return M&&typeof M=="object"?P={...M}:P={value:M},P}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||t.unref(b)==="design")&&x(M)},{immediate:!0,deep:!0});const D=Pe(e),_=async()=>{var M,P;try{v.value=!0;const j=await D();x((P=(M=j==null?void 0:j.data)==null?void 0:M.data)==null?void 0:P.rows,!0)}catch(j){console.error(j)}finally{v.value=!1}},O=Qe(e),R=async()=>{var M;try{v.value=!0;const P=await O(),{columns:j=[],rows:$=[]}=((M=P==null?void 0:P.data)==null?void 0:M.data)??{};let W;j.length>0&&(W={name:j[0],types:j.slice(1).map(K=>({label:K,value:K}))}),w($,W,!0)}catch(P){console.error(P)}finally{v.value=!1}},{loadedData:T}=t.inject(wt,{loadedData:{}}),E=t.ref(!1);t.watch(T,M=>{if(e.dataType==="indicator"){const P=an(e.graphicConfig);P!=null&&P.length&&(!t.unref(E)&&st(e.graphicConfig,M)?(E.value=!0,C()):st(e.graphicConfig,M)||(E.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":st(e.graphicConfig,t.unref(T))&&R();break;case"request":_();break}},L=(M,P)=>!!t.unref(l)[P.value].value.includes(M),S=async()=>{i.value=!1;const M=a.value.chart.getOption();for(let P=0;P<7;P++)await A(M,P)},A=(M,P)=>new Promise(j=>{setTimeout(()=>{const{series:$,color:W,xAxis:K}=M,oe=a.value.chart,{splitArea:ne={}}=K[0]||{};$.forEach((ie,J)=>{const Y=ie.data;let ee="";P%2?ee=W[J]+"a8":ee=W[J],Y[s.value].itemStyle={color:ee}}),P%2?(ne.show=!0,ne.areaStyle.color=t.unref(l).map((ie,J)=>J===s.value?"#ff003b26":"")):ne.show=!1,oe.setOption({series:$,xAxis:K}),j()},200)});o({refreshData:C});const I=Re(e),{getGlobalModel:F,setGlobalModel:q}=t.inject(De,{getGlobalModel:M=>{},setGlobalModel:(M,P)=>{}});q(e.id,{type:e.type,RECORD:""});const U=I("click",M=>{const P=F(e.id);q(e.id,{...P,type:e.type,RECORD:e.tooltipShow?u:M.data})}),{setRequest:N}=t.inject(ze,{setRequest:M=>{}});typeof N=="function"&&N({id:e.id,requestFn:C,sortNum:e.requestSort});const z=()=>{const M=e.id,P=F(M);q(M,{...P,RECORD:""})},V=M=>{a.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&U()};return e.tooltipShow?y.value["zr:click"]=V:y.value.click=U,Le(e,{refreshData:C,click:U,resetRecord:z}),{option:B,style:d,refreshData:C,click:U,loading:v,onClose:p,ecanModal:h,echartRef:a,handleLocationOk:S,onFilterOption:L,locationVisible:i,locationValue:s,locationNames:l,eventObj:y}}}),e1="",t1="",pf=e=>(t.pushScopeId("data-v-f2d3b670"),e=e(),t.popScopeId(),e),bf={class:"location-wrap"},vf=pf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Sf(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"),h=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",bf,[vf,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 kl=ve(me(xf,[["render",Sf],["__scopeId","data-v-f2d3b670"]])),Ca={...Ee,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:""},wa=Ce(Ca),Tl=["click","refreshData","resetRecord"];et.use([Rt.CanvasRenderer,yt.ScatterChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.TooltipComponent,Ae.LegendComponent,Ae.MarkLineComponent]);const Cf=t.defineComponent({name:"EcanScatter",props:{...wa},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e){const o=t.ref(!1),n=ke(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?Ke:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const w=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Qt(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 D;o.value=!0,(D=r.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.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(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),ct(w,D)}},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(D){return ct(k,D)}},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(D){var C;const{marker:_,seriesName:O}=D,R=((C=D==null?void 0:D.data)==null?void 0:C.record)??{},{name:T,value:E}=R;return Ie(e.tooltipFormatter,{textData:{marker:_,seriesName:O,a:O,b:T,c:E,...R}})},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(De,{getGlobalModel:w=>{},setGlobalModel:(w,k)=>{}}),{pageMode:h}=t.inject(He,{pageMode:"normal"}),y=(w=[],k)=>{const{name:D="name",value:_="value"}=k||{};a.value=w.map(O=>({value:[O[D],O[_]],record:O}))};t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(h)==="design")&&y(w)},{immediate:!0,deep:!0});const u=t.ref(!1),g=Pe(e),m=async()=>{var w,k;if(e.dataType==="request"){u.value=!0;try{const D=await g();y((k=(w=D==null?void 0:D.data)==null?void 0:w.data)==null?void 0:k.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{u.value=!1}}},f=()=>{o.value=!1},v=Re(e);c(e.id,{type:e.type,RECORD:""});const B=v("click",w=>{const k=e.id,D=d(k);c(k,{...D,type:e.type,RECORD:w==null?void 0:w.data})});Le(e,{refreshData:()=>{m()},click:B,resetRecord:()=>{const w=e.id,k=d(w);c(w,{...k,RECORD:""})}});const{setRequest:x}=t.inject(ze,{setRequest:w=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:B,loading:u,onClose:f,ecanModal:r}}}),o1="";function wf(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 Bl=ve(me(Cf,[["render",wf]])),Aa={...Ee,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ka=Ce(Aa),Af=t.defineComponent({name:"EcanCustomGraph",props:{...ka},components:{Echarts:St},setup(e){const o=ke(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:cs}}});function kf(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 El=ve(me(Af,[["render",kf]])),Ta={...Ee,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:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null},Ba=Ce(Ta),Dl=["refreshData","click","resetRecord"];et.use([Rt.CanvasRenderer,yt.BarChart,yt.LineChart,Ae.TitleComponent,Ae.LegendComponent,Ae.DatasetComponent,Ae.ToolboxComponent,Ae.MarkLineComponent]);const Tf=t.defineComponent({name:"EcanComboGraph",props:{...Ba},components:{Spin:zt,Echarts:St,EcanModal:Et,AModal:de.Modal},setup(e,{expose:o}){const n=t.inject("usedComponentList",[]),{getGlobalModel:a,setGlobalModel:r}=t.inject(De,{getGlobalModel:P=>{},setGlobalModel:(P,j)=>{}}),i=t.ref(),s=t.ref(!1),l=t.ref(!1),d=t.ref(null),c=t.ref([]),h=t.ref({});let y;const u=ke(e),g=t.ref([]),m=t.ref([]),f=t.ref(),v=t.ref([]),B=t.computed(()=>s.value?Ke:12),b=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:s.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(){l.value=!0;const P=i.value.chart.getOption(),{xAxis:j}=P||{};j&&j.length&&(c.value=j[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Qt(e.toolboxDownloadUrl)}},myDataZoom:{show:s.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;s.value=!0,(P=f.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(){de.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:(s.value?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:s.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(v).map((P,j)=>({name:P.name,itemStyle:{color:e.colors[j]},icon:e.legendType})),formatter:P=>rn(e.legendFormatter,{name:P})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:P=>{var oe;const j=P.length;let $="",W=e.tooltipFormatter;y=(oe=P[0])==null?void 0:oe.data,W===""&&(W="{marker} {a} {c}");const K=e.seriesTypes;for(let ne=0;ne<j;ne++){const ie=K[ne],{tooltipFormatter:J}=ie||{},{marker:Y,seriesName:ee,name:le,value:xe,data:Se}=P[ne]||{};if(ne===0){let Te=le;typeof le=="string"&&le[0]==="0"&&!isNaN(+le)&&(Te=(+le).toString()),$+=`${ct(e.xAxisLabelFormatter,Te)}<br/>`}$+=Ie(J||W,{textData:{marker:Y,name:le,value:xe,seriesName:ee,a:ee,b:le,c:xe||0,...Se}},{useNewline:!0,useSpace:!0}),$+="<br/>"}return $},textStyle:{color:e.tooltipTextStyleColor,fontSize:B.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(P=>{let j={};return P&&typeof P=="object"?j={...P}:j={value:P},j}),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(P){return typeof P=="string"&&P[0]==="0"&&!isNaN(+P)&&(P=(+P).toString()),ct(e.xAxisLabelFormatter,P)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"},max:e.xAxisMaxValue||null},yAxis:t.unref(_),series:t.unref(g)})),{pageMode:p}=t.inject(He,{pageMode:"normal"}),x=()=>{s.value=!1},w=(P=[],j=!1)=>{let $;if(e.dataFieldConfigType==="key"){const K=j?e.keyTypeDataFieldNames:null;$=Bt(P,K)}else if(e.dataFieldConfigType==="value"){const K=j?e.valueTypeDataFieldNames:null;$=qt(P,K)}m.value=$.dimensions;const W=$.dataset;v.value=$.dataset,g.value=D(W)},k=(P=[],j,$=!1)=>{const K=Bt(P,$?j:null,!0);e.defaultRangeValue&&_i({props:e,componentList:t.unref(n),getGlobalModel:a},K),m.value=K.dimensions;const oe=K.dataset;v.value=K.dataset,g.value=D(oe)};function D(P){const j=[],$=P.length,W=e.seriesTypes;for(let K=0;K<$;K++){const oe=W[K],{type:ne,axisIndex:ie}=oe||{};let J={type:ne,yAxisIndex:ie,...P[K]};if(ne==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.shadowOffsetX=e.shadowOffsetX),J={...J,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[K]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[K],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(ne==="bar"){const{gradientShow:Y,gradientColors:ee,gradientOffset:le}=e,xe={};if(e.barBorderRadius){const Se=e.barBorderRadius.split(",");if(Se!=null&&Se.length){const Te=[];for(const Oe of Se){const we=parseFloat(Oe);isNaN(we)||Te.push(we)}xe.borderRadius=Te}}Y&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[K]},{offset:le,color:ee[K]},{offset:1,color:ee[K]}]}),J={...J,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(J.markLine={data:[{type:e.markLineType}]}),j.push(J)}return j}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],([P])=>{(e.dataType==="static"||t.unref(p)==="design")&&w(P)},{immediate:!0,deep:!0});const _=t.computed(()=>{const P=e.yAxis;return P==null?void 0:P.map((j,$)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:$===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:$===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(W){return ct(j.axisLabelFormatter,W)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:$===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:$===0?"right":"left"},max:e.yAxisMaxValue||null}))}),O=t.ref(!1),R=Pe(e),T=async()=>{var P,j;if(e.dataType==="request")try{O.value=!0;const $=await R();w((j=(P=$==null?void 0:$.data)==null?void 0:P.data)==null?void 0:j.rows,!0)}catch($){console.error($)}finally{O.value=!1}},E=Qe(e),C=async()=>{var P;try{O.value=!0;const j=await E(),{columns:$=[],rows:W=[]}=((P=j==null?void 0:j.data)==null?void 0:P.data)??{};let K;$.length>0&&(K={name:$[0],types:$.slice(1).map(oe=>({label:oe,value:oe}))}),k(W,K,!0)}catch(j){console.error(j)}finally{O.value=!1}},{loadedData:L}=t.inject(wt,{loadedData:{}}),S=t.ref(!1);t.watch(L,P=>{if(e.dataType==="indicator"){const j=an(e.graphicConfig);j!=null&&j.length&&(!t.unref(S)&&st(e.graphicConfig,P)?(S.value=!0,A()):st(e.graphicConfig,P)||(S.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":st(e.graphicConfig,t.unref(L))&&C();break;case"request":T();break}},I=(P,j)=>!!t.unref(c)[j.value].value.includes(P),F=async()=>{l.value=!1;const P=i.value.chart.getOption();for(let j=0;j<7;j++)await q(P,j)},q=(P,j)=>new Promise($=>{setTimeout(()=>{const{series:W,color:K,xAxis:oe}=P,ne=i.value.chart,{splitArea:ie={}}=oe[0]||{};W.forEach((J,Y)=>{const ee=J.data;let le="";j%2?le=K[Y]+"a8":le=K[Y],ee[d.value].itemStyle={color:le}}),j%2?(ie.show=!0,ie.areaStyle.color=t.unref(c).map((J,Y)=>Y===d.value?"#ff003b26":"")):ie.show=!1,ne.setOption({series:W,xAxis:oe}),$()},200)});o({refreshData:A});const U=Re(e);r(e.id,{type:e.type,RECORD:""});const N=U("click",P=>{const j=a(e.id);r(e.id,{...j,type:e.type,RECORD:e.tooltipShow?y:P==null?void 0:P.data})}),z=P=>{i.value.chart.containPixel("grid",[P.offsetX,P.offsetY])&&N()};e.tooltipShow?h.value["zr:click"]=z:h.value.click=N;const{setRequest:V}=t.inject(ze,{setRequest:P=>{}});return typeof V=="function"&&V({id:e.id,requestFn:A,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const P=e.id,j=a(P);r(P,{...j,RECORD:""})},refreshData:A,click:N}),{style:u,option:b,click:N,loading:O,onClose:x,ecanModal:f,echartRef:i,handleLocationOk:F,onFilterOption:I,locationVisible:l,locationValue:d,locationNames:c,eventObj:h}}}),i1="",l1="",Bf=e=>(t.pushScopeId("data-v-a80f0ebc"),e=e(),t.popScopeId(),e),Ef={class:"location-wrap"},Df=Bf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Rf(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"),h=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",Ef,[Df,t.createVNode(h,{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,g)=>(t.openBlock(),t.createBlock(c,{key:g,value:g},{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 Rl=ve(me(Tf,[["render",Rf],["__scopeId","data-v-a80f0ebc"]])),Ea={...Ee,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},Da=Ce(Ea),Il=["refreshData","click","resetRecord"];et.use([Rt.CanvasRenderer,yt.RadarChart,Ae.ToolboxComponent,Ae.TitleComponent,Ae.LegendComponent]);const If=t.defineComponent({name:"EcanRadar",props:{...Da},components:{Spin:zt,Echarts:St,EcanModal:Et},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=ke(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ke:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),h=t.computed(()=>{const C=t.unref(d),L=C.length,S=[];for(let A=0;A<L;A++){const{name:I,data:F=[]}=C[A],q=[{name:I,value:F.map(z=>z.value)}];let U=e.colors[A];if(e.gradientShow){const{gradientOffset:z,gradientColors:V}=e;U={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[A]},{offset:z,color:V[A]},{offset:1,color:V[A]}]}}const N={type:"radar",name:I,data:q,areaStyle:{color:U,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:z=>{const{data:V,value:M}=z;let P=0,j="0%";if(V)for(const $ of V.value)P+=+$;return P&&(j=`${(M/P*100).toFixed(2)}%`),Ie(e.labelFormatter,{textData:{value:M,percent:j}},{useNewline:!1,useSpace:!1})}}};S.push(N)}return S}),y=t.computed(()=>{var I;const C=[],L=[],S=t.unref(d),A=S.length;for(let F=0;F<A;F++){const{data:q=[]}=S[F];for(let U=0;U<q.length;U++)L.push(q[U].value)}if((I=i.value)!=null&&I.length){const F=L!=null&&L.length?Math.max(...L)*1.2:0;for(const q of i.value)C.push({name:q,max:F})}return C}),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(){Qt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var C;a.value=!0,(C=s.value)==null||C.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){de.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:C=>{let L="",S=e.tooltipFormatter;S===""&&(S="{marker} {a} {c}");for(let A=0;A<t.unref(y).length;A++){const I=t.unref(y)[A],{marker:F,seriesName:q,value:U}=C||{};A===0&&q&&(L+=`${q}<br/>`),L+=Ie(S,{textData:{marker:F,name:I.name,value:U[A],a:I.name,b:I.name,c:U[A]||0,type:q}},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},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?Ke:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ke:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>rn(e.legendFormatter,{name:C})},series:t.unref(h)})),g=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:f}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,L)=>{}}),{pageMode:v}=t.inject(He,{pageMode:"normal"}),B=(C=[],L=!1)=>{let S;if(e.dataFieldConfigType==="key"){const A=L?e.keyTypeDataFieldNames:null;S=Bt(C,A)}else if(e.dataFieldConfigType==="value"){const A=L?e.valueTypeDataFieldNames:null;S=qt(C,A)}i.value=S.dimensions,d.value=S.dataset},b=(C=[],L,S=!1)=>{const I=Bt(C,S?L:null,!0);i.value=I.dimensions,d.value=I.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([C])=>{(e.dataType==="static"||t.unref(v)==="design")&&B(C)},{immediate:!0,deep:!0});const p=t.ref(!1),x=Pe(e),w=async()=>{var C,L;if(e.dataType==="request")try{p.value=!0;const S=await x();B((L=(C=S==null?void 0:S.data)==null?void 0:C.data)==null?void 0:L.rows,!0)}catch(S){console.error(S)}finally{p.value=!1}},k=Re(e);f(e.id,{type:e.type,RECORD:""});const D=C=>{const L=C.event.topTarget.__dimIdx;L!==void 0&&k("click",()=>{var F;const{value:S,name:A}=C.data||{},I=m(e.id);f(e.id,{...I,type:e.type,RECORD:{[t.unref(c)]:((F=t.unref(y)[L])==null?void 0:F.name)||"",[A]:S[L],seriesName:A}})})()},_=Qe(e),O=async()=>{var C;try{p.value=!0;const L=await _(),{columns:S=[],rows:A=[]}=((C=L==null?void 0:L.data)==null?void 0:C.data)??{};let I;S.length>0&&(c.value=S[0],I={name:S[0],types:S.slice(1).map(F=>({label:F,value:F}))}),b(A,I,!0)}catch(L){console.error(L)}finally{p.value=!1}},R=()=>{switch(e.dataType){case"indicator":O();break;case"request":w();break}};Le(e,{refreshData:R,resetRecord:()=>{const C=e.id,L=m(C);f(C,{...L,RECORD:""})},click:D});const{setRequest:E}=t.inject(ze,{setRequest:C=>{}});return typeof E=="function"&&E({id:e.id,requestFn:R,sortNum:e.requestSort}),o({refreshData:R}),{option:u,style:r,click:D,loading:p,onClose:g,ecanModal:s,echartRef:n}}}),c1="";function _f(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 _l=ve(me(If,[["render",_f]])),Lf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",Nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Ff="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ra={...Ee,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"},Ia=Ce(Ra),Ll=["click"],Mf=t.defineComponent({name:"EcanBorder",props:{...Ia},setup(e){const o=ke(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:f,gradientColor:v,gradientOffset:B,gradientAngle:b,backgroundColor:p}=e;if(f){let x=v;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${p}, ${x} ${B*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let f={};return m!=null&&m.length&&m.find(B=>B.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=t.inject(He,{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":Lf,"../../assets/border-title-decoration-left2.png":Of})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":Nf,"../../assets/border-title-decoration-right2.png":Ff})[`../../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,f=[],v={};if(m){const B=m.split(",");for(const b of B)(+b||+b==0)&&f.push(+b+"px")}return f!=null&&f.length&&(v.borderRadius=f.join(" ")),v}),y=Re(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Le(e,{click:y});const{setGlobalModel:g}=t.inject(De,{setGlobalModel:(m,f)=>{}});return g(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}}}),f1="",Dt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),zf=["id"],Pf=Dt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),qf=Dt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vf=Dt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hf=Dt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Wf={class:"title-item"},jf=["src"],Gf={class:"title"},Uf=["src"],$f=Dt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Yf=Dt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Kf=Dt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Zf=Dt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Qf={key:2,class:"left-title"},Jf={class:"title"};function Xf(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},[Pf,qf,Vf,Hf],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",Wf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,jf),t.createElementVNode("div",Gf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Uf)])],2),$f,Yf,Kf,Zf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",Jf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,zf)}const Ol=ve(me(Mf,[["render",Xf],["__scopeId","data-v-8dd53b8f"]])),_a={...Ee,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:10,componentList:[]},La=Ce(_a),Nl=["tabChange"],eu=t.defineComponent({name:"EcanTabs",props:{...La},components:{ASelect:de.Select,ASelectOption:de.SelectOption,MarqueeScroll:qn},setup(e){const o=ke(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(He,{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 f=t.unref(n)+1;f<=m?n.value=f: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=Re(e),{setGlobalModel:h}=t.inject(De,{setGlobalModel:(m,f)=>{}});h(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(nn,{emitRefreshPage:()=>{}}),u=(m,f)=>{c("tabChange",()=>{f!==t.unref(n)&&(l.value=m,n.value=f,y())})()},g=t.computed(()=>{const m=e.componentList.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,v)=>v-f)[0];return{width:m?m+"px":"100%"}});return Le(e,{tabChange:u}),{style:o,activeKey:n,isActive:d,tabChange:u,myData:s,useImagePath:ut,pageMode:a,scrollWrapStyle:g}}}),h1="",tu=["id"],nu=["onClick"];function ou(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,h)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(h)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(h)?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:h,onClick:t.withModifiers(y=>e.tabChange(c,h),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(h)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,nu))),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,h)=>(t.openBlock(),t.createBlock(s,{key:h,value:h,onClick:y=>e.tabChange(c,h)},{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,tu)}const Fl=ve(me(eu,[["render",ou],["__scopeId","data-v-132544b5"]])),Oa={...Ee,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},Na=Ce(Oa),Ml=["click","refreshData","resetRecord"];let zl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const au=t.defineComponent({name:"EcanCirculate",props:{...Na,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:qn,Skeleton:Pt},setup(e,{expose:o}){const n=t.ref(!1),a=ke(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(De,{getGlobalModel:D=>{},setGlobalModel:(D,_)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:h}=t.inject(He,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const D=document.body.clientWidth,_=e.sourceWidth||parseFloat(e.width);return D/_||1}else return 1});function u(D,_){const O=_.find(R=>R.id===e.id);if(O)for(const R of D)R.left=parseFloat(R.left)-parseFloat(O.sourceLeft||O.left)+"px",R.top=parseFloat(R.top)-parseFloat(O.sourceTop||O.top)+"px"}const g=D=>{const _=D.sort((E,C)=>parseFloat(E.top)-parseFloat(C.top))[0],O=D.sort((E,C)=>parseFloat(E.left)-parseFloat(C.left))[0],R=D.map(E=>parseFloat(E.left)+parseFloat(E.width)).sort((E,C)=>C-E)[0],T=D.map(E=>parseFloat(E.top)+parseFloat(E.height)).sort((E,C)=>C-E)[0];if(O&&R&&_&&T){const E=parseFloat(O.left),C=parseFloat(_.top);return{width:R-E,height:T-C,left:E}}else return{width:0,height:0,left:0}},m=t.ref({}),f=D=>{var F,q;const _=[],{graphicConfig:O,id:R,componentList:T,keyFieldMap:E,unitInterval:C,colNum:L}=e;let S=_e.cloneDeep(T),A=[];if((F=t.unref(r))!=null&&F.length)for(const U of t.unref(r))A.push(U),(q=U==null?void 0:U.componentList)!=null&&q.length&&A.push(...U.componentList);if(O.pageMode==="design"&&O.preview){const{containerMap:U}=O.pageConfig||{};A=O.componentList||[],A.push(e),S=xa(U,_e.cloneDeep(A),R)}u(S,A);const I=g(S);if(D!=null&&D.length){const{width:U,left:N,height:z}=I;let V=0,M=0;D.forEach((P,j)=>{P.index=j+1;const $=zl(),W=_e.cloneDeep(S);for(const K of W){const oe=E.find(ie=>ie.keyName===K.keyName),ne=zl();if(K.left=(parseFloat(K.left)+V)*t.unref(y)+"px",K.top=(parseFloat(K.top)+M)*t.unref(y)+"px",K.scale=t.unref(y),K.id=ne,K.keyName=K.name+"_"+ne,K.unitId=$,oe!=null&&oe.fieldName){const ie=K.text.match(/\{(.+?)\}/g);switch(K.type){case"ecanText":{K.data={value:String(P[oe.fieldName])},ie!=null&&ie.length||(K.text="{value}");break}case"ecanProportion":{K.data={percent:String(P[oe.fieldName])},ie!=null&&ie.length||(K.text="{percent}");break}}}}L&&P.index%L===0?(V=0,M+=C+z):V+=C+U,_.push(...W),m.value[$]=P}),c.value={width:((L||D.length)*(U+C)+N)*t.unref(y)+"px"}}console.log("resultList",_),d.value=_},v=Qe(e),B=async()=>{var D;try{n.value=!0;const _=await v(),{rows:O=[]}=((D=_==null?void 0:_.data)==null?void 0:D.data)??{};f(O)}catch(_){console.error(_)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":B();break}};Le(e,{refreshData:b,resetRecord:()=>{const D=e.id,_=s(D);l(D,{..._,RECORD:""})}}),o({refreshData:b}),l(e.id,{type:e.type,RECORD:""});const{setRequest:x}=t.inject(ze,{setRequest:D=>{}});typeof x=="function"&&x({id:e.id,requestFn:b,sortNum:e.requestSort});const w=Re(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:h,click:D=>{let _=D.target;if(_){let O=_.getAttribute("unitId");for(;!O&&!_.className.includes("ecan-");)_=_.parentElement,O=_.getAttribute("unitId");O&&w("click",()=>{const R=s(e.id);l(e.id,{...R,type:e.type,RECORD:t.unref(m)[O]})})()}}}}}),m1="",ru=["id"];function iu(e,o,n,a,r,i){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:e.pageMode!=="design"&&e.isAutoScroll,step:e.scrollSpeed,vertical:e.scrollDirection==="vertical",style:t.normalizeStyle({height:e.height}),wrapStyle:{overflow:"auto"}},{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.myComponentList,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","vertical","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,ru)}const Pl=ve(me(au,[["render",iu],["__scopeId","data-v-297ba9c9"]])),Fa={...Ee,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:""},Ma=Ce(Fa),ql=["click"],za=t.defineComponent({name:"EcanImage",props:{...Ma},setup(e){const o=ke(e),n=t.computed(()=>ut(e.imgUrl)),{pageMode:a}=t.inject(He,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(De,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Re(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||"",h=Oi(t.unref(a),c),y=e.href;let u=y||h;u=Ie(u);const g=e.target;g&&(g!=="event"?window.open(u,"_"+g):window.parent.postMessage({type:"openPage",url:y},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Vl=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},Hl=za.setup;za.setup=Hl?(e,o)=>(Vl(),Hl(e,o)):Vl;const x1="",lu=["src"];function su(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,lu)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Wl=ve(me(za,[["render",su],["__scopeId","data-v-47ea6e7c"]])),Pa={...Ee,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},qa=Ce(Pa),cu=t.defineComponent({name:"EcanIframe",props:{...qa},setup(e){const o=ke(e),{contextRequestUrl:n}=t.inject(He,{contextRequestUrl:""}),a=t.computed(()=>{let r=Ie(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${q0||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),b1="",du=["src"];function fu(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,du)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const jl=ve(me(cu,[["render",fu],["__scopeId","data-v-19bc100c"]])),Va={...Ee,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:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},Ha=Ce(Va),Gl=["click","refreshData","resetRecord","exportTableData"],uu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",hu="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==",gu="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==",Wa=t.defineComponent({name:"EcanTable",components:{Skeleton:Pt,AButton:de.Button,AInput:de.Input,ACheckboxGroup:de.CheckboxGroup,ATable:de.Table,ATableSummary:de.TableSummary,ATableSummaryRow:de.TableSummaryRow,ATableSummaryCell:de.TableSummaryCell},props:{...Ha},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const G=_e.cloneDeep(e.columns);return e.isUseSeq&&G.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&G.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),G}),r=t.ref(),i=t.ref(!1),s=ke(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),h=()=>{let G=0;switch(e.size){case"small":G=50;break;case"middle":G=53;break;default:G=65;break}return G};t.watchEffect(()=>{var G;(G=l.value)!=null&&G.length&&e.height&&t.nextTick(()=>{let Q=parseFloat(e.height);const X=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ae=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),se=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let re=0;if(ae&&(Q-=(ae==null?void 0:ae.clientHeight)||0),se&&e.isSummaryFixed&&(re=(se==null?void 0:se.clientHeight)||0,Q-=re),e.paginationShow){let te=0;te=h(),te&&(Q-=te)}(X==null?void 0:X.clientHeight)>Q?c.value=Q:c.value=0,t.nextTick(()=>{if(re){const te=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ce=(te==null?void 0:te.clientHeight)||0;re!==ce&&t.unref(c)&&(c.value=Q+re-ce)}})})});const y=t.ref([]),u=t.ref([]),g=t.ref([]),m=t.ref([]),f=t.ref(0),v=t.ref(1),B=t.ref(e.paginationPageSize||10),b=t.reactive([]),p=(G,Q)=>{let X="";return G.forEach((ae,se)=>{const{value:re,rule:te}=ae;ae.conditions?X+=`(${p(ae.conditions,ae.join)})`:re&&te&&(X+=`value ${te} '${re}'`),X+=`${se===G.length-1?"":Q?" "+Q+" ":""}`}),X},x=(G=[])=>{var Q,X;if(Array.isArray(G)&&G.length>0){let ae=G.length;const se=e.columnsFixedNum;if(e.dataType==="indicator"&&((Q=t.unref(a))!=null&&Q.length)){const{graphicConfig:{indicators:re=[]}}=e;G.forEach((te,ce)=>{if(t.unref(a)[ce])for(const Me in t.unref(a)[ce])["dataIndex","title"].includes(Me)||(te[Me]=t.unref(a)[ce][Me]);const ge=re.find(Me=>Me.label===te.title),{showLabel:be=""}=ge||{};be&&(te.title=be)})}for(let re=ae-1;re>=0;re--)(X=G[re])!=null&&X.isHidden&&G.splice(re,1);ae=G.length;for(let re=0;re<ae;re++){const te=G[re];if(re<se?te.fixed="left":te.fixed=!1,e.isSortByFront&&te.sorter){const ht=te.dataIndex;te.sorter=(Ve,at)=>Ve[ht]-at[ht]}const{cellAlign:ce="center",cellColor:ge,dataIndex:be,title:Me,tableFilter:Xe,headerCellAlign:vt,headerCellColor:Ot,overflow:dn,conditions:Nt}=te;Xe&&(b.push(be),te.filterOptionsInputValue="",te.filterCheckboxGroupValue=[],te.customFilterDropdown=!0,te.onFilter=(ht,Ve)=>Ve[be].toString().toLowerCase().includes(ht.toLowerCase())),Nt&&(te.conditionCode=p(Nt)),te.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:vt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),te.customCell=(ht,Ve)=>({style:{textAlign:ce,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref($)===Ve&&e.clickHighlight},onClick:N("click",()=>{const at=e.id,Tn=z(at);ht={dataIndex:be,title:Me,...ht},V(at,{...Tn,type:e.type,RECORD:ht})})}),dn==="ellipsis"?te.ellipsis=!0:te.ellipsis=!1,Array.isArray(te.children)&&x(te.children)}}console.log("_columns",G)},w=(G=[])=>{var X;let Q=_e.cloneDeep(G);return(X=t.unref(m))!=null&&X.length&&(Q=_e.cloneDeep(t.unref(m))),e.isUseSeq&&Q.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Q.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),x(Q),Q};t.watch(B,()=>{v.value=1,ne(!1)}),t.watch(r,G=>{i.value=!!G}),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=w(_e.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([G,Q])=>{Q==="static"&&(u.value=G)},{immediate:!0});const k=t.ref({}),D=G=>{if(Array.isArray(G)){const Q=G.length,X=b,ae=X.length,se={};for(let te=0;te<Q;te++){const ce=G[te];for(let ge=0;ge<ae;ge++){const be=X[ge];if(se[be])se[be].add(ce[be]);else{const Me=new Set;Me.add(ce[be]),se[be]=Me}}}const re={};for(const te in se)if(Object.prototype.hasOwnProperty.call(se,te)){const ce=se[te],ge=Array.from(ce);re[te]=ge.map(be=>({label:be,value:be}))}k.value=re}};t.watch(()=>[e.isReverse,y.value,u.value],()=>{const G=t.unref(y),Q=t.unref(u);if(D(Q),e.isReverse){const{columns:X,dataSource:ae}=_(_e.cloneDeep(G),_e.cloneDeep(Q));g.value=X,l.value=ae}else g.value=G,l.value=Q},{immediate:!0});const _=(G,Q)=>{const X=G[0],ae=[{title:X.title,dataIndex:"col0",key:"col0",align:"center"}];for(let re=0;re<Q.length;re++){const te=Q[re],ce="col"+(re+1);ae.push({title:te[X.dataIndex],dataIndex:ce,key:ce,align:"center"})}const se=[];for(let re=1;re<G.length;re++){const te=G[re],ce={col0:te.title};for(let ge=0;ge<Q.length;ge++){const be=Q[ge];ce[`col${ge+1}`]=be[te.dataIndex]}se.push(ce)}return{columns:ae,dataSource:se}},O=t.ref(""),R=Pe(e),T=async(G=!0,Q={})=>{var X;try{G&&(n.value=!0),t.unref(O)&&(Q.orderCondition=t.unref(O)),e.paginationShow&&(Q={pageNum:t.unref(v),pageSize:t.unref(B)||"10",layer:"1",...Q});const ae=await R(Q),{rows:se=[],total:re=0}=((X=ae==null?void 0:ae.data)==null?void 0:X.data)||{};if(f.value=re,Array.isArray(se)&&(u.value=se),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:te=[]}=e,ce=te.find(ge=>ge.key==="dataSqlId");if((ce==null?void 0:ce.value)==="xt_jxzebg"){const ge=se.filter(be=>!be.绩效总额).map(be=>be.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{de.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(ae){console.error(ae)}finally{n.value=!1}},E=({current:G},Q,X)=>{if(v.value=G,X&&Object.keys(X).length>0){const{field:ae,order:se}=X,te={ascend:"asc",descend:"desc"}[se];ae!=null&&te!=null&&te?O.value=ae+" "+te:te||(O.value="")}e.isSortByFront||ne(!1)},C=t.computed(()=>{const G=e.simple,Q=[e.paginationPosition],X={};return e.isShowTotal&&(X.showTotal=ae=>`共 ${ae} 条数据`),e.paginationShow&&{simple:G,position:Q,total:t.unref(f),current:t.unref(v),pageSize:t.unref(B)||"10",showSizeChanger:!1,size:"large",...X}}),L=G=>+G==1?"是":+G==0?"否":G,S=(G,Q)=>{const{format:X,retentiondigit:ae,customFormatter:se,defaultVal:re}=Q;let te="";if(X==null||X==="")te=G;else{const ce={money:Lo,percentage:kn,contrast:kn,boolean:L,decimals:Yc,custom:Ii};ce[X]||(te=""),X==="decimals"?te=ce[X](G,ae)||"":X==="custom"?te=ce[X](G,se)||"":te=ce[X](G)||""}return te||(te=re),te},A=G=>G==="contrast"?"upDown":"",I=G=>{const{text:Q,format:X,declineColor:ae="#39cf93",increaseColor:se="#ff512e"}=G;if(X==="contrast"){const re={fontSize:e.fontSize},te=parseFloat(Q+"");return te>=0?re.color=se:te<0&&(re.color=ae),re}else return{}},F=t.computed(()=>{const{fontSize:G}=e;return{width:G,height:G,textIndent:`-${parseFloat(G)*2}px`,overflow:"hidden"}}),q=G=>{const{text:Q,declineColor:X="#39cf93",increaseColor:ae="#ff512e"}=G,{fontSize:se}=e,re=parseFloat(Q+""),te={width:se,verticalAlign:"unset"};return re>=0?te.filter=`drop-shadow(${ae||"#ff512e"} ${se} -1px)`:re<0&&(te.filter=`drop-shadow(${X||"#39cf93"} ${se} -1px)`),te},U=G=>{const Q=parseFloat(G+"");if(Q>=0)return zo;if(Q<0)return Po},N=Re(e),{getGlobalModel:z,setGlobalModel:V}=t.inject(De,{getGlobalModel:G=>{},setGlobalModel:(G,Q)=>{}});V(e.id,{type:e.type,RECORD:""});const M=(G=[],Q=[])=>{const X=G.map(ae=>({title:ae,dataIndex:ae,key:ae}));m.value=_e.cloneDeep(X),y.value=w(X),u.value=Q},P=Qe(e),j=async(G=!0)=>{var Q,X,ae,se;try{G&&(n.value=!0);const re=t.unref(O).split(" "),te={};e.isSortByFront||(te.sort={order:re[1],field:re[0]});const ce=await P(te);M((X=(Q=ce==null?void 0:ce.data)==null?void 0:Q.data)==null?void 0:X.columns,(se=(ae=ce==null?void 0:ce.data)==null?void 0:ae.data)==null?void 0:se.rows)}catch(re){console.error(re)}finally{n.value=!1}},$=t.ref(-1),W=(G,Q)=>({onClick:N("rowClick",()=>{const X=e.id,ae=z(X);V(X,{...ae,type:e.type,RECORD:G}),$.value=Q})}),{loadedData:K}=t.inject(wt,{loadedData:{}}),oe=t.ref(!1);t.watch(K,G=>{if(e.dataType==="indicator"){const Q=an(e.graphicConfig);Q!=null&&Q.length&&(!t.unref(oe)&&st(e.graphicConfig,G)?(oe.value=!0,ne()):st(e.graphicConfig,G)||(oe.value=!1))}},{deep:!0});const ne=(G=!0)=>{switch(e.dataType){case"request":T(G);break;case"indicator":st(e.graphicConfig,t.unref(K))&&j(G);break}},ie=()=>{const G=e.id,Q=z(G);V(G,{...Q,type:e.type,RECORD:""})},J=t.computed(()=>{const G=t.unref(g);let Q=0;const{subTotalColumn:X,subTotalName:ae}=e;X&&(Q=G.findIndex(ge=>ge.dataIndex===X),Q<0&&(Q=0));const se=[];let re=0;for(let ge=0;ge<G.length;ge++){const be=G[ge],{isCalcTotal:Me}=be;ge===Q?se.push({...be,total:ae}):Me?(se.push({...be,index:ge,total:0}),re++):se.push({...be})}if(re===0)return[];const te=t.unref(l),ce=Y(se);for(let ge=0;ge<ce.length;ge++){const be=ce[ge];let Me=0;const{isCalcTotal:Xe,dataIndex:vt}=be;if(Xe===!0){for(let Ot=0;Ot<te.length;Ot++){const Nt=+te[Ot][vt];isNaN(Nt)||(Me=new ls.Big(Me).add(Nt).toNumber())}be.total=Me}}return ce});function Y(G){var X;const Q=[];for(const ae of G)(X=ae.children)!=null&&X.length?Q.push(...Y(ae.children)):Q.push(ae);return Q}const{setRequest:ee}=t.inject(ze,{setRequest:G=>{}});typeof ee=="function"&&ee({id:e.id,requestFn:ne,sortNum:e.requestSort}),o({refreshData:ne});const le=(G="",Q)=>Ie(G,Q),xe=G=>{if(G!=="event")return{self:"_self",blank:"_blank"}[G]},Se=(G,Q="")=>{G==="event"&&window.parent.postMessage({type:"openPage",url:Q},"*")},Te=(G,Q)=>{G(Q.filterCheckboxGroupValue)},Oe=(G,Q)=>{G({confirm:!0}),Q.filterOptionsInputValue="",Q.filterCheckboxGroupValue=[]},we=()=>{},Be=G=>{const Q=G.dataIndex;if(typeof Q=="string"){let X=t.unref(k)[Q];const ae=t.unref(G.filterOptionsInputValue).trim();return Array.isArray(X)?(X=X.filter(se=>typeof se.label=="string"?se.label.toLowerCase().includes(ae.toLowerCase()):!0),X):[]}return[]},qe=async()=>{var be,Me;const G="EXPORT_KEY";de.message.loading({key:G,content:"正在导出...",duration:0});let Q=[];if(e.dataType==="static")Q=e.data;else if(e.dataType==="request"){const Xe={layer:"1"};t.unref(O)&&(Xe.orderCondition=t.unref(O));const vt=await R(Xe);Q=((Me=(be=vt==null?void 0:vt.data)==null?void 0:be.data)==null?void 0:Me.rows)||{}}const X=t.unref(g),ae=[],se=[];X==null||X.forEach(Xe=>{ae.push(Xe.dataIndex),se.push(Xe.title)});const re=Q.map(Xe=>_e.pick(Xe,ae)),te=Jt.utils.book_new(),ce=Jt.utils.aoa_to_sheet([se]),ge=Jt.utils.sheet_add_json(ce,re,{skipHeader:!0,origin:"A2"});Jt.utils.book_append_sheet(te,ge,"sheet"),Jt.writeFile(te,"表格数据.xlsx"),de.message.success({key:G,content:"导出成功"})},Ye=(G,Q=2)=>{const X=+G*100;return isNaN(X)||X<=0?0:X>=100?100:X.toFixed(Q)};Le(e,{resetRecord:ie,refreshData:ne,exportTableData:qe});const We=(G,Q)=>{let X=null;return e.stripedShow&&(X=Q%2===1?"table-striped":null),X},je=t.computed(()=>{let G=0;const{height:Q,isPageBottom:X}=e;return X&&Q&&(G=parseFloat(Q)-h()),G?G+"px":"100%"}),Ue=t.computed(()=>{let G="#071655";return e.headerBackgroundColor&&(G="transparent"),G}),mt=t.computed(()=>{let G="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(G="transparent"),G}),ot=t.computed(()=>parseFloat(e.fontSize)+16),Je=t.computed(()=>{let G="";const{paginationColor:Q,paginationBgColor:X,activePaginationColor:ae,activePaginationBgColor:se,hoverBackgroundColor:re}=e;return Q&&(G+="p-color "),X&&(G+="p-bg-color "),ae&&(G+="active-p-color "),se&&(G+="active-p-bg-color "),re&&(G+="hover-bg-color "),G}),$e=(G,Q)=>{const{conditionCode:X}=G;return ln(X,{value:Q})};return{x:d,y:c,style:s,customRow:W,pagination:C,formatFn:S,contrastClass:A,tableChange:E,summaryList:J,loading:n,onTouchHrefEvent:Se,handleHref:le,handleHrefTarget:xe,useRowIndex:$,tableColumns:g,tableDataSource:l,useFilterOptions:Be,useSetSelectedKeys:Te,onResetFilter:Oe,onSearchFilterOptions:we,exportTableData:qe,handleProgressText:Ye,pageSizeVisible:i,pageSize:B,tableRef:r,rowClassName:We,tableHeight:je,tableHeaderBgColor:Ue,tableBodyBgColor:mt,getChgStyle:I,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:U,seqIcon1:uu,seqIcon2:hu,seqIcon3:gu,iconSize:ot,containerClass:Je,getCellStyle:(G,Q)=>{const{overflow:X,conditionCode:ae,attribute:se}=G,re={};return X==="ellipsis"&&(re.overflow="hidden",re.textOverflow="ellipsis"),ae&&(se!=null&&se.color)&&$e(G,Q)&&(re.color=se.color),re},isMatchCondition:$e,getAttrImgSrc:G=>{const{attribute:Q}=G;let X="";return Q!=null&&Q.icon&&(X=ut(Q.icon)),X},getAttrImgStyle:G=>({width:"auto",height:parseFloat(e.fontSize)+6+"px",position:"absolute",marginLeft:"5px"})}}}),Ul=()=>{t.useCssVars(e=>({"1df8dedf":e.stripedColor,"708ae256":e.tableHeaderBgColor,"70b3123e":e.tableBodyBgColor,aa0bb3de:e.paginationBgColor,ed1ebfd4:e.paginationColor,b37e242a:e.activePaginationBgColor,"639b9670":e.activePaginationColor,c3681c28:e.hoverBackgroundColor}))},$l=Wa.setup;Wa.setup=$l?(e,o)=>(Ul(),$l(e,o)):Ul;const S1="",C1="",mu=e=>(t.pushScopeId("data-v-a6276306"),e=e(),t.popScopeId(),e),yu=["id"],xu={key:0,class:"table-tool"},pu=t.createTextVNode("导出数据"),bu=t.createTextVNode(" 搜索 "),vu=t.createTextVNode(" 重置 "),Su=["src","width","height"],Cu=["src","width","height"],wu=["src","width","height"],Au={key:1},ku={key:1,class:"action-list"},Tu=["href","target","onClick"],Bu={key:2,class:"progress-cell"},Eu=["title"],Du=["title"],Ru=["src"],Iu=["title"],_u=["src"],Lu=["src"],Ou={class:"ant-pagination-options-quick-jumper"},Nu=mu(()=>t.createElementVNode("span",null,"条 / 页",-1));function Fu(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"),h=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),g=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(g,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",xu,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[pu]),_: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:f,selectedKeys:v,setSelectedKeys:B,confirm:b,clearFilters:p})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(B,f)},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(()=>[bu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(x=>e.onResetFilter(p,f),["stop"])},{default:t.withCtx(()=>[vu]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:f,index:v,text:B,record:b})=>{var p,x,w,k,D;return[f.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[v===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Su)):v===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Cu)):v>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,wu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(v+1),5)],64)):(t.openBlock(),t.createElementBlock("span",Au,t.toDisplayString(v+1),1))],64)):f.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",ku,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(_,O)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:O},[t.createElementVNode("a",{href:e.handleHref(_.href,b),target:e.handleHrefTarget(_.target),style:t.normalizeStyle({color:_.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:R=>e.onTouchHrefEvent(_.target,e.handleHref(_.href,b))},t.toDisplayString(_.title),13,Tu)]))),128))])):f.format==="progress"?(t.openBlock(),t.createElementBlock("div",Bu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(B,f.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(B)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(B,f.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f,B)})},[f.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((p=f==null?void 0:f.customFormatter)==null?void 0:p.split("{value}")[0])||""},t.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Eu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(f.format)]),style:t.normalizeStyle(e.getChgStyle({...f,text:B})),title:f.format!=null?e.formatFn(B,f):B},[f.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...f,text:B})),src:e.getChgBoxImgSrc(B)},null,12,Ru)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.format!=null?e.formatFn(B,f):B||(f==null?void 0:f.defaultVal)),1)],14,Du),f.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((w=f==null?void 0:f.customFormatter)==null?void 0:w.split("{value}")[1])||""},t.toDisplayString(((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""),9,Iu)):t.createCommentVNode("",!0),e.isMatchCondition(f,B)&&((D=f==null?void 0:f.attribute)!=null&&D.icon)?(t.openBlock(),t.createElementBlock("img",{key:2,style:t.normalizeStyle(e.getAttrImgStyle(f)),src:e.getAttrImgSrc(f)},null,12,_u)):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(h,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(f,v)=>(t.openBlock(),t.createBlock(c,{key:v,index:v,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(f.format)]),style:t.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Lu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),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",Ou,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[t.vModelText,e.pageSize]]),Nu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,yu)}const Yl=ve(me(Wa,[["render",Fu],["__scopeId","data-v-a6276306"]])),ja={...Ee,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"},Ga=Ce(ja),Kl=["click"];et.use([Rt.CanvasRenderer,yt.MapChart,yt.ScatterChart,Ae.VisualMapComponent,Ae.TooltipComponent,Ae.GraphicComponent]);const Mu=t.defineComponent({name:"EcanMap",components:{Echarts:St},props:{...Ga},setup(e){const o=Pe(e),n=Pe({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=ke(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>ut(e.geoBackgroundImage)),c=t.computed(()=>ut(e.backgroundImage)),h=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+ut(C):"circle"}),u=C=>{let L=e.tooltipFormatter;const S=L.match(/\{(.+?)\}/g);if(S==null||S.length===0)return L;for(let A=0;A<S.length;A++){const I=S[A];let F=I.slice(1,-1).trim();const q=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=F.match(q);for(let N=0;N<U.length;N++){const z=U[N],V=C[z];V!=null&&(F=F.replace(z,V))}L=L.replace(I,F)}return L.split(`
|
|
120
|
+
`)},g=t.ref(!1),m=t.ref("");let f=new AbortController;const v=(C,L)=>{const S=f.signal;g.value=!0,r.value=C,n({name:C,signal:S}).then(A=>{var I,F;if(A){const q=((F=(I=A==null?void 0:A.data)==null?void 0:I.data)==null?void 0:F.rows)||[];let U="";for(const N of q){const z=u(N)||[];if(z!=null&&z.length)for(const V of z)U+=`<div style="word-break: break-all;white-space: normal;">${V}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,L(t.unref(m),U)}else S.aborted?i.value="Loading":i.value=C,L(t.unref(m),i.value);g.value=!1})},B=t.computed(()=>{const C=e.geoCenter;let L;return typeof C=="string"&&C!==""&&(L=C.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:L,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(S,A,I)=>{m.value=A;const{name:F=""}=S,{requestUrl:q}=e.tooltipRequestData;if(!q)return F;if(t.unref(g))t.unref(r)!==F&&(f.abort(),f=new AbortController);else{if(t.unref(r)===F)return t.unref(i);v(F,I)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(h),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),p=async()=>{var S;b.value=!1;const C=e.mapJson,L=`map-${e.id}`;if(C!=null&&C.path){const A=await gt(((S=window==null?void 0:window.config)==null?void 0:S.uploadPath)+C.path);et.registerMap(L,(A==null?void 0:A.data)||{})}else et.registerMap(L,{});b.value=!0};t.watch(()=>e.mapJson,()=>{p()},{immediate:!0,deep:!0});const x=async()=>{var C,L;if(e.dataType==="request"){b.value=!1;try{const S=await o(),A=((L=(C=S==null?void 0:S.data)==null?void 0:C.data)==null?void 0:L.rows)||{},I=`map-${e.id}`;if(A!=null&&A.path){const F=await gt(A.path);et.registerMap(I,(F==null?void 0:F.data)||{})}else et.registerMap(I,{})}catch(S){console.error(S)}finally{b.value=!0}}},w=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:k,setGlobalModel:D}=t.inject(De,{getGlobalModel:C=>{},setGlobalModel:(C,L)=>{}}),O=Re(e)("click",()=>{const C=k(e.id);D(e.id,{...C,RECORD:t.unref(a)})});Le(e,{refreshData:w});const{setRequest:R}=t.inject(ze,{setRequest:C=>{}});return typeof R=="function"&&R({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:B,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&O()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),A1="",zu=["src"];function Pu(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,zu),[[t.vShow,!1]])],4)}const Zl=ve(me(Mu,[["render",Pu],["__scopeId","data-v-10f150ac"]])),Ua={...Ee,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"},$a=Ce(Ua),Ql=["selectChange","refreshData"],qu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:de.Select,ASelectOption:de.SelectOption},props:{...$a},setup(e,{expose:o}){const n=ke(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Pe(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var E;const{mode:T}=e;return(E=t.unref(i))!=null&&E.length?s.value:T==="multiple"||T==="tags"||T==="combobox"?[]:""},set:T=>{s.value=T}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:h}=t.inject(De,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{},getRecordValueByKeyName:T=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:T,selectFirstOption:E,value:C}=e,L=h(C),S=y.value;if(T==="multiple"||T==="tags"||T==="combobox"){if(L)s.value=L.split(",");else if(E){const A=t.unref(i)[0];s.value=A?[A[S]]:[]}}else if(L)s.value=L;else if(E){const A=t.unref(i)[0];s.value=A?A[S]:""}},{immediate:!0});const u=(T,E)=>{const C=y.label,L=y.value;let S;const A=E[C],I=E[L];return A!=null?S=A:I!=null&&(S=I),(S==null?void 0:S.toLowerCase().indexOf(T==null?void 0:T.toLowerCase()))>=0},g=T=>{const{label:E,value:C,options:L}=e.dataFieldNames;if(L&&Array.isArray(T))if(T.some(S=>L in S)){const S={},A=[];T.forEach(I=>{S[I[L]]||(S[I[L]]=[]),S[I[L]].push({[E]:I[E],[C]:I[C]})});for(const I in S)A.push({[E]:I,[L]:S[I]});return A}else return T;else if(!L)return T},m=t.ref(!1),f=async()=>{var T,E;if(e.dataType==="request"){m.value=!0;try{const C=await r();if(i.value=g(((E=(T=C==null?void 0:C.data)==null?void 0:T.data)==null?void 0:E.rows)||[]),e.selectFirstOption){let L=t.unref(i)[0];if(y.options){const S=L[y.options];S&&S.length&&(L=S[0])}s.value=L[y.value]}}catch(C){console.error(C)}finally{m.value=!1}}},v=t.computed(()=>{let T=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const E=y.label,C=y.value;if(e.mode==="multiple")T=t.unref(i).filter(L=>t.unref(s).includes(L[C])).map(L=>L[E]);else{const L=t.unref(i).find(S=>t.unref(s)===S[C]);L&&(T=L[E])}}return T}),B=t.ref([]),b=t.computed(()=>{const T={};if(e.mode!=="multiple"){const E=t.unref(B).find(C=>C.value===t.unref(s));E&&(T.itemCodes=E.item_codes)}return T}),p=t.computed(()=>{const{value:T,label:E}=y,C=t.unref(i).find(L=>L[T]===t.unref(l));return C?{label:C[E],value:C[T]}:{}});c(e.id,{type:e.type,value:v,...t.unref(b),recordData:t.unref(p)});const w=Re(e)("selectChange",()=>{const T=e.id,E=d(T);c(T,{...E,...t.unref(b),RECORD:v,recordData:t.unref(p)})}),k=(T=[])=>{if(i.value=g(T),e.selectFirstOption){let E=t.unref(i)[0];if(y.options){const C=E[y.options];C&&C.length&&(E=C[0])}s.value=E[y.value]}c(e.id,{type:e.type,value:v,...t.unref(b),recordData:t.unref(p)})},D=Qe(e),_=async()=>{var T;try{m.value=!0;const E=await D(),{data:C}=(E==null?void 0:E.data)||{},L=y.label,S=y.value;if(C){const A=((T=E==null?void 0:E.data)==null?void 0:T.data)??[];B.value=A;const I=A.map(U=>({[L]:U.label,[S]:U.value})),{id:F}=e,q=d(F);c(F,{...q,...t.unref(b)}),k(I)}else k([])}catch(E){console.error(E)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{_();break}case"request":f();break}};Le(e,{selectChange:w,refreshData:O});const{setRequest:R}=t.inject(ze,{setRequest:({id:T,sortNum:E,requestFn:C})=>{}});return typeof R=="function"&&R({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:w,options:i,filterOption:u,loading:m,resultValue:l}}}),T1="",B1="";function Vu(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 Jl=ve(me(qu,[["render",Vu],["__scopeId","data-v-3639c038"]])),Xl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:kl,EcanBorder:Ol,EcanButton:sl,EcanCheckbox:dl,EcanCirculate:Pl,EcanComboGraph:Rl,EcanCounter:Ki,EcanCustomGraph:El,EcanDataSelect:Jl,EcanDatePicker:tl,EcanIframe:jl,EcanImage:Wl,EcanInput:Qi,EcanLine:wl,EcanList:Gi,EcanMap:Zl,EcanModal:Et,EcanPageConfig:Ni,EcanPie:Sl,EcanProportion:$i,EcanProviderConfig:Fi,EcanRadar:_l,EcanRadio:yl,EcanRangePicker:il,EcanScatter:Bl,EcanScrollText:Vi,EcanSelect:ul,EcanTable:Yl,EcanTabs:Fl,EcanText:qi,EcanTimeDisplay:Wi,EcanTreeSelect:gl,barComponentProps:Sa,barEvents:Al,barProps:va,borderComponentProps:Ia,borderEvents:Ll,borderProps:Ra,buttonComponentProps:aa,buttonEvents:ll,buttonProps:oa,checkboxComponentProps:ia,checkboxEvents:cl,checkboxProps:ra,circulateComponentProps:Na,circulateEvents:Ml,circulateProps:Oa,comboGraphComponentProps:Ba,comboGraphEvents:Dl,comboGraphProps:Ta,counterComponentProps:Yo,counterEvents:Yi,counterProps:$o,customGraphComponentProps:ka,customGraphProps:Aa,dataSelectComponentProps:$a,dataSelectEvents:Ql,dataSelectProps:Ua,datePickerComponentProps:Jo,datePickerEvents:Ji,datePickerProps:Qo,iframeComponentProps:qa,iframeProps:Pa,imageComponentProps:Ma,imageEvents:ql,imageProps:Fa,inputComponentProps:Zo,inputEvents:Zi,inputProps:Ko,lineComponentProps:ba,lineEvents:Cl,lineProps:pa,listComponentProps:jo,listEvents:ji,listProps:Wo,mapComponentProps:Ga,mapEvents:Kl,mapProps:ja,modalComponentProps:ya,modalEvents:pl,modalProps:ma,pageConfig:Vn,pageConfigComponentProps:Hn,pieComponentProps:ga,pieEvents:xl,pieProps:ha,proportionComponentProps:Uo,proportionEvents:Ui,proportionProps:Go,providerConfig:Oo,providerConfigComponentProps:No,radarComponentProps:Da,radarEvents:Il,radarProps:Ea,radioComponentProps:ua,radioEvents:ml,radioProps:fa,rangePickerComponentProps:ta,rangePickerEvents:nl,rangePickerProps:ea,scatterComponentProps:wa,scatterEvents:Tl,scatterProps:Ca,selectComponentProps:sa,selectEvents:fl,selectProps:la,tableComponentProps:Ha,tableEvents:Gl,tableProps:Va,tabsComponentProps:La,tabsEvents:Nl,tabsProps:_a,textComponentProps:Mo,textEvents:Mi,textProps:Fo,timeDisplayComponentProps:Ho,timeDisplayEvents:Hi,timeDisplayProps:Vo,treeSelectComponentProps:da,treeSelectEvents:hl,treeSelectProps:ca},Symbol.toStringTag,{value:"Module"})),Hu={install:e=>{Object.keys(Xl).forEach(o=>{const n=Xl[o];n.install&&e.use(n)})}};H.EcanBar=kl,H.EcanBorder=Ol,H.EcanButton=sl,H.EcanCheckbox=dl,H.EcanCirculate=Pl,H.EcanComboGraph=Rl,H.EcanCounter=Ki,H.EcanCustomGraph=El,H.EcanDataSelect=Jl,H.EcanDatePicker=tl,H.EcanIframe=jl,H.EcanImage=Wl,H.EcanInput=Qi,H.EcanLine=wl,H.EcanList=Gi,H.EcanMap=Zl,H.EcanModal=Et,H.EcanPageConfig=Ni,H.EcanPie=Sl,H.EcanProportion=$i,H.EcanProviderConfig=Fi,H.EcanRadar=_l,H.EcanRadio=yl,H.EcanRangePicker=il,H.EcanScatter=Bl,H.EcanScrollText=Vi,H.EcanSelect=ul,H.EcanTable=Yl,H.EcanTabs=Fl,H.EcanText=qi,H.EcanTimeDisplay=Wi,H.EcanTreeSelect=gl,H.barComponentProps=Sa,H.barEvents=Al,H.barProps=va,H.borderComponentProps=Ia,H.borderEvents=Ll,H.borderProps=Ra,H.buttonComponentProps=aa,H.buttonEvents=ll,H.buttonProps=oa,H.checkboxComponentProps=ia,H.checkboxEvents=cl,H.checkboxProps=ra,H.circulateComponentProps=Na,H.circulateEvents=Ml,H.circulateProps=Oa,H.comboGraphComponentProps=Ba,H.comboGraphEvents=Dl,H.comboGraphProps=Ta,H.compatibleMobileList=vl,H.counterComponentProps=Yo,H.counterEvents=Yi,H.counterProps=$o,H.customGraphComponentProps=ka,H.customGraphProps=Aa,H.dataSelectComponentProps=$a,H.dataSelectEvents=Ql,H.dataSelectProps=Ua,H.datePickerComponentProps=Jo,H.datePickerEvents=Ji,H.datePickerProps=Qo,H.default=Hu,H.handleScrollCombinations=bl,H.iframeComponentProps=qa,H.iframeProps=Pa,H.imageComponentProps=Ma,H.imageEvents=ql,H.imageProps=Fa,H.inputComponentProps=Zo,H.inputEvents=Zi,H.inputProps=Ko,H.lineComponentProps=ba,H.lineEvents=Cl,H.lineProps=pa,H.listComponentProps=jo,H.listEvents=ji,H.listProps=Wo,H.mapComponentProps=Ga,H.mapEvents=Kl,H.mapProps=ja,H.modalComponentProps=ya,H.modalEvents=pl,H.modalProps=ma,H.moveToComponentList=xa,H.pageConfig=Vn,H.pageConfigComponentProps=Hn,H.pieComponentProps=ga,H.pieEvents=xl,H.pieProps=ha,H.proportionComponentProps=Uo,H.proportionEvents=Ui,H.proportionProps=Go,H.providerConfig=Oo,H.providerConfigComponentProps=No,H.radarComponentProps=Da,H.radarEvents=Il,H.radarProps=Ea,H.radioComponentProps=ua,H.radioEvents=ml,H.radioProps=fa,H.rangePickerComponentProps=ta,H.rangePickerEvents=nl,H.rangePickerProps=ea,H.scatterComponentProps=wa,H.scatterEvents=Tl,H.scatterProps=Ca,H.selectComponentProps=sa,H.selectEvents=fl,H.selectProps=la,H.tableComponentProps=Ha,H.tableEvents=Gl,H.tableProps=Va,H.tabsComponentProps=La,H.tabsEvents=Nl,H.tabsProps=_a,H.textComponentProps=Mo,H.textEvents=Mi,H.textProps=Fo,H.timeDisplayComponentProps=Ho,H.timeDisplayEvents=Hi,H.timeDisplayProps=Vo,H.treeSelectComponentProps=da,H.treeSelectEvents=hl,H.treeSelectProps=ca,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|