@ecan-bi/datav 1.3.1 → 1.3.2
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 +3182 -3157
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/graph/radar/Radar.vue.d.ts +1 -4
- package/types/graph/radar/index.d.ts +1 -4
- package/types/table/table/Table.vue.d.ts +16 -0
- package/types/table/table/index.d.ts +16 -0
- package/types/table/table/props.d.ts +10 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
2
|
-
(function(H,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],n):(H=typeof globalThis<"u"?globalThis:H||self,n(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,n,We,Ra,se,iu,lu,qe,Ae,O0,L0,su,cu,fu,Oa,du,uu,hu,gu,kt,dt,ye,mu,N0,yu,xu,jt,M0){var T0,B0,E0,D0;"use strict";function z0(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const F0=z0(N0),P0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function q0(e,o){function t(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return P0.forEach(i=>{r[i]=t(i)}),r}return a()}function H0(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,f)=>{r&&i&&s&&(a=We.throttle(()=>{i.resize()},100),Ra.addListener(r,a)),f(()=>{a&&r&&Ra.removeListener(r,a)})})}const V0={autoresize:Boolean},j0="ecLoadingOptions";function U0(e,o,t){const a=n.inject(j0,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const G0={loading:Boolean,loadingOptions:Object},pu="",W0=/^on[^a-z]/,$0=e=>W0.test(e);function Z0(e){const o={};for(const t in e)$0(t)||(o[t]=e[t]);return o}const Y0="x-vue-echarts",K0="ecTheme",Q0="ecInitOptions",J0="ecUpdateOptions",gt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...V0,...G0},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(K0,null),l=n.inject(Q0,null),f=n.inject(J0,null),{autoresize:c,manualUpdate:d,loading:g,loadingOptions:m}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),y=n.computed(()=>e.theme||n.unref(s)||{}),h=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(f)||{}),T=n.computed(()=>Z0(o));function p(E){if(r.value||!a.value)return;const R=r.value=We.init(a.value,y.value,h.value);e.group&&(R.group=e.group);let _=t;_||(_={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const D=A.charAt(2).toLowerCase()+A.slice(3);_[D]=o[A]})),Object.keys(_).forEach(A=>{const D=_[A];D&&(A.indexOf("zr:")===0?R.getZr().on(A.slice(3).toLowerCase(),D):R.on(A.toLowerCase(),D))});function C(){if(R&&!R.isDisposed())try{R.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function S(){R.setOption(E||u.value,v.value)}c.value?n.nextTick(()=>{C(),S()}):S()}function b(E,R){e.manualUpdate&&(i.value=E),r.value?r.value.setOption(E,R||{}):p(E)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let w=null;n.watch(d,E=>{typeof w=="function"&&(w(),w=null),E||(w=n.watch(()=>e.option,R=>{R&&(r.value?r.value.setOption(R,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([y,h],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const k=q0(r,p);return U0(r,g,m),H0(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:T,...k}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Y0,e)}});function Je(e,o){X0(e)&&(e="100%");var t=el(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function X0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function el(e){return typeof e=="string"&&e.indexOf("%")!==-1}function tl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function nl(e,o,t){return{r:Je(e,255)*255,g:Je(o,255)*255,b:Je(t,255)*255}}function vn(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function ol(e,o,t){var a,r,i;if(e=Je(e,360),o=Je(o,100),t=Je(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=vn(l,s,e+1/3),r=vn(l,s,e),i=vn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function al(e,o,t){e=Je(e,255),o=Je(o,255),t=Je(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,f=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:f,v:s}}function rl(e,o,t){e=Je(e,360)*6,o=Je(o,100),t=Je(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),f=a%6,c=[t,s,i,i,l,t][f],d=[l,t,t,s,i,i][f],g=[i,i,l,t,t,s][f];return{r:c*255,g:d*255,b:g*255}}function il(e,o,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(o).toString(16)),bn(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function La(e){return $e(e)/255}function $e(e){return parseInt(e,16)}var Na={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ut(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=cl(e)),typeof e=="object"&&(ut(e.r)&&ut(e.g)&&ut(e.b)?(o=nl(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ut(e.h)&&ut(e.s)&&ut(e.v)?(a=Qt(e.s),r=Qt(e.v),o=rl(e.h,a,r),s=!0,l="hsv"):ut(e.h)&&ut(e.s)&&ut(e.l)&&(a=Qt(e.s),i=Qt(e.l),o=ol(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=tl(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var ll="[-\\+]?\\d+%?",sl="[-\\+]?\\d*\\.\\d+%?",mt="(?:".concat(sl,")|(?:").concat(ll,")"),Sn="[\\s|\\(]+(".concat(mt,")[,|\\s]+(").concat(mt,")[,|\\s]+(").concat(mt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(mt,")[,|\\s]+(").concat(mt,")[,|\\s]+(").concat(mt,")[,|\\s]+(").concat(mt,")\\s*\\)?"),at={CSS_UNIT:new RegExp(mt),rgb:new RegExp("rgb"+Sn),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Sn),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Sn),hsva:new RegExp("hsva"+Cn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Na[e])e=Na[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=at.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=at.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=at.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=at.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=at.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=at.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=at.hex8.exec(e),t?{r:$e(t[1]),g:$e(t[2]),b:$e(t[3]),a:La(t[4]),format:o?"name":"hex8"}:(t=at.hex6.exec(e),t?{r:$e(t[1]),g:$e(t[2]),b:$e(t[3]),format:o?"name":"hex"}:(t=at.hex4.exec(e),t?{r:$e(t[1]+t[1]),g:$e(t[2]+t[2]),b:$e(t[3]+t[3]),a:La(t[4]+t[4]),format:o?"name":"hex8"}:(t=at.hex3.exec(e),t?{r:$e(t[1]+t[1]),g:$e(t[2]+t[2]),b:$e(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function ut(e){return!!at.CSS_UNIT.exec(String(e))}var Jt=2,Ma=.16,fl=.05,dl=.05,ul=.15,za=5,Fa=4,hl=[{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 Pa(e){var o=e.r,t=e.g,a=e.b,r=al(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function Xt(e){var o=e.r,t=e.g,a=e.b;return"#".concat(il(o,t,a,!1))}function gl(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function qa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-Jt*o:Math.round(e.h)+Jt*o:a=t?Math.round(e.h)+Jt*o:Math.round(e.h)-Jt*o,a<0?a+=360:a>=360&&(a-=360),a}function Ha(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Ma*o:o===Fa?a=e.s+Ma:a=e.s+fl*o,a>1&&(a=1),t&&o===za&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Va(e,o,t){var a;return t?a=e.v+dl*o:a=e.v-ul*o,a>1&&(a=1),Number(a.toFixed(2))}function wn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Ut(e),r=za;r>0;r-=1){var i=Pa(a),s=Xt(Ut({h:qa(i,r,!0),s:Ha(i,r,!0),v:Va(i,r,!0)}));t.push(s)}t.push(Xt(a));for(var l=1;l<=Fa;l+=1){var f=Pa(a),c=Xt(Ut({h:qa(f,l),s:Ha(f,l),v:Va(f,l)}));t.push(c)}return o.theme==="dark"?hl.map(function(d){var g=d.index,m=d.opacity,u=Xt(gl(Ut(o.backgroundColor||"#141414"),Ut(t[g]),m*100));return u}):t}var An={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},kn={},Tn={};Object.keys(An).forEach(function(e){kn[e]=wn(An[e]),kn[e].primary=kn[e][5],Tn[e]=wn(An[e],{theme:"dark",backgroundColor:"#141414"}),Tn[e].primary=Tn[e][5]});var ja=[],Gt=[],ml="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function yl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function xl(e,o){if(o=o||{},e===void 0)throw new Error(ml);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=ja.indexOf(a);r===-1&&(r=ja.push(a)-1,Gt[r]={});var i;return Gt[r]!==void 0&&Gt[r][t]!==void 0?i=Gt[r][t]:(i=Gt[r][t]=yl(),t==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Ua(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){pl(e,r,t[r])})}return e}function pl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function bl(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function vl(e,o){bl(e,"[@ant-design/icons-vue] ".concat(o))}function Ga(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Bn(e,o,t){return t?n.h(e.tag,Ua({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Ua({key:o},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Wa(e){return wn(e)[0]}function $a(e){return e?Array.isArray(e)?e:[e]:[]}var Sl=`
|
|
1
|
+
/*! @ecan-bi/datav@1.3.2 */
|
|
2
|
+
(function(H,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],n):(H=typeof globalThis<"u"?globalThis:H||self,n(H["@ecan/bi-datav"]={},H.Vue,H["echarts/core"],H.ResizeDetector,H.AntDesignVue,null,null,H.LodashEs,H.Dayjs,H.Axios,H.Mitt,null,null,null,H["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,H["echarts/renderers"],H["echarts/charts"],H["echarts/components"],null,H.Echarts,null,null,H.Xlsx,H.big.js))})(this,function(H,n,$e,Ra,se,iu,lu,He,Ae,O0,L0,su,cu,fu,Oa,du,uu,hu,gu,Et,ut,pe,mu,N0,yu,xu,Wt,M0){var T0,B0,E0,D0;"use strict";function z0(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const F0=z0(N0),P0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function q0(e,o){function t(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return P0.forEach(i=>{r[i]=t(i)}),r}return a()}function H0(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,f)=>{r&&i&&s&&(a=$e.throttle(()=>{i.resize()},100),Ra.addListener(r,a)),f(()=>{a&&r&&Ra.removeListener(r,a)})})}const V0={autoresize:Boolean},j0="ecLoadingOptions";function U0(e,o,t){const a=n.inject(j0,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const G0={loading:Boolean,loadingOptions:Object},pu="",W0=/^on[^a-z]/,$0=e=>W0.test(e);function Z0(e){const o={};for(const t in e)$0(t)||(o[t]=e[t]);return o}const Y0="x-vue-echarts",K0="ecTheme",Q0="ecInitOptions",J0="ecUpdateOptions",yt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...V0,...G0},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(K0,null),l=n.inject(Q0,null),f=n.inject(J0,null),{autoresize:c,manualUpdate:d,loading:g,loadingOptions:m}=n.toRefs(e),u=n.computed(()=>i.value||e.option||Object.create(null)),y=n.computed(()=>e.theme||n.unref(s)||{}),h=n.computed(()=>e.initOptions||n.unref(l)||{}),v=n.computed(()=>e.updateOptions||n.unref(f)||{}),E=n.computed(()=>Z0(o));function p(D){if(r.value||!a.value)return;const R=r.value=$e.init(a.value,y.value,h.value);e.group&&(R.group=e.group);let O=t;O||(O={},Object.keys(o).filter(T=>T.indexOf("on")===0&&T.length>2).forEach(T=>{const A=T.charAt(2).toLowerCase()+T.slice(3);O[A]=o[T]})),Object.keys(O).forEach(T=>{const A=O[T];A&&(T.indexOf("zr:")===0?R.getZr().on(T.slice(3).toLowerCase(),A):R.on(T.toLowerCase(),A))});function w(){if(R&&!R.isDisposed())try{R.resize()}catch(T){if(T.message==="Cannot read property 'get' of undefined")return;throw T}}function S(){R.setOption(D||u.value,v.value)}c.value?n.nextTick(()=>{w(),S()}):S()}function b(D,R){e.manualUpdate&&(i.value=D),r.value?r.value.setOption(D,R||{}):p(D)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;n.watch(d,D=>{typeof k=="function"&&(k(),k=null),D||(k=n.watch(()=>e.option,R=>{R&&(r.value?r.value.setOption(R,v.value):p())},{deep:!0}))},{immediate:!0}),n.watch([y,h],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const B=q0(r,p);return U0(r,g,m),H0(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:E,...B}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Y0,e)}});function Xe(e,o){X0(e)&&(e="100%");var t=el(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function X0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function el(e){return typeof e=="string"&&e.indexOf("%")!==-1}function tl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function bn(e){return e.length===1?"0"+e:String(e)}function nl(e,o,t){return{r:Xe(e,255)*255,g:Xe(o,255)*255,b:Xe(t,255)*255}}function vn(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function ol(e,o,t){var a,r,i;if(e=Xe(e,360),o=Xe(o,100),t=Xe(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=vn(l,s,e+1/3),r=vn(l,s,e),i=vn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function al(e,o,t){e=Xe(e,255),o=Xe(o,255),t=Xe(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,f=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:f,v:s}}function rl(e,o,t){e=Xe(e,360)*6,o=Xe(o,100),t=Xe(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),f=a%6,c=[t,s,i,i,l,t][f],d=[l,t,t,s,i,i][f],g=[i,i,l,t,t,s][f];return{r:c*255,g:d*255,b:g*255}}function il(e,o,t,a){var r=[bn(Math.round(e).toString(16)),bn(Math.round(o).toString(16)),bn(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function La(e){return Ze(e)/255}function Ze(e){return parseInt(e,16)}var Na={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 $t(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=cl(e)),typeof e=="object"&&(ht(e.r)&&ht(e.g)&&ht(e.b)?(o=nl(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ht(e.h)&&ht(e.s)&&ht(e.v)?(a=Xt(e.s),r=Xt(e.v),o=rl(e.h,a,r),s=!0,l="hsv"):ht(e.h)&&ht(e.s)&&ht(e.l)&&(a=Xt(e.s),i=Xt(e.l),o=ol(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=tl(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var ll="[-\\+]?\\d+%?",sl="[-\\+]?\\d*\\.\\d+%?",xt="(?:".concat(sl,")|(?:").concat(ll,")"),Sn="[\\s|\\(]+(".concat(xt,")[,|\\s]+(").concat(xt,")[,|\\s]+(").concat(xt,")\\s*\\)?"),Cn="[\\s|\\(]+(".concat(xt,")[,|\\s]+(").concat(xt,")[,|\\s]+(").concat(xt,")[,|\\s]+(").concat(xt,")\\s*\\)?"),at={CSS_UNIT:new RegExp(xt),rgb:new RegExp("rgb"+Sn),rgba:new RegExp("rgba"+Cn),hsl:new RegExp("hsl"+Sn),hsla:new RegExp("hsla"+Cn),hsv:new RegExp("hsv"+Sn),hsva:new RegExp("hsva"+Cn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cl(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Na[e])e=Na[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=at.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=at.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=at.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=at.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=at.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=at.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=at.hex8.exec(e),t?{r:Ze(t[1]),g:Ze(t[2]),b:Ze(t[3]),a:La(t[4]),format:o?"name":"hex8"}:(t=at.hex6.exec(e),t?{r:Ze(t[1]),g:Ze(t[2]),b:Ze(t[3]),format:o?"name":"hex"}:(t=at.hex4.exec(e),t?{r:Ze(t[1]+t[1]),g:Ze(t[2]+t[2]),b:Ze(t[3]+t[3]),a:La(t[4]+t[4]),format:o?"name":"hex8"}:(t=at.hex3.exec(e),t?{r:Ze(t[1]+t[1]),g:Ze(t[2]+t[2]),b:Ze(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function ht(e){return!!at.CSS_UNIT.exec(String(e))}var en=2,Ma=.16,fl=.05,dl=.05,ul=.15,za=5,Fa=4,hl=[{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 Pa(e){var o=e.r,t=e.g,a=e.b,r=al(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function tn(e){var o=e.r,t=e.g,a=e.b;return"#".concat(il(o,t,a,!1))}function gl(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function qa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-en*o:Math.round(e.h)+en*o:a=t?Math.round(e.h)+en*o:Math.round(e.h)-en*o,a<0?a+=360:a>=360&&(a-=360),a}function Ha(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-Ma*o:o===Fa?a=e.s+Ma:a=e.s+fl*o,a>1&&(a=1),t&&o===za&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Va(e,o,t){var a;return t?a=e.v+dl*o:a=e.v-ul*o,a>1&&(a=1),Number(a.toFixed(2))}function wn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=$t(e),r=za;r>0;r-=1){var i=Pa(a),s=tn($t({h:qa(i,r,!0),s:Ha(i,r,!0),v:Va(i,r,!0)}));t.push(s)}t.push(tn(a));for(var l=1;l<=Fa;l+=1){var f=Pa(a),c=tn($t({h:qa(f,l),s:Ha(f,l),v:Va(f,l)}));t.push(c)}return o.theme==="dark"?hl.map(function(d){var g=d.index,m=d.opacity,u=tn(gl($t(o.backgroundColor||"#141414"),$t(t[g]),m*100));return u}):t}var An={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},kn={},Tn={};Object.keys(An).forEach(function(e){kn[e]=wn(An[e]),kn[e].primary=kn[e][5],Tn[e]=wn(An[e],{theme:"dark",backgroundColor:"#141414"}),Tn[e].primary=Tn[e][5]});var ja=[],Zt=[],ml="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function yl(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function xl(e,o){if(o=o||{},e===void 0)throw new Error(ml);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=ja.indexOf(a);r===-1&&(r=ja.push(a)-1,Zt[r]={});var i;return Zt[r]!==void 0&&Zt[r][t]!==void 0?i=Zt[r][t]:(i=Zt[r][t]=yl(),t==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Ua(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){pl(e,r,t[r])})}return e}function pl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function bl(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function vl(e,o){bl(e,"[@ant-design/icons-vue] ".concat(o))}function Ga(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Bn(e,o,t){return t?n.h(e.tag,Ua({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Ua({key:o},e.attrs),(e.children||[]).map(function(a,r){return Bn(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Wa(e){return wn(e)[0]}function $a(e){return e?Array.isArray(e)?e:[e]:[]}var Sl=`
|
|
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
|
-
`,Za=!1,Cl=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sl;n.nextTick(function(){Za||(typeof window<"u"&&window.document&&window.document.documentElement&&xl(o,{prepend:!0}),Za=!0)})},wl=["icon","primaryColor","secondaryColor"];function Al(e,o){if(e==null)return{};var t=kl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function kl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}function
|
|
56
|
+
`,Za=!1,Cl=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sl;n.nextTick(function(){Za||(typeof window<"u"&&window.document&&window.document.documentElement&&xl(o,{prepend:!0}),Za=!0)})},wl=["icon","primaryColor","secondaryColor"];function Al(e,o){if(e==null)return{};var t=kl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function kl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}function nn(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Tl(e,r,t[r])})}return e}function Tl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var Yt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bl(e){var o=e.primaryColor,t=e.secondaryColor;Yt.primaryColor=o,Yt.secondaryColor=t||Wa(o),Yt.calculated=!!t}function El(){return nn({},Yt)}var _t=function(o,t){var a=nn({},o,t.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=Al(a,wl),f=Yt;if(i&&(f={primaryColor:i,secondaryColor:s||Wa(i)}),Cl(),vl(Ga(r),"icon should be icon definiton, but got ".concat(r)),!Ga(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=nn({},c,{icon:c.icon(f.primaryColor,f.secondaryColor)})),Bn(c.icon,"svg-".concat(c.name),nn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};_t.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},_t.inheritAttrs=!1,_t.displayName="IconBase",_t.getTwoToneColors=El,_t.setTwoToneColors=Bl;const En=_t;function Dl(e,o){return Ol(e)||Rl(e,o)||_l(e,o)||Il()}function Il(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _l(e,o){if(e){if(typeof e=="string")return Ya(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ya(e,o)}}function Ya(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function Rl(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function Ol(e){if(Array.isArray(e))return e}function Ka(e){var o=$a(e),t=Dl(o,2),a=t[0],r=t[1];return En.setTwoToneColors({primaryColor:a,secondaryColor:r})}function Ll(){var e=En.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Nl=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ml(e,o){return ql(e)||Pl(e,o)||Fl(e,o)||zl()}function zl(){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 Fl(e,o){if(e){if(typeof e=="string")return Qa(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Qa(e,o)}}function Qa(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function Pl(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function ql(e){if(Array.isArray(e))return e}function Ja(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Dn(e,r,t[r])})}return e}function Dn(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Hl(e,o){if(e==null)return{};var t=Vl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Vl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ka("#1890ff");var It=function(o,t){var a,r=Ja({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,d=r.twoToneColor,g=r.onClick,m=Hl(r,Nl),u=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&g&&(h=-1,m.tabindex=h);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,T=$a(d),p=Ml(T,2),b=p[0],x=p[1];return n.createVNode("span",Ja({role:"img","aria-label":s.name},m,{onClick:g,class:u}),[n.createVNode(En,{class:y,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};It.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},It.displayName="AntdIcon",It.inheritAttrs=!1,It.getTwoToneColor=Ll,It.setTwoToneColor=Ka;const Xa=It;var jl={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 Ul=jl;function er(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Gl(e,r,t[r])})}return e}function Gl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var In=function(o,t){var a=er({},o,t.attrs);return n.createVNode(Xa,er({},a,{icon:Ul}),null)};In.displayName="CloseOutlined",In.inheritAttrs=!1;const Wl=In;var $l={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 Zl=$l;function tr(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Yl(e,r,t[r])})}return e}function Yl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var _n=function(o,t){var a=tr({},o,t.attrs);return n.createVNode(Xa,tr({},a,{icon:Zl}),null)};_n.displayName="LoadingOutlined",_n.inheritAttrs=!1;const Kl=_n,Ql=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h(Kl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),bu="",he=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},Jl={class:"spin-wrapper"};function Xl(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",Jl,[e.spinning?(n.openBlock(),n.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):n.renderSlot(e.$slots,"default",{key:1})])}const _t=he(Ql,[["render",Xl]]),es=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function ts(e,o,t,a,r,i){const s=n.resolveComponent("a-skeleton");return n.openBlock(),n.createBlock(s,{active:"",loading:e.loading},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const tn=he(es,[["render",ts]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const me=(e,o)=>{if(e.install=t=>{for(const a of[e,...Object.values(o??{})])t.component(a.name,a)},o)for(const[t,a]of Object.entries(o))e[t]=a;return e},Ce={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},pe=e=>{const o={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];o[t]={type:a==null?void 0:a.constructor,default:a}}return o},Rn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},On=pe(Rn),ns=["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"],Se=(e,o=[])=>{const t=qe.without(ns,...o);return n.computed(()=>qe.pick(e,t))},Ln="EVENT_BUS",ze="GLOBAL_CONFIG",we="GLOBAL_MODEL",Fe="REQUEST_MODEL",nr="GLOBAL_TOKEN",$t="REFRESH_PAGE",or="MODAL_MODEL",yt="LOADED_DATA",rt=18,ar="ygt",rr=((T0=window==null?void 0:window.config)==null?void 0:T0.indicatorURL)||"";(B0=window==null?void 0:window.config)!=null&&B0.uploadPath;const ir=((E0=window==null?void 0:window.config)==null?void 0:E0.routerBaseURL)||"./",os=((D0=window==null?void 0:window.config)==null?void 0:D0.erdURL)||"",Re=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Ln,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},ke=e=>{const o=e.events,t=e.id,a=n.inject(Ln,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(ze,{touchEventId:n.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Rt=(e,o)=>{let{name:t="name",value:a="value",type:r="type"}=o||{};t=t==null?void 0:t.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const d=e[c],g=d[t]||"",m=d[a]||"",u=d[r]||"";if(i.has(u)){const y=i.get(u);y.push({name:g,value:m,...d}),i.set(u,y)}else i.set(u,[{name:g,value:m,...d}])}const l=[],f=[];for(const[c,d]of i)if(f.push({name:c,data:d}),d!=null&&d.length)if(l.length)for(const g of d)l.includes(g.name)||l.push(g.name);else l.push(...d.map(g=>g.name));return{dimensions:l,dataset:f}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var t=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),t}var sr={exports:{}};function rs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nn={exports:{}};const is=as(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var cr;function ue(){return cr||(cr=1,function(e,o){(function(t,a){e.exports=a()})(ce,function(){var t=t||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof ce<"u"&&ce.crypto&&(i=ce.crypto),!i&&typeof rs=="function")try{i=is}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function p(){}return function(b){var x;return p.prototype=b,x=new p,p.prototype=null,x}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(p){var b=l(this);return p&&b.mixIn(p),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var b in p)p.hasOwnProperty(b)&&(this[b]=p[b]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=c.WordArray=d.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,w=this.sigBytes,k=p.sigBytes;if(this.clamp(),w%4)for(var E=0;E<k;E++){var R=x[E>>>2]>>>24-E%4*8&255;b[w+E>>>2]|=R<<24-(w+E)%4*8}else for(var _=0;_<k;_+=4)b[w+_>>>2]=x[_>>>2];return this.sigBytes+=k,this},clamp:function(){var p=this.words,b=this.sigBytes;p[b>>>2]&=4294967295<<32-b%4*8,p.length=a.ceil(b/4)},clone:function(){var p=d.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var b=[],x=0;x<p;x+=4)b.push(s());return new g.init(b,p)}}),m=f.enc={},u=m.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,w=[],k=0;k<x;k++){var E=b[k>>>2]>>>24-k%4*8&255;w.push((E>>>4).toString(16)),w.push((E&15).toString(16))}return w.join("")},parse:function(p){for(var b=p.length,x=[],w=0;w<b;w+=2)x[w>>>3]|=parseInt(p.substr(w,2),16)<<24-w%8*4;return new g.init(x,b/2)}},y=m.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,w=[],k=0;k<x;k++){var E=b[k>>>2]>>>24-k%4*8&255;w.push(String.fromCharCode(E))}return w.join("")},parse:function(p){for(var b=p.length,x=[],w=0;w<b;w++)x[w>>>2]|=(p.charCodeAt(w)&255)<<24-w%4*8;return new g.init(x,b)}},h=m.Utf8={stringify:function(p){try{return decodeURIComponent(escape(y.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return y.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,w=x.words,k=x.sigBytes,E=this.blockSize,R=E*4,_=k/R;p?_=a.ceil(_):_=a.max((_|0)-this._minBufferSize,0);var C=_*E,S=a.min(C*4,k);if(C){for(var A=0;A<C;A+=E)this._doProcessBlock(w,A);b=w.splice(0,C),x.sigBytes-=S}return new g.init(b,S)},clone:function(){var p=d.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:d.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(p){return function(b,x){return new p.init(x).finalize(b)}},_createHmacHelper:function(p){return function(b,x){return new T.HMAC.init(p,x).finalize(b)}}});var T=f.algo={};return f}(Math);return t})}(Nn)),Nn.exports}var Mn={exports:{}},fr;function nn(){return fr||(fr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=s.extend({init:function(c,d){c=this.words=c||[],d!=a?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,g=[],m=0;m<d;m++){var u=c[m];g.push(u.high),g.push(u.low)}return l.create(g,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),d=c.words=this.words.slice(0),g=d.length,m=0;m<g;m++)d[m]=d[m].clone();return c}})}(),t})}(Mn)),Mn.exports}var zn={exports:{}},dr;function ls(){return dr||(dr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,d=[],g=0;g<c;g++)d[g>>>2]|=f[g]<<24-g%4*8;s.call(this,d,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Fn={exports:{}},ur;function ss(){return ur||(ur=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,g=[],m=0;m<d;m+=2){var u=c[m>>>2]>>>16-m%4*8&65535;g.push(String.fromCharCode(u))}return g.join("")},parse:function(f){for(var c=f.length,d=[],g=0;g<c;g++)d[g>>>1]|=f.charCodeAt(g)<<16-g%2*16;return i.create(d,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,g=[],m=0;m<d;m+=2){var u=l(c[m>>>2]>>>16-m%4*8&65535);g.push(String.fromCharCode(u))}return g.join("")},parse:function(f){for(var c=f.length,d=[],g=0;g<c;g++)d[g>>>1]|=l(f.charCodeAt(g)<<16-g%2*16);return i.create(d,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Fn)),Fn.exports}var Pn={exports:{}},hr;function Ot(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,g=this._map;f.clamp();for(var m=[],u=0;u<d;u+=3)for(var y=c[u>>>2]>>>24-u%4*8&255,h=c[u+1>>>2]>>>24-(u+1)%4*8&255,v=c[u+2>>>2]>>>24-(u+2)%4*8&255,T=y<<16|h<<8|v,p=0;p<4&&u+p*.75<d;p++)m.push(g.charAt(T>>>6*(3-p)&63));var b=g.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},parse:function(f){var c=f.length,d=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<d.length;m++)g[d.charCodeAt(m)]=m}var u=d.charAt(64);if(u){var y=f.indexOf(u);y!==-1&&(c=y)}return l(f,c,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,d){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=d[f.charCodeAt(u-1)]<<u%4*2,h=d[f.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64})}(Pn)),Pn.exports}var qn={exports:{}},gr;function cs(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(f,c=!0){var d=f.words,g=f.sigBytes,m=c?this._safe_map:this._map;f.clamp();for(var u=[],y=0;y<g;y+=3)for(var h=d[y>>>2]>>>24-y%4*8&255,v=d[y+1>>>2]>>>24-(y+1)%4*8&255,T=d[y+2>>>2]>>>24-(y+2)%4*8&255,p=h<<16|v<<8|T,b=0;b<4&&y+b*.75<g;b++)u.push(m.charAt(p>>>6*(3-b)&63));var x=m.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(f,c=!0){var d=f.length,g=c?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var u=0;u<g.length;u++)m[g.charCodeAt(u)]=u}var y=g.charAt(64);if(y){var h=f.indexOf(y);h!==-1&&(d=h)}return l(f,d,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,d){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=d[f.charCodeAt(u-1)]<<u%4*2,h=d[f.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64url})}(qn)),qn.exports}var Hn={exports:{}},mr;function Lt(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var d=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var T=0;T<16;T++){var p=v+T,b=h[p];h[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,w=h[v+0],k=h[v+1],E=h[v+2],R=h[v+3],_=h[v+4],C=h[v+5],S=h[v+6],A=h[v+7],D=h[v+8],B=h[v+9],N=h[v+10],L=h[v+11],M=h[v+12],P=h[v+13],j=h[v+14],G=h[v+15],F=x[0],q=x[1],O=x[2],I=x[3];F=g(F,q,O,I,w,7,c[0]),I=g(I,F,q,O,k,12,c[1]),O=g(O,I,F,q,E,17,c[2]),q=g(q,O,I,F,R,22,c[3]),F=g(F,q,O,I,_,7,c[4]),I=g(I,F,q,O,C,12,c[5]),O=g(O,I,F,q,S,17,c[6]),q=g(q,O,I,F,A,22,c[7]),F=g(F,q,O,I,D,7,c[8]),I=g(I,F,q,O,B,12,c[9]),O=g(O,I,F,q,N,17,c[10]),q=g(q,O,I,F,L,22,c[11]),F=g(F,q,O,I,M,7,c[12]),I=g(I,F,q,O,P,12,c[13]),O=g(O,I,F,q,j,17,c[14]),q=g(q,O,I,F,G,22,c[15]),F=m(F,q,O,I,k,5,c[16]),I=m(I,F,q,O,S,9,c[17]),O=m(O,I,F,q,L,14,c[18]),q=m(q,O,I,F,w,20,c[19]),F=m(F,q,O,I,C,5,c[20]),I=m(I,F,q,O,N,9,c[21]),O=m(O,I,F,q,G,14,c[22]),q=m(q,O,I,F,_,20,c[23]),F=m(F,q,O,I,B,5,c[24]),I=m(I,F,q,O,j,9,c[25]),O=m(O,I,F,q,R,14,c[26]),q=m(q,O,I,F,D,20,c[27]),F=m(F,q,O,I,P,5,c[28]),I=m(I,F,q,O,E,9,c[29]),O=m(O,I,F,q,A,14,c[30]),q=m(q,O,I,F,M,20,c[31]),F=u(F,q,O,I,C,4,c[32]),I=u(I,F,q,O,D,11,c[33]),O=u(O,I,F,q,L,16,c[34]),q=u(q,O,I,F,j,23,c[35]),F=u(F,q,O,I,k,4,c[36]),I=u(I,F,q,O,_,11,c[37]),O=u(O,I,F,q,A,16,c[38]),q=u(q,O,I,F,N,23,c[39]),F=u(F,q,O,I,P,4,c[40]),I=u(I,F,q,O,w,11,c[41]),O=u(O,I,F,q,R,16,c[42]),q=u(q,O,I,F,S,23,c[43]),F=u(F,q,O,I,B,4,c[44]),I=u(I,F,q,O,M,11,c[45]),O=u(O,I,F,q,G,16,c[46]),q=u(q,O,I,F,E,23,c[47]),F=y(F,q,O,I,w,6,c[48]),I=y(I,F,q,O,A,10,c[49]),O=y(O,I,F,q,j,15,c[50]),q=y(q,O,I,F,C,21,c[51]),F=y(F,q,O,I,M,6,c[52]),I=y(I,F,q,O,R,10,c[53]),O=y(O,I,F,q,N,15,c[54]),q=y(q,O,I,F,k,21,c[55]),F=y(F,q,O,I,D,6,c[56]),I=y(I,F,q,O,G,10,c[57]),O=y(O,I,F,q,S,15,c[58]),q=y(q,O,I,F,P,21,c[59]),F=y(F,q,O,I,_,6,c[60]),I=y(I,F,q,O,L,10,c[61]),O=y(O,I,F,q,E,15,c[62]),q=y(q,O,I,F,B,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+q|0,x[2]=x[2]+O|0,x[3]=x[3]+I|0},_doFinalize:function(){var h=this._data,v=h.words,T=this._nDataBytes*8,p=h.sigBytes*8;v[p>>>5]|=128<<24-p%32;var b=a.floor(T/4294967296),x=T;v[(p+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,h.sigBytes=(v.length+1)*4,this._process();for(var w=this._hash,k=w.words,E=0;E<4;E++){var R=k[E];k[E]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return w},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function g(h,v,T,p,b,x,w){var k=h+(v&T|~v&p)+b+w;return(k<<x|k>>>32-x)+v}function m(h,v,T,p,b,x,w){var k=h+(v&p|T&~p)+b+w;return(k<<x|k>>>32-x)+v}function u(h,v,T,p,b,x,w){var k=h+(v^T^p)+b+w;return(k<<x|k>>>32-x)+v}function y(h,v,T,p,b,x,w){var k=h+(T^(v|~p))+b+w;return(k<<x|k>>>32-x)+v}r.MD5=l._createHelper(d),r.HmacMD5=l._createHmacHelper(d)}(Math),t.MD5})}(Hn)),Hn.exports}var Vn={exports:{}},yr;function jn(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,g){for(var m=this._hash.words,u=m[0],y=m[1],h=m[2],v=m[3],T=m[4],p=0;p<80;p++){if(p<16)f[p]=d[g+p]|0;else{var b=f[p-3]^f[p-8]^f[p-14]^f[p-16];f[p]=b<<1|b>>>31}var x=(u<<5|u>>>27)+T+f[p];p<20?x+=(y&h|~y&v)+1518500249:p<40?x+=(y^h^v)+1859775393:p<60?x+=(y&h|y&v|h&v)-1894007588:x+=(y^h^v)-899497514,T=v,v=h,h=y<<30|y>>>2,y=u,u=x}m[0]=m[0]+u|0,m[1]=m[1]+y|0,m[2]=m[2]+h|0,m[3]=m[3]+v|0,m[4]=m[4]+T|0},_doFinalize:function(){var d=this._data,g=d.words,m=this._nDataBytes*8,u=d.sigBytes*8;return g[u>>>5]|=128<<24-u%32,g[(u+64>>>9<<4)+14]=Math.floor(m/4294967296),g[(u+64>>>9<<4)+15]=m,d.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var d=s.clone.call(this);return d._hash=this._hash.clone(),d}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Vn)),Vn.exports}var Un={exports:{}},xr;function pr(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],d=[];(function(){function u(T){for(var p=a.sqrt(T),b=2;b<=p;b++)if(!(T%b))return!1;return!0}function y(T){return(T-(T|0))*4294967296|0}for(var h=2,v=0;v<64;)u(h)&&(v<8&&(c[v]=y(a.pow(h,1/2))),d[v]=y(a.pow(h,1/3)),v++),h++})();var g=[],m=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,y){for(var h=this._hash.words,v=h[0],T=h[1],p=h[2],b=h[3],x=h[4],w=h[5],k=h[6],E=h[7],R=0;R<64;R++){if(R<16)g[R]=u[y+R]|0;else{var _=g[R-15],C=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,S=g[R-2],A=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[R]=C+g[R-7]+A+g[R-16]}var D=x&w^~x&k,B=v&T^v&p^T&p,N=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),L=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),M=E+L+D+d[R]+g[R],P=N+B;E=k,k=w,w=x,x=b+M|0,b=p,p=T,T=v,v=M+P|0}h[0]=h[0]+v|0,h[1]=h[1]+T|0,h[2]=h[2]+p|0,h[3]=h[3]+b|0,h[4]=h[4]+x|0,h[5]=h[5]+w|0,h[6]=h[6]+k|0,h[7]=h[7]+E|0},_doFinalize:function(){var u=this._data,y=u.words,h=this._nDataBytes*8,v=u.sigBytes*8;return y[v>>>5]|=128<<24-v%32,y[(v+64>>>9<<4)+14]=a.floor(h/4294967296),y[(v+64>>>9<<4)+15]=h,u.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(m),r.HmacSHA256=l._createHmacHelper(m)}(Math),t.SHA256})}(Un)),Un.exports}var Gn={exports:{}},br;function fs(){return br||(br=1,function(e,o){(function(t,a,r){e.exports=a(ue(),pr())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(f),a.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Gn)),Gn.exports}var Wn={exports:{}},vr;function Sr(){return vr||(vr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,f=s.WordArray,c=a.algo;function d(){return l.create.apply(l,arguments)}var g=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],m=[];(function(){for(var y=0;y<80;y++)m[y]=d()})();var u=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,h){for(var v=this._hash.words,T=v[0],p=v[1],b=v[2],x=v[3],w=v[4],k=v[5],E=v[6],R=v[7],_=T.high,C=T.low,S=p.high,A=p.low,D=b.high,B=b.low,N=x.high,L=x.low,M=w.high,P=w.low,j=k.high,G=k.low,F=E.high,q=E.low,O=R.high,I=R.low,z=_,U=C,X=S,$=A,K=D,J=B,Q=N,oe=L,te=M,re=P,de=j,be=G,De=F,_e=q,Ye=O,Ne=I,Me=0;Me<80;Me++){var Be,Oe,Ge=m[Me];if(Me<16)Oe=Ge.high=y[h+Me*2]|0,Be=Ge.low=y[h+Me*2+1]|0;else{var ot=m[Me-15],Ve=ot.high,Ue=ot.low,lt=(Ve>>>1|Ue<<31)^(Ve>>>8|Ue<<24)^Ve>>>7,V=(Ue>>>1|Ve<<31)^(Ue>>>8|Ve<<24)^(Ue>>>7|Ve<<25),Z=m[Me-2],Y=Z.high,ae=Z.low,ie=(Y>>>19|ae<<13)^(Y<<3|ae>>>29)^Y>>>6,ne=(ae>>>19|Y<<13)^(ae<<3|Y>>>29)^(ae>>>6|Y<<26),ee=m[Me-7],ge=ee.high,ve=ee.low,xe=m[Me-16],Le=xe.high,Ke=xe.low;Be=V+ve,Oe=lt+ge+(Be>>>0<V>>>0?1:0),Be=Be+ne,Oe=Oe+ie+(Be>>>0<ne>>>0?1:0),Be=Be+Ke,Oe=Oe+Le+(Be>>>0<Ke>>>0?1:0),Ge.high=Oe,Ge.low=Be}var ft=te&de^~te&De,yn=re&be^~re&_e,Et=z&X^z&K^X&K,Kt=U&$^U&J^$&J,xn=(z>>>28|U<<4)^(z<<30|U>>>2)^(z<<25|U>>>7),pn=(U>>>28|z<<4)^(U<<30|z>>>2)^(U<<25|z>>>7),nu=(te>>>14|re<<18)^(te>>>18|re<<14)^(te<<23|re>>>9),ou=(re>>>14|te<<18)^(re>>>18|te<<14)^(re<<23|te>>>9),I0=g[Me],au=I0.high,_0=I0.low,Qe=Ne+ou,At=Ye+nu+(Qe>>>0<Ne>>>0?1:0),Qe=Qe+yn,At=At+ft+(Qe>>>0<yn>>>0?1:0),Qe=Qe+_0,At=At+au+(Qe>>>0<_0>>>0?1:0),Qe=Qe+Be,At=At+Oe+(Qe>>>0<Be>>>0?1:0),R0=pn+Kt,ru=xn+Et+(R0>>>0<pn>>>0?1:0);Ye=De,Ne=_e,De=de,_e=be,de=te,be=re,re=oe+Qe|0,te=Q+At+(re>>>0<oe>>>0?1:0)|0,Q=K,oe=J,K=X,J=$,X=z,$=U,U=Qe+R0|0,z=At+ru+(U>>>0<Qe>>>0?1:0)|0}C=T.low=C+U,T.high=_+z+(C>>>0<U>>>0?1:0),A=p.low=A+$,p.high=S+X+(A>>>0<$>>>0?1:0),B=b.low=B+J,b.high=D+K+(B>>>0<J>>>0?1:0),L=x.low=L+oe,x.high=N+Q+(L>>>0<oe>>>0?1:0),P=w.low=P+re,w.high=M+te+(P>>>0<re>>>0?1:0),G=k.low=G+be,k.high=j+de+(G>>>0<be>>>0?1:0),q=E.low=q+_e,E.high=F+De+(q>>>0<_e>>>0?1:0),I=R.low=I+Ne,R.high=O+Ye+(I>>>0<Ne>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,v=this._nDataBytes*8,T=y.sigBytes*8;h[T>>>5]|=128<<24-T%32,h[(T+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(T+128>>>10<<5)+31]=v,y.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(Wn)),Wn.exports}var $n={exports:{}},Cr;function ds(){return Cr||(Cr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn(),Sr())})(ce,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=16,d}});a.SHA384=f._createHelper(c),a.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}($n)),$n.exports}var Zn={exports:{}},wr;function us(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),nn())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,d=r.algo,g=[],m=[],u=[];(function(){for(var v=1,T=0,p=0;p<24;p++){g[v+5*T]=(p+1)*(p+2)/2%64;var b=T%5,x=(2*v+3*T)%5;v=b,T=x}for(var v=0;v<5;v++)for(var T=0;T<5;T++)m[v+5*T]=T+(2*v+3*T)%5*5;for(var w=1,k=0;k<24;k++){for(var E=0,R=0,_=0;_<7;_++){if(w&1){var C=(1<<_)-1;C<32?R^=1<<C:E^=1<<C-32}w&128?w=w<<1^113:w<<=1}u[k]=c.create(E,R)}})();var y=[];(function(){for(var v=0;v<25;v++)y[v]=c.create()})();var h=d.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],T=0;T<25;T++)v[T]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,T){for(var p=this._state,b=this.blockSize/2,x=0;x<b;x++){var w=v[T+2*x],k=v[T+2*x+1];w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;var E=p[x];E.high^=k,E.low^=w}for(var R=0;R<24;R++){for(var _=0;_<5;_++){for(var C=0,S=0,A=0;A<5;A++){var E=p[_+5*A];C^=E.high,S^=E.low}var D=y[_];D.high=C,D.low=S}for(var _=0;_<5;_++)for(var B=y[(_+4)%5],N=y[(_+1)%5],L=N.high,M=N.low,C=B.high^(L<<1|M>>>31),S=B.low^(M<<1|L>>>31),A=0;A<5;A++){var E=p[_+5*A];E.high^=C,E.low^=S}for(var P=1;P<25;P++){var C,S,E=p[P],j=E.high,G=E.low,F=g[P];F<32?(C=j<<F|G>>>32-F,S=G<<F|j>>>32-F):(C=G<<F-32|j>>>64-F,S=j<<F-32|G>>>64-F);var q=y[m[P]];q.high=C,q.low=S}var O=y[0],I=p[0];O.high=I.high,O.low=I.low;for(var _=0;_<5;_++)for(var A=0;A<5;A++){var P=_+5*A,E=p[P],z=y[P],U=y[(_+1)%5+5*A],X=y[(_+2)%5+5*A];E.high=z.high^~U.high&X.high,E.low=z.low^~U.low&X.low}var E=p[0],$=u[R];E.high^=$.high,E.low^=$.low}},_doFinalize:function(){var v=this._data,T=v.words;this._nDataBytes*8;var p=v.sigBytes*8,b=this.blockSize*32;T[p>>>5]|=1<<24-p%32,T[(a.ceil((p+1)/b)*b>>>5)-1]|=128,v.sigBytes=T.length*4,this._process();for(var x=this._state,w=this.cfg.outputLength/8,k=w/8,E=[],R=0;R<k;R++){var _=x[R],C=_.high,S=_.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,E.push(S),E.push(C)}return new s.init(E,w)},clone:function(){for(var v=l.clone.call(this),T=v._state=this._state.slice(0),p=0;p<25;p++)T[p]=T[p].clone();return v}});r.SHA3=l._createHelper(h),r.HmacSHA3=l._createHmacHelper(h)}(Math),t.SHA3})}(Zn)),Zn.exports}var Yn={exports:{}},Ar;function hs(){return Ar||(Ar=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){/** @preserve
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(e,o){if(e){if(typeof e=="string")return Qa(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Qa(e,o)}}function Qa(e,o){(o==null||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t<o;t++)a[t]=e[t];return a}function Pl(e,o){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var a=[],r=!0,i=!1,s,l;try{for(t=t.call(e);!(r=(s=t.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&t.return!=null&&t.return()}finally{if(i)throw l}}return a}}function ql(e){if(Array.isArray(e))return e}function Ja(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Dn(e,r,t[r])})}return e}function Dn(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Hl(e,o){if(e==null)return{};var t=Vl(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}function Vl(e,o){if(e==null)return{};var t={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(t[r]=e[r]);return t}Ka("#1890ff");var Rt=function(o,t){var a,r=Ja({},o,t.attrs),i=r.class,s=r.icon,l=r.spin,f=r.rotate,c=r.tabindex,d=r.twoToneColor,g=r.onClick,m=Hl(r,Nl),u=(a={anticon:!0},Dn(a,"anticon-".concat(s.name),!!s.name),Dn(a,i,i),a),y=l===""||l||s.name==="loading"?"anticon-spin":"",h=c;h===void 0&&g&&(h=-1,m.tabindex=h);var v=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=$a(d),p=Ml(E,2),b=p[0],x=p[1];return n.createVNode("span",Ja({role:"img","aria-label":s.name},m,{onClick:g,class:u}),[n.createVNode(En,{class:y,icon:s,primaryColor:b,secondaryColor:x,style:v},null)])};Rt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Rt.displayName="AntdIcon",Rt.inheritAttrs=!1,Rt.getTwoToneColor=Ll,Rt.setTwoToneColor=Ka;const Xa=Rt;var jl={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 Ul=jl;function er(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Gl(e,r,t[r])})}return e}function Gl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var In=function(o,t){var a=er({},o,t.attrs);return n.createVNode(Xa,er({},a,{icon:Ul}),null)};In.displayName="CloseOutlined",In.inheritAttrs=!1;const Wl=In;var $l={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 Zl=$l;function tr(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){Yl(e,r,t[r])})}return e}function Yl(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var _n=function(o,t){var a=tr({},o,t.attrs);return n.createVNode(Xa,tr({},a,{icon:Zl}),null)};_n.displayName="LoadingOutlined",_n.inheritAttrs=!1;const Kl=_n,Ql=n.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:n.h(Kl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),bu="",me=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t},Jl={class:"spin-wrapper"};function Xl(e,o,t,a,r,i){const s=n.resolveComponent("a-spin");return n.openBlock(),n.createElementBlock("div",Jl,[e.spinning?(n.openBlock(),n.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):n.renderSlot(e.$slots,"default",{key:1})])}const Ot=me(Ql,[["render",Xl]]),es=n.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function ts(e,o,t,a,r,i){const s=n.resolveComponent("a-skeleton");return n.openBlock(),n.createBlock(s,{active:"",loading:e.loading},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const on=me(es,[["render",ts]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(e,o)=>{if(e.install=t=>{for(const a of[e,...Object.values(o??{})])t.component(a.name,a)},o)for(const[t,a]of Object.entries(o))e[t]=a;return e},Ce={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},be=e=>{const o={};if(typeof e=="object"&&e!=null)for(const t in e){const a=e[t];o[t]={type:a==null?void 0:a.constructor,default:a}}return o},Rn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},On=be(Rn),ns=["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"],Se=(e,o=[])=>{const t=He.without(ns,...o);return n.computed(()=>He.pick(e,t))},Ln="EVENT_BUS",ze="GLOBAL_CONFIG",we="GLOBAL_MODEL",Fe="REQUEST_MODEL",nr="GLOBAL_TOKEN",Kt="REFRESH_PAGE",or="MODAL_MODEL",pt="LOADED_DATA",rt=18,ar="ygt",rr=((T0=window==null?void 0:window.config)==null?void 0:T0.indicatorURL)||"";(B0=window==null?void 0:window.config)!=null&&B0.uploadPath;const ir=((E0=window==null?void 0:window.config)==null?void 0:E0.routerBaseURL)||"./",os=((D0=window==null?void 0:window.config)==null?void 0:D0.erdURL)||"",Oe=(e,o)=>{n.watch(()=>e.id,t=>{const a=n.inject(Ln,{onEvent:(r,i)=>{}});t!=null&&t!==""&&a.onEvent(t,o)},{immediate:!0})},ke=e=>{const o=e.events,t=e.id,a=n.inject(Ln,{emitEvent:(i,s)=>{}}),{touchEventId:r}=n.inject(ze,{touchEventId:n.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(f=>{if(i===f.on)try{r.value=t,l(f.target,f.emit)}catch(c){console.error(c)}})}},Lt=(e,o)=>{let{name:t="name",value:a="value",type:r="type"}=o||{};t=t==null?void 0:t.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const d=e[c],g=d[t]||"",m=d[a]||"",u=d[r]||"";if(i.has(u)){const y=i.get(u);y.push({name:g,value:m,...d}),i.set(u,y)}else i.set(u,[{name:g,value:m,...d}])}const l=[],f=[];for(const[c,d]of i)if(f.push({name:c,data:d}),d!=null&&d.length)if(l.length)for(const g of d)l.includes(g.name)||l.push(g.name);else l.push(...d.map(g=>g.name));return{dimensions:l,dataset:f}};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var t=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};t.prototype=o.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),t}var sr={exports:{}};function rs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nn={exports:{}};const is=as(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var cr;function ge(){return cr||(cr=1,function(e,o){(function(t,a){e.exports=a()})(ce,function(){var t=t||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof ce<"u"&&ce.crypto&&(i=ce.crypto),!i&&typeof rs=="function")try{i=is}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function p(){}return function(b){var x;return p.prototype=b,x=new p,p.prototype=null,x}}(),f={},c=f.lib={},d=c.Base=function(){return{extend:function(p){var b=l(this);return p&&b.mixIn(p),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var b in p)p.hasOwnProperty(b)&&(this[b]=p[b]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=c.WordArray=d.extend({init:function(p,b){p=this.words=p||[],b!=r?this.sigBytes=b:this.sigBytes=p.length*4},toString:function(p){return(p||u).stringify(this)},concat:function(p){var b=this.words,x=p.words,k=this.sigBytes,B=p.sigBytes;if(this.clamp(),k%4)for(var D=0;D<B;D++){var R=x[D>>>2]>>>24-D%4*8&255;b[k+D>>>2]|=R<<24-(k+D)%4*8}else for(var O=0;O<B;O+=4)b[k+O>>>2]=x[O>>>2];return this.sigBytes+=B,this},clamp:function(){var p=this.words,b=this.sigBytes;p[b>>>2]&=4294967295<<32-b%4*8,p.length=a.ceil(b/4)},clone:function(){var p=d.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var b=[],x=0;x<p;x+=4)b.push(s());return new g.init(b,p)}}),m=f.enc={},u=m.Hex={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],B=0;B<x;B++){var D=b[B>>>2]>>>24-B%4*8&255;k.push((D>>>4).toString(16)),k.push((D&15).toString(16))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k+=2)x[k>>>3]|=parseInt(p.substr(k,2),16)<<24-k%8*4;return new g.init(x,b/2)}},y=m.Latin1={stringify:function(p){for(var b=p.words,x=p.sigBytes,k=[],B=0;B<x;B++){var D=b[B>>>2]>>>24-B%4*8&255;k.push(String.fromCharCode(D))}return k.join("")},parse:function(p){for(var b=p.length,x=[],k=0;k<b;k++)x[k>>>2]|=(p.charCodeAt(k)&255)<<24-k%4*8;return new g.init(x,b)}},h=m.Utf8={stringify:function(p){try{return decodeURIComponent(escape(y.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return y.parse(unescape(encodeURIComponent(p)))}},v=c.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=h.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var b,x=this._data,k=x.words,B=x.sigBytes,D=this.blockSize,R=D*4,O=B/R;p?O=a.ceil(O):O=a.max((O|0)-this._minBufferSize,0);var w=O*D,S=a.min(w*4,B);if(w){for(var T=0;T<w;T+=D)this._doProcessBlock(k,T);b=k.splice(0,w),x.sigBytes-=S}return new g.init(b,S)},clone:function(){var p=d.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});c.Hasher=v.extend({cfg:d.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(p){return function(b,x){return new p.init(x).finalize(b)}},_createHmacHelper:function(p){return function(b,x){return new E.HMAC.init(p,x).finalize(b)}}});var E=f.algo={};return f}(Math);return t})}(Nn)),Nn.exports}var Mn={exports:{}},fr;function an(){return fr||(fr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=r.x64={};f.Word=s.extend({init:function(c,d){this.high=c,this.low=d}}),f.WordArray=s.extend({init:function(c,d){c=this.words=c||[],d!=a?this.sigBytes=d:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,d=c.length,g=[],m=0;m<d;m++){var u=c[m];g.push(u.high),g.push(u.low)}return l.create(g,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),d=c.words=this.words.slice(0),g=d.length,m=0;m<g;m++)d[m]=d[m].clone();return c}})}(),t})}(Mn)),Mn.exports}var zn={exports:{}},dr;function ls(){return dr||(dr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var a=t,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,d=[],g=0;g<c;g++)d[g>>>2]|=f[g]<<24-g%4*8;s.call(this,d,c)}else s.apply(this,arguments)};l.prototype=i}}(),t.lib.WordArray})}(zn)),zn.exports}var Fn={exports:{}},ur;function ss(){return ur||(ur=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(f){for(var c=f.words,d=f.sigBytes,g=[],m=0;m<d;m+=2){var u=c[m>>>2]>>>16-m%4*8&65535;g.push(String.fromCharCode(u))}return g.join("")},parse:function(f){for(var c=f.length,d=[],g=0;g<c;g++)d[g>>>1]|=f.charCodeAt(g)<<16-g%2*16;return i.create(d,c*2)}},s.Utf16LE={stringify:function(f){for(var c=f.words,d=f.sigBytes,g=[],m=0;m<d;m+=2){var u=l(c[m>>>2]>>>16-m%4*8&65535);g.push(String.fromCharCode(u))}return g.join("")},parse:function(f){for(var c=f.length,d=[],g=0;g<c;g++)d[g>>>1]|=l(f.charCodeAt(g)<<16-g%2*16);return i.create(d,c*2)}};function l(f){return f<<8&4278255360|f>>>8&16711935}}(),t.enc.Utf16})}(Fn)),Fn.exports}var Pn={exports:{}},hr;function Nt(){return hr||(hr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(f){var c=f.words,d=f.sigBytes,g=this._map;f.clamp();for(var m=[],u=0;u<d;u+=3)for(var y=c[u>>>2]>>>24-u%4*8&255,h=c[u+1>>>2]>>>24-(u+1)%4*8&255,v=c[u+2>>>2]>>>24-(u+2)%4*8&255,E=y<<16|h<<8|v,p=0;p<4&&u+p*.75<d;p++)m.push(g.charAt(E>>>6*(3-p)&63));var b=g.charAt(64);if(b)for(;m.length%4;)m.push(b);return m.join("")},parse:function(f){var c=f.length,d=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m<d.length;m++)g[d.charCodeAt(m)]=m}var u=d.charAt(64);if(u){var y=f.indexOf(u);y!==-1&&(c=y)}return l(f,c,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(f,c,d){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=d[f.charCodeAt(u-1)]<<u%4*2,h=d[f.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64})}(Pn)),Pn.exports}var qn={exports:{}},gr;function cs(){return gr||(gr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(f,c=!0){var d=f.words,g=f.sigBytes,m=c?this._safe_map:this._map;f.clamp();for(var u=[],y=0;y<g;y+=3)for(var h=d[y>>>2]>>>24-y%4*8&255,v=d[y+1>>>2]>>>24-(y+1)%4*8&255,E=d[y+2>>>2]>>>24-(y+2)%4*8&255,p=h<<16|v<<8|E,b=0;b<4&&y+b*.75<g;b++)u.push(m.charAt(p>>>6*(3-b)&63));var x=m.charAt(64);if(x)for(;u.length%4;)u.push(x);return u.join("")},parse:function(f,c=!0){var d=f.length,g=c?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var u=0;u<g.length;u++)m[g.charCodeAt(u)]=u}var y=g.charAt(64);if(y){var h=f.indexOf(y);h!==-1&&(d=h)}return l(f,d,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(f,c,d){for(var g=[],m=0,u=0;u<c;u++)if(u%4){var y=d[f.charCodeAt(u-1)]<<u%4*2,h=d[f.charCodeAt(u)]>>>6-u%4*2,v=y|h;g[m>>>2]|=v<<24-m%4*8,m++}return i.create(g,m)}}(),t.enc.Base64url})}(qn)),qn.exports}var Hn={exports:{}},mr;function Mt(){return mr||(mr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[];(function(){for(var h=0;h<64;h++)c[h]=a.abs(a.sin(h+1))*4294967296|0})();var d=f.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,v){for(var E=0;E<16;E++){var p=v+E,b=h[p];h[p]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var x=this._hash.words,k=h[v+0],B=h[v+1],D=h[v+2],R=h[v+3],O=h[v+4],w=h[v+5],S=h[v+6],T=h[v+7],A=h[v+8],C=h[v+9],_=h[v+10],N=h[v+11],z=h[v+12],P=h[v+13],U=h[v+14],W=h[v+15],F=x[0],q=x[1],L=x[2],I=x[3];F=g(F,q,L,I,k,7,c[0]),I=g(I,F,q,L,B,12,c[1]),L=g(L,I,F,q,D,17,c[2]),q=g(q,L,I,F,R,22,c[3]),F=g(F,q,L,I,O,7,c[4]),I=g(I,F,q,L,w,12,c[5]),L=g(L,I,F,q,S,17,c[6]),q=g(q,L,I,F,T,22,c[7]),F=g(F,q,L,I,A,7,c[8]),I=g(I,F,q,L,C,12,c[9]),L=g(L,I,F,q,_,17,c[10]),q=g(q,L,I,F,N,22,c[11]),F=g(F,q,L,I,z,7,c[12]),I=g(I,F,q,L,P,12,c[13]),L=g(L,I,F,q,U,17,c[14]),q=g(q,L,I,F,W,22,c[15]),F=m(F,q,L,I,B,5,c[16]),I=m(I,F,q,L,S,9,c[17]),L=m(L,I,F,q,N,14,c[18]),q=m(q,L,I,F,k,20,c[19]),F=m(F,q,L,I,w,5,c[20]),I=m(I,F,q,L,_,9,c[21]),L=m(L,I,F,q,W,14,c[22]),q=m(q,L,I,F,O,20,c[23]),F=m(F,q,L,I,C,5,c[24]),I=m(I,F,q,L,U,9,c[25]),L=m(L,I,F,q,R,14,c[26]),q=m(q,L,I,F,A,20,c[27]),F=m(F,q,L,I,P,5,c[28]),I=m(I,F,q,L,D,9,c[29]),L=m(L,I,F,q,T,14,c[30]),q=m(q,L,I,F,z,20,c[31]),F=u(F,q,L,I,w,4,c[32]),I=u(I,F,q,L,A,11,c[33]),L=u(L,I,F,q,N,16,c[34]),q=u(q,L,I,F,U,23,c[35]),F=u(F,q,L,I,B,4,c[36]),I=u(I,F,q,L,O,11,c[37]),L=u(L,I,F,q,T,16,c[38]),q=u(q,L,I,F,_,23,c[39]),F=u(F,q,L,I,P,4,c[40]),I=u(I,F,q,L,k,11,c[41]),L=u(L,I,F,q,R,16,c[42]),q=u(q,L,I,F,S,23,c[43]),F=u(F,q,L,I,C,4,c[44]),I=u(I,F,q,L,z,11,c[45]),L=u(L,I,F,q,W,16,c[46]),q=u(q,L,I,F,D,23,c[47]),F=y(F,q,L,I,k,6,c[48]),I=y(I,F,q,L,T,10,c[49]),L=y(L,I,F,q,U,15,c[50]),q=y(q,L,I,F,w,21,c[51]),F=y(F,q,L,I,z,6,c[52]),I=y(I,F,q,L,R,10,c[53]),L=y(L,I,F,q,_,15,c[54]),q=y(q,L,I,F,B,21,c[55]),F=y(F,q,L,I,A,6,c[56]),I=y(I,F,q,L,W,10,c[57]),L=y(L,I,F,q,S,15,c[58]),q=y(q,L,I,F,P,21,c[59]),F=y(F,q,L,I,O,6,c[60]),I=y(I,F,q,L,N,10,c[61]),L=y(L,I,F,q,D,15,c[62]),q=y(q,L,I,F,C,21,c[63]),x[0]=x[0]+F|0,x[1]=x[1]+q|0,x[2]=x[2]+L|0,x[3]=x[3]+I|0},_doFinalize:function(){var h=this._data,v=h.words,E=this._nDataBytes*8,p=h.sigBytes*8;v[p>>>5]|=128<<24-p%32;var b=a.floor(E/4294967296),x=E;v[(p+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,v[(p+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,h.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,B=k.words,D=0;D<4;D++){var R=B[D];B[D]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return k},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});function g(h,v,E,p,b,x,k){var B=h+(v&E|~v&p)+b+k;return(B<<x|B>>>32-x)+v}function m(h,v,E,p,b,x,k){var B=h+(v&p|E&~p)+b+k;return(B<<x|B>>>32-x)+v}function u(h,v,E,p,b,x,k){var B=h+(v^E^p)+b+k;return(B<<x|B>>>32-x)+v}function y(h,v,E,p,b,x,k){var B=h+(E^(v|~p))+b+k;return(B<<x|B>>>32-x)+v}r.MD5=l._createHelper(d),r.HmacMD5=l._createHmacHelper(d)}(Math),t.MD5})}(Hn)),Hn.exports}var Vn={exports:{}},yr;function jn(){return yr||(yr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,f=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(d,g){for(var m=this._hash.words,u=m[0],y=m[1],h=m[2],v=m[3],E=m[4],p=0;p<80;p++){if(p<16)f[p]=d[g+p]|0;else{var b=f[p-3]^f[p-8]^f[p-14]^f[p-16];f[p]=b<<1|b>>>31}var x=(u<<5|u>>>27)+E+f[p];p<20?x+=(y&h|~y&v)+1518500249:p<40?x+=(y^h^v)+1859775393:p<60?x+=(y&h|y&v|h&v)-1894007588:x+=(y^h^v)-899497514,E=v,v=h,h=y<<30|y>>>2,y=u,u=x}m[0]=m[0]+u|0,m[1]=m[1]+y|0,m[2]=m[2]+h|0,m[3]=m[3]+v|0,m[4]=m[4]+E|0},_doFinalize:function(){var d=this._data,g=d.words,m=this._nDataBytes*8,u=d.sigBytes*8;return g[u>>>5]|=128<<24-u%32,g[(u+64>>>9<<4)+14]=Math.floor(m/4294967296),g[(u+64>>>9<<4)+15]=m,d.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var d=s.clone.call(this);return d._hash=this._hash.clone(),d}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),t.SHA1})}(Vn)),Vn.exports}var Un={exports:{}},xr;function pr(){return xr||(xr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=[],d=[];(function(){function u(E){for(var p=a.sqrt(E),b=2;b<=p;b++)if(!(E%b))return!1;return!0}function y(E){return(E-(E|0))*4294967296|0}for(var h=2,v=0;v<64;)u(h)&&(v<8&&(c[v]=y(a.pow(h,1/2))),d[v]=y(a.pow(h,1/3)),v++),h++})();var g=[],m=f.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(u,y){for(var h=this._hash.words,v=h[0],E=h[1],p=h[2],b=h[3],x=h[4],k=h[5],B=h[6],D=h[7],R=0;R<64;R++){if(R<16)g[R]=u[y+R]|0;else{var O=g[R-15],w=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,S=g[R-2],T=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;g[R]=w+g[R-7]+T+g[R-16]}var A=x&k^~x&B,C=v&E^v&p^E&p,_=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),N=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),z=D+N+A+d[R]+g[R],P=_+C;D=B,B=k,k=x,x=b+z|0,b=p,p=E,E=v,v=z+P|0}h[0]=h[0]+v|0,h[1]=h[1]+E|0,h[2]=h[2]+p|0,h[3]=h[3]+b|0,h[4]=h[4]+x|0,h[5]=h[5]+k|0,h[6]=h[6]+B|0,h[7]=h[7]+D|0},_doFinalize:function(){var u=this._data,y=u.words,h=this._nDataBytes*8,v=u.sigBytes*8;return y[v>>>5]|=128<<24-v%32,y[(v+64>>>9<<4)+14]=a.floor(h/4294967296),y[(v+64>>>9<<4)+15]=h,u.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA256=l._createHelper(m),r.HmacSHA256=l._createHmacHelper(m)}(Math),t.SHA256})}(Un)),Un.exports}var Gn={exports:{}},br;function fs(){return br||(br=1,function(e,o){(function(t,a,r){e.exports=a(ge(),pr())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,f=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(f),a.HmacSHA224=l._createHmacHelper(f)}(),t.SHA224})}(Gn)),Gn.exports}var Wn={exports:{}},vr;function Sr(){return vr||(vr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),an())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,f=s.WordArray,c=a.algo;function d(){return l.create.apply(l,arguments)}var g=[d(1116352408,3609767458),d(1899447441,602891725),d(3049323471,3964484399),d(3921009573,2173295548),d(961987163,4081628472),d(1508970993,3053834265),d(2453635748,2937671579),d(2870763221,3664609560),d(3624381080,2734883394),d(310598401,1164996542),d(607225278,1323610764),d(1426881987,3590304994),d(1925078388,4068182383),d(2162078206,991336113),d(2614888103,633803317),d(3248222580,3479774868),d(3835390401,2666613458),d(4022224774,944711139),d(264347078,2341262773),d(604807628,2007800933),d(770255983,1495990901),d(1249150122,1856431235),d(1555081692,3175218132),d(1996064986,2198950837),d(2554220882,3999719339),d(2821834349,766784016),d(2952996808,2566594879),d(3210313671,3203337956),d(3336571891,1034457026),d(3584528711,2466948901),d(113926993,3758326383),d(338241895,168717936),d(666307205,1188179964),d(773529912,1546045734),d(1294757372,1522805485),d(1396182291,2643833823),d(1695183700,2343527390),d(1986661051,1014477480),d(2177026350,1206759142),d(2456956037,344077627),d(2730485921,1290863460),d(2820302411,3158454273),d(3259730800,3505952657),d(3345764771,106217008),d(3516065817,3606008344),d(3600352804,1432725776),d(4094571909,1467031594),d(275423344,851169720),d(430227734,3100823752),d(506948616,1363258195),d(659060556,3750685593),d(883997877,3785050280),d(958139571,3318307427),d(1322822218,3812723403),d(1537002063,2003034995),d(1747873779,3602036899),d(1955562222,1575990012),d(2024104815,1125592928),d(2227730452,2716904306),d(2361852424,442776044),d(2428436474,593698344),d(2756734187,3733110249),d(3204031479,2999351573),d(3329325298,3815920427),d(3391569614,3928383900),d(3515267271,566280711),d(3940187606,3454069534),d(4118630271,4000239992),d(116418474,1914138554),d(174292421,2731055270),d(289380356,3203993006),d(460393269,320620315),d(685471733,587496836),d(852142971,1086792851),d(1017036298,365543100),d(1126000580,2618297676),d(1288033470,3409855158),d(1501505948,4234509866),d(1607167915,987167468),d(1816402316,1246189591)],m=[];(function(){for(var y=0;y<80;y++)m[y]=d()})();var u=c.SHA512=i.extend({_doReset:function(){this._hash=new f.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,h){for(var v=this._hash.words,E=v[0],p=v[1],b=v[2],x=v[3],k=v[4],B=v[5],D=v[6],R=v[7],O=E.high,w=E.low,S=p.high,T=p.low,A=b.high,C=b.low,_=x.high,N=x.low,z=k.high,P=k.low,U=B.high,W=B.low,F=D.high,q=D.low,L=R.high,I=R.low,M=O,j=w,ee=S,$=T,Q=A,J=C,K=_,te=N,X=z,re=P,ue=U,ve=W,De=F,_e=q,Ke=L,Ne=I,Me=0;Me<80;Me++){var Be,Le,Ge=m[Me];if(Me<16)Le=Ge.high=y[h+Me*2]|0,Be=Ge.low=y[h+Me*2+1]|0;else{var Qe=m[Me-15],je=Qe.high,qe=Qe.low,lt=(je>>>1|qe<<31)^(je>>>8|qe<<24)^je>>>7,V=(qe>>>1|je<<31)^(qe>>>8|je<<24)^(qe>>>7|je<<25),Z=m[Me-2],Y=Z.high,ae=Z.low,ie=(Y>>>19|ae<<13)^(Y<<3|ae>>>29)^Y>>>6,oe=(ae>>>19|Y<<13)^(ae<<3|Y>>>29)^(ae>>>6|Y<<26),ne=m[Me-7],ye=ne.high,de=ne.low,he=m[Me-16],Re=he.high,We=he.low;Be=V+de,Le=lt+ye+(Be>>>0<V>>>0?1:0),Be=Be+oe,Le=Le+ie+(Be>>>0<oe>>>0?1:0),Be=Be+We,Le=Le+Re+(Be>>>0<We>>>0?1:0),Ge.high=Le,Ge.low=Be}var mt=X&ue^~X&De,Tt=re&ve^~re&_e,st=M&ee^M&Q^ee&Q,dt=j&$^j&J^$&J,Gt=(M>>>28|j<<4)^(M<<30|j>>>2)^(M<<25|j>>>7),pn=(j>>>28|M<<4)^(j<<30|M>>>2)^(j<<25|M>>>7),nu=(X>>>14|re<<18)^(X>>>18|re<<14)^(X<<23|re>>>9),ou=(re>>>14|X<<18)^(re>>>18|X<<14)^(re<<23|X>>>9),I0=g[Me],au=I0.high,_0=I0.low,Je=Ne+ou,Bt=Ke+nu+(Je>>>0<Ne>>>0?1:0),Je=Je+Tt,Bt=Bt+mt+(Je>>>0<Tt>>>0?1:0),Je=Je+_0,Bt=Bt+au+(Je>>>0<_0>>>0?1:0),Je=Je+Be,Bt=Bt+Le+(Je>>>0<Be>>>0?1:0),R0=pn+dt,ru=Gt+st+(R0>>>0<pn>>>0?1:0);Ke=De,Ne=_e,De=ue,_e=ve,ue=X,ve=re,re=te+Je|0,X=K+Bt+(re>>>0<te>>>0?1:0)|0,K=Q,te=J,Q=ee,J=$,ee=M,$=j,j=Je+R0|0,M=Bt+ru+(j>>>0<Je>>>0?1:0)|0}w=E.low=w+j,E.high=O+M+(w>>>0<j>>>0?1:0),T=p.low=T+$,p.high=S+ee+(T>>>0<$>>>0?1:0),C=b.low=C+J,b.high=A+Q+(C>>>0<J>>>0?1:0),N=x.low=N+te,x.high=_+K+(N>>>0<te>>>0?1:0),P=k.low=P+re,k.high=z+X+(P>>>0<re>>>0?1:0),W=B.low=W+ve,B.high=U+ue+(W>>>0<ve>>>0?1:0),q=D.low=q+_e,D.high=F+De+(q>>>0<_e>>>0?1:0),I=R.low=I+Ne,R.high=L+Ke+(I>>>0<Ne>>>0?1:0)},_doFinalize:function(){var y=this._data,h=y.words,v=this._nDataBytes*8,E=y.sigBytes*8;h[E>>>5]|=128<<24-E%32,h[(E+128>>>10<<5)+30]=Math.floor(v/4294967296),h[(E+128>>>10<<5)+31]=v,y.sigBytes=h.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});a.SHA512=i._createHelper(u),a.HmacSHA512=i._createHmacHelper(u)}(),t.SHA512})}(Wn)),Wn.exports}var $n={exports:{}},Cr;function ds(){return Cr||(Cr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),an(),Sr())})(ce,function(t){return function(){var a=t,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,f=l.SHA512,c=l.SHA384=f.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=16,d}});a.SHA384=f._createHelper(c),a.HmacSHA384=f._createHmacHelper(c)}(),t.SHA384})}($n)),$n.exports}var Zn={exports:{}},wr;function us(){return wr||(wr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),an())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.x64,c=f.Word,d=r.algo,g=[],m=[],u=[];(function(){for(var v=1,E=0,p=0;p<24;p++){g[v+5*E]=(p+1)*(p+2)/2%64;var b=E%5,x=(2*v+3*E)%5;v=b,E=x}for(var v=0;v<5;v++)for(var E=0;E<5;E++)m[v+5*E]=E+(2*v+3*E)%5*5;for(var k=1,B=0;B<24;B++){for(var D=0,R=0,O=0;O<7;O++){if(k&1){var w=(1<<O)-1;w<32?R^=1<<w:D^=1<<w-32}k&128?k=k<<1^113:k<<=1}u[B]=c.create(D,R)}})();var y=[];(function(){for(var v=0;v<25;v++)y[v]=c.create()})();var h=d.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],E=0;E<25;E++)v[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,E){for(var p=this._state,b=this.blockSize/2,x=0;x<b;x++){var k=v[E+2*x],B=v[E+2*x+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var D=p[x];D.high^=B,D.low^=k}for(var R=0;R<24;R++){for(var O=0;O<5;O++){for(var w=0,S=0,T=0;T<5;T++){var D=p[O+5*T];w^=D.high,S^=D.low}var A=y[O];A.high=w,A.low=S}for(var O=0;O<5;O++)for(var C=y[(O+4)%5],_=y[(O+1)%5],N=_.high,z=_.low,w=C.high^(N<<1|z>>>31),S=C.low^(z<<1|N>>>31),T=0;T<5;T++){var D=p[O+5*T];D.high^=w,D.low^=S}for(var P=1;P<25;P++){var w,S,D=p[P],U=D.high,W=D.low,F=g[P];F<32?(w=U<<F|W>>>32-F,S=W<<F|U>>>32-F):(w=W<<F-32|U>>>64-F,S=U<<F-32|W>>>64-F);var q=y[m[P]];q.high=w,q.low=S}var L=y[0],I=p[0];L.high=I.high,L.low=I.low;for(var O=0;O<5;O++)for(var T=0;T<5;T++){var P=O+5*T,D=p[P],M=y[P],j=y[(O+1)%5+5*T],ee=y[(O+2)%5+5*T];D.high=M.high^~j.high&ee.high,D.low=M.low^~j.low&ee.low}var D=p[0],$=u[R];D.high^=$.high,D.low^=$.low}},_doFinalize:function(){var v=this._data,E=v.words;this._nDataBytes*8;var p=v.sigBytes*8,b=this.blockSize*32;E[p>>>5]|=1<<24-p%32,E[(a.ceil((p+1)/b)*b>>>5)-1]|=128,v.sigBytes=E.length*4,this._process();for(var x=this._state,k=this.cfg.outputLength/8,B=k/8,D=[],R=0;R<B;R++){var O=x[R],w=O.high,S=O.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,D.push(S),D.push(w)}return new s.init(D,k)},clone:function(){for(var v=l.clone.call(this),E=v._state=this._state.slice(0),p=0;p<25;p++)E[p]=E[p].clone();return v}});r.SHA3=l._createHelper(h),r.HmacSHA3=l._createHmacHelper(h)}(Math),t.SHA3})}(Zn)),Zn.exports}var Yn={exports:{}},Ar;function hs(){return Ar||(Ar=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){/** @preserve
|
|
59
59
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
60
60
|
|
|
61
61
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -64,18 +64,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
65
65
|
|
|
66
66
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
67
|
-
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=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]),g=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]),m=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,E){for(var R=0;R<16;R++){var _=E+R,C=k[_];k[_]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var S=this._hash.words,A=u.words,D=y.words,B=c.words,N=d.words,L=g.words,M=m.words,P,j,G,F,q,O,I,z,U,X;O=P=S[0],I=j=S[1],z=G=S[2],U=F=S[3],X=q=S[4];for(var $,R=0;R<80;R+=1)$=P+k[E+B[R]]|0,R<16?$+=v(j,G,F)+A[0]:R<32?$+=T(j,G,F)+A[1]:R<48?$+=p(j,G,F)+A[2]:R<64?$+=b(j,G,F)+A[3]:$+=x(j,G,F)+A[4],$=$|0,$=w($,L[R]),$=$+q|0,P=q,q=F,F=w(G,10),G=j,j=$,$=O+k[E+N[R]]|0,R<16?$+=x(I,z,U)+D[0]:R<32?$+=b(I,z,U)+D[1]:R<48?$+=p(I,z,U)+D[2]:R<64?$+=T(I,z,U)+D[3]:$+=v(I,z,U)+D[4],$=$|0,$=w($,M[R]),$=$+X|0,O=X,X=U,U=w(z,10),z=I,I=$;$=S[1]+G+U|0,S[1]=S[2]+F+X|0,S[2]=S[3]+q+O|0,S[3]=S[4]+P+I|0,S[4]=S[0]+j+z|0,S[0]=$},_doFinalize:function(){var k=this._data,E=k.words,R=this._nDataBytes*8,_=k.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k.sigBytes=(E.length+1)*4,this._process();for(var C=this._hash,S=C.words,A=0;A<5;A++){var D=S[A];S[A]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return C},clone:function(){var k=l.clone.call(this);return k._hash=this._hash.clone(),k}});function v(k,E,R){return k^E^R}function T(k,E,R){return k&E|~k&R}function p(k,E,R){return(k|~E)^R}function b(k,E,R){return k&R|E&~R}function x(k,E,R){return k^(E|~R)}function w(k,E){return k<<E|k>>>32-E}r.RIPEMD160=l._createHelper(h),r.HmacRIPEMD160=l._createHmacHelper(h)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},kr;function Qn(){return kr||(kr=1,function(e,o){(function(t,a){e.exports=a(ue())})(ce,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,f=a.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=l.parse(d));var g=c.blockSize,m=g*4;d.sigBytes>m&&(d=c.finalize(d)),d.clamp();for(var u=this._oKey=d.clone(),y=this._iKey=d.clone(),h=u.words,v=y.words,T=0;T<g;T++)h[T]^=1549556828,v[T]^=909522486;u.sigBytes=y.sigBytes=m,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 d=this._hasher,g=d.finalize(c);d.reset();var m=d.finalize(this._oKey.clone().concat(g));return m}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},Tr;function gs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.SHA1,c=l.HMAC,d=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){for(var u=this.cfg,y=c.create(u.hasher,g),h=s.create(),v=s.create([1]),T=h.words,p=v.words,b=u.keySize,x=u.iterations;T.length<b;){var w=y.update(m).finalize(v);y.reset();for(var k=w.words,E=k.length,R=w,_=1;_<x;_++){R=y.finalize(R),y.reset();for(var C=R.words,S=0;S<E;S++)k[S]^=C[S]}h.concat(w),p[0]++}return h.sigBytes=b*4,h}});a.PBKDF2=function(g,m,u){return d.create(u).compute(g,m)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Br;function Tt(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(ue(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,g){for(var m,u=this.cfg,y=u.hasher.create(),h=s.create(),v=h.words,T=u.keySize,p=u.iterations;v.length<T;){m&&y.update(m),m=y.update(d).finalize(g),y.reset();for(var b=1;b<p;b++)m=y.finalize(m),y.reset();h.concat(m)}return h.sigBytes=T*4,h}});a.EvpKDF=function(d,g,m){return c.create(m).compute(d,g)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Er;function Pe(){return Er||(Er=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Tt())})(ce,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var d=c.Base64,g=r.algo,m=g.EvpKDF,u=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(C,S){return this.create(this._ENC_XFORM_MODE,C,S)},createDecryptor:function(C,S){return this.create(this._DEC_XFORM_MODE,C,S)},init:function(C,S,A){this.cfg=this.cfg.extend(A),this._xformMode=C,this._key=S,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(C){return this._append(C),this._process()},finalize:function(C){C&&this._append(C);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function C(S){return typeof S=="string"?_:k}return function(S){return{encrypt:function(A,D,B){return C(D).encrypt(S,A,D,B)},decrypt:function(A,D,B){return C(D).decrypt(S,A,D,B)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var C=this._process(!0);return C},blockSize:1});var y=r.mode={},h=i.BlockCipherMode=s.extend({createEncryptor:function(C,S){return this.Encryptor.create(C,S)},createDecryptor:function(C,S){return this.Decryptor.create(C,S)},init:function(C,S){this._cipher=C,this._iv=S}}),v=y.CBC=function(){var C=h.extend();C.Encryptor=C.extend({processBlock:function(A,D){var B=this._cipher,N=B.blockSize;S.call(this,A,D,N),B.encryptBlock(A,D),this._prevBlock=A.slice(D,D+N)}}),C.Decryptor=C.extend({processBlock:function(A,D){var B=this._cipher,N=B.blockSize,L=A.slice(D,D+N);B.decryptBlock(A,D),S.call(this,A,D,N),this._prevBlock=L}});function S(A,D,B){var N,L=this._iv;L?(N=L,this._iv=a):N=this._prevBlock;for(var M=0;M<B;M++)A[D+M]^=N[M]}return C}(),T=r.pad={},p=T.Pkcs7={pad:function(C,S){for(var A=S*4,D=A-C.sigBytes%A,B=D<<24|D<<16|D<<8|D,N=[],L=0;L<D;L+=4)N.push(B);var M=l.create(N,D);C.concat(M)},unpad:function(C){var S=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=S}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:v,padding:p}),reset:function(){var C;u.reset.call(this);var S=this.cfg,A=S.iv,D=S.mode;this._xformMode==this._ENC_XFORM_MODE?C=D.createEncryptor:(C=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==C?this._mode.init(this,A&&A.words):(this._mode=C.call(D,this,A&&A.words),this._mode.__creator=C)},_doProcessBlock:function(C,S){this._mode.processBlock(C,S)},_doFinalize:function(){var C,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),C=this._process(!0)):(C=this._process(!0),S.unpad(C)),C},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(C){this.mixIn(C)},toString:function(C){return(C||this.formatter).stringify(this)}}),x=r.format={},w=x.OpenSSL={stringify:function(C){var S,A=C.ciphertext,D=C.salt;return D?S=l.create([1398893684,1701076831]).concat(D).concat(A):S=A,S.toString(d)},parse:function(C){var S,A=d.parse(C),D=A.words;return D[0]==1398893684&&D[1]==1701076831&&(S=l.create(D.slice(2,4)),D.splice(0,4),A.sigBytes-=16),b.create({ciphertext:A,salt:S})}},k=i.SerializableCipher=s.extend({cfg:s.extend({format:w}),encrypt:function(C,S,A,D){D=this.cfg.extend(D);var B=C.createEncryptor(A,D),N=B.finalize(S),L=B.cfg;return b.create({ciphertext:N,key:A,iv:L.iv,algorithm:C,mode:L.mode,padding:L.padding,blockSize:C.blockSize,formatter:D.format})},decrypt:function(C,S,A,D){D=this.cfg.extend(D),S=this._parse(S,D.format);var B=C.createDecryptor(A,D).finalize(S.ciphertext);return B},_parse:function(C,S){return typeof C=="string"?S.parse(C,this):C}}),E=r.kdf={},R=E.OpenSSL={execute:function(C,S,A,D){D||(D=l.random(64/8));var B=m.create({keySize:S+A}).compute(C,D),N=l.create(B.words.slice(S),A*4);return B.sigBytes=S*4,b.create({key:B,iv:N,salt:D})}},_=i.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:R}),encrypt:function(C,S,A,D){D=this.cfg.extend(D);var B=D.kdf.execute(A,C.keySize,C.ivSize);D.iv=B.iv;var N=k.encrypt.call(this,C,S,B.key,D);return N.mixIn(B),N},decrypt:function(C,S,A,D){D=this.cfg.extend(D),S=this._parse(S,D.format);var B=D.kdf.execute(A,C.keySize,C.ivSize,S.salt);D.iv=B.iv;var N=k.decrypt.call(this,C,S,B.key,D);return N}})}()})}(eo)),eo.exports}var to={exports:{}},Dr;function ms(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.mode.CFB=function(){var a=t.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var g=0;g<l;g++)i[s+g]^=c[g]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Ir;function ys(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.mode.CTR=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var g=d.slice(0);l.encryptBlock(g,0),d[f-1]=d[f-1]+1|0;for(var m=0;m<f;m++)i[s+m]^=g[m]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},_r;function xs(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){/** @preserve
|
|
67
|
+
*/return function(a){var r=t,i=r.lib,s=i.WordArray,l=i.Hasher,f=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),d=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]),g=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]),m=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),h=f.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,D){for(var R=0;R<16;R++){var O=D+R,w=B[O];B[O]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var S=this._hash.words,T=u.words,A=y.words,C=c.words,_=d.words,N=g.words,z=m.words,P,U,W,F,q,L,I,M,j,ee;L=P=S[0],I=U=S[1],M=W=S[2],j=F=S[3],ee=q=S[4];for(var $,R=0;R<80;R+=1)$=P+B[D+C[R]]|0,R<16?$+=v(U,W,F)+T[0]:R<32?$+=E(U,W,F)+T[1]:R<48?$+=p(U,W,F)+T[2]:R<64?$+=b(U,W,F)+T[3]:$+=x(U,W,F)+T[4],$=$|0,$=k($,N[R]),$=$+q|0,P=q,q=F,F=k(W,10),W=U,U=$,$=L+B[D+_[R]]|0,R<16?$+=x(I,M,j)+A[0]:R<32?$+=b(I,M,j)+A[1]:R<48?$+=p(I,M,j)+A[2]:R<64?$+=E(I,M,j)+A[3]:$+=v(I,M,j)+A[4],$=$|0,$=k($,z[R]),$=$+ee|0,L=ee,ee=j,j=k(M,10),M=I,I=$;$=S[1]+W+j|0,S[1]=S[2]+F+ee|0,S[2]=S[3]+q+L|0,S[3]=S[4]+P+I|0,S[4]=S[0]+U+M|0,S[0]=$},_doFinalize:function(){var B=this._data,D=B.words,R=this._nDataBytes*8,O=B.sigBytes*8;D[O>>>5]|=128<<24-O%32,D[(O+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,B.sigBytes=(D.length+1)*4,this._process();for(var w=this._hash,S=w.words,T=0;T<5;T++){var A=S[T];S[T]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return w},clone:function(){var B=l.clone.call(this);return B._hash=this._hash.clone(),B}});function v(B,D,R){return B^D^R}function E(B,D,R){return B&D|~B&R}function p(B,D,R){return(B|~D)^R}function b(B,D,R){return B&R|D&~R}function x(B,D,R){return B^(D|~R)}function k(B,D){return B<<D|B>>>32-D}r.RIPEMD160=l._createHelper(h),r.HmacRIPEMD160=l._createHmacHelper(h)}(),t.RIPEMD160})}(Yn)),Yn.exports}var Kn={exports:{}},kr;function Qn(){return kr||(kr=1,function(e,o){(function(t,a){e.exports=a(ge())})(ce,function(t){(function(){var a=t,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,f=a.algo;f.HMAC=i.extend({init:function(c,d){c=this._hasher=new c.init,typeof d=="string"&&(d=l.parse(d));var g=c.blockSize,m=g*4;d.sigBytes>m&&(d=c.finalize(d)),d.clamp();for(var u=this._oKey=d.clone(),y=this._iKey=d.clone(),h=u.words,v=y.words,E=0;E<g;E++)h[E]^=1549556828,v[E]^=909522486;u.sigBytes=y.sigBytes=m,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 d=this._hasher,g=d.finalize(c);d.reset();var m=d.finalize(this._oKey.clone().concat(g));return m}})})()})}(Kn)),Kn.exports}var Jn={exports:{}},Tr;function gs(){return Tr||(Tr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.SHA1,c=l.HMAC,d=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){for(var u=this.cfg,y=c.create(u.hasher,g),h=s.create(),v=s.create([1]),E=h.words,p=v.words,b=u.keySize,x=u.iterations;E.length<b;){var k=y.update(m).finalize(v);y.reset();for(var B=k.words,D=B.length,R=k,O=1;O<x;O++){R=y.finalize(R),y.reset();for(var w=R.words,S=0;S<D;S++)B[S]^=w[S]}h.concat(k),p[0]++}return h.sigBytes=b*4,h}});a.PBKDF2=function(g,m,u){return d.create(u).compute(g,m)}}(),t.PBKDF2})}(Jn)),Jn.exports}var Xn={exports:{}},Br;function Dt(){return Br||(Br=1,function(e,o){(function(t,a,r){e.exports=a(ge(),jn(),Qn())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,f=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:f,iterations:1}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,g){for(var m,u=this.cfg,y=u.hasher.create(),h=s.create(),v=h.words,E=u.keySize,p=u.iterations;v.length<E;){m&&y.update(m),m=y.update(d).finalize(g),y.reset();for(var b=1;b<p;b++)m=y.finalize(m),y.reset();h.concat(m)}return h.sigBytes=E*4,h}});a.EvpKDF=function(d,g,m){return c.create(m).compute(d,g)}}(),t.EvpKDF})}(Xn)),Xn.exports}var eo={exports:{}},Er;function Pe(){return Er||(Er=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Dt())})(ce,function(t){t.lib.Cipher||function(a){var r=t,i=r.lib,s=i.Base,l=i.WordArray,f=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var d=c.Base64,g=r.algo,m=g.EvpKDF,u=i.Cipher=f.extend({cfg:s.extend(),createEncryptor:function(w,S){return this.create(this._ENC_XFORM_MODE,w,S)},createDecryptor:function(w,S){return this.create(this._DEC_XFORM_MODE,w,S)},init:function(w,S,T){this.cfg=this.cfg.extend(T),this._xformMode=w,this._key=S,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var S=this._doFinalize();return S},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(S){return typeof S=="string"?O:B}return function(S){return{encrypt:function(T,A,C){return w(A).encrypt(S,T,A,C)},decrypt:function(T,A,C){return w(A).decrypt(S,T,A,C)}}}}()});i.StreamCipher=u.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var y=r.mode={},h=i.BlockCipherMode=s.extend({createEncryptor:function(w,S){return this.Encryptor.create(w,S)},createDecryptor:function(w,S){return this.Decryptor.create(w,S)},init:function(w,S){this._cipher=w,this._iv=S}}),v=y.CBC=function(){var w=h.extend();w.Encryptor=w.extend({processBlock:function(T,A){var C=this._cipher,_=C.blockSize;S.call(this,T,A,_),C.encryptBlock(T,A),this._prevBlock=T.slice(A,A+_)}}),w.Decryptor=w.extend({processBlock:function(T,A){var C=this._cipher,_=C.blockSize,N=T.slice(A,A+_);C.decryptBlock(T,A),S.call(this,T,A,_),this._prevBlock=N}});function S(T,A,C){var _,N=this._iv;N?(_=N,this._iv=a):_=this._prevBlock;for(var z=0;z<C;z++)T[A+z]^=_[z]}return w}(),E=r.pad={},p=E.Pkcs7={pad:function(w,S){for(var T=S*4,A=T-w.sigBytes%T,C=A<<24|A<<16|A<<8|A,_=[],N=0;N<A;N+=4)_.push(C);var z=l.create(_,A);w.concat(z)},unpad:function(w){var S=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=S}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:v,padding:p}),reset:function(){var w;u.reset.call(this);var S=this.cfg,T=S.iv,A=S.mode;this._xformMode==this._ENC_XFORM_MODE?w=A.createEncryptor:(w=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,T&&T.words):(this._mode=w.call(A,this,T&&T.words),this._mode.__creator=w)},_doProcessBlock:function(w,S){this._mode.processBlock(w,S)},_doFinalize:function(){var w,S=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(S.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),S.unpad(w)),w},blockSize:128/32});var b=i.CipherParams=s.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(w){var S,T=w.ciphertext,A=w.salt;return A?S=l.create([1398893684,1701076831]).concat(A).concat(T):S=T,S.toString(d)},parse:function(w){var S,T=d.parse(w),A=T.words;return A[0]==1398893684&&A[1]==1701076831&&(S=l.create(A.slice(2,4)),A.splice(0,4),T.sigBytes-=16),b.create({ciphertext:T,salt:S})}},B=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(w,S,T,A){A=this.cfg.extend(A);var C=w.createEncryptor(T,A),_=C.finalize(S),N=C.cfg;return b.create({ciphertext:_,key:T,iv:N.iv,algorithm:w,mode:N.mode,padding:N.padding,blockSize:w.blockSize,formatter:A.format})},decrypt:function(w,S,T,A){A=this.cfg.extend(A),S=this._parse(S,A.format);var C=w.createDecryptor(T,A).finalize(S.ciphertext);return C},_parse:function(w,S){return typeof w=="string"?S.parse(w,this):w}}),D=r.kdf={},R=D.OpenSSL={execute:function(w,S,T,A){A||(A=l.random(64/8));var C=m.create({keySize:S+T}).compute(w,A),_=l.create(C.words.slice(S),T*4);return C.sigBytes=S*4,b.create({key:C,iv:_,salt:A})}},O=i.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:R}),encrypt:function(w,S,T,A){A=this.cfg.extend(A);var C=A.kdf.execute(T,w.keySize,w.ivSize);A.iv=C.iv;var _=B.encrypt.call(this,w,S,C.key,A);return _.mixIn(C),_},decrypt:function(w,S,T,A){A=this.cfg.extend(A),S=this._parse(S,A.format);var C=A.kdf.execute(T,w.keySize,w.ivSize,S.salt);A.iv=C.iv;var _=B.decrypt.call(this,w,S,C.key,A);return _}})}()})}(eo)),eo.exports}var to={exports:{}},Dr;function ms(){return Dr||(Dr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.mode.CFB=function(){var a=t.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize;r.call(this,i,s,f,l),this._prevBlock=i.slice(s,s+f)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=i.slice(s,s+f);r.call(this,i,s,f,l),this._prevBlock=c}});function r(i,s,l,f){var c,d=this._iv;d?(c=d.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var g=0;g<l;g++)i[s+g]^=c[g]}return a}(),t.mode.CFB})}(to)),to.exports}var no={exports:{}},Ir;function ys(){return Ir||(Ir=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.mode.CTR=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._counter;c&&(d=this._counter=c.slice(0),this._iv=void 0);var g=d.slice(0);l.encryptBlock(g,0),d[f-1]=d[f-1]+1|0;for(var m=0;m<f;m++)i[s+m]^=g[m]}});return a.Decryptor=r,a}(),t.mode.CTR})}(no)),no.exports}var oo={exports:{}},_r;function xs(){return _r||(_r=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){/** @preserve
|
|
68
68
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
69
69
|
* derived from CryptoJS.mode.CTR
|
|
70
70
|
* Jan Hruby jhruby.web@gmail.com
|
|
71
|
-
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,d=l&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=d}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,f){var c=this._cipher,d=c.blockSize,g=this._iv,m=this._counter;g&&(m=this._counter=g.slice(0),this._iv=void 0),i(m);var u=m.slice(0);c.encryptBlock(u,0);for(var y=0;y<d;y++)l[f+y]^=u[y]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(oo)),oo.exports}var ao={exports:{}},Rr;function ps(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.mode.OFB=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(d,0);for(var g=0;g<f;g++)i[s+g]^=d[g]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},Or;function bs(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.mode.ECB=function(){var a=t.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),t.mode.ECB})}(ro)),ro.exports}var io={exports:{}},Lr;function vs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,f=i+l-1;a.clamp(),a.words[f>>>2]|=l<<24-f%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(io)),io.exports}var lo={exports:{}},Nr;function Ss(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Iso10126})}(lo)),lo.exports}var so={exports:{}},Mr;function Cs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.pad.Iso97971={pad:function(a,r){a.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(a,r)},unpad:function(a){t.pad.ZeroPadding.unpad(a),a.sigBytes--}},t.pad.Iso97971})}(so)),so.exports}var co={exports:{}},zr;function ws(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(co)),co.exports}var fo={exports:{}},Fr;function As(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},Pr;function ks(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Pe())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var g=f.parse(d);return s.create({ciphertext:g})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},qr;function Ts(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],d=[],g=[],m=[],u=[],y=[],h=[],v=[];(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 E=k^k<<1^k<<2^k<<3^k<<4;E=E>>>8^E&255^99,l[w]=E,f[E]=w;var R=b[w],_=b[R],C=b[_],S=b[E]*257^E*16843008;c[w]=S<<24|S>>>8,d[w]=S<<16|S>>>16,g[w]=S<<8|S>>>24,m[w]=S;var S=C*16843009^_*65537^R*257^w*16843008;u[E]=S<<24|S>>>8,y[E]=S<<16|S>>>16,h[E]=S<<8|S>>>24,v[E]=S,w?(w=R^b[b[b[C^R]]],k^=b[b[k]]):w=k=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,w=x.words,k=x.sigBytes/4,E=this._nRounds=k+6,R=(E+1)*4,_=this._keySchedule=[],C=0;C<R;C++)C<k?_[C]=w[C]:(b=_[C-1],C%k?k>6&&C%k==4&&(b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255]):(b=b<<8|b>>>24,b=l[b>>>24]<<24|l[b>>>16&255]<<16|l[b>>>8&255]<<8|l[b&255],b^=T[C/k|0]<<24),_[C]=_[C-k]^b);for(var S=this._invKeySchedule=[],A=0;A<R;A++){var C=R-A;if(A%4)var b=_[C];else var b=_[C-4];A<4||C<=4?S[A]=b:S[A]=u[l[b>>>24]]^y[l[b>>>16&255]]^h[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,d,g,m,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,u,y,h,v,f);var w=b[x+1];b[x+1]=b[x+3],b[x+3]=w},_doCryptBlock:function(b,x,w,k,E,R,_,C){for(var S=this._nRounds,A=b[x]^w[0],D=b[x+1]^w[1],B=b[x+2]^w[2],N=b[x+3]^w[3],L=4,M=1;M<S;M++){var P=k[A>>>24]^E[D>>>16&255]^R[B>>>8&255]^_[N&255]^w[L++],j=k[D>>>24]^E[B>>>16&255]^R[N>>>8&255]^_[A&255]^w[L++],G=k[B>>>24]^E[N>>>16&255]^R[A>>>8&255]^_[D&255]^w[L++],F=k[N>>>24]^E[A>>>16&255]^R[D>>>8&255]^_[B&255]^w[L++];A=P,D=j,B=G,N=F}var P=(C[A>>>24]<<24|C[D>>>16&255]<<16|C[B>>>8&255]<<8|C[N&255])^w[L++],j=(C[D>>>24]<<24|C[B>>>16&255]<<16|C[N>>>8&255]<<8|C[A&255])^w[L++],G=(C[B>>>24]<<24|C[N>>>16&255]<<16|C[A>>>8&255]<<8|C[D&255])^w[L++],F=(C[N>>>24]<<24|C[A>>>16&255]<<16|C[D>>>8&255]<<8|C[B&255])^w[L++];b[x]=P,b[x+1]=j,b[x+2]=G,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},Hr;function Bs(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{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}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var T=this._key,p=T.words,b=[],x=0;x<56;x++){var w=f[x]-1;b[x]=p[w>>>5]>>>31-w%32&1}for(var k=this._subKeys=[],E=0;E<16;E++){for(var R=k[E]=[],_=d[E],x=0;x<24;x++)R[x/6|0]|=b[(c[x]-1+_)%28]<<31-x%6,R[4+(x/6|0)]|=b[28+(c[x+24]-1+_)%28]<<31-x%6;R[0]=R[0]<<1|R[0]>>>31;for(var x=1;x<7;x++)R[x]=R[x]>>>(x-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var C=this._invSubKeys=[],x=0;x<16;x++)C[x]=k[15-x]},encryptBlock:function(T,p){this._doCryptBlock(T,p,this._subKeys)},decryptBlock:function(T,p){this._doCryptBlock(T,p,this._invSubKeys)},_doCryptBlock:function(T,p,b){this._lBlock=T[p],this._rBlock=T[p+1],y.call(this,4,252645135),y.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),y.call(this,1,1431655765);for(var x=0;x<16;x++){for(var w=b[x],k=this._lBlock,E=this._rBlock,R=0,_=0;_<8;_++)R|=g[_][((E^w[_])&m[_])>>>0];this._lBlock=E,this._rBlock=k^R}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,y.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),T[p]=this._lBlock,T[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(T,p){var b=(this._lBlock>>>T^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<T}function h(T,p){var b=(this._rBlock>>>T^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<T}a.DES=s._createHelper(u);var v=l.TripleDES=s.extend({_doReset:function(){var T=this._key,p=T.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=p.slice(0,2),x=p.length<4?p.slice(0,2):p.slice(2,4),w=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(x)),this._des3=u.createEncryptor(i.create(w))},encryptBlock:function(T,p){this._des1.encryptBlock(T,p),this._des2.decryptBlock(T,p),this._des3.encryptBlock(T,p)},decryptBlock:function(T,p){this._des3.decryptBlock(T,p),this._des2.encryptBlock(T,p),this._des1.decryptBlock(T,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},Vr;function Es(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var d=this._key,g=d.words,m=d.sigBytes,u=this._S=[],y=0;y<256;y++)u[y]=y;for(var y=0,h=0;y<256;y++){var v=y%m,T=g[v>>>2]>>>24-v%4*8&255;h=(h+u[y]+T)%256;var p=u[y];u[y]=u[h],u[h]=p}this._i=this._j=0},_doProcessBlock:function(d,g){d[g]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,g=this._i,m=this._j,u=0,y=0;y<4;y++){g=(g+1)%256,m=(m+d[g])%256;var h=d[g];d[g]=d[m],d[m]=h,u|=d[(d[g]+d[m])%256]<<24-y*8}return this._i=g,this._j=m,u}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(mo)),mo.exports}var yo={exports:{}},jr;function Ds(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],d=s.Rabbit=i.extend({_doReset:function(){for(var m=this._key.words,u=this.cfg.iv,y=0;y<4;y++)m[y]=(m[y]<<8|m[y]>>>24)&16711935|(m[y]<<24|m[y]>>>8)&4278255360;var h=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],v=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var y=0;y<4;y++)g.call(this);for(var y=0;y<8;y++)v[y]^=h[y+4&7];if(u){var T=u.words,p=T[0],b=T[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|w&4294901760,E=w<<16|x&65535;v[0]^=x,v[1]^=k,v[2]^=w,v[3]^=E,v[4]^=x,v[5]^=k,v[6]^=w,v[7]^=E;for(var y=0;y<4;y++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)f[y]=u[y];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,T=h>>>16,p=((v*v>>>17)+v*T>>>15)+T*T,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(d)}(),t.Rabbit})}(yo)),yo.exports}var xo={exports:{}},Ur;function Is(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(ue(),Ot(),Lt(),Tt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],d=s.RabbitLegacy=i.extend({_doReset:function(){var m=this._key.words,u=this.cfg.iv,y=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],h=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)h[v]^=y[v+4&7];if(u){var T=u.words,p=T[0],b=T[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,w=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=x>>>16|w&4294901760,E=w<<16|x&65535;h[0]^=x,h[1]^=k,h[2]^=w,h[3]^=E,h[4]^=x,h[5]^=k,h[6]^=w,h[7]^=E;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)f[y]=u[y];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,T=h>>>16,p=((v*v>>>17)+v*T>>>15)+T*T,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(xo)),xo.exports}(function(e,o){(function(t,a,r){e.exports=a(ue(),nn(),ls(),ss(),Ot(),cs(),Lt(),jn(),pr(),fs(),Sr(),ds(),us(),hs(),Qn(),gs(),Tt(),Pe(),ms(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Is())})(ce,function(t){return t})})(sr);var _s=sr.exports;const Ze=lr(_s);var Rs="0123456789abcdefghijklmnopqrstuvwxyz";function ht(e){return Rs.charAt(e)}function Os(e,o){return e&o}function on(e,o){return e|o}function Gr(e,o){return e^o}function Wr(e,o){return e&~o}function Ls(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 Ns(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$r="=";function an(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=Nt.charAt(t>>6)+Nt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=Nt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=Nt.charAt(t>>2)+Nt.charAt((t&3)<<4));(a.length&3)>0;)a+=$r;return a}function Zr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=$r;++t){var i=Nt.indexOf(e.charAt(t));i<0||(a==0?(o+=ht(i>>2),r=i&3,a=1):a==1?(o+=ht(r<<2|i>>4),r=i&15,a=2):a==2?(o+=ht(r),o+=ht(i>>2),r=i&3,a=3):(o+=ht(r<<2|i>>4),o+=ht(i&15),a=0))}return a==1&&(o+=ht(r<<2)),o}var Mt,Ms={decode:function(e){var o;if(Mt===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
-
\r \u2028\u2029`;for(
|
|
73
|
-
\r \u2028\u2029`;for(
|
|
71
|
+
*/return t.mode.CTRGladman=function(){var a=t.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var f=l>>16&255,c=l>>8&255,d=l&255;f===255?(f=0,c===255?(c=0,d===255?d=0:++d):++c):++f,l=0,l+=f<<16,l+=c<<8,l+=d}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,f){var c=this._cipher,d=c.blockSize,g=this._iv,m=this._counter;g&&(m=this._counter=g.slice(0),this._iv=void 0),i(m);var u=m.slice(0);c.encryptBlock(u,0);for(var y=0;y<d;y++)l[f+y]^=u[y]}});return a.Decryptor=s,a}(),t.mode.CTRGladman})}(oo)),oo.exports}var ao={exports:{}},Rr;function ps(){return Rr||(Rr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.mode.OFB=function(){var a=t.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,f=l.blockSize,c=this._iv,d=this._keystream;c&&(d=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(d,0);for(var g=0;g<f;g++)i[s+g]^=d[g]}});return a.Decryptor=r,a}(),t.mode.OFB})}(ao)),ao.exports}var ro={exports:{}},Or;function bs(){return Or||(Or=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.mode.ECB=function(){var a=t.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),t.mode.ECB})}(ro)),ro.exports}var io={exports:{}},Lr;function vs(){return Lr||(Lr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,f=i+l-1;a.clamp(),a.words[f>>>2]|=l<<24-f%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Ansix923})}(io)),io.exports}var lo={exports:{}},Nr;function Ss(){return Nr||(Nr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(t.lib.WordArray.random(s-1)).concat(t.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},t.pad.Iso10126})}(lo)),lo.exports}var so={exports:{}},Mr;function Cs(){return Mr||(Mr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.Iso97971={pad:function(a,r){a.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(a,r)},unpad:function(a){t.pad.ZeroPadding.unpad(a),a.sigBytes--}},t.pad.Iso97971})}(so)),so.exports}var co={exports:{}},zr;function ws(){return zr||(zr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},t.pad.ZeroPadding})}(co)),co.exports}var fo={exports:{}},Fr;function As(){return Fr||(Fr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(fo)),fo.exports}var uo={exports:{}},Pr;function ks(){return Pr||(Pr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Pe())})(ce,function(t){return function(a){var r=t,i=r.lib,s=i.CipherParams,l=r.enc,f=l.Hex,c=r.format;c.Hex={stringify:function(d){return d.ciphertext.toString(f)},parse:function(d){var g=f.parse(d);return s.create({ciphertext:g})}}}(),t.format.Hex})}(uo)),uo.exports}var ho={exports:{}},qr;function Ts(){return qr||(qr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Nt(),Mt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],f=[],c=[],d=[],g=[],m=[],u=[],y=[],h=[],v=[];(function(){for(var b=[],x=0;x<256;x++)x<128?b[x]=x<<1:b[x]=x<<1^283;for(var k=0,B=0,x=0;x<256;x++){var D=B^B<<1^B<<2^B<<3^B<<4;D=D>>>8^D&255^99,l[k]=D,f[D]=k;var R=b[k],O=b[R],w=b[O],S=b[D]*257^D*16843008;c[k]=S<<24|S>>>8,d[k]=S<<16|S>>>16,g[k]=S<<8|S>>>24,m[k]=S;var S=w*16843009^O*65537^R*257^k*16843008;u[D]=S<<24|S>>>8,y[D]=S<<16|S>>>16,h[D]=S<<8|S>>>24,v[D]=S,k?(k=R^b[b[b[w^R]]],B^=b[b[B]]):k=B=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],p=s.AES=i.extend({_doReset:function(){var b;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,B=x.sigBytes/4,D=this._nRounds=B+6,R=(D+1)*4,O=this._keySchedule=[],w=0;w<R;w++)w<B?O[w]=k[w]:(b=O[w-1],w%B?B>6&&w%B==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[w/B|0]<<24),O[w]=O[w-B]^b);for(var S=this._invKeySchedule=[],T=0;T<R;T++){var w=R-T;if(T%4)var b=O[w];else var b=O[w-4];T<4||w<=4?S[T]=b:S[T]=u[l[b>>>24]]^y[l[b>>>16&255]]^h[l[b>>>8&255]]^v[l[b&255]]}}},encryptBlock:function(b,x){this._doCryptBlock(b,x,this._keySchedule,c,d,g,m,l)},decryptBlock:function(b,x){var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k,this._doCryptBlock(b,x,this._invKeySchedule,u,y,h,v,f);var k=b[x+1];b[x+1]=b[x+3],b[x+3]=k},_doCryptBlock:function(b,x,k,B,D,R,O,w){for(var S=this._nRounds,T=b[x]^k[0],A=b[x+1]^k[1],C=b[x+2]^k[2],_=b[x+3]^k[3],N=4,z=1;z<S;z++){var P=B[T>>>24]^D[A>>>16&255]^R[C>>>8&255]^O[_&255]^k[N++],U=B[A>>>24]^D[C>>>16&255]^R[_>>>8&255]^O[T&255]^k[N++],W=B[C>>>24]^D[_>>>16&255]^R[T>>>8&255]^O[A&255]^k[N++],F=B[_>>>24]^D[T>>>16&255]^R[A>>>8&255]^O[C&255]^k[N++];T=P,A=U,C=W,_=F}var P=(w[T>>>24]<<24|w[A>>>16&255]<<16|w[C>>>8&255]<<8|w[_&255])^k[N++],U=(w[A>>>24]<<24|w[C>>>16&255]<<16|w[_>>>8&255]<<8|w[T&255])^k[N++],W=(w[C>>>24]<<24|w[_>>>16&255]<<16|w[T>>>8&255]<<8|w[A&255])^k[N++],F=(w[_>>>24]<<24|w[T>>>16&255]<<16|w[A>>>8&255]<<8|w[C&255])^k[N++];b[x]=P,b[x+1]=U,b[x+2]=W,b[x+3]=F},keySize:256/32});a.AES=i._createHelper(p)}(),t.AES})}(ho)),ho.exports}var go={exports:{}},Hr;function Bs(){return Hr||(Hr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Nt(),Mt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],d=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{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}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=l.DES=s.extend({_doReset:function(){for(var E=this._key,p=E.words,b=[],x=0;x<56;x++){var k=f[x]-1;b[x]=p[k>>>5]>>>31-k%32&1}for(var B=this._subKeys=[],D=0;D<16;D++){for(var R=B[D]=[],O=d[D],x=0;x<24;x++)R[x/6|0]|=b[(c[x]-1+O)%28]<<31-x%6,R[4+(x/6|0)]|=b[28+(c[x+24]-1+O)%28]<<31-x%6;R[0]=R[0]<<1|R[0]>>>31;for(var x=1;x<7;x++)R[x]=R[x]>>>(x-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var w=this._invSubKeys=[],x=0;x<16;x++)w[x]=B[15-x]},encryptBlock:function(E,p){this._doCryptBlock(E,p,this._subKeys)},decryptBlock:function(E,p){this._doCryptBlock(E,p,this._invSubKeys)},_doCryptBlock:function(E,p,b){this._lBlock=E[p],this._rBlock=E[p+1],y.call(this,4,252645135),y.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),y.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=b[x],B=this._lBlock,D=this._rBlock,R=0,O=0;O<8;O++)R|=g[O][((D^k[O])&m[O])>>>0];this._lBlock=D,this._rBlock=B^R}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,y.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),E[p]=this._lBlock,E[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(E,p){var b=(this._lBlock>>>E^this._rBlock)&p;this._rBlock^=b,this._lBlock^=b<<E}function h(E,p){var b=(this._rBlock>>>E^this._lBlock)&p;this._lBlock^=b,this._rBlock^=b<<E}a.DES=s._createHelper(u);var v=l.TripleDES=s.extend({_doReset:function(){var E=this._key,p=E.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=p.slice(0,2),x=p.length<4?p.slice(0,2):p.slice(2,4),k=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=u.createEncryptor(i.create(b)),this._des2=u.createEncryptor(i.create(x)),this._des3=u.createEncryptor(i.create(k))},encryptBlock:function(E,p){this._des1.encryptBlock(E,p),this._des2.decryptBlock(E,p),this._des3.encryptBlock(E,p)},decryptBlock:function(E,p){this._des3.decryptBlock(E,p),this._des2.encryptBlock(E,p),this._des1.decryptBlock(E,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(v)}(),t.TripleDES})}(go)),go.exports}var mo={exports:{}},Vr;function Es(){return Vr||(Vr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Nt(),Mt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var d=this._key,g=d.words,m=d.sigBytes,u=this._S=[],y=0;y<256;y++)u[y]=y;for(var y=0,h=0;y<256;y++){var v=y%m,E=g[v>>>2]>>>24-v%4*8&255;h=(h+u[y]+E)%256;var p=u[y];u[y]=u[h],u[h]=p}this._i=this._j=0},_doProcessBlock:function(d,g){d[g]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var d=this._S,g=this._i,m=this._j,u=0,y=0;y<4;y++){g=(g+1)%256,m=(m+d[g])%256;var h=d[g];d[g]=d[m],d[m]=h,u|=d[(d[g]+d[m])%256]<<24-y*8}return this._i=g,this._j=m,u}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var d=this.cfg.drop;d>0;d--)f.call(this)}});a.RC4Drop=i._createHelper(c)}(),t.RC4})}(mo)),mo.exports}var yo={exports:{}},jr;function Ds(){return jr||(jr=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Nt(),Mt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],d=s.Rabbit=i.extend({_doReset:function(){for(var m=this._key.words,u=this.cfg.iv,y=0;y<4;y++)m[y]=(m[y]<<8|m[y]>>>24)&16711935|(m[y]<<24|m[y]>>>8)&4278255360;var h=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],v=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var y=0;y<4;y++)g.call(this);for(var y=0;y<8;y++)v[y]^=h[y+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,B=x>>>16|k&4294901760,D=k<<16|x&65535;v[0]^=x,v[1]^=B,v[2]^=k,v[3]^=D,v[4]^=x,v[5]^=B,v[6]^=k,v[7]^=D;for(var y=0;y<4;y++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)f[y]=u[y];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,E=h>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(d)}(),t.Rabbit})}(yo)),yo.exports}var xo={exports:{}},Ur;function Is(){return Ur||(Ur=1,function(e,o){(function(t,a,r){e.exports=a(ge(),Nt(),Mt(),Dt(),Pe())})(ce,function(t){return function(){var a=t,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],f=[],c=[],d=s.RabbitLegacy=i.extend({_doReset:function(){var m=this._key.words,u=this.cfg.iv,y=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],h=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)h[v]^=y[v+4&7];if(u){var E=u.words,p=E[0],b=E[1],x=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,k=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,B=x>>>16|k&4294901760,D=k<<16|x&65535;h[0]^=x,h[1]^=B,h[2]^=k,h[3]^=D,h[4]^=x,h[5]^=B,h[6]^=k,h[7]^=D;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(m,u){var y=this._X;g.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360,m[u+h]^=l[h]},blockSize:128/32,ivSize:64/32});function g(){for(var m=this._X,u=this._C,y=0;y<8;y++)f[y]=u[y];u[0]=u[0]+1295307597+this._b|0,u[1]=u[1]+3545052371+(u[0]>>>0<f[0]>>>0?1:0)|0,u[2]=u[2]+886263092+(u[1]>>>0<f[1]>>>0?1:0)|0,u[3]=u[3]+1295307597+(u[2]>>>0<f[2]>>>0?1:0)|0,u[4]=u[4]+3545052371+(u[3]>>>0<f[3]>>>0?1:0)|0,u[5]=u[5]+886263092+(u[4]>>>0<f[4]>>>0?1:0)|0,u[6]=u[6]+1295307597+(u[5]>>>0<f[5]>>>0?1:0)|0,u[7]=u[7]+3545052371+(u[6]>>>0<f[6]>>>0?1:0)|0,this._b=u[7]>>>0<f[7]>>>0?1:0;for(var y=0;y<8;y++){var h=m[y]+u[y],v=h&65535,E=h>>>16,p=((v*v>>>17)+v*E>>>15)+E*E,b=((h&4294901760)*h|0)+((h&65535)*h|0);c[y]=p^b}m[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,m[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,m[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,m[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,m[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,m[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,m[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,m[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(d)}(),t.RabbitLegacy})}(xo)),xo.exports}(function(e,o){(function(t,a,r){e.exports=a(ge(),an(),ls(),ss(),Nt(),cs(),Mt(),jn(),pr(),fs(),Sr(),ds(),us(),hs(),Qn(),gs(),Dt(),Pe(),ms(),ys(),xs(),ps(),bs(),vs(),Ss(),Cs(),ws(),As(),ks(),Ts(),Bs(),Es(),Ds(),Is())})(ce,function(t){return t})})(sr);var _s=sr.exports;const Ye=lr(_s);var Rs="0123456789abcdefghijklmnopqrstuvwxyz";function gt(e){return Rs.charAt(e)}function Os(e,o){return e&o}function rn(e,o){return e|o}function Gr(e,o){return e^o}function Wr(e,o){return e&~o}function Ls(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 Ns(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$r="=";function ln(e){var o,t,a="";for(o=0;o+3<=e.length;o+=3)t=parseInt(e.substring(o,o+3),16),a+=zt.charAt(t>>6)+zt.charAt(t&63);for(o+1==e.length?(t=parseInt(e.substring(o,o+1),16),a+=zt.charAt(t<<2)):o+2==e.length&&(t=parseInt(e.substring(o,o+2),16),a+=zt.charAt(t>>2)+zt.charAt((t&3)<<4));(a.length&3)>0;)a+=$r;return a}function Zr(e){var o="",t,a=0,r=0;for(t=0;t<e.length&&e.charAt(t)!=$r;++t){var i=zt.indexOf(e.charAt(t));i<0||(a==0?(o+=gt(i>>2),r=i&3,a=1):a==1?(o+=gt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=gt(r),o+=gt(i>>2),r=i&3,a=3):(o+=gt(r<<2|i>>4),o+=gt(i&15),a=0))}return a==1&&(o+=gt(r<<2)),o}var Ft,Ms={decode:function(e){var o;if(Ft===void 0){var t="0123456789ABCDEF",a=` \f
|
|
72
|
+
\r \u2028\u2029`;for(Ft={},o=0;o<16;++o)Ft[t.charAt(o)]=o;for(t=t.toLowerCase(),o=10;o<16;++o)Ft[t.charAt(o)]=o;for(o=0;o<a.length;++o)Ft[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=Ft[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},It,po={decode:function(e){var o;if(It===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
|
|
73
|
+
\r \u2028\u2029`;for(It=Object.create(null),o=0;o<64;++o)It[t.charAt(o)]=o;for(It["-"]=62,It._=63,o=0;o<a.length;++o)It[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=It[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=po.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return po.decode(e)}},Pt=1e13,Qt=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,t){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+t,s<Pt?t=0:(t=0|s/Pt,s-=t*Pt),a[i]=s;t>0&&(a[i]=t)},e.prototype.sub=function(o){var t=this.buf,a=t.length,r,i;for(r=0;r<a;++r)i=t[r]-o,i<0?(i+=Pt,o=1):o=0,t[r]=i;for(;t[t.length-1]===0;)t.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,a=t[t.length-1].toString(),r=t.length-2;r>=0;--r)a+=(Pt+t[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,t=0,a=o.length-1;a>=0;--a)t=t*Pt+o[a];return t},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),Yr="…",zs=/^(\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)?)?$/,Fs=/^(\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 qt(e,o){return e.length>o&&(e=e.substring(0,o)+Yr),e}var bo=function(){function e(o,t){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=t)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,t,a){for(var r="",i=o;i<t;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
|
|
74
74
|
`;break;default:r+=" "}return r},e.prototype.isASCII=function(o,t){for(var a=o;a<t;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,t){for(var a="",r=o;r<t;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,t){for(var a="",r=o;r<t;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,t){for(var a="",r,i,s=o;s<t;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,t,a){var r=this.parseStringISO(o,t),i=(a?zs:Fs).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(o,t){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<t;)a=this.get(o);if(s=t-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
|
|
75
|
-
`}r&&(a=a-256);for(var f=new
|
|
76
|
-
`,l="",f=o+1;f<t;++f){for(var c=this.get(f),d=f==t-1?r:0,g=7;g>=d;--g)l+=c>>g&1?"1":"0";if(l.length>a)return s+
|
|
77
|
-
`;a/=2,r>a&&(t=o+a);for(var s=o;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=Yr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new
|
|
78
|
-
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(o)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var t=o.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+o.get();return t},e.prototype.getHexStringValue=function(){var o=this.toHexString(),t=this.header*2,a=this.length*2;return o.substr(t,a)},e.decode=function(o){var t;o instanceof bo?t=o:t=new bo(o,0);var a=new bo(t),r=new Kr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var g=[];if(i!==null){for(var m=s+i;t.pos<m;)g[g.length]=e.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;g[g.length]=u}i=s-t.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return g};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(a,l,i,r,f)},e}(),Kr=function(){function e(o){var t=o.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new Zt;do t=o.get(),a.mulAdd(128,t&127);while(t&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),xt,qs=0xdeadbeefcafe,Qr=(qs&16777215)==15715070,je=[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],Hs=(1<<26)/je[je.length-1],le=function(){function e(o,t,a){o!=null&&(typeof o=="number"?this.fromNumber(o,t,a):t==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,t))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else return this.toRadix(o);var a=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=ht(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&a,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=ht(r));return i?s:"0"},e.prototype.negate=function(){var o=fe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var t=this.s-o.s;if(t!=0)return t;var a=this.t;if(t=a-o.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-o[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ln(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=fe();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&o.subTo(t,t),t},e.prototype.modPowInt=function(o,t){var a;return o<256||t.isEven()?a=new Jr(t):a=new Xr(t),this.exp(o,a)},e.prototype.clone=function(){var o=fe();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,t=[];t[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var t=fe();return this.bitwiseTo(o,Os,t),t},e.prototype.or=function(o){var t=fe();return this.bitwiseTo(o,on,t),t},e.prototype.xor=function(o){var t=fe();return this.bitwiseTo(o,Gr,t),t},e.prototype.andNot=function(o){var t=fe();return this.bitwiseTo(o,Wr,t),t},e.prototype.not=function(){for(var o=fe(),t=0;t<this.t;++t)o[t]=this.DM&~this[t];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var t=fe();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=fe();return o<0?this.lShiftTo(-o,t):this.rShiftTo(o,t),t},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Ls(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,t=this.s&this.DM,a=0;a<this.t;++a)o+=Ns(this[a]^t);return o},e.prototype.testBit=function(o){var t=Math.floor(o/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,on)},e.prototype.clearBit=function(o){return this.changeBit(o,Wr)},e.prototype.flipBit=function(o){return this.changeBit(o,Gr)},e.prototype.add=function(o){var t=fe();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=fe();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=fe();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=fe();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=fe();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=fe(),a=fe();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=pt(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 Jr(t):t.isEven()?s=new js(t):s=new Xr(t);var l=[],f=3,c=r-1,d=(1<<r)-1;if(l[1]=s.convert(this),r>1){var g=fe();for(s.sqrTo(l[1],g);f<=d;)l[f]=fe(),s.mulTo(g,l[f-2],l[f]),f+=2}var m=o.t-1,u,y=!0,h=fe(),v;for(a=ln(o[m])-1;m>=0;){for(a>=c?u=o[m]>>a-c&d:(u=(o[m]&(1<<a+1)-1)<<c-a,m>0&&(u|=o[m-1]>>this.DB+a-c)),f=r;!(u&1);)u>>=1,--f;if((a-=f)<0&&(a+=this.DB,--m),y)l[u].copyTo(i),y=!1;else{for(;f>1;)s.sqrTo(i,h),s.sqrTo(h,i),f-=2;f>0?s.sqrTo(i,h):(v=i,i=h,h=v),s.mulTo(h,l[u],i)}for(;m>=0&&!(o[m]&1<<a);)s.sqrTo(i,h),v=i,i=h,h=v,--a<0&&(a=this.DB-1,--m)}return s.revert(i)},e.prototype.modInverse=function(o){var t=o.isEven();if(this.isEven()&&t||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=pt(1),s=pt(0),l=pt(0),f=pt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(o,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(o,f),f.rShiftTo(1,f);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(a,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(o)>=0)return f.subtract(o);if(f.signum()<0)f.addTo(o,f);else return f;return f.signum()<0?f.add(o):f},e.prototype.pow=function(o){return this.exp(o,new Vs)},e.prototype.gcd=function(o){var t=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var i=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var t,a=this.abs();if(a.t==1&&a[0]<=je[je.length-1]){for(t=0;t<je.length;++t)if(a[0]==je[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<je.length;){for(var r=je[t],i=t+1;i<je.length&&r<Hs;)r*=je[i++];for(r=a.modInt(r);t<i;)if(r%je[t++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(o,t);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:ti(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,t){var a;for(a=this.t-1;a>=0;--a)t[a+o]=this[a];for(a=o-1;a>=0;--a)t[a]=0;t.t=this.t+o,t.s=this.s},e.prototype.drShiftTo=function(o,t){for(var a=o;a<this.t;++a)t[a-o]=this[a];t.t=Math.max(this.t-o,0),t.s=this.s},e.prototype.lShiftTo=function(o,t){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<a;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(o,t){t.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){t.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)t[l-a-1]|=(this[l]&s)<<i,t[l-a]=this[l]>>r;r>0&&(t[this.t-a-1]|=(this.s&s)<<i),t.t=this.t-a,t.clamp()},e.prototype.subTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],t[a++]=r&this.DM,r>>=this.DB;r-=o.s}t.s=r<0?-1:0,r<-1?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(o,t){var a=this.abs(),r=o.abs(),i=a.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+a.t]=a.am(0,r[i],t,i,0,a.t);t.s=0,t.clamp(),this.s!=o.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(o){for(var t=this.abs(),a=o.t=2*t.t;--a>=0;)o[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],o,2*a,0,1);(o[a+t.t]+=t.am(a+1,2*t[a],o,2*a+1,r,t.t-a-1))>=t.DV&&(o[a+t.t]-=t.DV,o[a+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(a,t[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,t,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=fe());var s=fe(),l=this.s,f=o.s,c=this.DB-ln(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var d=s.t,g=s[d-1];if(g!=0){var m=g*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),u=this.FV/m,y=(1<<this.F1)/m,h=1<<this.F2,v=a.t,T=v-d,p=t??fe();for(s.dlShiftTo(T,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(d,p),p.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--T>=0;){var b=a[--v]==g?this.DM:Math.floor(a[v]*u+(a[v-1]+h)*y);if((a[v]+=s.am(0,b,a,T,0,d))<b)for(s.dlShiftTo(T,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(d,t),l!=f&&e.ZERO.subTo(t,t)),a.t=d,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,t){if(o>4294967295||o<1)return e.ONE;var a=fe(),r=fe(),i=t.convert(this),s=ln(o)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(o&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var t=this.chunkSize(o),a=Math.pow(o,t),r=pt(a),i=fe(),s=fe(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),i=!1,s=0,l=0,f=0;f<o.length;++f){var c=ti(o,f);if(c<0){o.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,t,a){if(typeof t=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),on,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,t,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=t(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=t(i,o[r]);a.t=o.t}a.s=t(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,t){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],t[a++]=r&this.DM,r>>=this.DB;r+=o.s}t.s=r<0?-1:0,r>0?t[a++]=r:r<-1&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,t){if(o!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=o;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(o,t,a){var r=Math.min(this.t+o.t,t);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,t);r<i;++r)this.am(0,o[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,t,a){--t;var r=a.t=this.t+o.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<o.t;++r)a[this.t+r-t]=this.am(t-r,o[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var t=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(t==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);o=o+1>>1,o>je.length&&(o=je.length);for(var i=fe(),s=0;s<o;++s){i.fromInt(je[Math.floor(Math.random()*je.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<a&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var o=fe();return this.squareTo(o),o},e.prototype.gcda=function(o,t){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var f=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(o,t,a,r){if(typeof t=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),on,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=o&7;l.length=(o>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Vs=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a)},e.prototype.sqrTo=function(o,t){o.squareTo(t)},e}(),Jr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),Xr=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var t=fe();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var a=o[t]&32767,r=a*this.mpl+((a*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=t+this.m.t,o[a]+=this.m.am(0,r,o,t,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),js=function(){function e(o){this.m=o,this.r2=fe(),this.q3=fe(),le.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}();function fe(){return new le(null)}function Ee(e,o){return new le(e,o)}var ei=typeof navigator<"u";ei&&Qr&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[o]&32767,d=this[o++]>>15,g=f*c+d*l;c=l*c+((g&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(g>>>15)+f*d+(i>>>30),a[r++]=c&1073741823}return i},xt=30):ei&&Qr&&navigator.appName!="Netscape"?(le.prototype.am=function(o,t,a,r,i,s){for(;--s>=0;){var l=t*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},xt=26):(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[o]&16383,d=this[o++]>>14,g=f*c+d*l;c=l*c+((g&16383)<<14)+a[r]+i,i=(c>>28)+(g>>14)+f*d,a[r++]=c&268435455}return i},xt=28),le.prototype.DB=xt,le.prototype.DM=(1<<xt)-1,le.prototype.DV=1<<xt;var vo=52;le.prototype.FV=Math.pow(2,vo),le.prototype.F1=vo-xt,le.prototype.F2=2*xt-vo;var rn=[],Pt,Xe;for(Pt="0".charCodeAt(0),Xe=0;Xe<=9;++Xe)rn[Pt++]=Xe;for(Pt="a".charCodeAt(0),Xe=10;Xe<36;++Xe)rn[Pt++]=Xe;for(Pt="A".charCodeAt(0),Xe=10;Xe<36;++Xe)rn[Pt++]=Xe;function ti(e,o){var t=rn[e.charCodeAt(o)];return t??-1}function pt(e){var o=fe();return o.fromInt(e),o}function ln(e){var o=1,t;return(t=e>>>16)!=0&&(e=t,o+=16),(t=e>>8)!=0&&(e=t,o+=8),(t=e>>4)!=0&&(e=t,o+=4),(t=e>>2)!=0&&(e=t,o+=2),(t=e>>1)!=0&&(e=t,o+=1),o}le.ZERO=pt(0),le.ONE=pt(1);var Us=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var t,a,r;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+o[t%o.length]&255,r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Gs(){return new Us}var ni=256,sn,bt=null,it;if(bt==null){bt=[],it=0;var cn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),cn=0;cn<So.length;++cn)bt[it++]=So[cn]&255}var fn=0,dn=function(e){if(fn=fn||0,fn>=256||it>=ni){window.removeEventListener?window.removeEventListener("mousemove",dn,!1):window.detachEvent&&window.detachEvent("onmousemove",dn);return}try{var o=e.x+e.y;bt[it++]=o&255,fn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",dn,!1):window.attachEvent&&window.attachEvent("onmousemove",dn))}function Ws(){if(sn==null){for(sn=Gs();it<ni;){var e=Math.floor(65536*Math.random());bt[it++]=e&255}for(sn.init(bt),it=0;it<bt.length;++it)bt[it]=0;it=0}return sn.next()}var Co=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Ws()},e}();function $s(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var t=o-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ee(i,16)}function Zs(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?t[--o]=r:r>127&&r<2048?(t[--o]=r&63|128,t[--o]=r>>6|192):(t[--o]=r&63|128,t[--o]=r>>6&63|128,t[--o]=r>>12|224)}t[--o]=0;for(var i=new Co,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--o]=s[0]}return t[--o]=2,t[--o]=0,new le(t)}var Ys=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var t=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(a)<0;)t=t.add(this.p);return t.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,t){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var t=this.n.bitLength()+7>>3,a=Zs(o,t);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,t,a){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,f){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16),this.p=Ee(r,16),this.q=Ee(i,16),this.dmp1=Ee(s,16),this.dmq1=Ee(l,16),this.coeff=Ee(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new Co,r=o>>1;this.e=parseInt(t,16);for(var i=new le(t,16);;){for(;this.p=new le(o-r,1,a),!(this.p.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(r,1,a),!(this.q.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(le.ONE),f=this.q.subtract(le.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(le.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Ee(o,16),a=this.doPrivate(t);return a==null?null:Ks(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Co,i=o>>1;this.e=parseInt(t,16);var s=new le(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var m=l.p;l.p=l.q,l.q=m}var u=l.p.subtract(le.ONE),y=l.q.subtract(le.ONE),h=u.multiply(y);h.gcd(s).compareTo(le.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},d=function(){l.q=fe(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},g=function(){l.p=fe(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(g,0)})})};setTimeout(g,0)};setTimeout(f,0)},e.prototype.sign=function(o,t,a){var r=Qs(a),i=r+t(o).toString(),s=$s(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(o,t,a){var r=Ee(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Js(s);return l==a(o).toString()},e}();function Ks(e,o){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=o-1||t[a]!=2)return null;for(++a;t[a]!=0;)if(++a>=t.length)return null;for(var r="";++a<t.length;){var i=t[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(t[a+1]&63)<<6|t[a+2]&63),a+=2)}return r}var un={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Qs(e){return un[e]||""}function Js(e){for(var o in un)if(un.hasOwnProperty(o)){var t=un[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
75
|
+
`}r&&(a=a-256);for(var f=new Qt(a),c=o+1;c<t;++c)f.mulAdd(256,this.get(c));return l+f.toString()},e.prototype.parseBitString=function(o,t,a){for(var r=this.get(o),i=(t-o-1<<3)-r,s="("+i+` bit)
|
|
76
|
+
`,l="",f=o+1;f<t;++f){for(var c=this.get(f),d=f==t-1?r:0,g=7;g>=d;--g)l+=c>>g&1?"1":"0";if(l.length>a)return s+qt(l,a)}return s+l},e.prototype.parseOctetString=function(o,t,a){if(this.isASCII(o,t))return qt(this.parseStringISO(o,t),a);var r=t-o,i="("+r+` byte)
|
|
77
|
+
`;a/=2,r>a&&(t=o+a);for(var s=o;s<t;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=Yr),i},e.prototype.parseOID=function(o,t,a){for(var r="",i=new Qt,s=0,l=o;l<t;++l){var f=this.get(l);if(i.mulAdd(128,f&127),s+=7,!(f&128)){if(r==="")if(i=i.simplify(),i instanceof Qt)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 qt(r,a);i=new Qt,s=0}}return s>0&&(r+=".incomplete"),r},e}(),Ps=function(){function e(o,t,a,r,i){if(!(r instanceof Kr))throw new Error("Invalid tag value.");this.stream=o,this.header=t,this.length=a,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var t=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+a,o);case 6:return this.stream.parseOID(t,t+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return qt(this.stream.parseStringUTF(t,t+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return qt(this.stream.parseStringISO(t,t+a),o);case 30:return qt(this.stream.parseStringBMP(t,t+a),o);case 23:case 24:return this.stream.parseTime(t,t+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var t=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
|
|
78
|
+
`,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)t+=this.sub[a].toPrettyString(o)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var t=o.get(),a=t&127;if(a==t)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;t=0;for(var r=0;r<a;++r)t=t*256+o.get();return t},e.prototype.getHexStringValue=function(){var o=this.toHexString(),t=this.header*2,a=this.length*2;return o.substr(t,a)},e.decode=function(o){var t;o instanceof bo?t=o:t=new bo(o,0);var a=new bo(t),r=new Kr(t),i=e.decodeLength(t),s=t.pos,l=s-a.pos,f=null,c=function(){var g=[];if(i!==null){for(var m=s+i;t.pos<m;)g[g.length]=e.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var u=e.decode(t);if(u.tag.isEOC())break;g[g.length]=u}i=s-t.pos}catch(y){throw new Error("Exception while decoding undefined length content: "+y)}return g};if(r.tagConstructed)f=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=c();for(var d=0;d<f.length;++d)if(f[d].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);t.pos=s+Math.abs(i)}return new e(a,l,i,r,f)},e}(),Kr=function(){function e(o){var t=o.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var a=new Qt;do t=o.get(),a.mulAdd(128,t&127);while(t&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),bt,qs=0xdeadbeefcafe,Qr=(qs&16777215)==15715070,Ue=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Hs=(1<<26)/Ue[Ue.length-1],le=function(){function e(o,t,a){o!=null&&(typeof o=="number"?this.fromNumber(o,t,a):t==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,t))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var t;if(o==16)t=4;else if(o==8)t=3;else if(o==2)t=1;else if(o==32)t=5;else if(o==4)t=2;else return this.toRadix(o);var a=(1<<t)-1,r,i=!1,s="",l=this.t,f=this.DB-l*this.DB%t;if(l-- >0)for(f<this.DB&&(r=this[l]>>f)>0&&(i=!0,s=gt(r));l>=0;)f<t?(r=(this[l]&(1<<f)-1)<<t-f,r|=this[--l]>>(f+=this.DB-t)):(r=this[l]>>(f-=t)&a,f<=0&&(f+=this.DB,--l)),r>0&&(i=!0),i&&(s+=gt(r));return i?s:"0"},e.prototype.negate=function(){var o=fe();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var t=this.s-o.s;if(t!=0)return t;var a=this.t;if(t=a-o.t,t!=0)return this.s<0?-t:t;for(;--a>=0;)if((t=this[a]-o[a])!=0)return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+cn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var t=fe();return this.abs().divRemTo(o,null,t),this.s<0&&t.compareTo(e.ZERO)>0&&o.subTo(t,t),t},e.prototype.modPowInt=function(o,t){var a;return o<256||t.isEven()?a=new Jr(t):a=new Xr(t),this.exp(o,a)},e.prototype.clone=function(){var o=fe();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,t=[];t[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(t[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var t=fe();return this.bitwiseTo(o,Os,t),t},e.prototype.or=function(o){var t=fe();return this.bitwiseTo(o,rn,t),t},e.prototype.xor=function(o){var t=fe();return this.bitwiseTo(o,Gr,t),t},e.prototype.andNot=function(o){var t=fe();return this.bitwiseTo(o,Wr,t),t},e.prototype.not=function(){for(var o=fe(),t=0;t<this.t;++t)o[t]=this.DM&~this[t];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var t=fe();return o<0?this.rShiftTo(-o,t):this.lShiftTo(o,t),t},e.prototype.shiftRight=function(o){var t=fe();return o<0?this.lShiftTo(-o,t):this.rShiftTo(o,t),t},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+Ls(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,t=this.s&this.DM,a=0;a<this.t;++a)o+=Ns(this[a]^t);return o},e.prototype.testBit=function(o){var t=Math.floor(o/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,rn)},e.prototype.clearBit=function(o){return this.changeBit(o,Wr)},e.prototype.flipBit=function(o){return this.changeBit(o,Gr)},e.prototype.add=function(o){var t=fe();return this.addTo(o,t),t},e.prototype.subtract=function(o){var t=fe();return this.subTo(o,t),t},e.prototype.multiply=function(o){var t=fe();return this.multiplyTo(o,t),t},e.prototype.divide=function(o){var t=fe();return this.divRemTo(o,t,null),t},e.prototype.remainder=function(o){var t=fe();return this.divRemTo(o,null,t),t},e.prototype.divideAndRemainder=function(o){var t=fe(),a=fe();return this.divRemTo(o,t,a),[t,a]},e.prototype.modPow=function(o,t){var a=o.bitLength(),r,i=vt(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 Jr(t):t.isEven()?s=new js(t):s=new Xr(t);var l=[],f=3,c=r-1,d=(1<<r)-1;if(l[1]=s.convert(this),r>1){var g=fe();for(s.sqrTo(l[1],g);f<=d;)l[f]=fe(),s.mulTo(g,l[f-2],l[f]),f+=2}var m=o.t-1,u,y=!0,h=fe(),v;for(a=cn(o[m])-1;m>=0;){for(a>=c?u=o[m]>>a-c&d:(u=(o[m]&(1<<a+1)-1)<<c-a,m>0&&(u|=o[m-1]>>this.DB+a-c)),f=r;!(u&1);)u>>=1,--f;if((a-=f)<0&&(a+=this.DB,--m),y)l[u].copyTo(i),y=!1;else{for(;f>1;)s.sqrTo(i,h),s.sqrTo(h,i),f-=2;f>0?s.sqrTo(i,h):(v=i,i=h,h=v),s.mulTo(h,l[u],i)}for(;m>=0&&!(o[m]&1<<a);)s.sqrTo(i,h),v=i,i=h,h=v,--a<0&&(a=this.DB-1,--m)}return s.revert(i)},e.prototype.modInverse=function(o){var t=o.isEven();if(this.isEven()&&t||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=vt(1),s=vt(0),l=vt(0),f=vt(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),t?((!l.isEven()||!f.isEven())&&(l.addTo(this,l),f.subTo(o,f)),l.rShiftTo(1,l)):f.isEven()||f.subTo(o,f),f.rShiftTo(1,f);a.compareTo(r)>=0?(a.subTo(r,a),t&&i.subTo(l,i),s.subTo(f,s)):(r.subTo(a,r),t&&l.subTo(i,l),f.subTo(s,f))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(f.compareTo(o)>=0)return f.subtract(o);if(f.signum()<0)f.addTo(o,f);else return f;return f.signum()<0?f.add(o):f},e.prototype.pow=function(o){return this.exp(o,new Vs)},e.prototype.gcd=function(o){var t=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(t.compareTo(a)<0){var r=t;t=a,a=r}var i=t.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return t;for(i<s&&(s=i),s>0&&(t.rShiftTo(s,t),a.rShiftTo(s,a));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),t.compareTo(a)>=0?(t.subTo(a,t),t.rShiftTo(1,t)):(a.subTo(t,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var t,a=this.abs();if(a.t==1&&a[0]<=Ue[Ue.length-1]){for(t=0;t<Ue.length;++t)if(a[0]==Ue[t])return!0;return!1}if(a.isEven())return!1;for(t=1;t<Ue.length;){for(var r=Ue[t],i=t+1;i<Ue.length&&r<Hs;)r*=Ue[i++];for(r=a.modInt(r);t<i;)if(r%Ue[t++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var t=this.t-1;t>=0;--t)o[t]=this[t];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,t){var a;if(t==16)a=4;else if(t==8)a=3;else if(t==256)a=8;else if(t==2)a=1;else if(t==32)a=5;else if(t==4)a=2;else{this.fromRadix(o,t);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:ti(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,t){var a;for(a=this.t-1;a>=0;--a)t[a+o]=this[a];for(a=o-1;a>=0;--a)t[a]=0;t.t=this.t+o,t.s=this.s},e.prototype.drShiftTo=function(o,t){for(var a=o;a<this.t;++a)t[a-o]=this[a];t.t=Math.max(this.t-o,0),t.s=this.s},e.prototype.lShiftTo=function(o,t){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,f=this.t-1;f>=0;--f)t[f+s+1]=this[f]>>r|l,l=(this[f]&i)<<a;for(var f=s-1;f>=0;--f)t[f]=0;t[s]=l,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(o,t){t.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){t.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;t[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)t[l-a-1]|=(this[l]&s)<<i,t[l-a]=this[l]>>r;r>0&&(t[this.t-a-1]|=(this.s&s)<<i),t.t=this.t-a,t.clamp()},e.prototype.subTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],t[a++]=r&this.DM,r>>=this.DB;r-=o.s}t.s=r<0?-1:0,r<-1?t[a++]=this.DV+r:r>0&&(t[a++]=r),t.t=a,t.clamp()},e.prototype.multiplyTo=function(o,t){var a=this.abs(),r=o.abs(),i=a.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+a.t]=a.am(0,r[i],t,i,0,a.t);t.s=0,t.clamp(),this.s!=o.s&&e.ZERO.subTo(t,t)},e.prototype.squareTo=function(o){for(var t=this.abs(),a=o.t=2*t.t;--a>=0;)o[a]=0;for(a=0;a<t.t-1;++a){var r=t.am(a,t[a],o,2*a,0,1);(o[a+t.t]+=t.am(a+1,2*t[a],o,2*a+1,r,t.t-a-1))>=t.DV&&(o[a+t.t]-=t.DV,o[a+t.t+1]=1)}o.t>0&&(o[o.t-1]+=t.am(a,t[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,t,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){t!=null&&t.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=fe());var s=fe(),l=this.s,f=o.s,c=this.DB-cn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var d=s.t,g=s[d-1];if(g!=0){var m=g*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),u=this.FV/m,y=(1<<this.F1)/m,h=1<<this.F2,v=a.t,E=v-d,p=t??fe();for(s.dlShiftTo(E,p),a.compareTo(p)>=0&&(a[a.t++]=1,a.subTo(p,a)),e.ONE.dlShiftTo(d,p),p.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--E>=0;){var b=a[--v]==g?this.DM:Math.floor(a[v]*u+(a[v-1]+h)*y);if((a[v]+=s.am(0,b,a,E,0,d))<b)for(s.dlShiftTo(E,p),a.subTo(p,a);a[v]<--b;)a.subTo(p,a)}t!=null&&(a.drShiftTo(d,t),l!=f&&e.ZERO.subTo(t,t)),a.t=d,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var t=o&3;return t=t*(2-(o&15)*t)&15,t=t*(2-(o&255)*t)&255,t=t*(2-((o&65535)*t&65535))&65535,t=t*(2-o*t%this.DV)%this.DV,t>0?this.DV-t:-t},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,t){if(o>4294967295||o<1)return e.ONE;var a=fe(),r=fe(),i=t.convert(this),s=cn(o)-1;for(i.copyTo(a);--s>=0;)if(t.sqrTo(a,r),(o&1<<s)>0)t.mulTo(r,i,a);else{var l=a;a=r,r=l}return t.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var t=this.chunkSize(o),a=Math.pow(o,t),r=vt(a),i=fe(),s=fe(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,t){this.fromInt(0),t==null&&(t=10);for(var a=this.chunkSize(t),r=Math.pow(t,a),i=!1,s=0,l=0,f=0;f<o.length;++f){var c=ti(o,f);if(c<0){o.charAt(f)=="-"&&this.signum()==0&&(i=!0);continue}l=t*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,t,a){if(typeof t=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),rn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,t,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=t(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=t(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=t(i,o[r]);a.t=o.t}a.s=t(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,t){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,t,a),a},e.prototype.addTo=function(o,t){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],t[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],t[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],t[a++]=r&this.DM,r>>=this.DB;r+=o.s}t.s=r<0?-1:0,r>0?t[a++]=r:r<-1&&(t[a++]=this.DV+r),t.t=a,t.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,t){if(o!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=o;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(o,t,a){var r=Math.min(this.t+o.t,t);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,t);r<i;++r)this.am(0,o[r],a,r,0,t-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,t,a){--t;var r=a.t=this.t+o.t-t;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(t-this.t,0);r<o.t;++r)a[this.t+r-t]=this.am(t-r,o[r],a,0,0,this.t+r-t);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var t=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(t==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(t*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var t=this.subtract(e.ONE),a=t.getLowestSetBit();if(a<=0)return!1;var r=t.shiftRight(a);o=o+1>>1,o>Ue.length&&(o=Ue.length);for(var i=fe(),s=0;s<o;++s){i.fromInt(Ue[Math.floor(Math.random()*Ue.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(t)!=0){for(var f=1;f++<a&&l.compareTo(t)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(t)!=0)return!1}}return!0},e.prototype.square=function(){var o=fe();return this.squareTo(o),o},e.prototype.gcda=function(o,t){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){t(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var f=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(f,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){t(r)},0))};setTimeout(f,10)},e.prototype.fromNumberAsync=function(o,t,a,r){if(typeof t=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),rn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(t)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],f=o&7;l.length=(o>>3)+1,t.nextBytes(l),f>0?l[0]&=(1<<f)-1:l[0]=0,this.fromString(l,256)}},e}(),Vs=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a)},e.prototype.sqrTo=function(o,t){o.squareTo(t)},e}(),Jr=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),Xr=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var t=fe();return o.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),o.s<0&&t.compareTo(le.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(o){var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var t=0;t<this.m.t;++t){var a=o[t]&32767,r=a*this.mpl+((a*this.mph+(o[t]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=t+this.m.t,o[a]+=this.m.am(0,r,o,t,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}(),js=function(){function e(o){this.m=o,this.r2=fe(),this.q3=fe(),le.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var t=fe();return o.copyTo(t),this.reduce(t),t},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,t,a){o.multiplyTo(t,a),this.reduce(a)},e.prototype.sqrTo=function(o,t){o.squareTo(t),this.reduce(t)},e}();function fe(){return new le(null)}function Ee(e,o){return new le(e,o)}var ei=typeof navigator<"u";ei&&Qr&&navigator.appName=="Microsoft Internet Explorer"?(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&32767,f=t>>15;--s>=0;){var c=this[o]&32767,d=this[o++]>>15,g=f*c+d*l;c=l*c+((g&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(g>>>15)+f*d+(i>>>30),a[r++]=c&1073741823}return i},bt=30):ei&&Qr&&navigator.appName!="Netscape"?(le.prototype.am=function(o,t,a,r,i,s){for(;--s>=0;){var l=t*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},bt=26):(le.prototype.am=function(o,t,a,r,i,s){for(var l=t&16383,f=t>>14;--s>=0;){var c=this[o]&16383,d=this[o++]>>14,g=f*c+d*l;c=l*c+((g&16383)<<14)+a[r]+i,i=(c>>28)+(g>>14)+f*d,a[r++]=c&268435455}return i},bt=28),le.prototype.DB=bt,le.prototype.DM=(1<<bt)-1,le.prototype.DV=1<<bt;var vo=52;le.prototype.FV=Math.pow(2,vo),le.prototype.F1=vo-bt,le.prototype.F2=2*bt-vo;var sn=[],Ht,et;for(Ht="0".charCodeAt(0),et=0;et<=9;++et)sn[Ht++]=et;for(Ht="a".charCodeAt(0),et=10;et<36;++et)sn[Ht++]=et;for(Ht="A".charCodeAt(0),et=10;et<36;++et)sn[Ht++]=et;function ti(e,o){var t=sn[e.charCodeAt(o)];return t??-1}function vt(e){var o=fe();return o.fromInt(e),o}function cn(e){var o=1,t;return(t=e>>>16)!=0&&(e=t,o+=16),(t=e>>8)!=0&&(e=t,o+=8),(t=e>>4)!=0&&(e=t,o+=4),(t=e>>2)!=0&&(e=t,o+=2),(t=e>>1)!=0&&(e=t,o+=1),o}le.ZERO=vt(0),le.ONE=vt(1);var Us=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var t,a,r;for(t=0;t<256;++t)this.S[t]=t;for(a=0,t=0;t<256;++t)a=a+this.S[t]+o[t%o.length]&255,r=this.S[t],this.S[t]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Gs(){return new Us}var ni=256,fn,St=null,it;if(St==null){St=[],it=0;var dn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var So=new Uint32Array(256);for(window.crypto.getRandomValues(So),dn=0;dn<So.length;++dn)St[it++]=So[dn]&255}var un=0,hn=function(e){if(un=un||0,un>=256||it>=ni){window.removeEventListener?window.removeEventListener("mousemove",hn,!1):window.detachEvent&&window.detachEvent("onmousemove",hn);return}try{var o=e.x+e.y;St[it++]=o&255,un+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",hn,!1):window.attachEvent&&window.attachEvent("onmousemove",hn))}function Ws(){if(fn==null){for(fn=Gs();it<ni;){var e=Math.floor(65536*Math.random());St[it++]=e&255}for(fn.init(St),it=0;it<St.length;++it)St[it]=0;it=0}return fn.next()}var Co=function(){function e(){}return e.prototype.nextBytes=function(o){for(var t=0;t<o.length;++t)o[t]=Ws()},e}();function $s(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var t=o-e.length-6,a="",r=0;r<t;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ee(i,16)}function Zs(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var t=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?t[--o]=r:r>127&&r<2048?(t[--o]=r&63|128,t[--o]=r>>6|192):(t[--o]=r&63|128,t[--o]=r>>6&63|128,t[--o]=r>>12|224)}t[--o]=0;for(var i=new Co,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);t[--o]=s[0]}return t[--o]=2,t[--o]=0,new le(t)}var Ys=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var t=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(a)<0;)t=t.add(this.p);return t.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,t){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var t=this.n.bitLength()+7>>3,a=Zs(o,t);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<t*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,t,a){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,t,a,r,i,s,l,f){o!=null&&t!=null&&o.length>0&&t.length>0?(this.n=Ee(o,16),this.e=parseInt(t,16),this.d=Ee(a,16),this.p=Ee(r,16),this.q=Ee(i,16),this.dmp1=Ee(s,16),this.dmq1=Ee(l,16),this.coeff=Ee(f,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,t){var a=new Co,r=o>>1;this.e=parseInt(t,16);for(var i=new le(t,16);;){for(;this.p=new le(o-r,1,a),!(this.p.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new le(r,1,a),!(this.q.subtract(le.ONE).gcd(i).compareTo(le.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(le.ONE),f=this.q.subtract(le.ONE),c=l.multiply(f);if(c.gcd(i).compareTo(le.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var t=Ee(o,16),a=this.doPrivate(t);return a==null?null:Ks(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,t,a){var r=new Co,i=o>>1;this.e=parseInt(t,16);var s=new le(t,16),l=this,f=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var m=l.p;l.p=l.q,l.q=m}var u=l.p.subtract(le.ONE),y=l.q.subtract(le.ONE),h=u.multiply(y);h.gcd(s).compareTo(le.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(h),l.dmp1=l.d.mod(u),l.dmq1=l.d.mod(y),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(f,0)},d=function(){l.q=fe(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(d,0)})})},g=function(){l.p=fe(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(le.ONE).gcda(s,function(m){m.compareTo(le.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(d,0):setTimeout(g,0)})})};setTimeout(g,0)};setTimeout(f,0)},e.prototype.sign=function(o,t,a){var r=Qs(a),i=r+t(o).toString(),s=$s(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var f=l.toString(16);return f.length&1?"0"+f:f},e.prototype.verify=function(o,t,a){var r=Ee(t,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Js(s);return l==a(o).toString()},e}();function Ks(e,o){for(var t=e.toByteArray(),a=0;a<t.length&&t[a]==0;)++a;if(t.length-a!=o-1||t[a]!=2)return null;for(++a;t[a]!=0;)if(++a>=t.length)return null;for(var r="";++a<t.length;){var i=t[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|t[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(t[a+1]&63)<<6|t[a+2]&63),a+=2)}return r}var gn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Qs(e){return gn[e]||""}function Js(e){for(var o in gn)if(gn.hasOwnProperty(o)){var t=gn[o],a=t.length;if(e.substr(0,a)==t)return e.substr(a)}return e}/*!
|
|
79
79
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
80
80
|
Code licensed under the BSD License:
|
|
81
81
|
http://developer.yahoo.com/yui/license.html
|
|
@@ -87,33 +87,33 @@ 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 W={};(typeof W.asn1>"u"||!W.asn1)&&(W.asn1={}),W.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var t=o.substr(1),a=t.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new le(r,16),l=s.xor(e).add(le.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=W,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,g=t.DERNumericString,m=t.DERPrintableString,u=t.DERTeletexString,y=t.DERIA5String,h=t.DERUTCTime,v=t.DERGeneralizedTime,T=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,w=Object.keys(e);if(w.length!=1)throw"key of param shall be only one.";var k=w[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+k+":")==-1)throw"undefined key: "+k;if(k=="bool")return new a(e[k]);if(k=="int")return new r(e[k]);if(k=="bitstr")return new i(e[k]);if(k=="octstr")return new s(e[k]);if(k=="null")return new l(e[k]);if(k=="oid")return new f(e[k]);if(k=="enum")return new c(e[k]);if(k=="utf8str")return new d(e[k]);if(k=="numstr")return new g(e[k]);if(k=="prnstr")return new m(e[k]);if(k=="telstr")return new u(e[k]);if(k=="ia5str")return new y(e[k]);if(k=="utctime")return new h(e[k]);if(k=="gentime")return new v(e[k]);if(k=="seq"){for(var E=e[k],R=[],_=0;_<E.length;_++){var C=x(E[_]);R.push(C)}return new T({array:R})}if(k=="set"){for(var E=e[k],R=[],_=0;_<E.length;_++){var C=x(E[_]);R.push(C)}return new p({array:R})}if(k=="tag"){var S=e[k];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var A=x(S[2]);return new b({tag:S[0],explicit:S[1],obj:A})}else{var D={};if(S.explicit!==void 0&&(D.explicit=S.explicit),S.tag!==void 0&&(D.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return D.obj=x(S.obj),new b(D)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},W.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),t=Math.floor(o/40),a=o%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new le(i,2);r=r+"."+c.toString(10),i=""}}return r},W.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new le(l,10),d=c.toString(2),g=7-d.length%7;g==7&&(g=0);for(var m="",u=0;u<g;u++)m+="0";d=m+d;for(var u=0;u<d.length-1;u+=7){var y=d.substr(u,7);u!=d.length-7&&(y="1"+y),f+=o(parseInt(y,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},W.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,t=o.toString(16);if(t.length%2==1&&(t="0"+t),o<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},W.asn1.DERAbstractString=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Ie.lang.extend(W.asn1.DERAbstractString,W.asn1.ASN1Object),W.asn1.DERAbstractTime=function(e){W.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(o,t,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),d=r(String(i.getMinutes()),2),g=r(String(i.getSeconds()),2),m=s+l+f+c+d+g;if(a===!0){var u=i.getMilliseconds();if(u!=0){var y=r(String(u),3);y=y.replace(/[0]+$/,""),m=m+"."+y}}return m+"Z"},this.zeroPadding=function(o,t){return o.length>=t?o:new Array(t-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,t,a,r,i,s){var l=new Date(Date.UTC(o,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Ie.lang.extend(W.asn1.DERAbstractTime,W.asn1.ASN1Object),W.asn1.DERAbstractStructured=function(e){W.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Ie.lang.extend(W.asn1.DERAbstractStructured,W.asn1.ASN1Object),W.asn1.DERBoolean=function(){W.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ie.lang.extend(W.asn1.DERBoolean,W.asn1.ASN1Object),W.asn1.DERInteger=function(e){W.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Ie.lang.extend(W.asn1.DERInteger,W.asn1.ASN1Object),W.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=W.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}W.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Ie.lang.extend(W.asn1.DERBitString,W.asn1.ASN1Object),W.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=W.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}W.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Ie.lang.extend(W.asn1.DEROctetString,W.asn1.DERAbstractString),W.asn1.DERNull=function(){W.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ie.lang.extend(W.asn1.DERNull,W.asn1.ASN1Object),W.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new le(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var d=s.substr(c,7);c!=s.length-7&&(d="1"+d),r+=o(parseInt(d,2))}return r};W.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=W.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Ie.lang.extend(W.asn1.DERObjectIdentifier,W.asn1.ASN1Object),W.asn1.DEREnumerated=function(e){W.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=W.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Ie.lang.extend(W.asn1.DEREnumerated,W.asn1.ASN1Object),W.asn1.DERUTF8String=function(e){W.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Ie.lang.extend(W.asn1.DERUTF8String,W.asn1.DERAbstractString),W.asn1.DERNumericString=function(e){W.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Ie.lang.extend(W.asn1.DERNumericString,W.asn1.DERAbstractString),W.asn1.DERPrintableString=function(e){W.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Ie.lang.extend(W.asn1.DERPrintableString,W.asn1.DERAbstractString),W.asn1.DERTeletexString=function(e){W.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Ie.lang.extend(W.asn1.DERTeletexString,W.asn1.DERAbstractString),W.asn1.DERIA5String=function(e){W.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Ie.lang.extend(W.asn1.DERIA5String,W.asn1.DERAbstractString),W.asn1.DERUTCTime=function(e){W.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Ie.lang.extend(W.asn1.DERUTCTime,W.asn1.DERAbstractTime),W.asn1.DERGeneralizedTime=function(e){W.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Ie.lang.extend(W.asn1.DERGeneralizedTime,W.asn1.DERAbstractTime),W.asn1.DERSequence=function(e){W.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Ie.lang.extend(W.asn1.DERSequence,W.asn1.DERAbstractStructured),W.asn1.DERSet=function(e){W.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Ie.lang.extend(W.asn1.DERSet,W.asn1.DERAbstractStructured),W.asn1.DERTaggedObject=function(e){W.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,t,a){this.hT=t,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ie.lang.extend(W.asn1.DERTaggedObject,W.asn1.ASN1Object);var Xs=globalThis&&globalThis.__extends||function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,t)};return function(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),oi=function(e){Xs(o,e);function o(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(o.hasPrivateKeyProperty(t)||o.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return o.prototype.parseKey=function(t){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?Ms.decode(t):po.unarmor(t),l=Ps.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ee(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ee(f,16);var c=l.sub[4].getHexStringValue();this.p=Ee(c,16);var d=l.sub[5].getHexStringValue();this.q=Ee(d,16);var g=l.sub[6].getHexStringValue();this.dmp1=Ee(g,16);var m=l.sub[7].getHexStringValue();this.dmq1=Ee(m,16);var u=l.sub[8].getHexStringValue();this.coeff=Ee(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],h=y.sub[0];a=h.sub[0].getHexStringValue(),this.n=Ee(a,16),r=h.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ee(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var t={array:[new W.asn1.DERInteger({int:0}),new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e}),new W.asn1.DERInteger({bigint:this.d}),new W.asn1.DERInteger({bigint:this.p}),new W.asn1.DERInteger({bigint:this.q}),new W.asn1.DERInteger({bigint:this.dmp1}),new W.asn1.DERInteger({bigint:this.dmq1}),new W.asn1.DERInteger({bigint:this.coeff})]},a=new W.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return an(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new W.asn1.DERSequence({array:[new W.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new W.asn1.DERNull]}),a=new W.asn1.DERSequence({array:[new W.asn1.DERInteger({bigint:this.n}),new W.asn1.DERInteger({int:this.e})]}),r=new W.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new W.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return an(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
90
|
+
*/var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var t=o.substr(1),a=t.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new le(r,16),l=s.xor(e).add(le.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,t=o.asn1,a=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,s=t.DEROctetString,l=t.DERNull,f=t.DERObjectIdentifier,c=t.DEREnumerated,d=t.DERUTF8String,g=t.DERNumericString,m=t.DERPrintableString,u=t.DERTeletexString,y=t.DERIA5String,h=t.DERUTCTime,v=t.DERGeneralizedTime,E=t.DERSequence,p=t.DERSet,b=t.DERTaggedObject,x=t.ASN1Util.newObject,k=Object.keys(e);if(k.length!=1)throw"key of param shall be only one.";var B=k[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+B+":")==-1)throw"undefined key: "+B;if(B=="bool")return new a(e[B]);if(B=="int")return new r(e[B]);if(B=="bitstr")return new i(e[B]);if(B=="octstr")return new s(e[B]);if(B=="null")return new l(e[B]);if(B=="oid")return new f(e[B]);if(B=="enum")return new c(e[B]);if(B=="utf8str")return new d(e[B]);if(B=="numstr")return new g(e[B]);if(B=="prnstr")return new m(e[B]);if(B=="telstr")return new u(e[B]);if(B=="ia5str")return new y(e[B]);if(B=="utctime")return new h(e[B]);if(B=="gentime")return new v(e[B]);if(B=="seq"){for(var D=e[B],R=[],O=0;O<D.length;O++){var w=x(D[O]);R.push(w)}return new E({array:R})}if(B=="set"){for(var D=e[B],R=[],O=0;O<D.length;O++){var w=x(D[O]);R.push(w)}return new p({array:R})}if(B=="tag"){var S=e[B];if(Object.prototype.toString.call(S)==="[object Array]"&&S.length==3){var T=x(S[2]);return new b({tag:S[0],explicit:S[1],obj:T})}else{var A={};if(S.explicit!==void 0&&(A.explicit=S.explicit),S.tag!==void 0&&(A.tag=S.tag),S.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=x(S.obj),new b(A)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),t=Math.floor(o/40),a=o%40,r=t+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),f=("00000000"+l.toString(2)).slice(-8);if(i=i+f.substr(1,7),f.substr(0,1)=="0"){var c=new le(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var f=l.toString(16);return f.length==1&&(f="0"+f),f},t=function(l){var f="",c=new le(l,10),d=c.toString(2),g=7-d.length%7;g==7&&(g=0);for(var m="",u=0;u<g;u++)m+="0";d=m+d;for(var u=0;u<d.length-1;u+=7){var y=d.substr(u,7);u!=d.length-7&&(y="1"+y),f+=o(parseInt(y,2))}return f};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=t(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,t=o.toString(16);if(t.length%2==1&&(t="0"+t),o<128)return t;var a=t.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Ie.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(o,t,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());t=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),f=r(String(i.getDate()),2),c=r(String(i.getHours()),2),d=r(String(i.getMinutes()),2),g=r(String(i.getSeconds()),2),m=s+l+f+c+d+g;if(a===!0){var u=i.getMilliseconds();if(u!=0){var y=r(String(u),3);y=y.replace(/[0]+$/,""),m=m+"."+y}}return m+"Z"},this.zeroPadding=function(o,t){return o.length>=t?o:new Array(t-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,t,a,r,i,s){var l=new Date(Date.UTC(o,t-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Ie.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Ie.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Ie.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Ie.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,a){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var r="0"+t;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var a=8-t.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)t+="0";for(var i="",r=0;r<t.length-1;r+=8){var s=t.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(t){for(var a="",r=0;r<t.length;r++)t[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(t){for(var a=new Array(t),r=0;r<t;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Ie.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Ie.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Ie.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},t=function(a){var r="",i=new le(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var f="",c=0;c<l;c++)f+="0";s=f+s;for(var c=0;c<s.length-1;c+=7){var d=s.substr(c,7);c!=s.length-7&&(d="1"+d),r+=o(parseInt(d,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=t(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},Ie.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var t=new le(String(o),10);this.setByBigInteger(t)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Ie.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Ie.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Ie.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Ie.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Ie.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Ie.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Ie.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Ie.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Ie.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,t=0;t<this.asn1Array.length;t++){var a=this.asn1Array[t];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Ie.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,t,a){this.hT=t,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Ie.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Xs=globalThis&&globalThis.__extends||function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,t)};return function(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),oi=function(e){Xs(o,e);function o(t){var a=e.call(this)||this;return t&&(typeof t=="string"?a.parseKey(t):(o.hasPrivateKeyProperty(t)||o.hasPublicKeyProperty(t))&&a.parsePropertiesFrom(t)),a}return o.prototype.parseKey=function(t){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(t)?Ms.decode(t):po.unarmor(t),l=Ps.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ee(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var f=l.sub[3].getHexStringValue();this.d=Ee(f,16);var c=l.sub[4].getHexStringValue();this.p=Ee(c,16);var d=l.sub[5].getHexStringValue();this.q=Ee(d,16);var g=l.sub[6].getHexStringValue();this.dmp1=Ee(g,16);var m=l.sub[7].getHexStringValue();this.dmq1=Ee(m,16);var u=l.sub[8].getHexStringValue();this.coeff=Ee(u,16)}else if(l.sub.length===2)if(l.sub[0].sub){var y=l.sub[1],h=y.sub[0];a=h.sub[0].getHexStringValue(),this.n=Ee(a,16),r=h.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ee(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var t={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(t);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return ln(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var t=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[t,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return ln(this.getPublicBaseKey())},o.wordwrap=function(t,a){if(a=a||64,!t)return t;var r="(.{1,"+a+`})( +|$
|
|
91
91
|
?)|(.{1,`+a+"})";return t.match(RegExp(r,"g")).join(`
|
|
92
92
|
`)},o.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
93
93
|
`;return t+=o.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
94
94
|
`,t+="-----END RSA PRIVATE KEY-----",t},o.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
95
95
|
`;return t+=o.wordwrap(this.getPublicBaseKeyB64())+`
|
|
96
|
-
`,t+="-----END PUBLIC KEY-----",t},o.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},o}(Ys),wo,ec=typeof process<"u"?(wo=process.env)===null||wo===void 0?void 0:wo.npm_package_version:void 0,tc=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 oi(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(Zr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return
|
|
97
|
-
`),Ao=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},fc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},hn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},dc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},fi=(e,o)=>tt(o,e),ct=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const t=o.length;for(let a=0;a<t;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},gn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),Yt=e=>{const{leftAxisList:o=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},et=(e,o)=>{let t=!0;const a=Yt(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},mn=(e,o)=>{const t={dayjs:Ae,...o};let a="";const r=[];for(const l in t)a+=`${l},`,r.push(t[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Te=(e="",{textData:o,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let d=c.slice(1,-1).trim();const g=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=d.match(g);for(let u=0;u<m.length;u++){const y=m[u],h=s[y];h!=null&&typeof h!="function"&&(d=d.replace(y,h))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=mn(d,t)),e=e.replace(c,d)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},He=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=n.inject(ze,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=n.inject(we,{getGlobalModel:y=>{}}),g=Te(t),m=async(y={})=>{if(!g||!a||!r)return;let h={};i.forEach(x=>{const{key:w,value:k}=x;if(typeof k=="object"&&k!=null&&k.id){let E={};const{id:R,prop:_,propKey:C,operate:S}=k;R==="THIS"?E=d(n.unref(c))||{}:E=d(R)||{};const A=n.unref(E[_]);let D=null;if(["date","range"].some(N=>ct(E==null?void 0:E.type,N))){const{value:N,type:L,mode:M}=S||{};if(N&&L&&M)switch(L){case"add":D=n.unref(A).add(N,M);break;case"minus":D=n.unref(A).subtract(N,M);break}D==null&&(D=n.unref(A)),D=(D==null?void 0:D.format((C==null?void 0:C.trim())||E.format))||""}else Object.prototype.toString.call(A)==="[object Object]"?C?D=A[C]:D=_?A[_]:A:ct(E==null?void 0:E.type,"select")&&n.unref(A)&&_&&Array.isArray(n.unref(A))?D=n.unref(A).map(N=>Object.prototype.hasOwnProperty.call(N,_)?N[_]:N):D=A;h[w]=D}else typeof k=="string"&&(h[w]=Te(k))}),h={...window.config.requestParams,...y,...h};let v="";const T=Object.keys(h),p=T.length-1,b=T.length;T.forEach((x,w)=>{let k=h[x];Object.prototype.toString.call(k)==="[object Object]"&&(k=JSON.stringify(k)),w===0?b!==1?v+=`?${x}=${k}&`:v+=`?${x}=${k}`:w===p?v+=`${x}=${k}`:v+=`${x}=${k}&`});try{const x=["get","head"].includes(a),w={};let k=x?g+v:g;h.dataSqlId&&!k.includes("dataSqlId")&&(k+=`${k.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(w.signal=h.signal);const E=await st({baseURL:n.unref(f)||"",url:k,method:a,headers:r,data:x?{}:h,...w});return o(E),E}catch(x){console.error(x)}},u=l&&setInterval(m,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),m},vt=(e=[],o,t=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const g=[];for(let u=0;u<f;u++){const y=r[u],{label:h,value:v}=y,T={...e[0],value:e[0][v]};i.add(h),g.push(T)}const m=e[0][a]||"";s.set(m,g)}else for(let g=0;g<l;g++){const m=e[g],u=m[a];i.add(u);for(let y=0;y<f;y++){const h=r[y],{label:v,value:T}=h,p={...m,value:m[T]};if(s.has(v)){const b=s.get(v);b.push(p),s.set(v,b)}else s.set(v,[p])}}const c=Array.from(i),d=[];for(const[g,m]of s)d.push({name:g,data:m});return{dimensions:c,dataset:d}},St=(e,o=!1)=>{var a;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(t=`url(${t})`),t},di=(e,o)=>{const t=`${ir}/preview?pageId=${o}`,a=`${ir}/${o}`;return e==="preview"?t:a},tt=(e,o)=>{var r;if(e==null)return o;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return o;const a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=mn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},nt=(e={})=>{const{requestToken:o}=n.inject(nr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(yt,{setLoadedData:(u,y)=>{}});e.dataType==="indicator"&&o();const a=(u={})=>{const{label:y,name:h,location:v,show:T,indexCode:p}=u;return{label:y,columnName:h,location:v,show:T,calcType:"COLUMN",hrpIndexCode:p}},r=(u,y)=>Object.prototype.hasOwnProperty.call(u,y),i=u=>{r(u,"dataType")&&(u.fieldType==="DATE"&&(u.label=u.fieldName),u.dataType==="component"&&(u.fieldValue="${"+u.fieldValue+"}"),delete u.dataType),r(u,"activeKey")&&delete u.activeKey,r(u,"radioValue")&&delete u.radioValue},s=u=>{const y=[];return u!=null&&u.length&&qe.cloneDeep(u).forEach(h=>{if(h.join&&h.conditions){const v=!h.conditions.some(T=>T.join&&T.conditions);h.conditions.forEach((T,p)=>{i(T),v?p<h.conditions.length-1?y.push({join:h.join,...T}):y.push(T):T.join&&T.conditions?y.push({conditions:s([T]),join:h.join}):y.push(T)})}else i(h),y.push(h)}),y},l=(u={})=>{const{label:y,name:h,location:v,show:T,indexCode:p,calcType:b="COLUMN",builtInFormula:x,builtInValueSource:w,builtInCalcWay:k,formula:E,conditions:R,aggregate:_}=u;let C;if(R&&(C=s(R)),b==="COMPONENT"){const S={};return g(S,w),{label:y.trim(),columnName:h,show:T,calcType:b,componentAlias:k,componentValue:S.fieldValue||null}}else return{label:y.trim(),columnName:h,location:v,show:T,calcType:b,hrpIndexCode:p,aggregate:_,builtInFormula:x,builtInValueSource:w,builtInCalcWay:k,formula:E,conditions:C}},f=u=>{const y=[];for(const h of u)h.conditions?y.push(...f(h.conditions)):(h==null?void 0:h.dataType)==="component"&&y.push(h);return y},{getGlobalModel:c}=n.inject(we,{getGlobalModel:u=>{}}),d=u=>{if(!u)return[];const{controlList:y=[],classificationList:h=[],rowHeaderList:v=[],seriesList:T=[],leftAxisList:p=[],rightAxisList:b=[],queryColumnList:x=[],indicators:w=[]}=u,k=[...h,...v,...T,...p,...b,...x,...w],E=[];for(const S of k){const A=f((S==null?void 0:S.conditions)||[]);if(A!=null&&A.length){const D=A.filter(B=>(B==null?void 0:B.dataType)==="component").map(B=>{const N={};return B!=null&&B.dateFormat&&(N.format=B.dateFormat),{conditionKey:B.fieldName,conditionLabel:B.fieldName,conditionName:B.fieldName,conditionValueType:B.fieldType,id:B.componentId,keyName:B.fieldValue,rule:B.rule,notGlobal:!0,...N}});if(D!=null&&D.length)for(const B of D)E.find(N=>N.keyName===B.keyName)||E.push(B)}}const R=y.concat(E),_=R.length,C=[];for(let S=0;S<_;S++){const A=R[S];if((A==null?void 0:A.conditionKey)==="parentCode")continue;const{id:D,keyName:B,conditionLabel:N,conditionKey:L,conditionValueType:M,prop:P,rule:j="NONE",notGlobal:G=!1,format:F,modelKey:q}=A;let O=B||D;O&&P&&(O+=`-${P}`);let I=j;I==="NONE"&&(["startTime","endTime"].includes(P)?I=P==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":B!=null&&B.includes("startTime")?I=P==="GREATER_EQUAL":B!=null&&B.includes("endTime")?I=P==="LESS_EQUAL":I="EQUAL");const z={rule:I,label:N,fieldName:L,fieldValue:"",valueType:M,alias:O,globalCondition:!G};g(z,D,{prop:P,dateFormat:F,modelKey:q,keyName:B}),C.push(z)}for(let S=C.length-1;S>=0;S--){const A=C[S];A.globalCondition||C.find(B=>B.alias===A.alias&&B.globalCondition)&&C.splice(S,1)}return C};function g(u,y,h){var S,A;const v=c(y)||{},{prop:T="",dateFormat:p="",modelKey:b="",keyName:x=""}=h||{},{value:w,format:k="YYYY-MM-DD",type:E="",useCurrentTime:R,RECORD:_}=v||{},C=p||k;if(ct(v.type,"date"))R?w?u.fieldValue=(S=n.unref(w))==null?void 0:S.format(C):u.fieldValue=Ae().format(C):u.fieldValue=(A=n.unref(w))==null?void 0:A.format(C),u.dateFormat=C;else if(E==="ecanRangePicker"){const{interval:D,intervalUnit:B,operate:N}=v||{};let L=T;if(!T){const P=x&&x.split("-");P!=null&&P.length&&(L=P[P.length-1])}if(!L)return;let M=null;if(R&&(L==="startTime"?M=Ae().subtract(D,B):L==="endTime"&&(M=Ae())),n.unref(v[L])&&(M=Ae(n.unref(v[L]))),N){const{type:P,value:j,mode:G}=N;switch(P){case"add":M=M&&M.add(j,G);break;case"minus":M=M&&M.subtract(j,G)}}M&&(u.fieldValue=M==null?void 0:M.format(C)),u.dateFormat=C}else ct(E,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&_?u.fieldValue=_[b]:!b&&_?u.fieldValue=_.value:u.fieldValue=n.unref(w):u.fieldValue=n.unref(w)}const m=u=>{const{sortCpnts:y=[]}=u;let h,v="";for(const T of y){const p=c(T)||{},{type:b,RECORD:x}=p;if(ct(b,"image")&&ct(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(h={label:u.label,columnName:u.name,order:v,type:"NORMAL"}),h};return async(u={})=>{var z,U,X,$,K,J;t(e.id,!1);const{graphicConfig:y,type:h,isGroupTable:v=!1}=e;let{source:T,dataViewId:p,plugin:b="1",layer:x,chartType:w,classificationList:k=[],rowHeaderList:E=[],seriesList:R=[],leftAxisList:_=[],rightAxisList:C=[],queryColumnList:S=[],indicators:A=[],controlList:D=[],formFields:B={},idxLibMode:N,preview:L=!1}=y||{},M=[];(y==null?void 0:y.pageMode)==="design"?M=y.sqlConditions??[]:M=d(y),x==null&&(ct(h,["table"])?x="1":ct(h,["select","checkbox","radio"])?x="3":x="2");let P,j="";if(Array.isArray(k)&&k.length>0){const Q=k.length;for(let oe=0;oe<Q;oe++){const te=k[oe]||{},{label:re="",name:de="",show:be=!1,sort:De,customGroup:_e,conditions:Ye,dateFormat:Ne,typeGuid:Me="",truncations:Be=[]}=te;if(be||Q===1){j=Me,P={label:re.trim(),columnName:de,show:be,sort:m(te)||De,customGroup:_e,conditions:s(Ye),typeGuid:Me},Ne&&(P.dateFormat=Ne),de==="the_date"&&!P.dateFormat&&(P.dateFormat="YYYY-MM");const Oe={};if(Array.isArray(Be)&&Be.length>0){const Ge=Be.length;for(let ot=0;ot<Ge;ot++){const Ve=Be[ot]||{},{rule:Ue="",num:lt=0,name:V=""}=Ve;Ue&<&&(Oe.num=lt,Oe.rule=Ue,V&&(Oe.otherGroupName=V))}}(z=Object.keys(Oe))!=null&&z.length&&(P.truncation=Oe);break}}}let G;if(Array.isArray(R)&&R.length>0){const Q=R.length;for(let oe=0;oe<Q;oe++){const te=R[oe]||{},{label:re="",name:de="",show:be=!1,sort:De,customGroup:_e,conditions:Ye}=te;if(be||Q===1){G={label:re.trim(),columnName:de,show:be,sort:De,customGroup:_e,conditions:s(Ye)};break}}}const F=[];S==null||S.forEach(Q=>{F.push(a(Q))});const q=[];_==null||_.forEach(Q=>{Q.location="LEFT",q.push(l(Q))}),C==null||C.forEach(Q=>{Q.location="RIGHT",q.push(l(Q))}),A==null||A.forEach(Q=>{Q.location="LEFT",q.push(l(Q)),Q!=null&&Q.sortCpnts&&(P.sort=m(Q)||P.sort)});const O=[];if(Array.isArray(E)&&E.length>0){const Q=E.length;for(let oe=0;oe<Q;oe++){const te=E[oe]||{},{label:re="",name:de="",show:be=!1,sort:De,customGroup:_e,conditions:Ye,truncations:Ne,typeGuid:Me=""}=te;let Be=De;if(u.sort){const{field:ot,order:Ve}=u.sort,Ue=q.find(lt=>lt.label===ot);Ue&&(Be={columnName:Ue.columnName,label:u.sort.field,order:Ve.toUpperCase(),type:"NORMAL"})}const Oe={label:re.trim(),columnName:de,show:be,sort:Be,customGroup:_e,conditions:s(Ye),typeGuid:Me},Ge={};if(Array.isArray(Ne)&&Ne.length>0){const ot=Ne.length;for(let Ve=0;Ve<ot;Ve++){const Ue=Ne[Ve]||{},{rule:lt="",num:V=0,name:Z=""}=Ue;lt&&V&&(Ge.num=V,Ge.rule=lt,Z&&(Ge.otherGroupName=Z))}}(U=Object.keys(Ge))!=null&&U.length&&(Oe.truncation=Ge),O.push(Oe)}}if(ct(h,["text","proportion"])&&(w="zb"),v){if(O.length===0||q.length===0)return;w="grouptable"}else{if(x==="1"&&F.length===0)return;if(x==="2"&&q.length===0)return;if(x==="3"&&(!j||!B.labelField||!B.valueField))return}let I=(X=window==null?void 0:window.config)==null?void 0:X.pageId;if(!I){const{pathname:Q}=window==null?void 0:window.location;if(Q){const oe=Q.split("/");oe!=null&&oe.length&&(I=oe[oe.length-1])}}if(($=Object.keys(B))!=null&&$.length){const Q=D.find(te=>te.conditionKey==="parentCode"),oe={};if(Q){const te=c(Q.id)||{};if(te!=null&&te.itemCodes)oe.parentItemCodes=te.itemCodes;else return}try{return await st.post(`${rr}/diagram/formData`,{source:T,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:j,type:"normalSelect",labelField:B.labelField,valueField:B.valueField,pageId:I,sqlConditions:M,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...oe},{headers:{Authentication:(K=window==null?void 0:window.config)==null?void 0:K.indicatorToken,operateContext:ar}})}catch(te){console.error(te)}finally{}}else try{return await st.post(`${rr}/diagram`,{source:T,dataViewId:p,plugin:b,layer:x,chartType:w,classification:P,series:G,indicatorList:q,queryColumns:v?[]:F,pageFlag:!0,pageId:I,sqlConditions:M.map(oe=>{const{fieldValue:te}=oe,re={};return te&&Array.isArray(te)&&(re.fieldValue=JSON.stringify(te)),{...oe,...re}}),idxLibMode:N,preview:L,rowHeaders:O,keyName:e.keyName},{headers:{Authentication:(J=window==null?void 0:window.config)==null?void 0:J.indicatorToken,operateContext:ar}})}catch(Q){console.error(Q)}finally{}}},uc=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},hc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...On},setup(e){const{width:o,height:t}=n.inject(ze,{width:null,height:null}),a=n.inject("setPageHeight",x=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const x={};return r||(x.width=o.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:St(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),f=n.ref(0),c=n.ref(0),d=n.ref(!1),g=n.ref();let m;const u=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=g.value.clientWidth,l.value=g.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),x()})}),y=()=>{s.value&&l.value?(g.value.style.width=`${s.value}px`,g.value.style.height=`${l.value}px`):(g.value.style.width=`${f.value}px`,g.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await u(),y(),v(),window.addEventListener("resize",T),p(),d.value=!0},{immediate:!0});const h=n.ref({});n.provide("scaleValue",h);const v=()=>{if(r){g.value.style.width="100%",g.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,w=document.body.clientHeight,k=s.value||f.value,E=l.value||c.value,R=x/k;let _=w/E;(s.value!==1920||l.value!==1080)&&(_=l.value/s.value*x/E),h.value={widthScale:R,heightScale:_},g.value&&(g.value.style.transform=`scale(${R}, ${_})`),a(_)},T=qe.debounce(async()=>{await u(),v()},100),p=()=>{const x=window.MutationObserver;m=new x(T),m.observe(g.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{m&&(m.disconnect(),m.takeRecords(),m=null)};return n.onMounted(()=>{d.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",T),b()}),{style:i,container:g,ready:d}}}),Cu="",gc={id:"container",ref:"container"};function mc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",gc,[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"page-config",style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],512)}const ui=me(he(hc,[["render",mc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=pe(ko),yc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},setup(e,{expose:o}){uc();const t=n.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=n.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=n.inject("usedComponentList",[]);n.watch(()=>e.theme,()=>{r()}),n.onMounted(()=>{r()});const s=n.computed(()=>Te(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),f=n.computed(()=>e.theme),c=n.computed(()=>e.width),d=n.computed(()=>e.height),g=n.ref("");n.provide(ze,{contextRequestUrl:s,pageMode:l,theme:f,touchEventId:g,width:c,height:d});const m=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",z=>{let U=z;t.value||(U=parseFloat(d.value)*z+"px"),m.value.height=U}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),y=new Map;console.log("globalModel",y);const h=z=>y.get(z),v=(z,U)=>{u.value=U,y.set(z,U)},T=()=>{u.value=null},p=z=>{let U=z;if(U){const X=z.match(/\{(.+?)\}/g);if(X!=null&&X.length){let $=X[0].slice(1,-1).trim();const K=$.match(/\[(.+?)\]/g);let J="";K!=null&&K.length&&($=$.replace(K[0],""),J=K[0].slice(1,-1).trim());const Q=n.unref(i).find(oe=>oe.keyName===$);if(Q){const oe=h(Q.id),{type:te,value:re,RECORD:de}=oe||{};ct(te,["table","bar","combograph","line","pie","radar","scatter","list"])?U=de[J]:U=re}}}return U};n.provide(we,{getGlobalModel:h,setGlobalModel:v,clearInteractiveData:T,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(z,U)=>{b.value[z]=U};n.provide(yt,{loadedData:b,setLoadedData:x});const w=[],k=()=>{w.pop()},E=z=>{w.push(z)},R=new Map,_=z=>R.get(z),C=(z,U)=>{R.set(z,U)};n.provide(or,{popUseModalIds:k,pushUseModalIds:E,getModalModel:_,setModalModel:C});const S=L0(),A=new Set,D=(z,U)=>{A.add(z),S.on(z,X=>typeof U[X]=="function"&&U[X]()),n.onBeforeUnmount(()=>{B(z)})},B=z=>{A.delete(z),S.off(z)},N=(z,U)=>{if(z==="PAGE"){const X=w.length;let $=[];if(X===0)$=[...A];else{const K=w[X-1];$=[..._(K)]}$.forEach(K=>{S.emit(K,U)})}else S.emit(z,U)};n.provide(Ln,{onEvent:D,offEvent:B,emitEvent:N});const L=n.ref(0),M=()=>{L.value=n.unref(L)+1};n.provide(nr,{requestToken:M});const P=new Map,j=new Map,G=({requestFn:z=()=>{},sortNum:U=0,id:X=""})=>{if(P.has(U)){const $=P.get(U);$==null||$.push(z)}else P.set(U,[z]);j.set(X,z)},F=z=>new Promise((U,X)=>{const $=z.map(K=>K());Promise.all($).then(K=>{U(K)}).catch(K=>{X(K)})}),q=z=>new Promise(async(U,X)=>{if(z){if(typeof z=="string"){const $=j.get(z);if(typeof $=="function"){const K=st.interceptors.response.use(J=>(U(J),J),J=>(X(J),Promise.reject(J)));$(),st.interceptors.response.eject(K)}}}else{const $=Array.from(P);$.sort((J,Q)=>Q[0]-J[0]);const K=$.length;try{e.pageMode!=="design"&&n.unref(L)>0;for(let J=0;J<K;J++){const Q=$[J][1];await F(Q)}}catch(J){console.error(J)}finally{P.clear(),U(null)}}});n.provide(Fe,{setRequest:G,touchRequest:q});const O=()=>{S.emit($t)};n.provide($t,{emitRefreshPage:O});const I=z=>{S.on($t,()=>z()),n.onMounted(()=>{S.off($t)})};return n.onBeforeUnmount(()=>{P==null||P.clear(),j==null||j.clear()}),o({touchRequest:q,getGlobalModel:h,onRefreshPage:I}),{providerConfig:a,configStyle:m}}}),Au="";function xc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:n.normalizeStyle(e.configStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const hi=me(he(yc,[["render",xc],["__scopeId","data-v-1ab62961"]])),Bo={...Ce,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},Eo=pe(Bo),gi=["refreshData","click","valueChange"],Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Io="data:image/png;base64,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==",_o=n.defineComponent({name:"EcanText",components:{Skeleton:tn},props:{...Eo},setup(e,{expose:o}){const t=n.ref(!1),a=Se(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([S,A])=>{A==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,A)=>{}}),{setLoadedData:c}=n.inject(yt,{setLoadedData:(S,A)=>{}}),d=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:A,gradientOffset:D,gradientAngle:B,color:N}=e;S+=`background: linear-gradient(${B}, ${N}, ${A||"transparent"} ${D*100}%);-webkit-background-clip: text;color: transparent;`}return S}),g=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:A,gradientOffset:D,gradientAngle:B,color:N}=e,L=A||"transparent";S.background=`linear-gradient(${B}, ${N}, ${L} ${D*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),m=n.computed(()=>{var M;if(n.unref(t))return"NaN";const S=n.unref(r),A=e.increaseColor||e.color,D=e.declineColor||e.color;let B=e.text;B=B==null?void 0:B.replace(/\n|\\n/g,"<br/>"),B=B==null?void 0:B.replace(/\s(?!\{) | (?!\})\s/g," ");const N=B.match(/\{(.+?)\}/g)||[];let L="";if(N==null||N.length===0){if(B&&e.format==="percentage"&&!isNaN(+B)){const P=parseFloat(B),j=P*100,G=u(j.toFixed(2));P>=0?B=`<span style="color: ${G||A||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(d)}">
|
|
96
|
+
`,t+="-----END PUBLIC KEY-----",t},o.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},o}(Ys),wo,ec=typeof process<"u"?(wo=process.env)===null||wo===void 0?void 0:wo.npm_package_version:void 0,tc=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 oi(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(Zr(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return ln(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,t,a){try{return ln(this.getKey().sign(o,t,a))}catch{return!1}},e.prototype.verify=function(o,t,a){try{return this.getKey().verify(o,Zr(t),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new oi,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=ec,e}();const ai=new tc,Vt=nc();function nc(){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 ri=Ye.enc.Utf8.parse("ABCDEF1234123412");function oc(e,o){o=o||Vt;const t=Ye.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Ye.enc.Utf8.parse(e);break;case"object":a=Ye.enc.Utf8.parse(JSON.stringify(e));break;default:a=Ye.enc.Utf8.parse(e.toString())}return Ye.AES.encrypt(a,t,{iv:ri,mode:Ye.mode.CBC,padding:Ye.pad.ZeroPadding}).toString()}function ii(e,o){o=o||Vt;const t=Ye.enc.Utf8.parse(o),a=Ye.AES.decrypt(e,t,{iv:ri,mode:Ye.mode.CBC,padding:Ye.pad.ZeroPadding});return Ye.enc.Utf8.stringify(a).toString()}function ac(e){ai.setPublicKey(e)}function rc(e){return ai.encrypt(e)}function li(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of t)if(new RegExp(a).test(e))return!0;return!1}function ic(e){const{paramType:o,data:t,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=jt(a,"string"):e.data=jt(t,"string"):["get","delete"].includes(r)?e.params=jt(a,"string"):e.data=jt(t)}function jt(e,o){let t=e||{};if(o==="string"){t="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const f=e[l];t+=`${l}=${encodeURIComponent(f)}&`}}ac("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=rc(Vt);return{c:oc(t,Vt),p:r}}window.getEncryptParam=jt;function lc(e,o){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&li(e.url)&&(e.data instanceof FormData?e.data=sc(e.data):ic(e))}function sc(e){const o=e.entries(),t=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?t.append(s,l):a[s]=l}const r=jt(a,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=Vt,window.xhaesDecrypt=ii;function si(e,o){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&li(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=ii(e.data.data.content,Vt);e.data=JSON.parse(a)}}const ci=window.config.requestErrorTip,ct=O0.create({timeout:1e3*180});ct.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),lc(e),e},e=>Promise.reject(e)),ct.interceptors.response.use(e=>{var o,t,a;return ci&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),si(e),e},e=>{if(si(e==null?void 0:e.response),ci)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const cc=e=>e.replace(/\\n/g,`
|
|
97
|
+
`),Ao=(e,o=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},fc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},mn=(e,o=2)=>{const t=e+"";if(t.includes("%"))return e;const a=parseFloat(t);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},dc=(e,o=2)=>{const t=e+"",a=parseFloat(t);return isNaN(a)?e:a.toFixed(o)},fi=(e,o)=>nt(o,e),ft=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const t=o.length;for(let a=0;a<t;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},yn=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),Jt=e=>{const{leftAxisList:o=[],rightAxisList:t=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...t,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},tt=(e,o)=>{let t=!0;const a=Jt(e);return a!=null&&a.length&&(t=a.map(r=>o[r.id]).every(r=>r)),t},xn=(e,o)=>{const t={dayjs:Ae,...o};let a="";const r=[];for(const l in t)a+=`${l},`,r.push(t[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Te=(e="",{textData:o,codeData:t}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let f=0;f<l.length;f++){const c=l[f];let d=c.slice(1,-1).trim();const g=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=d.match(g);for(let u=0;u<m.length;u++){const y=m[u],h=s[y];h!=null&&typeof h!="function"&&(d=d.replace(y,h))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=xn(d,t)),e=e.replace(c,d)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},Ve=(e,o=()=>{})=>{const{requestUrl:t,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:f,touchEventId:c}=n.inject(ze,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=n.inject(we,{getGlobalModel:y=>{}}),g=Te(t),m=async(y={})=>{if(!g||!a||!r)return;let h={};i.forEach(x=>{const{key:k,value:B}=x;if(typeof B=="object"&&B!=null&&B.id){let D={};const{id:R,prop:O,propKey:w,operate:S}=B;R==="THIS"?D=d(n.unref(c))||{}:D=d(R)||{};const T=n.unref(D[O]);let A=null;if(["date","range"].some(_=>ft(D==null?void 0:D.type,_))){const{value:_,type:N,mode:z}=S||{};if(_&&N&&z)switch(N){case"add":A=n.unref(T).add(_,z);break;case"minus":A=n.unref(T).subtract(_,z);break}A==null&&(A=n.unref(T)),A=(A==null?void 0:A.format((w==null?void 0:w.trim())||D.format))||""}else Object.prototype.toString.call(T)==="[object Object]"?w?A=T[w]:A=O?T[O]:T:ft(D==null?void 0:D.type,"select")&&n.unref(T)&&O&&Array.isArray(n.unref(T))?A=n.unref(T).map(_=>Object.prototype.hasOwnProperty.call(_,O)?_[O]:_):A=T;h[k]=A}else typeof B=="string"&&(h[k]=Te(B))}),h={...window.config.requestParams,...y,...h};let v="";const E=Object.keys(h),p=E.length-1,b=E.length;E.forEach((x,k)=>{let B=h[x];Object.prototype.toString.call(B)==="[object Object]"&&(B=JSON.stringify(B)),k===0?b!==1?v+=`?${x}=${B}&`:v+=`?${x}=${B}`:k===p?v+=`${x}=${B}`:v+=`${x}=${B}&`});try{const x=["get","head"].includes(a),k={};let B=x?g+v:g;h.dataSqlId&&!B.includes("dataSqlId")&&(B+=`${B.includes("?")?"&":"?"}dataSqlId=${h.dataSqlId}`),Object.prototype.hasOwnProperty.call(h,"signal")&&(k.signal=h.signal);const D=await ct({baseURL:n.unref(f)||"",url:B,method:a,headers:r,data:x?{}:h,...k});return o(D),D}catch(x){console.error(x)}},u=l&&setInterval(m,s*1e3);return n.onUnmounted(()=>{clearInterval(u)}),m},Ct=(e=[],o,t=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,f=r.length;if(l===1&&!t){const g=[];for(let u=0;u<f;u++){const y=r[u],{label:h,value:v}=y,E={...e[0],value:e[0][v]};i.add(h),g.push(E)}const m=e[0][a]||"";s.set(m,g)}else for(let g=0;g<l;g++){const m=e[g],u=m[a];i.add(u);for(let y=0;y<f;y++){const h=r[y],{label:v,value:E}=h,p={...m,value:m[E]};if(s.has(v)){const b=s.get(v);b.push(p),s.set(v,b)}else s.set(v,[p])}}const c=Array.from(i),d=[];for(const[g,m]of s)d.push({name:g,data:m});return{dimensions:c,dataset:d}},wt=(e,o=!1)=>{var a;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(t=`url(${t})`),t},di=(e,o)=>{const t=`${ir}/preview?pageId=${o}`,a=`${ir}/${o}`;return e==="preview"?t:a},nt=(e,o)=>{var r;if(e==null)return o;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return o;const a=t.length;for(let i=0;i<a;i++){const s=t[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let f=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(f=xn(l)),e=e.replace(s,f)}catch{e=e.replace(s,l)}}return e},ot=(e={})=>{const{requestToken:o}=n.inject(nr,{requestToken:()=>{}}),{setLoadedData:t}=n.inject(pt,{setLoadedData:(u,y)=>{}});e.dataType==="indicator"&&o();const a=(u={})=>{const{label:y,name:h,location:v,show:E,indexCode:p}=u;return{label:y,columnName:h,location:v,show:E,calcType:"COLUMN",hrpIndexCode:p}},r=(u,y)=>Object.prototype.hasOwnProperty.call(u,y),i=u=>{r(u,"dataType")&&(u.fieldType==="DATE"&&(u.label=u.fieldName),u.dataType==="component"&&(u.fieldValue="${"+u.fieldValue+"}"),delete u.dataType),r(u,"activeKey")&&delete u.activeKey,r(u,"radioValue")&&delete u.radioValue},s=u=>{const y=[];return u!=null&&u.length&&He.cloneDeep(u).forEach(h=>{if(h.join&&h.conditions){const v=!h.conditions.some(E=>E.join&&E.conditions);h.conditions.forEach((E,p)=>{i(E),v?p<h.conditions.length-1?y.push({join:h.join,...E}):y.push(E):E.join&&E.conditions?y.push({conditions:s([E]),join:h.join}):y.push(E)})}else i(h),y.push(h)}),y},l=(u={})=>{const{label:y,name:h,location:v,show:E,indexCode:p,calcType:b="COLUMN",builtInFormula:x,builtInValueSource:k,builtInCalcWay:B,formula:D,conditions:R,aggregate:O}=u;let w;if(R&&(w=s(R)),b==="COMPONENT"){const S={};return g(S,k),{label:y.trim(),columnName:h,show:E,calcType:b,componentAlias:B,componentValue:S.fieldValue||null}}else return{label:y.trim(),columnName:h,location:v,show:E,calcType:b,hrpIndexCode:p,aggregate:O,builtInFormula:x,builtInValueSource:k,builtInCalcWay:B,formula:D,conditions:w}},f=u=>{const y=[];for(const h of u)h.conditions?y.push(...f(h.conditions)):(h==null?void 0:h.dataType)==="component"&&y.push(h);return y},{getGlobalModel:c}=n.inject(we,{getGlobalModel:u=>{}}),d=u=>{if(!u)return[];const{controlList:y=[],classificationList:h=[],rowHeaderList:v=[],seriesList:E=[],leftAxisList:p=[],rightAxisList:b=[],queryColumnList:x=[],indicators:k=[]}=u,B=[...h,...v,...E,...p,...b,...x,...k],D=[];for(const S of B){const T=f((S==null?void 0:S.conditions)||[]);if(T!=null&&T.length){const A=T.filter(C=>(C==null?void 0:C.dataType)==="component").map(C=>{const _={};return C!=null&&C.dateFormat&&(_.format=C.dateFormat),{conditionKey:C.fieldName,conditionLabel:C.fieldName,conditionName:C.fieldName,conditionValueType:C.fieldType,id:C.componentId,keyName:C.fieldValue,rule:C.rule,notGlobal:!0,..._}});if(A!=null&&A.length)for(const C of A)D.find(_=>_.keyName===C.keyName)||D.push(C)}}const R=y.concat(D),O=R.length,w=[];for(let S=0;S<O;S++){const T=R[S];if((T==null?void 0:T.conditionKey)==="parentCode")continue;const{id:A,keyName:C,conditionLabel:_,conditionKey:N,conditionValueType:z,prop:P,rule:U="NONE",notGlobal:W=!1,format:F,modelKey:q}=T;let L=C||A;L&&P&&(L+=`-${P}`);let I=U;I==="NONE"&&(["startTime","endTime"].includes(P)?I=P==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":C!=null&&C.includes("startTime")?I=P==="GREATER_EQUAL":C!=null&&C.includes("endTime")?I=P==="LESS_EQUAL":I="EQUAL");const M={rule:I,label:_,fieldName:N,fieldValue:"",valueType:z,alias:L,globalCondition:!W};g(M,A,{prop:P,dateFormat:F,modelKey:q,keyName:C}),w.push(M)}for(let S=w.length-1;S>=0;S--){const T=w[S];T.globalCondition||w.find(C=>C.alias===T.alias&&C.globalCondition)&&w.splice(S,1)}return w};function g(u,y,h){var S,T;const v=c(y)||{},{prop:E="",dateFormat:p="",modelKey:b="",keyName:x=""}=h||{},{value:k,format:B="YYYY-MM-DD",type:D="",useCurrentTime:R,RECORD:O}=v||{},w=p||B;if(ft(v.type,"date"))R?k?u.fieldValue=(S=n.unref(k))==null?void 0:S.format(w):u.fieldValue=Ae().format(w):u.fieldValue=(T=n.unref(k))==null?void 0:T.format(w),u.dateFormat=w;else if(D==="ecanRangePicker"){const{interval:A,intervalUnit:C,operate:_}=v||{};let N=E;if(!E){const P=x&&x.split("-");P!=null&&P.length&&(N=P[P.length-1])}if(!N)return;let z=null;if(R&&(N==="startTime"?z=Ae().subtract(A,C):N==="endTime"&&(z=Ae())),n.unref(v[N])&&(z=Ae(n.unref(v[N]))),_){const{type:P,value:U,mode:W}=_;switch(P){case"add":z=z&&z.add(U,W);break;case"minus":z=z&&z.subtract(U,W)}}z&&(u.fieldValue=z==null?void 0:z.format(w)),u.dateFormat=w}else ft(D,["table","bar","combograph","line","pie","radar","scatter","list"])?b&&O?u.fieldValue=O[b]:!b&&O?u.fieldValue=O.value:u.fieldValue=n.unref(k):u.fieldValue=n.unref(k)}const m=u=>{const{sortCpnts:y=[]}=u;let h,v="";for(const E of y){const p=c(E)||{},{type:b,RECORD:x}=p;if(ft(b,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){v=x.value.toUpperCase();break}}return v&&(h={label:u.label,columnName:u.name,order:v,type:"NORMAL"}),h};return async(u={})=>{var M,j,ee,$,Q,J;t(e.id,!1);const{graphicConfig:y,type:h,isGroupTable:v=!1}=e;let{source:E,dataViewId:p,plugin:b="1",layer:x,chartType:k,classificationList:B=[],rowHeaderList:D=[],seriesList:R=[],leftAxisList:O=[],rightAxisList:w=[],queryColumnList:S=[],indicators:T=[],controlList:A=[],formFields:C={},idxLibMode:_,preview:N=!1}=y||{},z=[];(y==null?void 0:y.pageMode)==="design"?z=(y.sqlConditions??[]).map(K=>{const te=K.rule||"EQUAL",X={};return r(K,"globalCondition")||(X.globalCondition=!0),{...K,rule:te==="NONE"?"EQUAL":te,...X}}):z=d(y),x==null&&(ft(h,["table"])?x="1":ft(h,["select","checkbox","radio"])?x="3":x="2");let P,U="";if(Array.isArray(B)&&B.length>0){const K=B.length;for(let te=0;te<K;te++){const X=B[te]||{},{label:re="",name:ue="",show:ve=!1,sort:De,customGroup:_e,conditions:Ke,dateFormat:Ne,typeGuid:Me="",truncations:Be=[]}=X;if(ve||K===1){U=Me,P={label:re.trim(),columnName:ue,show:ve,sort:m(X)||De,customGroup:_e,conditions:s(Ke),typeGuid:Me},Ne&&(P.dateFormat=Ne),ue==="the_date"&&!P.dateFormat&&(P.dateFormat="YYYY-MM");const Le={};if(Array.isArray(Be)&&Be.length>0){const Ge=Be.length;for(let Qe=0;Qe<Ge;Qe++){const je=Be[Qe]||{},{rule:qe="",num:lt=0,name:V=""}=je;qe&<&&(Le.num=lt,Le.rule=qe,V&&(Le.otherGroupName=V))}}(M=Object.keys(Le))!=null&&M.length&&(P.truncation=Le);break}}}let W;if(Array.isArray(R)&&R.length>0){const K=R.length;for(let te=0;te<K;te++){const X=R[te]||{},{label:re="",name:ue="",show:ve=!1,sort:De,customGroup:_e,conditions:Ke}=X;if(ve||K===1){W={label:re.trim(),columnName:ue,show:ve,sort:De,customGroup:_e,conditions:s(Ke)};break}}}const F=[];S==null||S.forEach(K=>{F.push(a(K))});const q=[];O==null||O.forEach(K=>{K.location="LEFT",q.push(l(K))}),w==null||w.forEach(K=>{K.location="RIGHT",q.push(l(K))}),T==null||T.forEach(K=>{K.location="LEFT",q.push(l(K)),K!=null&&K.sortCpnts&&(P.sort=m(K)||P.sort)});const L=[];if(Array.isArray(D)&&D.length>0){const K=D.length;for(let te=0;te<K;te++){const X=D[te]||{},{label:re="",name:ue="",show:ve=!1,sort:De,customGroup:_e,conditions:Ke,truncations:Ne,typeGuid:Me=""}=X;let Be=De;if(u.sort){const{field:Qe,order:je}=u.sort;let qe=q.find(lt=>lt.label===Qe);!qe&&X.label===Qe&&(qe=X),qe&&(Be={columnName:qe.columnName,label:u.sort.field,order:je.toUpperCase(),type:"NORMAL"})}const Le={label:re.trim(),columnName:ue,show:ve,sort:Be,customGroup:_e,conditions:s(Ke),typeGuid:Me},Ge={};if(Array.isArray(Ne)&&Ne.length>0){const Qe=Ne.length;for(let je=0;je<Qe;je++){const qe=Ne[je]||{},{rule:lt="",num:V=0,name:Z=""}=qe;lt&&V&&(Ge.num=V,Ge.rule=lt,Z&&(Ge.otherGroupName=Z))}}(j=Object.keys(Ge))!=null&&j.length&&(Le.truncation=Ge),L.push(Le)}}if(ft(h,["text","proportion"])&&(k="zb"),v){if(L.length===0||q.length===0)return;k="grouptable"}else{if(x==="1"&&F.length===0)return;if(x==="2"&&q.length===0)return;if(x==="3"&&(!U||!C.labelField||!C.valueField))return}let I=(ee=window==null?void 0:window.config)==null?void 0:ee.pageId;if(!I){const{pathname:K}=window==null?void 0:window.location;if(K){const te=K.split("/");te!=null&&te.length&&(I=te[te.length-1])}}if(($=Object.keys(C))!=null&&$.length){const K=A.find(X=>X.conditionKey==="parentCode"),te={};if(K){const X=c(K.id)||{};if(X!=null&&X.itemCodes)te.parentItemCodes=X.itemCodes;else return}try{return await ct.post(`${rr}/diagram/formData`,{source:E,dataViewId:p,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:U,type:"normalSelect",labelField:C.labelField,valueField:C.valueField,pageId:I,sqlConditions:z,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...te},{headers:{Authentication:(Q=window==null?void 0:window.config)==null?void 0:Q.indicatorToken,operateContext:ar}})}catch(X){console.error(X)}finally{}}else try{return await ct.post(`${rr}/diagram`,{source:E,dataViewId:p,plugin:b,layer:x,chartType:k,classification:P,series:W,indicatorList:q,queryColumns:v?[]:F,pageFlag:!0,pageId:I,sqlConditions:z.map(te=>{const{fieldValue:X}=te,re={};return X&&Array.isArray(X)&&(re.fieldValue=JSON.stringify(X)),{...te,...re}}),idxLibMode:_,preview:N,rowHeaders:L,keyName:e.keyName},{headers:{Authentication:(J=window==null?void 0:window.config)==null?void 0:J.indicatorToken,operateContext:ar}})}catch(K){console.error(K)}finally{}}},uc=()=>{const o=window.location.search.slice(1).split("&"),t=o.length,a={};for(let r=0;r<t;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},hc=n.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...On},setup(e){const{width:o,height:t}=n.inject(ze,{width:null,height:null}),a=n.inject("setPageHeight",x=>{}),r=n.inject("isMobile",!1),i=n.computed(()=>{const x={};return r||(x.width=o.value,x.height=t.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:wt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=n.ref(0),l=n.ref(0),f=n.ref(0),c=n.ref(0),d=n.ref(!1),g=n.ref();let m;const u=()=>new Promise(x=>{n.nextTick(()=>{o.value&&t.value?(s.value=parseFloat(o.value),l.value=parseFloat(t.value)):(s.value=g.value.clientWidth,l.value=g.value.clientHeight),(!f.value||!c.value)&&(f.value=window.screen.width,c.value=window.screen.height),x()})}),y=()=>{s.value&&l.value?(g.value.style.width=`${s.value}px`,g.value.style.height=`${l.value}px`):(g.value.style.width=`${f.value}px`,g.value.style.height=`${c.value}px`)};n.watch([o,t],async()=>{await u(),y(),v(),window.addEventListener("resize",E),p(),d.value=!0},{immediate:!0});const h=n.ref({});n.provide("scaleValue",h);const v=()=>{if(r){g.value.style.width="100%",g.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,B=s.value||f.value,D=l.value||c.value,R=x/B;let O=k/D;(s.value!==1920||l.value!==1080)&&(O=l.value/s.value*x/D),h.value={widthScale:R,heightScale:O},g.value&&(g.value.style.transform=`scale(${R}, ${O})`),a(O)},E=He.debounce(async()=>{await u(),v()},100),p=()=>{const x=window.MutationObserver;m=new x(E),m.observe(g.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},b=()=>{m&&(m.disconnect(),m.takeRecords(),m=null)};return n.onMounted(()=>{d.value=!1}),n.onUnmounted(()=>{window.removeEventListener("resize",E),b()}),{style:i,container:g,ready:d}}}),Cu="",gc={id:"container",ref:"container"};function mc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",gc,[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"page-config",style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)):n.createCommentVNode("",!0)],512)}const ui=xe(me(hc,[["render",mc],["__scopeId","data-v-b496b36e"]])),ko={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},To=be(ko),yc=n.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...To},setup(e,{expose:o}){uc();const t=n.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=n.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=n.inject("usedComponentList",[]);n.watch(()=>e.theme,()=>{r()}),n.onMounted(()=>{r()});const s=n.computed(()=>Te(e.contextRequestUrl)),l=n.computed(()=>e.pageMode),f=n.computed(()=>e.theme),c=n.computed(()=>e.width),d=n.computed(()=>e.height),g=n.ref("");n.provide(ze,{contextRequestUrl:s,pageMode:l,theme:f,touchEventId:g,width:c,height:d});const m=n.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});n.provide("setPageHeight",M=>{let j=M;t.value||(j=parseFloat(d.value)*M+"px"),m.value.height=j}),n.provide("isMobile",t.value),n.provide("getContainerMap",()=>e.containerMap),n.provide("getCombinationMap",()=>e.combinationMap);const u=n.ref(),y=new Map;console.log("globalModel",y);const h=M=>y.get(M),v=(M,j)=>{u.value=j,y.set(M,j)},E=()=>{u.value=null},p=M=>{let j=M;if(j){const ee=M.match(/\{(.+?)\}/g);if(ee!=null&&ee.length){let $=ee[0].slice(1,-1).trim();const Q=$.match(/\[(.+?)\]/g);let J="";Q!=null&&Q.length&&($=$.replace(Q[0],""),J=Q[0].slice(1,-1).trim());const K=n.unref(i).find(te=>te.keyName===$);if(K){const te=h(K.id),{type:X,value:re,RECORD:ue}=te||{};ft(X,["table","bar","combograph","line","pie","radar","scatter","list"])?j=ue[J]:j=re}}}return j};n.provide(we,{getGlobalModel:h,setGlobalModel:v,clearInteractiveData:E,getRecordValueByKeyName:p,interactiveData:u});const b=n.ref({}),x=(M,j)=>{b.value[M]=j};n.provide(pt,{loadedData:b,setLoadedData:x});const k=[],B=()=>{k.pop()},D=M=>{k.push(M)},R=new Map,O=M=>R.get(M),w=(M,j)=>{R.set(M,j)};n.provide(or,{popUseModalIds:B,pushUseModalIds:D,getModalModel:O,setModalModel:w});const S=L0(),T=new Set,A=(M,j)=>{T.add(M),S.on(M,ee=>typeof j[ee]=="function"&&j[ee]()),n.onBeforeUnmount(()=>{C(M)})},C=M=>{T.delete(M),S.off(M)},_=(M,j)=>{if(M==="PAGE"){const ee=k.length;let $=[];if(ee===0)$=[...T];else{const Q=k[ee-1];$=[...O(Q)]}$.forEach(Q=>{S.emit(Q,j)})}else S.emit(M,j)};n.provide(Ln,{onEvent:A,offEvent:C,emitEvent:_});const N=n.ref(0),z=()=>{N.value=n.unref(N)+1};n.provide(nr,{requestToken:z});const P=new Map,U=new Map,W=({requestFn:M=()=>{},sortNum:j=0,id:ee=""})=>{if(P.has(j)){const $=P.get(j);$==null||$.push(M)}else P.set(j,[M]);U.set(ee,M)},F=M=>new Promise((j,ee)=>{const $=M.map(Q=>Q());Promise.all($).then(Q=>{j(Q)}).catch(Q=>{ee(Q)})}),q=M=>new Promise(async(j,ee)=>{if(M){if(typeof M=="string"){const $=U.get(M);if(typeof $=="function"){const Q=ct.interceptors.response.use(J=>(j(J),J),J=>(ee(J),Promise.reject(J)));$(),ct.interceptors.response.eject(Q)}}}else{const $=Array.from(P);$.sort((J,K)=>K[0]-J[0]);const Q=$.length;try{e.pageMode!=="design"&&n.unref(N)>0;for(let J=0;J<Q;J++){const K=$[J][1];await F(K)}}catch(J){console.error(J)}finally{P.clear(),j(null)}}});n.provide(Fe,{setRequest:W,touchRequest:q});const L=()=>{S.emit(Kt)};n.provide(Kt,{emitRefreshPage:L});const I=M=>{S.on(Kt,()=>M()),n.onMounted(()=>{S.off(Kt)})};return n.onBeforeUnmount(()=>{P==null||P.clear(),U==null||U.clear()}),o({touchRequest:q,getGlobalModel:h,onRefreshPage:I}),{providerConfig:a,configStyle:m}}}),Au="";function xc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:n.normalizeStyle(e.configStyle)},[n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const hi=xe(me(yc,[["render",xc],["__scopeId","data-v-1ab62961"]])),Bo={...Ce,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},Eo=be(Bo),gi=["refreshData","click","valueChange"],Do="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Io="data:image/png;base64,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==",_o=n.defineComponent({name:"EcanText",components:{Skeleton:on},props:{...Eo},setup(e,{expose:o}){const t=n.ref(!1),a=Se(e),r=n.ref({}),i=n.computed(()=>e.variableFontSize||"14px"),s=n.computed(()=>"-"+n.unref(i));n.watch(()=>[e.data,e.dataType],([S,T])=>{T==="static"&&(r.value=S)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:f}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{setLoadedData:c}=n.inject(pt,{setLoadedData:(S,T)=>{}}),d=n.computed(()=>{let S="";if(e.gradientShow){const{gradientColor:T,gradientOffset:A,gradientAngle:C,color:_}=e;S+=`background: linear-gradient(${C}, ${_}, ${T||"transparent"} ${A*100}%);-webkit-background-clip: text;color: transparent;`}return S}),g=n.computed(()=>{const S={};if(e.gradientShow){const{gradientColor:T,gradientOffset:A,gradientAngle:C,color:_}=e,N=T||"transparent";S.background=`linear-gradient(${C}, ${_}, ${N} ${A*100}%)`,S["-webkit-background-clip"]="text",S.color="transparent"}return S}),m=n.computed(()=>{var z;if(n.unref(t))return"NaN";const S=n.unref(r),T=e.increaseColor||e.color,A=e.declineColor||e.color;let C=e.text;C=C==null?void 0:C.replace(/\n|\\n/g,"<br/>"),C=C==null?void 0:C.replace(/\s(?!\{) | (?!\})\s/g," ");const _=C.match(/\{(.+?)\}/g)||[];let N="";if(_==null||_.length===0){if(C&&e.format==="percentage"&&!isNaN(+C)){const P=parseFloat(C),U=P*100,W=u(U.toFixed(2));P>=0?C=`<span style="color: ${W||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(d)}">
|
|
98
98
|
<div class="percentage-img-box">
|
|
99
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
99
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${W||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
|
|
100
100
|
</div>
|
|
101
|
-
<span style="color: ${
|
|
102
|
-
</span>`:
|
|
101
|
+
<span style="color: ${W||e.color};${n.unref(d)}">${Math.abs(+U).toFixed(2)}%</span>
|
|
102
|
+
</span>`:C=`<span style="color: ${W||A||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(d)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
104
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${W||A||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
|
|
105
105
|
</div>
|
|
106
|
-
<span style="color: ${
|
|
107
|
-
</span>`}
|
|
106
|
+
<span style="color: ${W||e.color};${n.unref(d)}">${e.minusSignShow?"-":""}${Math.abs(+U).toFixed(2)}%</span>
|
|
107
|
+
</span>`}N=C}for(let P=0;P<_.length;P++){const U=_[P],W=(z=U==null?void 0:U.slice(1,U.length-1))==null?void 0:z.trim();let F=W;const q=W.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let I=0;I<q.length;I++){const M=q[I],j=S[M];j&&(F=W.replace(M,j))}if(/\(.*\)/g.test(F)){const I=xn(F);I!=null&&(F=I)}let L=F;if(L===W&&(L=e.variableDefaultValue),L!=null){const I=e.format;if(I==="percentage")if(L=+L,isNaN(L))C=C.replace(U,`<span style="color:${u("0.00")||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">0%</span>`);else if(L>=0){L=L*100;const M=u(L.toFixed(2));C=C.replace(U,`<span style="color: ${M||T||"#ED6643"};font-size:${n.unref(i)};display: inline-block;${n.unref(d)}">
|
|
108
108
|
<div class="percentage-img-box">
|
|
109
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
109
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||T||"#ED6643"} ${n.unref(i)} 0px)`};" src="${Do}"/>
|
|
110
110
|
</div>
|
|
111
|
-
<span style="color: ${
|
|
112
|
-
</span>`)}else{
|
|
111
|
+
<span style="color: ${M||e.color};${n.unref(d)}">${Math.abs(+L).toFixed(2)}%</span>
|
|
112
|
+
</span>`)}else{L=L*100;const M=u(L.toFixed(2));C=C.replace(U,`<span style="color: ${M||A||"#6ACB97"};font-size:${n.unref(i)};display: inline-block;${n.unref(d)}">
|
|
113
113
|
<div class="percentage-img-box">
|
|
114
|
-
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${
|
|
114
|
+
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${M||A||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Io}"/>
|
|
115
115
|
</div>
|
|
116
|
-
<span style="color: ${
|
|
117
|
-
</span>`)}else e.format==="percent"?(O=+O,isNaN(O)||(O=(O*100).toFixed(2),B=B.replace(j,`<span style="color:${u(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${O}%</span>`))):e.format==="money"?(O=+O,isNaN(O)||(O=Ao(O),B=B.replace(j,`<span style="color:${u(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${O}</span>`))):I==="thousands"?(O=+O,isNaN(O)||(O=fc(O),B=B.replace(j,`<span style="color:${u(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${O}</span>`))):B=B.replace(j,`<span style="color:${u(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${O}</span>`)}}if(L||(L=`<span style="color: ${u(B)};${n.unref(d)}">${B}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:j}=e;let G="position:relative;";P&&(G+=`top:${P};`),j&&(G+=`margin-left:${j};`),L+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${G};${n.unref(d)}'>${e.unitText}</span>`}return L});function u(S){let A="",D=!1;const{targetValue:B,targetShow:N,notExpectColor:L}=e;if(N){switch(e.targetRule){case"equal":S!==B&&(D=!0);break;case"greater":S<=B&&(D=!0);break;case"greater_equal":S<B&&(D=!0);break;case"less":S>=B&&(D=!0);break;case"less_equal":S>B&&(D=!0);break}D&&(A=L)}return A}const{pageMode:y}=n.inject(ze,{pageMode:"normal"}),h=He(e),v=n.ref(!1),T=async()=>{var S;try{v.value=!0;const A=await h();r.value=((S=A==null?void 0:A.data)==null?void 0:S.data)||{}}catch(A){console.error(A)}finally{v.value=!1}},p=(S={})=>{r.value=S},b=S=>{const A=e.id,D=l(A);f(A,{...D,value:S||""})},x=nt(e),w=async()=>{var S;try{v.value=!0;const A=await x(),{data:D}=(A==null?void 0:A.data)||{};if(D){t.value=!1;const{columns:B=[],rows:N=[]}=((S=A==null?void 0:A.data)==null?void 0:S.data)??{};let L={};if(B.length>0){const M=B.find(P=>!!P);M&&(L={value:isNaN(N[M])?0:N[M]||0})}b(L==null?void 0:L.value),p(L)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(A){console.error(A)}finally{v.value=!1,c(e.id,!0)}},k=()=>{switch(e.dataType){case"indicator":w();break;case"request":T();break}},{setRequest:E}=n.inject(Fe,{setRequest:({id:S,sortNum:A,requestFn:D})=>{}});typeof E=="function"&&E({id:e.id,requestFn:k,sortNum:e.requestSort}),Re(e,{refreshData:k}),o({refreshData:k});const R=ke(e),_=R("click",()=>{if(!e.linkPage&&!e.href)return;const S=e.linkPage||"",A=di(n.unref(y),S),D=e.href;let B=D||A;B=Te(B);const N=e.target;N&&(N!=="event"?window.open(B,"_"+N):window.parent.postMessage({type:"openPage",url:D},"*"))}),C=R("valueChange",()=>{});return n.watch(()=>m.value,(S,A)=>{S!==A&&C()}),{style:a,myText:m,loading:v,click:_,textIndent:s,vFontSize:i,gradientStyle:g}}}),mi=()=>{n.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},yi=_o.setup;_o.setup=yi?(e,o)=>(mi(),yi(e,o)):mi;const Tu="",pc=["innerHTML"];function bc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,pc))}const xi=me(he(_o,[["render",bc],["__scopeId","data-v-3cbb70ab"]])),vc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Eu="",Sc={class:"red"};function Cc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Sc,n.toDisplayString(e.text),1)}const pi=me(he(vc,[["render",Cc],["__scopeId","data-v-4dd9c03e"]])),Ro={...Ce,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Oo=pe(Ro),bi=["timeChange"],wc=n.defineComponent({name:"EcanTimeDisplay",props:{...Oo},setup(e){const o=Se(e),t=()=>{const{format:c,operate:d}=e;let g=Ae();if(d){const{type:m,value:u,mode:y}=d;switch(m){case"add":g=g.add(u,y);break;case"minus":g=g.subtract(u,y)}}return g.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=ke(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:g}=e.updateInterval||{};d&&(c=c*d);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Re(e,{timeChange:l}),n.onMounted(()=>{f()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Iu="";function Ac(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const vi=me(he(wc,[["render",Ac],["__scopeId","data-v-b628fca2"]])),Lo={...Ce,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},No=pe(Lo),Si=["refreshData","click"],kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Bc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var Dc=Object.defineProperty,Ci=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,wi=(e,o,t)=>o in e?Dc(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ai=(e,o)=>{for(var t in o||(o={}))Ic.call(o,t)&&wi(e,t,o[t]);if(Ci)for(var t of Ci(o))_c.call(o,t)&&wi(e,t,o[t]);return e},Rc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Oc=n.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),f=n.ref(0),c=n.ref(0),d=n.ref(0),g=n.ref(0),m=n.ref(!1),u=n.ref(!1),y=n.ref(0),h=n.ref(null),v=n.ref("200px"),T=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await w(),i.value++},w=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){g.value=p.value.clientHeight,d.value=b.value.clientHeight;const L=Math.ceil(d.value/g.value);return t.value=isFinite(L)?L:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,f.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<f.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const L=Math.ceil(f.value/c.value);return t.value=isFinite(L)?L:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(f,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(L,M)=>{L!==M&&o(L?"onResume":"onPause")});const k=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},E=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},R=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},_=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},C=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),S=n.computed(()=>e.pauseOnHover&&(m.value||u.value)||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),A=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&C.value==="paused"?"paused":"running"),D=n.computed(()=>{const L={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${S.value}`,"--pauseOnClick":`${A.value}`,"--pauseAnimation":`${C.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${v.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},M={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(M["--orientation"]="scrollY"),Ai(Ai({},L),M)}),B=n.computed(()=>!!e.gradient),N=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),v.value=e.gradientWidth):e.gradientLength&&(v.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await w(),x()),T.value=!0};return n.onMounted(async()=>{N(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:T,contentWidth:c,containerWidth:f,contentHeight:g,containerHeight:d,loopCounter:y,loopInterval:h,mouseOverMarquee:m,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:B,cloneAmount:t,ForcesUpdate:x,checkForClone:w,setupMarquee:N,getCurrentStyle:D,hoverStarted:k,hoverEnded:E,mouseDown:R,mouseUp:_}}}),Lc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Nc={class:"marquee",ref:"marqueeContent"},Mc={key:1,"aria-hidden":!0,class:"marquee"};function zc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",Lc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",Nc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Mc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Fc=Rc(Oc,[["render",zc]]);const Pc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Fc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),qc={key:1,class:"list-wrap"};function Hc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",qc,[n.renderSlot(e.$slots,"default")]))}const Vc=he(Pc,[["render",Hc]]),jc=n.defineComponent({name:"EcanList",components:{Skeleton:tn,ATooltip:se.Tooltip,MarqueeScroll:Vc},props:{...No},setup(e,{expose:o}){const t=n.ref(),a=Se(e,["backgroundColor"]),r=(_,C)=>{const{format:S,customFormatter:A}=C;if(S==null||S==="")return _;const D={money:Ao,percentage:hn,contrast:hn,custom:fi};return D[S]?S==="custom"?D[S](_,A)||"":D[S](_)||"":""},i=(_,C)=>{const S=parseFloat(_+"");if(C!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=He(e),l=n.ref(!1),f=async()=>{var _;if(e.dataType==="request")try{l.value=!0;const C=await s();t.value=((_=C==null?void 0:C.data)==null?void 0:_.data.rows)||[]}catch(C){console.error(C)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),d=n.computed(()=>{const{columns:_,isUseSeq:C}=e;return C?[n.unref(c),..._]:_}),g=nt(e),m=async()=>{var _;try{l.value=!0;const C=await g(),{columns:S=[],rows:A=[]}=((_=C==null?void 0:C.data)==null?void 0:_.data)??{};e.isUseSeq&&S.unshift(e.seqName),d.value.forEach((D,B)=>{(!e.isUseSeq||B!==0)&&(D.title=S[B],D.key=S[B])}),t.value=A}catch(C){console.error(C)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":f();break}},y=ke(e),{getGlobalModel:h,setGlobalModel:v}=n.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,C)=>{}}),T=_=>{y("click",()=>{const C=h(e.id);v(e.id,{...C,type:e.type,RECORD:_})})()};Re(e,{refreshData:u});const{setRequest:p}=n.inject(Fe,{setRequest:({id:_,sortNum:C,requestFn:S})=>{}});typeof p=="function"&&p({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const b=_=>({flex:_.width?"none":"1",width:_.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:_.align||"left",backgroundColor:_.cellColor}),x=(_,C)=>{let S=0;const A=n.unref(t).map(B=>B[C]),D=Math.max(...A);return D&&(S=_[C]/D*100),S},w=_=>{const{progressColor:C="#1890ff",progressGradientColor:S=""}=_;return S?{background:`linear-gradient(to right, ${C} 0%, ${S} 100%)`}:{backgroundColor:C||"#1890ff"}},k=n.computed(()=>{const _=parseFloat(e.seqFontSize)+5;return{width:_+10,height:_}}),{pageMode:E}=n.inject(ze,{pageMode:"normal"}),R=n.computed(()=>n.unref(E)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:d,click:T,getColumnStyle:b,getPercentage:x,getBackgroundColor:w,seqIcon4:kc,seqIcon5:Tc,seqIcon6:Bc,seqIcon7:Ec,iconSize:k,isScroll:R}}}),Ru="",Ou="",Uc=e=>(n.pushScopeId("data-v-bb4b7c1e"),e=e(),n.popScopeId(),e),Gc={key:0,class:"title"},Wc={key:0,class:"ranking"},$c={key:1,class:"ecan-list-content"},Zc=["onClick"],Yc={key:0,class:"ranking"},Kc=Uc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),Qc={class:"sort"},Jc=["src","width","height"],Xc=["src","width","height"],ef=["src","width","height"],tf=["src","width","height"],nf={key:1},of={key:2,class:"empty"};function af(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),f=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(f,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Gc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Wc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(d,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:d.key||g,style:n.normalizeStyle({color:d.titleColor,...e.getColumnStyle(d)})},n.toDisplayString(d.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",$c,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||d,onClick:g=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Yc,[Kc,n.createElementVNode("div",Qc," Top "+n.toDisplayString(d+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[d===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Jc)):d===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Xc)):d===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,ef)):d>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,tf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(d+1),5)],64)):(n.openBlock(),n.createElementBlock("span",nf,n.toDisplayString(d+1),1))],64)):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Zc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",of," 暂无数据 "))]),_:1},8,["loading"])],4)}const ki=me(he(jc,[["render",af],["__scopeId","data-v-bb4b7c1e"]])),Mo={...Ce,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},zo=pe(Mo),Ti=["refreshData","click"],rf=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:tn},props:{...zo},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),r=Se(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),w=+e.variableDefaultValue;if(x==null)return isNaN(w)?0:w;const k=e.text.match(/\{.+\}/g)||[];let E;const R=new Set(Object.keys(x));for(let _=0;_<k.length;_++){const C=k[_],S=C.slice(1,C.length-1);if(R.has(S)){E=x[S];break}}return typeof E=="number"?E=E*100:typeof E=="string"&&!isNaN(+E)?E=+E*100:isNaN(w)?E=0:E=w*100,e.decimalFormat&&(E=+E.toFixed(2)),E}),f=n.computed(()=>{var R;let x=e.text;if(x==="")return n.unref(l);const w=e.variableDefaultValue,k=n.unref(s),E=x.match(/\{.+\}/g)||[];for(let _=0;_<E.length;_++){const C=E[_];let S=C.slice(1,C.length-1);const A=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,D=C.match(A);for(let N=0;N<(D==null?void 0:D.length);N++){const L=(R=D[N])==null?void 0:R.trim();k[L]!=null&&(S=S.replace(L,k[L]))}let B=S;try{/\(.*\)/g.test(S)&&(B=mn(S))}catch(N){console.error(N)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=w,x=x.replace(C,B+"")}return n.unref(t)?"NaN":x}),c=He(e),d=n.ref(!1),g=async()=>{var x;if(e.dataType==="request")try{d.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{d.value=!1}},m=(x={})=>{s.value=x},u=nt(e),y=async()=>{var x;try{d.value=!0;const w=await u(),{data:k}=(w==null?void 0:w.data)||{};if(k){t.value=!1;const{columns:E=[],rows:R=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let _={};if(E.length>0){const C=E.find(S=>!!S);C&&(_={percent:R[C]})}m(_)}else t.value=!0,m({percent:"NaN"})}catch(w){console.error(w)}finally{d.value=!1}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":g();break}};Re(e,{refreshData:h}),o({refreshData:h});const T=ke(e)("click",()=>{}),{setRequest:p}=n.inject(Fe,{setRequest:({id:x,sortNum:w,requestFn:k})=>{}});typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:w,gradientOffset:k,strokeColor:E}=e;let R=E;return x&&w&&(R={"0%":E,[`${k*100}%`]:w}),R});return{style:r,myWidth:i,text:f,myValue:l,loading:d,click:T,customStrokeColor:b}}}),Nu="";function lf(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Bi=me(he(rf,[["render",lf],["__scopeId","data-v-cf942b5f"]])),Fo={...Ce,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=pe(Fo),Ei=["inputChange","inputBlur"],sf=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Po},setup(e){const o=Se(e),t=n.ref("");n.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=n.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=a(e.id);r(e.id,{...c,RECORD:t})},s=ke(e),l=qe.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:f,inputChange:l}}}),zu="";function cf(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Di=me(he(sf,[["render",cf]])),qo={...Ce,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Ho=pe(qo),Ii=["dateChange"],Vo=n.defineComponent({name:"EcanDatePicker",props:{...Ho},components:{ADatePicker:se.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Se(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([m,u,y])=>{let h=null;if(m?h=Ae(Te(m)):u&&(h=Ae()),y&&h){const{type:v,value:T,mode:p}=y;switch(v){case"add":h=h.add(T,p);break;case"minus":h=h.subtract(T,p)}}r.value=h},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(we,{setGlobalModel:(m,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=ke(e)("dateChange",()=>{}),f=()=>{n.unref(r)&&l()};Re(e,{dateChange:l});const c=n.ref({}),d=n.ref({}),g=m=>{m?setTimeout(()=>{d.value=n.unref(c)},300):d.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const u=m.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<y&&(c.value.marginLeft=-1*(y-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Oa,change:f,scaleValue:o,popupStyle:c,customStyle:d,openChange:g}}}),_i=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ri=Vo.setup;Vo.setup=Ri?(e,o)=>(_i(),Ri(e,o)):_i;const Pu="",qu="",ff=["id"];function df(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,ff)}const Oi=me(he(Vo,[["render",df],["__scopeId","data-v-d4ec0d66"]])),jo={...Ce,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},Uo=pe(jo),Li=["dateChange"];var Ni={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(ce,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,d){return c=Number(c),this.$utils().p(d)===a?this.add(3*c,t):l.bind(this)(c,d)};var f=s.startOf;s.startOf=function(c,d){var g=this.$utils(),m=!!g.u(d)||d;if(g.p(c)===a){var u=this.quarter()-1;return m?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return f.bind(this)(c,d)}}})})(Ni);var uf=Ni.exports;const hf=lr(uf);Ae.extend(hf);const Go=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Uo},setup(e){const o=Se(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,w,k,E,R])=>{let _=null,C=null;if(w&&(_=Ae().subtract(k,E),C=Ae()),b&&(_=Ae(Te(b))),x&&(C=Ae(Te(x))),R){const{type:S,value:A,mode:D}=R;switch(S){case"add":_=_&&_.add(A,D),C=C&&C.add(A,D);break;case"minus":_=_&&_.subtract(A,D),C=C&&C.subtract(A,D)}}a.value=[_,C]},{immediate:!0});let r=n.unref(a)[0],i=n.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)},f=b=>{let x=!1,{limitStartTime:w,limitEndTime:k}=e;const E={startTime:`${r||""}`,endTime:`${i||""}`};if(w=Te(w,{codeData:E}),k=Te(k,{codeData:E}),w&&k?x=!(Ae(w)<b&&b<Ae(k)):w?x=Ae(w)>b:k&&(x=Ae(k)<b),!e.isAllowSpanYear&&s){let R=null;if(s==="start"?R=r:s==="end"&&(R=i),R){const _=R.startOf("year"),C=R.endOf("year");x=!(_<=b&&b<C)}}return x},{getGlobalModel:c,setGlobalModel:d}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=ke(e);let y=!1;const h=u("dateChange",()=>{}),v=b=>{const x=n.unref(a),w=x&&x[0]&&x[1];b===!1&&y===!0&&w&&(h(),y=!1),b||(s="")},T=()=>{y=!0};return Re(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:w}=x;if(w)switch(n.unref(w)){case"month":a.value=[Ae().startOf("month"),Ae().endOf("month")];break;case"quarter":a.value=[Ae().startOf("quarter"),Ae().endOf("quarter")];break;case"year":a.value=[Ae().startOf("year"),Ae().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:t,locale:Oa,dateChange:h,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:T}}}),Mi=()=>{n.useCssVars(e=>({"70b68802":e.optionFontSize}))},zi=Go.setup;Go.setup=zi?(e,o)=>(Mi(),zi(e,o)):Mi;const Vu="",ju="";function gf(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Fi=me(he(Go,[["render",gf],["__scopeId","data-v-95653c92"]])),Wo={...Ce,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},$o=pe(Wo),Pi=["click"],mf=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...$o},setup(e){const o=Se(e),a=ke(e)("click",()=>{const f=n.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=n.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=n.computed(()=>Te(e.text)),s=n.computed(()=>Te(e.href)||null),l=n.computed(()=>{const f=e.target;if(!(f==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),Gu="";function yf(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const qi=me(he(mf,[["render",yf]])),Zo={...Ce,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Yo=pe(Zo),Hi=["checkboxChange"],xf=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...Yo},setup(e,{expose:o}){const t=Se(e),a=n.ref([]),r=n.ref([]),i=v=>{const T=e.value;let p=[];v.forEach(b=>{b.checked&&p.push(b.value)}),typeof T=="string"&&T!==""?p=p.concat(T.split(",")):Array.isArray(T)&&(p=p.concat(T)),a.value=v,r.value=p};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const v=await s(),T=((b=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(T)},{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,T)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),m=nt(e),u=async()=>{var v;try{const T=await m(),{data:p}=(T==null?void 0:T.data)||{};if(p){const x=(((v=T==null?void 0:T.data)==null?void 0:v.data)??[]).map(w=>({label:w.label,value:w.value}));i(x)}else i([])}catch(T){console.error(T)}},y=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:h}=n.inject(Fe,{setRequest:({id:v,sortNum:T,requestFn:p})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),$u="";function pf(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Vi=me(he(xf,[["render",pf]])),Ko={...Ce,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Qo=pe(Ko),ji=["selectChange","refreshData"],bf=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Qo},setup(e,{expose:o}){const t=Se(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var N;const{mode:B}=e;return(N=n.unref(i))!=null&&N.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:f,setGlobalModel:c,getRecordValueByKeyName:d}=n.inject(we,{getGlobalModel:B=>{},setGlobalModel:(B,N)=>{},getRecordValueByKeyName:B=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:B,selectFirstOption:N,value:L}=e,M=d(L);B==="multiple"||B==="tags"||B==="combobox"?M?s.value=M.split(","):N&&(s.value=[n.unref(i)[0]]):M?s.value=M:N&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(B,N)=>{const L=g.label,M=g.value;let P;const j=N[L],G=N[M];return j!=null?P=j:G!=null&&(P=G),(P==null?void 0:P.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},u=B=>{const{label:N,value:L,options:M}=e.dataFieldNames;if(M&&Array.isArray(B))if(B.some(P=>M in P)){const P={},j=[];B.forEach(G=>{P[G[M]]||(P[G[M]]=[]),P[G[M]].push({[N]:G[N],[L]:G[L]})});for(const G in P)j.push({[N]:G,[M]:P[G]});return j}else return B;else if(!M)return B},y=n.ref(!1),h=async()=>{var B,N;if(e.dataType==="request"){y.value=!0;try{const L=await r();if(i.value=u(((N=(B=L==null?void 0:L.data)==null?void 0:B.data)==null?void 0:N.rows)||[]),e.selectFirstOption){let M=n.unref(i)[0];if(g.options){const P=M[g.options];P&&P.length&&(M=P[0])}s.value=M[g.value]}}catch(L){console.error(L)}finally{y.value=!1}}},{setLoadedData:v,loadedData:T}=n.inject(yt,{setLoadedData:(B,N)=>{},loadedData:{}}),p=n.computed(()=>{let B=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const N=g.label,L=g.value;if(e.mode==="multiple")B=n.unref(i).filter(M=>n.unref(s).includes(M[L])).map(M=>M[N]);else{const M=n.unref(i).find(P=>n.unref(s)===P[L]);M&&(B=M[N])}}return B}),b=n.ref([]),x=n.computed(()=>{const B={};if(e.mode!=="multiple"){const N=n.unref(b).find(L=>L.value===n.unref(s));N&&(B.itemCodes=N.item_codes)}return B});c(e.id,{type:e.type,value:p,...n.unref(x)});const k=ke(e)("selectChange",()=>{const B=e.id,N=f(B);c(B,{...N,...n.unref(x),RECORD:p})}),E=(B=[])=>{if(i.value=u(B),e.selectFirstOption){let N=n.unref(i)[0];if(g.options){const L=N[g.options];L&&L.length&&(N=L[0])}s.value=N[g.value]}},R=nt(e),_=async()=>{var B;try{y.value=!0;const N=await R(),{data:L}=(N==null?void 0:N.data)||{},M=g.label,P=g.value;if(L){const j=((B=N==null?void 0:N.data)==null?void 0:B.data)??[];b.value=j;const G=j.map(O=>({[M]:O.label,[P]:O.value})),{id:F}=e,q=f(F);c(F,{...q,...n.unref(x)}),v(F,!0),E(G)}else E([])}catch(N){console.error(N)}finally{y.value=!1}},C=n.computed(()=>{var B,N;return(N=(B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)==null?void 0:N.find(L=>L.conditionKey==="parentCode")}),S=n.ref(!1);n.watch(T,B=>{!n.unref(S)&&n.unref(C)&&B[n.unref(C).id]&&(S.value=!0,A())},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":{if(n.unref(C)){if(n.unref(T)[n.unref(C).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",_()}}else _();break}case"request":h();break}};Re(e,{selectChange:k,refreshData:A});const{setRequest:D}=n.inject(Fe,{setRequest:({id:B,sortNum:N,requestFn:L})=>{}});return typeof D=="function"&&D({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{style:t,getPopupContainer:a,myValue:s,selectChange:k,options:i,filterOption:m,loading:y,resultValue:l}}}),Yu="",Ku="";function vf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:f.value,label:f.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ui=me(he(bf,[["render",vf],["__scopeId","data-v-e5517626"]])),Jo={...Ce,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Xo=pe(Jo),Gi=["selectChange","refreshData"],Sf={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...Xo},setup(e){const o=Se(e),t=n.ref(e.data),a=(u,y)=>{const h=e.dataFieldNames,v=h.label,T=h.value;let p;const b=y[v],x=y[T];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:y,selectFirstOption:h}=e;u?y?r.value=y.split(","):h&&(r.value=[n.unref(t)[0]]):y?r.value=y:h&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=He(e),l=async()=>{var u,y;if(e.dataType==="request"){i.value=!0;try{const h=await s();t.value=((y=(u=h==null?void 0:h.data)==null?void 0:u.data)==null?void 0:y.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(h){console.error(h)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("selectChange",()=>{const u=e.id,y=f(u);c(u,{...y,RECORD:r})});Re(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(Fe,{setRequest:({id:u,sortNum:y,requestFn:h})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},Ju="",Xu="";function Cf(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Wi=me(he(Sf,[["render",Cf],["__scopeId","data-v-37236421"]])),ea={...Ce,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ta=pe(ea),$i=["checkboxChange","click"],wf=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ta},setup(e,{expose:o}){const t=Se(e),a=n.ref([]),r=n.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]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=He(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:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const d=ke(e),g=d("checkboxChange",()=>{const b=f(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,d("click",()=>{const x=f(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{g()});const u=nt(e),y=async()=>{var b;try{const x=await u(),{data:w}=(x==null?void 0:x.data)||{};if(w){const E=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(R=>({label:R.label,value:R.value}));i(E)}else i([])}catch(x){console.error(x)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:v}=n.inject(Fe,{setRequest:({id:b,sortNum:x,requestFn:w})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort});const T=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:h}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:m,useImagePath:St,tabChange:T}}}),t1="",n1="",Af=["onClick"];function kf(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),f=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:d,onClick:n.withModifiers(g=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Af))),128))],4)):(n.openBlock(),n.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:d=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Zi=me(he(wf,[["render",kf],["__scopeId","data-v-baa84768"]])),na={...Ce,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie"},oa=pe(na),Yi=["click","refreshData","resetRecord"],Vt=async e=>{var f;const o=await st.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},aa={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0},ra=pe(aa),Ki=["showModal","hideModal"];function Qi(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const g in t){const m=o.find(u=>u.id===g);if(m){gn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const u in t[g])if(t[g][u])for(const y of t[g][u]){const h=o.find(v=>v.id===y);h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(m.sourceLeft||m.left)+"px",h.top=parseFloat(h.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!gn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const u=o.filter(y=>m.includes(y.id));if(u!=null&&u.length){const y=Bf(u);if(y){l.push({...y,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const h of u)h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(y.left)+"px",h.top=parseFloat(h.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>f.includes(g.type)&&!gn(g,"parentId")),d=[];for(const g of c)if(g){const m=g.id+"_vir";d.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}d!=null&&d.length&&o.unshift(...d);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const u=o.find(y=>y.id===g.parentId);if((u==null?void 0:u.parentId)===""){const y=u.sourceWidth||parseFloat(u.width),h=m/y;g.scale=h,g.top=parseFloat(g.top)*h-parseFloat(g.height)*(1-h)/2+"px",g.left=parseFloat(g.left)*h-parseFloat(g.width)*(1-h)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Tf(o)}return o}function Tf(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=qe.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Bf(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const Ef=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Df(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const If=me(he(Ef,[["render",Df]])),_f=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:Wl,Render:If},props:{...ra},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const K=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[K]}}),d=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,u=e.originalHeight,y=n.ref("80%"),h=n.ref(0),v=n.ref(),T=n.ref(0),p=n.ref({}),b=Se(e),x=n.ref({}),w=n.ref(!1),k=n.ref();let E;const R=()=>{v.value=parseFloat(d)/parseFloat(m);const K=parseFloat(g)/parseFloat(u),J=document.body.offsetWidth,Q=document.body.offsetHeight;h.value=J*n.unref(v),T.value=Q*K,y.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(h)}px`,height:`${n.unref(T)}px`},x.value={...n.unref(b),backgroundImage:St(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(h)/parseFloat(d)},${n.unref(T)/parseFloat(g)})`,width:d,height:g}},_=qe.debounce(()=>{R()},100),C=()=>{const K=window.MutationObserver;E=new K(_),E.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{E&&(E.disconnect(),E.takeRecords(),E=null)},A=n.ref(!1),{touchRequest:D}=n.inject(Fe,{touchRequest:()=>{}}),B=n.ref(""),N=()=>{var Q;console.log("interactiveData",l);const{title:K}=e,J=(Q=n.unref(l))==null?void 0:Q.RECORD;return J?Te(K,{textData:J},{useNewline:!1,useSpace:!1}):K},L=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=N(),A.value=!0},M=()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),A.value=!1},P=()=>{M()},j=()=>{M(),s()},{setModalModel:G,pushUseModalIds:F,popUseModalIds:q}=n.inject(or,{pushUseModalIds:K=>{},popUseModalIds:()=>{},setModalModel:(K,J)=>{}}),O=n.computed(()=>{if(a){const K=qe.cloneDeep(e.componentList),J=r(),Q=i();return Qi({componentList:K,containerMap:J,combinationMap:Q})}else return e.componentList}),I=()=>{const K=e.id;let J=[];const Q=e.componentList;Array.isArray(Q)&&(J=Q.map(oe=>oe.id),G(K,[...new Set(J)]))};n.watch(()=>A.value,async K=>{K?(w.value=!1,F(e.id),I(),await n.nextTick(()=>{R(),window.addEventListener("resize",_),C(),w.value=!0}),D()):(q(),window.removeEventListener("resize",_),S())});const z=n.computed(()=>n.unref(v)>=1),U=n.computed(()=>e.fullModal),X=n.computed(()=>{let K="ecan-modal";return n.unref(z)&&(K+=" ecan-full-width-modal"),n.unref(U)&&(K+=" ecan-full-modal"),K});return Re(e,{showModal:L,hideModal:M}),{modalRef:k,containStyle:p,contentStyle:x,getContainer:f,modalStyle:c,modalWith:y,isFullModal:U,style:b,visible:A,showModal:L,onOk:P,onCancel:j,isFullWidth:z,wrapClassName:X,ready:w,usedComponentList:O,isMobile:a,readyIds:t,hasOwn:gn,onComponentReady:K=>{t.value.push(K)},formatTitle:B}}}),r1="",i1="";function Rf(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),f=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+d},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Ct=me(he(_f,[["render",Rf],["__scopeId","data-v-8cf8fa7d"]]));We.use([kt.CanvasRenderer,dt.PieChart,ye.TitleComponent,ye.ToolboxComponent,ye.TooltipComponent,ye.LegendComponent]);const Of=n.defineComponent({name:"EcanPie",props:{...oa},components:{Spin:_t,Echarts:gt,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(!1),a=Se(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:S=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const A=e.isUseLabelColors,D=e.colors;S=S.map((B,N)=>({label:A?{color:D[N]}:{},...B}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var A;t.value=!0,(A=i.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:A=>{const{marker:D,seriesName:B,name:N,value:L,percent:M,data:P}=A||{};return Te(e.tooltipFormatter,{textData:{marker:D,name:N,value:L,percent:M,a:B,b:N,c:L,d:M,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:S,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?rt:e.labelFontSize,position:e.labelPosition,formatter:cc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:S=>{const{data:A}=r.value[0]||{};let D;if(A){const B=A.find(N=>N.name===S);B&&(D=B.value)}return Te(e.legendFormatter,{textData:{name:S,value:D}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:g}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,A)=>{}}),{pageMode:m}=n.inject(ze,{pageMode:"normal"}),u=(S=[],A)=>{const{dataset:D}=Rt(S,A);r.value=D},y=(S=[],A)=>{const D=Rt(S,A);r.value=D.dataset};n.watch(()=>e.data,S=>{(e.dataType==="static"||n.unref(m)==="design")&&u(S)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const h=n.ref(!1),v=He(e),T=async()=>{var S,A;if(e.dataType==="request")try{h.value=!0;const D=await v();u((A=(S=D==null?void 0:D.data)==null?void 0:S.data)==null?void 0:A.rows,e.valueTypeDataFieldNames)}catch(D){console.error(D)}finally{h.value=!1}},b=ke(e)("click",S=>{const A=d(e.id);g(e.id,{...A,type:e.type,RECORD:S==null?void 0:S.data})}),x=nt(e),w=async()=>{var S;try{h.value=!0;const A=await x(),{data:D}=(A==null?void 0:A.data)||{};if(D){const{columns:B=[],rows:N=[]}=((S=A==null?void 0:A.data)==null?void 0:S.data)??{};let L=[];if(B.length>0){const M=B[0],P=B[1];L=N.map(j=>({name:j[M],value:isNaN(j[P])?0:j[P]||0}))}y(L)}}catch(A){console.error(A)}finally{h.value=!1}},{loadedData:k}=n.inject(yt,{loadedData:{}}),E=n.ref(!1);n.watch(k,S=>{if(e.dataType==="indicator"){const A=Yt(e.graphicConfig);A!=null&&A.length&&(!n.unref(E)&&et(e.graphicConfig,S)?(E.value=!0,R()):et(e.graphicConfig,S)||(E.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(k))&&w();break;case"request":T();break}};Re(e,{resetRecord:()=>{const S=e.id,A=d(S);g(S,{...A,RECORD:""})},refreshData:R,click:b}),o({refreshData:R});const{setRequest:C}=n.inject(Fe,{setRequest:S=>{}});return typeof C=="function"&&C({id:e.id,requestFn:R,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:h,ecanModal:i}}}),s1="";function Lf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Ji=me(he(Of,[["render",Lf]])),ia={...Ce,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},la=pe(ia),Xi=["click","refreshData","resetRecord"];We.use([kt.CanvasRenderer,dt.LineChart,ye.ToolboxComponent,ye.TitleComponent,ye.LegendComponent,ye.MarkLineComponent]);const Nf=n.defineComponent({name:"EcanLine",props:{...la},components:{Spin:_t,Echarts:gt,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Se(e),i=n.ref([]),s=n.ref([]),l=n.ref(),f=n.computed(()=>a.value?rt:12),c=n.ref({});let d;const g=n.ref([]),m=n.computed(()=>{const N=e.xAxisLabelFormatter,L=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var M;a.value=!0,(M=l.value)==null||M.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:M=>{var F;const P=M.length;let j="",G=e.tooltipFormatter;d=(F=M[0])==null?void 0:F.data,G===""&&(G="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:O,seriesName:I,name:z,value:U,data:X}=M[q]||{};if(q===0){let $=z;typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&($=(+z).toString()),j+=`${tt(N,$)}<br/>`}j+=Te(G,{textData:{marker:O,name:z,value:U,a:I,b:z,c:U||0,...X}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(M=>{let P={};return M&&typeof M=="object"?P={...M}:P={value:M},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),tt(N,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(M){return tt(L,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map(M=>({name:M.name,icon:e.legendType}))},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:h}=n.inject(we,{getGlobalModel:N=>{},setGlobalModel:(N,L)=>{}}),{pageMode:v}=n.inject(ze,{pageMode:"normal"}),T=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(N=[],L=!1)=>{let M;if(e.dataFieldConfigType==="key"){const F=L?e.keyTypeDataFieldNames:null;M=vt(N,F)}else if(e.dataFieldConfigType==="value"){const F=L?e.valueTypeDataFieldNames:null;M=Rt(N,F)}s.value=M.dimensions,g.value=M.dataset;const P=M.dataset,j=[],G=P.length;for(let F=0;F<G;F++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),j.push({type:"line",...P[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,...q},...n.unref(T)})}i.value=j},b=(N=[],L,M=!1)=>{const j=vt(N,M?L:null,!0);s.value=j.dimensions,g.value=j.dataset;const G=j.dataset,F=[],q=G.length;for(let O=0;O<q;O++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...G[O],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[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(T)})}i.value=F};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType],([N])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(N)},{immediate:!0,deep:!0});const x=n.ref(!1),w=He(e),k=async()=>{var N,L;if(e.dataType==="request")try{x.value=!0;const M=await w();p((L=(N=M==null?void 0:M.data)==null?void 0:N.data)==null?void 0:L.rows,!0)}catch(M){console.error(M)}finally{x.value=!1}},R=ke(e)("click",N=>{const L=y(e.id);h(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:N.data})}),_=N=>{t.value.chart.containPixel("grid",[N.offsetX,N.offsetY])&&R()};e.tooltipShow?c.value["zr:click"]=_:c.value.click=R;const C=nt(e),S=async()=>{var N;try{x.value=!0;const L=await C(),{columns:M=[],rows:P=[]}=((N=L==null?void 0:L.data)==null?void 0:N.data)??{};let j;M.length>0&&(j={name:M[0],types:M.slice(1).map(G=>({label:G,value:G}))}),b(P,j,!0)}catch(L){console.error(L)}finally{x.value=!1}},A=()=>{switch(e.dataType){case"indicator":S();break;case"request":k();break}};Re(e,{refreshData:A,resetRecord:()=>{const N=e.id,L=y(N);h(N,{...L,RECORD:""})},click:R});const{setRequest:B}=n.inject(Fe,{setRequest:N=>{}});return typeof B=="function"&&B({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:m,style:r,click:R,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),f1="";function Mf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const e0=me(he(Nf,[["render",Mf]])),sa={...Ce,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ca=pe(sa),t0=["refreshData","click","resetRecord"];We.use([kt.CanvasRenderer,dt.BarChart,ye.TitleComponent,ye.LegendComponent,ye.DatasetComponent,ye.ToolboxComponent,ye.MarkLineComponent]);const zf=n.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:_t,Echarts:gt,EcanModal:Ct,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Se(e),f=n.ref([]),c=n.ref(),d=n.ref({});let g;const m=n.computed(()=>a.value?rt:12),u=n.computed(()=>{const{gradientShow:O,gradientColors:I,gradientOffset:z,barBorderRadius:U}=e,X=n.unref(f),$=X.length,K=[];for(let J=0;J<$;J++){const Q={...X[J],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(Q.stack="stack"),Q.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:oe=>{let te="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:de,name:be,value:De,data:_e}=oe||{};return te+=Te(re,{textData:{name:be,value:De,a:de,b:be,c:De||0,..._e}},{useNewline:!0,useSpace:!0}),te}},Q.itemStyle={},O&&(Q.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[J]},{offset:z,color:I[J]},{offset:1,color:I[J]}]}}),U){const oe=U.split(",");if(oe!=null&&oe.length){const te=[];for(const re of oe){const de=parseFloat(re);isNaN(de)||te.push(de)}Q.itemStyle.borderRadius=te}}e.isShowMarkLine&&(Q.markLine={data:[{type:e.markLineType}]}),K.push(Q)}return K}),y=n.ref([]),h=n.ref(!1),v=n.computed(()=>{const O=e.yAxisLabelFormatter,I=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const z=t.value.chart.getOption(),{xAxis:U}=z||{};U&&U.length&&(s.value=U[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var z;a.value=!0,(z=c.value)==null||z.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:z=>{var K;const U=z.length;let X="",$=e.tooltipFormatter;g=(K=z[0])==null?void 0:K.data,$===""&&($="{marker} {a} {c}");for(let J=0;J<U;J++){const{marker:Q,seriesName:oe,name:te,value:re,data:de}=z[J]||{};if(J===0){let be=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(be=(+te).toString()),X+=`${tt(I,be)}<br/>`}X+=Te($,{textData:{marker:Q,name:te,value:re,a:oe,b:te,c:re||0,...de}},{useNewline:!0,useSpace:!0}),X+="<br/>"}return X},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(f).map((z,U)=>({name:z.name,itemStyle:{color:e.colors[U]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(w),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),tt(I,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(z){return tt(O,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(u)}}),{pageMode:T}=n.inject(ze,{pageMode:"normal"}),p=()=>{a.value=!1},b=(O=[],I=!1)=>{let z={};if(e.dataFieldConfigType==="key"){const U=I?e.keyTypeDataFieldNames:null;z=vt(O,U)}else if(e.dataFieldConfigType==="value"){const U=I?e.valueTypeDataFieldNames:null;z=Rt(O,U)}f.value=z.dataset,y.value=z.dimensions},x=(O=[],I,z=!1)=>{const X=vt(O,z?I:null,!0);f.value=X.dataset,y.value=X.dimensions},w=n.computed(()=>n.unref(y).map(O=>{let I={};return O&&typeof O=="object"?I={...O}:I={value:O},I}));n.watch(()=>[e.data,e.labelFormatter],([O])=>{(e.dataType==="static"||n.unref(T)==="design")&&b(O)},{immediate:!0,deep:!0});const k=He(e),E=async()=>{var O,I;try{h.value=!0;const z=await k();b((I=(O=z==null?void 0:z.data)==null?void 0:O.data)==null?void 0:I.rows,!0)}catch(z){console.error(z)}finally{h.value=!1}},R=nt(e),_=async()=>{var O;try{h.value=!0;const I=await R(),{columns:z=[],rows:U=[]}=((O=I==null?void 0:I.data)==null?void 0:O.data)??{};let X;z.length>0&&(X={name:z[0],types:z.slice(1).map($=>({label:$,value:$}))}),x(U,X,!0)}catch(I){console.error(I)}finally{h.value=!1}},{loadedData:C}=n.inject(yt,{loadedData:{}}),S=n.ref(!1);n.watch(C,O=>{if(e.dataType==="indicator"){const I=Yt(e.graphicConfig);I!=null&&I.length&&(!n.unref(S)&&et(e.graphicConfig,O)?(S.value=!0,A()):et(e.graphicConfig,O)||(S.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(C))&&_();break;case"request":E();break}},D=(O,I)=>!!n.unref(s)[I.value].value.includes(O),B=async()=>{r.value=!1;const O=t.value.chart.getOption();for(let I=0;I<7;I++)await N(O,I)},N=(O,I)=>new Promise(z=>{setTimeout(()=>{const{series:U,color:X,xAxis:$}=O,K=t.value.chart,{splitArea:J={}}=$[0]||{};U.forEach((Q,oe)=>{const te=Q.data;let re="";I%2?re=X[oe]+"a8":re=X[oe],te[i.value].itemStyle={color:re}}),I%2?(J.show=!0,J.areaStyle.color=n.unref(s).map((Q,oe)=>oe===i.value?"#ff003b26":"")):J.show=!1,K.setOption({series:U,xAxis:$}),z()},200)});o({refreshData:A});const L=ke(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(we,{getGlobalModel:O=>{},setGlobalModel:(O,I)=>{}}),j=L("click",O=>{const I=M(e.id);P(e.id,{...I,type:e.type,RECORD:e.tooltipShow?g:O.data})}),{setRequest:G}=n.inject(Fe,{setRequest:O=>{}});typeof G=="function"&&G({id:e.id,requestFn:A,sortNum:e.requestSort});const F=()=>{const O=e.id,I=M(O);P(O,{...I,RECORD:""})},q=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&j()};return e.tooltipShow?d.value["zr:click"]=q:d.value.click=j,Re(e,{refreshData:A,click:j,resetRecord:F}),{option:v,style:l,refreshData:A,click:j,loading:h,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:B,onFilterOption:D,locationVisible:r,locationValue:i,locationNames:s,eventObj:d}}}),u1="",h1="",Ff=e=>(n.pushScopeId("data-v-a6b45d1d"),e=e(),n.popScopeId(),e),Pf={class:"location-wrap"},qf=Ff(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Hf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),d=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Pf,[qf,n.createVNode(d,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const n0=me(he(zf,[["render",Hf],["__scopeId","data-v-a6b45d1d"]])),fa={...Ce,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},da=pe(fa),o0=["click","refreshData","resetRecord"];We.use([kt.CanvasRenderer,dt.ScatterChart,ye.ToolboxComponent,ye.TitleComponent,ye.TooltipComponent,ye.LegendComponent,ye.MarkLineComponent]);const Vf=n.defineComponent({name:"EcanScatter",props:{...da},components:{Spin:_t,Echarts:gt,EcanModal:Ct},setup(e){const o=n.ref(!1),t=Se(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?rt:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const w=e.xAxisLabelFormatter,k=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show: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 E;o.value=!0,(E=r.value)==null||E.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(E){return typeof E=="string"&&E[0]==="0"&&!isNaN(+E)&&(E=(+E).toString()),tt(w,E)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(E){return tt(k,E)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(E){var D;const{marker:R,seriesName:_}=E,C=((D=E==null?void 0:E.data)==null?void 0:D.record)??{},{name:S,value:A}=C;return Te(e.tooltipFormatter,{textData:{marker:R,seriesName:_,a:_,b:S,c:A,...C}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:w=>{},setGlobalModel:(w,k)=>{}}),{pageMode:d}=n.inject(ze,{pageMode:"normal"}),g=(w=[],k)=>{const{name:E="name",value:R="value"}=k||{};a.value=w.map(_=>({value:[_[E],_[R]],record:_}))};n.watch(()=>e.data,w=>{(e.dataType==="static"||n.unref(d)==="design")&&g(w)},{immediate:!0,deep:!0});const m=n.ref(!1),u=He(e),y=async()=>{var w,k;if(e.dataType==="request"){m.value=!0;try{const E=await u();g((k=(w=E==null?void 0:E.data)==null?void 0:w.data)==null?void 0:k.rows,e.dataFieldNames)}catch(E){console.error(E)}finally{m.value=!1}}},h=()=>{o.value=!1},T=ke(e)("click",w=>{const k=e.id,E=f(k);c(k,{...E,type:e.type,RECORD:w==null?void 0:w.data})});Re(e,{refreshData:()=>{y()},click:T,resetRecord:()=>{const w=e.id,k=f(w);c(w,{...k,RECORD:""})}});const{setRequest:x}=n.inject(Fe,{setRequest:w=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:T,loading:m,onClose:h,ecanModal:r}}}),m1="";function jf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const a0=me(he(Vf,[["render",jf]])),ua={...Ce,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=pe(ua),Uf=n.defineComponent({name:"EcanCustomGraph",props:{...ha},components:{Echarts:gt},setup(e){const o=Se(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:F0}}});function Gf(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const r0=me(he(Uf,[["render",Gf]])),ga={...Ce,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ma=pe(ga),i0=["refreshData","click","resetRecord"];We.use([kt.CanvasRenderer,dt.BarChart,dt.LineChart,ye.TitleComponent,ye.LegendComponent,ye.DatasetComponent,ye.ToolboxComponent,ye.MarkLineComponent]);const Wf=n.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:_t,Echarts:gt,EcanModal:Ct,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let f;const c=Se(e),d=n.ref([]),g=n.ref([]),m=n.ref(),u=n.ref([]),y=n.computed(()=>a.value?rt:12),h=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:z}=I||{};z&&z.length&&(s.value=z[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;a.value=!0,(I=m.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map((I,z)=>({name:I.name,itemStyle:{color:e.colors[z]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var K;const z=I.length;let U="",X=e.tooltipFormatter;f=(K=I[0])==null?void 0:K.data,X===""&&(X="{marker} {a} {c}");const $=e.seriesTypes;for(let J=0;J<z;J++){const Q=$[J],{tooltipFormatter:oe}=Q||{},{marker:te,seriesName:re,name:de,value:be,data:De}=I[J]||{};if(J===0){let _e=de;typeof de=="string"&&de[0]==="0"&&!isNaN(+de)&&(_e=(+de).toString()),U+=`${tt(e.xAxisLabelFormatter,_e)}<br/>`}U+=Te(oe||X,{textData:{marker:te,name:de,value:be,seriesName:re,a:re,b:de,c:be||0,...De}},{useNewline:!0,useSpace:!0}),U+="<br/>"}return U},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(I=>{let z={};return I&&typeof I=="object"?z={...I}:z={value:I},z}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),tt(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(w),series:n.unref(d)})),{pageMode:v}=n.inject(ze,{pageMode:"normal"}),T=()=>{a.value=!1},p=(I=[],z=!1)=>{let U;if(e.dataFieldConfigType==="key"){const $=z?e.keyTypeDataFieldNames:null;U=vt(I,$)}else if(e.dataFieldConfigType==="value"){const $=z?e.valueTypeDataFieldNames:null;U=Rt(I,$)}g.value=U.dimensions;const X=U.dataset;u.value=U.dataset,d.value=x(X)},b=(I=[],z,U=!1)=>{const $=vt(I,U?z:null,!0);g.value=$.dimensions;const K=$.dataset;u.value=$.dataset,d.value=x(K)};function x(I){const z=[],U=I.length,X=e.seriesTypes;for(let $=0;$<U;$++){const K=X[$],{type:J,axisIndex:Q}=K||{};let oe={type:J,yAxisIndex:Q,...I[$]};if(J==="line"){const te={};e.shadowColor&&(te.shadowColor=e.shadowColor,te.shadowBlur=e.shadowBlur,te.shadowOffsetY=e.shadowOffsetY,te.shadowOffsetX=e.shadowOffsetX),oe={...oe,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[$]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...te}}}if(J==="bar"){const{gradientShow:te,gradientColors:re,gradientOffset:de}=e,be={};if(e.barBorderRadius){const De=e.barBorderRadius.split(",");if(De!=null&&De.length){const _e=[];for(const Ye of De){const Ne=parseFloat(Ye);isNaN(Ne)||_e.push(Ne)}be.borderRadius=_e}}te&&(be.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:de,color:re[$]},{offset:1,color:re[$]}]}),oe={...oe,barWidth:e.barWidth,itemStyle:be}}e.isShowMarkLine&&(oe.markLine={data:[{type:e.markLineType}]}),z.push(oe)}return z}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType],([I])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(I)},{immediate:!0,deep:!0});const w=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(z=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(U){return tt(z.axisLabelFormatter,U)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),k=n.ref(!1),E=He(e),R=async()=>{var I,z;if(e.dataType==="request")try{k.value=!0;const U=await E();p((z=(I=U==null?void 0:U.data)==null?void 0:I.data)==null?void 0:z.rows,!0)}catch(U){console.error(U)}finally{k.value=!1}},_=nt(e),C=async()=>{var I;try{k.value=!0;const z=await _(),{columns:U=[],rows:X=[]}=((I=z==null?void 0:z.data)==null?void 0:I.data)??{};let $;U.length>0&&($={name:U[0],types:U.slice(1).map(K=>({label:K,value:K}))}),b(X,$,!0)}catch(z){console.error(z)}finally{k.value=!1}},{loadedData:S}=n.inject(yt,{loadedData:{}}),A=n.ref(!1);n.watch(S,I=>{if(e.dataType==="indicator"){const z=Yt(e.graphicConfig);z!=null&&z.length&&(!n.unref(A)&&et(e.graphicConfig,I)?(A.value=!0,D()):et(e.graphicConfig,I)||(A.value=!1))}},{deep:!0});const D=()=>{switch(e.dataType){case"indicator":et(e.graphicConfig,n.unref(S))&&C();break;case"request":R();break}},B=(I,z)=>!!n.unref(s)[z.value].value.includes(I),N=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let z=0;z<7;z++)await L(I,z)},L=(I,z)=>new Promise(U=>{setTimeout(()=>{const{series:X,color:$,xAxis:K}=I,J=t.value.chart,{splitArea:Q={}}=K[0]||{};X.forEach((oe,te)=>{const re=oe.data;let de="";z%2?de=$[te]+"a8":de=$[te],re[i.value].itemStyle={color:de}}),z%2?(Q.show=!0,Q.areaStyle.color=n.unref(s).map((oe,te)=>te===i.value?"#ff003b26":"")):Q.show=!1,J.setOption({series:X,xAxis:K}),U()},200)});o({refreshData:D});const M=ke(e),{getGlobalModel:P,setGlobalModel:j}=n.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,z)=>{}}),G=M("click",I=>{const z=P(e.id);j(e.id,{...z,type:e.type,RECORD:e.tooltipShow?f:I==null?void 0:I.data})}),F=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&G()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=G;const{setRequest:q}=n.inject(Fe,{setRequest:I=>{}});return typeof q=="function"&&q({id:e.id,requestFn:D,sortNum:e.requestSort}),Re(e,{resetRecord:()=>{const I=e.id,z=P(I);j(I,{...z,RECORD:""})},refreshData:D,click:G}),{style:c,option:h,click:G,loading:k,onClose:T,ecanModal:m,echartRef:t,handleLocationOk:N,onFilterOption:B,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),p1="",b1="",$f=e=>(n.pushScopeId("data-v-4fe6d0c3"),e=e(),n.popScopeId(),e),Zf={class:"location-wrap"},Yf=$f(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Kf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),d=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Zf,[Yf,n.createVNode(d,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const l0=me(he(Wf,[["render",Kf],["__scopeId","data-v-4fe6d0c3"]])),ya={...Ce,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:""},xa=pe(ya),s0=["refreshData","click","resetRecord"];We.use([kt.CanvasRenderer,dt.RadarChart,ye.ToolboxComponent,ye.TitleComponent,ye.LegendComponent]);const Qf=n.defineComponent({name:"EcanRadar",props:{...xa},components:{Spin:_t,Echarts:gt,EcanModal:Ct},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Se(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?rt:12),f=n.ref({});let c;const d=n.ref([]),g=n.ref(e.valueTypeDataFieldNames.name),m=n.computed(()=>{const L=n.unref(d),M=L.length,P=[];for(let j=0;j<M;j++){const{name:G,data:F=[]}=L[j],q=[{name:G,value:F.map(I=>I.value)}],O={type:"radar",name:G,data:q,areaStyle:{color:e.colors[j],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow}};P.push(O)}return P}),u=n.computed(()=>{var G;const L=[],M=[],P=n.unref(d),j=P.length;for(let F=0;F<j;F++){const{data:q=[]}=P[F];for(let O=0;O<q.length;O++)M.push(q[O].value)}if((G=i.value)!=null&&G.length){const F=M!=null&&M.length?Math.max(...M)*1.2:0;for(const q of i.value)L.push({name:q,max:F})}return L}),y=n.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Vt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;a.value=!0,(L=s.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:L=>{var j;let M="",P=e.tooltipFormatter;c=(j=L[0])==null?void 0:j.data,P===""&&(P="{marker} {a} {c}");for(let G=0;G<n.unref(u).length;G++){const F=n.unref(u)[G],{marker:q,seriesName:O,value:I}=L||{};G===0&&O&&(M+=`${O}<br/>`),M+=Te(P,{textData:{marker:q,name:F.name,value:I[G],a:F.name,b:F.name,c:I[G]||0,type:O}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(u),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(L=>({name:L.name,icon:e.legendType}))},series:n.unref(m)})),h=()=>{a.value=!1},{getGlobalModel:v,setGlobalModel:T}=n.inject(we,{getGlobalModel:L=>{},setGlobalModel:(L,M)=>{}}),{pageMode:p}=n.inject(ze,{pageMode:"normal"}),b=(L=[],M=!1)=>{let P;if(e.dataFieldConfigType==="key"){const j=M?e.keyTypeDataFieldNames:null;P=vt(L,j)}else if(e.dataFieldConfigType==="value"){const j=M?e.valueTypeDataFieldNames:null;P=Rt(L,j)}i.value=P.dimensions,d.value=P.dataset},x=(L=[],M,P=!1)=>{const G=vt(L,P?M:null,!0);i.value=G.dimensions,d.value=G.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([L])=>{(e.dataType==="static"||n.unref(p)==="design")&&b(L)},{immediate:!0,deep:!0});const w=n.ref(!1),k=He(e),E=async()=>{var L,M;if(e.dataType==="request")try{w.value=!0;const P=await k();b((M=(L=P==null?void 0:P.data)==null?void 0:L.data)==null?void 0:M.rows,!0)}catch(P){console.error(P)}finally{w.value=!1}},_=ke(e)("click",L=>{const M=v(e.id);T(e.id,{...M,type:e.type,RECORD:e.tooltipShow?c:L.data})}),C=L=>{t.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&_()};e.tooltipShow?f.value["zr:click"]=C:f.value.click=_;const S=nt(e),A=async()=>{var L;try{w.value=!0;const M=await S(),{columns:P=[],rows:j=[]}=((L=M==null?void 0:M.data)==null?void 0:L.data)??{};let G;P.length>0&&(g.value=P[0],G={name:P[0],types:P.slice(1).map(F=>({label:F,value:F}))}),x(j,G,!0)}catch(M){console.error(M)}finally{w.value=!1}},D=()=>{switch(e.dataType){case"indicator":A();break;case"request":E();break}};Re(e,{refreshData:D,resetRecord:()=>{const L=e.id,M=v(L);T(L,{...M,RECORD:""})},click:_});const{setRequest:N}=n.inject(Fe,{setRequest:L=>{}});return typeof N=="function"&&N({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{option:y,style:r,click:_,loading:w,onClose:h,ecanModal:s,eventObj:f,echartRef:t}}}),S1="";function Jf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const c0=me(he(Qf,[["render",Jf]])),Xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",ed="data:image/png;base64,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",td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",nd="data:image/png;base64,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",pa={...Ce,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},ba=pe(pa),f0=["click"],od=n.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const o=Se(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:v,gradientOffset:T,gradientAngle:p,backgroundColor:b}=e;if(h){let x=v;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${T*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(T=>T.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:r}=n.inject(ze,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Xf,"../../assets/border-title-decoration-left2.png":ed})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":td,"../../assets/border-title-decoration-right2.png":nd})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,h=[],v={};if(y){const T=y.split(",");for(const p of T)(+p||+p==0)&&h.push(+p+"px")}return h!=null&&h.length&&(v.borderRadius=h.join(" ")),v}),g=ke(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,y=>{m.value=y},{immediate:!0,deep:!0}),Re(e,{click:g});const{setGlobalModel:u}=n.inject(we,{setGlobalModel:(y,h)=>{}});return u(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),w1="",wt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),ad=["id"],rd=wt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),id=wt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),ld=wt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),sd=wt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),cd={class:"title-item"},fd=["src"],dd={class:"title"},ud=["src"],hd=wt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),gd=wt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),md=wt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),yd=wt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),xd={key:2,class:"left-title"},pd={class:"title"};function bd(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[rd,id,ld,sd],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",cd,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,fd),n.createElementVNode("div",dd,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,ud)])],2),hd,gd,md,yd],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",xd,[n.createElementVNode("div",pd,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,ad)}const d0=me(he(od,[["render",bd],["__scopeId","data-v-8dd53b8f"]])),va={...Ce,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},Sa=pe(va),u0=["tabChange"],vd=n.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:se.Select,ASelectOption:se.SelectOption},setup(e){const o=Se(e),t=n.ref(0);n.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:a}=n.inject(ze,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const y=n.unref(t)+1;y<=u?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const f=u=>t.value===u,c=ke(e),{setGlobalModel:d}=n.inject(we,{setGlobalModel:(u,y)=>{}});d(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject($t,{emitRefreshPage:()=>{}}),m=c("tabChange",(u,y)=>{y!==n.unref(t)&&(l.value=u,t.value=y,g())});return Re(e,{tabChange:m}),{style:o,activeKey:t,isActive:f,tabChange:m,myData:s,useImagePath:St}}}),k1="",Sd=["id"],Cd=["onClick"];function wd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(f,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:c,onClick:n.withModifiers(d=>e.tabChange(f,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(f.title),5)],12,Cd))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:d=>e.tabChange(f,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Sd)}const h0=me(he(vd,[["render",wd],["__scopeId","data-v-fbab260a"]])),Ca={...Ce,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},wa=pe(Ca),g0=["click"],Aa=n.defineComponent({name:"EcanImage",props:{...wa},setup(e){const o=Se(e),t=n.computed(()=>St(e.imgUrl)),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=ke(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",d=di(n.unref(a),c),g=e.href;let m=g||d;m=Te(m);const u=e.target;u&&(u!=="event"?window.open(m,"_"+u):window.parent.postMessage({type:"openPage",url:g},"*"))});return Re(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),m0=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},y0=Aa.setup;Aa.setup=y0?(e,o)=>(m0(),y0(e,o)):m0;const B1="",Ad=["src"];function kd(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Ad)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const x0=me(he(Aa,[["render",kd],["__scopeId","data-v-47ea6e7c"]])),ka={...Ce,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ta=pe(ka),Td=n.defineComponent({name:"EcanIframe",props:{...Ta},setup(e){const o=Se(e),{contextRequestUrl:t}=n.inject(ze,{contextRequestUrl:""}),a=n.computed(()=>{let r=Te(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${os||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),D1="",Bd=["src"];function Ed(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Bd)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const p0=me(he(Td,[["render",Ed],["__scopeId","data-v-19bc100c"]])),Ba={...Ce,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa"},Ea=pe(Ba),b0=["click","refreshData","resetRecord","exportTableData"],Dd="data:image/png;base64,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",Id="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==",_d="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==",Da=n.defineComponent({name:"EcanTable",components:{Skeleton:tn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ea},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=qe.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=n.ref(),i=n.ref(!1),s=Se(e),l=n.ref([]),f=n.computed(()=>e.scrollX),c=n.ref(0),d=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};n.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const Y=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ae=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ne=0;if(ae&&(Z-=(ae==null?void 0:ae.clientHeight)||0),ie&&e.isSummaryFixed&&(ne=(ie==null?void 0:ie.clientHeight)||0,Z-=ne),e.paginationShow){let ee=0;ee=d(),ee&&(Z-=ee)}(Y==null?void 0:Y.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ge=(ee==null?void 0:ee.clientHeight)||0;ne!==ge&&n.unref(c)&&(c.value=Z+ne-ge)}})})});const g=n.ref([]),m=n.ref([]),u=n.ref([]),y=n.ref([]),h=n.ref(0),v=n.ref(1),T=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Z,Y;if(Array.isArray(V)&&V.length>0){let ae=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:ne=[]}}=e;V.forEach((ee,ge)=>{if(n.unref(a)[ge])for(const Le in n.unref(a)[ge])["dataIndex","title"].includes(Le)||(ee[Le]=n.unref(a)[ge][Le]);const ve=ne.find(Le=>Le.label===ee.title),{showLabel:xe=""}=ve||{};xe&&(ee.title=xe)})}for(let ne=ae-1;ne>=0;ne--)(Y=V[ne])!=null&&Y.isHidden&&V.splice(ne,1);ae=V.length;for(let ne=0;ne<ae;ne++){const ee=V[ne];ne<ie?ee.fixed="left":ee.fixed=!1;const{cellAlign:ge="center",cellColor:ve,dataIndex:xe,title:Le,tableFilter:Ke,headerCellAlign:ft,headerCellColor:yn}=ee;Ke&&(p.push(xe),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Et,Kt)=>Kt[xe].toString().toLowerCase().includes(Et.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ft||"center",color:yn||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Et,Kt)=>({style:{textAlign:ge,color:ve||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(U)===Kt&&e.clickHighlight},onClick:G("click",()=>{const xn=e.id,pn=F(xn);Et={dataIndex:xe,title:Le,...Et},q(xn,{...pn,type:e.type,RECORD:Et})})}),Array.isArray(ee.children)&&b(ee.children)}}},x=(V=[])=>{var Y;let Z=qe.cloneDeep(V);return(Y=n.unref(y))!=null&&Y.length&&(Z=qe.cloneDeep(n.unref(y))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(T,()=>{v.value=1,J(!1)}),n.watch(r,V=>{i.value=!!V}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{g.value=x(qe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Z])=>{Z==="static"&&(m.value=V)},{immediate:!0});const w=n.ref({}),k=V=>{if(Array.isArray(V)){const Z=V.length,Y=p,ae=Y.length,ie={};for(let ee=0;ee<Z;ee++){const ge=V[ee];for(let ve=0;ve<ae;ve++){const xe=Y[ve];if(ie[xe])ie[xe].add(ge[xe]);else{const Le=new Set;Le.add(ge[xe]),ie[xe]=Le}}}const ne={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const ge=ie[ee],ve=Array.from(ge);ne[ee]=ve.map(xe=>({label:xe,value:xe}))}w.value=ne}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const V=n.unref(g),Z=n.unref(m);if(k(Z),e.isReverse){const{columns:Y,dataSource:ae}=E(qe.cloneDeep(V),qe.cloneDeep(Z));u.value=Y,l.value=ae}else u.value=V,l.value=Z},{immediate:!0});const E=(V,Z)=>{const Y=V[0],ae=[{title:Y.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<Z.length;ne++){const ee=Z[ne],ge="col"+(ne+1);ae.push({title:ee[Y.dataIndex],dataIndex:ge,key:ge,align:"center"})}const ie=[];for(let ne=1;ne<V.length;ne++){const ee=V[ne],ge={col0:ee.title};for(let ve=0;ve<Z.length;ve++){const xe=Z[ve];ge[`col${ve+1}`]=xe[ee.dataIndex]}ie.push(ge)}return{columns:ae,dataSource:ie}},R=n.ref(""),_=He(e),C=async(V=!0,Z={})=>{var Y;try{V&&(t.value=!0),n.unref(R)&&(Z.orderCondition=n.unref(R)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(T)||"10",layer:"1",...Z});const ae=await _(Z),{rows:ie=[],total:ne=0}=((Y=ae==null?void 0:ae.data)==null?void 0:Y.data)||{};if(h.value=ne,Array.isArray(ie)&&(m.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,ge=ee.find(ve=>ve.key==="dataSqlId");if((ge==null?void 0:ge.value)==="xt_jxzebg"){const ve=ie.filter(xe=>!xe.绩效总额).map(xe=>xe.ORG_NAME);ve!=null&&ve.length&&n.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${ve.join("、")}绩效数据为空`,duration:3})})}}}catch(ae){console.error(ae)}finally{t.value=!1}},S=({current:V},Z,Y)=>{if(v.value=V,Y&&Object.keys(Y).length>0){const{field:ae,order:ie}=Y,ee={ascend:"asc",descend:"desc"}[ie];ae!=null&&ee!=null&&(R.value=ae+" "+ee)}J(!1)},A=n.computed(()=>{const V=e.simple,Z=[e.paginationPosition],Y={};return e.isShowTotal&&(Y.showTotal=ae=>`共 ${ae} 条数据`),e.paginationShow&&{simple:V,position:Z,total:n.unref(h),current:n.unref(v),pageSize:n.unref(T)||"10",showSizeChanger:!1,size:"large",...Y}}),D=V=>+V==1?"是":+V==0?"否":V,B=(V,Z)=>{const{format:Y,retentiondigit:ae,customFormatter:ie}=Z;if(Y==null||Y==="")return V;const ne={money:Ao,percentage:hn,contrast:hn,boolean:D,decimals:dc,custom:fi};return ne[Y]?Y==="decimals"?ne[Y](V,ae)||"":Y==="custom"?ne[Y](V,ie)||"":ne[Y](V)||"":""},N=V=>V==="contrast"?"upDown":"",L=V=>{const{text:Z,format:Y,declineColor:ae="#39cf93",increaseColor:ie="#ff512e"}=V;if(Y==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?ne.color=ie:ee<0&&(ne.color=ae),ne}else return{}},M=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),P=V=>{const{text:Z,declineColor:Y="#39cf93",increaseColor:ae="#ff512e"}=V,{fontSize:ie}=e,ne=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${ae||"#ff512e"} ${ie} -1px)`:ne<0&&(ee.filter=`drop-shadow(${Y||"#39cf93"} ${ie} -1px)`),ee},j=V=>{const Z=parseFloat(V+"");if(Z>=0)return Do;if(Z<0)return Io},G=ke(e),{getGlobalModel:F,setGlobalModel:q}=n.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,Z)=>{}}),O=(V=[],Z=[])=>{const Y=V.map(ae=>({title:ae,dataIndex:ae,key:ae}));y.value=qe.cloneDeep(Y),g.value=x(Y),m.value=Z},I=nt(e),z=async(V=!0)=>{var Z,Y,ae,ie;try{V&&(t.value=!0);const ne=n.unref(R).split(" "),ee=await I({sort:{order:ne[1],field:ne[0]}});O((Y=(Z=ee==null?void 0:ee.data)==null?void 0:Z.data)==null?void 0:Y.columns,(ie=(ae=ee==null?void 0:ee.data)==null?void 0:ae.data)==null?void 0:ie.rows)}catch(ne){console.error(ne)}finally{t.value=!1}},U=n.ref(-1),X=(V,Z)=>({onClick:G("rowClick",()=>{const Y=e.id,ae=F(Y);q(Y,{...ae,type:e.type,RECORD:V}),U.value=Z})}),{loadedData:$}=n.inject(yt,{loadedData:{}}),K=n.ref(!1);n.watch($,V=>{if(e.dataType==="indicator"){const Z=Yt(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(K)&&et(e.graphicConfig,V)?(K.value=!0,J()):et(e.graphicConfig,V)||(K.value=!1))}},{deep:!0});const J=(V=!0)=>{switch(e.dataType){case"request":C(V);break;case"indicator":et(e.graphicConfig,n.unref($))&&z(V);break}},Q=()=>{const V=e.id,Z=F(V);q(V,{...Z,type:e.type,RECORD:""})},oe=n.computed(()=>{const V=n.unref(u),Z=[];let Y=0;for(let ne=0;ne<V.length;ne++){const ee=V[ne],{isCalcTotal:ge}=ee;e.isUseSeq&&ne===0?Z.push({...ee,total:"小计"}):ge?(Z.push({...ee,index:ne,total:0}),Y++):Z.push({...ee})}if(Y===0)return[];const ae=n.unref(l),ie=te(Z);for(let ne=0;ne<ie.length;ne++){const ee=ie[ne];let ge=0;const{isCalcTotal:ve,dataIndex:xe}=ee;if(ve===!0){for(let Le=0;Le<ae.length;Le++){const ft=+ae[Le][xe];isNaN(ft)||(ge=new M0.Big(ge).add(ft).toNumber())}ee.total=ge}}return ie});function te(V){var Y;const Z=[];for(const ae of V)(Y=ae.children)!=null&&Y.length?Z.push(...te(ae.children)):Z.push(ae);return Z}const{setRequest:re}=n.inject(Fe,{setRequest:V=>{}});typeof re=="function"&&re({id:e.id,requestFn:J,sortNum:e.requestSort}),o({refreshData:J});const de=(V="",Z)=>Te(V,Z),be=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},De=(V,Z="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},_e=(V,Z)=>{V(Z.filterCheckboxGroupValue)},Ye=(V,Z)=>{V({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Ne=()=>{},Me=V=>{const Z=V.dataIndex;if(typeof Z=="string"){let Y=n.unref(w)[Z];const ae=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(Y)?(Y=Y.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(ae.toLowerCase()):!0),Y):[]}return[]},Be=async()=>{var xe,Le;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ke={layer:"1"};n.unref(R)&&(Ke.orderCondition=n.unref(R));const ft=await _(Ke);Z=((Le=(xe=ft==null?void 0:ft.data)==null?void 0:xe.data)==null?void 0:Le.rows)||{}}const Y=n.unref(u),ae=[],ie=[];Y==null||Y.forEach(Ke=>{ae.push(Ke.dataIndex),ie.push(Ke.title)});const ne=Z.map(Ke=>qe.pick(Ke,ae)),ee=jt.utils.book_new(),ge=jt.utils.aoa_to_sheet([ie]),ve=jt.utils.sheet_add_json(ge,ne,{skipHeader:!0,origin:"A2"});jt.utils.book_append_sheet(ee,ve,"sheet"),jt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Oe=(V,Z=2)=>{const Y=+V*100;return isNaN(Y)||Y<=0?0:Y>=100?100:Y.toFixed(Z)};Re(e,{resetRecord:Q,refreshData:J,exportTableData:Be});const Ge=(V,Z)=>{let Y=null;return e.stripedShow&&(Y=Z%2===1?"table-striped":null),Y},ot=n.computed(()=>{let V=0;const{height:Z,isPageBottom:Y}=e;return Y&&Z&&(V=parseFloat(Z)-d()),V?V+"px":"100%"}),Ve=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),Ue=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),lt=n.computed(()=>parseFloat(e.fontSize)+16);return{x:f,y:c,style:s,customRow:X,pagination:A,formatFn:B,contrastClass:N,tableChange:S,summaryList:oe,loading:t,onTouchHrefEvent:De,handleHref:de,handleHrefTarget:be,useRowIndex:U,tableColumns:u,tableDataSource:l,useFilterOptions:Me,useSetSelectedKeys:_e,onResetFilter:Ye,onSearchFilterOptions:Ne,exportTableData:Be,handleProgressText:Oe,pageSizeVisible:i,pageSize:T,tableRef:r,rowClassName:Ge,tableHeight:ot,tableHeaderBgColor:Ve,tableBodyBgColor:Ue,getChgStyle:L,chgBoxStyle:M,getChgBoxImgStyle:P,getChgBoxImgSrc:j,seqIcon1:Dd,seqIcon2:Id,seqIcon3:_d,iconSize:lt}}}),v0=()=>{n.useCssVars(e=>({"27f0c724":e.stripedColor,c51cbe28:e.paginationBgColor,dca1d49e:e.paginationColor,c6accef4:e.activePaginationBgColor,"05d42bcb":e.activePaginationColor,"8764759e":e.hoverBackgroundColor,"65fa7a4a":e.tableHeaderBgColor,"719296b4":e.tableBodyBgColor}))},S0=Da.setup;Da.setup=S0?(e,o)=>(v0(),S0(e,o)):v0;const _1="",R1="",Rd=e=>(n.pushScopeId("data-v-d2058fbc"),e=e(),n.popScopeId(),e),Od=["id"],Ld={key:0,class:"table-tool"},Nd=n.createTextVNode("导出数据"),Md=n.createTextVNode(" 搜索 "),zd=n.createTextVNode(" 重置 "),Fd=["src","width","height"],Pd=["src","width","height"],qd=["src","width","height"],Hd={key:1},Vd={key:1,class:"action-list"},jd=["href","target","onClick"],Ud={key:2,class:"progress-cell"},Gd={key:0},Wd=["src"],$d={key:1},Zd=["src"],Yd={class:"ant-pagination-options-quick-jumper"},Kd=Rd(()=>n.createElementVNode("span",null,"条 / 页",-1));function Qd(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),f=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),d=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=n.resolveComponent("a-table"),u=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(u,{loading:e.loading},{default:n.withCtx(()=>{var y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Ld,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Nd]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:h,selectedKeys:v,setSelectedKeys:T,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":x=>h.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(f,{value:h.filterCheckboxGroupValue,"onUpdate:value":x=>h.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:x=>e.useSetSelectedKeys(T,h)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Md]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,h),["stop"])},{default:n.withCtx(()=>[zd]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:h,index:v,text:T,record:p})=>{var b,x;return[h.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[v===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Fd)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Pd)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,qd)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(v+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Hd,n.toDisplayString(v+1),1))],64)):h.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Vd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(w,k)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:k},[n.createElementVNode("a",{href:e.handleHref(w.href,p),target:e.handleHrefTarget(w.target),style:n.normalizeStyle({color:w.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:E=>e.onTouchHrefEvent(w.target,e.handleHref(w.href,p))},n.toDisplayString(w.title),13,jd)]))),128))])):h.format==="progress"?(n.openBlock(),n.createElementBlock("div",Ud,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(T,h.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(T)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(T,h.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Gd,n.toDisplayString(((b=h==null?void 0:h.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle(e.getChgStyle({...h,text:T}))},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:T})),src:e.getChgBoxImgSrc(T)},null,12,Wd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(h.format!=null?e.formatFn(T,h):T),1)],6),h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",$d,n.toDisplayString(((x=h==null?void 0:h.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(h,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,Zd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Yd,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[n.vModelText,e.pageSize]]),Kd])],8,["to"])):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Od)}const C0=me(he(Da,[["render",Qd],["__scopeId","data-v-d2058fbc"]])),Ia={...Ce,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},_a=pe(Ia),w0=["click"];We.use([kt.CanvasRenderer,dt.MapChart,dt.ScatterChart,ye.VisualMapComponent,ye.TooltipComponent,ye.GraphicComponent]);const Jd=n.defineComponent({name:"EcanMap",components:{Echarts:gt},props:{..._a},setup(e){const o=He(e),t=He({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Se(e,["backgroundImage"]),l=n.ref(),f=n.computed(()=>St(e.geoBackgroundImage)),c=n.computed(()=>St(e.backgroundImage)),d=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),g=n.computed(()=>{const D=e.symbolImage;return e.symbolImage?"image://"+St(D):"circle"}),m=D=>{let B=e.tooltipFormatter;const N=B.match(/\{(.+?)\}/g);if(N==null||N.length===0)return B;for(let L=0;L<N.length;L++){const M=N[L];let P=M.slice(1,-1).trim();const j=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,G=P.match(j);for(let F=0;F<G.length;F++){const q=G[F],O=D[q];O!=null&&(P=P.replace(q,O))}B=B.replace(M,P)}return B.split(`
|
|
118
|
-
`)},u=n.ref(!1),y=n.ref("");let h=new AbortController;const v=(
|
|
116
|
+
<span style="color: ${M||e.color};${n.unref(d)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
|
|
117
|
+
</span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),C=C.replace(U,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Ao(L),C=C.replace(U,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${L}</span>`))):I==="thousands"?(L=+L,isNaN(L)||(L=fc(L),C=C.replace(U,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${L}</span>`))):C=C.replace(U,`<span style="color:${u(L)||e.variableColor};font-size:${n.unref(i)};${n.unref(d)}">${L}</span>`)}}if(N||(N=`<span style="color: ${u(C)};${n.unref(d)}">${C}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:U}=e;let W="position:relative;";P&&(W+=`top:${P};`),U&&(W+=`margin-left:${U};`),N+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${W};${n.unref(d)}'>${e.unitText}</span>`}return N});function u(S){let T="",A=!1;const{targetValue:C,targetShow:_,notExpectColor:N}=e;if(_){switch(e.targetRule){case"equal":S!==C&&(A=!0);break;case"greater":S<=C&&(A=!0);break;case"greater_equal":S<C&&(A=!0);break;case"less":S>=C&&(A=!0);break;case"less_equal":S>C&&(A=!0);break}A&&(T=N)}return T}const{pageMode:y}=n.inject(ze,{pageMode:"normal"}),h=Ve(e),v=n.ref(!1),E=async()=>{var S;try{v.value=!0;const T=await h();r.value=((S=T==null?void 0:T.data)==null?void 0:S.data)||{}}catch(T){console.error(T)}finally{v.value=!1}},p=(S={})=>{r.value=S},b=S=>{const T=e.id,A=l(T);f(T,{...A,value:S||""})},x=ot(e),k=async()=>{var S;try{v.value=!0;const T=await x(),{data:A}=(T==null?void 0:T.data)||{};if(A){t.value=!1;const{columns:C=[],rows:_=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let N={};if(C.length>0){const z=C.find(P=>!!P);z&&(N={value:isNaN(_[z])?0:_[z]||0})}b(N==null?void 0:N.value),p(N)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(T){console.error(T)}finally{v.value=!1,c(e.id,!0)}},B=()=>{switch(e.dataType){case"indicator":k();break;case"request":E();break}},{setRequest:D}=n.inject(Fe,{setRequest:({id:S,sortNum:T,requestFn:A})=>{}});typeof D=="function"&&D({id:e.id,requestFn:B,sortNum:e.requestSort}),Oe(e,{refreshData:B}),o({refreshData:B});const R=ke(e),O=R("click",()=>{if(!e.linkPage&&!e.href)return;const S=e.linkPage||"",T=di(n.unref(y),S),A=e.href;let C=A||T;C=Te(C);const _=e.target;_&&(_!=="event"?window.open(C,"_"+_):window.parent.postMessage({type:"openPage",url:A},"*"))}),w=R("valueChange",()=>{});return n.watch(()=>m.value,(S,T)=>{S!==T&&w()}),{style:a,myText:m,loading:v,click:O,textIndent:s,vFontSize:i,gradientStyle:g}}}),mi=()=>{n.useCssVars(e=>({cebebbf4:e.vFontSize,"2393a9b9":e.textIndent,"36d98491":e.percentageSide}))},yi=_o.setup;_o.setup=yi?(e,o)=>(mi(),yi(e,o)):mi;const Tu="",pc=["innerHTML"];function bc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,pc))}const xi=xe(me(_o,[["render",bc],["__scopeId","data-v-3cbb70ab"]])),vc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Eu="",Sc={class:"red"};function Cc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Sc,n.toDisplayString(e.text),1)}const pi=xe(me(vc,[["render",Cc],["__scopeId","data-v-4dd9c03e"]])),Ro={...Ce,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Oo=be(Ro),bi=["timeChange"],wc=n.defineComponent({name:"EcanTimeDisplay",props:{...Oo},setup(e){const o=Se(e),t=()=>{const{format:c,operate:d}=e;let g=Ae();if(d){const{type:m,value:u,mode:y}=d;switch(m){case"add":g=g.add(u,y);break;case"minus":g=g.subtract(u,y)}}return g.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=ke(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:g}=e.updateInterval||{};d&&(c=c*d);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Oe(e,{timeChange:l}),n.onMounted(()=>{f()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),Iu="";function Ac(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const vi=xe(me(wc,[["render",Ac],["__scopeId","data-v-b628fca2"]])),Lo={...Ce,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},No=be(Lo),Si=["refreshData","click"],kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Tc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Bc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var Dc=Object.defineProperty,Ci=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable,wi=(e,o,t)=>o in e?Dc(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ai=(e,o)=>{for(var t in o||(o={}))Ic.call(o,t)&&wi(e,t,o[t]);if(Ci)for(var t of Ci(o))_c.call(o,t)&&wi(e,t,o[t]);return e},Rc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Oc=n.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),f=n.ref(0),c=n.ref(0),d=n.ref(0),g=n.ref(0),m=n.ref(!1),u=n.ref(!1),y=n.ref(0),h=n.ref(null),v=n.ref("200px"),E=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await k(),i.value++},k=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){g.value=p.value.clientHeight,d.value=b.value.clientHeight;const N=Math.ceil(d.value/g.value);return t.value=isFinite(N)?N:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,f.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<f.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const N=Math.ceil(f.value/c.value);return t.value=isFinite(N)?N:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(f,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(N,z)=>{N!==z&&o(N?"onResume":"onPause")});const B=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},D=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},R=()=>{e.pauseOnClick&&(o("onPause"),u.value=!0)},O=()=>{e.pauseOnClick&&(o("onResume"),u.value=!1)},w=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),S=n.computed(()=>e.pauseOnHover&&(m.value||u.value)||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),T=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&u.value||!e.pauseOnHover&&w.value==="paused"?"paused":"running"),A=n.computed(()=>{const N={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${S.value}`,"--pauseOnClick":`${T.value}`,"--pauseAnimation":`${w.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}`},z={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(z["--orientation"]="scrollY"),Ai(Ai({},N),z)}),C=n.computed(()=>!!e.gradient),_=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),v.value=e.gradientWidth):e.gradientLength&&(v.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),x()),E.value=!0};return n.onMounted(async()=>{_(),h.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(h.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(h.value)}),{ready:E,contentWidth:c,containerWidth:f,contentHeight:g,containerHeight:d,loopCounter:y,loopInterval:h,mouseOverMarquee:m,mouseDownMarquee:u,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:C,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:_,getCurrentStyle:A,hoverStarted:B,hoverEnded:D,mouseDown:R,mouseUp:O}}}),Lc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Nc={class:"marquee",ref:"marqueeContent"},Mc={key:1,"aria-hidden":!0,class:"marquee"};function zc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",Lc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",Nc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Mc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Fc=Rc(Oc,[["render",zc]]);const Pc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Fc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),qc={key:1,class:"list-wrap"};function Hc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",qc,[n.renderSlot(e.$slots,"default")]))}const Vc=me(Pc,[["render",Hc]]),jc=n.defineComponent({name:"EcanList",components:{Skeleton:on,ATooltip:se.Tooltip,MarqueeScroll:Vc},props:{...No},setup(e,{expose:o}){const t=n.ref(),a=Se(e,["backgroundColor"]),r=(O,w)=>{const{format:S,customFormatter:T}=w;if(S==null||S==="")return O;const A={money:Ao,percentage:mn,contrast:mn,custom:fi};return A[S]?S==="custom"?A[S](O,T)||"":A[S](O)||"":""},i=(O,w)=>{const S=parseFloat(O+"");if(w!=="contrast")return"";switch(!0){case S>=0:return"goUp";case S<0:return"goDown"}},s=Ve(e),l=n.ref(!1),f=async()=>{var O;if(e.dataType==="request")try{l.value=!0;const w=await s();t.value=((O=w==null?void 0:w.data)==null?void 0:O.data.rows)||[]}catch(w){console.error(w)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),d=n.computed(()=>{const{columns:O,isUseSeq:w}=e;return w?[n.unref(c),...O]:O}),g=ot(e),m=async()=>{var O;try{l.value=!0;const w=await g(),{columns:S=[],rows:T=[]}=((O=w==null?void 0:w.data)==null?void 0:O.data)??{};e.isUseSeq&&S.unshift(e.seqName),d.value.forEach((A,C)=>{(!e.isUseSeq||C!==0)&&(A.title=S[C],A.key=S[C])}),t.value=T}catch(w){console.error(w)}finally{l.value=!1}},u=()=>{switch(e.dataType){case"indicator":m();break;case"request":f();break}},y=ke(e),{getGlobalModel:h,setGlobalModel:v}=n.inject(we,{getGlobalModel:O=>{},setGlobalModel:(O,w)=>{}}),E=O=>{y("click",()=>{const w=h(e.id);v(e.id,{...w,type:e.type,RECORD:O})})()};Oe(e,{refreshData:u});const{setRequest:p}=n.inject(Fe,{setRequest:({id:O,sortNum:w,requestFn:S})=>{}});typeof p=="function"&&p({id:e.id,requestFn:u,sortNum:e.requestSort}),o({refreshData:u});const b=O=>({flex:O.width?"none":"1",width:O.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:O.align||"left",backgroundColor:O.cellColor}),x=(O,w)=>{let S=0;const T=n.unref(t).map(C=>C[w]),A=Math.max(...T);return A&&(S=O[w]/A*100),S},k=O=>{const{progressColor:w="#1890ff",progressGradientColor:S=""}=O;return S?{background:`linear-gradient(to right, ${w} 0%, ${S} 100%)`}:{backgroundColor:w||"#1890ff"}},B=n.computed(()=>{const O=parseFloat(e.seqFontSize)+5;return{width:O+10,height:O}}),{pageMode:D}=n.inject(ze,{pageMode:"normal"}),R=n.computed(()=>n.unref(D)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:d,click:E,getColumnStyle:b,getPercentage:x,getBackgroundColor:k,seqIcon4:kc,seqIcon5:Tc,seqIcon6:Bc,seqIcon7:Ec,iconSize:B,isScroll:R}}}),Ru="",Ou="",Uc=e=>(n.pushScopeId("data-v-bb4b7c1e"),e=e(),n.popScopeId(),e),Gc={key:0,class:"title"},Wc={key:0,class:"ranking"},$c={key:1,class:"ecan-list-content"},Zc=["onClick"],Yc={key:0,class:"ranking"},Kc=Uc(()=>n.createElementVNode("div",{class:"icon"},null,-1)),Qc={class:"sort"},Jc=["src","width","height"],Xc=["src","width","height"],ef=["src","width","height"],tf=["src","width","height"],nf={key:1},of={key:2,class:"empty"};function af(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),f=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(f,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Gc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Wc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(d,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:d.key||g,style:n.normalizeStyle({color:d.titleColor,...e.getColumnStyle(d)})},n.toDisplayString(d.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",$c,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||d,onClick:g=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Yc,[Kc,n.createElementVNode("div",Qc," Top "+n.toDisplayString(d+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[d===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,Jc)):d===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,Xc)):d===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,ef)):d>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,tf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(d+1),5)],64)):(n.openBlock(),n.createElementBlock("span",nf,n.toDisplayString(d+1),1))],64)):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Zc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",of," 暂无数据 "))]),_:1},8,["loading"])],4)}const ki=xe(me(jc,[["render",af],["__scopeId","data-v-bb4b7c1e"]])),Mo={...Ce,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},zo=be(Mo),Ti=["refreshData","click"],rf=n.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:on},props:{...zo},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),r=Se(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const B=e.text.match(/\{.+\}/g)||[];let D;const R=new Set(Object.keys(x));for(let O=0;O<B.length;O++){const w=B[O],S=w.slice(1,w.length-1);if(R.has(S)){D=x[S];break}}return typeof D=="number"?D=D*100:typeof D=="string"&&!isNaN(+D)?D=+D*100:isNaN(k)?D=0:D=k*100,e.decimalFormat&&(D=+D.toFixed(2)),D}),f=n.computed(()=>{var R;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,B=n.unref(s),D=x.match(/\{.+\}/g)||[];for(let O=0;O<D.length;O++){const w=D[O];let S=w.slice(1,w.length-1);const T=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,A=w.match(T);for(let _=0;_<(A==null?void 0:A.length);_++){const N=(R=A[_])==null?void 0:R.trim();B[N]!=null&&(S=S.replace(N,B[N]))}let C=S;try{/\(.*\)/g.test(S)&&(C=xn(S))}catch(_){console.error(_)}typeof+C=="number"&&!isNaN(+C)?(C=+C*100,e.decimalFormat&&(C=C.toFixed(2))):C=k,x=x.replace(w,C+"")}return n.unref(t)?"NaN":x}),c=Ve(e),d=n.ref(!1),g=async()=>{var x;if(e.dataType==="request")try{d.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{d.value=!1}},m=(x={})=>{s.value=x},u=ot(e),y=async()=>{var x;try{d.value=!0;const k=await u(),{data:B}=(k==null?void 0:k.data)||{};if(B){t.value=!1;const{columns:D=[],rows:R=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let O={};if(D.length>0){const w=D.find(S=>!!S);w&&(O={percent:R[w]})}m(O)}else t.value=!0,m({percent:"NaN"})}catch(k){console.error(k)}finally{d.value=!1}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":g();break}};Oe(e,{refreshData:h}),o({refreshData:h});const E=ke(e)("click",()=>{}),{setRequest:p}=n.inject(Fe,{setRequest:({id:x,sortNum:k,requestFn:B})=>{}});typeof p=="function"&&p({id:e.id,requestFn:h,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:B,strokeColor:D}=e;let R=D;return x&&k&&(R={"0%":D,[`${B*100}%`]:k}),R});return{style:r,myWidth:i,text:f,myValue:l,loading:d,click:E,customStrokeColor:b}}}),Nu="";function lf(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Bi=xe(me(rf,[["render",lf],["__scopeId","data-v-cf942b5f"]])),Fo={...Ce,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Po=be(Fo),Ei=["inputChange","inputBlur"],sf=n.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Po},setup(e){const o=Se(e),t=n.ref("");n.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:a,setGlobalModel:r}=n.inject(we,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=a(e.id);r(e.id,{...c,RECORD:t})},s=ke(e),l=He.debounce(s("inputChange",()=>{i()}),300),f=s("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:f,inputChange:l}}}),zu="";function cf(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Di=xe(me(sf,[["render",cf]])),qo={...Ce,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Ho=be(qo),Ii=["dateChange"],Vo=n.defineComponent({name:"EcanDatePicker",props:{...Ho},components:{ADatePicker:se.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Se(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([m,u,y])=>{let h=null;if(m?h=Ae(Te(m)):u&&(h=Ae()),y&&h){const{type:v,value:E,mode:p}=y;switch(v){case"add":h=h.add(E,p);break;case"minus":h=h.subtract(E,p)}}r.value=h},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(we,{setGlobalModel:(m,u)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=ke(e)("dateChange",()=>{}),f=()=>{n.unref(r)&&l()};Oe(e,{dateChange:l});const c=n.ref({}),d=n.ref({}),g=m=>{m?setTimeout(()=>{d.value=n.unref(c)},300):d.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const u=m.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-u.left<y&&(c.value.marginLeft=-1*(y-u.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Oa,change:f,scaleValue:o,popupStyle:c,customStyle:d,openChange:g}}}),_i=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ri=Vo.setup;Vo.setup=Ri?(e,o)=>(_i(),Ri(e,o)):_i;const Pu="",qu="",ff=["id"];function df(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,ff)}const Oi=xe(me(Vo,[["render",df],["__scopeId","data-v-d4ec0d66"]])),jo={...Ce,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},Uo=be(jo),Li=["dateChange"];var Ni={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(ce,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,d){return c=Number(c),this.$utils().p(d)===a?this.add(3*c,t):l.bind(this)(c,d)};var f=s.startOf;s.startOf=function(c,d){var g=this.$utils(),m=!!g.u(d)||d;if(g.p(c)===a){var u=this.quarter()-1;return m?this.month(3*u).startOf(t).startOf("day"):this.month(3*u+2).endOf(t).endOf("day")}return f.bind(this)(c,d)}}})})(Ni);var uf=Ni.exports;const hf=lr(uf);Ae.extend(hf);const Go=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Uo},setup(e){const o=Se(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,k,B,D,R])=>{let O=null,w=null;if(k&&(O=Ae().subtract(B,D),w=Ae()),b&&(O=Ae(Te(b))),x&&(w=Ae(Te(x))),R){const{type:S,value:T,mode:A}=R;switch(S){case"add":O=O&&O.add(T,A),w=w&&w.add(T,A);break;case"minus":O=O&&O.subtract(T,A),w=w&&w.subtract(T,A)}}a.value=[O,w]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,k)=>{Array.isArray(b)?(r=b[0],i=b[1],s=k.range):(r=null,i=null)},f=b=>{let x=!1,{limitStartTime:k,limitEndTime:B}=e;const D={startTime:`${r||""}`,endTime:`${i||""}`};if(k=Te(k,{codeData:D}),B=Te(B,{codeData:D}),k&&B?x=!(Ae(k)<b&&b<Ae(B)):k?x=Ae(k)>b:B&&(x=Ae(B)<b),!e.isAllowSpanYear&&s){let R=null;if(s==="start"?R=r:s==="end"&&(R=i),R){const O=R.startOf("year"),w=R.endOf("year");x=!(O<=b&&b<w)}}return x},{getGlobalModel:c,setGlobalModel:d}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const u=ke(e);let y=!1;const h=u("dateChange",()=>{}),v=b=>{const x=n.unref(a),k=x&&x[0]&&x[1];b===!1&&y===!0&&k&&(h(),y=!1),b||(s="")},E=()=>{y=!0};return Oe(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:k}=x;if(k)switch(n.unref(k)){case"month":a.value=[Ae().startOf("month"),Ae().endOf("month")];break;case"quarter":a.value=[Ae().startOf("quarter"),Ae().endOf("quarter")];break;case"year":a.value=[Ae().startOf("year"),Ae().endOf("year")];break}}}h()}}),{style:o,getPopupContainer:t,locale:Oa,dateChange:h,myValue:a,disabledDate:f,calendarChange:l,openChange:v,change:E}}}),Mi=()=>{n.useCssVars(e=>({"70b68802":e.optionFontSize}))},zi=Go.setup;Go.setup=zi?(e,o)=>(Mi(),zi(e,o)):Mi;const Vu="",ju="";function gf(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Fi=xe(me(Go,[["render",gf],["__scopeId","data-v-95653c92"]])),Wo={...Ce,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},$o=be(Wo),Pi=["click"],mf=n.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...$o},setup(e){const o=Se(e),a=ke(e)("click",()=>{const f=n.unref(s);f&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:f},"*")}),r=n.computed(()=>{const f={};return e.mode!=="primary"&&(f.backgroundColor=e.buttonBackgroundColor||"transparent",f.color=e.tooltipTextStyleColor,f.borderColor=e.borderColor||"transparent"),{height:e.height,...f}}),i=n.computed(()=>Te(e.text)),s=n.computed(()=>Te(e.href)||null),l=n.computed(()=>{const f=e.target;if(!(f==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[f]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),Gu="";function yf(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const qi=xe(me(mf,[["render",yf]])),Zo={...Ce,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},Yo=be(Zo),Hi=["checkboxChange"],xf=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...Yo},setup(e,{expose:o}){const t=Se(e),a=n.ref([]),r=n.ref([]),i=v=>{const E=e.value;let p=[];v.forEach(b=>{b.checked&&p.push(b.value)}),typeof E=="string"&&E!==""?p=p.concat(E.split(",")):Array.isArray(E)&&(p=p.concat(E)),a.value=v,r.value=p};n.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const v=await s(),E=((b=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(E)},{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:v=>{},setGlobalModel:(v,E)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("checkboxChange",()=>{const v=f(e.id);c(e.id,{...v,RECORD:r})}),m=ot(e),u=async()=>{var v;try{const E=await m(),{data:p}=(E==null?void 0:E.data)||{};if(p){const x=(((v=E==null?void 0:E.data)==null?void 0:v.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(E){console.error(E)}},y=()=>{switch(e.dataType){case"indicator":u();break;case"request":l();break}},{setRequest:h}=n.inject(Fe,{setRequest:({id:v,sortNum:E,requestFn:p})=>{}});return typeof h=="function"&&h({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),$u="";function pf(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Vi=xe(me(xf,[["render",pf]])),Ko={...Ce,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Qo=be(Ko),ji=["selectChange","refreshData"],bf=n.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Qo},setup(e,{expose:o}){const t=Se(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var _;const{mode:C}=e;return(_=n.unref(i))!=null&&_.length?s.value:C==="multiple"||C==="tags"||C==="combobox"?[]:""},set:C=>{s.value=C}}),{getGlobalModel:f,setGlobalModel:c,getRecordValueByKeyName:d}=n.inject(we,{getGlobalModel:C=>{},setGlobalModel:(C,_)=>{},getRecordValueByKeyName:C=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:C,selectFirstOption:_,value:N}=e,z=d(N);C==="multiple"||C==="tags"||C==="combobox"?z?s.value=z.split(","):_&&(s.value=[n.unref(i)[0]]):z?s.value=z:_&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(C,_)=>{const N=g.label,z=g.value;let P;const U=_[N],W=_[z];return U!=null?P=U:W!=null&&(P=W),(P==null?void 0:P.toLowerCase().indexOf(C==null?void 0:C.toLowerCase()))>=0},u=C=>{const{label:_,value:N,options:z}=e.dataFieldNames;if(z&&Array.isArray(C))if(C.some(P=>z in P)){const P={},U=[];C.forEach(W=>{P[W[z]]||(P[W[z]]=[]),P[W[z]].push({[_]:W[_],[N]:W[N]})});for(const W in P)U.push({[_]:W,[z]:P[W]});return U}else return C;else if(!z)return C},y=n.ref(!1),h=async()=>{var C,_;if(e.dataType==="request"){y.value=!0;try{const N=await r();if(i.value=u(((_=(C=N==null?void 0:N.data)==null?void 0:C.data)==null?void 0:_.rows)||[]),e.selectFirstOption){let z=n.unref(i)[0];if(g.options){const P=z[g.options];P&&P.length&&(z=P[0])}s.value=z[g.value]}}catch(N){console.error(N)}finally{y.value=!1}}},{setLoadedData:v,loadedData:E}=n.inject(pt,{setLoadedData:(C,_)=>{},loadedData:{}}),p=n.computed(()=>{let C=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const _=g.label,N=g.value;if(e.mode==="multiple")C=n.unref(i).filter(z=>n.unref(s).includes(z[N])).map(z=>z[_]);else{const z=n.unref(i).find(P=>n.unref(s)===P[N]);z&&(C=z[_])}}return C}),b=n.ref([]),x=n.computed(()=>{const C={};if(e.mode!=="multiple"){const _=n.unref(b).find(N=>N.value===n.unref(s));_&&(C.itemCodes=_.item_codes)}return C});c(e.id,{type:e.type,value:p,...n.unref(x)});const B=ke(e)("selectChange",()=>{const C=e.id,_=f(C);c(C,{..._,...n.unref(x),RECORD:p})}),D=(C=[])=>{if(i.value=u(C),e.selectFirstOption){let _=n.unref(i)[0];if(g.options){const N=_[g.options];N&&N.length&&(_=N[0])}s.value=_[g.value]}},R=ot(e),O=async()=>{var C;try{y.value=!0;const _=await R(),{data:N}=(_==null?void 0:_.data)||{},z=g.label,P=g.value;if(N){const U=((C=_==null?void 0:_.data)==null?void 0:C.data)??[];b.value=U;const W=U.map(L=>({[z]:L.label,[P]:L.value})),{id:F}=e,q=f(F);c(F,{...q,...n.unref(x)}),v(F,!0),D(W)}else D([])}catch(_){console.error(_)}finally{y.value=!1}},w=n.computed(()=>{var C,_;return(_=(C=e==null?void 0:e.graphicConfig)==null?void 0:C.controlList)==null?void 0:_.find(N=>N.conditionKey==="parentCode")}),S=n.ref(!1);n.watch(E,C=>{!n.unref(S)&&n.unref(w)&&C[n.unref(w).id]&&(S.value=!0,T())},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":{if(n.unref(w)){if(n.unref(E)[n.unref(w).id]){const{mode:C}=e;C==="multiple"||C==="tags"||C==="combobox"?l.value=[]:l.value="",O()}}else O();break}case"request":h();break}};Oe(e,{selectChange:B,refreshData:T});const{setRequest:A}=n.inject(Fe,{setRequest:({id:C,sortNum:_,requestFn:N})=>{}});return typeof A=="function"&&A({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{style:t,getPopupContainer:a,myValue:s,selectChange:B,options:i,filterOption:m,loading:y,resultValue:l}}}),Yu="",Ku="";function vf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=f=>e.resultValue=f),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:f.value,label:f.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ui=xe(me(bf,[["render",vf],["__scopeId","data-v-e5517626"]])),Jo={...Ce,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Xo=be(Jo),Gi=["selectChange","refreshData"],Sf={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...Xo},setup(e){const o=Se(e),t=n.ref(e.data),a=(u,y)=>{const h=e.dataFieldNames,v=h.label,E=h.value;let p;const b=y[v],x=y[E];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:u,value:y,selectFirstOption:h}=e;u?y?r.value=y.split(","):h&&(r.value=[n.unref(t)[0]]):y?r.value=y:h&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=Ve(e),l=async()=>{var u,y;if(e.dataType==="request"){i.value=!0;try{const h=await s();t.value=((y=(u=h==null?void 0:h.data)==null?void 0:u.data)==null?void 0:y.rows)||[];const v=n.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(h){console.error(h)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:u=>{},setGlobalModel:(u,y)=>{}});c(e.id,{type:e.type,value:r});const g=ke(e)("selectChange",()=>{const u=e.id,y=f(u);c(u,{...y,RECORD:r})});Oe(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(Fe,{setRequest:({id:u,sortNum:y,requestFn:h})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},Ju="",Xu="";function Cf(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Wi=xe(me(Sf,[["render",Cf],["__scopeId","data-v-37236421"]])),ea={...Ce,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ta=be(ea),$i=["checkboxChange","click"],wf=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ta},setup(e,{expose:o}){const t=Se(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=b,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var k,B;if(e.dataType!=="request")return;const b=await s(),x=((B=(k=b==null?void 0:b.data)==null?void 0:k.data)==null?void 0:B.rows)||[];i(x)},{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const d=ke(e),g=d("checkboxChange",()=>{const b=f(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,d("click",()=>{const x=f(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{g()});const u=ot(e),y=async()=>{var b;try{const x=await u(),{data:k}=(x==null?void 0:x.data)||{};if(k){const D=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(R=>({label:R.label,value:R.value}));i(D)}else i([])}catch(x){console.error(x)}},h=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:v}=n.inject(Fe,{setRequest:({id:b,sortNum:x,requestFn:k})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort});const E=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:h}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:m,useImagePath:wt,tabChange:E}}}),t1="",n1="",Af=["onClick"];function kf(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),f=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,d)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:d,onClick:n.withModifiers(g=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Af))),128))],4)):(n.openBlock(),n.createBlock(f,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:d=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Zi=xe(me(wf,[["render",kf],["__scopeId","data-v-baa84768"]])),na={...Ce,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie"},oa=be(na),Yi=["click","refreshData","resetRecord"],Ut=async e=>{var f;const o=await ct.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(f=s.parentNode)==null||f.removeChild(s),window.URL.revokeObjectURL(l)},aa={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0},ra=be(aa),Ki=["showModal","hideModal"];function Qi(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const g in t){const m=o.find(u=>u.id===g);if(m){yn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const u in t[g])if(t[g][u])for(const y of t[g][u]){const h=o.find(v=>v.id===y);h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(m.sourceLeft||m.left)+"px",h.top=parseFloat(h.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!yn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const u=o.filter(y=>m.includes(y.id));if(u!=null&&u.length){const y=Bf(u);if(y){l.push({...y,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const h of u)h&&(h.parentId=g,h.sourceLeft=h.left,h.sourceTop=h.top,h.left=parseFloat(h.left)-parseFloat(y.left)+"px",h.top=parseFloat(h.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const f=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>f.includes(g.type)&&!yn(g,"parentId")),d=[];for(const g of c)if(g){const m=g.id+"_vir";d.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}d!=null&&d.length&&o.unshift(...d);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const u=o.find(y=>y.id===g.parentId);if((u==null?void 0:u.parentId)===""){const y=u.sourceWidth||parseFloat(u.width),h=m/y;g.scale=h,g.top=parseFloat(g.top)*h-parseFloat(g.height)*(1-h)/2+"px",g.left=parseFloat(g.left)*h-parseFloat(g.width)*(1-h)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Tf(o)}return o}function Tf(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=He.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Bf(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const Ef=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Df(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const If=xe(me(Ef,[["render",Df]])),_f=n.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:Wl,Render:If},props:{...ra},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(we,{clearInteractiveData:()=>{},interactiveData:null}),f=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),d=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,u=e.originalHeight,y=n.ref("80%"),h=n.ref(0),v=n.ref(),E=n.ref(0),p=n.ref({}),b=Se(e),x=n.ref({}),k=n.ref(!1),B=n.ref();let D;const R=()=>{v.value=parseFloat(d)/parseFloat(m);const Q=parseFloat(g)/parseFloat(u),J=document.body.offsetWidth,K=document.body.offsetHeight;h.value=J*n.unref(v),E.value=K*Q,y.value=`${n.unref(v)*100}%`,p.value={width:`${n.unref(h)}px`,height:`${n.unref(E)}px`},x.value={...n.unref(b),backgroundImage:wt(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(h)/parseFloat(d)},${n.unref(E)/parseFloat(g)})`,width:d,height:g}},O=He.debounce(()=>{R()},100),w=()=>{const Q=window.MutationObserver;D=new Q(O),D.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{D&&(D.disconnect(),D.takeRecords(),D=null)},T=n.ref(!1),{touchRequest:A}=n.inject(Fe,{touchRequest:()=>{}}),C=n.ref(""),_=()=>{var K;const{title:Q}=e,J=(K=n.unref(l))==null?void 0:K.RECORD;return J?Te(Q,{textData:J},{useNewline:!1,useSpace:!1}):Q},N=()=>{a&&(document.documentElement.style.overflow="hidden"),C.value=_(),T.value=!0},z=()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),T.value=!1},P=()=>{z()},U=()=>{z(),s()},{setModalModel:W,pushUseModalIds:F,popUseModalIds:q}=n.inject(or,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,J)=>{}}),L=n.computed(()=>{if(a){const Q=He.cloneDeep(e.componentList),J=r(),K=i();return Qi({componentList:Q,containerMap:J,combinationMap:K})}else return e.componentList}),I=()=>{const Q=e.id;let J=[];const K=e.componentList;Array.isArray(K)&&(J=K.map(te=>te.id),W(Q,[...new Set(J)]))};n.watch(()=>T.value,async Q=>{Q?(k.value=!1,F(e.id),I(),await n.nextTick(()=>{R(),window.addEventListener("resize",O),w(),k.value=!0}),A()):(q(),window.removeEventListener("resize",O),S())});const M=n.computed(()=>n.unref(v)>=1),j=n.computed(()=>e.fullModal),ee=n.computed(()=>{let Q="ecan-modal";return n.unref(M)&&(Q+=" ecan-full-width-modal"),n.unref(j)&&(Q+=" ecan-full-modal"),Q});return Oe(e,{showModal:N,hideModal:z}),{modalRef:B,containStyle:p,contentStyle:x,getContainer:f,modalStyle:c,modalWith:y,isFullModal:j,style:b,visible:T,showModal:N,onOk:P,onCancel:U,isFullWidth:M,wrapClassName:ee,ready:k,usedComponentList:L,isMobile:a,readyIds:t,hasOwn:yn,onComponentReady:Q=>{t.value.push(Q)},formatTitle:C}}}),r1="",i1="";function Rf(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),f=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(f,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,d)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+d},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const At=xe(me(_f,[["render",Rf],["__scopeId","data-v-7574a1cc"]]));$e.use([Et.CanvasRenderer,ut.PieChart,pe.TitleComponent,pe.ToolboxComponent,pe.TooltipComponent,pe.LegendComponent]);const Of=n.defineComponent({name:"EcanPie",props:{...oa},components:{Spin:Ot,Echarts:yt,EcanModal:At},setup(e,{expose:o}){const t=n.ref(!1),a=Se(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:S=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const T=e.isUseLabelColors,A=e.colors;S=S.map((C,_)=>({label:T?{color:A[_]}:{},...C}))}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(){Ut(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var T;t.value=!0,(T=i.value)==null||T.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:T=>{const{marker:A,seriesName:C,name:_,value:N,percent:z,data:P}=T||{};return Te(e.tooltipFormatter,{textData:{marker:A,name:_,value:N,percent:z,a:C,b:_,c:N,d:z,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:S,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?rt:e.labelFontSize,position:e.labelPosition,formatter:cc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),f=()=>{s.value={show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{color:e.legendTextStyleColor,fontSize:t.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:S=>{const{data:T}=r.value[0]||{};let A;if(T){const C=T.find(_=>_.name===S);C&&(A=C.value)}return Te(e.legendFormatter,{textData:{name:S,value:A}},{useNewline:!1,useSpace:!1})}}},c=()=>{t.value=!1},{getGlobalModel:d,setGlobalModel:g}=n.inject(we,{getGlobalModel:S=>{},setGlobalModel:(S,T)=>{}}),{pageMode:m}=n.inject(ze,{pageMode:"normal"}),u=(S=[],T)=>{const{dataset:A}=Lt(S,T);r.value=A},y=(S=[],T)=>{const A=Lt(S,T);r.value=A.dataset};n.watch(()=>e.data,S=>{(e.dataType==="static"||n.unref(m)==="design")&&u(S)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize],()=>{f()},{immediate:!0});const h=n.ref(!1),v=Ve(e),E=async()=>{var S,T;if(e.dataType==="request")try{h.value=!0;const A=await v();u((T=(S=A==null?void 0:A.data)==null?void 0:S.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(A){console.error(A)}finally{h.value=!1}},b=ke(e)("click",S=>{const T=d(e.id);g(e.id,{...T,type:e.type,RECORD:S==null?void 0:S.data})}),x=ot(e),k=async()=>{var S;try{h.value=!0;const T=await x(),{data:A}=(T==null?void 0:T.data)||{};if(A){const{columns:C=[],rows:_=[]}=((S=T==null?void 0:T.data)==null?void 0:S.data)??{};let N=[];if(C.length>0){const z=C[0],P=C[1];N=_.map(U=>({name:U[z],value:isNaN(U[P])?0:U[P]||0}))}y(N)}}catch(T){console.error(T)}finally{h.value=!1}},{loadedData:B}=n.inject(pt,{loadedData:{}}),D=n.ref(!1);n.watch(B,S=>{if(e.dataType==="indicator"){const T=Jt(e.graphicConfig);T!=null&&T.length&&(!n.unref(D)&&tt(e.graphicConfig,S)?(D.value=!0,R()):tt(e.graphicConfig,S)||(D.value=!1))}},{deep:!0});const R=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(B))&&k();break;case"request":E();break}};Oe(e,{resetRecord:()=>{const S=e.id,T=d(S);g(S,{...T,RECORD:""})},refreshData:R,click:b}),o({refreshData:R});const{setRequest:w}=n.inject(Fe,{setRequest:S=>{}});return typeof w=="function"&&w({id:e.id,requestFn:R,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:h,ecanModal:i}}}),s1="";function Lf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Ji=xe(me(Of,[["render",Lf]])),ia={...Ce,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},la=be(ia),Xi=["click","refreshData","resetRecord"];$e.use([Et.CanvasRenderer,ut.LineChart,pe.ToolboxComponent,pe.TitleComponent,pe.LegendComponent,pe.MarkLineComponent]);const Nf=n.defineComponent({name:"EcanLine",props:{...la},components:{Spin:Ot,Echarts:yt,EcanModal:At},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Se(e),i=n.ref([]),s=n.ref([]),l=n.ref(),f=n.computed(()=>a.value?rt:12),c=n.ref({});let d;const g=n.ref([]),m=n.computed(()=>{const _=e.xAxisLabelFormatter,N=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(){Ut(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var z;a.value=!0,(z=l.value)==null||z.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:z=>{var F;const P=z.length;let U="",W=e.tooltipFormatter;d=(F=z[0])==null?void 0:F.data,W===""&&(W="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:L,seriesName:I,name:M,value:j,data:ee}=z[q]||{};if(q===0){let $=M;typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&($=(+M).toString()),U+=`${nt(_,$)}<br/>`}U+=Te(W,{textData:{marker:L,name:M,value:j,a:I,b:M,c:j||0,...ee}},{useNewline:!0,useSpace:!0}),U+="<br/>"}return U},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(z=>{let P={};return z&&typeof z=="object"?P={...z}:P={value:z},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(z){return typeof z=="string"&&z[0]==="0"&&!isNaN(+z)&&(z=(+z).toString()),nt(_,z)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(z){return nt(N,z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map(z=>({name:z.name,icon:e.legendType}))},series:n.unref(i)}}),u=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:h}=n.inject(we,{getGlobalModel:_=>{},setGlobalModel:(_,N)=>{}}),{pageMode:v}=n.inject(ze,{pageMode:"normal"}),E=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(_=[],N=!1)=>{let z;if(e.dataFieldConfigType==="key"){const F=N?e.keyTypeDataFieldNames:null;z=Ct(_,F)}else if(e.dataFieldConfigType==="value"){const F=N?e.valueTypeDataFieldNames:null;z=Lt(_,F)}s.value=z.dimensions,g.value=z.dataset;const P=z.dataset,U=[],W=P.length;for(let F=0;F<W;F++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),U.push({type:"line",...P[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,...q},...n.unref(E)})}i.value=U},b=(_=[],N,z=!1)=>{const U=Ct(_,z?N:null,!0);s.value=U.dimensions,g.value=U.dataset;const W=U.dataset,F=[],q=W.length;for(let L=0;L<q;L++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),F.push({type:"line",...W[L],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[L]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[L],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(E)})}i.value=F};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType],([_])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(_)},{immediate:!0,deep:!0});const x=n.ref(!1),k=Ve(e),B=async()=>{var _,N;if(e.dataType==="request")try{x.value=!0;const z=await k();p((N=(_=z==null?void 0:z.data)==null?void 0:_.data)==null?void 0:N.rows,!0)}catch(z){console.error(z)}finally{x.value=!1}},R=ke(e)("click",_=>{const N=y(e.id);h(e.id,{...N,type:e.type,RECORD:e.tooltipShow?d:_.data})}),O=_=>{t.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&R()};e.tooltipShow?c.value["zr:click"]=O:c.value.click=R;const w=ot(e),S=async()=>{var _;try{x.value=!0;const N=await w(),{columns:z=[],rows:P=[]}=((_=N==null?void 0:N.data)==null?void 0:_.data)??{};let U;z.length>0&&(U={name:z[0],types:z.slice(1).map(W=>({label:W,value:W}))}),b(P,U,!0)}catch(N){console.error(N)}finally{x.value=!1}},T=()=>{switch(e.dataType){case"indicator":S();break;case"request":B();break}};Oe(e,{refreshData:T,resetRecord:()=>{const _=e.id,N=y(_);h(_,{...N,RECORD:""})},click:R});const{setRequest:C}=n.inject(Fe,{setRequest:_=>{}});return typeof C=="function"&&C({id:e.id,requestFn:T,sortNum:e.requestSort}),o({refreshData:T}),{option:m,style:r,click:R,loading:x,onClose:u,ecanModal:l,eventObj:c,echartRef:t}}}),f1="";function Mf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const e0=xe(me(Nf,[["render",Mf]])),sa={...Ce,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ca=be(sa),t0=["refreshData","click","resetRecord"];$e.use([Et.CanvasRenderer,ut.BarChart,pe.TitleComponent,pe.LegendComponent,pe.DatasetComponent,pe.ToolboxComponent,pe.MarkLineComponent]);const zf=n.defineComponent({name:"EcanBar",props:{...ca},components:{Spin:Ot,Echarts:yt,EcanModal:At,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Se(e),f=n.ref([]),c=n.ref(),d=n.ref({});let g;const m=n.computed(()=>a.value?rt:12),u=n.computed(()=>{const{gradientShow:L,gradientColors:I,gradientOffset:M,barBorderRadius:j}=e,ee=n.unref(f),$=ee.length,Q=[];for(let J=0;J<$;J++){const K={...ee[J],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(K.stack="stack"),K.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:te=>{let X="",re=e.labelFormatter;re===""&&(re="{c}");const{seriesName:ue,name:ve,value:De,data:_e}=te||{};return X+=Te(re,{textData:{name:ve,value:De,a:ue,b:ve,c:De||0,..._e}},{useNewline:!0,useSpace:!0}),X}},K.itemStyle={},L&&(K.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[J]},{offset:M,color:I[J]},{offset:1,color:I[J]}]}}),j){const te=j.split(",");if(te!=null&&te.length){const X=[];for(const re of te){const ue=parseFloat(re);isNaN(ue)||X.push(ue)}K.itemStyle.borderRadius=X}}e.isShowMarkLine&&(K.markLine={data:[{type:e.markLineType}]}),Q.push(K)}return Q}),y=n.ref([]),h=n.ref(!1),v=n.computed(()=>{const L=e.yAxisLabelFormatter,I=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const M=t.value.chart.getOption(),{xAxis:j}=M||{};j&&j.length&&(s.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(){Ut(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var M;a.value=!0,(M=c.value)==null||M.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:M=>{var Q;const j=M.length;let ee="",$=e.tooltipFormatter;g=(Q=M[0])==null?void 0:Q.data,$===""&&($="{marker} {a} {c}");for(let J=0;J<j;J++){const{marker:K,seriesName:te,name:X,value:re,data:ue}=M[J]||{};if(J===0){let ve=X;typeof X=="string"&&X[0]==="0"&&!isNaN(+X)&&(ve=(+X).toString()),ee+=`${nt(I,ve)}<br/>`}ee+=Te($,{textData:{marker:K,name:X,value:re,a:te,b:X,c:re||0,...ue}},{useNewline:!0,useSpace:!0}),ee+="<br/>"}return ee},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(f).map((M,j)=>({name:M.name,itemStyle:{color:e.colors[j]},icon:e.legendType}))},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),nt(I,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(M){return nt(L,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(u)}}),{pageMode:E}=n.inject(ze,{pageMode:"normal"}),p=()=>{a.value=!1},b=(L=[],I=!1)=>{let M={};if(e.dataFieldConfigType==="key"){const j=I?e.keyTypeDataFieldNames:null;M=Ct(L,j)}else if(e.dataFieldConfigType==="value"){const j=I?e.valueTypeDataFieldNames:null;M=Lt(L,j)}f.value=M.dataset,y.value=M.dimensions},x=(L=[],I,M=!1)=>{const ee=Ct(L,M?I:null,!0);f.value=ee.dataset,y.value=ee.dimensions},k=n.computed(()=>n.unref(y).map(L=>{let I={};return L&&typeof L=="object"?I={...L}:I={value:L},I}));n.watch(()=>[e.data,e.labelFormatter],([L])=>{(e.dataType==="static"||n.unref(E)==="design")&&b(L)},{immediate:!0,deep:!0});const B=Ve(e),D=async()=>{var L,I;try{h.value=!0;const M=await B();b((I=(L=M==null?void 0:M.data)==null?void 0:L.data)==null?void 0:I.rows,!0)}catch(M){console.error(M)}finally{h.value=!1}},R=ot(e),O=async()=>{var L;try{h.value=!0;const I=await R(),{columns:M=[],rows:j=[]}=((L=I==null?void 0:I.data)==null?void 0:L.data)??{};let ee;M.length>0&&(ee={name:M[0],types:M.slice(1).map($=>({label:$,value:$}))}),x(j,ee,!0)}catch(I){console.error(I)}finally{h.value=!1}},{loadedData:w}=n.inject(pt,{loadedData:{}}),S=n.ref(!1);n.watch(w,L=>{if(e.dataType==="indicator"){const I=Jt(e.graphicConfig);I!=null&&I.length&&(!n.unref(S)&&tt(e.graphicConfig,L)?(S.value=!0,T()):tt(e.graphicConfig,L)||(S.value=!1))}},{deep:!0});const T=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(w))&&O();break;case"request":D();break}},A=(L,I)=>!!n.unref(s)[I.value].value.includes(L),C=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let I=0;I<7;I++)await _(L,I)},_=(L,I)=>new Promise(M=>{setTimeout(()=>{const{series:j,color:ee,xAxis:$}=L,Q=t.value.chart,{splitArea:J={}}=$[0]||{};j.forEach((K,te)=>{const X=K.data;let re="";I%2?re=ee[te]+"a8":re=ee[te],X[i.value].itemStyle={color:re}}),I%2?(J.show=!0,J.areaStyle.color=n.unref(s).map((K,te)=>te===i.value?"#ff003b26":"")):J.show=!1,Q.setOption({series:j,xAxis:$}),M()},200)});o({refreshData:T});const N=ke(e),{getGlobalModel:z,setGlobalModel:P}=n.inject(we,{getGlobalModel:L=>{},setGlobalModel:(L,I)=>{}}),U=N("click",L=>{const I=z(e.id);P(e.id,{...I,type:e.type,RECORD:e.tooltipShow?g:L.data})}),{setRequest:W}=n.inject(Fe,{setRequest:L=>{}});typeof W=="function"&&W({id:e.id,requestFn:T,sortNum:e.requestSort});const F=()=>{const L=e.id,I=z(L);P(L,{...I,RECORD:""})},q=L=>{t.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&U()};return e.tooltipShow?d.value["zr:click"]=q:d.value.click=U,Oe(e,{refreshData:T,click:U,resetRecord:F}),{option:v,style:l,refreshData:T,click:U,loading:h,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:C,onFilterOption:A,locationVisible:r,locationValue:i,locationNames:s,eventObj:d}}}),u1="",h1="",Ff=e=>(n.pushScopeId("data-v-a6b45d1d"),e=e(),n.popScopeId(),e),Pf={class:"location-wrap"},qf=Ff(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Hf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),d=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Pf,[qf,n.createVNode(d,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const n0=xe(me(zf,[["render",Hf],["__scopeId","data-v-a6b45d1d"]])),fa={...Ce,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},da=be(fa),o0=["click","refreshData","resetRecord"];$e.use([Et.CanvasRenderer,ut.ScatterChart,pe.ToolboxComponent,pe.TitleComponent,pe.TooltipComponent,pe.LegendComponent,pe.MarkLineComponent]);const Vf=n.defineComponent({name:"EcanScatter",props:{...da},components:{Spin:Ot,Echarts:yt,EcanModal:At},setup(e){const o=n.ref(!1),t=Se(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?rt:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const k=e.xAxisLabelFormatter,B=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(){Ut(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(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(D){return typeof D=="string"&&D[0]==="0"&&!isNaN(+D)&&(D=(+D).toString()),nt(k,D)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(D){return nt(B,D)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(D){var A;const{marker:R,seriesName:O}=D,w=((A=D==null?void 0:D.data)==null?void 0:A.record)??{},{name:S,value:T}=w;return Te(e.tooltipFormatter,{textData:{marker:R,seriesName:O,a:O,b:S,c:T,...w}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:f,setGlobalModel:c}=n.inject(we,{getGlobalModel:k=>{},setGlobalModel:(k,B)=>{}}),{pageMode:d}=n.inject(ze,{pageMode:"normal"}),g=(k=[],B)=>{const{name:D="name",value:R="value"}=B||{};a.value=k.map(O=>({value:[O[D],O[R]],record:O}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(d)==="design")&&g(k)},{immediate:!0,deep:!0});const m=n.ref(!1),u=Ve(e),y=async()=>{var k,B;if(e.dataType==="request"){m.value=!0;try{const D=await u();g((B=(k=D==null?void 0:D.data)==null?void 0:k.data)==null?void 0:B.rows,e.dataFieldNames)}catch(D){console.error(D)}finally{m.value=!1}}},h=()=>{o.value=!1},E=ke(e)("click",k=>{const B=e.id,D=f(B);c(B,{...D,type:e.type,RECORD:k==null?void 0:k.data})});Oe(e,{refreshData:()=>{y()},click:E,resetRecord:()=>{const k=e.id,B=f(k);c(k,{...B,RECORD:""})}});const{setRequest:x}=n.inject(Fe,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:E,loading:m,onClose:h,ecanModal:r}}}),m1="";function jf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const a0=xe(me(Vf,[["render",jf]])),ua={...Ce,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},ha=be(ua),Uf=n.defineComponent({name:"EcanCustomGraph",props:{...ha},components:{Echarts:yt},setup(e){const o=Se(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:F0}}});function Gf(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const r0=xe(me(Uf,[["render",Gf]])),ga={...Ce,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ma=be(ga),i0=["refreshData","click","resetRecord"];$e.use([Et.CanvasRenderer,ut.BarChart,ut.LineChart,pe.TitleComponent,pe.LegendComponent,pe.DatasetComponent,pe.ToolboxComponent,pe.MarkLineComponent]);const Wf=n.defineComponent({name:"EcanComboGraph",props:{...ma},components:{Spin:Ot,Echarts:yt,EcanModal:At,AModal:se.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let f;const c=Se(e),d=n.ref([]),g=n.ref([]),m=n.ref(),u=n.ref([]),y=n.computed(()=>a.value?rt:12),h=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:M}=I||{};M&&M.length&&(s.value=M[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(){Ut(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=m.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(u).map((I,M)=>({name:I.name,itemStyle:{color:e.colors[M]},icon:e.legendType}))},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var Q;const M=I.length;let j="",ee=e.tooltipFormatter;f=(Q=I[0])==null?void 0:Q.data,ee===""&&(ee="{marker} {a} {c}");const $=e.seriesTypes;for(let J=0;J<M;J++){const K=$[J],{tooltipFormatter:te}=K||{},{marker:X,seriesName:re,name:ue,value:ve,data:De}=I[J]||{};if(J===0){let _e=ue;typeof ue=="string"&&ue[0]==="0"&&!isNaN(+ue)&&(_e=(+ue).toString()),j+=`${nt(e.xAxisLabelFormatter,_e)}<br/>`}j+=Te(te||ee,{textData:{marker:X,name:ue,value:ve,seriesName:re,a:re,b:ue,c:ve||0,...De}},{useNewline:!0,useSpace:!0}),j+="<br/>"}return j},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(I=>{let M={};return I&&typeof I=="object"?M={...I}:M={value:I},M}),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()),nt(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(k),series:n.unref(d)})),{pageMode:v}=n.inject(ze,{pageMode:"normal"}),E=()=>{a.value=!1},p=(I=[],M=!1)=>{let j;if(e.dataFieldConfigType==="key"){const $=M?e.keyTypeDataFieldNames:null;j=Ct(I,$)}else if(e.dataFieldConfigType==="value"){const $=M?e.valueTypeDataFieldNames:null;j=Lt(I,$)}g.value=j.dimensions;const ee=j.dataset;u.value=j.dataset,d.value=x(ee)},b=(I=[],M,j=!1)=>{const $=Ct(I,j?M:null,!0);g.value=$.dimensions;const Q=$.dataset;u.value=$.dataset,d.value=x(Q)};function x(I){const M=[],j=I.length,ee=e.seriesTypes;for(let $=0;$<j;$++){const Q=ee[$],{type:J,axisIndex:K}=Q||{};let te={type:J,yAxisIndex:K,...I[$]};if(J==="line"){const X={};e.shadowColor&&(X.shadowColor=e.shadowColor,X.shadowBlur=e.shadowBlur,X.shadowOffsetY=e.shadowOffsetY,X.shadowOffsetX=e.shadowOffsetX),te={...te,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[$]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...X}}}if(J==="bar"){const{gradientShow:X,gradientColors:re,gradientOffset:ue}=e,ve={};if(e.barBorderRadius){const De=e.barBorderRadius.split(",");if(De!=null&&De.length){const _e=[];for(const Ke of De){const Ne=parseFloat(Ke);isNaN(Ne)||_e.push(Ne)}ve.borderRadius=_e}}X&&(ve.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:ue,color:re[$]},{offset:1,color:re[$]}]}),te={...te,barWidth:e.barWidth,itemStyle:ve}}e.isShowMarkLine&&(te.markLine={data:[{type:e.markLineType}]}),M.push(te)}return M}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType],([I])=>{(e.dataType==="static"||n.unref(v)==="design")&&p(I)},{immediate:!0,deep:!0});const k=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(M=>({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(j){return nt(M.axisLabelFormatter,j)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),B=n.ref(!1),D=Ve(e),R=async()=>{var I,M;if(e.dataType==="request")try{B.value=!0;const j=await D();p((M=(I=j==null?void 0:j.data)==null?void 0:I.data)==null?void 0:M.rows,!0)}catch(j){console.error(j)}finally{B.value=!1}},O=ot(e),w=async()=>{var I;try{B.value=!0;const M=await O(),{columns:j=[],rows:ee=[]}=((I=M==null?void 0:M.data)==null?void 0:I.data)??{};let $;j.length>0&&($={name:j[0],types:j.slice(1).map(Q=>({label:Q,value:Q}))}),b(ee,$,!0)}catch(M){console.error(M)}finally{B.value=!1}},{loadedData:S}=n.inject(pt,{loadedData:{}}),T=n.ref(!1);n.watch(S,I=>{if(e.dataType==="indicator"){const M=Jt(e.graphicConfig);M!=null&&M.length&&(!n.unref(T)&&tt(e.graphicConfig,I)?(T.value=!0,A()):tt(e.graphicConfig,I)||(T.value=!1))}},{deep:!0});const A=()=>{switch(e.dataType){case"indicator":tt(e.graphicConfig,n.unref(S))&&w();break;case"request":R();break}},C=(I,M)=>!!n.unref(s)[M.value].value.includes(I),_=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let M=0;M<7;M++)await N(I,M)},N=(I,M)=>new Promise(j=>{setTimeout(()=>{const{series:ee,color:$,xAxis:Q}=I,J=t.value.chart,{splitArea:K={}}=Q[0]||{};ee.forEach((te,X)=>{const re=te.data;let ue="";M%2?ue=$[X]+"a8":ue=$[X],re[i.value].itemStyle={color:ue}}),M%2?(K.show=!0,K.areaStyle.color=n.unref(s).map((te,X)=>X===i.value?"#ff003b26":"")):K.show=!1,J.setOption({series:ee,xAxis:Q}),j()},200)});o({refreshData:A});const z=ke(e),{getGlobalModel:P,setGlobalModel:U}=n.inject(we,{getGlobalModel:I=>{},setGlobalModel:(I,M)=>{}}),W=z("click",I=>{const M=P(e.id);U(e.id,{...M,type:e.type,RECORD:e.tooltipShow?f:I==null?void 0:I.data})}),F=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&W()};e.tooltipShow?l.value["zr:click"]=F:l.value.click=W;const{setRequest:q}=n.inject(Fe,{setRequest:I=>{}});return typeof q=="function"&&q({id:e.id,requestFn:A,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const I=e.id,M=P(I);U(I,{...M,RECORD:""})},refreshData:A,click:W}),{style:c,option:h,click:W,loading:B,onClose:E,ecanModal:m,echartRef:t,handleLocationOk:_,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),p1="",b1="",$f=e=>(n.pushScopeId("data-v-4fe6d0c3"),e=e(),n.popScopeId(),e),Zf={class:"location-wrap"},Yf=$f(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Kf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),d=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Zf,[Yf,n.createVNode(d,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,u)=>(n.openBlock(),n.createBlock(c,{key:u,value:u},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const l0=xe(me(Wf,[["render",Kf],["__scopeId","data-v-4fe6d0c3"]])),ya={...Ce,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:""},xa=be(ya),s0=["refreshData","click","resetRecord"];$e.use([Et.CanvasRenderer,ut.RadarChart,pe.ToolboxComponent,pe.TitleComponent,pe.LegendComponent]);const Qf=n.defineComponent({name:"EcanRadar",props:{...xa},components:{Spin:Ot,Echarts:yt,EcanModal:At},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Se(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?rt:12),f=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),d=n.computed(()=>{const A=n.unref(f),C=A.length,_=[];for(let N=0;N<C;N++){const{name:z,data:P=[]}=A[N],U=[{name:z,value:P.map(F=>F.value)}],W={type:"radar",name:z,data:U,areaStyle:{color:e.colors[N],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}};_.push(W)}return _}),g=n.computed(()=>{var z;const A=[],C=[],_=n.unref(f),N=_.length;for(let P=0;P<N;P++){const{data:U=[]}=_[P];for(let W=0;W<U.length;W++)C.push(U[W].value)}if((z=i.value)!=null&&z.length){const P=C!=null&&C.length?Math.max(...C)*1.2:0;for(const U of i.value)A.push({name:U,max:P})}return A}),m=n.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ut(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var A;a.value=!0,(A=s.value)==null||A.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:A=>{let C="",_=e.tooltipFormatter;_===""&&(_="{marker} {a} {c}");for(let N=0;N<n.unref(g).length;N++){const z=n.unref(g)[N],{marker:P,seriesName:U,value:W}=A||{};N===0&&U&&(C+=`${U}<br/>`),C+=Te(_,{textData:{marker:P,name:z.name,value:W[N],a:z.name,b:z.name,c:W[N]||0,type:U}},{useNewline:!0,useSpace:!0}),C+="<br/>"}return C},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),axisName:{color:e.axisNameColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:a.value?rt:e.legendFontSize},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(f).map(A=>({name:A.name,icon:e.legendType}))},series:n.unref(d)})),u=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:h}=n.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,C)=>{}}),{pageMode:v}=n.inject(ze,{pageMode:"normal"}),E=(A=[],C=!1)=>{let _;if(e.dataFieldConfigType==="key"){const N=C?e.keyTypeDataFieldNames:null;_=Ct(A,N)}else if(e.dataFieldConfigType==="value"){const N=C?e.valueTypeDataFieldNames:null;_=Lt(A,N)}i.value=_.dimensions,f.value=_.dataset},p=(A=[],C,_=!1)=>{const z=Ct(A,_?C:null,!0);i.value=z.dimensions,f.value=z.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize],([A])=>{(e.dataType==="static"||n.unref(v)==="design")&&E(A)},{immediate:!0,deep:!0});const b=n.ref(!1),x=Ve(e),k=async()=>{var A,C;if(e.dataType==="request")try{b.value=!0;const _=await x();E((C=(A=_==null?void 0:_.data)==null?void 0:A.data)==null?void 0:C.rows,!0)}catch(_){console.error(_)}finally{b.value=!1}},B=ke(e),D=A=>{const C=A.event.topTarget.__dimIdx;console.log("dimIdx",C),console.log("e",A),C&&B("click",()=>{var P;const{value:_,name:N}=A.data||{};console.log("radarIndicator",g.value);const z=y(e.id);h(e.id,{...z,type:e.type,RECORD:{[n.unref(c)]:((P=n.unref(g)[C])==null?void 0:P.name)||"",[N]:_[C],seriesName:N}})})()},R=ot(e),O=async()=>{var A;try{b.value=!0;const C=await R(),{columns:_=[],rows:N=[]}=((A=C==null?void 0:C.data)==null?void 0:A.data)??{};let z;_.length>0&&(c.value=_[0],z={name:_[0],types:_.slice(1).map(P=>({label:P,value:P}))}),p(N,z,!0)}catch(C){console.error(C)}finally{b.value=!1}},w=()=>{switch(e.dataType){case"indicator":O();break;case"request":k();break}};Oe(e,{refreshData:w,resetRecord:()=>{const A=e.id,C=y(A);h(A,{...C,RECORD:{}})},click:D});const{setRequest:T}=n.inject(Fe,{setRequest:A=>{}});return typeof T=="function"&&T({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:m,style:r,click:D,loading:b,onClose:u,ecanModal:s,echartRef:t}}}),S1="";function Jf(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),f=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const c0=xe(me(Qf,[["render",Jf]])),Xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",ed="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==",td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",nd="data:image/png;base64,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",pa={...Ce,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},ba=be(pa),f0=["click"],od=n.defineComponent({name:"EcanBorder",props:{...ba},setup(e){const o=Se(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:h,gradientColor:v,gradientOffset:E,gradientAngle:p,backgroundColor:b}=e;if(h){let x=v;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${E*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let h={};return y!=null&&y.length&&y.find(E=>E.emit==="showModal")&&(h={cursor:"pointer"}),h}),{theme:r}=n.inject(ze,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Xf,"../../assets/border-title-decoration-left2.png":ed})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":td,"../../assets/border-title-decoration-right2.png":nd})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),f=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,h=[],v={};if(y){const E=y.split(",");for(const p of E)(+p||+p==0)&&h.push(+p+"px")}return h!=null&&h.length&&(v.borderRadius=h.join(" ")),v}),g=ke(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,y=>{m.value=y},{immediate:!0,deep:!0}),Oe(e,{click:g});const{setGlobalModel:u}=n.inject(we,{setGlobalModel:(y,h)=>{}});return u(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:f,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),w1="",kt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),ad=["id"],rd=kt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),id=kt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),ld=kt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),sd=kt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),cd={class:"title-item"},fd=["src"],dd={class:"title"},ud=["src"],hd=kt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),gd=kt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),md=kt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),yd=kt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),xd={key:2,class:"left-title"},pd={class:"title"};function bd(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[rd,id,ld,sd],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",cd,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,fd),n.createElementVNode("div",dd,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,ud)])],2),hd,gd,md,yd],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",xd,[n.createElementVNode("div",pd,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,ad)}const d0=xe(me(od,[["render",bd],["__scopeId","data-v-8dd53b8f"]])),va={...Ce,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},Sa=be(va),u0=["tabChange"],vd=n.defineComponent({name:"EcanTabs",props:{...Sa},components:{ASelect:se.Select,ASelectOption:se.SelectOption},setup(e){const o=Se(e),t=n.ref(0);n.watch(()=>e.activeKey,u=>{t.value=u},{immediate:!0});const{pageMode:a}=n.inject(ze,{pageMode:"normal"});let r=null;const i=()=>{const u=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&u>0&&(r=setInterval(()=>{const y=n.unref(t)+1;y<=u?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,u=>{s.value=u,l.value=Array.isArray(u)&&u.length>0?u[0]:{}},{immediate:!0,deep:!0});const f=u=>t.value===u,c=ke(e),{setGlobalModel:d}=n.inject(we,{setGlobalModel:(u,y)=>{}});d(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject(Kt,{emitRefreshPage:()=>{}}),m=c("tabChange",(u,y)=>{y!==n.unref(t)&&(l.value=u,t.value=y,g())});return Oe(e,{tabChange:m}),{style:o,activeKey:t,isActive:f,tabChange:m,myData:s,useImagePath:wt}}}),k1="",Sd=["id"],Cd=["onClick"];function wd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(f,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:c,onClick:n.withModifiers(d=>e.tabChange(f,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(f.title),5)],12,Cd))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(f,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:d=>e.tabChange(f,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(f.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Sd)}const h0=xe(me(vd,[["render",wd],["__scopeId","data-v-fbab260a"]])),Ca={...Ce,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},wa=be(Ca),g0=["click"],Aa=n.defineComponent({name:"EcanImage",props:{...wa},setup(e){const o=Se(e),t=n.computed(()=>wt(e.imgUrl)),{pageMode:a}=n.inject(ze,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(we,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}}),l=ke(e)("click",()=>{const f=r(e.id);if(i(e.id,{...f,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...f,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",d=di(n.unref(a),c),g=e.href;let m=g||d;m=Te(m);const u=e.target;u&&(u!=="event"?window.open(m,"_"+u):window.parent.postMessage({type:"openPage",url:g},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),m0=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},y0=Aa.setup;Aa.setup=y0?(e,o)=>(m0(),y0(e,o)):m0;const B1="",Ad=["src"];function kd(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Ad)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const x0=xe(me(Aa,[["render",kd],["__scopeId","data-v-47ea6e7c"]])),ka={...Ce,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ta=be(ka),Td=n.defineComponent({name:"EcanIframe",props:{...Ta},setup(e){const o=Se(e),{contextRequestUrl:t}=n.inject(ze,{contextRequestUrl:""}),a=n.computed(()=>{let r=Te(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${os||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),D1="",Bd=["src"];function Ed(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Bd)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const p0=xe(me(Td,[["render",Ed],["__scopeId","data-v-19bc100c"]])),Ba={...Ce,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"#000000a6",paginationBgColor:"#fff",activePaginationColor:"#1890ff",activePaginationBgColor:"#fff",hoverBackgroundColor:"#fafafa",subTotalColumn:"",subTotalName:"小计"},Ea=be(Ba),b0=["click","refreshData","resetRecord","exportTableData"],Dd="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",Id="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==",_d="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==",Da=n.defineComponent({name:"EcanTable",components:{Skeleton:on,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ea},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const V=He.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=n.ref(),i=n.ref(!1),s=Se(e),l=n.ref([]),f=n.computed(()=>e.scrollX),c=n.ref(0),d=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};n.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const Y=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),ae=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let oe=0;if(ae&&(Z-=(ae==null?void 0:ae.clientHeight)||0),ie&&e.isSummaryFixed&&(oe=(ie==null?void 0:ie.clientHeight)||0,Z-=oe),e.paginationShow){let ne=0;ne=d(),ne&&(Z-=ne)}(Y==null?void 0:Y.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(oe){const ne=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),ye=(ne==null?void 0:ne.clientHeight)||0;oe!==ye&&n.unref(c)&&(c.value=Z+oe-ye)}})})});const g=n.ref([]),m=n.ref([]),u=n.ref([]),y=n.ref([]),h=n.ref(0),v=n.ref(1),E=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(V=[])=>{var Z,Y;if(Array.isArray(V)&&V.length>0){let ae=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:oe=[]}}=e;V.forEach((ne,ye)=>{if(n.unref(a)[ye])for(const Re in n.unref(a)[ye])["dataIndex","title"].includes(Re)||(ne[Re]=n.unref(a)[ye][Re]);const de=oe.find(Re=>Re.label===ne.title),{showLabel:he=""}=de||{};he&&(ne.title=he)})}for(let oe=ae-1;oe>=0;oe--)(Y=V[oe])!=null&&Y.isHidden&&V.splice(oe,1);ae=V.length;for(let oe=0;oe<ae;oe++){const ne=V[oe];if(oe<ie?ne.fixed="left":ne.fixed=!1,ne.sorter){const st=ne.dataIndex;ne.sorter=(dt,Gt)=>dt[st]-Gt[st]}const{cellAlign:ye="center",cellColor:de,dataIndex:he,title:Re,tableFilter:We,headerCellAlign:mt,headerCellColor:Tt}=ne;We&&(p.push(he),ne.filterOptionsInputValue="",ne.filterCheckboxGroupValue=[],ne.customFilterDropdown=!0,ne.onFilter=(st,dt)=>dt[he].toString().toLowerCase().includes(st.toLowerCase())),ne.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:mt||"center",color:Tt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ne.customCell=(st,dt)=>({style:{textAlign:ye,color:de||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(j)===dt&&e.clickHighlight},onClick:W("click",()=>{const Gt=e.id,pn=F(Gt);st={dataIndex:he,title:Re,...st},q(Gt,{...pn,type:e.type,RECORD:st})})}),Array.isArray(ne.children)&&b(ne.children)}}},x=(V=[])=>{var Y;let Z=He.cloneDeep(V);return(Y=n.unref(y))!=null&&Y.length&&(Z=He.cloneDeep(n.unref(y))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(E,()=>{v.value=1,J(!1)}),n.watch(r,V=>{i.value=!!V}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{g.value=x(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([V,Z])=>{Z==="static"&&(m.value=V)},{immediate:!0});const k=n.ref({}),B=V=>{if(Array.isArray(V)){const Z=V.length,Y=p,ae=Y.length,ie={};for(let ne=0;ne<Z;ne++){const ye=V[ne];for(let de=0;de<ae;de++){const he=Y[de];if(ie[he])ie[he].add(ye[he]);else{const Re=new Set;Re.add(ye[he]),ie[he]=Re}}}const oe={};for(const ne in ie)if(Object.prototype.hasOwnProperty.call(ie,ne)){const ye=ie[ne],de=Array.from(ye);oe[ne]=de.map(he=>({label:he,value:he}))}k.value=oe}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const V=n.unref(g),Z=n.unref(m);if(B(Z),e.isReverse){const{columns:Y,dataSource:ae}=D(He.cloneDeep(V),He.cloneDeep(Z));u.value=Y,l.value=ae}else u.value=V,l.value=Z},{immediate:!0});const D=(V,Z)=>{const Y=V[0],ae=[{title:Y.title,dataIndex:"col0",key:"col0",align:"center"}];for(let oe=0;oe<Z.length;oe++){const ne=Z[oe],ye="col"+(oe+1);ae.push({title:ne[Y.dataIndex],dataIndex:ye,key:ye,align:"center"})}const ie=[];for(let oe=1;oe<V.length;oe++){const ne=V[oe],ye={col0:ne.title};for(let de=0;de<Z.length;de++){const he=Z[de];ye[`col${de+1}`]=he[ne.dataIndex]}ie.push(ye)}return{columns:ae,dataSource:ie}},R=n.ref(""),O=Ve(e),w=async(V=!0,Z={})=>{var Y;try{V&&(t.value=!0),n.unref(R)&&(Z.orderCondition=n.unref(R)),e.paginationShow&&(Z={pageNum:n.unref(v),pageSize:n.unref(E)||"10",layer:"1",...Z});const ae=await O(Z),{rows:ie=[],total:oe=0}=((Y=ae==null?void 0:ae.data)==null?void 0:Y.data)||{};if(h.value=oe,Array.isArray(ie)&&(m.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ne=[]}=e,ye=ne.find(de=>de.key==="dataSqlId");if((ye==null?void 0:ye.value)==="xt_jxzebg"){const de=ie.filter(he=>!he.绩效总额).map(he=>he.ORG_NAME);de!=null&&de.length&&n.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${de.join("、")}绩效数据为空`,duration:3})})}}}catch(ae){console.error(ae)}finally{t.value=!1}},S=({current:V},Z,Y)=>{if(v.value=V,Y&&Object.keys(Y).length>0){const{field:ae,order:ie}=Y,ne={ascend:"asc",descend:"desc"}[ie];ae!=null&&ne!=null&&ne?R.value=ae+" "+ne:ne||(R.value="")}J(!1)},T=n.computed(()=>{const V=e.simple,Z=[e.paginationPosition],Y={};return e.isShowTotal&&(Y.showTotal=ae=>`共 ${ae} 条数据`),e.paginationShow&&{simple:V,position:Z,total:n.unref(h),current:n.unref(v),pageSize:n.unref(E)||"10",showSizeChanger:!1,size:"large",...Y}}),A=V=>+V==1?"是":+V==0?"否":V,C=(V,Z)=>{const{format:Y,retentiondigit:ae,customFormatter:ie}=Z;if(Y==null||Y==="")return V;const oe={money:Ao,percentage:mn,contrast:mn,boolean:A,decimals:dc,custom:fi};return oe[Y]?Y==="decimals"?oe[Y](V,ae)||"":Y==="custom"?oe[Y](V,ie)||"":oe[Y](V)||"":""},_=V=>V==="contrast"?"upDown":"",N=V=>{const{text:Z,format:Y,declineColor:ae="#39cf93",increaseColor:ie="#ff512e"}=V;if(Y==="contrast"){const oe={fontSize:e.fontSize},ne=parseFloat(Z+"");return ne>=0?oe.color=ie:ne<0&&(oe.color=ae),oe}else return{}},z=n.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),P=V=>{const{text:Z,declineColor:Y="#39cf93",increaseColor:ae="#ff512e"}=V,{fontSize:ie}=e,oe=parseFloat(Z+""),ne={width:ie,verticalAlign:"unset"};return oe>=0?ne.filter=`drop-shadow(${ae||"#ff512e"} ${ie} -1px)`:oe<0&&(ne.filter=`drop-shadow(${Y||"#39cf93"} ${ie} -1px)`),ne},U=V=>{const Z=parseFloat(V+"");if(Z>=0)return Do;if(Z<0)return Io},W=ke(e),{getGlobalModel:F,setGlobalModel:q}=n.inject(we,{getGlobalModel:V=>{},setGlobalModel:(V,Z)=>{}}),L=(V=[],Z=[])=>{const Y=V.map(ae=>({title:ae,dataIndex:ae,key:ae}));y.value=He.cloneDeep(Y),g.value=x(Y),m.value=Z},I=ot(e),M=async(V=!0)=>{var Z,Y,ae,ie;try{V&&(t.value=!0);const oe=await I();L((Y=(Z=oe==null?void 0:oe.data)==null?void 0:Z.data)==null?void 0:Y.columns,(ie=(ae=oe==null?void 0:oe.data)==null?void 0:ae.data)==null?void 0:ie.rows)}catch(oe){console.error(oe)}finally{t.value=!1}},j=n.ref(-1),ee=(V,Z)=>({onClick:W("rowClick",()=>{const Y=e.id,ae=F(Y);q(Y,{...ae,type:e.type,RECORD:V}),j.value=Z})}),{loadedData:$}=n.inject(pt,{loadedData:{}}),Q=n.ref(!1);n.watch($,V=>{if(e.dataType==="indicator"){const Z=Jt(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(Q)&&tt(e.graphicConfig,V)?(Q.value=!0,J()):tt(e.graphicConfig,V)||(Q.value=!1))}},{deep:!0});const J=(V=!0)=>{switch(e.dataType){case"request":w(V);break;case"indicator":tt(e.graphicConfig,n.unref($))&&M(V);break}},K=()=>{const V=e.id,Z=F(V);q(V,{...Z,type:e.type,RECORD:""})},te=n.computed(()=>{const V=n.unref(u);let Z=0;const{subTotalColumn:Y,subTotalName:ae}=e;Y&&(Z=V.findIndex(de=>de.dataIndex===Y),Z<0&&(Z=0));const ie=[];let oe=0;for(let de=0;de<V.length;de++){const he=V[de],{isCalcTotal:Re}=he;de===Z?ie.push({...he,total:ae}):Re?(ie.push({...he,index:de,total:0}),oe++):ie.push({...he})}if(oe===0)return[];const ne=n.unref(l),ye=X(ie);for(let de=0;de<ye.length;de++){const he=ye[de];let Re=0;const{isCalcTotal:We,dataIndex:mt}=he;if(We===!0){for(let Tt=0;Tt<ne.length;Tt++){const dt=+ne[Tt][mt];isNaN(dt)||(Re=new M0.Big(Re).add(dt).toNumber())}he.total=Re}}return ye});function X(V){var Y;const Z=[];for(const ae of V)(Y=ae.children)!=null&&Y.length?Z.push(...X(ae.children)):Z.push(ae);return Z}const{setRequest:re}=n.inject(Fe,{setRequest:V=>{}});typeof re=="function"&&re({id:e.id,requestFn:J,sortNum:e.requestSort}),o({refreshData:J});const ue=(V="",Z)=>Te(V,Z),ve=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},De=(V,Z="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},_e=(V,Z)=>{V(Z.filterCheckboxGroupValue)},Ke=(V,Z)=>{V({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Ne=()=>{},Me=V=>{const Z=V.dataIndex;if(typeof Z=="string"){let Y=n.unref(k)[Z];const ae=n.unref(V.filterOptionsInputValue).trim();return Array.isArray(Y)?(Y=Y.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(ae.toLowerCase()):!0),Y):[]}return[]},Be=async()=>{var he,Re;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const We={layer:"1"};n.unref(R)&&(We.orderCondition=n.unref(R));const mt=await O(We);Z=((Re=(he=mt==null?void 0:mt.data)==null?void 0:he.data)==null?void 0:Re.rows)||{}}const Y=n.unref(u),ae=[],ie=[];Y==null||Y.forEach(We=>{ae.push(We.dataIndex),ie.push(We.title)});const oe=Z.map(We=>He.pick(We,ae)),ne=Wt.utils.book_new(),ye=Wt.utils.aoa_to_sheet([ie]),de=Wt.utils.sheet_add_json(ye,oe,{skipHeader:!0,origin:"A2"});Wt.utils.book_append_sheet(ne,de,"sheet"),Wt.writeFile(ne,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Le=(V,Z=2)=>{const Y=+V*100;return isNaN(Y)||Y<=0?0:Y>=100?100:Y.toFixed(Z)};Oe(e,{resetRecord:K,refreshData:J,exportTableData:Be});const Ge=(V,Z)=>{let Y=null;return e.stripedShow&&(Y=Z%2===1?"table-striped":null),Y},Qe=n.computed(()=>{let V=0;const{height:Z,isPageBottom:Y}=e;return Y&&Z&&(V=parseFloat(Z)-d()),V?V+"px":"100%"}),je=n.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),qe=n.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),lt=n.computed(()=>parseFloat(e.fontSize)+16);return{x:f,y:c,style:s,customRow:ee,pagination:T,formatFn:C,contrastClass:_,tableChange:S,summaryList:te,loading:t,onTouchHrefEvent:De,handleHref:ue,handleHrefTarget:ve,useRowIndex:j,tableColumns:u,tableDataSource:l,useFilterOptions:Me,useSetSelectedKeys:_e,onResetFilter:Ke,onSearchFilterOptions:Ne,exportTableData:Be,handleProgressText:Le,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:Ge,tableHeight:Qe,tableHeaderBgColor:je,tableBodyBgColor:qe,getChgStyle:N,chgBoxStyle:z,getChgBoxImgStyle:P,getChgBoxImgSrc:U,seqIcon1:Dd,seqIcon2:Id,seqIcon3:_d,iconSize:lt}}}),v0=()=>{n.useCssVars(e=>({"2adb3ffb":e.stripedColor,11341675:e.paginationBgColor,"35194d0c":e.paginationColor,"3f36034f":e.activePaginationBgColor,"40deb4d4":e.activePaginationColor,"628d11f0":e.hoverBackgroundColor,"5ce2031c":e.tableHeaderBgColor,"280a2c06":e.tableBodyBgColor}))},S0=Da.setup;Da.setup=S0?(e,o)=>(v0(),S0(e,o)):v0;const _1="",R1="",Rd=e=>(n.pushScopeId("data-v-80ca1aa4"),e=e(),n.popScopeId(),e),Od=["id"],Ld={key:0,class:"table-tool"},Nd=n.createTextVNode("导出数据"),Md=n.createTextVNode(" 搜索 "),zd=n.createTextVNode(" 重置 "),Fd=["src","width","height"],Pd=["src","width","height"],qd=["src","width","height"],Hd={key:1},Vd={key:1,class:"action-list"},jd=["href","target","onClick"],Ud={key:2,class:"progress-cell"},Gd={key:0},Wd=["src"],$d={key:1},Zd=["src"],Yd={class:"ant-pagination-options-quick-jumper"},Kd=Rd(()=>n.createElementVNode("span",null,"条 / 页",-1));function Qd(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),f=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),d=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=n.resolveComponent("a-table"),u=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(u,{loading:e.loading},{default:n.withCtx(()=>{var y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Ld,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[Nd]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:h,selectedKeys:v,setSelectedKeys:E,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:h.filterOptionsInputValue,"onUpdate:value":x=>h.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(f,{value:h.filterCheckboxGroupValue,"onUpdate:value":x=>h.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(h),onChange:x=>e.useSetSelectedKeys(E,h)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Md]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,h),["stop"])},{default:n.withCtx(()=>[zd]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:h,index:v,text:E,record:p})=>{var b,x;return[h.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[v===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Fd)):v===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Pd)):v>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,qd)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(v+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Hd,n.toDisplayString(v+1),1))],64)):h.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Vd,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(k,B)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:B},[n.createElementVNode("a",{href:e.handleHref(k.href,p),target:e.handleHrefTarget(k.target),style:n.normalizeStyle({color:k.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:D=>e.onTouchHrefEvent(k.target,e.handleHref(k.href,p))},n.toDisplayString(k.title),13,jd)]))),128))])):h.format==="progress"?(n.openBlock(),n.createElementBlock("div",Ud,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:h.progressColor||"#1890ff",height:h.progressWidth||"18px",width:`${e.handleProgressText(E,h.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(E)<100?h.progressTextColor||"#333":h.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(E,h.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",Gd,n.toDisplayString(((b=h==null?void 0:h.customFormatter)==null?void 0:b.split("{value}")[0])||""),1)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle(e.getChgStyle({...h,text:E}))},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:E})),src:e.getChgBoxImgSrc(E)},null,12,Wd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(h.format!=null?e.formatFn(E,h):E),1)],6),h.format==="contrast"?(n.openBlock(),n.createElementBlock("span",$d,n.toDisplayString(((x=h==null?void 0:h.customFormatter)==null?void 0:x.split("{value}")[1])||""),1)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(h,v)=>(n.openBlock(),n.createBlock(c,{key:v,index:v,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:h.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(h.format)]),style:n.normalizeStyle({...e.getChgStyle({...h,text:h.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[h.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...h,text:h.total})),src:e.getChgBoxImgSrc(h.total)},null,12,Zd)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((h.format!=null||h.format!=="")&&e.formatFn(h.total,h)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Yd,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=h=>e.pageSize=h)},null,512),[[n.vModelText,e.pageSize]]),Kd])],8,["to"])):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,Od)}const C0=xe(me(Da,[["render",Qd],["__scopeId","data-v-80ca1aa4"]])),Ia={...Ce,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},_a=be(Ia),w0=["click"];$e.use([Et.CanvasRenderer,ut.MapChart,ut.ScatterChart,pe.VisualMapComponent,pe.TooltipComponent,pe.GraphicComponent]);const Jd=n.defineComponent({name:"EcanMap",components:{Echarts:yt},props:{..._a},setup(e){const o=Ve(e),t=Ve({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Se(e,["backgroundImage"]),l=n.ref(),f=n.computed(()=>wt(e.geoBackgroundImage)),c=n.computed(()=>wt(e.backgroundImage)),d=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),g=n.computed(()=>{const A=e.symbolImage;return e.symbolImage?"image://"+wt(A):"circle"}),m=A=>{let C=e.tooltipFormatter;const _=C.match(/\{(.+?)\}/g);if(_==null||_.length===0)return C;for(let N=0;N<_.length;N++){const z=_[N];let P=z.slice(1,-1).trim();const U=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,W=P.match(U);for(let F=0;F<W.length;F++){const q=W[F],L=A[q];L!=null&&(P=P.replace(q,L))}C=C.replace(z,P)}return C.split(`
|
|
118
|
+
`)},u=n.ref(!1),y=n.ref("");let h=new AbortController;const v=(A,C)=>{const _=h.signal;u.value=!0,r.value=A,t({name:A,signal:_}).then(N=>{var z,P;if(N){const U=((P=(z=N==null?void 0:N.data)==null?void 0:z.data)==null?void 0:P.rows)||[];let W="";for(const F of U){const q=m(F)||[];if(q!=null&&q.length)for(const L of q)W+=`<div style="word-break: break-all;white-space: normal;">${L}</div>`}W=`<div style="max-width:200px;">${W}</div>`,i.value=W,C(n.unref(y),W)}else _.aborted?i.value="Loading":i.value=A,C(n.unref(y),i.value);u.value=!1})},E=n.computed(()=>{const A=e.geoCenter;let C;return typeof A=="string"&&A!==""&&(C=A.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:n.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:C,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(_,N,z)=>{y.value=N;const{name:P=""}=_,{requestUrl:U}=e.tooltipRequestData;if(!U)return P;if(n.unref(u))n.unref(r)!==P&&(h.abort(),h=new AbortController);else{if(n.unref(r)===P)return n.unref(i);v(P,z)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(d),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:n.unref(g),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),p=n.ref(!1),b=async()=>{var _;p.value=!1;const A=e.mapJson,C=`map-${e.id}`;if(A!=null&&A.path){const N=await ct(((_=window==null?void 0:window.config)==null?void 0:_.uploadPath)+A.path);$e.registerMap(C,(N==null?void 0:N.data)||{})}else $e.registerMap(C,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var A,C;if(e.dataType==="request"){p.value=!1;try{const _=await o(),N=((C=(A=_==null?void 0:_.data)==null?void 0:A.data)==null?void 0:C.rows)||{},z=`map-${e.id}`;if(N!=null&&N.path){const P=await ct(N.path);$e.registerMap(z,(P==null?void 0:P.data)||{})}else $e.registerMap(z,{})}catch(_){console.error(_)}finally{p.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:B,setGlobalModel:D}=n.inject(we,{getGlobalModel:A=>{},setGlobalModel:(A,C)=>{}}),O=ke(e)("click",()=>{const A=B(e.id);D(e.id,{...A,RECORD:n.unref(a)})});Oe(e,{refreshData:k});const{setRequest:w}=n.inject(Fe,{setRequest:A=>{}});return typeof w=="function"&&w({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:f,customClick:()=>{n.unref(a)&&O()},onMouseOver:(A={})=>{A.componentType==="geo"&&A.region?a.value=A.region:a.value=null}}}}),L1="",Xd=["src"];function eu(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{class:"ecan-map",style:n.normalizeStyle(e.style)},[e.isLoadedData?(n.openBlock(),n.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Xd),[[n.vShow,!1]])],4)}const A0=xe(me(Jd,[["render",eu],["__scopeId","data-v-10f150ac"]])),k0=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:n0,EcanBorder:d0,EcanButton:qi,EcanCheckbox:Vi,EcanComboGraph:l0,EcanCustomGraph:r0,EcanDatePicker:Oi,EcanIframe:p0,EcanImage:x0,EcanInput:Di,EcanLine:e0,EcanList:ki,EcanMap:A0,EcanModal:At,EcanPageConfig:ui,EcanPie:Ji,EcanProportion:Bi,EcanProviderConfig:hi,EcanRadar:c0,EcanRadio:Zi,EcanRangePicker:Fi,EcanScatter:a0,EcanScrollText:pi,EcanSelect:Ui,EcanTable:C0,EcanTabs:h0,EcanText:xi,EcanTimeDisplay:vi,EcanTreeSelect:Wi,barComponentProps:ca,barEvents:t0,barProps:sa,borderComponentProps:ba,borderEvents:f0,borderProps:pa,buttonComponentProps:$o,buttonEvents:Pi,buttonProps:Wo,checkboxComponentProps:Yo,checkboxEvents:Hi,checkboxProps:Zo,comboGraphComponentProps:ma,comboGraphEvents:i0,comboGraphProps:ga,customGraphComponentProps:ha,customGraphProps:ua,datePickerComponentProps:Ho,datePickerEvents:Ii,datePickerProps:qo,iframeComponentProps:Ta,iframeProps:ka,imageComponentProps:wa,imageEvents:g0,imageProps:Ca,inputComponentProps:Po,inputEvents:Ei,inputProps:Fo,lineComponentProps:la,lineEvents:Xi,lineProps:ia,listComponentProps:No,listEvents:Si,listProps:Lo,mapComponentProps:_a,mapEvents:w0,mapProps:Ia,modalComponentProps:ra,modalEvents:Ki,modalProps:aa,pageConfig:Rn,pageConfigComponentProps:On,pieComponentProps:oa,pieEvents:Yi,pieProps:na,proportionComponentProps:zo,proportionEvents:Ti,proportionProps:Mo,providerConfig:ko,providerConfigComponentProps:To,radarComponentProps:xa,radarEvents:s0,radarProps:ya,radioComponentProps:ta,radioEvents:$i,radioProps:ea,rangePickerComponentProps:Uo,rangePickerEvents:Li,rangePickerProps:jo,scatterComponentProps:da,scatterEvents:o0,scatterProps:fa,selectComponentProps:Qo,selectEvents:ji,selectProps:Ko,tableComponentProps:Ea,tableEvents:b0,tableProps:Ba,tabsComponentProps:Sa,tabsEvents:u0,tabsProps:va,textComponentProps:Eo,textEvents:gi,textProps:Bo,timeDisplayComponentProps:Oo,timeDisplayEvents:bi,timeDisplayProps:Ro,treeSelectComponentProps:Xo,treeSelectEvents:Gi,treeSelectProps:Jo},Symbol.toStringTag,{value:"Module"})),tu={install:e=>{Object.keys(k0).forEach(o=>{const t=k0[o];t.install&&e.use(t)})}};H.EcanBar=n0,H.EcanBorder=d0,H.EcanButton=qi,H.EcanCheckbox=Vi,H.EcanComboGraph=l0,H.EcanCustomGraph=r0,H.EcanDatePicker=Oi,H.EcanIframe=p0,H.EcanImage=x0,H.EcanInput=Di,H.EcanLine=e0,H.EcanList=ki,H.EcanMap=A0,H.EcanModal=At,H.EcanPageConfig=ui,H.EcanPie=Ji,H.EcanProportion=Bi,H.EcanProviderConfig=hi,H.EcanRadar=c0,H.EcanRadio=Zi,H.EcanRangePicker=Fi,H.EcanScatter=a0,H.EcanScrollText=pi,H.EcanSelect=Ui,H.EcanTable=C0,H.EcanTabs=h0,H.EcanText=xi,H.EcanTimeDisplay=vi,H.EcanTreeSelect=Wi,H.barComponentProps=ca,H.barEvents=t0,H.barProps=sa,H.borderComponentProps=ba,H.borderEvents=f0,H.borderProps=pa,H.buttonComponentProps=$o,H.buttonEvents=Pi,H.buttonProps=Wo,H.checkboxComponentProps=Yo,H.checkboxEvents=Hi,H.checkboxProps=Zo,H.comboGraphComponentProps=ma,H.comboGraphEvents=i0,H.comboGraphProps=ga,H.compatibleMobileList=Qi,H.customGraphComponentProps=ha,H.customGraphProps=ua,H.datePickerComponentProps=Ho,H.datePickerEvents=Ii,H.datePickerProps=qo,H.default=tu,H.iframeComponentProps=Ta,H.iframeProps=ka,H.imageComponentProps=wa,H.imageEvents=g0,H.imageProps=Ca,H.inputComponentProps=Po,H.inputEvents=Ei,H.inputProps=Fo,H.lineComponentProps=la,H.lineEvents=Xi,H.lineProps=ia,H.listComponentProps=No,H.listEvents=Si,H.listProps=Lo,H.mapComponentProps=_a,H.mapEvents=w0,H.mapProps=Ia,H.modalComponentProps=ra,H.modalEvents=Ki,H.modalProps=aa,H.pageConfig=Rn,H.pageConfigComponentProps=On,H.pieComponentProps=oa,H.pieEvents=Yi,H.pieProps=na,H.proportionComponentProps=zo,H.proportionEvents=Ti,H.proportionProps=Mo,H.providerConfig=ko,H.providerConfigComponentProps=To,H.radarComponentProps=xa,H.radarEvents=s0,H.radarProps=ya,H.radioComponentProps=ta,H.radioEvents=$i,H.radioProps=ea,H.rangePickerComponentProps=Uo,H.rangePickerEvents=Li,H.rangePickerProps=jo,H.scatterComponentProps=da,H.scatterEvents=o0,H.scatterProps=fa,H.selectComponentProps=Qo,H.selectEvents=ji,H.selectProps=Ko,H.tableComponentProps=Ea,H.tableEvents=b0,H.tableProps=Ba,H.tabsComponentProps=Sa,H.tabsEvents=u0,H.tabsProps=va,H.textComponentProps=Eo,H.textEvents=gi,H.textProps=Bo,H.timeDisplayComponentProps=Oo,H.timeDisplayEvents=bi,H.timeDisplayProps=Ro,H.treeSelectComponentProps=Xo,H.treeSelectEvents=Gi,H.treeSelectProps=Jo,Object.defineProperties(H,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
119
119
|
//# sourceMappingURL=index.umd.js.map
|