@ecan-bi/datav 1.3.19 → 1.3.21

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.
Files changed (92) hide show
  1. package/dist/index.es.js +4228 -3939
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +28 -28
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +2 -2
  6. package/package.json +1 -1
  7. package/types/common/marquee-scroll/MarqueeScroll.vue.d.ts +9 -0
  8. package/types/container/border/Border.vue.d.ts +8 -0
  9. package/types/container/border/index.d.ts +8 -0
  10. package/types/container/border/props.d.ts +4 -0
  11. package/types/container/circulate/Circulate.vue.d.ts +321 -0
  12. package/types/container/circulate/index.d.ts +322 -0
  13. package/types/container/circulate/props.d.ts +176 -0
  14. package/types/container/index.d.ts +1 -0
  15. package/types/container/tabs/Tabs.vue.d.ts +8 -0
  16. package/types/container/tabs/index.d.ts +8 -0
  17. package/types/container/tabs/props.d.ts +4 -0
  18. package/types/control/button/Button.vue.d.ts +8 -0
  19. package/types/control/button/index.d.ts +8 -0
  20. package/types/control/button/props.d.ts +4 -0
  21. package/types/control/checkbox/Checkbox.vue.d.ts +8 -0
  22. package/types/control/checkbox/index.d.ts +8 -0
  23. package/types/control/checkbox/props.d.ts +4 -0
  24. package/types/control/date-picker/DatePicker.vue.d.ts +8 -0
  25. package/types/control/date-picker/index.d.ts +8 -0
  26. package/types/control/date-picker/props.d.ts +4 -0
  27. package/types/control/input/Input.vue.d.ts +8 -0
  28. package/types/control/input/index.d.ts +8 -0
  29. package/types/control/input/props.d.ts +4 -0
  30. package/types/control/radio/Radio.vue.d.ts +8 -0
  31. package/types/control/radio/index.d.ts +8 -0
  32. package/types/control/radio/props.d.ts +4 -0
  33. package/types/control/range-picker/RangePicker.vue.d.ts +8 -0
  34. package/types/control/range-picker/index.d.ts +8 -0
  35. package/types/control/range-picker/props.d.ts +4 -0
  36. package/types/control/select/Select.vue.d.ts +8 -0
  37. package/types/control/select/index.d.ts +8 -0
  38. package/types/control/select/props.d.ts +4 -0
  39. package/types/control/tree-select/TreeSelect.vue.d.ts +4 -0
  40. package/types/control/tree-select/index.d.ts +4 -0
  41. package/types/control/tree-select/props.d.ts +4 -0
  42. package/types/graph/bar/Bar.vue.d.ts +8 -0
  43. package/types/graph/bar/index.d.ts +8 -0
  44. package/types/graph/bar/props.d.ts +4 -0
  45. package/types/graph/combo-graph/ComboGraph.vue.d.ts +8 -0
  46. package/types/graph/combo-graph/index.d.ts +8 -0
  47. package/types/graph/combo-graph/props.d.ts +4 -0
  48. package/types/graph/custom-graph/CustomGraph.vue.d.ts +8 -0
  49. package/types/graph/custom-graph/index.d.ts +8 -0
  50. package/types/graph/custom-graph/props.d.ts +4 -0
  51. package/types/graph/line/Line.vue.d.ts +8 -0
  52. package/types/graph/line/index.d.ts +8 -0
  53. package/types/graph/line/props.d.ts +5 -0
  54. package/types/graph/pie/Pie.vue.d.ts +8 -0
  55. package/types/graph/pie/index.d.ts +8 -0
  56. package/types/graph/pie/props.d.ts +4 -0
  57. package/types/graph/radar/Radar.vue.d.ts +8 -0
  58. package/types/graph/radar/index.d.ts +8 -0
  59. package/types/graph/radar/props.d.ts +5 -0
  60. package/types/graph/scatter/Scatter.vue.d.ts +8 -0
  61. package/types/graph/scatter/index.d.ts +8 -0
  62. package/types/graph/scatter/props.d.ts +4 -0
  63. package/types/laboratory/data-select/DataSelect.vue.d.ts +8 -0
  64. package/types/laboratory/data-select/index.d.ts +8 -0
  65. package/types/laboratory/data-select/props.d.ts +4 -0
  66. package/types/map/map/Map.vue.d.ts +8 -0
  67. package/types/map/map/index.d.ts +8 -0
  68. package/types/map/map/props.d.ts +4 -0
  69. package/types/media/iframe/Iframe.vue.d.ts +8 -0
  70. package/types/media/iframe/index.d.ts +8 -0
  71. package/types/media/iframe/props.d.ts +4 -0
  72. package/types/media/image/Image.vue.d.ts +8 -0
  73. package/types/media/image/index.d.ts +8 -0
  74. package/types/media/image/props.d.ts +4 -0
  75. package/types/table/table/Table.vue.d.ts +8 -0
  76. package/types/table/table/index.d.ts +8 -0
  77. package/types/table/table/props.d.ts +4 -0
  78. package/types/text/list/List.vue.d.ts +8 -0
  79. package/types/text/list/index.d.ts +8 -0
  80. package/types/text/list/props.d.ts +4 -0
  81. package/types/text/proportion/Proportion.vue.d.ts +8 -0
  82. package/types/text/proportion/index.d.ts +8 -0
  83. package/types/text/proportion/props.d.ts +4 -0
  84. package/types/text/text/Text.vue.d.ts +8 -0
  85. package/types/text/text/index.d.ts +8 -0
  86. package/types/text/text/props.d.ts +4 -0
  87. package/types/text/time-display/TimeDisplay.vue.d.ts +8 -0
  88. package/types/text/time-display/index.d.ts +8 -0
  89. package/types/text/time-display/props.d.ts +4 -0
  90. package/types/utils/constant.d.ts +1 -0
  91. package/types/utils/mobileUtils.d.ts +1 -0
  92. package/types/utils/props.d.ts +1 -0
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.3.19 */
2
- (function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,t,Qe,Pa,se,Cu,wu,Ne,be,jl,Wl,Au,ku,Tu,qa,Bu,Eu,Du,Iu,Et,ht,ve,Ru,Ul,Ou,_u,Zt,Gl){var zl,Ml,Pl,ql;"use strict";function $l(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const Kl=$l(Ul),Zl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Yl(e,o){function n(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return Zl.forEach(i=>{r[i]=n(i)}),r}return a()}function Ql(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),Pa.addListener(r,a)),d(()=>{a&&r&&Pa.removeListener(r,a)})})}const Jl={autoresize:Boolean},Xl="ecLoadingOptions";function e0(e,o,n){const a=t.inject(Xl,{}),r=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const t0={loading:Boolean,loadingOptions:Object},Lu="",n0=/^on[^a-z]/,o0=e=>n0.test(e);function a0(e){const o={};for(const n in e)o0(n)||(o[n]=e[n]);return o}const r0="x-vue-echarts",i0="ecTheme",l0="ecInitOptions",s0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Jl,...t0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(i0,null),l=t.inject(l0,null),d=t.inject(s0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=t.toRefs(e),h=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),g=t.computed(()=>e.initOptions||t.unref(l)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),E=t.computed(()=>a0(o));function b(I){if(r.value||!a.value)return;const _=r.value=Qe.init(a.value,m.value,g.value);e.group&&(_.group=e.group);let N=n;N||(N={},Object.keys(o).filter(D=>D.indexOf("on")===0&&D.length>2).forEach(D=>{const p=D.charAt(2).toLowerCase()+D.slice(3);N[p]=o[D]})),Object.keys(N).forEach(D=>{const p=N[D];p&&(D.indexOf("zr:")===0?_.getZr().on(D.slice(3).toLowerCase(),p):_.on(D.toLowerCase(),p))});function A(){if(_&&!_.isDisposed())try{_.resize()}catch(D){if(D.message==="Cannot read property 'get' of undefined")return;throw D}}function T(){_.setOption(I||h.value,S.value)}c.value?t.nextTick(()=>{A(),T()}):T()}function v(I,_){e.manualUpdate&&(i.value=I),r.value?r.value.setOption(I,_||{}):b(I)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;t.watch(f,I=>{typeof k=="function"&&(k(),k=null),I||(k=t.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,S.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,g],()=>{x(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const B=Yl(r,b);return e0(r,y,u),Ql(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(x),{chart:r,root:a,setOption:v,nonEventAttrs:E,...B}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(r0,e)}});function at(e,o){c0(e)&&(e="100%");var n=d0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function c0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function d0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function f0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function on(e){return e<=1?"".concat(Number(e)*100,"%"):e}function An(e){return e.length===1?"0"+e:String(e)}function u0(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function kn(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function h0(e,o,n){var a,r,i;if(e=at(e,360),o=at(o,100),n=at(n,100),o===0)r=n,i=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=kn(l,s,e+1/3),r=kn(l,s,e),i=kn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function g0(e,o,n){e=at(e,255),o=at(o,255),n=at(n,255);var a=Math.max(e,o,n),r=Math.min(e,o,n),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-n)/l+(o<n?6:0);break;case o:i=(n-e)/l+2;break;case n:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function m0(e,o,n){e=at(e,360)*6,o=at(o,100),n=at(n,100);var a=Math.floor(e),r=e-a,i=n*(1-o),s=n*(1-r*o),l=n*(1-(1-r)*o),d=a%6,c=[n,s,i,i,l,n][d],f=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:f*255,b:y*255}}function y0(e,o,n,a){var r=[An(Math.round(e).toString(16)),An(Math.round(o).toString(16)),An(Math.round(n).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ha(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var Va={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Yt(e){var o={r:0,g:0,b:0},n=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=b0(e)),typeof e=="object"&&(gt(e.r)&&gt(e.g)&&gt(e.b)?(o=u0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&&gt(e.s)&&gt(e.v)?(a=on(e.s),r=on(e.v),o=m0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&&gt(e.s)&&gt(e.l)&&(a=on(e.s),i=on(e.l),o=h0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=f0(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var x0="[-\\+]?\\d+%?",p0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(p0,")|(?:").concat(x0,")"),Tn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Tn),rgba:new RegExp("rgba"+Bn),hsl:new RegExp("hsl"+Tn),hsla:new RegExp("hsla"+Bn),hsv:new RegExp("hsv"+Tn),hsva:new RegExp("hsva"+Bn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function b0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Va[e])e=Va[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=st.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=st.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=st.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=st.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=st.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=st.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=st.hex8.exec(e),n?{r:Je(n[1]),g:Je(n[2]),b:Je(n[3]),a:Ha(n[4]),format:o?"name":"hex8"}:(n=st.hex6.exec(e),n?{r:Je(n[1]),g:Je(n[2]),b:Je(n[3]),format:o?"name":"hex"}:(n=st.hex4.exec(e),n?{r:Je(n[1]+n[1]),g:Je(n[2]+n[2]),b:Je(n[3]+n[3]),a:Ha(n[4]+n[4]),format:o?"name":"hex8"}:(n=st.hex3.exec(e),n?{r:Je(n[1]+n[1]),g:Je(n[2]+n[2]),b:Je(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var an=2,ja=.16,v0=.05,S0=.05,C0=.15,Wa=5,Ua=4,w0=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ga(e){var o=e.r,n=e.g,a=e.b,r=g0(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function rn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(y0(o,n,a,!1))}function A0(e,o,n){var a=n/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function $a(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-an*o:Math.round(e.h)+an*o:a=n?Math.round(e.h)+an*o:Math.round(e.h)-an*o,a<0?a+=360:a>=360&&(a-=360),a}function Ka(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-ja*o:o===Ua?a=e.s+ja:a=e.s+v0*o,a>1&&(a=1),n&&o===Wa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Za(e,o,n){var a;return n?a=e.v+S0*o:a=e.v-C0*o,a>1&&(a=1),Number(a.toFixed(2))}function En(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Yt(e),r=Wa;r>0;r-=1){var i=Ga(a),s=rn(Yt({h:$a(i,r,!0),s:Ka(i,r,!0),v:Za(i,r,!0)}));n.push(s)}n.push(rn(a));for(var l=1;l<=Ua;l+=1){var d=Ga(a),c=rn(Yt({h:$a(d,l),s:Ka(d,l),v:Za(d,l)}));n.push(c)}return o.theme==="dark"?w0.map(function(f){var y=f.index,u=f.opacity,h=rn(A0(Yt(o.backgroundColor||"#141414"),Yt(n[y]),u*100));return h}):n}var Dn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},In={},Rn={};Object.keys(Dn).forEach(function(e){In[e]=En(Dn[e]),In[e].primary=In[e][5],Rn[e]=En(Dn[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var Ya=[],Qt=[],k0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function T0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function B0(e,o){if(o=o||{},e===void 0)throw new Error(k0);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=Ya.indexOf(a);r===-1&&(r=Ya.push(a)-1,Qt[r]={});var i;return Qt[r]!==void 0&&Qt[r][n]!==void 0?i=Qt[r][n]:(i=Qt[r][n]=T0(),n==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Qa(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){E0(e,r,n[r])})}return e}function E0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function D0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function I0(e,o){D0(e,"[@ant-design/icons-vue] ".concat(o))}function Ja(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function On(e,o,n){return n?t.h(e.tag,Qa({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return On(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,Qa({key:o},e.attrs),(e.children||[]).map(function(a,r){return On(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Xa(e){return En(e)[0]}function er(e){return e?Array.isArray(e)?e:[e]:[]}var R0=`
1
+ /*! @ecan-bi/datav@1.3.21 */
2
+ (function(j,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],t):(j=typeof globalThis<"u"?globalThis:j||self,t(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,t,Je,Wa,se,Ou,_u,Ie,Se,Ql,Jl,Lu,Nu,Fu,Ua,zu,Mu,Pu,qu,Et,ht,Ce,Vu,Xl,Hu,ju,Yt,e0){var Ul,Gl,$l,Kl;"use strict";function t0(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const n0=t0(Xl),o0=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function a0(e,o){function n(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return o0.forEach(i=>{r[i]=n(i)}),r}return a()}function r0(e,o,n){let a=null;t.watch([n,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Je.throttle(()=>{i.resize()},100),Wa.addListener(r,a)),d(()=>{a&&r&&Wa.removeListener(r,a)})})}const i0={autoresize:Boolean},l0="ecLoadingOptions";function s0(e,o,n){const a=t.inject(l0,{}),r=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const c0={loading:Boolean,loadingOptions:Object},Wu="",d0=/^on[^a-z]/,f0=e=>d0.test(e);function u0(e){const o={};for(const n in e)f0(n)||(o[n]=e[n]);return o}const h0="x-vue-echarts",g0="ecTheme",m0="ecInitOptions",y0="ecUpdateOptions",pt=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...i0,...c0},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),r=t.shallowRef(),i=t.shallowRef(),s=t.inject(g0,null),l=t.inject(m0,null),d=t.inject(y0,null),{autoresize:c,manualUpdate:f,loading:y,loadingOptions:u}=t.toRefs(e),h=t.computed(()=>i.value||e.option||Object.create(null)),m=t.computed(()=>e.theme||t.unref(s)||{}),g=t.computed(()=>e.initOptions||t.unref(l)||{}),C=t.computed(()=>e.updateOptions||t.unref(d)||{}),D=t.computed(()=>u0(o));function b(B){if(r.value||!a.value)return;const O=r.value=Je.init(a.value,m.value,g.value);e.group&&(O.group=e.group);let N=n;N||(N={},Object.keys(o).filter(I=>I.indexOf("on")===0&&I.length>2).forEach(I=>{const x=I.charAt(2).toLowerCase()+I.slice(3);N[x]=o[I]})),Object.keys(N).forEach(I=>{const x=N[I];x&&(I.indexOf("zr:")===0?O.getZr().on(I.slice(3).toLowerCase(),x):O.on(I.toLowerCase(),x))});function A(){if(O&&!O.isDisposed())try{O.resize()}catch(I){if(I.message==="Cannot read property 'get' of undefined")return;throw I}}function k(){O.setOption(B||h.value,C.value)}c.value?t.nextTick(()=>{A(),k()}):k()}function S(B,O){e.manualUpdate&&(i.value=B),r.value?r.value.setOption(B,O||{}):b(B)}function p(){r.value&&(r.value.dispose(),r.value=void 0)}let T=null;t.watch(f,B=>{typeof T=="function"&&(T(),T=null),B||(T=t.watch(()=>e.option,O=>{O&&(r.value?r.value.setOption(O,C.value):b())},{deep:!0}))},{immediate:!0}),t.watch([m,g],()=>{p(),b()},{deep:!0}),t.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const E=a0(r,b);return s0(r,y,u),r0(r,c,a),t.onMounted(()=>{e.option&&b()}),t.onUnmounted(p),{chart:r,root:a,setOption:S,nonEventAttrs:D,...E}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(h0,e)}});function at(e,o){x0(e)&&(e="100%");var n=p0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function x0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function p0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function b0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ln(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kn(e){return e.length===1?"0"+e:String(e)}function v0(e,o,n){return{r:at(e,255)*255,g:at(o,255)*255,b:at(n,255)*255}}function Tn(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function S0(e,o,n){var a,r,i;if(e=at(e,360),o=at(o,100),n=at(n,100),o===0)r=n,i=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,l=2*n-s;a=Tn(l,s,e+1/3),r=Tn(l,s,e),i=Tn(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function C0(e,o,n){e=at(e,255),o=at(o,255),n=at(n,255);var a=Math.max(e,o,n),r=Math.min(e,o,n),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-n)/l+(o<n?6:0);break;case o:i=(n-e)/l+2;break;case n:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function w0(e,o,n){e=at(e,360)*6,o=at(o,100),n=at(n,100);var a=Math.floor(e),r=e-a,i=n*(1-o),s=n*(1-r*o),l=n*(1-(1-r)*o),d=a%6,c=[n,s,i,i,l,n][d],f=[l,n,n,s,i,i][d],y=[i,i,l,n,n,s][d];return{r:c*255,g:f*255,b:y*255}}function A0(e,o,n,a){var r=[kn(Math.round(e).toString(16)),kn(Math.round(o).toString(16)),kn(Math.round(n).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ga(e){return Xe(e)/255}function Xe(e){return parseInt(e,16)}var $a={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 Qt(e){var o={r:0,g:0,b:0},n=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=B0(e)),typeof e=="object"&&(gt(e.r)&&gt(e.g)&&gt(e.b)?(o=v0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&&gt(e.s)&&gt(e.v)?(a=ln(e.s),r=ln(e.v),o=w0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&&gt(e.s)&&gt(e.l)&&(a=ln(e.s),i=ln(e.l),o=S0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=b0(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var k0="[-\\+]?\\d+%?",T0="[-\\+]?\\d*\\.\\d+%?",bt="(?:".concat(T0,")|(?:").concat(k0,")"),Bn="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),En="[\\s|\\(]+(".concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")[,|\\s]+(").concat(bt,")\\s*\\)?"),st={CSS_UNIT:new RegExp(bt),rgb:new RegExp("rgb"+Bn),rgba:new RegExp("rgba"+En),hsl:new RegExp("hsl"+Bn),hsla:new RegExp("hsla"+En),hsv:new RegExp("hsv"+Bn),hsva:new RegExp("hsva"+En),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function B0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if($a[e])e=$a[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=st.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=st.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=st.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=st.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=st.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=st.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=st.hex8.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),a:Ga(n[4]),format:o?"name":"hex8"}:(n=st.hex6.exec(e),n?{r:Xe(n[1]),g:Xe(n[2]),b:Xe(n[3]),format:o?"name":"hex"}:(n=st.hex4.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),a:Ga(n[4]+n[4]),format:o?"name":"hex8"}:(n=st.hex3.exec(e),n?{r:Xe(n[1]+n[1]),g:Xe(n[2]+n[2]),b:Xe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!st.CSS_UNIT.exec(String(e))}var sn=2,Ka=.16,E0=.05,D0=.05,I0=.15,Za=5,Ya=4,R0=[{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 Qa(e){var o=e.r,n=e.g,a=e.b,r=C0(o,n,a);return{h:r.h*360,s:r.s,v:r.v}}function cn(e){var o=e.r,n=e.g,a=e.b;return"#".concat(A0(o,n,a,!1))}function O0(e,o,n){var a=n/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function Ja(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-sn*o:Math.round(e.h)+sn*o:a=n?Math.round(e.h)+sn*o:Math.round(e.h)-sn*o,a<0?a+=360:a>=360&&(a-=360),a}function Xa(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-Ka*o:o===Ya?a=e.s+Ka:a=e.s+E0*o,a>1&&(a=1),n&&o===Za&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function er(e,o,n){var a;return n?a=e.v+D0*o:a=e.v-I0*o,a>1&&(a=1),Number(a.toFixed(2))}function Dn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Qt(e),r=Za;r>0;r-=1){var i=Qa(a),s=cn(Qt({h:Ja(i,r,!0),s:Xa(i,r,!0),v:er(i,r,!0)}));n.push(s)}n.push(cn(a));for(var l=1;l<=Ya;l+=1){var d=Qa(a),c=cn(Qt({h:Ja(d,l),s:Xa(d,l),v:er(d,l)}));n.push(c)}return o.theme==="dark"?R0.map(function(f){var y=f.index,u=f.opacity,h=cn(O0(Qt(o.backgroundColor||"#141414"),Qt(n[y]),u*100));return h}):n}var In={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Rn={},On={};Object.keys(In).forEach(function(e){Rn[e]=Dn(In[e]),Rn[e].primary=Rn[e][5],On[e]=Dn(In[e],{theme:"dark",backgroundColor:"#141414"}),On[e].primary=On[e][5]});var tr=[],Jt=[],_0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function L0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function N0(e,o){if(o=o||{},e===void 0)throw new Error(_0);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=tr.indexOf(a);r===-1&&(r=tr.push(a)-1,Jt[r]={});var i;return Jt[r]!==void 0&&Jt[r][n]!==void 0?i=Jt[r][n]:(i=Jt[r][n]=L0(),n==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function nr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){F0(e,r,n[r])})}return e}function F0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function z0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function M0(e,o){z0(e,"[@ant-design/icons-vue] ".concat(o))}function or(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _n(e,o,n){return n?t.h(e.tag,nr({key:o},n,e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):t.h(e.tag,nr({key:o},e.attrs),(e.children||[]).map(function(a,r){return _n(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function ar(e){return Dn(e)[0]}function rr(e){return e?Array.isArray(e)?e:[e]:[]}var P0=`
3
3
  .anticon {
4
4
  display: inline-block;
5
5
  color: inherit;
@@ -53,9 +53,9 @@
53
53
  transform: rotate(360deg);
54
54
  }
55
55
  }
56
- `,tr=!1,O0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R0;t.nextTick(function(){tr||(typeof window<"u"&&window.document&&window.document.documentElement&&B0(o,{prepend:!0}),tr=!0)})},_0=["icon","primaryColor","secondaryColor"];function L0(e,o){if(e==null)return{};var n=N0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function N0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}function ln(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){F0(e,r,n[r])})}return e}function F0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Jt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function z0(e){var o=e.primaryColor,n=e.secondaryColor;Jt.primaryColor=o,Jt.secondaryColor=n||Xa(o),Jt.calculated=!!n}function M0(){return ln({},Jt)}var _t=function(o,n){var a=ln({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=L0(a,_0),d=Jt;if(i&&(d={primaryColor:i,secondaryColor:s||Xa(i)}),O0(),I0(Ja(r),"icon should be icon definiton, but got ".concat(r)),!Ja(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=ln({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),On(c.icon,"svg-".concat(c.name),ln({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};_t.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},_t.inheritAttrs=!1,_t.displayName="IconBase",_t.getTwoToneColors=M0,_t.setTwoToneColors=z0;const _n=_t;function P0(e,o){return j0(e)||V0(e,o)||H0(e,o)||q0()}function q0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H0(e,o){if(e){if(typeof e=="string")return nr(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nr(e,o)}}function nr(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function V0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function j0(e){if(Array.isArray(e))return e}function or(e){var o=er(e),n=P0(o,2),a=n[0],r=n[1];return _n.setTwoToneColors({primaryColor:a,secondaryColor:r})}function W0(){var e=_n.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var U0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function G0(e,o){return Y0(e)||Z0(e,o)||K0(e,o)||$0()}function $0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K0(e,o){if(e){if(typeof e=="string")return ar(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(e,o)}}function ar(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function Z0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Y0(e){if(Array.isArray(e))return e}function rr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Ln(e,r,n[r])})}return e}function Ln(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Q0(e,o){if(e==null)return{};var n=J0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function J0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}or("#1890ff");var Lt=function(o,n){var a,r=rr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,y=r.onClick,u=Q0(r,U0),h=(a={anticon:!0},Ln(a,"anticon-".concat(s.name),!!s.name),Ln(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,E=er(f),b=G0(E,2),v=b[0],x=b[1];return t.createVNode("span",rr({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[t.createVNode(_n,{class:m,icon:s,primaryColor:v,secondaryColor:x,style:S},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=W0,Lt.setTwoToneColor=or;const ir=Lt;var X0={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const es=X0;function lr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){ts(e,r,n[r])})}return e}function ts(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Nn=function(o,n){var a=lr({},o,n.attrs);return t.createVNode(ir,lr({},a,{icon:es}),null)};Nn.displayName="CloseOutlined",Nn.inheritAttrs=!1;const ns=Nn;var os={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const as=os;function sr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){rs(e,r,n[r])})}return e}function rs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Fn=function(o,n){var a=sr({},o,n.attrs);return t.createVNode(ir,sr({},a,{icon:as}),null)};Fn.displayName="LoadingOutlined",Fn.inheritAttrs=!1;const is=Fn,ls=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:t.h(is,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Nu="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ss={class:"spin-wrapper"};function cs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ss,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Nt=me(ls,[["render",cs]]),ds=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function fs(e,o,n,a,r,i){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const sn=me(ds,[["render",fs]]);(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var us=Object.defineProperty,cr=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,dr=(e,o,n)=>o in e?us(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,fr=(e,o)=>{for(var n in o||(o={}))hs.call(o,n)&&dr(e,n,o[n]);if(cr)for(var n of cr(o))gs.call(o,n)&&dr(e,n,o[n]);return e},ms=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const ys=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),r=t.ref("100%"),i=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),y=t.ref(0),u=t.ref(!1),h=t.ref(!1),m=t.ref(0),g=t.ref(null),S=t.ref("200px"),E=t.ref(!1),b=t.ref(null),v=t.ref(null),x=async()=>{await k(),i.value++},k=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&v.value!==null&&b.value&&v.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in v.value){y.value=b.value.clientHeight,f.value=v.value.clientHeight;const R=Math.ceil(f.value/y.value);return n.value=isFinite(R)?R:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in v.value){if(c.value=b.value.clientWidth,d.value=v.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const R=Math.ceil(d.value/c.value);return n.value=isFinite(R)?R:0,n.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};t.watch(c,async()=>{e.clone&&x()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),t.watch(()=>e.pause,(R,F)=>{R!==F&&o(R?"onResume":"onPause")});const B=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},I=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},A=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),T=t.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),D=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),p=t.computed(()=>{const R={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${T.value}`,"--pauseOnClick":`${D.value}`,"--pauseAnimation":`${A.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),fr(fr({},R),F)}),w=t.computed(()=>!!e.gradient),C=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),x()),E.value=!0};return t.onMounted(async()=>{C(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:E,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:v,componentKey:i,showGradient:w,cloneAmount:n,ForcesUpdate:x,checkForClone:k,setupMarquee:C,getCurrentStyle:p,hoverStarted:B,hoverEnded:I,mouseDown:_,mouseUp:N}}}),xs={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},ps={class:"marquee",ref:"marqueeContent"},bs={key:1,"aria-hidden":!0,class:"marquee"};function vs(e,o,n,a,r,i){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",xs,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",ps,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",bs,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var Ss=ms(ys,[["render",vs]]);const Cs=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ss},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:t.ref(e.visible)}}}),ws={key:1,class:"list-wrap"};function As(e,o,n,a,r,i){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(t.openBlock(),t.createElementBlock("div",ws,[t.renderSlot(e.$slots,"default")]))}const ur=me(Cs,[["render",As]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const xe=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},we={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Se=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},zn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},Mn=Se(zn),ks=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],Ce=(e,o=[])=>{const n=Ne.without(ks,...o);return t.computed(()=>Ne.pick(e,n))},Pn="EVENT_BUS",Pe="GLOBAL_CONFIG",Te="GLOBAL_MODEL",ze="REQUEST_MODEL",hr="GLOBAL_TOKEN",Xt="REFRESH_PAGE",gr="MODAL_MODEL",vt="LOADED_DATA",Ue=18,mr="ygt",yr=((zl=window==null?void 0:window.config)==null?void 0:zl.indicatorURL)||"";(Ml=window==null?void 0:window.config)!=null&&Ml.uploadPath;const xr=((Pl=window==null?void 0:window.config)==null?void 0:Pl.routerBaseURL)||"./",Ts=((ql=window==null?void 0:window.config)==null?void 0:ql.erdURL)||"",Oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Pn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Be=e=>{const o=e.events,n=e.id,a=t.inject(Pn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(Pe,{touchEventId:t.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=n,l(d.target,d.emit)}catch(c){console.error(c)}})}},Ft=(e,o)=>{let{name:n="name",value:a="value",type:r="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],y=f[n]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bs(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var br={exports:{}};function Es(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qn={exports:{}};const Ds=Bs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var vr;function ye(){return vr||(vr=1,function(e,o){(function(n,a){e.exports=a()})(de,function(){var n=n||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof Es=="function")try{i=Ds}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(v){var x;return b.prototype=v,x=new b,b.prototype=null,x}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(b){var v=l(this);return b&&v.mixIn(b),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var v in b)b.hasOwnProperty(v)&&(this[v]=b[v]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(b,v){b=this.words=b||[],v!=r?this.sigBytes=v:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var v=this.words,x=b.words,k=this.sigBytes,B=b.sigBytes;if(this.clamp(),k%4)for(var I=0;I<B;I++){var _=x[I>>>2]>>>24-I%4*8&255;v[k+I>>>2]|=_<<24-(k+I)%4*8}else for(var N=0;N<B;N+=4)v[k+N>>>2]=x[N>>>2];return this.sigBytes+=B,this},clamp:function(){var b=this.words,v=this.sigBytes;b[v>>>2]&=4294967295<<32-v%4*8,b.length=a.ceil(v/4)},clone:function(){var b=f.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var v=[],x=0;x<b;x+=4)v.push(s());return new y.init(v,b)}}),u=d.enc={},h=u.Hex={stringify:function(b){for(var v=b.words,x=b.sigBytes,k=[],B=0;B<x;B++){var I=v[B>>>2]>>>24-B%4*8&255;k.push((I>>>4).toString(16)),k.push((I&15).toString(16))}return k.join("")},parse:function(b){for(var v=b.length,x=[],k=0;k<v;k+=2)x[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new y.init(x,v/2)}},m=u.Latin1={stringify:function(b){for(var v=b.words,x=b.sigBytes,k=[],B=0;B<x;B++){var I=v[B>>>2]>>>24-B%4*8&255;k.push(String.fromCharCode(I))}return k.join("")},parse:function(b){for(var v=b.length,x=[],k=0;k<v;k++)x[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new y.init(x,v)}},g=u.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},S=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var v,x=this._data,k=x.words,B=x.sigBytes,I=this.blockSize,_=I*4,N=B/_;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var A=N*I,T=a.min(A*4,B);if(A){for(var D=0;D<A;D+=I)this._doProcessBlock(k,D);v=k.splice(0,A),x.sigBytes-=T}return new y.init(v,T)},clone:function(){var b=f.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=S.extend({cfg:f.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(b){return function(v,x){return new b.init(x).finalize(v)}},_createHmacHelper:function(b){return function(v,x){return new E.HMAC.init(b,x).finalize(v)}}});var E=d.algo={};return d}(Math);return n})}(qn)),qn.exports}var Hn={exports:{}},Sr;function cn(){return Sr||(Sr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),n})}(Hn)),Hn.exports}var Vn={exports:{}},Cr;function Is(){return Cr||(Cr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Vn)),Vn.exports}var jn={exports:{}},wr;function Rs(){return wr||(wr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(jn)),jn.exports}var Wn={exports:{}},Ar;function zt(){return Ar||(Ar=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,S=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|g<<8|S,b=0;b<4&&h+b*.75<f;b++)u.push(y.charAt(E>>>6*(3-b)&63));var v=y.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,S=m|g;y[u>>>2]|=S<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64})}(Wn)),Wn.exports}var Un={exports:{}},kr;function Os(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,S=f[m+1>>>2]>>>24-(m+1)%4*8&255,E=f[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|S<<8|E,v=0;v<4&&m+v*.75<y;v++)h.push(u.charAt(b>>>6*(3-v)&63));var x=u.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,S=m|g;y[u>>>2]|=S<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64url})}(Un)),Un.exports}var Gn={exports:{}},Tr;function Mt(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,S){for(var E=0;E<16;E++){var b=S+E,v=g[b];g[b]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var x=this._hash.words,k=g[S+0],B=g[S+1],I=g[S+2],_=g[S+3],N=g[S+4],A=g[S+5],T=g[S+6],D=g[S+7],p=g[S+8],w=g[S+9],C=g[S+10],R=g[S+11],F=g[S+12],q=g[S+13],W=g[S+14],$=g[S+15],z=x[0],P=x[1],M=x[2],O=x[3];z=y(z,P,M,O,k,7,c[0]),O=y(O,z,P,M,B,12,c[1]),M=y(M,O,z,P,I,17,c[2]),P=y(P,M,O,z,_,22,c[3]),z=y(z,P,M,O,N,7,c[4]),O=y(O,z,P,M,A,12,c[5]),M=y(M,O,z,P,T,17,c[6]),P=y(P,M,O,z,D,22,c[7]),z=y(z,P,M,O,p,7,c[8]),O=y(O,z,P,M,w,12,c[9]),M=y(M,O,z,P,C,17,c[10]),P=y(P,M,O,z,R,22,c[11]),z=y(z,P,M,O,F,7,c[12]),O=y(O,z,P,M,q,12,c[13]),M=y(M,O,z,P,W,17,c[14]),P=y(P,M,O,z,$,22,c[15]),z=u(z,P,M,O,B,5,c[16]),O=u(O,z,P,M,T,9,c[17]),M=u(M,O,z,P,R,14,c[18]),P=u(P,M,O,z,k,20,c[19]),z=u(z,P,M,O,A,5,c[20]),O=u(O,z,P,M,C,9,c[21]),M=u(M,O,z,P,$,14,c[22]),P=u(P,M,O,z,N,20,c[23]),z=u(z,P,M,O,w,5,c[24]),O=u(O,z,P,M,W,9,c[25]),M=u(M,O,z,P,_,14,c[26]),P=u(P,M,O,z,p,20,c[27]),z=u(z,P,M,O,q,5,c[28]),O=u(O,z,P,M,I,9,c[29]),M=u(M,O,z,P,D,14,c[30]),P=u(P,M,O,z,F,20,c[31]),z=h(z,P,M,O,A,4,c[32]),O=h(O,z,P,M,p,11,c[33]),M=h(M,O,z,P,R,16,c[34]),P=h(P,M,O,z,W,23,c[35]),z=h(z,P,M,O,B,4,c[36]),O=h(O,z,P,M,N,11,c[37]),M=h(M,O,z,P,D,16,c[38]),P=h(P,M,O,z,C,23,c[39]),z=h(z,P,M,O,q,4,c[40]),O=h(O,z,P,M,k,11,c[41]),M=h(M,O,z,P,_,16,c[42]),P=h(P,M,O,z,T,23,c[43]),z=h(z,P,M,O,w,4,c[44]),O=h(O,z,P,M,F,11,c[45]),M=h(M,O,z,P,$,16,c[46]),P=h(P,M,O,z,I,23,c[47]),z=m(z,P,M,O,k,6,c[48]),O=m(O,z,P,M,D,10,c[49]),M=m(M,O,z,P,W,15,c[50]),P=m(P,M,O,z,A,21,c[51]),z=m(z,P,M,O,F,6,c[52]),O=m(O,z,P,M,_,10,c[53]),M=m(M,O,z,P,C,15,c[54]),P=m(P,M,O,z,B,21,c[55]),z=m(z,P,M,O,p,6,c[56]),O=m(O,z,P,M,$,10,c[57]),M=m(M,O,z,P,T,15,c[58]),P=m(P,M,O,z,q,21,c[59]),z=m(z,P,M,O,N,6,c[60]),O=m(O,z,P,M,R,10,c[61]),M=m(M,O,z,P,I,15,c[62]),P=m(P,M,O,z,w,21,c[63]),x[0]=x[0]+z|0,x[1]=x[1]+P|0,x[2]=x[2]+M|0,x[3]=x[3]+O|0},_doFinalize:function(){var g=this._data,S=g.words,E=this._nDataBytes*8,b=g.sigBytes*8;S[b>>>5]|=128<<24-b%32;var v=a.floor(E/4294967296),x=E;S[(b+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,S[(b+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,g.sigBytes=(S.length+1)*4,this._process();for(var k=this._hash,B=k.words,I=0;I<4;I++){var _=B[I];B[I]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return k},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,S,E,b,v,x,k){var B=g+(S&E|~S&b)+v+k;return(B<<x|B>>>32-x)+S}function u(g,S,E,b,v,x,k){var B=g+(S&b|E&~b)+v+k;return(B<<x|B>>>32-x)+S}function h(g,S,E,b,v,x,k){var B=g+(S^E^b)+v+k;return(B<<x|B>>>32-x)+S}function m(g,S,E,b,v,x,k){var B=g+(E^(S|~b))+v+k;return(B<<x|B>>>32-x)+S}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(Gn)),Gn.exports}var $n={exports:{}},Br;function Kn(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],S=u[3],E=u[4],b=0;b<80;b++){if(b<16)d[b]=f[y+b]|0;else{var v=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=v<<1|v>>>31}var x=(h<<5|h>>>27)+E+d[b];b<20?x+=(m&g|~m&S)+1518500249:b<40?x+=(m^g^S)+1859775393:b<60?x+=(m&g|m&S|g&S)-1894007588:x+=(m^g^S)-899497514,E=S,S=g,g=m<<30|m>>>2,m=h,h=x}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+S|0,u[4]=u[4]+E|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}($n)),$n.exports}var Zn={exports:{}},Er;function Dr(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(E){for(var b=a.sqrt(E),v=2;v<=b;v++)if(!(E%v))return!1;return!0}function m(E){return(E-(E|0))*4294967296|0}for(var g=2,S=0;S<64;)h(g)&&(S<8&&(c[S]=m(a.pow(g,1/2))),f[S]=m(a.pow(g,1/3)),S++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,S=g[0],E=g[1],b=g[2],v=g[3],x=g[4],k=g[5],B=g[6],I=g[7],_=0;_<64;_++){if(_<16)y[_]=h[m+_]|0;else{var N=y[_-15],A=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,T=y[_-2],D=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;y[_]=A+y[_-7]+D+y[_-16]}var p=x&k^~x&B,w=S&E^S&b^E&b,C=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),R=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),F=I+R+p+f[_]+y[_],q=C+w;I=B,B=k,k=x,x=v+F|0,v=b,b=E,E=S,S=F+q|0}g[0]=g[0]+S|0,g[1]=g[1]+E|0,g[2]=g[2]+b|0,g[3]=g[3]+v|0,g[4]=g[4]+x|0,g[5]=g[5]+k|0,g[6]=g[6]+B|0,g[7]=g[7]+I|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,S=h.sigBytes*8;return m[S>>>5]|=128<<24-S%32,m[(S+64>>>9<<4)+14]=a.floor(g/4294967296),m[(S+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(Zn)),Zn.exports}var Yn={exports:{}},Ir;function _s(){return Ir||(Ir=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Dr())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(Yn)),Yn.exports}var Qn={exports:{}},Rr;function Or(){return Rr||(Rr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var S=this._hash.words,E=S[0],b=S[1],v=S[2],x=S[3],k=S[4],B=S[5],I=S[6],_=S[7],N=E.high,A=E.low,T=b.high,D=b.low,p=v.high,w=v.low,C=x.high,R=x.low,F=k.high,q=k.low,W=B.high,$=B.low,z=I.high,P=I.low,M=_.high,O=_.low,L=N,H=A,Z=T,U=D,ae=p,Q=w,le=C,re=R,Y=F,X=q,te=W,pe=$,Ae=z,De=P,$e=M,Me=O,Re=0;Re<80;Re++){var ke,Ve,Fe=u[Re];if(Re<16)Ve=Fe.high=m[g+Re*2]|0,ke=Fe.low=m[g+Re*2+1]|0;else{var Ke=u[Re-15],We=Ke.high,je=Ke.low,ut=(We>>>1|je<<31)^(We>>>8|je<<24)^We>>>7,tt=(je>>>1|We<<31)^(je>>>8|We<<24)^(je>>>7|We<<25),nt=u[Re-2],V=nt.high,K=nt.low,J=(V>>>19|K<<13)^(V<<3|K>>>29)^V>>>6,oe=(K>>>19|V<<13)^(K<<3|V>>>29)^(K>>>6|V<<26),ie=u[Re-7],ne=ie.high,ee=ie.low,fe=u[Re-16],he=fe.high,ge=fe.low;ke=tt+ee,Ve=ut+ne+(ke>>>0<tt>>>0?1:0),ke=ke+oe,Ve=Ve+J+(ke>>>0<oe>>>0?1:0),ke=ke+ge,Ve=Ve+he+(ke>>>0<ge>>>0?1:0),Fe.high=Ve,Fe.low=ke}var Le=Y&te^~Y&Ae,Ze=X&pe^~X&De,xt=L&Z^L&ae^Z&ae,Rt=H&U^H&Q^U&Q,Cn=(L>>>28|H<<4)^(L<<30|H>>>2)^(L<<25|H>>>7),Ye=(H>>>28|L<<4)^(H<<30|L>>>2)^(H<<25|L>>>7),Ot=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(Y<<23|X>>>9),Kt=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(X<<23|Y>>>9),wn=y[Re],vu=wn.high,Hl=wn.low,ot=Me+Kt,Bt=$e+Ot+(ot>>>0<Me>>>0?1:0),ot=ot+Ze,Bt=Bt+Le+(ot>>>0<Ze>>>0?1:0),ot=ot+Hl,Bt=Bt+vu+(ot>>>0<Hl>>>0?1:0),ot=ot+ke,Bt=Bt+Ve+(ot>>>0<ke>>>0?1:0),Vl=Ye+Rt,Su=Cn+xt+(Vl>>>0<Ye>>>0?1:0);$e=Ae,Me=De,Ae=te,De=pe,te=Y,pe=X,X=re+ot|0,Y=le+Bt+(X>>>0<re>>>0?1:0)|0,le=ae,re=Q,ae=Z,Q=U,Z=L,U=H,H=ot+Vl|0,L=Bt+Su+(H>>>0<ot>>>0?1:0)|0}A=E.low=A+H,E.high=N+L+(A>>>0<H>>>0?1:0),D=b.low=D+U,b.high=T+Z+(D>>>0<U>>>0?1:0),w=v.low=w+Q,v.high=p+ae+(w>>>0<Q>>>0?1:0),R=x.low=R+re,x.high=C+le+(R>>>0<re>>>0?1:0),q=k.low=q+X,k.high=F+Y+(q>>>0<X>>>0?1:0),$=B.low=$+pe,B.high=W+te+($>>>0<pe>>>0?1:0),P=I.low=P+De,I.high=z+Ae+(P>>>0<De>>>0?1:0),O=_.low=O+Me,_.high=M+$e+(O>>>0<Me>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,S=this._nDataBytes*8,E=m.sigBytes*8;g[E>>>5]|=128<<24-E%32,g[(E+128>>>10<<5)+30]=Math.floor(S/4294967296),g[(E+128>>>10<<5)+31]=S,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(Qn)),Qn.exports}var Jn={exports:{}},_r;function Ls(){return _r||(_r=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn(),Or())})(de,function(n){return function(){var a=n,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(Jn)),Jn.exports}var Xn={exports:{}},Lr;function Ns(){return Lr||(Lr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),cn())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var S=1,E=0,b=0;b<24;b++){y[S+5*E]=(b+1)*(b+2)/2%64;var v=E%5,x=(2*S+3*E)%5;S=v,E=x}for(var S=0;S<5;S++)for(var E=0;E<5;E++)u[S+5*E]=E+(2*S+3*E)%5*5;for(var k=1,B=0;B<24;B++){for(var I=0,_=0,N=0;N<7;N++){if(k&1){var A=(1<<N)-1;A<32?_^=1<<A:I^=1<<A-32}k&128?k=k<<1^113:k<<=1}h[B]=c.create(I,_)}})();var m=[];(function(){for(var S=0;S<25;S++)m[S]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],E=0;E<25;E++)S[E]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,E){for(var b=this._state,v=this.blockSize/2,x=0;x<v;x++){var k=S[E+2*x],B=S[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 I=b[x];I.high^=B,I.low^=k}for(var _=0;_<24;_++){for(var N=0;N<5;N++){for(var A=0,T=0,D=0;D<5;D++){var I=b[N+5*D];A^=I.high,T^=I.low}var p=m[N];p.high=A,p.low=T}for(var N=0;N<5;N++)for(var w=m[(N+4)%5],C=m[(N+1)%5],R=C.high,F=C.low,A=w.high^(R<<1|F>>>31),T=w.low^(F<<1|R>>>31),D=0;D<5;D++){var I=b[N+5*D];I.high^=A,I.low^=T}for(var q=1;q<25;q++){var A,T,I=b[q],W=I.high,$=I.low,z=y[q];z<32?(A=W<<z|$>>>32-z,T=$<<z|W>>>32-z):(A=$<<z-32|W>>>64-z,T=W<<z-32|$>>>64-z);var P=m[u[q]];P.high=A,P.low=T}var M=m[0],O=b[0];M.high=O.high,M.low=O.low;for(var N=0;N<5;N++)for(var D=0;D<5;D++){var q=N+5*D,I=b[q],L=m[q],H=m[(N+1)%5+5*D],Z=m[(N+2)%5+5*D];I.high=L.high^~H.high&Z.high,I.low=L.low^~H.low&Z.low}var I=b[0],U=h[_];I.high^=U.high,I.low^=U.low}},_doFinalize:function(){var S=this._data,E=S.words;this._nDataBytes*8;var b=S.sigBytes*8,v=this.blockSize*32;E[b>>>5]|=1<<24-b%32,E[(a.ceil((b+1)/v)*v>>>5)-1]|=128,S.sigBytes=E.length*4,this._process();for(var x=this._state,k=this.cfg.outputLength/8,B=k/8,I=[],_=0;_<B;_++){var N=x[_],A=N.high,T=N.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,I.push(T),I.push(A)}return new s.init(I,k)},clone:function(){for(var S=l.clone.call(this),E=S._state=this._state.slice(0),b=0;b<25;b++)E[b]=E[b].clone();return S}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),n.SHA3})}(Xn)),Xn.exports}var eo={exports:{}},Nr;function Fs(){return Nr||(Nr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){/** @preserve
56
+ `,ir=!1,q0=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P0;t.nextTick(function(){ir||(typeof window<"u"&&window.document&&window.document.documentElement&&N0(o,{prepend:!0}),ir=!0)})},V0=["icon","primaryColor","secondaryColor"];function H0(e,o){if(e==null)return{};var n=j0(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function j0(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}function dn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){W0(e,r,n[r])})}return e}function W0(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Xt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function U0(e){var o=e.primaryColor,n=e.secondaryColor;Xt.primaryColor=o,Xt.secondaryColor=n||ar(o),Xt.calculated=!!n}function G0(){return dn({},Xt)}var Lt=function(o,n){var a=dn({},o,n.attrs),r=a.icon,i=a.primaryColor,s=a.secondaryColor,l=H0(a,V0),d=Xt;if(i&&(d={primaryColor:i,secondaryColor:s||ar(i)}),q0(),M0(or(r),"icon should be icon definiton, but got ".concat(r)),!or(r))return null;var c=r;return c&&typeof c.icon=="function"&&(c=dn({},c,{icon:c.icon(d.primaryColor,d.secondaryColor)})),_n(c.icon,"svg-".concat(c.name),dn({},l,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Lt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Lt.inheritAttrs=!1,Lt.displayName="IconBase",Lt.getTwoToneColors=G0,Lt.setTwoToneColors=U0;const Ln=Lt;function $0(e,o){return Q0(e)||Y0(e,o)||Z0(e,o)||K0()}function K0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z0(e,o){if(e){if(typeof e=="string")return lr(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,o)}}function lr(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function Y0(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Q0(e){if(Array.isArray(e))return e}function sr(e){var o=rr(e),n=$0(o,2),a=n[0],r=n[1];return Ln.setTwoToneColors({primaryColor:a,secondaryColor:r})}function J0(){var e=Ln.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var X0=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function es(e,o){return as(e)||os(e,o)||ns(e,o)||ts()}function ts(){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 ns(e,o){if(e){if(typeof e=="string")return cr(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(e,o)}}function cr(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function os(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,i=!1,s,l;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));r=!0);}catch(d){i=!0,l=d}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function as(e){if(Array.isArray(e))return e}function dr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){Nn(e,r,n[r])})}return e}function Nn(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function rs(e,o){if(e==null)return{};var n=is(e,o),a,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function is(e,o){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i<a.length;i++)r=a[i],!(o.indexOf(r)>=0)&&(n[r]=e[r]);return n}sr("#1890ff");var Nt=function(o,n){var a,r=dr({},o,n.attrs),i=r.class,s=r.icon,l=r.spin,d=r.rotate,c=r.tabindex,f=r.twoToneColor,y=r.onClick,u=rs(r,X0),h=(a={anticon:!0},Nn(a,"anticon-".concat(s.name),!!s.name),Nn(a,i,i),a),m=l===""||l||s.name==="loading"?"anticon-spin":"",g=c;g===void 0&&y&&(g=-1,u.tabindex=g);var C=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,D=rr(f),b=es(D,2),S=b[0],p=b[1];return t.createVNode("span",dr({role:"img","aria-label":s.name},u,{onClick:y,class:h}),[t.createVNode(Ln,{class:m,icon:s,primaryColor:S,secondaryColor:p,style:C},null)])};Nt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Nt.displayName="AntdIcon",Nt.inheritAttrs=!1,Nt.getTwoToneColor=J0,Nt.setTwoToneColor=sr;const fr=Nt;var ls={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 ss=ls;function ur(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){cs(e,r,n[r])})}return e}function cs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Fn=function(o,n){var a=ur({},o,n.attrs);return t.createVNode(fr,ur({},a,{icon:ss}),null)};Fn.displayName="CloseOutlined",Fn.inheritAttrs=!1;const ds=Fn;var fs={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 us=fs;function hr(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),a.forEach(function(r){hs(e,r,n[r])})}return e}function hs(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var zn=function(o,n){var a=hr({},o,n.attrs);return t.createVNode(fr,hr({},a,{icon:us}),null)};zn.displayName="LoadingOutlined",zn.inheritAttrs=!1;const gs=zn,ms=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:se.Spin},setup(){return{indicator:t.h(gs,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Uu="",me=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n},ys={class:"spin-wrapper"};function xs(e,o,n,a,r,i){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ys,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Ft=me(ms,[["render",xs]]),ps=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:se.Skeleton}});function bs(e,o,n,a,r,i){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const en=me(ps,[["render",bs]]);(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 vs=Object.defineProperty,gr=Object.getOwnPropertySymbols,Ss=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,mr=(e,o,n)=>o in e?vs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,yr=(e,o)=>{for(var n in o||(o={}))Ss.call(o,n)&&mr(e,n,o[n]);if(gr)for(var n of gr(o))Cs.call(o,n)&&mr(e,n,o[n]);return e},ws=(e,o)=>{const n=e.__vccOpts||e;for(const[a,r]of o)n[a]=r;return n};const As=t.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const n=t.ref(0),a=t.ref("100%"),r=t.ref("100%"),i=t.ref(0),s=t.ref(!1),l=t.ref(!1),d=t.ref(0),c=t.ref(0),f=t.ref(0),y=t.ref(0),u=t.ref(!1),h=t.ref(!1),m=t.ref(0),g=t.ref(null),C=t.ref("200px"),D=t.ref(!1),b=t.ref(null),S=t.ref(null),p=async()=>{await T(),i.value++},T=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",b.value!==null&&S.value!==null&&b.value&&S.value)if(e.vertical&&"clientHeight"in b.value&&"clientHeight"in S.value){y.value=b.value.clientHeight,f.value=S.value.clientHeight;const R=Math.ceil(f.value/y.value);return n.value=isFinite(R)?R:0,s.value=!1,n.value}else if(!e.vertical&&"clientWidth"in b.value&&"clientWidth"in S.value){if(c.value=b.value.clientWidth,d.value=S.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const R=Math.ceil(d.value/c.value);return n.value=isFinite(R)?R:0,n.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};t.watch(c,async()=>{e.clone&&p()}),t.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&p()}),t.watch(()=>e.pause,(R,F)=>{R!==F&&o(R?"onResume":"onPause")});const E=()=>{e.pauseOnHover&&(o("onPause"),u.value=!0)},B=()=>{e.pauseOnHover&&(o("onResume"),u.value=!1)},O=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},N=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},A=t.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),k=t.computed(()=>e.pauseOnHover&&(u.value||h.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),I=t.computed(()=>e.pauseOnHover&&u.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),x=t.computed(()=>{const R={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${k.value}`,"--pauseOnClick":`${I.value}`,"--pauseAnimation":`${A.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${C.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},F={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(F["--orientation"]="scrollY"),yr(yr({},R),F)}),w=t.computed(()=>!!e.gradient),v=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),C.value=e.gradientWidth):e.gradientLength&&(C.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await T(),p()),D.value=!0};return t.onMounted(async()=>{v(),g.value=setInterval(()=>{m.value++,e.loop!==0&&m.value===e.loop&&(o("onComplete"),clearInterval(g.value)),o("onLoopComplete")},e.duration*1e3)}),t.onBeforeUnmount(()=>{clearInterval(g.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:y,containerHeight:f,loopCounter:m,loopInterval:g,mouseOverMarquee:u,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:b,marqueeOverlayContainer:S,componentKey:i,showGradient:w,cloneAmount:n,ForcesUpdate:p,checkForClone:T,setupMarquee:v,getCurrentStyle:x,hoverStarted:E,hoverEnded:B,mouseDown:O,mouseUp:N}}}),ks={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Ts={class:"marquee",ref:"marqueeContent"},Bs={key:1,"aria-hidden":!0,class:"marquee"};function Es(e,o,n,a,r,i){return e.ready?(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:t.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[t.createElementVNode("div",ks,null,512),e.showGradient?(t.openBlock(),t.createElementBlock("div",{key:0,"aria-hidden":!0,class:t.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",Ts,[t.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(t.openBlock(),t.createElementBlock("div",Bs,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cloneAmount,s=>(t.openBlock(),t.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[t.renderSlot(e.$slots,"default")]))),128))],38)):t.createCommentVNode("",!0)}var Ds=ws(As,[["render",Es]]);const Is=t.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Ds},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1},wrapStyle:{type:Object,default:()=>{}}},setup(e){return{isAutoScroll:t.ref(e.visible)}}});function Rs(e,o,n,a,r,i){const s=t.resolveComponent("Vue3Marquee");return e.isAutoScroll?(t.openBlock(),t.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"list-wrap",style:t.normalizeStyle(e.wrapStyle)},[t.renderSlot(e.$slots,"default")],4))}const Mn=me(Is,[["render",Rs]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const pe=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},ke={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1},ve=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},Pn={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},qn=ve(Pn),Os=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex","scale"],Ae=(e,o=[])=>{const n=Ie.without(Os,...o);return t.computed(()=>Ie.pick(e,n))},Vn="EVENT_BUS",Me="GLOBAL_CONFIG",Te="GLOBAL_MODEL",Fe="REQUEST_MODEL",xr="GLOBAL_TOKEN",tn="REFRESH_PAGE",pr="MODAL_MODEL",vt="LOADED_DATA",Ue=18,br="ygt",vr=((Ul=window==null?void 0:window.config)==null?void 0:Ul.indicatorURL)||"";(Gl=window==null?void 0:window.config)!=null&&Gl.uploadPath;const Sr=(($l=window==null?void 0:window.config)==null?void 0:$l.routerBaseURL)||"./",_s=((Kl=window==null?void 0:window.config)==null?void 0:Kl.erdURL)||"",Cr=["table","bar","combograph","line","pie","radar","scatter","list","circulate"],Re=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(Vn,{onEvent:(r,i)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},Be=e=>{const o=e.events,n=e.id,a=t.inject(Vn,{emitEvent:(i,s)=>{}}),{touchEventId:r}=t.inject(Me,{touchEventId:t.ref("")});return(i,s=()=>{})=>function(){s.call(this,...arguments);const{emitEvent:l}=a;o.forEach(d=>{if(i===d.on)try{r.value=n,l(d.target,d.emit)}catch(c){console.error(c)}})}},zt=(e,o)=>{let{name:n="name",value:a="value",type:r="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),r=r==null?void 0:r.trim();const i=new Map,s=e.length;for(let c=0;c<s;c++){const f=e[c],y=f[n]||"",u=f[a]||"",h=f[r]||"";if(i.has(h)){const m=i.get(h);m.push({name:y,value:u,...f}),i.set(h,m)}else i.set(h,[{name:y,value:u,...f}])}const l=[],d=[];for(const[c,f]of i)if(d.push({name:c,data:f}),f!=null&&f.length)if(l.length)for(const y of f)l.includes(y.name)||l.push(y.name);else l.push(...f.map(y=>y.name));return{dimensions:l,dataset:d}};var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ls(e){if(e.__esModule)return e;var o=e.default;if(typeof o=="function"){var n=function a(){return this instanceof a?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};n.prototype=o.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}),n}var Ar={exports:{}};function Ns(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Hn={exports:{}};const Fs=Ls(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var kr;function xe(){return kr||(kr=1,function(e,o){(function(n,a){e.exports=a()})(de,function(){var n=n||function(a,r){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof de<"u"&&de.crypto&&(i=de.crypto),!i&&typeof Ns=="function")try{i=Fs}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function b(){}return function(S){var p;return b.prototype=S,p=new b,b.prototype=null,p}}(),d={},c=d.lib={},f=c.Base=function(){return{extend:function(b){var S=l(this);return b&&S.mixIn(b),(!S.hasOwnProperty("init")||this.init===S.init)&&(S.init=function(){S.$super.init.apply(this,arguments)}),S.init.prototype=S,S.$super=this,S},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var S in b)b.hasOwnProperty(S)&&(this[S]=b[S]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=c.WordArray=f.extend({init:function(b,S){b=this.words=b||[],S!=r?this.sigBytes=S:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var S=this.words,p=b.words,T=this.sigBytes,E=b.sigBytes;if(this.clamp(),T%4)for(var B=0;B<E;B++){var O=p[B>>>2]>>>24-B%4*8&255;S[T+B>>>2]|=O<<24-(T+B)%4*8}else for(var N=0;N<E;N+=4)S[T+N>>>2]=p[N>>>2];return this.sigBytes+=E,this},clamp:function(){var b=this.words,S=this.sigBytes;b[S>>>2]&=4294967295<<32-S%4*8,b.length=a.ceil(S/4)},clone:function(){var b=f.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var S=[],p=0;p<b;p+=4)S.push(s());return new y.init(S,b)}}),u=d.enc={},h=u.Hex={stringify:function(b){for(var S=b.words,p=b.sigBytes,T=[],E=0;E<p;E++){var B=S[E>>>2]>>>24-E%4*8&255;T.push((B>>>4).toString(16)),T.push((B&15).toString(16))}return T.join("")},parse:function(b){for(var S=b.length,p=[],T=0;T<S;T+=2)p[T>>>3]|=parseInt(b.substr(T,2),16)<<24-T%8*4;return new y.init(p,S/2)}},m=u.Latin1={stringify:function(b){for(var S=b.words,p=b.sigBytes,T=[],E=0;E<p;E++){var B=S[E>>>2]>>>24-E%4*8&255;T.push(String.fromCharCode(B))}return T.join("")},parse:function(b){for(var S=b.length,p=[],T=0;T<S;T++)p[T>>>2]|=(b.charCodeAt(T)&255)<<24-T%4*8;return new y.init(p,S)}},g=u.Utf8={stringify:function(b){try{return decodeURIComponent(escape(m.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return m.parse(unescape(encodeURIComponent(b)))}},C=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=g.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var S,p=this._data,T=p.words,E=p.sigBytes,B=this.blockSize,O=B*4,N=E/O;b?N=a.ceil(N):N=a.max((N|0)-this._minBufferSize,0);var A=N*B,k=a.min(A*4,E);if(A){for(var I=0;I<A;I+=B)this._doProcessBlock(T,I);S=T.splice(0,A),p.sigBytes-=k}return new y.init(S,k)},clone:function(){var b=f.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=C.extend({cfg:f.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var S=this._doFinalize();return S},blockSize:16,_createHelper:function(b){return function(S,p){return new b.init(p).finalize(S)}},_createHmacHelper:function(b){return function(S,p){return new D.HMAC.init(b,p).finalize(S)}}});var D=d.algo={};return d}(Math);return n})}(Hn)),Hn.exports}var jn={exports:{}},Tr;function fn(){return Tr||(Tr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=r.x64={};d.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),d.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=a?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,y=[],u=0;u<f;u++){var h=c[u];y.push(h.high),y.push(h.low)}return l.create(y,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),y=f.length,u=0;u<y;u++)f[u]=f[u].clone();return c}})}(),n})}(jn)),jn.exports}var Wn={exports:{}},Br;function zs(){return Br||(Br=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){if(typeof ArrayBuffer=="function"){var a=n,r=a.lib,i=r.WordArray,s=i.init,l=i.init=function(d){if(d instanceof ArrayBuffer&&(d=new Uint8Array(d)),(d instanceof Int8Array||typeof Uint8ClampedArray<"u"&&d instanceof Uint8ClampedArray||d instanceof Int16Array||d instanceof Uint16Array||d instanceof Int32Array||d instanceof Uint32Array||d instanceof Float32Array||d instanceof Float64Array)&&(d=new Uint8Array(d.buffer,d.byteOffset,d.byteLength)),d instanceof Uint8Array){for(var c=d.byteLength,f=[],y=0;y<c;y++)f[y>>>2]|=d[y]<<24-y%4*8;s.call(this,f,c)}else s.apply(this,arguments)};l.prototype=i}}(),n.lib.WordArray})}(Wn)),Wn.exports}var Un={exports:{}},Er;function Ms(){return Er||(Er=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Utf16=s.Utf16BE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=c[u>>>2]>>>16-u%4*8&65535;y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=d.charCodeAt(y)<<16-y%2*16;return i.create(f,c*2)}},s.Utf16LE={stringify:function(d){for(var c=d.words,f=d.sigBytes,y=[],u=0;u<f;u+=2){var h=l(c[u>>>2]>>>16-u%4*8&65535);y.push(String.fromCharCode(h))}return y.join("")},parse:function(d){for(var c=d.length,f=[],y=0;y<c;y++)f[y>>>1]|=l(d.charCodeAt(y)<<16-y%2*16);return i.create(f,c*2)}};function l(d){return d<<8&4278255360|d>>>8&16711935}}(),n.enc.Utf16})}(Un)),Un.exports}var Gn={exports:{}},Dr;function Mt(){return Dr||(Dr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64={stringify:function(d){var c=d.words,f=d.sigBytes,y=this._map;d.clamp();for(var u=[],h=0;h<f;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,g=c[h+1>>>2]>>>24-(h+1)%4*8&255,C=c[h+2>>>2]>>>24-(h+2)%4*8&255,D=m<<16|g<<8|C,b=0;b<4&&h+b*.75<f;b++)u.push(y.charAt(D>>>6*(3-b)&63));var S=y.charAt(64);if(S)for(;u.length%4;)u.push(S);return u.join("")},parse:function(d){var c=d.length,f=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var u=0;u<f.length;u++)y[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var m=d.indexOf(h);m!==-1&&(c=m)}return l(d,c,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64})}(Gn)),Gn.exports}var $n={exports:{}},Ir;function Ps(){return Ir||(Ir=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.enc;s.Base64url={stringify:function(d,c=!0){var f=d.words,y=d.sigBytes,u=c?this._safe_map:this._map;d.clamp();for(var h=[],m=0;m<y;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,C=f[m+1>>>2]>>>24-(m+1)%4*8&255,D=f[m+2>>>2]>>>24-(m+2)%4*8&255,b=g<<16|C<<8|D,S=0;S<4&&m+S*.75<y;S++)h.push(u.charAt(b>>>6*(3-S)&63));var p=u.charAt(64);if(p)for(;h.length%4;)h.push(p);return h.join("")},parse:function(d,c=!0){var f=d.length,y=c?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<y.length;h++)u[y.charCodeAt(h)]=h}var m=y.charAt(64);if(m){var g=d.indexOf(m);g!==-1&&(f=g)}return l(d,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function l(d,c,f){for(var y=[],u=0,h=0;h<c;h++)if(h%4){var m=f[d.charCodeAt(h-1)]<<h%4*2,g=f[d.charCodeAt(h)]>>>6-h%4*2,C=m|g;y[u>>>2]|=C<<24-u%4*8,u++}return i.create(y,u)}}(),n.enc.Base64url})}($n)),$n.exports}var Kn={exports:{}},Rr;function Pt(){return Rr||(Rr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[];(function(){for(var g=0;g<64;g++)c[g]=a.abs(a.sin(g+1))*4294967296|0})();var f=d.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,C){for(var D=0;D<16;D++){var b=C+D,S=g[b];g[b]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var p=this._hash.words,T=g[C+0],E=g[C+1],B=g[C+2],O=g[C+3],N=g[C+4],A=g[C+5],k=g[C+6],I=g[C+7],x=g[C+8],w=g[C+9],v=g[C+10],R=g[C+11],F=g[C+12],q=g[C+13],W=g[C+14],G=g[C+15],z=p[0],P=p[1],M=p[2],_=p[3];z=y(z,P,M,_,T,7,c[0]),_=y(_,z,P,M,E,12,c[1]),M=y(M,_,z,P,B,17,c[2]),P=y(P,M,_,z,O,22,c[3]),z=y(z,P,M,_,N,7,c[4]),_=y(_,z,P,M,A,12,c[5]),M=y(M,_,z,P,k,17,c[6]),P=y(P,M,_,z,I,22,c[7]),z=y(z,P,M,_,x,7,c[8]),_=y(_,z,P,M,w,12,c[9]),M=y(M,_,z,P,v,17,c[10]),P=y(P,M,_,z,R,22,c[11]),z=y(z,P,M,_,F,7,c[12]),_=y(_,z,P,M,q,12,c[13]),M=y(M,_,z,P,W,17,c[14]),P=y(P,M,_,z,G,22,c[15]),z=u(z,P,M,_,E,5,c[16]),_=u(_,z,P,M,k,9,c[17]),M=u(M,_,z,P,R,14,c[18]),P=u(P,M,_,z,T,20,c[19]),z=u(z,P,M,_,A,5,c[20]),_=u(_,z,P,M,v,9,c[21]),M=u(M,_,z,P,G,14,c[22]),P=u(P,M,_,z,N,20,c[23]),z=u(z,P,M,_,w,5,c[24]),_=u(_,z,P,M,W,9,c[25]),M=u(M,_,z,P,O,14,c[26]),P=u(P,M,_,z,x,20,c[27]),z=u(z,P,M,_,q,5,c[28]),_=u(_,z,P,M,B,9,c[29]),M=u(M,_,z,P,I,14,c[30]),P=u(P,M,_,z,F,20,c[31]),z=h(z,P,M,_,A,4,c[32]),_=h(_,z,P,M,x,11,c[33]),M=h(M,_,z,P,R,16,c[34]),P=h(P,M,_,z,W,23,c[35]),z=h(z,P,M,_,E,4,c[36]),_=h(_,z,P,M,N,11,c[37]),M=h(M,_,z,P,I,16,c[38]),P=h(P,M,_,z,v,23,c[39]),z=h(z,P,M,_,q,4,c[40]),_=h(_,z,P,M,T,11,c[41]),M=h(M,_,z,P,O,16,c[42]),P=h(P,M,_,z,k,23,c[43]),z=h(z,P,M,_,w,4,c[44]),_=h(_,z,P,M,F,11,c[45]),M=h(M,_,z,P,G,16,c[46]),P=h(P,M,_,z,B,23,c[47]),z=m(z,P,M,_,T,6,c[48]),_=m(_,z,P,M,I,10,c[49]),M=m(M,_,z,P,W,15,c[50]),P=m(P,M,_,z,A,21,c[51]),z=m(z,P,M,_,F,6,c[52]),_=m(_,z,P,M,O,10,c[53]),M=m(M,_,z,P,v,15,c[54]),P=m(P,M,_,z,E,21,c[55]),z=m(z,P,M,_,x,6,c[56]),_=m(_,z,P,M,G,10,c[57]),M=m(M,_,z,P,k,15,c[58]),P=m(P,M,_,z,q,21,c[59]),z=m(z,P,M,_,N,6,c[60]),_=m(_,z,P,M,R,10,c[61]),M=m(M,_,z,P,B,15,c[62]),P=m(P,M,_,z,w,21,c[63]),p[0]=p[0]+z|0,p[1]=p[1]+P|0,p[2]=p[2]+M|0,p[3]=p[3]+_|0},_doFinalize:function(){var g=this._data,C=g.words,D=this._nDataBytes*8,b=g.sigBytes*8;C[b>>>5]|=128<<24-b%32;var S=a.floor(D/4294967296),p=D;C[(b+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,C[(b+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,g.sigBytes=(C.length+1)*4,this._process();for(var T=this._hash,E=T.words,B=0;B<4;B++){var O=E[B];E[B]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return T},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});function y(g,C,D,b,S,p,T){var E=g+(C&D|~C&b)+S+T;return(E<<p|E>>>32-p)+C}function u(g,C,D,b,S,p,T){var E=g+(C&b|D&~b)+S+T;return(E<<p|E>>>32-p)+C}function h(g,C,D,b,S,p,T){var E=g+(C^D^b)+S+T;return(E<<p|E>>>32-p)+C}function m(g,C,D,b,S,p,T){var E=g+(D^(C|~b))+S+T;return(E<<p|E>>>32-p)+C}r.MD5=l._createHelper(f),r.HmacMD5=l._createHmacHelper(f)}(Math),n.MD5})}(Kn)),Kn.exports}var Zn={exports:{}},Or;function Yn(){return Or||(Or=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.Hasher,l=a.algo,d=[],c=l.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,y){for(var u=this._hash.words,h=u[0],m=u[1],g=u[2],C=u[3],D=u[4],b=0;b<80;b++){if(b<16)d[b]=f[y+b]|0;else{var S=d[b-3]^d[b-8]^d[b-14]^d[b-16];d[b]=S<<1|S>>>31}var p=(h<<5|h>>>27)+D+d[b];b<20?p+=(m&g|~m&C)+1518500249:b<40?p+=(m^g^C)+1859775393:b<60?p+=(m&g|m&C|g&C)-1894007588:p+=(m^g^C)-899497514,D=C,C=g,g=m<<30|m>>>2,m=h,h=p}u[0]=u[0]+h|0,u[1]=u[1]+m|0,u[2]=u[2]+g|0,u[3]=u[3]+C|0,u[4]=u[4]+D|0},_doFinalize:function(){var f=this._data,y=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return y[h>>>5]|=128<<24-h%32,y[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),y[(h+64>>>9<<4)+15]=u,f.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});a.SHA1=s._createHelper(c),a.HmacSHA1=s._createHmacHelper(c)}(),n.SHA1})}(Zn)),Zn.exports}var Qn={exports:{}},_r;function Lr(){return _r||(_r=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=[],f=[];(function(){function h(D){for(var b=a.sqrt(D),S=2;S<=b;S++)if(!(D%S))return!1;return!0}function m(D){return(D-(D|0))*4294967296|0}for(var g=2,C=0;C<64;)h(g)&&(C<8&&(c[C]=m(a.pow(g,1/2))),f[C]=m(a.pow(g,1/3)),C++),g++})();var y=[],u=d.SHA256=l.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,m){for(var g=this._hash.words,C=g[0],D=g[1],b=g[2],S=g[3],p=g[4],T=g[5],E=g[6],B=g[7],O=0;O<64;O++){if(O<16)y[O]=h[m+O]|0;else{var N=y[O-15],A=(N<<25|N>>>7)^(N<<14|N>>>18)^N>>>3,k=y[O-2],I=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;y[O]=A+y[O-7]+I+y[O-16]}var x=p&T^~p&E,w=C&D^C&b^D&b,v=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),R=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),F=B+R+x+f[O]+y[O],q=v+w;B=E,E=T,T=p,p=S+F|0,S=b,b=D,D=C,C=F+q|0}g[0]=g[0]+C|0,g[1]=g[1]+D|0,g[2]=g[2]+b|0,g[3]=g[3]+S|0,g[4]=g[4]+p|0,g[5]=g[5]+T|0,g[6]=g[6]+E|0,g[7]=g[7]+B|0},_doFinalize:function(){var h=this._data,m=h.words,g=this._nDataBytes*8,C=h.sigBytes*8;return m[C>>>5]|=128<<24-C%32,m[(C+64>>>9<<4)+14]=a.floor(g/4294967296),m[(C+64>>>9<<4)+15]=g,h.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA256=l._createHelper(u),r.HmacSHA256=l._createHmacHelper(u)}(Math),n.SHA256})}(Qn)),Qn.exports}var Jn={exports:{}},Nr;function qs(){return Nr||(Nr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Lr())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=a.algo,l=s.SHA256,d=s.SHA224=l.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=l._createHelper(d),a.HmacSHA224=l._createHmacHelper(d)}(),n.SHA224})}(Jn)),Jn.exports}var Xn={exports:{}},Fr;function zr(){return Fr||(Fr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Hasher,s=a.x64,l=s.Word,d=s.WordArray,c=a.algo;function f(){return l.create.apply(l,arguments)}var y=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=f()})();var h=c.SHA512=i.extend({_doReset:function(){this._hash=new d.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var C=this._hash.words,D=C[0],b=C[1],S=C[2],p=C[3],T=C[4],E=C[5],B=C[6],O=C[7],N=D.high,A=D.low,k=b.high,I=b.low,x=S.high,w=S.low,v=p.high,R=p.low,F=T.high,q=T.low,W=E.high,G=E.low,z=B.high,P=B.low,M=O.high,_=O.low,L=N,V=A,Z=k,U=I,ae=x,Y=w,ie=v,re=R,Q=F,X=q,te=W,he=G,be=z,we=P,$e=M,Pe=_,_e=0;_e<80;_e++){var Ee,He,ze=u[_e];if(_e<16)He=ze.high=m[g+_e*2]|0,Ee=ze.low=m[g+_e*2+1]|0;else{var Ke=u[_e-15],We=Ke.high,je=Ke.low,ut=(We>>>1|je<<31)^(We>>>8|je<<24)^We>>>7,tt=(je>>>1|We<<31)^(je>>>8|We<<24)^(je>>>7|We<<25),nt=u[_e-2],H=nt.high,K=nt.low,J=(H>>>19|K<<13)^(H<<3|K>>>29)^H>>>6,oe=(K>>>19|H<<13)^(K<<3|H>>>29)^(K>>>6|H<<26),le=u[_e-7],ne=le.high,ee=le.low,fe=u[_e-16],ge=fe.high,ye=fe.low;Ee=tt+ee,He=ut+ne+(Ee>>>0<tt>>>0?1:0),Ee=Ee+oe,He=He+J+(Ee>>>0<oe>>>0?1:0),Ee=Ee+ye,He=He+ge+(Ee>>>0<ye>>>0?1:0),ze.high=He,ze.low=Ee}var Ne=Q&te^~Q&be,Ye=X&he^~X&we,xt=L&Z^L&ae^Z&ae,Ot=V&U^V&Y^U&Y,wn=(L>>>28|V<<4)^(L<<30|V>>>2)^(L<<25|V>>>7),Qe=(V>>>28|L<<4)^(V<<30|L>>>2)^(V<<25|L>>>7),_t=(Q>>>14|X<<18)^(Q>>>18|X<<14)^(Q<<23|X>>>9),Zt=(X>>>14|Q<<18)^(X>>>18|Q<<14)^(X<<23|Q>>>9),An=y[_e],Iu=An.high,Zl=An.low,ot=Pe+Zt,Bt=$e+_t+(ot>>>0<Pe>>>0?1:0),ot=ot+Ye,Bt=Bt+Ne+(ot>>>0<Ye>>>0?1:0),ot=ot+Zl,Bt=Bt+Iu+(ot>>>0<Zl>>>0?1:0),ot=ot+Ee,Bt=Bt+He+(ot>>>0<Ee>>>0?1:0),Yl=Qe+Ot,Ru=wn+xt+(Yl>>>0<Qe>>>0?1:0);$e=be,Pe=we,be=te,we=he,te=Q,he=X,X=re+ot|0,Q=ie+Bt+(X>>>0<re>>>0?1:0)|0,ie=ae,re=Y,ae=Z,Y=U,Z=L,U=V,V=ot+Yl|0,L=Bt+Ru+(V>>>0<ot>>>0?1:0)|0}A=D.low=A+V,D.high=N+L+(A>>>0<V>>>0?1:0),I=b.low=I+U,b.high=k+Z+(I>>>0<U>>>0?1:0),w=S.low=w+Y,S.high=x+ae+(w>>>0<Y>>>0?1:0),R=p.low=R+re,p.high=v+ie+(R>>>0<re>>>0?1:0),q=T.low=q+X,T.high=F+Q+(q>>>0<X>>>0?1:0),G=E.low=G+he,E.high=W+te+(G>>>0<he>>>0?1:0),P=B.low=P+we,B.high=z+be+(P>>>0<we>>>0?1:0),_=O.low=_+Pe,O.high=M+$e+(_>>>0<Pe>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,C=this._nDataBytes*8,D=m.sigBytes*8;g[D>>>5]|=128<<24-D%32,g[(D+128>>>10<<5)+30]=Math.floor(C/4294967296),g[(D+128>>>10<<5)+31]=C,m.sigBytes=g.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=i._createHelper(h),a.HmacSHA512=i._createHmacHelper(h)}(),n.SHA512})}(Xn)),Xn.exports}var eo={exports:{}},Mr;function Vs(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zr())})(de,function(n){return function(){var a=n,r=a.x64,i=r.Word,s=r.WordArray,l=a.algo,d=l.SHA512,c=l.SHA384=d.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var f=d._doFinalize.call(this);return f.sigBytes-=16,f}});a.SHA384=d._createHelper(c),a.HmacSHA384=d._createHmacHelper(c)}(),n.SHA384})}(eo)),eo.exports}var to={exports:{}},Pr;function Hs(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),fn())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.x64,c=d.Word,f=r.algo,y=[],u=[],h=[];(function(){for(var C=1,D=0,b=0;b<24;b++){y[C+5*D]=(b+1)*(b+2)/2%64;var S=D%5,p=(2*C+3*D)%5;C=S,D=p}for(var C=0;C<5;C++)for(var D=0;D<5;D++)u[C+5*D]=D+(2*C+3*D)%5*5;for(var T=1,E=0;E<24;E++){for(var B=0,O=0,N=0;N<7;N++){if(T&1){var A=(1<<N)-1;A<32?O^=1<<A:B^=1<<A-32}T&128?T=T<<1^113:T<<=1}h[E]=c.create(B,O)}})();var m=[];(function(){for(var C=0;C<25;C++)m[C]=c.create()})();var g=f.SHA3=l.extend({cfg:l.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],D=0;D<25;D++)C[D]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,D){for(var b=this._state,S=this.blockSize/2,p=0;p<S;p++){var T=C[D+2*p],E=C[D+2*p+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360;var B=b[p];B.high^=E,B.low^=T}for(var O=0;O<24;O++){for(var N=0;N<5;N++){for(var A=0,k=0,I=0;I<5;I++){var B=b[N+5*I];A^=B.high,k^=B.low}var x=m[N];x.high=A,x.low=k}for(var N=0;N<5;N++)for(var w=m[(N+4)%5],v=m[(N+1)%5],R=v.high,F=v.low,A=w.high^(R<<1|F>>>31),k=w.low^(F<<1|R>>>31),I=0;I<5;I++){var B=b[N+5*I];B.high^=A,B.low^=k}for(var q=1;q<25;q++){var A,k,B=b[q],W=B.high,G=B.low,z=y[q];z<32?(A=W<<z|G>>>32-z,k=G<<z|W>>>32-z):(A=G<<z-32|W>>>64-z,k=W<<z-32|G>>>64-z);var P=m[u[q]];P.high=A,P.low=k}var M=m[0],_=b[0];M.high=_.high,M.low=_.low;for(var N=0;N<5;N++)for(var I=0;I<5;I++){var q=N+5*I,B=b[q],L=m[q],V=m[(N+1)%5+5*I],Z=m[(N+2)%5+5*I];B.high=L.high^~V.high&Z.high,B.low=L.low^~V.low&Z.low}var B=b[0],U=h[O];B.high^=U.high,B.low^=U.low}},_doFinalize:function(){var C=this._data,D=C.words;this._nDataBytes*8;var b=C.sigBytes*8,S=this.blockSize*32;D[b>>>5]|=1<<24-b%32,D[(a.ceil((b+1)/S)*S>>>5)-1]|=128,C.sigBytes=D.length*4,this._process();for(var p=this._state,T=this.cfg.outputLength/8,E=T/8,B=[],O=0;O<E;O++){var N=p[O],A=N.high,k=N.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,B.push(k),B.push(A)}return new s.init(B,T)},clone:function(){for(var C=l.clone.call(this),D=C._state=this._state.slice(0),b=0;b<25;b++)D[b]=D[b].clone();return C}});r.SHA3=l._createHelper(g),r.HmacSHA3=l._createHmacHelper(g)}(Math),n.SHA3})}(to)),to.exports}var no={exports:{}},qr;function js(){return qr||(qr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){/** @preserve
59
59
  (c) 2012 by Cédric Mesnil. All rights reserved.
60
60
 
61
61
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
@@ -64,58 +64,58 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
64
64
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
65
65
 
66
66
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
67
- */return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,I){for(var _=0;_<16;_++){var N=I+_,A=B[N];B[N]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var T=this._hash.words,D=h.words,p=m.words,w=c.words,C=f.words,R=y.words,F=u.words,q,W,$,z,P,M,O,L,H,Z;M=q=T[0],O=W=T[1],L=$=T[2],H=z=T[3],Z=P=T[4];for(var U,_=0;_<80;_+=1)U=q+B[I+w[_]]|0,_<16?U+=S(W,$,z)+D[0]:_<32?U+=E(W,$,z)+D[1]:_<48?U+=b(W,$,z)+D[2]:_<64?U+=v(W,$,z)+D[3]:U+=x(W,$,z)+D[4],U=U|0,U=k(U,R[_]),U=U+P|0,q=P,P=z,z=k($,10),$=W,W=U,U=M+B[I+C[_]]|0,_<16?U+=x(O,L,H)+p[0]:_<32?U+=v(O,L,H)+p[1]:_<48?U+=b(O,L,H)+p[2]:_<64?U+=E(O,L,H)+p[3]:U+=S(O,L,H)+p[4],U=U|0,U=k(U,F[_]),U=U+Z|0,M=Z,Z=H,H=k(L,10),L=O,O=U;U=T[1]+$+H|0,T[1]=T[2]+z+Z|0,T[2]=T[3]+P+M|0,T[3]=T[4]+q+O|0,T[4]=T[0]+W+L|0,T[0]=U},_doFinalize:function(){var B=this._data,I=B.words,_=this._nDataBytes*8,N=B.sigBytes*8;I[N>>>5]|=128<<24-N%32,I[(N+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,B.sigBytes=(I.length+1)*4,this._process();for(var A=this._hash,T=A.words,D=0;D<5;D++){var p=T[D];T[D]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}return A},clone:function(){var B=l.clone.call(this);return B._hash=this._hash.clone(),B}});function S(B,I,_){return B^I^_}function E(B,I,_){return B&I|~B&_}function b(B,I,_){return(B|~I)^_}function v(B,I,_){return B&_|I&~_}function x(B,I,_){return B^(I|~_)}function k(B,I){return B<<I|B>>>32-I}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),n.RIPEMD160})}(eo)),eo.exports}var to={exports:{}},Fr;function no(){return Fr||(Fr=1,function(e,o){(function(n,a){e.exports=a(ye())})(de,function(n){(function(){var a=n,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,S=m.words,E=0;E<y;E++)g[E]^=1549556828,S[E]^=909522486;h.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(to)),to.exports}var oo={exports:{}},zr;function zs(){return zr||(zr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Kn(),no())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,f=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),S=s.create([1]),E=g.words,b=S.words,v=h.keySize,x=h.iterations;E.length<v;){var k=m.update(u).finalize(S);m.reset();for(var B=k.words,I=B.length,_=k,N=1;N<x;N++){_=m.finalize(_),m.reset();for(var A=_.words,T=0;T<I;T++)B[T]^=A[T]}g.concat(k),b[0]++}return g.sigBytes=v*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),n.PBKDF2})}(oo)),oo.exports}var ao={exports:{}},Mr;function Dt(){return Mr||(Mr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Kn(),no())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),S=g.words,E=h.keySize,b=h.iterations;S.length<E;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var v=1;v<b;v++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=E*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),n.EvpKDF})}(ao)),ao.exports}var ro={exports:{}},Pr;function qe(){return Pr||(Pr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),Dt())})(de,function(n){n.lib.Cipher||function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(A,T){return this.create(this._ENC_XFORM_MODE,A,T)},createDecryptor:function(A,T){return this.create(this._DEC_XFORM_MODE,A,T)},init:function(A,T,D){this.cfg=this.cfg.extend(D),this._xformMode=A,this._key=T,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(T){return typeof T=="string"?N:B}return function(T){return{encrypt:function(D,p,w){return A(p).encrypt(T,D,p,w)},decrypt:function(D,p,w){return A(p).decrypt(T,D,p,w)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(A,T){return this.Encryptor.create(A,T)},createDecryptor:function(A,T){return this.Decryptor.create(A,T)},init:function(A,T){this._cipher=A,this._iv=T}}),S=m.CBC=function(){var A=g.extend();A.Encryptor=A.extend({processBlock:function(D,p){var w=this._cipher,C=w.blockSize;T.call(this,D,p,C),w.encryptBlock(D,p),this._prevBlock=D.slice(p,p+C)}}),A.Decryptor=A.extend({processBlock:function(D,p){var w=this._cipher,C=w.blockSize,R=D.slice(p,p+C);w.decryptBlock(D,p),T.call(this,D,p,C),this._prevBlock=R}});function T(D,p,w){var C,R=this._iv;R?(C=R,this._iv=a):C=this._prevBlock;for(var F=0;F<w;F++)D[p+F]^=C[F]}return A}(),E=r.pad={},b=E.Pkcs7={pad:function(A,T){for(var D=T*4,p=D-A.sigBytes%D,w=p<<24|p<<16|p<<8|p,C=[],R=0;R<p;R+=4)C.push(w);var F=l.create(C,p);A.concat(F)},unpad:function(A){var T=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=T}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:S,padding:b}),reset:function(){var A;h.reset.call(this);var T=this.cfg,D=T.iv,p=T.mode;this._xformMode==this._ENC_XFORM_MODE?A=p.createEncryptor:(A=p.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,D&&D.words):(this._mode=A.call(p,this,D&&D.words),this._mode.__creator=A)},_doProcessBlock:function(A,T){this._mode.processBlock(A,T)},_doFinalize:function(){var A,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),T.unpad(A)),A},blockSize:128/32});var v=i.CipherParams=s.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),x=r.format={},k=x.OpenSSL={stringify:function(A){var T,D=A.ciphertext,p=A.salt;return p?T=l.create([1398893684,1701076831]).concat(p).concat(D):T=D,T.toString(f)},parse:function(A){var T,D=f.parse(A),p=D.words;return p[0]==1398893684&&p[1]==1701076831&&(T=l.create(p.slice(2,4)),p.splice(0,4),D.sigBytes-=16),v.create({ciphertext:D,salt:T})}},B=i.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(A,T,D,p){p=this.cfg.extend(p);var w=A.createEncryptor(D,p),C=w.finalize(T),R=w.cfg;return v.create({ciphertext:C,key:D,iv:R.iv,algorithm:A,mode:R.mode,padding:R.padding,blockSize:A.blockSize,formatter:p.format})},decrypt:function(A,T,D,p){p=this.cfg.extend(p),T=this._parse(T,p.format);var w=A.createDecryptor(D,p).finalize(T.ciphertext);return w},_parse:function(A,T){return typeof A=="string"?T.parse(A,this):A}}),I=r.kdf={},_=I.OpenSSL={execute:function(A,T,D,p){p||(p=l.random(64/8));var w=u.create({keySize:T+D}).compute(A,p),C=l.create(w.words.slice(T),D*4);return w.sigBytes=T*4,v.create({key:w,iv:C,salt:p})}},N=i.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:_}),encrypt:function(A,T,D,p){p=this.cfg.extend(p);var w=p.kdf.execute(D,A.keySize,A.ivSize);p.iv=w.iv;var C=B.encrypt.call(this,A,T,w.key,p);return C.mixIn(w),C},decrypt:function(A,T,D,p){p=this.cfg.extend(p),T=this._parse(T,p.format);var w=p.kdf.execute(D,A.keySize,A.ivSize,T.salt);p.iv=w.iv;var C=B.decrypt.call(this,A,T,w.key,p);return C}})}()})}(ro)),ro.exports}var io={exports:{}},qr;function Ms(){return qr||(qr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(io)),io.exports}var lo={exports:{}},Hr;function Ps(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),n.mode.CTR})}(lo)),lo.exports}var so={exports:{}},Vr;function qs(){return Vr||(Vr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){/** @preserve
67
+ */return function(a){var r=n,i=r.lib,s=i.WordArray,l=i.Hasher,d=r.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),y=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=d.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(E,B){for(var O=0;O<16;O++){var N=B+O,A=E[N];E[N]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var k=this._hash.words,I=h.words,x=m.words,w=c.words,v=f.words,R=y.words,F=u.words,q,W,G,z,P,M,_,L,V,Z;M=q=k[0],_=W=k[1],L=G=k[2],V=z=k[3],Z=P=k[4];for(var U,O=0;O<80;O+=1)U=q+E[B+w[O]]|0,O<16?U+=C(W,G,z)+I[0]:O<32?U+=D(W,G,z)+I[1]:O<48?U+=b(W,G,z)+I[2]:O<64?U+=S(W,G,z)+I[3]:U+=p(W,G,z)+I[4],U=U|0,U=T(U,R[O]),U=U+P|0,q=P,P=z,z=T(G,10),G=W,W=U,U=M+E[B+v[O]]|0,O<16?U+=p(_,L,V)+x[0]:O<32?U+=S(_,L,V)+x[1]:O<48?U+=b(_,L,V)+x[2]:O<64?U+=D(_,L,V)+x[3]:U+=C(_,L,V)+x[4],U=U|0,U=T(U,F[O]),U=U+Z|0,M=Z,Z=V,V=T(L,10),L=_,_=U;U=k[1]+G+V|0,k[1]=k[2]+z+Z|0,k[2]=k[3]+P+M|0,k[3]=k[4]+q+_|0,k[4]=k[0]+W+L|0,k[0]=U},_doFinalize:function(){var E=this._data,B=E.words,O=this._nDataBytes*8,N=E.sigBytes*8;B[N>>>5]|=128<<24-N%32,B[(N+64>>>9<<4)+14]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,E.sigBytes=(B.length+1)*4,this._process();for(var A=this._hash,k=A.words,I=0;I<5;I++){var x=k[I];k[I]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return A},clone:function(){var E=l.clone.call(this);return E._hash=this._hash.clone(),E}});function C(E,B,O){return E^B^O}function D(E,B,O){return E&B|~E&O}function b(E,B,O){return(E|~B)^O}function S(E,B,O){return E&O|B&~O}function p(E,B,O){return E^(B|~O)}function T(E,B){return E<<B|E>>>32-B}r.RIPEMD160=l._createHelper(g),r.HmacRIPEMD160=l._createHmacHelper(g)}(),n.RIPEMD160})}(no)),no.exports}var oo={exports:{}},Vr;function ao(){return Vr||(Vr=1,function(e,o){(function(n,a){e.exports=a(xe())})(de,function(n){(function(){var a=n,r=a.lib,i=r.Base,s=a.enc,l=s.Utf8,d=a.algo;d.HMAC=i.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=l.parse(f));var y=c.blockSize,u=y*4;f.sigBytes>u&&(f=c.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),m=this._iKey=f.clone(),g=h.words,C=m.words,D=0;D<y;D++)g[D]^=1549556828,C[D]^=909522486;h.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,y=f.finalize(c);f.reset();var u=f.finalize(this._oKey.clone().concat(y));return u}})})()})}(oo)),oo.exports}var ro={exports:{}},Hr;function Ws(){return Hr||(Hr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.SHA1,c=l.HMAC,f=l.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(y){this.cfg=this.cfg.extend(y)},compute:function(y,u){for(var h=this.cfg,m=c.create(h.hasher,y),g=s.create(),C=s.create([1]),D=g.words,b=C.words,S=h.keySize,p=h.iterations;D.length<S;){var T=m.update(u).finalize(C);m.reset();for(var E=T.words,B=E.length,O=T,N=1;N<p;N++){O=m.finalize(O),m.reset();for(var A=O.words,k=0;k<B;k++)E[k]^=A[k]}g.concat(T),b[0]++}return g.sigBytes=S*4,g}});a.PBKDF2=function(y,u,h){return f.create(h).compute(y,u)}}(),n.PBKDF2})}(ro)),ro.exports}var io={exports:{}},jr;function Dt(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Yn(),ao())})(de,function(n){return function(){var a=n,r=a.lib,i=r.Base,s=r.WordArray,l=a.algo,d=l.MD5,c=l.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:d,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,y){for(var u,h=this.cfg,m=h.hasher.create(),g=s.create(),C=g.words,D=h.keySize,b=h.iterations;C.length<D;){u&&m.update(u),u=m.update(f).finalize(y),m.reset();for(var S=1;S<b;S++)u=m.finalize(u),m.reset();g.concat(u)}return g.sigBytes=D*4,g}});a.EvpKDF=function(f,y,u){return c.create(u).compute(f,y)}}(),n.EvpKDF})}(io)),io.exports}var lo={exports:{}},Wr;function qe(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Dt())})(de,function(n){n.lib.Cipher||function(a){var r=n,i=r.lib,s=i.Base,l=i.WordArray,d=i.BufferedBlockAlgorithm,c=r.enc;c.Utf8;var f=c.Base64,y=r.algo,u=y.EvpKDF,h=i.Cipher=d.extend({cfg:s.extend(),createEncryptor:function(A,k){return this.create(this._ENC_XFORM_MODE,A,k)},createDecryptor:function(A,k){return this.create(this._DEC_XFORM_MODE,A,k)},init:function(A,k,I){this.cfg=this.cfg.extend(I),this._xformMode=A,this._key=k,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(k){return typeof k=="string"?N:E}return function(k){return{encrypt:function(I,x,w){return A(x).encrypt(k,I,x,w)},decrypt:function(I,x,w){return A(x).decrypt(k,I,x,w)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var m=r.mode={},g=i.BlockCipherMode=s.extend({createEncryptor:function(A,k){return this.Encryptor.create(A,k)},createDecryptor:function(A,k){return this.Decryptor.create(A,k)},init:function(A,k){this._cipher=A,this._iv=k}}),C=m.CBC=function(){var A=g.extend();A.Encryptor=A.extend({processBlock:function(I,x){var w=this._cipher,v=w.blockSize;k.call(this,I,x,v),w.encryptBlock(I,x),this._prevBlock=I.slice(x,x+v)}}),A.Decryptor=A.extend({processBlock:function(I,x){var w=this._cipher,v=w.blockSize,R=I.slice(x,x+v);w.decryptBlock(I,x),k.call(this,I,x,v),this._prevBlock=R}});function k(I,x,w){var v,R=this._iv;R?(v=R,this._iv=a):v=this._prevBlock;for(var F=0;F<w;F++)I[x+F]^=v[F]}return A}(),D=r.pad={},b=D.Pkcs7={pad:function(A,k){for(var I=k*4,x=I-A.sigBytes%I,w=x<<24|x<<16|x<<8|x,v=[],R=0;R<x;R+=4)v.push(w);var F=l.create(v,x);A.concat(F)},unpad:function(A){var k=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=k}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:C,padding:b}),reset:function(){var A;h.reset.call(this);var k=this.cfg,I=k.iv,x=k.mode;this._xformMode==this._ENC_XFORM_MODE?A=x.createEncryptor:(A=x.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,I&&I.words):(this._mode=A.call(x,this,I&&I.words),this._mode.__creator=A)},_doProcessBlock:function(A,k){this._mode.processBlock(A,k)},_doFinalize:function(){var A,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),k.unpad(A)),A},blockSize:128/32});var S=i.CipherParams=s.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),p=r.format={},T=p.OpenSSL={stringify:function(A){var k,I=A.ciphertext,x=A.salt;return x?k=l.create([1398893684,1701076831]).concat(x).concat(I):k=I,k.toString(f)},parse:function(A){var k,I=f.parse(A),x=I.words;return x[0]==1398893684&&x[1]==1701076831&&(k=l.create(x.slice(2,4)),x.splice(0,4),I.sigBytes-=16),S.create({ciphertext:I,salt:k})}},E=i.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(A,k,I,x){x=this.cfg.extend(x);var w=A.createEncryptor(I,x),v=w.finalize(k),R=w.cfg;return S.create({ciphertext:v,key:I,iv:R.iv,algorithm:A,mode:R.mode,padding:R.padding,blockSize:A.blockSize,formatter:x.format})},decrypt:function(A,k,I,x){x=this.cfg.extend(x),k=this._parse(k,x.format);var w=A.createDecryptor(I,x).finalize(k.ciphertext);return w},_parse:function(A,k){return typeof A=="string"?k.parse(A,this):A}}),B=r.kdf={},O=B.OpenSSL={execute:function(A,k,I,x){x||(x=l.random(64/8));var w=u.create({keySize:k+I}).compute(A,x),v=l.create(w.words.slice(k),I*4);return w.sigBytes=k*4,S.create({key:w,iv:v,salt:x})}},N=i.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:O}),encrypt:function(A,k,I,x){x=this.cfg.extend(x);var w=x.kdf.execute(I,A.keySize,A.ivSize);x.iv=w.iv;var v=E.encrypt.call(this,A,k,w.key,x);return v.mixIn(w),v},decrypt:function(A,k,I,x){x=this.cfg.extend(x),k=this._parse(k,x.format);var w=x.kdf.execute(I,A.keySize,A.ivSize,k.salt);x.iv=w.iv;var v=E.decrypt.call(this,A,k,w.key,x);return v}})}()})}(lo)),lo.exports}var so={exports:{}},Ur;function Us(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.mode.CFB=function(){var a=n.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize;r.call(this,i,s,d,l),this._prevBlock=i.slice(s,s+d)}}),a.Decryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=i.slice(s,s+d);r.call(this,i,s,d,l),this._prevBlock=c}});function r(i,s,l,d){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,d.encryptBlock(c,0);for(var y=0;y<l;y++)i[s+y]^=c[y]}return a}(),n.mode.CFB})}(so)),so.exports}var co={exports:{}},Gr;function Gs(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.mode.CTR=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var y=f.slice(0);l.encryptBlock(y,0),f[d-1]=f[d-1]+1|0;for(var u=0;u<d;u++)i[s+u]^=y[u]}});return a.Decryptor=r,a}(),n.mode.CTR})}(co)),co.exports}var fo={exports:{}},$r;function $s(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){/** @preserve
68
68
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
69
69
  * derived from CryptoJS.mode.CTR
70
70
  * Jan Hruby jhruby.web@gmail.com
71
- */return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(so)),so.exports}var co={exports:{}},jr;function Hs(){return jr||(jr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(co)),co.exports}var fo={exports:{}},Wr;function Vs(){return Wr||(Wr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),n.mode.ECB})}(fo)),fo.exports}var uo={exports:{}},Ur;function js(){return Ur||(Ur=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Ansix923})}(uo)),uo.exports}var ho={exports:{}},Gr;function Ws(){return Gr||(Gr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Iso10126})}(ho)),ho.exports}var go={exports:{}},$r;function Us(){return $r||($r=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.Iso97971={pad:function(a,r){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,r)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(go)),go.exports}var mo={exports:{}},Kr;function Gs(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(mo)),mo.exports}var yo={exports:{}},Zr;function $s(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(yo)),yo.exports}var xo={exports:{}},Yr;function Ks(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),qe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),n.format.Hex})}(xo)),xo.exports}var po={exports:{}},Qr;function Zs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],S=[];(function(){for(var v=[],x=0;x<256;x++)x<128?v[x]=x<<1:v[x]=x<<1^283;for(var k=0,B=0,x=0;x<256;x++){var I=B^B<<1^B<<2^B<<3^B<<4;I=I>>>8^I&255^99,l[k]=I,d[I]=k;var _=v[k],N=v[_],A=v[N],T=v[I]*257^I*16843008;c[k]=T<<24|T>>>8,f[k]=T<<16|T>>>16,y[k]=T<<8|T>>>24,u[k]=T;var T=A*16843009^N*65537^_*257^k*16843008;h[I]=T<<24|T>>>8,m[I]=T<<16|T>>>16,g[I]=T<<8|T>>>24,S[I]=T,k?(k=_^v[v[v[A^_]]],B^=v[v[B]]):k=B=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,B=x.sigBytes/4,I=this._nRounds=B+6,_=(I+1)*4,N=this._keySchedule=[],A=0;A<_;A++)A<B?N[A]=k[A]:(v=N[A-1],A%B?B>6&&A%B==4&&(v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255]):(v=v<<8|v>>>24,v=l[v>>>24]<<24|l[v>>>16&255]<<16|l[v>>>8&255]<<8|l[v&255],v^=E[A/B|0]<<24),N[A]=N[A-B]^v);for(var T=this._invKeySchedule=[],D=0;D<_;D++){var A=_-D;if(D%4)var v=N[A];else var v=N[A-4];D<4||A<=4?T[D]=v:T[D]=h[l[v>>>24]]^m[l[v>>>16&255]]^g[l[v>>>8&255]]^S[l[v&255]]}}},encryptBlock:function(v,x){this._doCryptBlock(v,x,this._keySchedule,c,f,y,u,l)},decryptBlock:function(v,x){var k=v[x+1];v[x+1]=v[x+3],v[x+3]=k,this._doCryptBlock(v,x,this._invKeySchedule,h,m,g,S,d);var k=v[x+1];v[x+1]=v[x+3],v[x+3]=k},_doCryptBlock:function(v,x,k,B,I,_,N,A){for(var T=this._nRounds,D=v[x]^k[0],p=v[x+1]^k[1],w=v[x+2]^k[2],C=v[x+3]^k[3],R=4,F=1;F<T;F++){var q=B[D>>>24]^I[p>>>16&255]^_[w>>>8&255]^N[C&255]^k[R++],W=B[p>>>24]^I[w>>>16&255]^_[C>>>8&255]^N[D&255]^k[R++],$=B[w>>>24]^I[C>>>16&255]^_[D>>>8&255]^N[p&255]^k[R++],z=B[C>>>24]^I[D>>>16&255]^_[p>>>8&255]^N[w&255]^k[R++];D=q,p=W,w=$,C=z}var q=(A[D>>>24]<<24|A[p>>>16&255]<<16|A[w>>>8&255]<<8|A[C&255])^k[R++],W=(A[p>>>24]<<24|A[w>>>16&255]<<16|A[C>>>8&255]<<8|A[D&255])^k[R++],$=(A[w>>>24]<<24|A[C>>>16&255]<<16|A[D>>>8&255]<<8|A[p&255])^k[R++],z=(A[C>>>24]<<24|A[D>>>16&255]<<16|A[p>>>8&255]<<8|A[w&255])^k[R++];v[x]=q,v[x+1]=W,v[x+2]=$,v[x+3]=z},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(po)),po.exports}var bo={exports:{}},Jr;function Ys(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var E=this._key,b=E.words,v=[],x=0;x<56;x++){var k=d[x]-1;v[x]=b[k>>>5]>>>31-k%32&1}for(var B=this._subKeys=[],I=0;I<16;I++){for(var _=B[I]=[],N=f[I],x=0;x<24;x++)_[x/6|0]|=v[(c[x]-1+N)%28]<<31-x%6,_[4+(x/6|0)]|=v[28+(c[x+24]-1+N)%28]<<31-x%6;_[0]=_[0]<<1|_[0]>>>31;for(var x=1;x<7;x++)_[x]=_[x]>>>(x-1)*4+3;_[7]=_[7]<<5|_[7]>>>27}for(var A=this._invSubKeys=[],x=0;x<16;x++)A[x]=B[15-x]},encryptBlock:function(E,b){this._doCryptBlock(E,b,this._subKeys)},decryptBlock:function(E,b){this._doCryptBlock(E,b,this._invSubKeys)},_doCryptBlock:function(E,b,v){this._lBlock=E[b],this._rBlock=E[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=v[x],B=this._lBlock,I=this._rBlock,_=0,N=0;N<8;N++)_|=y[N][((I^k[N])&u[N])>>>0];this._lBlock=I,this._rBlock=B^_}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),E[b]=this._lBlock,E[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(E,b){var v=(this._lBlock>>>E^this._rBlock)&b;this._rBlock^=v,this._lBlock^=v<<E}function g(E,b){var v=(this._rBlock>>>E^this._lBlock)&b;this._lBlock^=v,this._rBlock^=v<<E}a.DES=s._createHelper(h);var S=l.TripleDES=s.extend({_doReset:function(){var E=this._key,b=E.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=b.slice(0,2),x=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(v)),this._des2=h.createEncryptor(i.create(x)),this._des3=h.createEncryptor(i.create(k))},encryptBlock:function(E,b){this._des1.encryptBlock(E,b),this._des2.decryptBlock(E,b),this._des3.encryptBlock(E,b)},decryptBlock:function(E,b){this._des3.decryptBlock(E,b),this._des2.encryptBlock(E,b),this._des1.decryptBlock(E,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(S)}(),n.TripleDES})}(bo)),bo.exports}var vo={exports:{}},Xr;function Qs(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var S=m%u,E=y[S>>>2]>>>24-S%4*8&255;g=(g+h[m]+E)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(vo)),vo.exports}var So={exports:{}},ei;function Js(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],S=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)S[m]^=g[m+4&7];if(h){var E=h.words,b=E[0],v=E[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=x>>>16|k&4294901760,I=k<<16|x&65535;S[0]^=x,S[1]^=B,S[2]^=k,S[3]^=I,S[4]^=x,S[5]^=B,S[6]^=k,S[7]^=I;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],S=g&65535,E=g>>>16,b=((S*S>>>17)+S*E>>>15)+E*E,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),n.Rabbit})}(So)),So.exports}var Co={exports:{}},ti;function Xs(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(ye(),zt(),Mt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var S=0;S<4;S++)y.call(this);for(var S=0;S<8;S++)g[S]^=m[S+4&7];if(h){var E=h.words,b=E[0],v=E[1],x=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,B=x>>>16|k&4294901760,I=k<<16|x&65535;g[0]^=x,g[1]^=B,g[2]^=k,g[3]^=I,g[4]^=x,g[5]^=B,g[6]^=k,g[7]^=I;for(var S=0;S<4;S++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],S=g&65535,E=g>>>16,b=((S*S>>>17)+S*E>>>15)+E*E,v=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^v}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),n.RabbitLegacy})}(Co)),Co.exports}(function(e,o){(function(n,a,r){e.exports=a(ye(),cn(),Is(),Rs(),zt(),Os(),Mt(),Kn(),Dr(),_s(),Or(),Ls(),Ns(),Fs(),no(),zs(),Dt(),qe(),Ms(),Ps(),qs(),Hs(),Vs(),js(),Ws(),Us(),Gs(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs())})(de,function(n){return n})})(br);var ec=br.exports;const Xe=pr(ec);var tc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return tc.charAt(e)}function nc(e,o){return e&o}function dn(e,o){return e|o}function ni(e,o){return e^o}function oi(e,o){return e&~o}function oc(e){if(e==0)return-1;var o=0;return e&65535||(e>>=16,o+=16),e&255||(e>>=8,o+=8),e&15||(e>>=4,o+=4),e&3||(e>>=2,o+=2),e&1||++o,o}function ac(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ai="=";function fn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=Pt.charAt(n>>6)+Pt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=Pt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=Pt.charAt(n>>2)+Pt.charAt((n&3)<<4));(a.length&3)>0;)a+=ai;return a}function ri(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=ai;++n){var i=Pt.indexOf(e.charAt(n));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var qt,rc={decode:function(e){var o;if(qt===void 0){var n="0123456789ABCDEF",a=` \f
72
- \r  \u2028\u2029`;for(qt={},o=0;o<16;++o)qt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)qt[n.charAt(o)]=o;for(o=0;o<a.length;++o)qt[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=qt[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=2?(r[r.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return r}},It,wo={decode:function(e){var o;if(It===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
73
- \r  \u2028\u2029`;for(It=Object.create(null),o=0;o<64;++o)It[n.charAt(o)]=o;for(It["-"]=62,It._=63,o=0;o<a.length;++o)It[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=It[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=wo.re.exec(e);if(o)if(o[1])e=o[1];else if(o[2])e=o[2];else throw new Error("RegExp out of sync");return wo.decode(e)}},Ht=1e13,en=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+n,s<Ht?n=0:(n=0|s/Ht,s-=n*Ht),a[i]=s;n>0&&(a[i]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,r,i;for(r=0;r<a;++r)i=n[r]-o,i<0?(i+=Ht,o=1):o=0,n[r]=i;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),r=n.length-2;r>=0;--r)a+=(Ht+n[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*Ht+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),ii="…",ic=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,lc=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Vt(e,o){return e.length>o&&(e=e.substring(0,o)+ii),e}var Ao=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,n,a){for(var r="",i=o;i<n;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
74
- `;break;default:r+=" "}return r},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",r=o;r<n;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",r=o;r<n;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",r,i,s=o;s<n;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,n,a){var r=this.parseStringISO(o,n),i=(a?ic:lc).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(o,n){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<n;)a=this.get(o);if(s=n-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
75
- `}r&&(a=a-256);for(var d=new en(a),c=o+1;c<n;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,n,a){for(var r=this.get(o),i=(n-o-1<<3)-r,s="("+i+` bit)
76
- `,l="",d=o+1;d<n;++d){for(var c=this.get(d),f=d==n-1?r:0,y=7;y>=f;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+Vt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return Vt(this.parseStringISO(o,n),a);var r=n-o,i="("+r+` byte)
77
- `;a/=2,r>a&&(n=o+a);for(var s=o;s<n;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=ii),i},e.prototype.parseOID=function(o,n,a){for(var r="",i=new en,s=0,l=o;l<n;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof en)i.sub(80),r="2."+i.toString();else{var c=i<80?i<40?0:1:2;r=c+"."+(i-c*40)}else r+="."+i.toString();if(r.length>a)return Vt(r,a);i=new en,s=0}}return s>0&&(r+=".incomplete"),r},e}(),sc=function(){function e(o,n,a,r,i){if(!(r instanceof li))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Vt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return Vt(this.stream.parseStringISO(n,n+a),o);case 30:return Vt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
78
- `,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var r=0;r<a;++r)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof Ao?n=o:n=new Ao(o,0);var a=new Ao(n),r=new li(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;n.pos<u;)y[y.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(n);if(h.tag.isEOC())break;y[y.length]=h}i=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),li=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new en;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),St,cc=0xdeadbeefcafe,si=(cc&16777215)==15715070,Ge=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],dc=(1<<26)/Ge[Ge.length-1],ce=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=mt(r));l>=0;)d<n?(r=(this[l]&(1<<d)-1)<<n-d,r|=this[--l]>>(d+=this.DB-n)):(r=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+hn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=ue();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new ci(n):a=new di(n),this.exp(o,a)},e.prototype.clone=function(){var o=ue();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(n[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(n[i++]=r);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=ue();return this.bitwiseTo(o,nc,n),n},e.prototype.or=function(o){var n=ue();return this.bitwiseTo(o,dn,n),n},e.prototype.xor=function(o){var n=ue();return this.bitwiseTo(o,ni,n),n},e.prototype.andNot=function(o){var n=ue();return this.bitwiseTo(o,oi,n),n},e.prototype.not=function(){for(var o=ue(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=ue();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=ue();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+oc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=ac(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,dn)},e.prototype.clearBit=function(o){return this.changeBit(o,oi)},e.prototype.flipBit=function(o){return this.changeBit(o,ni)},e.prototype.add=function(o){var n=ue();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=ue();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=ue();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=ue();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=ue();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=ue(),a=ue();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=Ct(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new ci(n):n.isEven()?s=new uc(n):s=new di(n);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=ue();for(s.sqrTo(l[1],y);d<=f;)l[d]=ue(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=ue(),S;for(a=hn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(S=i,i=g,g=S),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),S=i,i=g,g=S,--a<0&&(a=this.DB-1,--u)}return s.revert(i)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=Ct(1),s=Ct(0),l=Ct(0),d=Ct(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(r)>=0?(a.subTo(r,a),n&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),n&&l.subTo(i,l),d.subTo(s,d))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new fc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var r=n;n=a,a=r}var i=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(i<s&&(s=i),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Ge[Ge.length-1]){for(n=0;n<Ge.length;++n)if(a[0]==Ge[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ge.length;){for(var r=Ge[n],i=n+1;i<Ge.length&&r<dc;)r*=Ge[i++];for(r=a.modInt(r);n<i;)if(r%Ge[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:ui(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;n[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<i,n[l-a]=this[l]>>r;r>0&&(n[this.t-a-1]|=(this.s&s)<<i),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],n[a++]=r&this.DM,r>>=this.DB;r-=o.s}n.s=r<0?-1:0,r<-1?n[a++]=this.DV+r:r>0&&(n[a++]=r),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),r=o.abs(),i=a.t;for(n.t=i+r.t;--i>=0;)n[i]=0;for(i=0;i<r.t;++i)n[i+a.t]=a.am(0,r[i],n,i,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var r=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,r,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-hn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,S=a.t,E=S-f,b=n??ue();for(s.dlShiftTo(E,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--E>=0;){var v=a[--S]==y?this.DM:Math.floor(a[S]*h+(a[S-1]+g)*m);if((a[S]+=s.am(0,v,a,E,0,f))<v)for(s.dlShiftTo(E,b),a.subTo(b,a);a[S]<--v;)a.subTo(b,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=ue(),r=ue(),i=n.convert(this),s=hn(o)-1;for(i.copyTo(a);--s>=0;)if(n.sqrTo(a,r),(o&1<<s)>0)n.mulTo(r,i,a);else{var l=a;a=r,r=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),r=Ct(a),i=ue(),s=ue(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),r=Math.pow(n,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=ui(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,n.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,n,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=n(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=n(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=n(i,o[r]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],n[a++]=r&this.DM,r>>=this.DB;r+=o.s}n.s=r<0?-1:0,r>0?n[a++]=r:r<-1&&(n[a++]=this.DV+r),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var r=Math.min(this.t+o.t,n);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,n);r<i;++r)this.am(0,o[r],a,r,0,n-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var r=a.t=this.t+o.t-n;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(n-this.t,0);r<o.t;++r)a[this.t+r-n]=this.am(n-r,o[r],a,0,0,this.t+r-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(n*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var r=n.shiftRight(a);o=o+1>>1,o>Ge.length&&(o=Ge.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=ue();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){n(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,r){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),dn,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(n)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),fc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),ci=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),di=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=ue();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ce.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=ue();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,r=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,r,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),uc=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),ce.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=ue();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function ue(){return new ce(null)}function Ie(e,o){return new ce(e,o)}var fi=typeof navigator<"u";fi&&si&&navigator.appName=="Microsoft Internet Explorer"?(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},St=30):fi&&si&&navigator.appName!="Netscape"?(ce.prototype.am=function(o,n,a,r,i,s){for(;--s>=0;){var l=n*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},St=26):(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},St=28),ce.prototype.DB=St,ce.prototype.DM=(1<<St)-1,ce.prototype.DV=1<<St;var ko=52;ce.prototype.FV=Math.pow(2,ko),ce.prototype.F1=ko-St,ce.prototype.F2=2*St-ko;var un=[],jt,rt;for(jt="0".charCodeAt(0),rt=0;rt<=9;++rt)un[jt++]=rt;for(jt="a".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;for(jt="A".charCodeAt(0),rt=10;rt<36;++rt)un[jt++]=rt;function ui(e,o){var n=un[e.charCodeAt(o)];return n??-1}function Ct(e){var o=ue();return o.fromInt(e),o}function hn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ce.ZERO=Ct(0),ce.ONE=Ct(1);var hc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,r;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,r=this.S[n],this.S[n]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function gc(){return new hc}var hi=256,gn,wt=null,ct;if(wt==null){wt=[],ct=0;var mn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var To=new Uint32Array(256);for(window.crypto.getRandomValues(To),mn=0;mn<To.length;++mn)wt[ct++]=To[mn]&255}var yn=0,xn=function(e){if(yn=yn||0,yn>=256||ct>=hi){window.removeEventListener?window.removeEventListener("mousemove",xn,!1):window.detachEvent&&window.detachEvent("onmousemove",xn);return}try{var o=e.x+e.y;wt[ct++]=o&255,yn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xn,!1):window.attachEvent&&window.attachEvent("onmousemove",xn))}function mc(){if(gn==null){for(gn=gc();ct<hi;){var e=Math.floor(65536*Math.random());wt[ct++]=e&255}for(gn.init(wt),ct=0;ct<wt.length;++ct)wt[ct]=0;ct=0}return gn.next()}var Bo=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=mc()},e}();function yc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",r=0;r<n;r+=2)a+="ff";var i="0001"+a+"00"+e;return Ie(i,16)}function xc(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?n[--o]=r:r>127&&r<2048?(n[--o]=r&63|128,n[--o]=r>>6|192):(n[--o]=r&63|128,n[--o]=r>>6&63|128,n[--o]=r>>12|224)}n[--o]=0;for(var i=new Bo,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ce(n)}var pc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=xc(o,n);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<n*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16),this.d=Ie(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,r,i,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Ie(o,16),this.e=parseInt(n,16),this.d=Ie(a,16),this.p=Ie(r,16),this.q=Ie(i,16),this.dmp1=Ie(s,16),this.dmq1=Ie(l,16),this.coeff=Ie(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Bo,r=o>>1;this.e=parseInt(n,16);for(var i=new ce(n,16);;){for(;this.p=new ce(o-r,1,a),!(this.p.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ce(r,1,a),!(this.q.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(ce.ONE),d=this.q.subtract(ce.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ce.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Ie(o,16),a=this.doPrivate(n);return a==null?null:bc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Bo,i=o>>1;this.e=parseInt(n,16);var s=new ce(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ce.ONE),m=l.q.subtract(ce.ONE),g=h.multiply(m);g.gcd(s).compareTo(ce.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=vc(a),i=r+n(o).toString(),s=yc(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var r=Ie(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Sc(s);return l==a(o).toString()},e}();function bc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var r="";++a<n.length;){var i=n[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|n[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return r}var pn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function vc(e){return pn[e]||""}function Sc(e){for(var o in pn)if(pn.hasOwnProperty(o)){var n=pn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
71
+ */return n.mode.CTRGladman=function(){var a=n.lib.BlockCipherMode.extend();function r(l){if((l>>24&255)===255){var d=l>>16&255,c=l>>8&255,f=l&255;d===255?(d=0,c===255?(c=0,f===255?f=0:++f):++c):++d,l=0,l+=d<<16,l+=c<<8,l+=f}else l+=1<<24;return l}function i(l){return(l[0]=r(l[0]))===0&&(l[1]=r(l[1])),l}var s=a.Encryptor=a.extend({processBlock:function(l,d){var c=this._cipher,f=c.blockSize,y=this._iv,u=this._counter;y&&(u=this._counter=y.slice(0),this._iv=void 0),i(u);var h=u.slice(0);c.encryptBlock(h,0);for(var m=0;m<f;m++)l[d+m]^=h[m]}});return a.Decryptor=s,a}(),n.mode.CTRGladman})}(fo)),fo.exports}var uo={exports:{}},Kr;function Ks(){return Kr||(Kr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.mode.OFB=function(){var a=n.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(i,s){var l=this._cipher,d=l.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),l.encryptBlock(f,0);for(var y=0;y<d;y++)i[s+y]^=f[y]}});return a.Decryptor=r,a}(),n.mode.OFB})}(uo)),uo.exports}var ho={exports:{}},Zr;function Zs(){return Zr||(Zr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.mode.ECB=function(){var a=n.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(r,i){this._cipher.encryptBlock(r,i)}}),a.Decryptor=a.extend({processBlock:function(r,i){this._cipher.decryptBlock(r,i)}}),a}(),n.mode.ECB})}(ho)),ho.exports}var go={exports:{}},Yr;function Ys(){return Yr||(Yr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.AnsiX923={pad:function(a,r){var i=a.sigBytes,s=r*4,l=s-i%s,d=i+l-1;a.clamp(),a.words[d>>>2]|=l<<24-d%4*8,a.sigBytes+=l},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Ansix923})}(go)),go.exports}var mo={exports:{}},Qr;function Qs(){return Qr||(Qr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.Iso10126={pad:function(a,r){var i=r*4,s=i-a.sigBytes%i;a.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(a){var r=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=r}},n.pad.Iso10126})}(mo)),mo.exports}var yo={exports:{}},Jr;function Js(){return Jr||(Jr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.Iso97971={pad:function(a,r){a.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(a,r)},unpad:function(a){n.pad.ZeroPadding.unpad(a),a.sigBytes--}},n.pad.Iso97971})}(yo)),yo.exports}var xo={exports:{}},Xr;function Xs(){return Xr||(Xr=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.ZeroPadding={pad:function(a,r){var i=r*4;a.clamp(),a.sigBytes+=i-(a.sigBytes%i||i)},unpad:function(a){for(var r=a.words,i=a.sigBytes-1,i=a.sigBytes-1;i>=0;i--)if(r[i>>>2]>>>24-i%4*8&255){a.sigBytes=i+1;break}}},n.pad.ZeroPadding})}(xo)),xo.exports}var po={exports:{}},ei;function ec(){return ei||(ei=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(po)),po.exports}var bo={exports:{}},ti;function tc(){return ti||(ti=1,function(e,o){(function(n,a,r){e.exports=a(xe(),qe())})(de,function(n){return function(a){var r=n,i=r.lib,s=i.CipherParams,l=r.enc,d=l.Hex,c=r.format;c.Hex={stringify:function(f){return f.ciphertext.toString(d)},parse:function(f){var y=d.parse(f);return s.create({ciphertext:y})}}}(),n.format.Hex})}(bo)),bo.exports}var vo={exports:{}},ni;function nc(){return ni||(ni=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,s=a.algo,l=[],d=[],c=[],f=[],y=[],u=[],h=[],m=[],g=[],C=[];(function(){for(var S=[],p=0;p<256;p++)p<128?S[p]=p<<1:S[p]=p<<1^283;for(var T=0,E=0,p=0;p<256;p++){var B=E^E<<1^E<<2^E<<3^E<<4;B=B>>>8^B&255^99,l[T]=B,d[B]=T;var O=S[T],N=S[O],A=S[N],k=S[B]*257^B*16843008;c[T]=k<<24|k>>>8,f[T]=k<<16|k>>>16,y[T]=k<<8|k>>>24,u[T]=k;var k=A*16843009^N*65537^O*257^T*16843008;h[B]=k<<24|k>>>8,m[B]=k<<16|k>>>16,g[B]=k<<8|k>>>24,C[B]=k,T?(T=O^S[S[S[A^O]]],E^=S[S[E]]):T=E=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],b=s.AES=i.extend({_doReset:function(){var S;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var p=this._keyPriorReset=this._key,T=p.words,E=p.sigBytes/4,B=this._nRounds=E+6,O=(B+1)*4,N=this._keySchedule=[],A=0;A<O;A++)A<E?N[A]=T[A]:(S=N[A-1],A%E?E>6&&A%E==4&&(S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255]):(S=S<<8|S>>>24,S=l[S>>>24]<<24|l[S>>>16&255]<<16|l[S>>>8&255]<<8|l[S&255],S^=D[A/E|0]<<24),N[A]=N[A-E]^S);for(var k=this._invKeySchedule=[],I=0;I<O;I++){var A=O-I;if(I%4)var S=N[A];else var S=N[A-4];I<4||A<=4?k[I]=S:k[I]=h[l[S>>>24]]^m[l[S>>>16&255]]^g[l[S>>>8&255]]^C[l[S&255]]}}},encryptBlock:function(S,p){this._doCryptBlock(S,p,this._keySchedule,c,f,y,u,l)},decryptBlock:function(S,p){var T=S[p+1];S[p+1]=S[p+3],S[p+3]=T,this._doCryptBlock(S,p,this._invKeySchedule,h,m,g,C,d);var T=S[p+1];S[p+1]=S[p+3],S[p+3]=T},_doCryptBlock:function(S,p,T,E,B,O,N,A){for(var k=this._nRounds,I=S[p]^T[0],x=S[p+1]^T[1],w=S[p+2]^T[2],v=S[p+3]^T[3],R=4,F=1;F<k;F++){var q=E[I>>>24]^B[x>>>16&255]^O[w>>>8&255]^N[v&255]^T[R++],W=E[x>>>24]^B[w>>>16&255]^O[v>>>8&255]^N[I&255]^T[R++],G=E[w>>>24]^B[v>>>16&255]^O[I>>>8&255]^N[x&255]^T[R++],z=E[v>>>24]^B[I>>>16&255]^O[x>>>8&255]^N[w&255]^T[R++];I=q,x=W,w=G,v=z}var q=(A[I>>>24]<<24|A[x>>>16&255]<<16|A[w>>>8&255]<<8|A[v&255])^T[R++],W=(A[x>>>24]<<24|A[w>>>16&255]<<16|A[v>>>8&255]<<8|A[I&255])^T[R++],G=(A[w>>>24]<<24|A[v>>>16&255]<<16|A[I>>>8&255]<<8|A[x&255])^T[R++],z=(A[v>>>24]<<24|A[I>>>16&255]<<16|A[x>>>8&255]<<8|A[w&255])^T[R++];S[p]=q,S[p+1]=W,S[p+2]=G,S[p+3]=z},keySize:256/32});a.AES=i._createHelper(b)}(),n.AES})}(vo)),vo.exports}var So={exports:{}},oi;function oc(){return oi||(oi=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,s=r.BlockCipher,l=a.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],y=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=l.DES=s.extend({_doReset:function(){for(var D=this._key,b=D.words,S=[],p=0;p<56;p++){var T=d[p]-1;S[p]=b[T>>>5]>>>31-T%32&1}for(var E=this._subKeys=[],B=0;B<16;B++){for(var O=E[B]=[],N=f[B],p=0;p<24;p++)O[p/6|0]|=S[(c[p]-1+N)%28]<<31-p%6,O[4+(p/6|0)]|=S[28+(c[p+24]-1+N)%28]<<31-p%6;O[0]=O[0]<<1|O[0]>>>31;for(var p=1;p<7;p++)O[p]=O[p]>>>(p-1)*4+3;O[7]=O[7]<<5|O[7]>>>27}for(var A=this._invSubKeys=[],p=0;p<16;p++)A[p]=E[15-p]},encryptBlock:function(D,b){this._doCryptBlock(D,b,this._subKeys)},decryptBlock:function(D,b){this._doCryptBlock(D,b,this._invSubKeys)},_doCryptBlock:function(D,b,S){this._lBlock=D[b],this._rBlock=D[b+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var p=0;p<16;p++){for(var T=S[p],E=this._lBlock,B=this._rBlock,O=0,N=0;N<8;N++)O|=y[N][((B^T[N])&u[N])>>>0];this._lBlock=B,this._rBlock=E^O}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),D[b]=this._lBlock,D[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(D,b){var S=(this._lBlock>>>D^this._rBlock)&b;this._rBlock^=S,this._lBlock^=S<<D}function g(D,b){var S=(this._rBlock>>>D^this._lBlock)&b;this._lBlock^=S,this._rBlock^=S<<D}a.DES=s._createHelper(h);var C=l.TripleDES=s.extend({_doReset:function(){var D=this._key,b=D.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var S=b.slice(0,2),p=b.length<4?b.slice(0,2):b.slice(2,4),T=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=h.createEncryptor(i.create(S)),this._des2=h.createEncryptor(i.create(p)),this._des3=h.createEncryptor(i.create(T))},encryptBlock:function(D,b){this._des1.encryptBlock(D,b),this._des2.decryptBlock(D,b),this._des3.encryptBlock(D,b)},decryptBlock:function(D,b){this._des3.decryptBlock(D,b),this._des2.encryptBlock(D,b),this._des1.decryptBlock(D,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=s._createHelper(C)}(),n.TripleDES})}(So)),So.exports}var Co={exports:{}},ai;function ac(){return ai||(ai=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=s.RC4=i.extend({_doReset:function(){for(var f=this._key,y=f.words,u=f.sigBytes,h=this._S=[],m=0;m<256;m++)h[m]=m;for(var m=0,g=0;m<256;m++){var C=m%u,D=y[C>>>2]>>>24-C%4*8&255;g=(g+h[m]+D)%256;var b=h[m];h[m]=h[g],h[g]=b}this._i=this._j=0},_doProcessBlock:function(f,y){f[y]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var f=this._S,y=this._i,u=this._j,h=0,m=0;m<4;m++){y=(y+1)%256,u=(u+f[y])%256;var g=f[y];f[y]=f[u],f[u]=g,h|=f[(f[y]+f[u])%256]<<24-m*8}return this._i=y,this._j=u,h}a.RC4=i._createHelper(l);var c=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)d.call(this)}});a.RC4Drop=i._createHelper(c)}(),n.RC4})}(Co)),Co.exports}var wo={exports:{}},ri;function rc(){return ri||(ri=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.Rabbit=i.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],C=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)y.call(this);for(var m=0;m<8;m++)C[m]^=g[m+4&7];if(h){var D=h.words,b=D[0],S=D[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,E=p>>>16|T&4294901760,B=T<<16|p&65535;C[0]^=p,C[1]^=E,C[2]^=T,C[3]^=B,C[4]^=p,C[5]^=E,C[6]^=T,C[7]^=B;for(var m=0;m<4;m++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,D=g>>>16,b=((C*C>>>17)+C*D>>>15)+D*D,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=i._createHelper(f)}(),n.Rabbit})}(wo)),wo.exports}var Ao={exports:{}},ii;function ic(){return ii||(ii=1,function(e,o){(function(n,a,r){e.exports=a(xe(),Mt(),Pt(),Dt(),qe())})(de,function(n){return function(){var a=n,r=a.lib,i=r.StreamCipher,s=a.algo,l=[],d=[],c=[],f=s.RabbitLegacy=i.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],g=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var C=0;C<4;C++)y.call(this);for(var C=0;C<8;C++)g[C]^=m[C+4&7];if(h){var D=h.words,b=D[0],S=D[1],p=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,T=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,E=p>>>16|T&4294901760,B=T<<16|p&65535;g[0]^=p,g[1]^=E,g[2]^=T,g[3]^=B,g[4]^=p,g[5]^=E,g[6]^=T,g[7]^=B;for(var C=0;C<4;C++)y.call(this)}},_doProcessBlock:function(u,h){var m=this._X;y.call(this),l[0]=m[0]^m[5]>>>16^m[3]<<16,l[1]=m[2]^m[7]>>>16^m[5]<<16,l[2]=m[4]^m[1]>>>16^m[7]<<16,l[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)l[g]=(l[g]<<8|l[g]>>>24)&16711935|(l[g]<<24|l[g]>>>8)&4278255360,u[h+g]^=l[g]},blockSize:128/32,ivSize:64/32});function y(){for(var u=this._X,h=this._C,m=0;m<8;m++)d[m]=h[m];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<d[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<d[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<d[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<d[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<d[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<d[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<d[6]>>>0?1:0)|0,this._b=h[7]>>>0<d[7]>>>0?1:0;for(var m=0;m<8;m++){var g=u[m]+h[m],C=g&65535,D=g>>>16,b=((C*C>>>17)+C*D>>>15)+D*D,S=((g&4294901760)*g|0)+((g&65535)*g|0);c[m]=b^S}u[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,u[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,u[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,u[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,u[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,u[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,u[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,u[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=i._createHelper(f)}(),n.RabbitLegacy})}(Ao)),Ao.exports}(function(e,o){(function(n,a,r){e.exports=a(xe(),fn(),zs(),Ms(),Mt(),Ps(),Pt(),Yn(),Lr(),qs(),zr(),Vs(),Hs(),js(),ao(),Ws(),Dt(),qe(),Us(),Gs(),$s(),Ks(),Zs(),Ys(),Qs(),Js(),Xs(),ec(),tc(),nc(),oc(),ac(),rc(),ic())})(de,function(n){return n})})(Ar);var lc=Ar.exports;const et=wr(lc);var sc="0123456789abcdefghijklmnopqrstuvwxyz";function mt(e){return sc.charAt(e)}function cc(e,o){return e&o}function un(e,o){return e|o}function li(e,o){return e^o}function si(e,o){return e&~o}function dc(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 fc(e){for(var o=0;e!=0;)e&=e-1,++o;return o}var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci="=";function hn(e){var o,n,a="";for(o=0;o+3<=e.length;o+=3)n=parseInt(e.substring(o,o+3),16),a+=qt.charAt(n>>6)+qt.charAt(n&63);for(o+1==e.length?(n=parseInt(e.substring(o,o+1),16),a+=qt.charAt(n<<2)):o+2==e.length&&(n=parseInt(e.substring(o,o+2),16),a+=qt.charAt(n>>2)+qt.charAt((n&3)<<4));(a.length&3)>0;)a+=ci;return a}function di(e){var o="",n,a=0,r=0;for(n=0;n<e.length&&e.charAt(n)!=ci;++n){var i=qt.indexOf(e.charAt(n));i<0||(a==0?(o+=mt(i>>2),r=i&3,a=1):a==1?(o+=mt(r<<2|i>>4),r=i&15,a=2):a==2?(o+=mt(r),o+=mt(i>>2),r=i&3,a=3):(o+=mt(r<<2|i>>4),o+=mt(i&15),a=0))}return a==1&&(o+=mt(r<<2)),o}var Vt,uc={decode:function(e){var o;if(Vt===void 0){var n="0123456789ABCDEF",a=` \f
72
+ \r  \u2028\u2029`;for(Vt={},o=0;o<16;++o)Vt[n.charAt(o)]=o;for(n=n.toLowerCase(),o=10;o<16;++o)Vt[n.charAt(o)]=o;for(o=0;o<a.length;++o)Vt[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=Vt[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,ko={decode:function(e){var o;if(It===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=`= \f
73
+ \r  \u2028\u2029`;for(It=Object.create(null),o=0;o<64;++o)It[n.charAt(o)]=o;for(It["-"]=62,It._=63,o=0;o<a.length;++o)It[a.charAt(o)]=-1}var r=[],i=0,s=0;for(o=0;o<e.length;++o){var l=e.charAt(o);if(l=="=")break;if(l=It[l],l!=-1){if(l===void 0)throw new Error("Illegal character at offset "+o);i|=l,++s>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255;break}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var o=ko.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 ko.decode(e)}},Ht=1e13,nn=function(){function e(o){this.buf=[+o||0]}return e.prototype.mulAdd=function(o,n){var a=this.buf,r=a.length,i,s;for(i=0;i<r;++i)s=a[i]*o+n,s<Ht?n=0:(n=0|s/Ht,s-=n*Ht),a[i]=s;n>0&&(a[i]=n)},e.prototype.sub=function(o){var n=this.buf,a=n.length,r,i;for(r=0;r<a;++r)i=n[r]-o,i<0?(i+=Ht,o=1):o=0,n[r]=i;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(o){if((o||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,a=n[n.length-1].toString(),r=n.length-2;r>=0;--r)a+=(Ht+n[r]).toString().substring(1);return a},e.prototype.valueOf=function(){for(var o=this.buf,n=0,a=o.length-1;a>=0;--a)n=n*Ht+o[a];return n},e.prototype.simplify=function(){var o=this.buf;return o.length==1?o[0]:this},e}(),fi="…",hc=/^(\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)?)?$/,gc=/^(\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 jt(e,o){return e.length>o&&(e=e.substring(0,o)+fi),e}var To=function(){function e(o,n){this.hexDigits="0123456789ABCDEF",o instanceof e?(this.enc=o.enc,this.pos=o.pos):(this.enc=o,this.pos=n)}return e.prototype.get=function(o){if(o===void 0&&(o=this.pos++),o>=this.enc.length)throw new Error("Requesting byte offset ".concat(o," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(o):this.enc[o]},e.prototype.hexByte=function(o){return this.hexDigits.charAt(o>>4&15)+this.hexDigits.charAt(o&15)},e.prototype.hexDump=function(o,n,a){for(var r="",i=o;i<n;++i)if(r+=this.hexByte(this.get(i)),a!==!0)switch(i&15){case 7:r+=" ";break;case 15:r+=`
74
+ `;break;default:r+=" "}return r},e.prototype.isASCII=function(o,n){for(var a=o;a<n;++a){var r=this.get(a);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(o,n){for(var a="",r=o;r<n;++r)a+=String.fromCharCode(this.get(r));return a},e.prototype.parseStringUTF=function(o,n){for(var a="",r=o;r<n;){var i=this.get(r++);i<128?a+=String.fromCharCode(i):i>191&&i<224?a+=String.fromCharCode((i&31)<<6|this.get(r++)&63):a+=String.fromCharCode((i&15)<<12|(this.get(r++)&63)<<6|this.get(r++)&63)}return a},e.prototype.parseStringBMP=function(o,n){for(var a="",r,i,s=o;s<n;)r=this.get(s++),i=this.get(s++),a+=String.fromCharCode(r<<8|i);return a},e.prototype.parseTime=function(o,n,a){var r=this.parseStringISO(o,n),i=(a?hc:gc).exec(r);return i?(a&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC",i[8]!="Z"&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(o,n){for(var a=this.get(o),r=a>127,i=r?255:0,s,l="";a==i&&++o<n;)a=this.get(o);if(s=n-o,s===0)return r?-1:0;if(s>4){for(l=a,s<<=3;!((+l^i)&128);)l=+l<<1,--s;l="("+s+` bit)
75
+ `}r&&(a=a-256);for(var d=new nn(a),c=o+1;c<n;++c)d.mulAdd(256,this.get(c));return l+d.toString()},e.prototype.parseBitString=function(o,n,a){for(var r=this.get(o),i=(n-o-1<<3)-r,s="("+i+` bit)
76
+ `,l="",d=o+1;d<n;++d){for(var c=this.get(d),f=d==n-1?r:0,y=7;y>=f;--y)l+=c>>y&1?"1":"0";if(l.length>a)return s+jt(l,a)}return s+l},e.prototype.parseOctetString=function(o,n,a){if(this.isASCII(o,n))return jt(this.parseStringISO(o,n),a);var r=n-o,i="("+r+` byte)
77
+ `;a/=2,r>a&&(n=o+a);for(var s=o;s<n;++s)i+=this.hexByte(this.get(s));return r>a&&(i+=fi),i},e.prototype.parseOID=function(o,n,a){for(var r="",i=new nn,s=0,l=o;l<n;++l){var d=this.get(l);if(i.mulAdd(128,d&127),s+=7,!(d&128)){if(r==="")if(i=i.simplify(),i instanceof nn)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 jt(r,a);i=new nn,s=0}}return s>0&&(r+=".incomplete"),r},e}(),mc=function(){function e(o,n,a,r,i){if(!(r instanceof ui))throw new Error("Invalid tag value.");this.stream=o,this.header=n,this.length=a,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(o){if(this.tag===void 0)return null;o===void 0&&(o=1/0);var n=this.posContent(),a=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+a);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+a,o);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+a,o);case 6:return this.stream.parseOID(n,n+a,o);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return jt(this.stream.parseStringUTF(n,n+a),o);case 18:case 19:case 20:case 21:case 22:case 26:return jt(this.stream.parseStringISO(n,n+a),o);case 30:return jt(this.stream.parseStringBMP(n,n+a),o);case 23:case 24:return this.stream.parseTime(n,n+a,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(o){o===void 0&&(o="");var n=o+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
78
+ `,this.sub!==null){o+=" ";for(var a=0,r=this.sub.length;a<r;++a)n+=this.sub[a].toPrettyString(o)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(o){var n=o.get(),a=n&127;if(a==n)return a;if(a>6)throw new Error("Length over 48 bits not supported at position "+(o.pos-1));if(a===0)return null;n=0;for(var r=0;r<a;++r)n=n*256+o.get();return n},e.prototype.getHexStringValue=function(){var o=this.toHexString(),n=this.header*2,a=this.length*2;return o.substr(n,a)},e.decode=function(o){var n;o instanceof To?n=o:n=new To(o,0);var a=new To(n),r=new ui(n),i=e.decodeLength(n),s=n.pos,l=s-a.pos,d=null,c=function(){var y=[];if(i!==null){for(var u=s+i;n.pos<u;)y[y.length]=e.decode(n);if(n.pos!=u)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(n);if(h.tag.isEOC())break;y[y.length]=h}i=s-n.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return y};if(r.tagConstructed)d=c();else if(r.isUniversal()&&(r.tagNumber==3||r.tagNumber==4))try{if(r.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");d=c();for(var f=0;f<d.length;++f)if(d[f].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{d=null}if(d===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(i)}return new e(a,l,i,r,d)},e}(),ui=function(){function e(o){var n=o.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var a=new nn;do n=o.get(),a.mulAdd(128,n&127);while(n&128);this.tagNumber=a.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),St,yc=0xdeadbeefcafe,hi=(yc&16777215)==15715070,Ge=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],xc=(1<<26)/Ge[Ge.length-1],ce=function(){function e(o,n,a){o!=null&&(typeof o=="number"?this.fromNumber(o,n,a):n==null&&typeof o!="string"?this.fromString(o,256):this.fromString(o,n))}return e.prototype.toString=function(o){if(this.s<0)return"-"+this.negate().toString(o);var n;if(o==16)n=4;else if(o==8)n=3;else if(o==2)n=1;else if(o==32)n=5;else if(o==4)n=2;else return this.toRadix(o);var a=(1<<n)-1,r,i=!1,s="",l=this.t,d=this.DB-l*this.DB%n;if(l-- >0)for(d<this.DB&&(r=this[l]>>d)>0&&(i=!0,s=mt(r));l>=0;)d<n?(r=(this[l]&(1<<d)-1)<<n-d,r|=this[--l]>>(d+=this.DB-n)):(r=this[l]>>(d-=n)&a,d<=0&&(d+=this.DB,--l)),r>0&&(i=!0),i&&(s+=mt(r));return i?s:"0"},e.prototype.negate=function(){var o=ue();return e.ZERO.subTo(this,o),o},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(o){var n=this.s-o.s;if(n!=0)return n;var a=this.t;if(n=a-o.t,n!=0)return this.s<0?-n:n;for(;--a>=0;)if((n=this[a]-o[a])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+mn(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(o){var n=ue();return this.abs().divRemTo(o,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&o.subTo(n,n),n},e.prototype.modPowInt=function(o,n){var a;return o<256||n.isEven()?a=new gi(n):a=new mi(n),this.exp(o,a)},e.prototype.clone=function(){var o=ue();return this.copyTo(o),o},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var o=this.t,n=[];n[0]=this.s;var a=this.DB-o*this.DB%8,r,i=0;if(o-- >0)for(a<this.DB&&(r=this[o]>>a)!=(this.s&this.DM)>>a&&(n[i++]=r|this.s<<this.DB-a);o>=0;)a<8?(r=(this[o]&(1<<a)-1)<<8-a,r|=this[--o]>>(a+=this.DB-8)):(r=this[o]>>(a-=8)&255,a<=0&&(a+=this.DB,--o)),r&128&&(r|=-256),i==0&&(this.s&128)!=(r&128)&&++i,(i>0||r!=this.s)&&(n[i++]=r);return n},e.prototype.equals=function(o){return this.compareTo(o)==0},e.prototype.min=function(o){return this.compareTo(o)<0?this:o},e.prototype.max=function(o){return this.compareTo(o)>0?this:o},e.prototype.and=function(o){var n=ue();return this.bitwiseTo(o,cc,n),n},e.prototype.or=function(o){var n=ue();return this.bitwiseTo(o,un,n),n},e.prototype.xor=function(o){var n=ue();return this.bitwiseTo(o,li,n),n},e.prototype.andNot=function(o){var n=ue();return this.bitwiseTo(o,si,n),n},e.prototype.not=function(){for(var o=ue(),n=0;n<this.t;++n)o[n]=this.DM&~this[n];return o.t=this.t,o.s=~this.s,o},e.prototype.shiftLeft=function(o){var n=ue();return o<0?this.rShiftTo(-o,n):this.lShiftTo(o,n),n},e.prototype.shiftRight=function(o){var n=ue();return o<0?this.lShiftTo(-o,n):this.rShiftTo(o,n),n},e.prototype.getLowestSetBit=function(){for(var o=0;o<this.t;++o)if(this[o]!=0)return o*this.DB+dc(this[o]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var o=0,n=this.s&this.DM,a=0;a<this.t;++a)o+=fc(this[a]^n);return o},e.prototype.testBit=function(o){var n=Math.floor(o/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<o%this.DB)!=0},e.prototype.setBit=function(o){return this.changeBit(o,un)},e.prototype.clearBit=function(o){return this.changeBit(o,si)},e.prototype.flipBit=function(o){return this.changeBit(o,li)},e.prototype.add=function(o){var n=ue();return this.addTo(o,n),n},e.prototype.subtract=function(o){var n=ue();return this.subTo(o,n),n},e.prototype.multiply=function(o){var n=ue();return this.multiplyTo(o,n),n},e.prototype.divide=function(o){var n=ue();return this.divRemTo(o,n,null),n},e.prototype.remainder=function(o){var n=ue();return this.divRemTo(o,null,n),n},e.prototype.divideAndRemainder=function(o){var n=ue(),a=ue();return this.divRemTo(o,n,a),[n,a]},e.prototype.modPow=function(o,n){var a=o.bitLength(),r,i=Ct(1),s;if(a<=0)return i;a<18?r=1:a<48?r=3:a<144?r=4:a<768?r=5:r=6,a<8?s=new gi(n):n.isEven()?s=new bc(n):s=new mi(n);var l=[],d=3,c=r-1,f=(1<<r)-1;if(l[1]=s.convert(this),r>1){var y=ue();for(s.sqrTo(l[1],y);d<=f;)l[d]=ue(),s.mulTo(y,l[d-2],l[d]),d+=2}var u=o.t-1,h,m=!0,g=ue(),C;for(a=mn(o[u])-1;u>=0;){for(a>=c?h=o[u]>>a-c&f:(h=(o[u]&(1<<a+1)-1)<<c-a,u>0&&(h|=o[u-1]>>this.DB+a-c)),d=r;!(h&1);)h>>=1,--d;if((a-=d)<0&&(a+=this.DB,--u),m)l[h].copyTo(i),m=!1;else{for(;d>1;)s.sqrTo(i,g),s.sqrTo(g,i),d-=2;d>0?s.sqrTo(i,g):(C=i,i=g,g=C),s.mulTo(g,l[h],i)}for(;u>=0&&!(o[u]&1<<a);)s.sqrTo(i,g),C=i,i=g,g=C,--a<0&&(a=this.DB-1,--u)}return s.revert(i)},e.prototype.modInverse=function(o){var n=o.isEven();if(this.isEven()&&n||o.signum()==0)return e.ZERO;for(var a=o.clone(),r=this.clone(),i=Ct(1),s=Ct(0),l=Ct(0),d=Ct(1);a.signum()!=0;){for(;a.isEven();)a.rShiftTo(1,a),n?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(o,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(o,s),s.rShiftTo(1,s);for(;r.isEven();)r.rShiftTo(1,r),n?((!l.isEven()||!d.isEven())&&(l.addTo(this,l),d.subTo(o,d)),l.rShiftTo(1,l)):d.isEven()||d.subTo(o,d),d.rShiftTo(1,d);a.compareTo(r)>=0?(a.subTo(r,a),n&&i.subTo(l,i),s.subTo(d,s)):(r.subTo(a,r),n&&l.subTo(i,l),d.subTo(s,d))}if(r.compareTo(e.ONE)!=0)return e.ZERO;if(d.compareTo(o)>=0)return d.subtract(o);if(d.signum()<0)d.addTo(o,d);else return d;return d.signum()<0?d.add(o):d},e.prototype.pow=function(o){return this.exp(o,new pc)},e.prototype.gcd=function(o){var n=this.s<0?this.negate():this.clone(),a=o.s<0?o.negate():o.clone();if(n.compareTo(a)<0){var r=n;n=a,a=r}var i=n.getLowestSetBit(),s=a.getLowestSetBit();if(s<0)return n;for(i<s&&(s=i),s>0&&(n.rShiftTo(s,n),a.rShiftTo(s,a));n.signum()>0;)(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),(i=a.getLowestSetBit())>0&&a.rShiftTo(i,a),n.compareTo(a)>=0?(n.subTo(a,n),n.rShiftTo(1,n)):(a.subTo(n,a),a.rShiftTo(1,a));return s>0&&a.lShiftTo(s,a),a},e.prototype.isProbablePrime=function(o){var n,a=this.abs();if(a.t==1&&a[0]<=Ge[Ge.length-1]){for(n=0;n<Ge.length;++n)if(a[0]==Ge[n])return!0;return!1}if(a.isEven())return!1;for(n=1;n<Ge.length;){for(var r=Ge[n],i=n+1;i<Ge.length&&r<xc;)r*=Ge[i++];for(r=a.modInt(r);n<i;)if(r%Ge[n++]==0)return!1}return a.millerRabin(o)},e.prototype.copyTo=function(o){for(var n=this.t-1;n>=0;--n)o[n]=this[n];o.t=this.t,o.s=this.s},e.prototype.fromInt=function(o){this.t=1,this.s=o<0?-1:0,o>0?this[0]=o:o<-1?this[0]=o+this.DV:this.t=0},e.prototype.fromString=function(o,n){var a;if(n==16)a=4;else if(n==8)a=3;else if(n==256)a=8;else if(n==2)a=1;else if(n==32)a=5;else if(n==4)a=2;else{this.fromRadix(o,n);return}this.t=0,this.s=0;for(var r=o.length,i=!1,s=0;--r>=0;){var l=a==8?+o[r]&255:xi(o,r);if(l<0){o.charAt(r)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=l:s+a>this.DB?(this[this.t-1]|=(l&(1<<this.DB-s)-1)<<s,this[this.t++]=l>>this.DB-s):this[this.t-1]|=l<<s,s+=a,s>=this.DB&&(s-=this.DB)}a==8&&+o[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var o=this.s&this.DM;this.t>0&&this[this.t-1]==o;)--this.t},e.prototype.dlShiftTo=function(o,n){var a;for(a=this.t-1;a>=0;--a)n[a+o]=this[a];for(a=o-1;a>=0;--a)n[a]=0;n.t=this.t+o,n.s=this.s},e.prototype.drShiftTo=function(o,n){for(var a=o;a<this.t;++a)n[a-o]=this[a];n.t=Math.max(this.t-o,0),n.s=this.s},e.prototype.lShiftTo=function(o,n){for(var a=o%this.DB,r=this.DB-a,i=(1<<r)-1,s=Math.floor(o/this.DB),l=this.s<<a&this.DM,d=this.t-1;d>=0;--d)n[d+s+1]=this[d]>>r|l,l=(this[d]&i)<<a;for(var d=s-1;d>=0;--d)n[d]=0;n[s]=l,n.t=this.t+s+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(o,n){n.s=this.s;var a=Math.floor(o/this.DB);if(a>=this.t){n.t=0;return}var r=o%this.DB,i=this.DB-r,s=(1<<r)-1;n[0]=this[a]>>r;for(var l=a+1;l<this.t;++l)n[l-a-1]|=(this[l]&s)<<i,n[l-a]=this[l]>>r;r>0&&(n[this.t-a-1]|=(this.s&s)<<i),n.t=this.t-a,n.clamp()},e.prototype.subTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]-o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r-=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r-=o[a],n[a++]=r&this.DM,r>>=this.DB;r-=o.s}n.s=r<0?-1:0,r<-1?n[a++]=this.DV+r:r>0&&(n[a++]=r),n.t=a,n.clamp()},e.prototype.multiplyTo=function(o,n){var a=this.abs(),r=o.abs(),i=a.t;for(n.t=i+r.t;--i>=0;)n[i]=0;for(i=0;i<r.t;++i)n[i+a.t]=a.am(0,r[i],n,i,0,a.t);n.s=0,n.clamp(),this.s!=o.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(o){for(var n=this.abs(),a=o.t=2*n.t;--a>=0;)o[a]=0;for(a=0;a<n.t-1;++a){var r=n.am(a,n[a],o,2*a,0,1);(o[a+n.t]+=n.am(a+1,2*n[a],o,2*a+1,r,n.t-a-1))>=n.DV&&(o[a+n.t]-=n.DV,o[a+n.t+1]=1)}o.t>0&&(o[o.t-1]+=n.am(a,n[a],o,2*a,0,1)),o.s=0,o.clamp()},e.prototype.divRemTo=function(o,n,a){var r=o.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t){n!=null&&n.fromInt(0),a!=null&&this.copyTo(a);return}a==null&&(a=ue());var s=ue(),l=this.s,d=o.s,c=this.DB-mn(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,a)):(r.copyTo(s),i.copyTo(a));var f=s.t,y=s[f-1];if(y!=0){var u=y*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),h=this.FV/u,m=(1<<this.F1)/u,g=1<<this.F2,C=a.t,D=C-f,b=n??ue();for(s.dlShiftTo(D,b),a.compareTo(b)>=0&&(a[a.t++]=1,a.subTo(b,a)),e.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--D>=0;){var S=a[--C]==y?this.DM:Math.floor(a[C]*h+(a[C-1]+g)*m);if((a[C]+=s.am(0,S,a,D,0,f))<S)for(s.dlShiftTo(D,b),a.subTo(b,a);a[C]<--S;)a.subTo(b,a)}n!=null&&(a.drShiftTo(f,n),l!=d&&e.ZERO.subTo(n,n)),a.t=f,a.clamp(),c>0&&a.rShiftTo(c,a),l<0&&e.ZERO.subTo(a,a)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var o=this[0];if(!(o&1))return 0;var n=o&3;return n=n*(2-(o&15)*n)&15,n=n*(2-(o&255)*n)&255,n=n*(2-((o&65535)*n&65535))&65535,n=n*(2-o*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(o,n){if(o>4294967295||o<1)return e.ONE;var a=ue(),r=ue(),i=n.convert(this),s=mn(o)-1;for(i.copyTo(a);--s>=0;)if(n.sqrTo(a,r),(o&1<<s)>0)n.mulTo(r,i,a);else{var l=a;a=r,r=l}return n.revert(a)},e.prototype.chunkSize=function(o){return Math.floor(Math.LN2*this.DB/Math.log(o))},e.prototype.toRadix=function(o){if(o==null&&(o=10),this.signum()==0||o<2||o>36)return"0";var n=this.chunkSize(o),a=Math.pow(o,n),r=Ct(a),i=ue(),s=ue(),l="";for(this.divRemTo(r,i,s);i.signum()>0;)l=(a+s.intValue()).toString(o).substr(1)+l,i.divRemTo(r,i,s);return s.intValue().toString(o)+l},e.prototype.fromRadix=function(o,n){this.fromInt(0),n==null&&(n=10);for(var a=this.chunkSize(n),r=Math.pow(n,a),i=!1,s=0,l=0,d=0;d<o.length;++d){var c=xi(o,d);if(c<0){o.charAt(d)=="-"&&this.signum()==0&&(i=!0);continue}l=n*l+c,++s>=a&&(this.dMultiply(r),this.dAddOffset(l,0),s=0,l=0)}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(l,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(o,n,a){if(typeof n=="number")if(o<2)this.fromInt(1);else for(this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),un,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>o&&this.subTo(e.ONE.shiftLeft(o-1),this);else{var r=[],i=o&7;r.length=(o>>3)+1,n.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},e.prototype.bitwiseTo=function(o,n,a){var r,i,s=Math.min(o.t,this.t);for(r=0;r<s;++r)a[r]=n(this[r],o[r]);if(o.t<this.t){for(i=o.s&this.DM,r=s;r<this.t;++r)a[r]=n(this[r],i);a.t=this.t}else{for(i=this.s&this.DM,r=s;r<o.t;++r)a[r]=n(i,o[r]);a.t=o.t}a.s=n(this.s,o.s),a.clamp()},e.prototype.changeBit=function(o,n){var a=e.ONE.shiftLeft(o);return this.bitwiseTo(a,n,a),a},e.prototype.addTo=function(o,n){for(var a=0,r=0,i=Math.min(o.t,this.t);a<i;)r+=this[a]+o[a],n[a++]=r&this.DM,r>>=this.DB;if(o.t<this.t){for(r+=o.s;a<this.t;)r+=this[a],n[a++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;a<o.t;)r+=o[a],n[a++]=r&this.DM,r>>=this.DB;r+=o.s}n.s=r<0?-1:0,r>0?n[a++]=r:r<-1&&(n[a++]=this.DV+r),n.t=a,n.clamp()},e.prototype.dMultiply=function(o){this[this.t]=this.am(0,o-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(o,n){if(o!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=o;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(o,n,a){var r=Math.min(this.t+o.t,n);for(a.s=0,a.t=r;r>0;)a[--r]=0;for(var i=a.t-this.t;r<i;++r)a[r+this.t]=this.am(0,o[r],a,r,0,this.t);for(var i=Math.min(o.t,n);r<i;++r)this.am(0,o[r],a,r,0,n-r);a.clamp()},e.prototype.multiplyUpperTo=function(o,n,a){--n;var r=a.t=this.t+o.t-n;for(a.s=0;--r>=0;)a[r]=0;for(r=Math.max(n-this.t,0);r<o.t;++r)a[this.t+r-n]=this.am(n-r,o[r],a,0,0,this.t+r-n);a.clamp(),a.drShiftTo(1,a)},e.prototype.modInt=function(o){if(o<=0)return 0;var n=this.DV%o,a=this.s<0?o-1:0;if(this.t>0)if(n==0)a=this[0]%o;else for(var r=this.t-1;r>=0;--r)a=(n*a+this[r])%o;return a},e.prototype.millerRabin=function(o){var n=this.subtract(e.ONE),a=n.getLowestSetBit();if(a<=0)return!1;var r=n.shiftRight(a);o=o+1>>1,o>Ge.length&&(o=Ge.length);for(var i=ue(),s=0;s<o;++s){i.fromInt(Ge[Math.floor(Math.random()*Ge.length)]);var l=i.modPow(r,this);if(l.compareTo(e.ONE)!=0&&l.compareTo(n)!=0){for(var d=1;d++<a&&l.compareTo(n)!=0;)if(l=l.modPowInt(2,this),l.compareTo(e.ONE)==0)return!1;if(l.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var o=ue();return this.squareTo(o),o},e.prototype.gcda=function(o,n){var a=this.s<0?this.negate():this.clone(),r=o.s<0?o.negate():o.clone();if(a.compareTo(r)<0){var i=a;a=r,r=i}var s=a.getLowestSetBit(),l=r.getLowestSetBit();if(l<0){n(a);return}s<l&&(l=s),l>0&&(a.rShiftTo(l,a),r.rShiftTo(l,r));var d=function(){(s=a.getLowestSetBit())>0&&a.rShiftTo(s,a),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),a.compareTo(r)>=0?(a.subTo(r,a),a.rShiftTo(1,a)):(r.subTo(a,r),r.rShiftTo(1,r)),a.signum()>0?setTimeout(d,0):(l>0&&r.lShiftTo(l,r),setTimeout(function(){n(r)},0))};setTimeout(d,10)},e.prototype.fromNumberAsync=function(o,n,a,r){if(typeof n=="number")if(o<2)this.fromInt(1);else{this.fromNumber(o,a),this.testBit(o-1)||this.bitwiseTo(e.ONE.shiftLeft(o-1),un,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>o&&i.subTo(e.ONE.shiftLeft(o-1),i),i.isProbablePrime(n)?setTimeout(function(){r()},0):setTimeout(s,0)};setTimeout(s,0)}else{var l=[],d=o&7;l.length=(o>>3)+1,n.nextBytes(l),d>0?l[0]&=(1<<d)-1:l[0]=0,this.fromString(l,256)}},e}(),pc=function(){function e(){}return e.prototype.convert=function(o){return o},e.prototype.revert=function(o){return o},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a)},e.prototype.sqrTo=function(o,n){o.squareTo(n)},e}(),gi=function(){function e(o){this.m=o}return e.prototype.convert=function(o){return o.s<0||o.compareTo(this.m)>=0?o.mod(this.m):o},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){o.divRemTo(this.m,null,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),mi=function(){function e(o){this.m=o,this.mp=o.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<o.DB-15)-1,this.mt2=2*o.t}return e.prototype.convert=function(o){var n=ue();return o.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),o.s<0&&n.compareTo(ce.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(o){var n=ue();return o.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(o){for(;o.t<=this.mt2;)o[o.t++]=0;for(var n=0;n<this.m.t;++n){var a=o[n]&32767,r=a*this.mpl+((a*this.mph+(o[n]>>15)*this.mpl&this.um)<<15)&o.DM;for(a=n+this.m.t,o[a]+=this.m.am(0,r,o,n,0,this.m.t);o[a]>=o.DV;)o[a]-=o.DV,o[++a]++}o.clamp(),o.drShiftTo(this.m.t,o),o.compareTo(this.m)>=0&&o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}(),bc=function(){function e(o){this.m=o,this.r2=ue(),this.q3=ue(),ce.ONE.dlShiftTo(2*o.t,this.r2),this.mu=this.r2.divide(o)}return e.prototype.convert=function(o){if(o.s<0||o.t>2*this.m.t)return o.mod(this.m);if(o.compareTo(this.m)<0)return o;var n=ue();return o.copyTo(n),this.reduce(n),n},e.prototype.revert=function(o){return o},e.prototype.reduce=function(o){for(o.drShiftTo(this.m.t-1,this.r2),o.t>this.m.t+1&&(o.t=this.m.t+1,o.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);o.compareTo(this.r2)<0;)o.dAddOffset(1,this.m.t+1);for(o.subTo(this.r2,o);o.compareTo(this.m)>=0;)o.subTo(this.m,o)},e.prototype.mulTo=function(o,n,a){o.multiplyTo(n,a),this.reduce(a)},e.prototype.sqrTo=function(o,n){o.squareTo(n),this.reduce(n)},e}();function ue(){return new ce(null)}function Oe(e,o){return new ce(e,o)}var yi=typeof navigator<"u";yi&&hi&&navigator.appName=="Microsoft Internet Explorer"?(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&32767,d=n>>15;--s>=0;){var c=this[o]&32767,f=this[o++]>>15,y=d*c+f*l;c=l*c+((y&32767)<<15)+a[r]+(i&1073741823),i=(c>>>30)+(y>>>15)+d*f+(i>>>30),a[r++]=c&1073741823}return i},St=30):yi&&hi&&navigator.appName!="Netscape"?(ce.prototype.am=function(o,n,a,r,i,s){for(;--s>=0;){var l=n*this[o++]+a[r]+i;i=Math.floor(l/67108864),a[r++]=l&67108863}return i},St=26):(ce.prototype.am=function(o,n,a,r,i,s){for(var l=n&16383,d=n>>14;--s>=0;){var c=this[o]&16383,f=this[o++]>>14,y=d*c+f*l;c=l*c+((y&16383)<<14)+a[r]+i,i=(c>>28)+(y>>14)+d*f,a[r++]=c&268435455}return i},St=28),ce.prototype.DB=St,ce.prototype.DM=(1<<St)-1,ce.prototype.DV=1<<St;var Bo=52;ce.prototype.FV=Math.pow(2,Bo),ce.prototype.F1=Bo-St,ce.prototype.F2=2*St-Bo;var gn=[],Wt,rt;for(Wt="0".charCodeAt(0),rt=0;rt<=9;++rt)gn[Wt++]=rt;for(Wt="a".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=rt;for(Wt="A".charCodeAt(0),rt=10;rt<36;++rt)gn[Wt++]=rt;function xi(e,o){var n=gn[e.charCodeAt(o)];return n??-1}function Ct(e){var o=ue();return o.fromInt(e),o}function mn(e){var o=1,n;return(n=e>>>16)!=0&&(e=n,o+=16),(n=e>>8)!=0&&(e=n,o+=8),(n=e>>4)!=0&&(e=n,o+=4),(n=e>>2)!=0&&(e=n,o+=2),(n=e>>1)!=0&&(e=n,o+=1),o}ce.ZERO=Ct(0),ce.ONE=Ct(1);var vc=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(o){var n,a,r;for(n=0;n<256;++n)this.S[n]=n;for(a=0,n=0;n<256;++n)a=a+this.S[n]+o[n%o.length]&255,r=this.S[n],this.S[n]=this.S[a],this.S[a]=r;this.i=0,this.j=0},e.prototype.next=function(){var o;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,o=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=o,this.S[o+this.S[this.i]&255]},e}();function Sc(){return new vc}var pi=256,yn,wt=null,ct;if(wt==null){wt=[],ct=0;var xn=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Eo=new Uint32Array(256);for(window.crypto.getRandomValues(Eo),xn=0;xn<Eo.length;++xn)wt[ct++]=Eo[xn]&255}var pn=0,bn=function(e){if(pn=pn||0,pn>=256||ct>=pi){window.removeEventListener?window.removeEventListener("mousemove",bn,!1):window.detachEvent&&window.detachEvent("onmousemove",bn);return}try{var o=e.x+e.y;wt[ct++]=o&255,pn+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",bn,!1):window.attachEvent&&window.attachEvent("onmousemove",bn))}function Cc(){if(yn==null){for(yn=Sc();ct<pi;){var e=Math.floor(65536*Math.random());wt[ct++]=e&255}for(yn.init(wt),ct=0;ct<wt.length;++ct)wt[ct]=0;ct=0}return yn.next()}var Do=function(){function e(){}return e.prototype.nextBytes=function(o){for(var n=0;n<o.length;++n)o[n]=Cc()},e}();function wc(e,o){if(o<e.length+22)return console.error("Message too long for RSA"),null;for(var n=o-e.length-6,a="",r=0;r<n;r+=2)a+="ff";var i="0001"+a+"00"+e;return Oe(i,16)}function Ac(e,o){if(o<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],a=e.length-1;a>=0&&o>0;){var r=e.charCodeAt(a--);r<128?n[--o]=r:r>127&&r<2048?(n[--o]=r&63|128,n[--o]=r>>6|192):(n[--o]=r&63|128,n[--o]=r>>6&63|128,n[--o]=r>>12|224)}n[--o]=0;for(var i=new Do,s=[];o>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);n[--o]=s[0]}return n[--o]=2,n[--o]=0,new ce(n)}var kc=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(o){return o.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(o){if(this.p==null||this.q==null)return o.modPow(this.d,this.n);for(var n=o.mod(this.p).modPow(this.dmp1,this.p),a=o.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(a)<0;)n=n.add(this.p);return n.subtract(a).multiply(this.coeff).mod(this.p).multiply(this.q).add(a)},e.prototype.setPublic=function(o,n){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Oe(o,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(o){var n=this.n.bitLength()+7>>3,a=Ac(o,n);if(a==null)return null;var r=this.doPublic(a);if(r==null)return null;for(var i=r.toString(16),s=i.length,l=0;l<n*2-s;l++)i="0"+i;return i},e.prototype.setPrivate=function(o,n,a){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Oe(o,16),this.e=parseInt(n,16),this.d=Oe(a,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(o,n,a,r,i,s,l,d){o!=null&&n!=null&&o.length>0&&n.length>0?(this.n=Oe(o,16),this.e=parseInt(n,16),this.d=Oe(a,16),this.p=Oe(r,16),this.q=Oe(i,16),this.dmp1=Oe(s,16),this.dmq1=Oe(l,16),this.coeff=Oe(d,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(o,n){var a=new Do,r=o>>1;this.e=parseInt(n,16);for(var i=new ce(n,16);;){for(;this.p=new ce(o-r,1,a),!(this.p.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ce(r,1,a),!(this.q.subtract(ce.ONE).gcd(i).compareTo(ce.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.p.subtract(ce.ONE),d=this.q.subtract(ce.ONE),c=l.multiply(d);if(c.gcd(i).compareTo(ce.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(c),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(d),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(o){var n=Oe(o,16),a=this.doPrivate(n);return a==null?null:Tc(a,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(o,n,a){var r=new Do,i=o>>1;this.e=parseInt(n,16);var s=new ce(n,16),l=this,d=function(){var c=function(){if(l.p.compareTo(l.q)<=0){var u=l.p;l.p=l.q,l.q=u}var h=l.p.subtract(ce.ONE),m=l.q.subtract(ce.ONE),g=h.multiply(m);g.gcd(s).compareTo(ce.ONE)==0?(l.n=l.p.multiply(l.q),l.d=s.modInverse(g),l.dmp1=l.d.mod(h),l.dmq1=l.d.mod(m),l.coeff=l.q.modInverse(l.p),setTimeout(function(){a()},0)):setTimeout(d,0)},f=function(){l.q=ue(),l.q.fromNumberAsync(i,1,r,function(){l.q.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(f,0)})})},y=function(){l.p=ue(),l.p.fromNumberAsync(o-i,1,r,function(){l.p.subtract(ce.ONE).gcda(s,function(u){u.compareTo(ce.ONE)==0&&l.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(y,0)})})};setTimeout(y,0)};setTimeout(d,0)},e.prototype.sign=function(o,n,a){var r=Bc(a),i=r+n(o).toString(),s=wc(i,this.n.bitLength()/4);if(s==null)return null;var l=this.doPrivate(s);if(l==null)return null;var d=l.toString(16);return d.length&1?"0"+d:d},e.prototype.verify=function(o,n,a){var r=Oe(n,16),i=this.doPublic(r);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),l=Ec(s);return l==a(o).toString()},e}();function Tc(e,o){for(var n=e.toByteArray(),a=0;a<n.length&&n[a]==0;)++a;if(n.length-a!=o-1||n[a]!=2)return null;for(++a;n[a]!=0;)if(++a>=n.length)return null;for(var r="";++a<n.length;){var i=n[a]&255;i<128?r+=String.fromCharCode(i):i>191&&i<224?(r+=String.fromCharCode((i&31)<<6|n[a+1]&63),++a):(r+=String.fromCharCode((i&15)<<12|(n[a+1]&63)<<6|n[a+2]&63),a+=2)}return r}var vn={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Bc(e){return vn[e]||""}function Ec(e){for(var o in vn)if(vn.hasOwnProperty(o)){var n=vn[o],a=n.length;if(e.substr(0,a)==n)return e.substr(a)}return e}/*!
79
79
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
80
80
  Code licensed under the BSD License:
81
81
  http://developer.yahoo.com/yui/license.html
82
82
  version: 2.9.0
83
- */var _e={};_e.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var r;for(r in n)e.prototype[r]=n[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],f=d[c];typeof f=="function"&&f!=Object.prototype[c]&&(l[c]=f)}})}catch{}i(e.prototype,n)}}};/**
83
+ */var Le={};Le.lang={extend:function(e,o,n){if(!o||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var a=function(){};if(a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e,e.superclass=o.prototype,o.prototype.constructor==Object.prototype.constructor&&(o.prototype.constructor=o),n){var r;for(r in n)e.prototype[r]=n[r];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(l,d){for(r=0;r<s.length;r=r+1){var c=s[r],f=d[c];typeof f=="function"&&f!=Object.prototype[c]&&(l[c]=f)}})}catch{}i(e.prototype,n)}}};/**
84
84
  * @fileOverview
85
85
  * @name asn1-1.0.js
86
86
  * @author Kenji Urushima kenji.urushima@gmail.com
87
87
  * @version asn1 1.0.13 (2017-Jun-02)
88
88
  * @since jsrsasign 2.1
89
89
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
90
- */var G={};(typeof G.asn1>"u"||!G.asn1)&&(G.asn1={}),G.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new ce(r,16),l=s.xor(e).add(ce.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=G,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,f=n.DERUTF8String,y=n.DERNumericString,u=n.DERPrintableString,h=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,S=n.DERGeneralizedTime,E=n.DERSequence,b=n.DERSet,v=n.DERTaggedObject,x=n.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 d(e[B]);if(B=="enum")return new c(e[B]);if(B=="utf8str")return new f(e[B]);if(B=="numstr")return new y(e[B]);if(B=="prnstr")return new u(e[B]);if(B=="telstr")return new h(e[B]);if(B=="ia5str")return new m(e[B]);if(B=="utctime")return new g(e[B]);if(B=="gentime")return new S(e[B]);if(B=="seq"){for(var I=e[B],_=[],N=0;N<I.length;N++){var A=x(I[N]);_.push(A)}return new E({array:_})}if(B=="set"){for(var I=e[B],_=[],N=0;N<I.length;N++){var A=x(I[N]);_.push(A)}return new b({array:_})}if(B=="tag"){var T=e[B];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var D=x(T[2]);return new v({tag:T[0],explicit:T[1],obj:D})}else{var p={};if(T.explicit!==void 0&&(p.explicit=T.explicit),T.tag!==void 0&&(p.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return p.obj=x(T.obj),new v(p)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},G.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,r=n+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new ce(i,2);r=r+"."+c.toString(10),i=""}}return r},G.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ce(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=n(r[s]);return a},G.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},_e.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,r,i,s){var l=new Date(Date.UTC(o,n-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},_e.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},_e.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},_e.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var r="0"+n;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)n+="0";for(var i="",r=0;r<n.length-1;r+=8){var s=n.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(n){for(var a="",r=0;r<n.length;r++)n[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),r=0;r<n;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},_e.lang.extend(G.asn1.DERBitString,G.asn1.ASN1Object),G.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=G.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}G.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},_e.lang.extend(G.asn1.DEROctetString,G.asn1.DERAbstractString),G.asn1.DERNull=function(){G.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},_e.lang.extend(G.asn1.DERNull,G.asn1.ASN1Object),G.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},n=function(a){var r="",i=new ce(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};G.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=n(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=G.asn1.x509.OID.name2oid(a);if(r!=="")this.setValueOidString(r);else throw"DERObjectIdentifier oidName undefined: "+a},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},_e.lang.extend(G.asn1.DERObjectIdentifier,G.asn1.ASN1Object),G.asn1.DEREnumerated=function(e){G.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},_e.lang.extend(G.asn1.DEREnumerated,G.asn1.ASN1Object),G.asn1.DERUTF8String=function(e){G.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},_e.lang.extend(G.asn1.DERUTF8String,G.asn1.DERAbstractString),G.asn1.DERNumericString=function(e){G.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},_e.lang.extend(G.asn1.DERNumericString,G.asn1.DERAbstractString),G.asn1.DERPrintableString=function(e){G.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},_e.lang.extend(G.asn1.DERPrintableString,G.asn1.DERAbstractString),G.asn1.DERTeletexString=function(e){G.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},_e.lang.extend(G.asn1.DERTeletexString,G.asn1.DERAbstractString),G.asn1.DERIA5String=function(e){G.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},_e.lang.extend(G.asn1.DERIA5String,G.asn1.DERAbstractString),G.asn1.DERUTCTime=function(e){G.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},_e.lang.extend(G.asn1.DERUTCTime,G.asn1.DERAbstractTime),G.asn1.DERGeneralizedTime=function(e){G.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},_e.lang.extend(G.asn1.DERGeneralizedTime,G.asn1.DERAbstractTime),G.asn1.DERSequence=function(e){G.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},_e.lang.extend(G.asn1.DERSequence,G.asn1.DERAbstractStructured),G.asn1.DERSet=function(e){G.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},_e.lang.extend(G.asn1.DERSet,G.asn1.DERAbstractStructured),G.asn1.DERTaggedObject=function(e){G.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},_e.lang.extend(G.asn1.DERTaggedObject,G.asn1.ASN1Object);var Cc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),gi=function(e){Cc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(n)?rc.decode(n):wo.unarmor(n),l=sc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Ie(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Ie(d,16);var c=l.sub[4].getHexStringValue();this.p=Ie(c,16);var f=l.sub[5].getHexStringValue();this.q=Ie(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Ie(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Ie(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Ie(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Ie(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Ie(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new G.asn1.DERInteger({int:0}),new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e}),new G.asn1.DERInteger({bigint:this.d}),new G.asn1.DERInteger({bigint:this.p}),new G.asn1.DERInteger({bigint:this.q}),new G.asn1.DERInteger({bigint:this.dmp1}),new G.asn1.DERInteger({bigint:this.dmq1}),new G.asn1.DERInteger({bigint:this.coeff})]},a=new G.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return fn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new G.asn1.DERSequence({array:[new G.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new G.asn1.DERNull]}),a=new G.asn1.DERSequence({array:[new G.asn1.DERInteger({bigint:this.n}),new G.asn1.DERInteger({int:this.e})]}),r=new G.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new G.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return fn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
90
+ */var $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var o=e.toString(16);return o.length%2==1&&(o="0"+o),o},this.bigIntToMinTwosComplementsHex=function(e){var o=e.toString(16);if(o.substr(0,1)!="-")o.length%2==1?o="0"+o:o.match(/^[0-7]/)||(o="00"+o);else{var n=o.substr(1),a=n.length;a%2==1?a+=1:o.match(/^[0-7]/)||(a+=2);for(var r="",i=0;i<a;i++)r+="f";var s=new ce(r,16),l=s.xor(e).add(ce.ONE);o=l.toString(16).replace(/^-/,"")}return o},this.getPEMStringFromHex=function(e,o){return hextopem(e,o)},this.newObject=function(e){var o=$,n=o.asn1,a=n.DERBoolean,r=n.DERInteger,i=n.DERBitString,s=n.DEROctetString,l=n.DERNull,d=n.DERObjectIdentifier,c=n.DEREnumerated,f=n.DERUTF8String,y=n.DERNumericString,u=n.DERPrintableString,h=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,C=n.DERGeneralizedTime,D=n.DERSequence,b=n.DERSet,S=n.DERTaggedObject,p=n.ASN1Util.newObject,T=Object.keys(e);if(T.length!=1)throw"key of param shall be only one.";var E=T[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+E+":")==-1)throw"undefined key: "+E;if(E=="bool")return new a(e[E]);if(E=="int")return new r(e[E]);if(E=="bitstr")return new i(e[E]);if(E=="octstr")return new s(e[E]);if(E=="null")return new l(e[E]);if(E=="oid")return new d(e[E]);if(E=="enum")return new c(e[E]);if(E=="utf8str")return new f(e[E]);if(E=="numstr")return new y(e[E]);if(E=="prnstr")return new u(e[E]);if(E=="telstr")return new h(e[E]);if(E=="ia5str")return new m(e[E]);if(E=="utctime")return new g(e[E]);if(E=="gentime")return new C(e[E]);if(E=="seq"){for(var B=e[E],O=[],N=0;N<B.length;N++){var A=p(B[N]);O.push(A)}return new D({array:O})}if(E=="set"){for(var B=e[E],O=[],N=0;N<B.length;N++){var A=p(B[N]);O.push(A)}return new b({array:O})}if(E=="tag"){var k=e[E];if(Object.prototype.toString.call(k)==="[object Array]"&&k.length==3){var I=p(k[2]);return new S({tag:k[0],explicit:k[1],obj:I})}else{var x={};if(k.explicit!==void 0&&(x.explicit=k.explicit),k.tag!==void 0&&(x.tag=k.tag),k.obj===void 0)throw"obj shall be specified for 'tag'.";return x.obj=p(k.obj),new S(x)}}},this.jsonToASN1HEX=function(e){var o=this.newObject(e);return o.getEncodedHex()}},$.asn1.ASN1Util.oidHexToInt=function(e){for(var r="",o=parseInt(e.substr(0,2),16),n=Math.floor(o/40),a=o%40,r=n+"."+a,i="",s=2;s<e.length;s+=2){var l=parseInt(e.substr(s,2),16),d=("00000000"+l.toString(2)).slice(-8);if(i=i+d.substr(1,7),d.substr(0,1)=="0"){var c=new ce(i,2);r=r+"."+c.toString(10),i=""}}return r},$.asn1.ASN1Util.oidIntToHex=function(e){var o=function(l){var d=l.toString(16);return d.length==1&&(d="0"+d),d},n=function(l){var d="",c=new ce(l,10),f=c.toString(2),y=7-f.length%7;y==7&&(y=0);for(var u="",h=0;h<y;h++)u+="0";f=u+f;for(var h=0;h<f.length-1;h+=7){var m=f.substr(h,7);h!=f.length-7&&(m="1"+m),d+=o(parseInt(m,2))}return d};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var a="",r=e.split("."),i=parseInt(r[0])*40+parseInt(r[1]);a+=o(i),r.splice(0,2);for(var s=0;s<r.length;s++)a+=n(r[s]);return a},$.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var o=this.hV.length/2,n=o.toString(16);if(n.length%2==1&&(n="0"+n),o<128)return n;var a=n.length/2;if(a>15)throw"ASN.1 length too long to represent by 8x: n = "+o.toString(16);var r=128+a;return r.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},$.asn1.DERAbstractString=function(e){$.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(this.s)},this.setStringHex=function(o){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},Le.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(o){utc=o.getTime()+o.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(o,n,a){var r=this.zeroPadding,i=this.localDateToUTC(o),s=String(i.getFullYear());n=="utc"&&(s=s.substr(2,2));var l=r(String(i.getMonth()+1),2),d=r(String(i.getDate()),2),c=r(String(i.getHours()),2),f=r(String(i.getMinutes()),2),y=r(String(i.getSeconds()),2),u=s+l+d+c+f+y;if(a===!0){var h=i.getMilliseconds();if(h!=0){var m=r(String(h),3);m=m.replace(/[0]+$/,""),u=u+"."+m}}return u+"Z"},this.zeroPadding=function(o,n){return o.length>=n?o:new Array(n-o.length+1).join("0")+o},this.getString=function(){return this.s},this.setString=function(o){this.hTLV=null,this.isModified=!0,this.s=o,this.hV=stohex(o)},this.setByDateValue=function(o,n,a,r,i,s){var l=new Date(Date.UTC(o,n-1,a,r,i,s,0));this.setByDate(l)},this.getFreshValueHex=function(){return this.hV}},Le.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array=o},this.appendASN1Object=function(o){this.hTLV=null,this.isModified=!0,this.asn1Array.push(o)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},Le.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Le.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Le.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+o.getEncodedHex()}$.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,a){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var r="0"+n;this.hTLV=null,this.isModified=!0,this.hV=r+a},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var a=8-n.length%8;a==8&&(a=0);for(var r=0;r<=a;r++)n+="0";for(var i="",r=0;r<n.length-1;r+=8){var s=n.substr(r,8),l=parseInt(s,2).toString(16);l.length==1&&(l="0"+l),i+=l}this.hTLV=null,this.isModified=!0,this.hV="0"+a+i},this.setByBooleanArray=function(n){for(var a="",r=0;r<n.length;r++)n[r]==!0?a+="1":a+="0";this.setByBinaryString(a)},this.newFalseArray=function(n){for(var a=new Array(n),r=0;r<n;r++)a[r]=!1;return a},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},Le.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var o=$.asn1.ASN1Util.newObject(e.obj);e.hex=o.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Le.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Le.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.asn1.DERObjectIdentifier=function(e){var o=function(a){var r=a.toString(16);return r.length==1&&(r="0"+r),r},n=function(a){var r="",i=new ce(a,10),s=i.toString(2),l=7-s.length%7;l==7&&(l=0);for(var d="",c=0;c<l;c++)d+="0";s=d+s;for(var c=0;c<s.length-1;c+=7){var f=s.substr(c,7);c!=s.length-7&&(f="1"+f),r+=o(parseInt(f,2))}return r};$.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(a){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=a},this.setValueOidString=function(a){if(!a.match(/^[0-9.]+$/))throw"malformed oid string: "+a;var r="",i=a.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=o(s),i.splice(0,2);for(var l=0;l<i.length;l++)r+=n(i[l]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(a){var r=$.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))},Le.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(o){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(o)},this.setByInteger=function(o){var n=new ce(String(o),10);this.setByBigInteger(n)},this.setValueHex=function(o){this.hV=o},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},Le.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Le.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Le.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Le.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Le.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Le.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},Le.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(o){this.hTLV=null,this.isModified=!0,this.date=o,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},Le.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var o="",n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o+=a.getEncodedHex()}return this.hV=o,this.hV}},Le.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var o=new Array,n=0;n<this.asn1Array.length;n++){var a=this.asn1Array[n];o.push(a.getEncodedHex())}return this.sortFlag==!0&&o.sort(),this.hV=o.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},Le.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(o,n,a){this.hT=n,this.isExplicit=o,this.asn1Object=a,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=a.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Le.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var Dc=globalThis&&globalThis.__extends||function(){var e=function(o,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[i]=r[i])},e(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(o,n);function a(){this.constructor=o}o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),bi=function(e){Dc(o,e);function o(n){var a=e.call(this)||this;return n&&(typeof n=="string"?a.parseKey(n):(o.hasPrivateKeyProperty(n)||o.hasPublicKeyProperty(n))&&a.parsePropertiesFrom(n)),a}return o.prototype.parseKey=function(n){try{var a=0,r=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(n)?uc.decode(n):ko.unarmor(n),l=mc.decode(s);if(l.sub.length===3&&(l=l.sub[2].sub[0]),l.sub.length===9){a=l.sub[1].getHexStringValue(),this.n=Oe(a,16),r=l.sub[2].getHexStringValue(),this.e=parseInt(r,16);var d=l.sub[3].getHexStringValue();this.d=Oe(d,16);var c=l.sub[4].getHexStringValue();this.p=Oe(c,16);var f=l.sub[5].getHexStringValue();this.q=Oe(f,16);var y=l.sub[6].getHexStringValue();this.dmp1=Oe(y,16);var u=l.sub[7].getHexStringValue();this.dmq1=Oe(u,16);var h=l.sub[8].getHexStringValue();this.coeff=Oe(h,16)}else if(l.sub.length===2)if(l.sub[0].sub){var m=l.sub[1],g=m.sub[0];a=g.sub[0].getHexStringValue(),this.n=Oe(a,16),r=g.sub[1].getHexStringValue(),this.e=parseInt(r,16)}else a=l.sub[0].getHexStringValue(),this.n=Oe(a,16),r=l.sub[1].getHexStringValue(),this.e=parseInt(r,16);else return!1;return!0}catch{return!1}},o.prototype.getPrivateBaseKey=function(){var n={array:[new $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},a=new $.asn1.DERSequence(n);return a.getEncodedHex()},o.prototype.getPrivateBaseKeyB64=function(){return hn(this.getPrivateBaseKey())},o.prototype.getPublicBaseKey=function(){var n=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),a=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),r=new $.asn1.DERBitString({hex:"00"+a.getEncodedHex()}),i=new $.asn1.DERSequence({array:[n,r]});return i.getEncodedHex()},o.prototype.getPublicBaseKeyB64=function(){return hn(this.getPublicBaseKey())},o.wordwrap=function(n,a){if(a=a||64,!n)return n;var r="(.{1,"+a+`})( +|$
91
91
  ?)|(.{1,`+a+"})";return n.match(RegExp(r,"g")).join(`
92
92
  `)},o.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
93
93
  `;return n+=o.wordwrap(this.getPrivateBaseKeyB64())+`
94
94
  `,n+="-----END RSA PRIVATE KEY-----",n},o.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
95
95
  `;return n+=o.wordwrap(this.getPublicBaseKeyB64())+`
96
- `,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(pc),Eo,wc=typeof process<"u"?(Eo=process.env)===null||Eo===void 0?void 0:Eo.npm_package_version:void 0,Ac=function(){function e(o){o===void 0&&(o={}),o=o||{},this.default_key_size=o.default_key_size?parseInt(o.default_key_size,10):1024,this.default_public_exponent=o.default_public_exponent||"010001",this.log=o.log||!1,this.key=null}return e.prototype.setKey=function(o){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new gi(o)},e.prototype.setPrivateKey=function(o){this.setKey(o)},e.prototype.setPublicKey=function(o){this.setKey(o)},e.prototype.decrypt=function(o){try{return this.getKey().decrypt(ri(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return fn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return fn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,ri(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new gi,o&&{}.toString.call(o)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,o);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=wc,e}();const mi=new Ac,Wt=kc();function kc(){let o=Math.random().toString(36).substr(2);for(;o.length<16;)o+=Math.random().toString(36).substr(2);return o=o.substr(0,16),o}const yi=Xe.enc.Utf8.parse("ABCDEF1234123412");function Tc(e,o){o=o||Wt;const n=Xe.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=Xe.enc.Utf8.parse(e);break;case"object":a=Xe.enc.Utf8.parse(JSON.stringify(e));break;default:a=Xe.enc.Utf8.parse(e.toString())}return Xe.AES.encrypt(a,n,{iv:yi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding}).toString()}function xi(e,o){o=o||Wt;const n=Xe.enc.Utf8.parse(o),a=Xe.AES.decrypt(e,n,{iv:yi,mode:Xe.mode.CBC,padding:Xe.pad.ZeroPadding});return Xe.enc.Utf8.stringify(a).toString()}function Bc(e){mi.setPublicKey(e)}function Ec(e){return mi.encrypt(e)}function pi(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of n)if(new RegExp(a).test(e))return!0;return!1}function Dc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n,"string"):["get","delete"].includes(r)?e.params=Ut(a,"string"):e.data=Ut(n)}function Ut(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}Bc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Ec(Wt);return{c:Tc(n,Wt),p:r}}window.getEncryptParam=Ut;function Ic(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&pi(e.url)&&(e.data instanceof FormData?e.data=Rc(e.data):Dc(e))}function Rc(e){const o=e.entries(),n=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?n.append(s,l):a[s]=l}const r=Ut(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Wt,window.xhaesDecrypt=xi;function bi(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&pi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=xi(e.data.data.content,Wt);e.data=JSON.parse(a)}}const vi=window.config.requestErrorTip,dt=jl.create({timeout:1e3*180});dt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),Ic(e),e},e=>Promise.reject(e)),dt.interceptors.response.use(e=>{var o,n,a;return vi&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),bi(e),e},e=>{if(bi(e==null?void 0:e.response),vi)if(e.message.includes("timeout"))se.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&se.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),o>=500&&se.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(e)});const Oc=e=>e.replace(/\\n/g,`
97
- `),Do=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},_c=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},bn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Lc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Si=(e,o)=>lt(o,e),ft=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},Gt=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),tn=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...n,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},it=(e,o)=>{let n=!0;const a=tn(e);return a!=null&&a.length&&(n=a.map(r=>o[r.id]).every(r=>r)),n},nn=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
96
+ `,n+="-----END PUBLIC KEY-----",n},o.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},o.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},o.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},o}(kc),Io,Ic=typeof process<"u"?(Io=process.env)===null||Io===void 0?void 0:Io.npm_package_version:void 0,Rc=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 bi(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(di(o))}catch{return!1}},e.prototype.encrypt=function(o){try{return hn(this.getKey().encrypt(o))}catch{return!1}},e.prototype.sign=function(o,n,a){try{return hn(this.getKey().sign(o,n,a))}catch{return!1}},e.prototype.verify=function(o,n,a){try{return this.getKey().verify(o,di(n),a)}catch{return!1}},e.prototype.getKey=function(o){if(!this.key){if(this.key=new bi,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=Ic,e}();const vi=new Rc,Ut=Oc();function Oc(){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 Si=et.enc.Utf8.parse("ABCDEF1234123412");function _c(e,o){o=o||Ut;const n=et.enc.Utf8.parse(o);let a="";switch(typeof e){case"string":a=et.enc.Utf8.parse(e);break;case"object":a=et.enc.Utf8.parse(JSON.stringify(e));break;default:a=et.enc.Utf8.parse(e.toString())}return et.AES.encrypt(a,n,{iv:Si,mode:et.mode.CBC,padding:et.pad.ZeroPadding}).toString()}function Ci(e,o){o=o||Ut;const n=et.enc.Utf8.parse(o),a=et.AES.decrypt(e,n,{iv:Si,mode:et.mode.CBC,padding:et.pad.ZeroPadding});return et.enc.Utf8.stringify(a).toString()}function Lc(e){vi.setPublicKey(e)}function Nc(e){return vi.encrypt(e)}function wi(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const n=["/diagram","/dataview"].map(a=>`^(.*?)${a}(/|$)`);for(const a of n)if(new RegExp(a).test(e))return!0;return!1}function Fc(e){const{paramType:o,data:n,params:a,method:r}=e;o==="form"?["get","delete"].includes(r)?e.params=Gt(a,"string"):e.data=Gt(n,"string"):["get","delete"].includes(r)?e.params=Gt(a,"string"):e.data=Gt(n)}function Gt(e,o){let n=e||{};if(o==="string"){n="";for(const l in e)if(Object.hasOwnProperty.call(e,l)){const d=e[l];n+=`${l}=${encodeURIComponent(d)}&`}}Lc("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=Nc(Ut);return{c:_c(n,Ut),p:r}}window.getEncryptParam=Gt;function zc(e,o){var n;(n=window==null?void 0:window.config)!=null&&n.encryptFlag&&wi(e.url)&&(e.data instanceof FormData?e.data=Mc(e.data):Fc(e))}function Mc(e){const o=e.entries(),n=new FormData,a={};for(const i of o){const s=i[0],l=i[1];l instanceof Blob?n.append(s,l):a[s]=l}const r=Gt(a,"json");return typeof r=="object"&&(n.append("c",r.c),n.append("p",r.p)),n}window.xhaesKey=Ut,window.xhaesDecrypt=Ci;function Ai(e,o){var n;if((n=window==null?void 0:window.config)!=null&&n.encryptFlag&&wi(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const a=Ci(e.data.data.content,Ut);e.data=JSON.parse(a)}}const ki=window.config.requestErrorTip,dt=Ql.create({timeout:1e3*180});dt.interceptors.request.use(e=>{const{requestParams:o={}}=window.config;return o!=null&&o.pltToken&&(e.headers["Plt-Token"]=o.pltToken),zc(e),e},e=>Promise.reject(e)),dt.interceptors.response.use(e=>{var o,n,a;return ki&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&se.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),Ai(e),e},e=>{if(Ai(e==null?void 0:e.response),ki)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 Pc=e=>e.replace(/\\n/g,`
97
+ `),Ro=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},qc=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Sn=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Vc=(e,o=2)=>{const n=e+"",a=parseFloat(n);return isNaN(a)?e:a.toFixed(o)},Ti=(e,o)=>lt(o,e),ft=(e,o)=>{if(typeof e=="string"&&typeof o=="string")return e.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof e=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const r=o[a];if(typeof r=="string"&&e.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return!0}}return!1},$t=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),on=e=>{const{leftAxisList:o=[],rightAxisList:n=[],queryColumnList:a=[],indicators:r=[]}=e;return[...o,...n,...a,...r].filter(i=>(i==null?void 0:i.calcType)==="COMPONENT").map(i=>({keyName:i.builtInCalcWay,id:i.builtInValueSource}))},it=(e,o)=>{let n=!0;const a=on(e);return a!=null&&a.length&&(n=a.map(r=>o[r.id]).every(r=>r)),n},an=(e,o)=>{var s;const n=e.match(/\{(.+?)\}/g),a=((s=e.split(`
98
98
  `))==null?void 0:s.length)-1;let r="";if(a)for(let l=0;l<a;l++)r+=`
99
- `;let i=e;if(n!=null&&n.length){for(const l of n){const d=Ee(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},vn=(e,o)=>{const n={dayjs:be,...o};let a="";const r=[];for(const l in n)a+=`${l},`,r.push(n[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},Ee=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=vn(f,n)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},He=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Pe,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=t.inject(Te,{getGlobalModel:m=>{}}),y=Ee(n),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(x=>{const{key:k,value:B}=x;if(typeof B=="object"&&B!=null&&B.id){let I={};const{id:_,prop:N,propKey:A,operate:T}=B;_==="THIS"?I=f(t.unref(c))||{}:I=f(_)||{};const D=t.unref(I[N]);let p=null;if(["date","range"].some(C=>ft(I==null?void 0:I.type,C))){const{value:C,type:R,mode:F}=T||{};if(C&&R&&F)switch(R){case"add":p=t.unref(D).add(C,F);break;case"minus":p=t.unref(D).subtract(C,F);break}p==null&&(p=t.unref(D)),p=(p==null?void 0:p.format((A==null?void 0:A.trim())||I.format))||""}else Object.prototype.toString.call(D)==="[object Object]"?A?p=D[A]:p=N?D[N]:D:ft(I==null?void 0:I.type,"select")&&t.unref(D)&&N&&Array.isArray(t.unref(D))?p=t.unref(D).map(C=>Object.prototype.hasOwnProperty.call(C,N)?C[N]:C):p=D;g[k]=p}else typeof B=="string"&&(g[k]=Ee(B))}),g={...window.config.requestParams,...m,...g};let S="";const E=Object.keys(g),b=E.length-1,v=E.length;E.forEach((x,k)=>{let B=g[x];Object.prototype.toString.call(B)==="[object Object]"&&(B=JSON.stringify(B)),k===0?v!==1?S+=`?${x}=${B}&`:S+=`?${x}=${B}`:k===b?S+=`${x}=${B}`:S+=`${x}=${B}&`});try{const x=["get","head"].includes(a),k={};let B=x?y+S:y;g.dataSqlId&&!B.includes("dataSqlId")&&(B+=`${B.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(k.signal=g.signal);const I=await dt({baseURL:t.unref(d)||"",url:B,method:a,headers:r,data:x?{}:g,...k});return o(I),I}catch(x){console.error(x)}},h=l&&setInterval(u,s*1e3);return t.onUnmounted(()=>{clearInterval(h)}),u},At=(e=[],o,n=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!n){const y=[];for(let h=0;h<d;h++){const m=r[h],{label:g,value:S}=m,E={...e[0],value:e[0][S]};i.add(g),y.push(E)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:S,value:E}=g,b={...u,value:u[E]||0};if(s.has(S)){const v=s.get(S);v.push(b),s.set(S,v)}else s.set(S,[b])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},yt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Ci=(e,o)=>{const n=`${xr}/preview?pageId=${o}`,a=`${xr}/${o}`;return e==="preview"?n:a},lt=(e,o)=>{var r;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let i=0;i<a;i++){const s=n[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=vn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},et=(e={})=>{const{requestToken:o}=t.inject(hr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=t.inject(Te,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:S}=h;let E="";const{pageMode:b="",componentList:v=[]}=(e==null?void 0:e.graphicConfig)||{};let x=null,k=null;if(b==="design"){const B=v==null?void 0:v.find(p=>p.id===S);if(!B)return[];const{interval:I,intervalUnit:_,startTime:N,endTime:A,operate:T,useCurrentTime:D}=B||{};if(D&&(x=be().subtract(I,_),k=be()),N&&(x=be(N)),A&&(k=be(A)),T){const{type:p,value:w,mode:C}=T;switch(p){case"add":x=x&&x.add(w,C),k=k&&k.add(w,C);break;case"minus":x=x&&x.subtract(w,C),k=k&&k.subtract(w,C)}}}else{const B=a(S)||{};t.unref(B.startTime)&&(x=be(t.unref(B.startTime))),t.unref(B.endTime)&&(k=be(t.unref(B.endTime)))}if(x&&k){const B=k.diff(x,g.toLowerCase());E=`${m==="before"?"-":""}${B+1}`}return E?[E]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:S,componentId:E=""}=h;if(S===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&E){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(h.calcWays=r({around:b[1],unit:g[0],id:E})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=be().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ne.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const S=!g.conditions.some(E=>E.join&&E.conditions);g.conditions.forEach((E,b)=>{s(E),S?b<g.conditions.length-1?m.push({join:g.join,...E}):m.push(E):E.join&&E.conditions?m.push({conditions:l([E]),join:g.join}):m.push(E)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const D=u(h);D&&(m.sort=D)}const{label:g,name:S,location:E,show:b,indexCode:v,calcType:x="COLUMN",builtInFormula:k,builtInValueSource:B,builtInCalcWay:I,formula:_,conditions:N,aggregate:A}=h;let T;if(N&&(T=l(N)),x==="COMPONENT"){const D={};return y(D,B),{label:g.trim(),columnName:S,show:b,calcType:x,componentAlias:I,componentValue:D.fieldValue||null}}else return{label:g.trim(),columnName:S,location:E,show:b,calcType:x,hrpIndexCode:v,aggregate:A,builtInFormula:k,builtInValueSource:B,builtInCalcWay:I,formula:_,conditions:T}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:S=[],dimensionList:E=[],seriesList:b=[],leftAxisList:v=[],rightAxisList:x=[],queryColumnList:k=[],indicators:B=[]}=h,I=[...g,...S,...E,...b,...v,...x,...k,...B],_=[];for(const D of I){const p=c((D==null?void 0:D.conditions)||[]);if(p!=null&&p.length){const w=p.filter(C=>(C==null?void 0:C.dataType)==="component").map(C=>{const R={};return C!=null&&C.dateFormat&&(R.format=C.dateFormat),{conditionKey:C.fieldName,conditionLabel:C.fieldName,conditionName:C.fieldName,conditionValueType:C.fieldType,id:C.componentId,keyName:C.fieldValue,rule:C.rule,notGlobal:!0,indexCode:C.indexCode,typeGuid:C.typeGuid,...R}});if(w!=null&&w.length)for(const C of w)_.find(R=>R.keyName===C.keyName)||_.push(C)}}const N=m.concat(_),A=N.length,T=[];for(let D=0;D<A;D++){const p=N[D];if((p==null?void 0:p.conditionKey)==="parentCode")continue;const{id:w,keyName:C,conditionLabel:R,conditionKey:F,conditionValueType:q,prop:W,rule:$="NONE",notGlobal:z=!1,format:P,modelKey:M,indexCode:O,typeGuid:L}=p;let H=C||w;H&&W&&(H+=`-${W}`);let Z=$;Z==="NONE"&&(["startTime","endTime"].includes(W)?Z=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":C!=null&&C.includes("startTime")?Z=W==="GREATER_EQUAL":C!=null&&C.includes("endTime")?Z=W==="LESS_EQUAL":Z="EQUAL");const U={rule:Z,label:R,fieldName:F,fieldValue:"",valueType:q,alias:H,globalCondition:!z,indexCode:O,typeGuid:L};y(U,w,{prop:W,dateFormat:P,modelKey:M,keyName:C}),T.push(U)}for(let D=T.length-1;D>=0;D--){const p=T[D];p.globalCondition||T.find(C=>C.alias===p.alias&&C.globalCondition)&&T.splice(D,1)}return T};function y(h,m,g){var T,D;const S=a(m)||{},{prop:E="",dateFormat:b="",modelKey:v="",keyName:x=""}=g||{},{value:k,format:B="YYYY-MM-DD",type:I="",useCurrentTime:_,RECORD:N}=S||{},A=b||B;if(ft(S.type,"date"))_?k?h.fieldValue=(T=t.unref(k))==null?void 0:T.format(A):h.fieldValue=be().format(A):h.fieldValue=(D=t.unref(k))==null?void 0:D.format(A),h.dateFormat=A;else if(I==="ecanRangePicker"){let p=E;if(!E){const C=x&&x.split("-");C!=null&&C.length&&(p=C[C.length-1])}if(!p)return;let w=null;t.unref(S[p])&&(w=be(t.unref(S[p]))),w&&(h.fieldValue=w==null?void 0:w.format(A)),h.dateFormat=A}else ft(I,["table","bar","combograph","line","pie","radar","scatter","list"])?v&&N?h.fieldValue=N[v]:!v&&N?h.fieldValue=N.value:h.fieldValue=t.unref(k):h.fieldValue=t.unref(k)}const u=h=>{const{sortCpnts:m=[]}=h;let g,S="";for(const E of m){const b=a(E)||{},{type:v,RECORD:x}=b;if(ft(v,"image")&&ft(x==null?void 0:x.value,["asc","desc"])){S=x.value.toUpperCase();break}}return S&&(g={label:h.label,columnName:h.name,order:S,type:"NORMAL"}),g};return async(h={})=>{var Z,U,ae,Q,le,re;n(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:S=!1}=e;let{source:E,dataViewId:b,plugin:v="1",layer:x,chartType:k,classificationList:B=[],rowHeaderList:I=[],dimensionList:_=[],seriesList:N=[],leftAxisList:A=[],rightAxisList:T=[],queryColumnList:D=[],indicators:p=[],controlList:w=[],formFields:C={},idxLibMode:R,preview:F=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(Y=>{const X=Y.rule||"EQUAL",te={};return i(Y,"globalCondition")||(te.globalCondition=!0),{...Y,rule:X==="NONE"?"EQUAL":X,...te}}):q=f(m);for(const Y of q)i(Y,"indexCode")&&(Y.hrpIndexCode=Y.indexCode,delete Y.indexCode);x==null&&(ft(g,["table"])?x="1":ft(g,["select","checkbox","radio"])?x="3":x="2");let W,$="";if(Array.isArray(B)&&B.length>0){const Y=B.length;for(let X=0;X<Y;X++){const te=B[X]||{},{label:pe="",name:Ae="",show:De=!1,sort:$e,customGroup:Me,conditions:Re,dateFormat:ke,typeGuid:Ve="",truncations:Fe=[]}=te;if(De||Y===1){$=Ve,W={label:pe.trim(),columnName:Ae,show:De,sort:u(te)||$e,customGroup:Me,conditions:l(Re),typeGuid:Ve},ke&&(W.dateFormat=ke),Ae==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(Fe)&&Fe.length>0){const We=Fe.length;for(let je=0;je<We;je++){const ut=Fe[je]||{},{rule:tt="",num:nt=0,name:V=""}=ut;tt&&nt&&(Ke.num=nt,Ke.rule=tt,V&&(Ke.otherGroupName=V))}}(Z=Object.keys(Ke))!=null&&Z.length&&(W.truncation=Ke);break}}}let z;if(Array.isArray(N)&&N.length>0){const Y=N.length;for(let X=0;X<Y;X++){const te=N[X]||{},{label:pe="",name:Ae="",show:De=!1,sort:$e,customGroup:Me,conditions:Re}=te;if(De||Y===1){z={label:pe.trim(),columnName:Ae,show:De,sort:$e,customGroup:Me,conditions:l(Re)};break}}}const P=[];A==null||A.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))}),T==null||T.forEach(Y=>{Y.location="RIGHT",P.push(d(Y,W))}),p==null||p.forEach(Y=>{Y.location="LEFT",P.push(d(Y,W))});const M=[];D==null||D.forEach(Y=>{const{label:X,name:te,location:pe,show:Ae,indexCode:De,sort:$e,typeGuid:Me}=Y;let Re=$e;if(h.sort){const{field:ke,order:Ve}=h.sort;let Fe=P.find(Ke=>Ke.label===ke);!Fe&&X===ke&&(Fe=Y),Fe&&(Re={columnName:Fe.columnName,label:h.sort.field,order:Ve.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:te,location:pe,show:Ae,sort:Re,calcType:"COLUMN",hrpIndexCode:De,typeGuid:Me})});const O=[];let L=[];if(Array.isArray(I)&&I.length>0?L=I:Array.isArray(_)&&_.length>0&&(L=_),L!=null&&L.length){const Y=L.length;for(let X=0;X<Y;X++){const te=L[X]||{},{label:pe="",name:Ae="",show:De=!1,sort:$e,customGroup:Me,conditions:Re,truncations:ke,typeGuid:Ve="",dateFormat:Fe}=te;let Ke=$e;if(h.sort){const{field:ut,order:tt}=h.sort;let nt=P.find(V=>V.label===ut);!nt&&te.label===ut&&(nt=te),nt&&(Ke={columnName:nt.columnName,label:h.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:pe.trim(),columnName:Ae,show:De,sort:Ke,customGroup:Me,conditions:l(Re),typeGuid:Ve};Fe&&(We.dateFormat=Fe),Ae==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const je={};if(Array.isArray(ke)&&ke.length>0){const ut=ke.length;for(let tt=0;tt<ut;tt++){const nt=ke[tt]||{},{rule:V="",num:K=0,name:J=""}=nt;V&&K&&(je.num=K,je.rule=V,J&&(je.otherGroupName=J))}}(U=Object.keys(je))!=null&&U.length&&(We.truncation=je),O.push(We)}}if(ft(g,["text","proportion"])&&(k="zb"),S){if(O.length===0||P.length===0)return;k="grouptable"}else{if(x==="1"&&M.length===0)return;if(x==="2"&&P.length===0)return;if(x==="3"&&(!$||!C.labelField||!C.valueField))return;if(x==="3"&&g==="ecanDataSelect"&&P.length===0)return}_!=null&&_.length&&(x="1",k="grouptable");let H=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!H){const{pathname:Y}=window==null?void 0:window.location;if(Y){const X=Y.split("/");X!=null&&X.length&&(H=X[X.length-1])}}if((Q=Object.keys(C))!=null&&Q.length){const Y=w.find(te=>te.conditionKey==="parentCode"),X={};if(Y){const te=a(Y.id)||{};if(te!=null&&te.itemCodes)X.parentItemCodes=te.itemCodes;else return}g==="ecanDataSelect"&&(X.indicatorList=P.filter(te=>te.show));try{return await dt.post(`${yr}/diagram/formData`,{source:E,dataViewId:b,plugin:"4",layer:x,chartType:"normalSelect",rangeIndexTypeGuid:$,type:g==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:C.labelField,valueField:C.valueField,pageId:H,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(le=window==null?void 0:window.config)==null?void 0:le.indicatorToken,operateContext:mr}})}catch(te){console.error(te)}finally{}}else try{return await dt.post(`${yr}/diagram`,{source:E,dataViewId:b,plugin:v,layer:x,chartType:k,classification:W,series:z,indicatorList:P,queryColumns:S?[]:M,pageFlag:!0,pageId:H,sqlConditions:q.map(X=>{const{fieldValue:te}=X,pe={};return te&&Array.isArray(te)&&(pe.fieldValue=JSON.stringify(te)),{...X,...pe}}),idxLibMode:R,preview:F,rowHeaders:O,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:mr}})}catch(Y){console.error(Y)}finally{}}},Nc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Fc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...Mn},setup(e){const{width:o,height:n}=t.inject(Pe,{width:null,height:null}),a=t.inject("setPageHeight",x=>{}),r=t.inject("isMobile",!1),i=t.computed(()=>{const x={};return r||(x.width=o.value,x.height=n.value),{...x,backgroundColor:e.backgroundColor,backgroundImage:yt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),y=t.ref();let u;const h=()=>new Promise(x=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),x()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await h(),m(),S(),window.addEventListener("resize",E),b(),f.value=!0},{immediate:!0});const g=t.ref({});t.provide("scaleValue",g);const S=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const x=document.body.clientWidth,k=document.body.clientHeight,B=s.value||d.value,I=l.value||c.value,_=x/B;let N=k/I;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*x/I),g.value={widthScale:_,heightScale:N},y.value&&(y.value.style.transform=`scale(${_}, ${N})`),a(N)},E=Ne.debounce(async()=>{await h(),S()},100),b=()=>{const x=window.MutationObserver;u=new x(E),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",E),v()}),{style:i,container:y,ready:f}}}),Mu="",zc={id:"container",ref:"container"};function Mc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",zc,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const wi=xe(me(Fc,[["render",Mc],["__scopeId","data-v-b496b36e"]])),Io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},Ro=Se(Io),Pc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...Ro},setup(e,{expose:o}){Nc();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=t.inject("usedComponentList",[]);t.watch(()=>e.theme,()=>{r()}),t.onMounted(()=>{r()});const s=t.computed(()=>Ee(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),f=t.computed(()=>e.height),y=t.ref("");t.provide(Pe,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",L=>{let H=L;n.value||(H=parseFloat(f.value)*L+"px"),u.value.height=H}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const h=t.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),S=(L,H)=>{h.value=H,m.set(L,H)},E=()=>{h.value=null},b=L=>{let H=L;if(H){const Z=L.match(/\{(.+?)\}/g);if(Z!=null&&Z.length){let U=Z[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Q="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Q=ae[0].slice(1,-1).trim());const le=t.unref(i).find(re=>re.keyName===U);if(le){const re=g(le.id),{type:Y,value:X,RECORD:te}=re||{};ft(Y,["table","bar","combograph","line","pie","radar","scatter","list"])?H=te[Q]:H=X}else H=""}}return H};t.provide(Te,{getGlobalModel:g,setGlobalModel:S,clearInteractiveData:E,getRecordValueByKeyName:b,interactiveData:h});const v=t.ref({}),x=(L,H)=>{v.value[L]=H};t.provide(vt,{loadedData:v,setLoadedData:x});const k=[],B=()=>{k.pop()},I=L=>{k.push(L)},_=new Map,N=L=>_.get(L),A=(L,H)=>{_.set(L,H)};t.provide(gr,{popUseModalIds:B,pushUseModalIds:I,getModalModel:N,setModalModel:A});const T=Wl(),D=new Set,p=(L,H)=>{D.add(L),T.on(L,Z=>typeof H[Z]=="function"&&H[Z]()),t.onBeforeUnmount(()=>{w(L)})},w=L=>{D.delete(L),T.off(L)},C=(L,H)=>{if(L==="PAGE"){const Z=k.length;let U=[];if(Z===0)U=[...D];else{const ae=k[Z-1];U=[...N(ae)]}U.forEach(ae=>{T.emit(ae,H)})}else T.emit(L,H)};t.provide(Pn,{onEvent:p,offEvent:w,emitEvent:C});const R=t.ref(0),F=()=>{R.value=t.unref(R)+1};t.provide(hr,{requestToken:F});const q=new Map,W=new Map,$=({requestFn:L=()=>{},sortNum:H=0,id:Z=""})=>{if(q.has(H)){const U=q.get(H);U==null||U.push(L)}else q.set(H,[L]);W.set(Z,L)},z=L=>new Promise((H,Z)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{H(ae)}).catch(ae=>{Z(ae)})}),P=L=>new Promise(async(H,Z)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Q=>(H(Q),Q),Q=>(Z(Q),Promise.reject(Q)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Q,le)=>le[0]-Q[0]);const ae=U.length;try{e.pageMode!=="design"&&t.unref(R)>0;for(let Q=0;Q<ae;Q++){const le=U[Q][1];await z(le)}}catch(Q){console.error(Q)}finally{q.clear(),H(null)}}});t.provide(ze,{setRequest:$,touchRequest:P});const M=()=>{T.emit(Xt)};t.provide(Xt,{emitRefreshPage:M});const O=L=>{T.on(Xt,()=>L()),t.onMounted(()=>{T.off(Xt)})};return t.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:O}),{providerConfig:a,configStyle:u}}}),qu="";function qc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle(e.configStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Ai=xe(me(Pc,[["render",qc],["__scopeId","data-v-a6d93422"]])),Oo={...we,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg"},_o=Se(Oo),ki=["refreshData","click","valueChange"],Lo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",No="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Fo=t.defineComponent({name:"EcanText",components:{Skeleton:sn},props:{..._o},setup(e,{expose:o}){const n=t.ref(!1),a=Ce(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([p,w])=>{w==="static"&&(r.value=p)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{},getRecordValueByKeyName:p=>{}}),{setLoadedData:f}=t.inject(vt,{setLoadedData:(p,w)=>{}}),y=t.computed(()=>{let p="";if(e.gradientShow){const{gradientColor:w,gradientOffset:C,gradientAngle:R,color:F}=e;p+=`background: linear-gradient(${R}, ${F}, ${w||"transparent"} ${C*100}%);-webkit-background-clip: text;color: transparent;`}return p}),u=t.computed(()=>{const p={};if(e.gradientShow){const{gradientColor:w,gradientOffset:C,gradientAngle:R,color:F}=e,q=w||"transparent";p.background=`linear-gradient(${R}, ${F}, ${q} ${C*100}%)`,p["-webkit-background-clip"]="text",p.color="transparent"}return p}),h=t.computed(()=>{var W;if(t.unref(n))return"NaN";const p=t.unref(r),w=e.increaseColor||e.color,C=e.declineColor||e.color;let R=e.text;R=R==null?void 0:R.replace(/\n|\\n/g,"<br/>"),R=R==null?void 0:R.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const F=R.match(/\{(.+?)\}/g)||[];let q="";if(F==null||F.length===0){if(R&&e.format==="percentage"&&!isNaN(+R)){const $=parseFloat(R),z=$*100,P=m(z.toFixed(2));$>=0?R=`<span style="color: ${P||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
99
+ `;let i=e;if(n!=null&&n.length){for(const l of n){const d=De(l,{textData:o},{useNewline:!1,useSpace:!1});d&&(i=i.replace(l,d))}return`${r}{text|${i}}`}else return e},Cn=(e,o)=>{const n={dayjs:Se,...o};let a="";const r=[];for(const l in n)a+=`${l},`,r.push(n[l]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let s;try{s=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return s},De=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:r=!1}={})=>{const s={...window.config||{},...o},l=e.match(/\{(.+?)\}/g);if(l==null||l.length===0)return e;for(let d=0;d<l.length;d++){const c=l[d];let f=c.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=f.match(y);for(let h=0;h<u.length;h++){const m=u[h],g=s[m];g!=null&&typeof g!="function"&&(f=f.replace(m,g))}(/\(.*\)/g.test(f)||/[+/\\*]/g.test(f))&&(f=Cn(f,n)),e=e.replace(c,f)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Ve=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:r,requestParams:i,requestInterval:s,isOpenRequestTimer:l}=e,{contextRequestUrl:d,touchEventId:c}=t.inject(Me,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:f}=t.inject(Te,{getGlobalModel:m=>{}}),y=De(n),u=async(m={})=>{if(!y||!a||!r)return;let g={};i.forEach(p=>{const{key:T,value:E}=p;if(typeof E=="object"&&E!=null&&E.id){let B={};const{id:O,prop:N,propKey:A,operate:k}=E;O==="THIS"?B=f(t.unref(c))||{}:B=f(O)||{};const I=t.unref(B[N]);let x=null;if(["date","range"].some(v=>ft(B==null?void 0:B.type,v))){const{value:v,type:R,mode:F}=k||{};if(v&&R&&F)switch(R){case"add":x=t.unref(I).add(v,F);break;case"minus":x=t.unref(I).subtract(v,F);break}x==null&&(x=t.unref(I)),x=(x==null?void 0:x.format((A==null?void 0:A.trim())||B.format))||""}else Object.prototype.toString.call(I)==="[object Object]"?A?x=I[A]:x=N?I[N]:I:ft(B==null?void 0:B.type,"select")&&t.unref(I)&&N&&Array.isArray(t.unref(I))?x=t.unref(I).map(v=>Object.prototype.hasOwnProperty.call(v,N)?v[N]:v):x=I;g[T]=x}else typeof E=="string"&&(g[T]=De(E))}),g={...window.config.requestParams,...m,...g};let C="";const D=Object.keys(g),b=D.length-1,S=D.length;D.forEach((p,T)=>{let E=g[p];Object.prototype.toString.call(E)==="[object Object]"&&(E=JSON.stringify(E)),T===0?S!==1?C+=`?${p}=${E}&`:C+=`?${p}=${E}`:T===b?C+=`${p}=${E}`:C+=`${p}=${E}&`});try{const p=["get","head"].includes(a),T={};let E=p?y+C:y;g.dataSqlId&&!E.includes("dataSqlId")&&(E+=`${E.includes("?")?"&":"?"}dataSqlId=${g.dataSqlId}`),Object.prototype.hasOwnProperty.call(g,"signal")&&(T.signal=g.signal);const B=await dt({baseURL:t.unref(d)||"",url:E,method:a,headers:r,data:p?{}:g,...T});return o(B),B}catch(p){console.error(p)}},h=l&&setInterval(u,s*1e3);return t.onUnmounted(()=>{clearInterval(h)}),u},At=(e=[],o,n=!1)=>{let{name:a="name",types:r=[]}=o||{};a=(a==null?void 0:a.trim())||a;const i=new Set,s=new Map,l=e.length,d=r.length;if(l===1&&!n){const y=[];for(let h=0;h<d;h++){const m=r[h],{label:g,value:C}=m,D={...e[0],value:e[0][C]};i.add(g),y.push(D)}const u=e[0][a]||"";s.set(u,y)}else for(let y=0;y<l;y++){const u=e[y],h=u[a];i.add(h);for(let m=0;m<d;m++){const g=r[m],{label:C,value:D}=g,b={...u,value:u[D]||0};if(s.has(C)){const S=s.get(C);S.push(b),s.set(C,S)}else s.set(C,[b])}}const c=Array.from(i),f=[];for(const[y,u]of s)f.push({name:y,data:u});return{dimensions:c,dataset:f}},yt=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Bi=(e,o)=>{const n=`${Sr}/preview?pageId=${o}`,a=`${Sr}/${o}`;return e==="preview"?n:a},lt=(e,o)=>{var r;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let i=0;i<a;i++){const s=n[i];if(s==null||s==="")break;let l=(r=s.slice(1,-1))==null?void 0:r.trim();l=l==null?void 0:l.replace(/value/g,o);try{let d=l;(/\(.*\)/g.test(l)||/[+/\\*]/g.test(l))&&(d=Cn(l)),e=e.replace(s,d)}catch{e=e.replace(s,l)}}return e},Ze=(e={})=>{const{requestToken:o}=t.inject(xr,{requestToken:()=>{}}),{setLoadedData:n}=t.inject(vt,{setLoadedData:(h,m)=>{}}),{getGlobalModel:a}=t.inject(Te,{getGlobalModel:h=>{}});e.dataType==="indicator"&&o();const r=h=>{const{around:m,unit:g,id:C}=h;let D="";const{pageMode:b="",componentList:S=[]}=(e==null?void 0:e.graphicConfig)||{};let p=null,T=null;if(b==="design"){const E=S==null?void 0:S.find(x=>x.id===C);if(!E)return[];const{interval:B,intervalUnit:O,startTime:N,endTime:A,operate:k,useCurrentTime:I}=E||{};if(I&&(p=Se().subtract(B,O),T=Se()),N&&(p=Se(N)),A&&(T=Se(A)),k){const{type:x,value:w,mode:v}=k;switch(x){case"add":p=p&&p.add(w,v),T=T&&T.add(w,v);break;case"minus":p=p&&p.subtract(w,v),T=T&&T.subtract(w,v)}}}else{const E=a(C)||{};t.unref(E.startTime)&&(p=Se(t.unref(E.startTime))),t.unref(E.endTime)&&(T=Se(t.unref(E.endTime)))}if(p&&T){const E=T.diff(p,g.toLowerCase());D=`${m==="before"?"-":""}${E+1}`}return D?[D]:[]},i=(h,m)=>Object.prototype.hasOwnProperty.call(h,m),s=h=>{const{calcWays:m=[],dateCalcTypes:g=[],activeKey:C,componentId:D=""}=h;if(C===5&&(m!=null&&m.length)&&(g!=null&&g.length)&&D){const b=m[0].split("-");(b==null?void 0:b.length)>1&&b[0]==="rangeValue"&&(h.calcWays=r({around:b[1],unit:g[0],id:D})),delete h.radioValue}i(h,"dataType")&&(h.fieldType==="DATE"&&(h.label=h.fieldName),h.dataType==="component"&&(h.fieldValue="${"+h.fieldValue+"}"),delete h.dataType),i(h,"activeKey")&&delete h.activeKey,i(h,"radioValue")&&delete h.radioValue,i(h,"indexCode")&&(h.hrpIndexCode=h.indexCode,delete h.indexCode),h.dataType!=="component"&&h.useCurrentTime&&(h.fieldValue=Se().format(h.dateFormat)),delete h.useCurrentTime},l=h=>{const m=[];return h!=null&&h.length&&Ie.cloneDeep(h).forEach(g=>{if(g.join&&g.conditions){const C=!g.conditions.some(D=>D.join&&D.conditions);g.conditions.forEach((D,b)=>{s(D),C?b<g.conditions.length-1?m.push({join:g.join,...D}):m.push(D):D.join&&D.conditions?m.push({conditions:l([D]),join:g.join}):m.push(D)})}else s(g),m.push(g)}),m},d=(h={},m)=>{if(h!=null&&h.sortCpnts&&m){const x=u(h);x&&(m.sort=x)}const{label:g,name:C,location:D,show:b,indexCode:S,calcType:p="COLUMN",builtInFormula:T,builtInValueSource:E,builtInCalcWay:B,formula:O,conditions:N,aggregate:A}=h;let k;if(N&&(k=l(N)),p==="COMPONENT"){const x={};return y(x,E),{label:g.trim(),columnName:C,show:b,calcType:p,componentAlias:B,componentValue:x.fieldValue||null}}const I={label:g.trim(),columnName:C,location:D,show:b,calcType:p,hrpIndexCode:S,aggregate:A,builtInFormula:T,builtInValueSource:E,formula:O,conditions:k};if(T==="DATE_OFFSET"){const x=B.split("-");if((x==null?void 0:x.length)===3){let w=x[0];return x[2]==="before"&&x[0]!=="0"&&(w=`-${x[0]}`),{...I,calcWays:[w],dateCalcTypes:[x[1]]}}}else return{...I,builtInCalcWay:B}},c=h=>{const m=[];for(const g of h)g.conditions?m.push(...c(g.conditions)):(g==null?void 0:g.dataType)==="component"&&m.push(g);return m},f=h=>{if(!h)return[];const{controlList:m=[],classificationList:g=[],rowHeaderList:C=[],dimensionList:D=[],seriesList:b=[],leftAxisList:S=[],rightAxisList:p=[],queryColumnList:T=[],indicators:E=[]}=h,B=[...g,...C,...D,...b,...S,...p,...T,...E],O=[];for(const I of B){const x=c((I==null?void 0:I.conditions)||[]);if(x!=null&&x.length){const w=x.filter(v=>(v==null?void 0:v.dataType)==="component").map(v=>{const R={};return v!=null&&v.dateFormat&&(R.format=v.dateFormat),{conditionKey:v.fieldName,conditionLabel:v.fieldName,conditionName:v.fieldName,conditionValueType:v.fieldType,id:v.componentId,keyName:v.fieldValue,rule:v.rule,notGlobal:!0,indexCode:v.indexCode,typeGuid:v.typeGuid,...R}});if(w!=null&&w.length)for(const v of w)O.find(R=>R.keyName===v.keyName)||O.push(v)}}const N=m.concat(O),A=N.length,k=[];for(let I=0;I<A;I++){const x=N[I];if((x==null?void 0:x.conditionKey)==="parentCode")continue;const{id:w,keyName:v,conditionLabel:R,conditionKey:F,conditionValueType:q,prop:W,rule:G="NONE",notGlobal:z=!1,format:P,modelKey:M,indexCode:_,typeGuid:L}=x;let V=v||w;V&&W&&(V+=`-${W}`);let Z=G;Z==="NONE"&&(["startTime","endTime"].includes(W)?Z=W==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":v!=null&&v.includes("startTime")?Z=W==="GREATER_EQUAL":v!=null&&v.includes("endTime")?Z=W==="LESS_EQUAL":Z="EQUAL");const U={rule:Z,label:R,fieldName:F,fieldValue:"",valueType:q,alias:V,globalCondition:!z,indexCode:_,typeGuid:L};y(U,w,{prop:W,dateFormat:P,modelKey:M,keyName:v}),k.push(U)}for(let I=k.length-1;I>=0;I--){const x=k[I];x.globalCondition||k.find(v=>v.alias===x.alias&&v.globalCondition)&&k.splice(I,1)}return k};function y(h,m,g){var k,I;const C=a(m)||{},{prop:D="",dateFormat:b="",modelKey:S="",keyName:p=""}=g||{},{value:T,format:E="YYYY-MM-DD",type:B="",useCurrentTime:O,RECORD:N}=C||{},A=b||E;if(ft(C.type,"date"))O?T?h.fieldValue=(k=t.unref(T))==null?void 0:k.format(A):h.fieldValue=Se().format(A):h.fieldValue=(I=t.unref(T))==null?void 0:I.format(A),h.dateFormat=A;else if(B==="ecanRangePicker"){let x=D;if(!D){const v=p&&p.split("-");v!=null&&v.length&&(x=v[v.length-1])}if(!x)return;let w=null;t.unref(C[x])&&(w=Se(t.unref(C[x]))),w&&(h.fieldValue=w==null?void 0:w.format(A)),h.dateFormat=A}else ft(B,Cr)?S&&N?h.fieldValue=N[S]:!S&&N?h.fieldValue=N.value:h.fieldValue=t.unref(T):h.fieldValue=t.unref(T)}const u=h=>{const{sortCpnts:m=[]}=h;let g,C="";for(const D of m){const b=a(D)||{},{type:S,RECORD:p}=b;if(ft(S,"image")&&ft(p==null?void 0:p.value,["asc","desc"])){C=p.value.toUpperCase();break}}return C&&(g={label:h.label,columnName:h.name,order:C,type:"NORMAL"}),g};return async(h={})=>{var Z,U,ae,Y,ie,re;n(e.id,!1);const{graphicConfig:m,type:g,isGroupTable:C=!1}=e;let{source:D,dataViewId:b,plugin:S="1",layer:p,chartType:T,classificationList:E=[],rowHeaderList:B=[],dimensionList:O=[],seriesList:N=[],leftAxisList:A=[],rightAxisList:k=[],queryColumnList:I=[],indicators:x=[],controlList:w=[],formFields:v={},idxLibMode:R,preview:F=!1}=m||{},q=[];(m==null?void 0:m.pageMode)==="design"?q=(m.sqlConditions??[]).map(Q=>{const X=Q.rule||"EQUAL",te={};return i(Q,"globalCondition")||(te.globalCondition=!0),{...Q,rule:X==="NONE"?"EQUAL":X,...te}}):q=f(m);for(const Q of q)i(Q,"indexCode")&&(Q.hrpIndexCode=Q.indexCode,delete Q.indexCode);p==null&&(ft(g,["table"])?p="1":ft(g,["select","checkbox","radio"])?p="3":p="2");let W,G="";if(Array.isArray(E)&&E.length>0){const Q=E.length;for(let X=0;X<Q;X++){const te=E[X]||{},{label:he="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e,dateFormat:Ee,typeGuid:He="",truncations:ze=[]}=te;if(we||Q===1){G=He,W={label:he.trim(),columnName:be,show:we,sort:u(te)||$e,customGroup:Pe,conditions:l(_e),typeGuid:He},Ee&&(W.dateFormat=Ee),be==="the_date"&&!W.dateFormat&&(W.dateFormat="YYYY-MM");const Ke={};if(Array.isArray(ze)&&ze.length>0){const We=ze.length;for(let je=0;je<We;je++){const ut=ze[je]||{},{rule:tt="",num:nt=0,name:H=""}=ut;tt&&nt&&(Ke.num=nt,Ke.rule=tt,H&&(Ke.otherGroupName=H))}}(Z=Object.keys(Ke))!=null&&Z.length&&(W.truncation=Ke);break}}}let z;if(Array.isArray(N)&&N.length>0){const Q=N.length;for(let X=0;X<Q;X++){const te=N[X]||{},{label:he="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e}=te;if(we||Q===1){z={label:he.trim(),columnName:be,show:we,sort:$e,customGroup:Pe,conditions:l(_e)};break}}}const P=[];A==null||A.forEach(Q=>{Q.location="LEFT",P.push(d(Q,W))}),k==null||k.forEach(Q=>{Q.location="RIGHT",P.push(d(Q,W))}),x==null||x.forEach(Q=>{Q.location="LEFT",P.push(d(Q,W))});const M=[];I==null||I.forEach(Q=>{const{label:X,name:te,location:he,show:be,indexCode:we,sort:$e,typeGuid:Pe}=Q;let _e=$e;if(h.sort){const{field:Ee,order:He}=h.sort;let ze=P.find(Ke=>Ke.label===Ee);!ze&&X===Ee&&(ze=Q),ze&&(_e={columnName:ze.columnName,label:h.sort.field,order:He.toUpperCase(),type:"NORMAL"})}M.push({label:X,columnName:te,location:he,show:be,sort:_e,calcType:"COLUMN",hrpIndexCode:we,typeGuid:Pe})});const _=[];let L=[];if(Array.isArray(B)&&B.length>0?L=B:Array.isArray(O)&&O.length>0&&(L=O),L!=null&&L.length){const Q=L.length;for(let X=0;X<Q;X++){const te=L[X]||{},{label:he="",name:be="",show:we=!1,sort:$e,customGroup:Pe,conditions:_e,truncations:Ee,typeGuid:He="",dateFormat:ze}=te;let Ke=$e;if(h.sort){const{field:ut,order:tt}=h.sort;let nt=P.find(H=>H.label===ut);!nt&&te.label===ut&&(nt=te),nt&&(Ke={columnName:nt.columnName,label:h.sort.field,order:tt.toUpperCase(),type:"NORMAL"})}const We={label:he.trim(),columnName:be,show:we,sort:Ke,customGroup:Pe,conditions:l(_e),typeGuid:He};ze&&(We.dateFormat=ze),be==="the_date"&&!We.dateFormat&&(We.dateFormat="YYYY-MM");const je={};if(Array.isArray(Ee)&&Ee.length>0){const ut=Ee.length;for(let tt=0;tt<ut;tt++){const nt=Ee[tt]||{},{rule:H="",num:K=0,name:J=""}=nt;H&&K&&(je.num=K,je.rule=H,J&&(je.otherGroupName=J))}}(U=Object.keys(je))!=null&&U.length&&(We.truncation=je),_.push(We)}}if(ft(g,["text","proportion"])&&(T="zb"),C){if(_.length===0||P.length===0)return;T="grouptable"}else{if(p==="1"&&M.length===0)return;if(p==="2"&&P.length===0)return;if(p==="3"&&(!G||!v.labelField||!v.valueField))return;if(p==="3"&&g==="ecanDataSelect"&&P.length===0)return}O!=null&&O.length&&(p="1",T="grouptable");let V=(ae=window==null?void 0:window.config)==null?void 0:ae.pageId;if(!V){const{pathname:Q}=window==null?void 0:window.location;if(Q){const X=Q.split("/");X!=null&&X.length&&(V=X[X.length-1])}}if((Y=Object.keys(v))!=null&&Y.length){const Q=w.find(te=>te.conditionKey==="parentCode"),X={};if(Q){const te=a(Q.id)||{};if(te!=null&&te.itemCodes)X.parentItemCodes=te.itemCodes;else return}g==="ecanDataSelect"&&(X.indicatorList=P.filter(te=>te.show));try{return await dt.post(`${vr}/diagram/formData`,{source:D,dataViewId:b,plugin:"4",layer:p,chartType:"normalSelect",rangeIndexTypeGuid:G,type:g==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:v.labelField,valueField:v.valueField,pageId:V,sqlConditions:q,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:e.keyName,...X},{headers:{Authentication:(ie=window==null?void 0:window.config)==null?void 0:ie.indicatorToken,operateContext:br}})}catch(te){console.error(te)}finally{}}else try{return await dt.post(`${vr}/diagram`,{source:D,dataViewId:b,plugin:S,layer:p,chartType:T,classification:W,series:z,indicatorList:P,queryColumns:C?[]:M,pageFlag:!0,pageId:V,sqlConditions:q.map(X=>{const{fieldValue:te}=X,he={};return te&&Array.isArray(te)&&(he.fieldValue=JSON.stringify(te)),{...X,...he}}),idxLibMode:R,preview:F,rowHeaders:_,keyName:e.keyName},{headers:{Authentication:(re=window==null?void 0:window.config)==null?void 0:re.indicatorToken,operateContext:br}})}catch(Q){console.error(Q)}finally{}}},Hc=()=>{const o=window.location.search.slice(1).split("&"),n=o.length,a={};for(let r=0;r<n;r++){const i=o[r];if(i==null||i==="")continue;const s=i.split("=");if(Array.isArray(s)){const l=s[0];a[l]=s[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},jc=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...qn},setup(e){const{width:o,height:n}=t.inject(Me,{width:null,height:null}),a=t.inject("setPageHeight",p=>{}),r=t.inject("isMobile",!1),i=t.computed(()=>{const p={};return r||(p.width=o.value,p.height=n.value),{...p,backgroundColor:e.backgroundColor,backgroundImage:yt(e.backgroundImage,!0),backgroundSize:e.backgroundSize}}),s=t.ref(0),l=t.ref(0),d=t.ref(0),c=t.ref(0),f=t.ref(!1),y=t.ref();let u;const h=()=>new Promise(p=>{t.nextTick(()=>{o.value&&n.value?(s.value=parseFloat(o.value),l.value=parseFloat(n.value)):(s.value=y.value.clientWidth,l.value=y.value.clientHeight),(!d.value||!c.value)&&(d.value=window.screen.width,c.value=window.screen.height),p()})}),m=()=>{s.value&&l.value?(y.value.style.width=`${s.value}px`,y.value.style.height=`${l.value}px`):(y.value.style.width=`${d.value}px`,y.value.style.height=`${c.value}px`)};t.watch([o,n],async()=>{await h(),m(),C(),window.addEventListener("resize",D),b(),f.value=!0},{immediate:!0});const g=t.ref({});t.provide("scaleValue",g);const C=()=>{if(r){y.value.style.width="100%",y.value.style.height="auto",a("auto");return}const p=document.body.clientWidth,T=document.body.clientHeight,E=s.value||d.value,B=l.value||c.value,O=p/E;let N=T/B;(s.value!==1920||l.value!==1080)&&(N=l.value/s.value*p/B),g.value={widthScale:O,heightScale:N},y.value&&(y.value.style.transform=`scale(${O}, ${N})`),a(N)},D=Ie.debounce(async()=>{await h(),C()},100),b=()=>{const p=window.MutationObserver;u=new p(D),u.observe(y.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},S=()=>{u&&(u.disconnect(),u.takeRecords(),u=null)};return t.onMounted(()=>{f.value=!1}),t.onUnmounted(()=>{window.removeEventListener("resize",D),S()}),{style:i,container:y,ready:f}}}),Ku="",Wc={id:"container",ref:"container"};function Uc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Wc,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Ei=pe(me(jc,[["render",Uc],["__scopeId","data-v-b496b36e"]])),Oo={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px"},_o=ve(Oo),Gc=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{..._o},setup(e,{expose:o}){Hc();const n=t.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),a=t.ref(),r=()=>{a.value.setAttribute("datav-theme",e.theme)},i=t.inject("usedComponentList",[]);t.watch(()=>e.theme,()=>{r()}),t.onMounted(()=>{r()});const s=t.computed(()=>De(e.contextRequestUrl)),l=t.computed(()=>e.pageMode),d=t.computed(()=>e.theme),c=t.computed(()=>e.width),f=t.computed(()=>e.height),y=t.ref("");t.provide(Me,{contextRequestUrl:s,pageMode:l,theme:d,touchEventId:y,width:c,height:f});const u=t.ref({height:"100%",overflow:e.pageMode==="design"?"":"hidden"});t.provide("setPageHeight",L=>{let V=L;n.value||(V=parseFloat(f.value)*L+"px"),u.value.height=V}),t.provide("isMobile",n.value),t.provide("getContainerMap",()=>e.containerMap),t.provide("getCombinationMap",()=>e.combinationMap);const h=t.ref(),m=new Map;console.log("globalModel",m);const g=L=>m.get(L),C=(L,V)=>{h.value=V,m.set(L,V)},D=()=>{h.value=null},b=L=>{let V=L;if(V){const Z=L.match(/\{(.+?)\}/g);if(Z!=null&&Z.length){let U=Z[0].slice(1,-1).trim();const ae=U.match(/\[(.+?)\]/g);let Y="";ae!=null&&ae.length&&(U=U.replace(ae[0],""),Y=ae[0].slice(1,-1).trim());const ie=t.unref(i).find(re=>re.keyName===U);if(ie){const re=g(ie.id),{type:Q,value:X,RECORD:te}=re||{};ft(Q,Cr)?V=te[Y]:V=X}else V=""}}return V};t.provide(Te,{getGlobalModel:g,setGlobalModel:C,clearInteractiveData:D,getRecordValueByKeyName:b,interactiveData:h});const S=t.ref({}),p=(L,V)=>{S.value[L]=V};t.provide(vt,{loadedData:S,setLoadedData:p});const T=[],E=()=>{T.pop()},B=L=>{T.push(L)},O=new Map,N=L=>O.get(L),A=(L,V)=>{O.set(L,V)};t.provide(pr,{popUseModalIds:E,pushUseModalIds:B,getModalModel:N,setModalModel:A});const k=Jl(),I=new Set,x=(L,V)=>{I.add(L),k.on(L,Z=>typeof V[Z]=="function"&&V[Z]()),t.onBeforeUnmount(()=>{w(L)})},w=L=>{I.delete(L),k.off(L)},v=(L,V)=>{if(L==="PAGE"){const Z=T.length;let U=[];if(Z===0)U=[...I];else{const ae=T[Z-1];U=[...N(ae)]}U.forEach(ae=>{k.emit(ae,V)})}else k.emit(L,V)};t.provide(Vn,{onEvent:x,offEvent:w,emitEvent:v});const R=t.ref(0),F=()=>{R.value=t.unref(R)+1};t.provide(xr,{requestToken:F});const q=new Map,W=new Map,G=({requestFn:L=()=>{},sortNum:V=0,id:Z=""})=>{if(q.has(V)){const U=q.get(V);U==null||U.push(L)}else q.set(V,[L]);W.set(Z,L)},z=L=>new Promise((V,Z)=>{const U=L.map(ae=>ae());Promise.all(U).then(ae=>{V(ae)}).catch(ae=>{Z(ae)})}),P=L=>new Promise(async(V,Z)=>{if(L){if(typeof L=="string"){const U=W.get(L);if(typeof U=="function"){const ae=dt.interceptors.response.use(Y=>(V(Y),Y),Y=>(Z(Y),Promise.reject(Y)));U(),dt.interceptors.response.eject(ae)}}}else{const U=Array.from(q);U.sort((Y,ie)=>ie[0]-Y[0]);const ae=U.length;try{e.pageMode!=="design"&&t.unref(R)>0;for(let Y=0;Y<ae;Y++){const ie=U[Y][1];await z(ie)}}catch(Y){console.error(Y)}finally{q.clear(),V(null)}}});t.provide(Fe,{setRequest:G,touchRequest:P});const M=()=>{k.emit(tn)};t.provide(tn,{emitRefreshPage:M});const _=L=>{k.on(tn,()=>L()),t.onMounted(()=>{k.off(tn)})};return t.onBeforeUnmount(()=>{q==null||q.clear(),W==null||W.clear()}),o({touchRequest:P,getGlobalModel:g,onRefreshPage:_}),{providerConfig:a,configStyle:u}}}),Yu="";function $c(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:t.normalizeStyle(e.configStyle)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)}const Di=pe(me(Gc,[["render",$c],["__scopeId","data-v-14530495"]])),Lo={...ke,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"},No=ve(Lo),Ii=["refreshData","click","valueChange"],Fo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",zo="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==",Mo=t.defineComponent({name:"EcanText",components:{Skeleton:en},props:{...No},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e),r=t.ref({}),i=t.computed(()=>e.variableFontSize||"14px"),s=t.computed(()=>"-"+t.unref(i));t.watch(()=>[e.data,e.dataType],([x,w])=>{w==="static"&&(r.value=x)},{immediate:!0});const{getGlobalModel:l,setGlobalModel:d,getRecordValueByKeyName:c}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{},getRecordValueByKeyName:x=>{}}),{setLoadedData:f}=t.inject(vt,{setLoadedData:(x,w)=>{}}),y=t.computed(()=>{let x="";if(e.gradientShow){const{gradientColor:w,gradientOffset:v,gradientAngle:R,color:F}=e;x+=`background: linear-gradient(${R}, ${F}, ${w||"transparent"} ${v*100}%);-webkit-background-clip: text;color: transparent;`}return x}),u=t.computed(()=>{const x={};if(e.gradientShow){const{gradientColor:w,gradientOffset:v,gradientAngle:R,color:F}=e,q=w||"transparent";x.background=`linear-gradient(${R}, ${F}, ${q} ${v*100}%)`,x["-webkit-background-clip"]="text",x.color="transparent"}return x}),h=t.computed(()=>{var W;if(t.unref(n))return"NaN";const x=t.unref(r),w=e.increaseColor||e.color,v=e.declineColor||e.color;let R=e.text;R=R==null?void 0:R.replace(/\n|\\n/g,"<br/>"),R=R==null?void 0:R.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const F=R.match(/\{(.+?)\}/g)||[];let q="";if(F==null||F.length===0){if(R&&e.format==="percentage"&&!isNaN(+R)){const G=parseFloat(R),z=G*100,P=m(z.toFixed(2));G>=0?R=`<span style="color: ${P||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
100
100
  <div class="percentage-img-box">
101
- <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Lo}"/>
101
+ <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
102
102
  </div>
103
103
  <span style="color: ${P||e.color};${t.unref(y)}">${Math.abs(+z).toFixed(2)}%</span>
104
- </span>`:R=`<span style="color: ${P||C||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
104
+ </span>`:R=`<span style="color: ${P||v||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
105
105
  <div class="percentage-img-box">
106
- <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||C||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${No}"/>
106
+ <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${P||v||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${zo}"/>
107
107
  </div>
108
108
  <span style="color: ${P||e.color};${t.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+z).toFixed(2)}%</span>
109
- </span>`}q=R}for(let $=0;$<F.length;$++){const z=F[$],P=(W=z==null?void 0:z.slice(1,z.length-1))==null?void 0:W.trim();let M=P;const O=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let H=0;H<O.length;H++){const Z=O[H],U=p[Z];U&&(M=P.replace(Z,c(String(U))||U))}if(/\(.*\)/g.test(M)){const H=vn(M);H!=null&&(M=H)}let L=M;if(L===P&&(L=e.variableDefaultValue),L!=null){const H=e.format;if(H==="percentage")if(L=+L,isNaN(L))R=R.replace(z,`<span style="color:${m("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">0%</span>`);else if(L>=0){L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
109
+ </span>`}q=R}for(let G=0;G<F.length;G++){const z=F[G],P=(W=z==null?void 0:z.slice(1,z.length-1))==null?void 0:W.trim();let M=P;const _=P.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let V=0;V<_.length;V++){const Z=_[V],U=x[Z];U&&(M=P.replace(Z,c(String(U))||U))}if(/\(.*\)/g.test(M)){const V=Cn(M);V!=null&&(M=V)}let L=M;if(L===P&&(L=e.variableDefaultValue),L!=null){const V=e.format;if(V==="percentage")if(L=+L,isNaN(L))R=R.replace(z,`<span style="color:${m("0.00")||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">0%</span>`);else if(L>=0){L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||w||"#ED6643"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
110
110
  <div class="percentage-img-box">
111
- <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Lo}"/>
111
+ <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||w||"#ED6643"} ${t.unref(i)} 0px)`};" src="${Fo}"/>
112
112
  </div>
113
113
  <span style="color: ${Z||e.color};${t.unref(y)}">${Math.abs(+L).toFixed(2)}%</span>
114
- </span>`)}else{L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||C||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
114
+ </span>`)}else{L=L*100;const Z=m(L.toFixed(2));R=R.replace(z,`<span style="color: ${Z||v||"#6ACB97"};font-size:${t.unref(i)};display: inline-block;${t.unref(y)}">
115
115
  <div class="percentage-img-box">
116
- <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||C||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${No}"/>
116
+ <img style="width: ${t.unref(i)};filter: ${`drop-shadow(${Z||v||"#6ACB97"} ${t.unref(i)} 0px)`};" src="${zo}"/>
117
117
  </div>
118
118
  <span style="color: ${Z||e.color};${t.unref(y)}">${e.minusSignShow?"-":""}${Math.abs(+L).toFixed(2)}%</span>
119
- </span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Do(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):H==="thousands"?(L=+L,isNaN(L)||(L=_c(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(R)};${t.unref(y)}">${R}</span>`),e.unitShow&&e.unitText){const{unitTop:$,unitLeft:z}=e;let P="position:relative;";$&&(P+=`top:${$};`),z&&(P+=`margin-left:${z};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${t.unref(y)}'>${e.unitText}</span>`}return q});function m(p){let w="",C=!1;const{targetValue:R,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":p!==R&&(C=!0);break;case"greater":p<=R&&(C=!0);break;case"greater_equal":p<R&&(C=!0);break;case"less":p>=R&&(C=!0);break;case"less_equal":p>R&&(C=!0);break}C&&(w=q)}return w}const{pageMode:g}=t.inject(Pe,{pageMode:"normal"}),S=He(e),E=t.ref(!1),b=async()=>{var p;try{E.value=!0;const w=await S();r.value=((p=w==null?void 0:w.data)==null?void 0:p.data)||{}}catch(w){console.error(w)}finally{E.value=!1}},v=(p={})=>{r.value=p},x=p=>{const w=e.id,C=l(w);d(w,{...C,value:p||"",RECORD:p||""})},k=()=>{x("")},B=et(e),I=async()=>{var p,w;try{E.value=!0;const C=await B(),{data:R}=(C==null?void 0:C.data)||{};if(R){n.value=!1;const{columns:F=[],rows:q=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{},{graphicConfig:W}=e;let $={};if(F.length>0)if((w=W==null?void 0:W.dimensionList)!=null&&w.length){const z=F[0];z&&(q!=null&&q.length)&&($={value:q[0][z]})}else{const z=F.find(P=>!!P);z&&($={value:isNaN(q[z])?0:q[z]||0})}x($==null?void 0:$.value),v($)}else n.value=!0,x("NaN"),v({value:"NaN"})}catch(C){console.error(C)}finally{E.value=!1,f(e.id,!0)}},_=()=>{switch(e.dataType){case"indicator":I();break;case"request":b();break}},{setRequest:N}=t.inject(ze,{setRequest:({id:p,sortNum:w,requestFn:C})=>{}});typeof N=="function"&&N({id:e.id,requestFn:_,sortNum:e.requestSort}),Oe(e,{refreshData:_,resetRecord:k}),o({refreshData:_});const A=Be(e),T=A("click",()=>{const p=document.getElementsByClassName(`ecan-text_${e.id}`);if(p!=null&&p.length&&x(p[0].innerText),setTimeout(()=>{x("")},0),!e.linkPage&&!e.href)return;const w=e.linkPage||"",C=Ci(t.unref(g),w),R=e.href;let F=R||C;F=Ee(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:R},"*"))}),D=A("valueChange",()=>{});return t.watch(()=>h.value,(p,w)=>{p!==w&&D()}),{style:a,myText:h,loading:E,click:T,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ti=()=>{t.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},Bi=Fo.setup;Fo.setup=Bi?(e,o)=>(Ti(),Bi(e,o)):Ti;const Vu="",Hc=["innerHTML"];function Vc(e,o,n,a,r,i){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,Hc))}const Ei=xe(me(Fo,[["render",Vc],["__scopeId","data-v-fc956f5c"]])),jc=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Wu="",Wc={class:"red"};function Uc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Wc,t.toDisplayString(e.text),1)}const Di=xe(me(jc,[["render",Uc],["__scopeId","data-v-4dd9c03e"]])),zo={...we,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Mo=Se(zo),Ii=["timeChange"],Gc=t.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),n=()=>{const{format:c,operate:f}=e;let y=be();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Be(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Oe(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),Gu="";function $c(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Ri=xe(me(Gc,[["render",$c],["__scopeId","data-v-b628fca2"]])),Po={...we,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}"},qo=Se(Po),Oi=["refreshData","click","resetRecord"],Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",Yc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",Qc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",Jc=t.defineComponent({name:"EcanList",components:{Skeleton:sn,ATooltip:se.Tooltip,MarqueeScroll:ur},props:{...qo},setup(e,{expose:o}){const n=t.ref(),a=Ce(e,["backgroundColor"]),r=(p,w)=>{const{format:C,customFormatter:R}=w;if(C==null||C==="")return p;const F={money:Do,percentage:bn,contrast:bn,custom:Si};return F[C]?C==="custom"?F[C](p,R)||"":F[C](p)||"":""},i=(p,w)=>{const C=parseFloat(p+"");if(w!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},s=He(e),l=t.ref(!1),d=async()=>{var p;if(e.dataType==="request")try{l.value=!0;const w=await s();n.value=((p=w==null?void 0:w.data)==null?void 0:p.data.rows)||[]}catch(w){console.error(w)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:p,isUseSeq:w}=e;return w?[t.unref(c),...p]:p}),y=et(e),u=async()=>{var p;try{l.value=!0;const w=await y(),{columns:C=[],rows:R=[]}=((p=w==null?void 0:w.data)==null?void 0:p.data)??{};e.isUseSeq&&C.unshift(e.seqName),f.value.forEach((F,q)=>{(!e.isUseSeq||q!==0)&&(F.title=C[q],F.key=C[q])}),n.value=R}catch(w){console.error(w)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Be(e),{getGlobalModel:g,setGlobalModel:S}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}}),E=p=>{m("click",()=>{const w=g(e.id);S(e.id,{...w,type:e.type,RECORD:p})})()};Oe(e,{refreshData:h,resetRecord:()=>{const p=e.id,w=g(p);S(p,{...w,type:e.type,RECORD:""})}});const{setRequest:v}=t.inject(ze,{setRequest:({id:p,sortNum:w,requestFn:C})=>{}});typeof v=="function"&&v({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=p=>({flex:p.width?"none":"1",width:p.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:p.align||"left",backgroundColor:p.cellColor}),k=(p,w)=>{let C=0;const R=t.unref(n).map(q=>q[w]),F=Math.max(...R);return F&&(C=p[w]/F*100),C},B=p=>{const{progressColor:w="#1890ff",progressGradientColor:C=""}=p;return C?{background:`linear-gradient(to right, ${w} 0%, ${C} 100%)`}:{backgroundColor:w||"#1890ff"}},I=t.computed(()=>{const p=parseFloat(e.seqFontSize)+5;return{width:p+10,height:p}}),{pageMode:_}=t.inject(Pe,{pageMode:"normal"}),N=t.computed(()=>t.unref(_)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:f,click:E,getColumnStyle:x,getPercentage:k,getBackgroundColor:B,isShowSeqIcon:p=>{const{seqIconConfig:w}=e;let C=w.find(R=>R.key===p+1);return C||(C=w.find(R=>R.key==="other")),!!(C!=null&&C.icon)},getSeqIconData:(p,w)=>{const{seqIconConfig:C}=e;let R=C.find(F=>F.key===p+1);return R||(R=C.find(F=>F.key==="other")),w===1?R!=null&&R.icon?yt(R.icon):"":w===2?(R==null?void 0:R.color)||"#fff":""},seqIcon4:Kc,seqIcon5:Zc,seqIcon6:Yc,seqIcon7:Qc,iconSize:I,isScroll:N,formatSeq:p=>{const{seqIndexFormatter:w}=e,C=p+1;return w?Ee(w,{textData:{index:C}},{useNewline:!1,useSpace:!0}):C}}}}),Ku="",Zu="",Xc=e=>(t.pushScopeId("data-v-29cacc3c"),e=e(),t.popScopeId(),e),ed={key:0,class:"title"},td={key:0,class:"ranking"},nd={key:1,class:"ecan-list-content"},od=["onClick"],ad={key:0,class:"ranking"},rd=Xc(()=>t.createElementVNode("div",{class:"icon"},null,-1)),id={class:"sort"},ld=["src"],sd={key:1},cd=["src","width","height"],dd=["src","width","height"],fd=["src","width","height"],ud=["src","width","height"],hd={key:1},gd={key:2,class:"empty"};function md(e,o,n,a,r,i){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",ed,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",td)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||y,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",nd,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",ad,[rd,t.createElementVNode("div",id," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,ld)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",sd,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,cd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,dd)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,fd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ud)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",hd,t.toDisplayString(e.formatSeq(f)),1))],64)):y.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,od))),128))]),_:1},8,["visible","step"])])):(t.openBlock(),t.createElementBlock("div",gd," 暂无数据 "))]),_:1},8,["loading"])],4)}const _i=xe(me(Jc,[["render",md],["__scopeId","data-v-29cacc3c"]])),Ho={...we,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Vo=Se(Ho),Li=["refreshData","click"],yd=t.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:sn},props:{...Vo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),r=Ce(e),i=t.computed(()=>{const x=e.width;return parseFloat(x)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const x=t.unref(s),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const B=e.text.match(/\{.+\}/g)||[];let I;const _=new Set(Object.keys(x));for(let N=0;N<B.length;N++){const A=B[N],T=A.slice(1,A.length-1);if(_.has(T)){I=x[T];break}}return typeof I=="number"?I=I*100:typeof I=="string"&&!isNaN(+I)?I=+I*100:isNaN(k)?I=0:I=k*100,e.decimalFormat&&(I=+I.toFixed(2)),I}),d=t.computed(()=>{var _;let x=e.text;if(x==="")return t.unref(l);const k=e.variableDefaultValue,B=t.unref(s),I=x.match(/\{.+\}/g)||[];for(let N=0;N<I.length;N++){const A=I[N];let T=A.slice(1,A.length-1);const D=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,p=A.match(D);for(let C=0;C<(p==null?void 0:p.length);C++){const R=(_=p[C])==null?void 0:_.trim();B[R]!=null&&(T=T.replace(R,B[R]))}let w=T;try{/\(.*\)/g.test(T)&&(w=vn(T))}catch(C){console.error(C)}typeof+w=="number"&&!isNaN(+w)?(w=+w*100,e.decimalFormat&&(w=w.toFixed(2))):w=k,x=x.replace(A,w+"")}return t.unref(n)?"NaN":x}),c=He(e),f=t.ref(!1),y=async()=>{var x;if(e.dataType==="request")try{f.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{f.value=!1}},u=(x={})=>{s.value=x},h=et(e),m=async()=>{var x;try{f.value=!0;const k=await h(),{data:B}=(k==null?void 0:k.data)||{};if(B){n.value=!1;const{columns:I=[],rows:_=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let N={};if(I.length>0){const A=I.find(T=>!!T);A&&(N={percent:_[A]})}u(N)}else n.value=!0,u({percent:"NaN"})}catch(k){console.error(k)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Oe(e,{refreshData:g}),o({refreshData:g});const E=Be(e)("click",()=>{}),{setRequest:b}=t.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:B})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const v=t.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:B,strokeColor:I}=e;let _=I;return x&&k&&(_={"0%":I,[`${B*100}%`]:k}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:E,customStrokeColor:v}}}),Qu="";function xd(e,o,n,a,r,i){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ni=xe(me(yd,[["render",xd],["__scopeId","data-v-cf942b5f"]])),jo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Wo=Se(jo),Fi=["inputChange","inputBlur"],pd=t.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Wo},setup(e){const o=Ce(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Te,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:n})},l=Be(e),d=Ne.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),Xu="";function bd(e,o,n,a,r,i){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const zi=xe(me(pd,[["render",bd]])),Uo={...we,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px"},Go=Se(Uo),Mi=["dateChange"],$o=t.defineComponent({name:"EcanDatePicker",props:{...Go},components:{ADatePicker:se.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,m])=>{let g=null;if(u?g=be(Ee(u)):h&&(g=be()),m&&g){const{type:S,value:E,mode:b}=m;switch(S){case"add":g=g.add(E,b);break;case"minus":g=g.subtract(E,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Te,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Be(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Oe(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),y=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:qa,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),Pi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},qi=$o.setup;$o.setup=qi?(e,o)=>(Pi(),qi(e,o)):Pi;const t1="",n1="",vd=["id"];function Sd(e,o,n,a,r,i){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,vd)}const Hi=xe(me($o,[["render",Sd],["__scopeId","data-v-d4ec0d66"]])),Ko={...we,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},Zo=Se(Ko),Vi=["dateChange"];var ji={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(de,function(){var n="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(ji);var Cd=ji.exports;const wd=pr(Cd);be.extend(wd);const Yo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Zo},setup(e){const o=Ce(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([v,x,k,B,I,_])=>{let N=null,A=null;if(k&&(N=be().subtract(B,I),A=be()),v&&(N=be(Ee(v))),x&&(A=be(Ee(x))),_){const{type:T,value:D,mode:p}=_;switch(T){case"add":N=N&&N.add(D,p),A=A&&A.add(D,p);break;case"minus":N=N&&N.subtract(D,p),A=A&&A.subtract(D,p)}}a.value=[N,A]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(v,x,k)=>{Array.isArray(v)?(r=v[0],i=v[1],s=k.range):(r=null,i=null)};window.dayjs=be;const d=v=>{let x=!1,{limitStartTime:k,limitEndTime:B}=e;const I={startTime:`${r||""}`,endTime:`${i||""}`};if(k=Ee(k,{codeData:I}),B=Ee(B,{codeData:I}),k&&B?x=!(be(k)<v&&v<be(B)):k?x=be(k)>v:B&&(x=be(B)<v),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const N=_.startOf("year"),A=_.endOf("year");x=!(N<=v&&v<A)}}if(!x){const{value:_=0,mode:N="year"}=e.limitInterval||{};_&&(s==="start"?x=r.add(_,N)<v:s==="end"&&(x=i.subtract(_,N)>v))}return x},{getGlobalModel:c,setGlobalModel:f}=t.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Be(e);let m=!1;const g=h("dateChange",()=>{}),S=v=>{const x=t.unref(a),k=x&&x[0]&&x[1];v===!1&&m===!0&&k&&(g(),m=!1),v||(s="")},E=()=>{m=!0};return Oe(e,{dateChange:()=>{const{associated:v}=e;if(v){const x=c(v)||{};if(x){const{value:k}=x;if(k)switch(t.unref(k)){case"month":a.value=[be().startOf("month"),be().endOf("month")];break;case"quarter":a.value=[be().startOf("quarter"),be().endOf("quarter")];break;case"year":a.value=[be().startOf("year"),be().endOf("year")];break}}}g()}}),{style:o,getPopupContainer:n,locale:qa,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:E}}}),Wi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Ui=Yo.setup;Yo.setup=Ui?(e,o)=>(Wi(),Ui(e,o)):Wi;const a1="",r1="";function Ad(e,o,n,a,r,i){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Gi=xe(me(Yo,[["render",Ad],["__scopeId","data-v-c9c68612"]])),Qo={...we,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Jo=Se(Qo),$i=["click"],kd=t.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...Jo},setup(e){const o=Ce(e),a=Be(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=t.computed(()=>Ee(e.text)),s=t.computed(()=>Ee(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),l1="";function Td(e,o,n,a,r,i){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Ki=xe(me(kd,[["render",Td]])),Xo={...we,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},ea=Se(Xo),Zi=["checkboxChange"],Bd=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...ea},setup(e,{expose:o}){const n=Ce(e),a=t.ref([]),r=t.ref([]),i=S=>{const E=e.value;let b=[];S.forEach(v=>{v.checked&&b.push(v.value)}),typeof E=="string"&&E!==""?b=b.concat(E.split(",")):Array.isArray(E)&&(b=b.concat(E)),a.value=S,r.value=b};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var b,v;if(e.dataType!=="request")return;const S=await s(),E=((v=(b=S==null?void 0:S.data)==null?void 0:b.data)==null?void 0:v.rows)||[];i(E)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,E)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),u=et(e),h=async()=>{var S;try{const E=await u(),{data:b}=(E==null?void 0:E.data)||{};if(b){const x=(((S=E==null?void 0:E.data)==null?void 0:S.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(E){console.error(E)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=t.inject(ze,{setRequest:({id:S,sortNum:E,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),c1="";function Ed(e,o,n,a,r,i){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Yi=xe(me(Bd,[["render",Ed]])),ta={...we,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},na=Se(ta),Qi=["selectChange","refreshData"],Dd=t.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...na},setup(e,{expose:o}){const n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var C;const{mode:w}=e;return(C=t.unref(i))!=null&&C.length?s.value:w==="multiple"||w==="tags"||w==="combobox"?[]:""},set:w=>{s.value=w}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,C)=>{},getRecordValueByKeyName:w=>{}});t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:w,selectFirstOption:C,value:R}=e,F=f(R);w==="multiple"||w==="tags"||w==="combobox"?F?s.value=F.split(","):C&&(s.value=[t.unref(i)[0]]):F?s.value=F:C&&(s.value=t.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(w,C)=>{const R=y.label,F=y.value;let q;const W=C[R],$=C[F];return W!=null?q=W:$!=null&&(q=$),(q==null?void 0:q.toLowerCase().indexOf(w==null?void 0:w.toLowerCase()))>=0},h=w=>{const{label:C,value:R,options:F}=e.dataFieldNames;if(F&&Array.isArray(w))if(w.some(q=>F in q)){const q={},W=[];w.forEach($=>{q[$[F]]||(q[$[F]]=[]),q[$[F]].push({[C]:$[C],[R]:$[R]})});for(const $ in q)W.push({[C]:$,[F]:q[$]});return W}else return w;else if(!F)return w},m=t.ref(!1),g=async()=>{var w,C;if(e.dataType==="request"){m.value=!0;try{const R=await r();if(i.value=h(((C=(w=R==null?void 0:R.data)==null?void 0:w.data)==null?void 0:C.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(y.options){const q=F[y.options];q&&q.length&&(F=q[0])}s.value=F[y.value]}}catch(R){console.error(R)}finally{m.value=!1}}},{setLoadedData:S,loadedData:E}=t.inject(vt,{setLoadedData:(w,C)=>{},loadedData:{}}),b=t.computed(()=>{let w=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const C=y.label,R=y.value;if(e.mode==="multiple")w=t.unref(i).filter(F=>t.unref(s).includes(F[R])).map(F=>F[C]);else{const F=t.unref(i).find(q=>t.unref(s)===q[R]);F&&(w=F[C])}}return w}),v=t.ref([]),x=t.computed(()=>{const w={};if(e.mode!=="multiple"){const C=t.unref(v).find(R=>R.value===t.unref(s));C&&(w.itemCodes=C.item_codes)}return w});c(e.id,{type:e.type,value:b,...t.unref(x)});const B=Be(e)("selectChange",()=>{const w=e.id,C=d(w);c(w,{...C,...t.unref(x),RECORD:b})}),I=(w=[])=>{if(i.value=h(w),e.selectFirstOption){let C=t.unref(i)[0];if(y.options){const R=C[y.options];R&&R.length&&(C=R[0])}s.value=C[y.value]}},_=et(e),N=async()=>{var w;try{m.value=!0;const C=await _(),{data:R}=(C==null?void 0:C.data)||{},F=y.label,q=y.value;if(R){const W=((w=C==null?void 0:C.data)==null?void 0:w.data)??[];v.value=W;const $=W.map(M=>({[F]:M.label,[q]:M.value})),{id:z}=e,P=d(z);c(z,{...P,...t.unref(x)}),S(z,!0),I($)}else I([])}catch(C){console.error(C)}finally{m.value=!1}},A=t.computed(()=>{var w,C;return(C=(w=e==null?void 0:e.graphicConfig)==null?void 0:w.controlList)==null?void 0:C.find(R=>R.conditionKey==="parentCode")}),T=t.ref(!1);t.watch(E,w=>{!t.unref(T)&&t.unref(A)&&w[t.unref(A).id]&&(T.value=!0,D())},{deep:!0});const D=()=>{switch(e.dataType){case"indicator":{if(t.unref(A)){if(t.unref(E)[t.unref(A).id]){const{mode:w}=e;w==="multiple"||w==="tags"||w==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":g();break}};Oe(e,{selectChange:B,refreshData:D});const{setRequest:p}=t.inject(ze,{setRequest:({id:w,sortNum:C,requestFn:R})=>{}});return typeof p=="function"&&p({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{style:n,getPopupContainer:a,myValue:s,selectChange:B,options:i,filterOption:u,loading:m,resultValue:l}}}),f1="",u1="";function Id(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Ji=xe(me(Dd,[["render",Id],["__scopeId","data-v-e5517626"]])),oa={...we,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},aa=Se(oa),Xi=["selectChange","refreshData"],Rd={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...aa},setup(e){const o=Ce(e),n=t.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,S=g.label,E=g.value;let b;const v=m[S],x=m[E];return v!=null?b=v:x!=null&&(b=x),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[t.unref(n)[0]]):m?r.value=m:g&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=He(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();n.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const S=t.unref(n)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});Oe(e,{selectChange:y,refreshData:l});const{setRequest:u}=t.inject(ze,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},g1="",m1="";function Od(e,o,n,a,r,i){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const el=xe(me(Rd,[["render",Od],["__scopeId","data-v-37236421"]])),ra={...we,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ia=Se(ra),tl=["checkboxChange","click"],_d=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...ia},setup(e,{expose:o}){const n=Ce(e),a=t.ref([]),r=t.ref(""),i=v=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=v,r.value=k[0]||""};t.watch(()=>[e.data,e.value],([v])=>{i(v)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var k,B;if(e.dataType!=="request")return;const v=await s(),x=((B=(k=v==null?void 0:v.data)==null?void 0:k.data)==null?void 0:B.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,x)=>{}});c(e.id,{type:e.type,value:r});const f=Be(e),y=f("checkboxChange",()=>{const v=d(e.id);c(e.id,{...v,RECORD:r})}),u=v=>{r.value=v,f("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};t.watch(r,()=>{y()});const h=et(e),m=async()=>{var v;try{const x=await h(),{data:k}=(x==null?void 0:x.data)||{};if(k){const I=(((v=x==null?void 0:x.data)==null?void 0:v.data)??[]).map(_=>({label:_.label,value:_.value}));i(I)}else i([])}catch(x){console.error(x)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:S}=t.inject(ze,{setRequest:({id:v,sortNum:x,requestFn:k})=>{}});typeof S=="function"&&S({id:e.id,requestFn:g,sortNum:e.requestSort});const E=v=>{r.value=v.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:u,useImagePath:yt,tabChange:E}}}),x1="",p1="",Ld=["onClick"];function Nd(e,o,n,a,r,i){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,Ld))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const nl=xe(me(_d,[["render",Nd],["__scopeId","data-v-baa84768"]])),la={...we,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},sa=Se(la),ol=["click","refreshData","resetRecord"],$t=async e=>{var d;const o=await dt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},ca={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[]},da=Se(ca),al=["showModal","hideModal"];function rl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Ne.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!Gt(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=n.find(m=>m.id===u)),h&&(y.push(h),["ecanBorder","ecanTabs"].includes(h.type)&&y.push(...Sn(h.id,o,n)))}for(const u of y)Gt(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Hd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function il(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Ne.cloneDeep([...e.componentList,...zd(a,n)]);if(Fd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){Gt(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const S=r.find(E=>E.id===g);S&&(S.parentId=u,S.sourceLeft=S.left,S.sourceTop=S.top,S.left=parseFloat(S.left)-parseFloat(h.sourceLeft||h.left)+"px",S.top=parseFloat(S.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!Gt(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=Md(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!Gt(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&["ecanBorder","ecanTabs"].includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),S=h/g;u.scale=S,u.top=parseFloat(u.top)*S-parseFloat(u.height)*(1-S)/2+"px",u.left=parseFloat(u.left)*S-parseFloat(u.width)*(1-S)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return Pd(r)}return r}function Fd(e,o){const n=Ne.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=n[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&["ecanBorder","ecanTabs"].includes(d.type)){const c=Sn(d.id,n,o);for(const f of c)e[r.id][s].push(f.id),["ecanBorder","ecanTabs"].includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function zd(e,o){const n=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),["ecanBorder","ecanTabs"].includes(d.type)&&n.push(...Sn(d.id,e,o)))}}return n}function Sn(e,o,n){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=n.find(d=>d.id===s);l&&(a.push(l),["ecanBorder","ecanTabs"].includes(l.type)&&a.push(...Sn(l.id,o,n)))}return a}function Md(e,o,n){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=qd(d);if(c){i.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function Pd(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Ne.cloneDeep(n).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function qd(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],n=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&n&&a&&r?{left:n.left,top:o.top,width:r.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function Hd(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}const Vd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function jd(e,o,n,a,r,i){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const Wd=xe(me(Vd,[["render",jd]])),Ud=t.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:ns,Render:Wd},props:{...da},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),r=t.inject("getContainerMap",()=>{}),i=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=t.inject(Te,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=t.computed(()=>{const Q=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Q]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=t.ref("80%"),g=t.ref(0),S=t.ref(),E=t.ref(0),b=t.ref({}),v=Ce(e),x=t.ref({}),k=t.ref(!1),B=t.ref();let I;const _=()=>{S.value=parseFloat(f)/parseFloat(u);const Q=parseFloat(y)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;g.value=le*t.unref(S),E.value=re*Q,m.value=`${t.unref(S)*100}%`,b.value={width:`${t.unref(g)}px`,height:`${t.unref(E)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...t.unref(v),backgroundImage:yt(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${t.unref(g)/parseFloat(f)},${t.unref(E)/parseFloat(y)})`,width:f,height:y}},N=Ne.debounce(()=>{_()},100),A=()=>{const Q=window.MutationObserver;I=new Q(N),I.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},T=()=>{I&&(I.disconnect(),I.takeRecords(),I=null)},D=t.ref(!1),{touchRequest:p}=t.inject(ze,{touchRequest:()=>{}}),w=t.ref(""),C=()=>{var re;const{title:Q}=e,le=(re=t.unref(l))==null?void 0:re.RECORD;return le?Ee(Q,{textData:le},{useNewline:!1,useSpace:!1}):Q},R=Be(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),w.value=C(),D.value=!0},q=R("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),D.value=!1}),W=()=>{q()},$=()=>{q(),s()},{setModalModel:z,pushUseModalIds:P,popUseModalIds:M}=t.inject(gr,{pushUseModalIds:Q=>{},popUseModalIds:()=>{},setModalModel:(Q,le)=>{}}),O=t.computed(()=>{let Q=e.componentList;const le=Ne.cloneDeep(e.componentList),re=r(),Y=i(),X={containerMap:re,combinationMap:Y};return a&&(Q=il({...X,componentList:le,sourceList:e.allComponentList})),Q=rl({...X,componentList:Q,sourceList:e.allComponentList}),Q}),L=()=>{const Q=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(Y=>Y.id),z(Q,[...new Set(le)]))};t.watch(()=>D.value,async Q=>{Q?(k.value=!1,P(e.id),L(),await t.nextTick(()=>{_(),window.addEventListener("resize",N),A(),k.value=!0}),p()):(M(),window.removeEventListener("resize",N),T())});const H=t.computed(()=>t.unref(S)>=1),Z=t.computed(()=>e.fullModal),U=t.computed(()=>{let Q="ecan-modal";return t.unref(H)&&(Q+=" ecan-full-width-modal"),t.unref(Z)&&(Q+=" ecan-full-modal"),Q});return Oe(e,{showModal:F,hideModal:q}),{modalRef:B,containStyle:b,contentStyle:x,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Z,style:v,visible:D,showModal:F,onOk:W,onCancel:$,isFullWidth:H,wrapClassName:U,ready:k,usedComponentList:O,isMobile:a,readyIds:n,hasOwn:Gt,onComponentReady:Q=>{n.value.push(Q)},formatTitle:w}}}),S1="",C1="";function Gd(e,o,n,a,r,i){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=xe(me(Ud,[["render",Gd],["__scopeId","data-v-613a7718"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,ve.TitleComponent,ve.ToolboxComponent,ve.TooltipComponent,ve.LegendComponent]);const $d=t.defineComponent({name:"EcanPie",props:{...sa},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Ce(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:T=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const D=e.isUseLabelColors,p=e.colors;T=T.map((w,C)=>({label:D?{color:p[C]}:{},...w}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var D;n.value=!0,(D=i.value)==null||D.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){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:D=>{const{marker:p,seriesName:w,name:C,value:R,percent:F,data:q}=D||{};return Ee(e.tooltipFormatter,{textData:{marker:p,name:C,value:R,percent:F,a:w,b:C,c:R,d:F,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:T,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:n.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:Oc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const T=n.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:T+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:T}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:D=>{const{data:p}=r.value[0]||{};let w=0,C,R="0%";if(p)for(const F of p)F.name===D&&(C=+F.value),w+=+F.value;return w&&(R=`${(C/w*100).toFixed(2)}%`),nn(e.legendFormatter,{name:D,value:C,percent:R})}}},c=()=>{n.value=!1},{getGlobalModel:f,setGlobalModel:y}=t.inject(Te,{getGlobalModel:T=>{},setGlobalModel:(T,D)=>{}}),{pageMode:u}=t.inject(Pe,{pageMode:"normal"}),h=(T=[],D)=>{const{dataset:p}=Ft(T,D);r.value=p},m=(T=[],D)=>{const p=Ft(T,D);r.value=p.dataset};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(u)==="design")&&h(T)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const g=t.ref(!1),S=He(e),E=async()=>{var T,D;if(e.dataType==="request")try{g.value=!0;const p=await S();h((D=(T=p==null?void 0:p.data)==null?void 0:T.data)==null?void 0:D.rows,e.valueTypeDataFieldNames)}catch(p){console.error(p)}finally{g.value=!1}},b=Be(e);y(e.id,{type:e.type,RECORD:""});const v=b("click",T=>{const D=f(e.id);y(e.id,{...D,type:e.type,RECORD:T==null?void 0:T.data})}),x=et(e),k=async()=>{var T;try{g.value=!0;const D=await x(),{data:p}=(D==null?void 0:D.data)||{};if(p){const{columns:w=[],rows:C=[]}=((T=D==null?void 0:D.data)==null?void 0:T.data)??{};let R=[];if(w.length>0){const F=w[0],q=w[1];R=C.filter(W=>!!W).map(W=>({name:W[F],value:isNaN(W[q])?0:W[q]||0}))}m(R)}}catch(D){console.error(D)}finally{g.value=!1}},{loadedData:B}=t.inject(vt,{loadedData:{}}),I=t.ref(!1);t.watch(B,T=>{if(e.dataType==="indicator"){const D=tn(e.graphicConfig);D!=null&&D.length&&(!t.unref(I)&&it(e.graphicConfig,T)?(I.value=!0,_()):it(e.graphicConfig,T)||(I.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(B))&&k();break;case"request":E();break}};Oe(e,{resetRecord:()=>{const T=e.id,D=f(T);y(T,{...D,RECORD:""})},refreshData:_,click:v}),o({refreshData:_});const{setRequest:A}=t.inject(ze,{setRequest:T=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:v,onClose:c,loading:g,ecanModal:i}}}),A1="";function Kd(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ll=xe(me($d,[["render",Kd]])),fa={...we,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},ua=Se(fa),sl=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent,ve.MarkLineComponent]);const Zd=t.defineComponent({name:"EcanLine",props:{...ua},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ce(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?Ue:12),c=t.ref({});let f;const y=t.ref([]),u=t.computed(()=>{const C=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var F;a.value=!0,(F=l.value)==null||F.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:F=>{var z;const q=F.length;let W="",$=e.tooltipFormatter;f=(z=F[0])==null?void 0:z.data,$===""&&($="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:O,name:L,value:H,data:Z}=F[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${lt(C,U)}<br/>`}W+=Ee($,{textData:{marker:M,name:L,value:H,a:O,b:L,c:H||0,...Z}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(F=>{let q={};return F&&typeof F=="object"?q={...F}:q={value:F},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),lt(C,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(F){return lt(R,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>nn(e.legendFormatter,{name:F})},series:t.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:C=>{},setGlobalModel:(C,R)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),E=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(C=[],R=!1)=>{let F;if(e.dataFieldConfigType==="key"){const z=R?e.keyTypeDataFieldNames:null;F=At(C,z)}else if(e.dataFieldConfigType==="value"){const z=R?e.valueTypeDataFieldNames:null;F=Ft(C,z)}s.value=F.dimensions,y.value=F.dataset;const q=F.dataset,W=[],$=q.length;for(let z=0;z<$;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...t.unref(E)})}i.value=W},v=(C=[],R,F=!1)=>{const W=At(C,F?R:null,!0);s.value=W.dimensions,y.value=W.dataset;const $=W.dataset,z=[],P=$.length;for(let M=0;M<P;M++){const O={};e.shadowColor&&(O.shadowColor=e.shadowColor,O.shadowBlur=e.shadowBlur,O.shadowOffsetY=e.shadowOffsetY,O.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...$[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...O},...t.unref(E)})}i.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([C])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(C)},{immediate:!0,deep:!0});const x=t.ref(!1),k=He(e),B=async()=>{var C,R;if(e.dataType==="request")try{x.value=!0;const F=await k();b((R=(C=F==null?void 0:F.data)==null?void 0:C.data)==null?void 0:R.rows,!0)}catch(F){console.error(F)}finally{x.value=!1}},I=Be(e);g(e.id,{type:e.type,RECORD:""});const _=I("click",C=>{const R=m(e.id);g(e.id,{...R,type:e.type,RECORD:e.tooltipShow?f:C.data})}),N=C=>{n.value.chart.containPixel("grid",[C.offsetX,C.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=_;const A=et(e),T=async()=>{var C;try{x.value=!0;const R=await A(),{columns:F=[],rows:q=[]}=((C=R==null?void 0:R.data)==null?void 0:C.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map($=>({label:$,value:$}))}),v(q,W,!0)}catch(R){console.error(R)}finally{x.value=!1}},D=()=>{switch(e.dataType){case"indicator":T();break;case"request":B();break}};Oe(e,{refreshData:D,resetRecord:()=>{const C=e.id,R=m(C);g(C,{...R,RECORD:""})},click:_});const{setRequest:w}=t.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:D,sortNum:e.requestSort}),o({refreshData:D}),{option:u,style:r,click:_,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:n}}}),T1="";function Yd(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const cl=xe(me(Zd,[["render",Yd]])),ha={...we,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},ga=Se(ha),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const Qd=t.defineComponent({name:"EcanBar",props:{...ga},components:{Spin:Nt,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=Ce(e),d=t.ref([]),c=t.ref(),f=t.ref({});let y;const u=t.computed(()=>a.value?Ue:12),h=t.computed(()=>{const{gradientShow:M,gradientColors:O,gradientOffset:L,barBorderRadius:H}=e,Z=t.unref(d),U=Z.length,ae=[];for(let Q=0;Q<U;Q++){const le={...Z[Q],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let Y="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:te,name:pe,value:Ae,data:De}=re||{};return Y+=Ee(X,{textData:{name:pe,value:Ae,a:te,b:pe,c:Ae||0,...De}},{useNewline:!0,useSpace:!0}),Y}},le.itemStyle={},M&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Q]},{offset:L,color:O[Q]},{offset:1,color:O[Q]}]}}),H){const re=H.split(",");if(re!=null&&re.length){const Y=[];for(const X of re){const te=parseFloat(X);isNaN(te)||Y.push(te)}le.itemStyle.borderRadius=Y}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),m=t.ref([]),g=t.ref(!1),S=t.computed(()=>{const M=e.yAxisLabelFormatter,O=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const L=n.value.chart.getOption(),{xAxis:H}=L||{};H&&H.length&&(s.value=H[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const H=L.length;let Z="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Q=0;Q<H;Q++){const{marker:le,seriesName:re,name:Y,value:X,data:te}=L[Q]||{};if(Q===0){let pe=Y;typeof Y=="string"&&Y[0]==="0"&&!isNaN(+Y)&&(pe=(+Y).toString()),Z+=`${lt(O,pe)}<br/>`}Z+=Ee(U,{textData:{marker:le,name:Y,value:X,a:re,b:Y,c:X||0,...te}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map((L,H)=>({name:L.name,itemStyle:{color:e.colors[H]},icon:e.legendType})),formatter:L=>nn(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(O,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(m):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(L){return lt(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(h)}}),{pageMode:E}=t.inject(Pe,{pageMode:"normal"}),b=()=>{a.value=!1},v=(M=[],O=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const H=O?e.keyTypeDataFieldNames:null;L=At(M,H)}else if(e.dataFieldConfigType==="value"){const H=O?e.valueTypeDataFieldNames:null;L=Ft(M,H)}d.value=L.dataset,m.value=L.dimensions},x=(M=[],O,L=!1)=>{const Z=At(M,L?O:null,!0);d.value=Z.dataset,m.value=Z.dimensions},k=t.computed(()=>t.unref(m).map(M=>{let O={};return M&&typeof M=="object"?O={...M}:O={value:M},O}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||t.unref(E)==="design")&&v(M)},{immediate:!0,deep:!0});const B=He(e),I=async()=>{var M,O;try{g.value=!0;const L=await B();v((O=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:O.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},_=et(e),N=async()=>{var M;try{g.value=!0;const O=await _(),{columns:L=[],rows:H=[]}=((M=O==null?void 0:O.data)==null?void 0:M.data)??{};let Z;L.length>0&&(Z={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),x(H,Z,!0)}catch(O){console.error(O)}finally{g.value=!1}},{loadedData:A}=t.inject(vt,{loadedData:{}}),T=t.ref(!1);t.watch(A,M=>{if(e.dataType==="indicator"){const O=tn(e.graphicConfig);O!=null&&O.length&&(!t.unref(T)&&it(e.graphicConfig,M)?(T.value=!0,D()):it(e.graphicConfig,M)||(T.value=!1))}},{deep:!0});const D=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(A))&&N();break;case"request":I();break}},p=(M,O)=>!!t.unref(s)[O.value].value.includes(M),w=async()=>{r.value=!1;const M=n.value.chart.getOption();for(let O=0;O<7;O++)await C(M,O)},C=(M,O)=>new Promise(L=>{setTimeout(()=>{const{series:H,color:Z,xAxis:U}=M,ae=n.value.chart,{splitArea:Q={}}=U[0]||{};H.forEach((le,re)=>{const Y=le.data;let X="";O%2?X=Z[re]+"a8":X=Z[re],Y[i.value].itemStyle={color:X}}),O%2?(Q.show=!0,Q.areaStyle.color=t.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Q.show=!1,ae.setOption({series:H,xAxis:U}),L()},200)});o({refreshData:D});const R=Be(e),{getGlobalModel:F,setGlobalModel:q}=t.inject(Te,{getGlobalModel:M=>{},setGlobalModel:(M,O)=>{}});q(e.id,{type:e.type,RECORD:""});const W=R("click",M=>{const O=F(e.id);q(e.id,{...O,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:$}=t.inject(ze,{setRequest:M=>{}});typeof $=="function"&&$({id:e.id,requestFn:D,sortNum:e.requestSort});const z=()=>{const M=e.id,O=F(M);q(M,{...O,RECORD:""})},P=M=>{n.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=W,Oe(e,{refreshData:D,click:W,resetRecord:z}),{option:S,style:l,refreshData:D,click:W,loading:g,onClose:b,ecanModal:c,echartRef:n,handleLocationOk:w,onFilterOption:p,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),E1="",D1="",Jd=e=>(t.pushScopeId("data-v-21d7ed90"),e=e(),t.popScopeId(),e),Xd={class:"location-wrap"},ef=Jd(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function tf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Xd,[ef,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=xe(me(Qd,[["render",tf],["__scopeId","data-v-21d7ed90"]])),ma={...we,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},ya=Se(ma),ul=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,ve.ToolboxComponent,ve.TitleComponent,ve.TooltipComponent,ve.LegendComponent,ve.MarkLineComponent]);const nf=t.defineComponent({name:"EcanScatter",props:{...ya},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Ce(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?Ue:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const 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(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;o.value=!0,(I=r.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),lt(k,I)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(I){return lt(B,I)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(I){var p;const{marker:_,seriesName:N}=I,A=((p=I==null?void 0:I.data)==null?void 0:p.record)??{},{name:T,value:D}=A;return Ee(e.tooltipFormatter,{textData:{marker:_,seriesName:N,a:N,b:T,c:D,...A}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize,...t.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:k=>{},setGlobalModel:(k,B)=>{}}),{pageMode:f}=t.inject(Pe,{pageMode:"normal"}),y=(k=[],B)=>{const{name:I="name",value:_="value"}=B||{};a.value=k.map(N=>({value:[N[I],N[_]],record:N}))};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(f)==="design")&&y(k)},{immediate:!0,deep:!0});const u=t.ref(!1),h=He(e),m=async()=>{var k,B;if(e.dataType==="request"){u.value=!0;try{const I=await h();y((B=(k=I==null?void 0:I.data)==null?void 0:k.data)==null?void 0:B.rows,e.dataFieldNames)}catch(I){console.error(I)}finally{u.value=!1}}},g=()=>{o.value=!1},S=Be(e);c(e.id,{type:e.type,RECORD:""});const E=S("click",k=>{const B=e.id,I=d(B);c(B,{...I,type:e.type,RECORD:k==null?void 0:k.data})});Oe(e,{refreshData:()=>{m()},click:E,resetRecord:()=>{const k=e.id,B=d(k);c(k,{...B,RECORD:""})}});const{setRequest:x}=t.inject(ze,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:E,loading:u,onClose:g,ecanModal:r}}}),R1="";function of(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const hl=xe(me(nf,[["render",of]])),xa={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},pa=Se(xa),af=t.defineComponent({name:"EcanCustomGraph",props:{...pa},components:{Echarts:pt},setup(e){const o=Ce(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const r=eval;n.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:n,echarts:Kl}}});function rf(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const gl=xe(me(af,[["render",rf]])),ba={...we,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},va=Se(ba),ml=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,ve.TitleComponent,ve.LegendComponent,ve.DatasetComponent,ve.ToolboxComponent,ve.MarkLineComponent]);const lf=t.defineComponent({name:"EcanComboGraph",props:{...va},components:{Spin:Nt,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=t.ref({});let d;const c=Ce(e),f=t.ref([]),y=t.ref([]),u=t.ref(),h=t.ref([]),m=t.computed(()=>a.value?Ue:12),g=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const O=n.value.chart.getOption(),{xAxis:L}=O||{};L&&L.length&&(s.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var O;a.value=!0,(O=u.value)==null||O.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(h).map((O,L)=>({name:O.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:O=>nn(e.legendFormatter,{name:O})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:O=>{var ae;const L=O.length;let H="",Z=e.tooltipFormatter;d=(ae=O[0])==null?void 0:ae.data,Z===""&&(Z="{marker} {a} {c}");const U=e.seriesTypes;for(let Q=0;Q<L;Q++){const le=U[Q],{tooltipFormatter:re}=le||{},{marker:Y,seriesName:X,name:te,value:pe,data:Ae}=O[Q]||{};if(Q===0){let De=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(De=(+te).toString()),H+=`${lt(e.xAxisLabelFormatter,De)}<br/>`}H+=Ee(re||Z,{textData:{marker:Y,name:te,value:pe,seriesName:X,a:X,b:te,c:pe||0,...Ae}},{useNewline:!0,useSpace:!0}),H+="<br/>"}return H},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(y).map(O=>{let L={};return O&&typeof O=="object"?L={...O}:L={value:O},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(O){return typeof O=="string"&&O[0]==="0"&&!isNaN(+O)&&(O=(+O).toString()),lt(e.xAxisLabelFormatter,O)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:t.unref(k),series:t.unref(f)})),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),E=()=>{a.value=!1},b=(O=[],L=!1)=>{let H;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;H=At(O,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;H=Ft(O,U)}y.value=H.dimensions;const Z=H.dataset;h.value=H.dataset,f.value=x(Z)},v=(O=[],L,H=!1)=>{const U=At(O,H?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=x(ae)};function x(O){const L=[],H=O.length,Z=e.seriesTypes;for(let U=0;U<H;U++){const ae=Z[U],{type:Q,axisIndex:le}=ae||{};let re={type:Q,yAxisIndex:le,...O[U]};if(Q==="line"){const Y={};e.shadowColor&&(Y.shadowColor=e.shadowColor,Y.shadowBlur=e.shadowBlur,Y.shadowOffsetY=e.shadowOffsetY,Y.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Y}}}if(Q==="bar"){const{gradientShow:Y,gradientColors:X,gradientOffset:te}=e,pe={};if(e.barBorderRadius){const Ae=e.barBorderRadius.split(",");if(Ae!=null&&Ae.length){const De=[];for(const $e of Ae){const Me=parseFloat($e);isNaN(Me)||De.push(Me)}pe.borderRadius=De}}Y&&(pe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:te,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:pe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([O])=>{(e.dataType==="static"||t.unref(S)==="design")&&b(O)},{immediate:!0,deep:!0});const k=t.computed(()=>{const O=e.yAxis;return O==null?void 0:O.map((L,H)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:H===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:H===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Z){return lt(L.axisLabelFormatter,Z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:H===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:H===0?"right":"left"}}))}),B=t.ref(!1),I=He(e),_=async()=>{var O,L;if(e.dataType==="request")try{B.value=!0;const H=await I();b((L=(O=H==null?void 0:H.data)==null?void 0:O.data)==null?void 0:L.rows,!0)}catch(H){console.error(H)}finally{B.value=!1}},N=et(e),A=async()=>{var O;try{B.value=!0;const L=await N(),{columns:H=[],rows:Z=[]}=((O=L==null?void 0:L.data)==null?void 0:O.data)??{};let U;H.length>0&&(U={name:H[0],types:H.slice(1).map(ae=>({label:ae,value:ae}))}),v(Z,U,!0)}catch(L){console.error(L)}finally{B.value=!1}},{loadedData:T}=t.inject(vt,{loadedData:{}}),D=t.ref(!1);t.watch(T,O=>{if(e.dataType==="indicator"){const L=tn(e.graphicConfig);L!=null&&L.length&&(!t.unref(D)&&it(e.graphicConfig,O)?(D.value=!0,p()):it(e.graphicConfig,O)||(D.value=!1))}},{deep:!0});const p=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(T))&&A();break;case"request":_();break}},w=(O,L)=>!!t.unref(s)[L.value].value.includes(O),C=async()=>{r.value=!1;const O=n.value.chart.getOption();for(let L=0;L<7;L++)await R(O,L)},R=(O,L)=>new Promise(H=>{setTimeout(()=>{const{series:Z,color:U,xAxis:ae}=O,Q=n.value.chart,{splitArea:le={}}=ae[0]||{};Z.forEach((re,Y)=>{const X=re.data;let te="";L%2?te=U[Y]+"a8":te=U[Y],X[i.value].itemStyle={color:te}}),L%2?(le.show=!0,le.areaStyle.color=t.unref(s).map((re,Y)=>Y===i.value?"#ff003b26":"")):le.show=!1,Q.setOption({series:Z,xAxis:ae}),H()},200)});o({refreshData:p});const F=Be(e),{getGlobalModel:q,setGlobalModel:W}=t.inject(Te,{getGlobalModel:O=>{},setGlobalModel:(O,L)=>{}});W(e.id,{type:e.type,RECORD:""});const $=F("click",O=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:O==null?void 0:O.data})}),z=O=>{n.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&$()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=$;const{setRequest:P}=t.inject(ze,{setRequest:O=>{}});return typeof P=="function"&&P({id:e.id,requestFn:p,sortNum:e.requestSort}),Oe(e,{resetRecord:()=>{const O=e.id,L=q(O);W(O,{...L,RECORD:""})},refreshData:p,click:$}),{style:c,option:g,click:$,loading:B,onClose:E,ecanModal:u,echartRef:n,handleLocationOk:C,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),L1="",N1="",sf=e=>(t.pushScopeId("data-v-1858b3c3"),e=e(),t.popScopeId(),e),cf={class:"location-wrap"},df=sf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function ff(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",cf,[df,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const yl=xe(me(lf,[["render",ff],["__scopeId","data-v-1858b3c3"]])),Sa={...we,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},Ca=Se(Sa),xl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,ve.ToolboxComponent,ve.TitleComponent,ve.LegendComponent]);const uf=t.defineComponent({name:"EcanRadar",props:{...Ca},components:{Spin:Nt,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ce(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ue:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const p=t.unref(d),w=p.length,C=[];for(let R=0;R<w;R++){const{name:F,data:q=[]}=p[R],W=[{name:F,value:q.map(P=>P.value)}];let $=e.colors[R];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;$={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[R]},{offset:P,color:M[R]},{offset:1,color:M[R]}]}}const z={type:"radar",name:F,data:W,areaStyle:{color:$,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:P=>{const{data:M,value:O}=P;let L=0,H="0%";if(M)for(const Z of M.value)L+=+Z;return L&&(H=`${(O/L*100).toFixed(2)}%`),Ee(e.labelFormatter,{textData:{value:O,percent:H}},{useNewline:!1,useSpace:!1})}}};C.push(z)}return C}),y=t.computed(()=>{var F;const p=[],w=[],C=t.unref(d),R=C.length;for(let q=0;q<R;q++){const{data:W=[]}=C[q];for(let $=0;$<W.length;$++)w.push(W[$].value)}if((F=i.value)!=null&&F.length){const q=w!=null&&w.length?Math.max(...w)*1.2:0;for(const W of i.value)p.push({name:W,max:q})}return p}),u=t.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){$t(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var p;a.value=!0,(p=s.value)==null||p.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:p=>{let w="",C=e.tooltipFormatter;C===""&&(C="{marker} {a} {c}");for(let R=0;R<t.unref(y).length;R++){const F=t.unref(y)[R],{marker:q,seriesName:W,value:$}=p||{};R===0&&W&&(w+=`${W}<br/>`),w+=Ee(C,{textData:{marker:q,name:F.name,value:$[R],a:F.name,b:F.name,c:$[R]||0,type:W}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(y),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(p=>({name:p.name,icon:e.legendType})),formatter:p=>nn(e.legendFormatter,{name:p})},series:t.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}}),{pageMode:S}=t.inject(Pe,{pageMode:"normal"}),E=(p=[],w=!1)=>{let C;if(e.dataFieldConfigType==="key"){const R=w?e.keyTypeDataFieldNames:null;C=At(p,R)}else if(e.dataFieldConfigType==="value"){const R=w?e.valueTypeDataFieldNames:null;C=Ft(p,R)}i.value=C.dimensions,d.value=C.dataset},b=(p=[],w,C=!1)=>{const F=At(p,C?w:null,!0);i.value=F.dimensions,d.value=F.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([p])=>{(e.dataType==="static"||t.unref(S)==="design")&&E(p)},{immediate:!0,deep:!0});const v=t.ref(!1),x=He(e),k=async()=>{var p,w;if(e.dataType==="request")try{v.value=!0;const C=await x();E((w=(p=C==null?void 0:C.data)==null?void 0:p.data)==null?void 0:w.rows,!0)}catch(C){console.error(C)}finally{v.value=!1}},B=Be(e);g(e.id,{type:e.type,RECORD:""});const I=p=>{const w=p.event.topTarget.__dimIdx;w!==void 0&&B("click",()=>{var q;const{value:C,name:R}=p.data||{},F=m(e.id);g(e.id,{...F,type:e.type,RECORD:{[t.unref(c)]:((q=t.unref(y)[w])==null?void 0:q.name)||"",[R]:C[w],seriesName:R}})})()},_=et(e),N=async()=>{var p;try{v.value=!0;const w=await _(),{columns:C=[],rows:R=[]}=((p=w==null?void 0:w.data)==null?void 0:p.data)??{};let F;C.length>0&&(c.value=C[0],F={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),b(R,F,!0)}catch(w){console.error(w)}finally{v.value=!1}},A=()=>{switch(e.dataType){case"indicator":N();break;case"request":k();break}};Oe(e,{refreshData:A,resetRecord:()=>{const p=e.id,w=m(p);g(p,{...w,RECORD:""})},click:I});const{setRequest:D}=t.inject(ze,{setRequest:p=>{}});return typeof D=="function"&&D({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:u,style:r,click:I,loading:v,onClose:h,ecanModal:s,echartRef:n}}}),z1="";function hf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const pl=xe(me(uf,[["render",hf]])),gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",mf="data:image/png;base64,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==",yf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",xf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",wa={...we,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},Aa=Se(wa),bl=["click"],pf=t.defineComponent({name:"EcanBorder",props:{...Aa},setup(e){const o=Ce(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:S,gradientOffset:E,gradientAngle:b,backgroundColor:v}=e;if(g){let x=S;return m&&(x="transparent"),x?{background:`linear-gradient(${b}, ${v}, ${x} ${E*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(E=>E.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=t.inject(Pe,{theme:"light"}),i=t.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":gf,"../../assets/border-title-decoration-left2.png":mf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":yf,"../../assets/border-title-decoration-right2.png":xf})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,g=[],S={};if(m){const E=m.split(",");for(const b of E)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(S.borderRadius=g.join(" ")),S}),y=Be(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Oe(e,{click:y});const{setGlobalModel:h}=t.inject(Te,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),P1="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),bf=["id"],vf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Sf=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Cf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),wf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Af={class:"title-item"},kf=["src"],Tf={class:"title"},Bf=["src"],Ef=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Df=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),If=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Rf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Of={key:2,class:"left-title"},_f={class:"title"};function Lf(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[vf,Sf,Cf,wf],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",Af,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,kf),t.createElementVNode("div",Tf,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Bf)])],2),Ef,Df,If,Rf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Of,[t.createElementVNode("div",_f,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,bf)}const vl=xe(me(pf,[["render",Lf],["__scopeId","data-v-8dd53b8f"]])),ka={...we,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:.3,componentList:[]},Ta=Se(ka),Sl=["tabChange"],Nf=t.defineComponent({name:"EcanTabs",props:{...Ta},components:{ASelect:se.Select,ASelectOption:se.SelectOption,MarqueeScroll:ur},setup(e){const o=Ce(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Pe,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const g=t.unref(n)+1;g<=m?n.value=g:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(r)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>n.value===m,c=Be(e),{setGlobalModel:f}=t.inject(Te,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(Xt,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==t.unref(n)&&(l.value=m,n.value=g,y())})()},h=t.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,S)=>S-g)[0];return{width:m?m+"px":"100%"}});return Oe(e,{tabChange:u}),{style:o,activeKey:n,isActive:d,tabChange:u,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:h}}}),H1="",Ff=["id"],zf=["onClick"];function Mf(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,zf))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],12,Ff)}const Cl=xe(me(Nf,[["render",Mf],["__scopeId","data-v-132544b5"]])),Ba={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ea=Se(Ba),wl=["click"],Da=t.defineComponent({name:"EcanImage",props:{...Ea},setup(e){const o=Ce(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Pe,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Te,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Be(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=Ci(t.unref(a),c),y=e.href;let u=y||f;u=Ee(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return Oe(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Al=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},kl=Da.setup;Da.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const j1="",Pf=["src"];function qf(e,o,n,a,r,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Pf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Tl=xe(me(Da,[["render",qf],["__scopeId","data-v-47ea6e7c"]])),Ia={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=Se(Ia),Hf=t.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:n}=t.inject(Pe,{contextRequestUrl:""}),a=t.computed(()=>{let r=Ee(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${Ts||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),U1="",Vf=["src"];function jf(e,o,n,a,r,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Vf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Bl=xe(me(Hf,[["render",jf],["__scopeId","data-v-19bc100c"]])),Oa={...we,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=Se(Oa),El=["click","refreshData","resetRecord","exportTableData"],Wf="data:image/png;base64,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",Uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",Gf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",La=t.defineComponent({name:"EcanTable",components:{Skeleton:sn,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const V=Ne.cloneDeep(e.columns);return e.isUseSeq&&V.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&V.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),V}),r=t.ref(),i=t.ref(!1),s=Ce(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let V=0;switch(e.size){case"small":V=50;break;case"middle":V=53;break;default:V=65;break}return V};t.watchEffect(()=>{var V;(V=l.value)!=null&&V.length&&e.height&&t.nextTick(()=>{let K=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ne=0;if(oe&&(K-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(ne=(ie==null?void 0:ie.clientHeight)||0,K-=ne),e.paginationShow){let ee=0;ee=f(),ee&&(K-=ee)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;ne!==fe&&t.unref(c)&&(c.value=K+ne-fe)}})})});const y=t.ref([]),u=t.ref([]),h=t.ref([]),m=t.ref([]),g=t.ref(0),S=t.ref(1),E=t.ref(e.paginationPageSize||10),b=t.reactive([]),v=(V=[])=>{var K,J;if(Array.isArray(V)&&V.length>0){let oe=V.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ne=[]}}=e;V.forEach((ee,fe)=>{if(t.unref(a)[fe])for(const Le in t.unref(a)[fe])["dataIndex","title"].includes(Le)||(ee[Le]=t.unref(a)[fe][Le]);const he=ne.find(Le=>Le.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let ne=oe-1;ne>=0;ne--)(J=V[ne])!=null&&J.isHidden&&V.splice(ne,1);oe=V.length;for(let ne=0;ne<oe;ne++){const ee=V[ne];if(ne<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ye=ee.dataIndex;ee.sorter=(Ot,Kt)=>Ot[Ye]-Kt[Ye]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Le,tableFilter:Ze,headerCellAlign:xt,headerCellColor:Rt,overflow:Cn}=ee;Ze&&(b.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ye,Ot)=>Ot[ge].toString().toLowerCase().includes(Ye.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Rt||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ye,Ot)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(H)===Ot&&e.clickHighlight},onClick:$("click",()=>{const Kt=e.id,wn=z(Kt);Ye={dataIndex:ge,title:Le,...Ye},P(Kt,{...wn,type:e.type,RECORD:Ye})})}),Cn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&v(ee.children)}}},x=(V=[])=>{var J;let K=Ne.cloneDeep(V);return(J=t.unref(m))!=null&&J.length&&(K=Ne.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(K),K};t.watch(E,()=>{S.value=1,Q(!1)}),t.watch(r,V=>{i.value=!!V}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=x(Ne.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([V,K])=>{K==="static"&&(u.value=V)},{immediate:!0});const k=t.ref({}),B=V=>{if(Array.isArray(V)){const K=V.length,J=b,oe=J.length,ie={};for(let ee=0;ee<K;ee++){const fe=V[ee];for(let he=0;he<oe;he++){const ge=J[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Le=new Set;Le.add(fe[ge]),ie[ge]=Le}}}const ne={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);ne[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=ne}};t.watch(()=>[e.isReverse,y.value,u.value],()=>{const V=t.unref(y),K=t.unref(u);if(B(K),e.isReverse){const{columns:J,dataSource:oe}=I(Ne.cloneDeep(V),Ne.cloneDeep(K));h.value=J,l.value=oe}else h.value=V,l.value=K},{immediate:!0});const I=(V,K)=>{const J=V[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<K.length;ne++){const ee=K[ne],fe="col"+(ne+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let ne=1;ne<V.length;ne++){const ee=V[ne],fe={col0:ee.title};for(let he=0;he<K.length;he++){const ge=K[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=t.ref(""),N=He(e),A=async(V=!0,K={})=>{var J;try{V&&(n.value=!0),t.unref(_)&&(K.orderCondition=t.unref(_)),e.paginationShow&&(K={pageNum:t.unref(S),pageSize:t.unref(E)||"10",layer:"1",...K});const oe=await N(K),{rows:ie=[],total:ne=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=ne,Array.isArray(ie)&&(u.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&t.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{n.value=!1}},T=({current:V},K,J)=>{if(S.value=V,J&&Object.keys(J).length>0){const{field:oe,order:ie}=J,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?_.value=oe+" "+ee:ee||(_.value="")}e.isSortByFront||Q(!1)},D=t.computed(()=>{const V=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:V,position:K,total:t.unref(g),current:t.unref(S),pageSize:t.unref(E)||"10",showSizeChanger:!1,size:"large",...J}}),p=V=>+V==1?"是":+V==0?"否":V,w=(V,K)=>{const{format:J,retentiondigit:oe,customFormatter:ie}=K;if(J==null||J==="")return V;const ne={money:Do,percentage:bn,contrast:bn,boolean:p,decimals:Lc,custom:Si};return ne[J]?J==="decimals"?ne[J](V,oe)||"":J==="custom"?ne[J](V,ie)||"":ne[J](V)||"":""},C=V=>V==="contrast"?"upDown":"",R=V=>{const{text:K,format:J,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=V;if(J==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(K+"");return ee>=0?ne.color=ie:ee<0&&(ne.color=oe),ne}else return{}},F=t.computed(()=>{const{fontSize:V}=e;return{width:V,height:V,textIndent:`-${parseFloat(V)*2}px`,overflow:"hidden"}}),q=V=>{const{text:K,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=V,{fontSize:ie}=e,ne=parseFloat(K+""),ee={width:ie,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:ne<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${ie} -1px)`),ee},W=V=>{const K=parseFloat(V+"");if(K>=0)return Lo;if(K<0)return No},$=Be(e),{getGlobalModel:z,setGlobalModel:P}=t.inject(Te,{getGlobalModel:V=>{},setGlobalModel:(V,K)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(V=[],K=[])=>{const J=V.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ne.cloneDeep(J),y.value=x(J),u.value=K},O=et(e),L=async(V=!0)=>{var K,J,oe,ie;try{V&&(n.value=!0);const ne=t.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:ne[1],field:ne[0]});const fe=await O(ee);M((J=(K=fe==null?void 0:fe.data)==null?void 0:K.data)==null?void 0:J.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(ne){console.error(ne)}finally{n.value=!1}},H=t.ref(-1),Z=(V,K)=>({onClick:$("rowClick",()=>{const J=e.id,oe=z(J);P(J,{...oe,type:e.type,RECORD:V}),H.value=K})}),{loadedData:U}=t.inject(vt,{loadedData:{}}),ae=t.ref(!1);t.watch(U,V=>{if(e.dataType==="indicator"){const K=tn(e.graphicConfig);K!=null&&K.length&&(!t.unref(ae)&&it(e.graphicConfig,V)?(ae.value=!0,Q()):it(e.graphicConfig,V)||(ae.value=!1))}},{deep:!0});const Q=(V=!0)=>{switch(e.dataType){case"request":A(V);break;case"indicator":it(e.graphicConfig,t.unref(U))&&L(V);break}},le=()=>{const V=e.id,K=z(V);P(V,{...K,type:e.type,RECORD:""})},re=t.computed(()=>{const V=t.unref(h);let K=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(K=V.findIndex(he=>he.dataIndex===J),K<0&&(K=0));const ie=[];let ne=0;for(let he=0;he<V.length;he++){const ge=V[he],{isCalcTotal:Le}=ge;he===K?ie.push({...ge,total:oe}):Le?(ie.push({...ge,index:he,total:0}),ne++):ie.push({...ge})}if(ne===0)return[];const ee=t.unref(l),fe=Y(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Le=0;const{isCalcTotal:Ze,dataIndex:xt}=ge;if(Ze===!0){for(let Rt=0;Rt<ee.length;Rt++){const Ye=+ee[Rt][xt];isNaN(Ye)||(Le=new Gl.Big(Le).add(Ye).toNumber())}ge.total=Le}}return fe});function Y(V){var J;const K=[];for(const oe of V)(J=oe.children)!=null&&J.length?K.push(...Y(oe.children)):K.push(oe);return K}const{setRequest:X}=t.inject(ze,{setRequest:V=>{}});typeof X=="function"&&X({id:e.id,requestFn:Q,sortNum:e.requestSort}),o({refreshData:Q});const te=(V="",K)=>Ee(V,K),pe=V=>{if(V!=="event")return{self:"_self",blank:"_blank"}[V]},Ae=(V,K="")=>{V==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},De=(V,K)=>{V(K.filterCheckboxGroupValue)},$e=(V,K)=>{V({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Me=()=>{},Re=V=>{const K=V.dataIndex;if(typeof K=="string"){let J=t.unref(k)[K];const oe=t.unref(V.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},ke=async()=>{var ge,Le;const V="EXPORT_KEY";se.message.loading({key:V,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Ze={layer:"1"};t.unref(_)&&(Ze.orderCondition=t.unref(_));const xt=await N(Ze);K=((Le=(ge=xt==null?void 0:xt.data)==null?void 0:ge.data)==null?void 0:Le.rows)||{}}const J=t.unref(h),oe=[],ie=[];J==null||J.forEach(Ze=>{oe.push(Ze.dataIndex),ie.push(Ze.title)});const ne=K.map(Ze=>Ne.pick(Ze,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,ne,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:V,content:"导出成功"})},Ve=(V,K=2)=>{const J=+V*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};Oe(e,{resetRecord:le,refreshData:Q,exportTableData:ke});const Fe=(V,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ke=t.computed(()=>{let V=0;const{height:K,isPageBottom:J}=e;return J&&K&&(V=parseFloat(K)-f()),V?V+"px":"100%"}),We=t.computed(()=>{let V="#071655";return e.headerBackgroundColor&&(V="transparent"),V}),je=t.computed(()=>{let V="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(V="transparent"),V}),ut=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let V="";const{paginationColor:K,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:ne}=e;return K&&(V+="p-color "),J&&(V+="p-bg-color "),oe&&(V+="active-p-color "),ie&&(V+="active-p-bg-color "),ne&&(V+="hover-bg-color "),V});return{x:d,y:c,style:s,customRow:Z,pagination:D,formatFn:w,contrastClass:C,tableChange:T,summaryList:re,loading:n,onTouchHrefEvent:Ae,handleHref:te,handleHrefTarget:pe,useRowIndex:H,tableColumns:h,tableDataSource:l,useFilterOptions:Re,useSetSelectedKeys:De,onResetFilter:$e,onSearchFilterOptions:Me,exportTableData:ke,handleProgressText:Ve,pageSizeVisible:i,pageSize:E,tableRef:r,rowClassName:Fe,tableHeight:Ke,tableHeaderBgColor:We,tableBodyBgColor:je,getChgStyle:R,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:Wf,seqIcon2:Uf,seqIcon3:Gf,iconSize:ut,containerClass:tt,getCellStyle:V=>{const{overflow:K}=V;if(K==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(K==="wrap")return{}}}}}),Dl=()=>{t.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},Il=La.setup;La.setup=Il?(e,o)=>(Dl(),Il(e,o)):Dl;const $1="",K1="",$f=e=>(t.pushScopeId("data-v-f641124f"),e=e(),t.popScopeId(),e),Kf=["id"],Zf={key:0,class:"table-tool"},Yf=t.createTextVNode("导出数据"),Qf=t.createTextVNode(" 搜索 "),Jf=t.createTextVNode(" 重置 "),Xf=["src","width","height"],eu=["src","width","height"],tu=["src","width","height"],nu={key:1},ou={key:1,class:"action-list"},au=["href","target","onClick"],ru={key:2,class:"progress-cell"},iu=["title"],lu=["title"],su=["src"],cu=["title"],du=["src"],fu={class:"ant-pagination-options-quick-jumper"},uu=$f(()=>t.createElementVNode("span",null,"条 / 页",-1));function hu(e,o,n,a,r,i){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),h=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(h,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Zf,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Yf]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:g,selectedKeys:S,setSelectedKeys:E,confirm:b,clearFilters:v})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":x=>g.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":x=>g.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:x=>e.useSetSelectedKeys(E,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:t.withCtx(()=>[Qf]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(x=>e.onResetFilter(v,g),["stop"])},{default:t.withCtx(()=>[Jf]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:S,text:E,record:b})=>{var v,x,k,B;return[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Xf)):S===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,eu)):S>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,tu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(S+1),5)],64)):(t.openBlock(),t.createElementBlock("span",nu,t.toDisplayString(S+1),1))],64)):g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",ou,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(I,_)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:_},[t.createElementVNode("a",{href:e.handleHref(I.href,b),target:e.handleHrefTarget(I.target),style:t.normalizeStyle({color:I.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(I.target,e.handleHref(I.href,b))},t.toDisplayString(I.title),13,au)]))),128))])):g.format==="progress"?(t.openBlock(),t.createElementBlock("div",ru,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(E,g.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(E)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(E,g.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((v=g==null?void 0:g.customFormatter)==null?void 0:v.split("{value}")[0])||""},t.toDisplayString(((x=g==null?void 0:g.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,iu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle(e.getChgStyle({...g,text:E})),title:g.format!=null?e.formatFn(E,g):E},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:E})),src:e.getChgBoxImgSrc(E)},null,12,su)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(g.format!=null?e.formatFn(E,g):E),1)],14,lu),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((k=g==null?void 0:g.customFormatter)==null?void 0:k.split("{value}")[1])||""},t.toDisplayString(((B=g==null?void 0:g.customFormatter)==null?void 0:B.split("{value}")[1])||""),9,cu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,S)=>(t.openBlock(),t.createBlock(c,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,du)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",fu,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[t.vModelText,e.pageSize]]),uu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Kf)}const Rl=xe(me(La,[["render",hu],["__scopeId","data-v-f641124f"]])),Na={...we,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Fa=Se(Na),Ol=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,ve.VisualMapComponent,ve.TooltipComponent,ve.GraphicComponent]);const gu=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Fa},setup(e){const o=He(e),n=He({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Ce(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),f=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const p=e.symbolImage;return e.symbolImage?"image://"+yt(p):"circle"}),u=p=>{let w=e.tooltipFormatter;const C=w.match(/\{(.+?)\}/g);if(C==null||C.length===0)return w;for(let R=0;R<C.length;R++){const F=C[R];let q=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,$=q.match(W);for(let z=0;z<$.length;z++){const P=$[z],M=p[P];M!=null&&(q=q.replace(P,M))}w=w.replace(F,q)}return w.split(`
120
- `)},h=t.ref(!1),m=t.ref("");let g=new AbortController;const S=(p,w)=>{const C=g.signal;h.value=!0,r.value=p,n({name:p,signal:C}).then(R=>{var F,q;if(R){const W=((q=(F=R==null?void 0:R.data)==null?void 0:F.data)==null?void 0:q.rows)||[];let $="";for(const z of W){const P=u(z)||[];if(P!=null&&P.length)for(const M of P)$+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}$=`<div style="max-width:200px;">${$}</div>`,i.value=$,w(t.unref(m),$)}else C.aborted?i.value="Loading":i.value=p,w(t.unref(m),i.value);h.value=!1})},E=t.computed(()=>{const p=e.geoCenter;let w;return typeof p=="string"&&p!==""&&(w=p.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:w,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(C,R,F)=>{m.value=R;const{name:q=""}=C,{requestUrl:W}=e.tooltipRequestData;if(!W)return q;if(t.unref(h))t.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(t.unref(r)===q)return t.unref(i);S(q,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(f),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=t.ref(!1),v=async()=>{var C;b.value=!1;const p=e.mapJson,w=`map-${e.id}`;if(p!=null&&p.path){const R=await dt(((C=window==null?void 0:window.config)==null?void 0:C.uploadPath)+p.path);Qe.registerMap(w,(R==null?void 0:R.data)||{})}else Qe.registerMap(w,{});b.value=!0};t.watch(()=>e.mapJson,()=>{v()},{immediate:!0,deep:!0});const x=async()=>{var p,w;if(e.dataType==="request"){b.value=!1;try{const C=await o(),R=((w=(p=C==null?void 0:C.data)==null?void 0:p.data)==null?void 0:w.rows)||{},F=`map-${e.id}`;if(R!=null&&R.path){const q=await dt(R.path);Qe.registerMap(F,(q==null?void 0:q.data)||{})}else Qe.registerMap(F,{})}catch(C){console.error(C)}finally{b.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:B,setGlobalModel:I}=t.inject(Te,{getGlobalModel:p=>{},setGlobalModel:(p,w)=>{}}),N=Be(e)("click",()=>{const p=B(e.id);I(e.id,{...p,RECORD:t.unref(a)})});Oe(e,{refreshData:k});const{setRequest:A}=t.inject(ze,{setRequest:p=>{}});return typeof A=="function"&&A({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:E,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(p={})=>{p.componentType==="geo"&&p.region?a.value=p.region:a.value=null}}}}),Y1="",mu=["src"];function yu(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,mu),[[t.vShow,!1]])],4)}const _l=xe(me(gu,[["render",yu],["__scopeId","data-v-10f150ac"]])),za={...we,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},Ma=Se(za),Ll=["selectChange","refreshData"],xu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...Ma},setup(e,{expose:o}){const n=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var T;const{mode:A}=e;return(T=t.unref(i))!=null&&T.length?s.value:A==="multiple"||A==="tags"||A==="combobox"?[]:""},set:A=>{s.value=A}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:A=>{},setGlobalModel:(A,T)=>{},getRecordValueByKeyName:A=>{}});t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:A,selectFirstOption:T,value:D}=e,p=f(D);A==="multiple"||A==="tags"||A==="combobox"?p?s.value=p.split(","):T&&(s.value=[t.unref(i)[0]]):p?s.value=p:T&&(s.value=t.unref(i)[0])},{immediate:!0});const y=e.dataFieldNames,u=(A,T)=>{const D=y.label,p=y.value;let w;const C=T[D],R=T[p];return C!=null?w=C:R!=null&&(w=R),(w==null?void 0:w.toLowerCase().indexOf(A==null?void 0:A.toLowerCase()))>=0},h=A=>{const{label:T,value:D,options:p}=e.dataFieldNames;if(p&&Array.isArray(A))if(A.some(w=>p in w)){const w={},C=[];A.forEach(R=>{w[R[p]]||(w[R[p]]=[]),w[R[p]].push({[T]:R[T],[D]:R[D]})});for(const R in w)C.push({[T]:R,[p]:w[R]});return C}else return A;else if(!p)return A},m=t.ref(!1),g=async()=>{var A,T;if(e.dataType==="request"){m.value=!0;try{const D=await r();if(i.value=h(((T=(A=D==null?void 0:D.data)==null?void 0:A.data)==null?void 0:T.rows)||[]),e.selectFirstOption){let p=t.unref(i)[0];if(y.options){const w=p[y.options];w&&w.length&&(p=w[0])}s.value=p[y.value]}}catch(D){console.error(D)}finally{m.value=!1}}},S=t.computed(()=>{let A=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const T=y.label,D=y.value;if(e.mode==="multiple")A=t.unref(i).filter(p=>t.unref(s).includes(p[D])).map(p=>p[T]);else{const p=t.unref(i).find(w=>t.unref(s)===w[D]);p&&(A=p[T])}}return A}),E=t.ref([]),b=t.computed(()=>{const A={};if(e.mode!=="multiple"){const T=t.unref(E).find(D=>D.value===t.unref(s));T&&(A.itemCodes=T.item_codes)}return A});c(e.id,{type:e.type,value:S,...t.unref(b)});const x=Be(e)("selectChange",()=>{const A=e.id,T=d(A);c(A,{...T,...t.unref(b),RECORD:S})}),k=(A=[])=>{if(i.value=h(A),e.selectFirstOption){let T=t.unref(i)[0];if(y.options){const D=T[y.options];D&&D.length&&(T=D[0])}s.value=T[y.value]}},B=et(e),I=async()=>{var A;try{m.value=!0;const T=await B(),{data:D}=(T==null?void 0:T.data)||{},p=y.label,w=y.value;if(D){const C=((A=T==null?void 0:T.data)==null?void 0:A.data)??[];E.value=C;const R=C.map(W=>({[p]:W.label,[w]:W.value})),{id:F}=e,q=d(F);c(F,{...q,...t.unref(b)}),k(R)}else k([])}catch(T){console.error(T)}finally{m.value=!1}},_=()=>{switch(e.dataType){case"indicator":{I();break}case"request":g();break}};Oe(e,{selectChange:x,refreshData:_});const{setRequest:N}=t.inject(ze,{setRequest:({id:A,sortNum:T,requestFn:D})=>{}});return typeof N=="function"&&N({id:e.id,requestFn:_,sortNum:e.requestSort}),o({refreshData:_}),{style:n,getPopupContainer:a,myValue:s,selectChange:x,options:i,filterOption:u,loading:m,resultValue:l}}}),J1="",X1="";function pu(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Nl=xe(me(xu,[["render",pu],["__scopeId","data-v-5b50dc15"]])),Fl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:fl,EcanBorder:vl,EcanButton:Ki,EcanCheckbox:Yi,EcanComboGraph:yl,EcanCustomGraph:gl,EcanDataSelect:Nl,EcanDatePicker:Hi,EcanIframe:Bl,EcanImage:Tl,EcanInput:zi,EcanLine:cl,EcanList:_i,EcanMap:_l,EcanModal:kt,EcanPageConfig:wi,EcanPie:ll,EcanProportion:Ni,EcanProviderConfig:Ai,EcanRadar:pl,EcanRadio:nl,EcanRangePicker:Gi,EcanScatter:hl,EcanScrollText:Di,EcanSelect:Ji,EcanTable:Rl,EcanTabs:Cl,EcanText:Ei,EcanTimeDisplay:Ri,EcanTreeSelect:el,barComponentProps:ga,barEvents:dl,barProps:ha,borderComponentProps:Aa,borderEvents:bl,borderProps:wa,buttonComponentProps:Jo,buttonEvents:$i,buttonProps:Qo,checkboxComponentProps:ea,checkboxEvents:Zi,checkboxProps:Xo,comboGraphComponentProps:va,comboGraphEvents:ml,comboGraphProps:ba,customGraphComponentProps:pa,customGraphProps:xa,dataSelectComponentProps:Ma,dataSelectEvents:Ll,dataSelectProps:za,datePickerComponentProps:Go,datePickerEvents:Mi,datePickerProps:Uo,iframeComponentProps:Ra,iframeProps:Ia,imageComponentProps:Ea,imageEvents:wl,imageProps:Ba,inputComponentProps:Wo,inputEvents:Fi,inputProps:jo,lineComponentProps:ua,lineEvents:sl,lineProps:fa,listComponentProps:qo,listEvents:Oi,listProps:Po,mapComponentProps:Fa,mapEvents:Ol,mapProps:Na,modalComponentProps:da,modalEvents:al,modalProps:ca,pageConfig:zn,pageConfigComponentProps:Mn,pieComponentProps:sa,pieEvents:ol,pieProps:la,proportionComponentProps:Vo,proportionEvents:Li,proportionProps:Ho,providerConfig:Io,providerConfigComponentProps:Ro,radarComponentProps:Ca,radarEvents:xl,radarProps:Sa,radioComponentProps:ia,radioEvents:tl,radioProps:ra,rangePickerComponentProps:Zo,rangePickerEvents:Vi,rangePickerProps:Ko,scatterComponentProps:ya,scatterEvents:ul,scatterProps:ma,selectComponentProps:na,selectEvents:Qi,selectProps:ta,tableComponentProps:_a,tableEvents:El,tableProps:Oa,tabsComponentProps:Ta,tabsEvents:Sl,tabsProps:ka,textComponentProps:_o,textEvents:ki,textProps:Oo,timeDisplayComponentProps:Mo,timeDisplayEvents:Ii,timeDisplayProps:zo,treeSelectComponentProps:aa,treeSelectEvents:Xi,treeSelectProps:oa},Symbol.toStringTag,{value:"Module"})),bu={install:e=>{Object.keys(Fl).forEach(o=>{const n=Fl[o];n.install&&e.use(n)})}};j.EcanBar=fl,j.EcanBorder=vl,j.EcanButton=Ki,j.EcanCheckbox=Yi,j.EcanComboGraph=yl,j.EcanCustomGraph=gl,j.EcanDataSelect=Nl,j.EcanDatePicker=Hi,j.EcanIframe=Bl,j.EcanImage=Tl,j.EcanInput=zi,j.EcanLine=cl,j.EcanList=_i,j.EcanMap=_l,j.EcanModal=kt,j.EcanPageConfig=wi,j.EcanPie=ll,j.EcanProportion=Ni,j.EcanProviderConfig=Ai,j.EcanRadar=pl,j.EcanRadio=nl,j.EcanRangePicker=Gi,j.EcanScatter=hl,j.EcanScrollText=Di,j.EcanSelect=Ji,j.EcanTable=Rl,j.EcanTabs=Cl,j.EcanText=Ei,j.EcanTimeDisplay=Ri,j.EcanTreeSelect=el,j.barComponentProps=ga,j.barEvents=dl,j.barProps=ha,j.borderComponentProps=Aa,j.borderEvents=bl,j.borderProps=wa,j.buttonComponentProps=Jo,j.buttonEvents=$i,j.buttonProps=Qo,j.checkboxComponentProps=ea,j.checkboxEvents=Zi,j.checkboxProps=Xo,j.comboGraphComponentProps=va,j.comboGraphEvents=ml,j.comboGraphProps=ba,j.compatibleMobileList=il,j.customGraphComponentProps=pa,j.customGraphProps=xa,j.dataSelectComponentProps=Ma,j.dataSelectEvents=Ll,j.dataSelectProps=za,j.datePickerComponentProps=Go,j.datePickerEvents=Mi,j.datePickerProps=Uo,j.default=bu,j.handleScrollCombinations=rl,j.iframeComponentProps=Ra,j.iframeProps=Ia,j.imageComponentProps=Ea,j.imageEvents=wl,j.imageProps=Ba,j.inputComponentProps=Wo,j.inputEvents=Fi,j.inputProps=jo,j.lineComponentProps=ua,j.lineEvents=sl,j.lineProps=fa,j.listComponentProps=qo,j.listEvents=Oi,j.listProps=Po,j.mapComponentProps=Fa,j.mapEvents=Ol,j.mapProps=Na,j.modalComponentProps=da,j.modalEvents=al,j.modalProps=ca,j.pageConfig=zn,j.pageConfigComponentProps=Mn,j.pieComponentProps=sa,j.pieEvents=ol,j.pieProps=la,j.proportionComponentProps=Vo,j.proportionEvents=Li,j.proportionProps=Ho,j.providerConfig=Io,j.providerConfigComponentProps=Ro,j.radarComponentProps=Ca,j.radarEvents=xl,j.radarProps=Sa,j.radioComponentProps=ia,j.radioEvents=tl,j.radioProps=ra,j.rangePickerComponentProps=Zo,j.rangePickerEvents=Vi,j.rangePickerProps=Ko,j.scatterComponentProps=ya,j.scatterEvents=ul,j.scatterProps=ma,j.selectComponentProps=na,j.selectEvents=Qi,j.selectProps=ta,j.tableComponentProps=_a,j.tableEvents=El,j.tableProps=Oa,j.tabsComponentProps=Ta,j.tabsEvents=Sl,j.tabsProps=ka,j.textComponentProps=_o,j.textEvents=ki,j.textProps=Oo,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=Ii,j.timeDisplayProps=zo,j.treeSelectComponentProps=aa,j.treeSelectEvents=Xi,j.treeSelectProps=oa,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
119
+ </span>`)}else e.format==="percent"?(L=+L,isNaN(L)||(L=(L*100).toFixed(2),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}%</span>`))):e.format==="money"?(L=+L,isNaN(L)||(L=Ro(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):V==="thousands"?(L=+L,isNaN(L)||(L=qc(L),R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`))):R=R.replace(z,`<span style="color:${m(L)||e.variableColor};font-size:${t.unref(i)};${t.unref(y)}">${L}</span>`)}}if(q||(q=`<span style="color: ${m(R)};${t.unref(y)}">${R}</span>`),e.unitShow&&e.unitText){const{unitTop:G,unitLeft:z}=e;let P="position:relative;";G&&(P+=`top:${G};`),z&&(P+=`margin-left:${z};`),q+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${P};${t.unref(y)}'>${e.unitText}</span>`}return q});function m(x){let w="",v=!1;const{targetValue:R,targetShow:F,notExpectColor:q}=e;if(F){switch(e.targetRule){case"equal":x!==R&&(v=!0);break;case"greater":x<=R&&(v=!0);break;case"greater_equal":x<R&&(v=!0);break;case"less":x>=R&&(v=!0);break;case"less_equal":x>R&&(v=!0);break}v&&(w=q)}return w}const{pageMode:g}=t.inject(Me,{pageMode:"normal"}),C=Ve(e),D=t.ref(!1),b=async()=>{var x;try{D.value=!0;const w=await C();r.value=((x=w==null?void 0:w.data)==null?void 0:x.data)||{}}catch(w){console.error(w)}finally{D.value=!1}},S=(x={})=>{r.value=x},p=x=>{const w=e.id,v=l(w);d(w,{...v,value:x||"",RECORD:x||""})},T=()=>{p("")},E=Ze(e),B=async()=>{var x,w;try{D.value=!0;const v=await E(),{data:R}=(v==null?void 0:v.data)||{};if(R){n.value=!1;const{columns:F=[],rows:q=[]}=((x=v==null?void 0:v.data)==null?void 0:x.data)??{},{graphicConfig:W}=e;let G={};if(F.length>0)if((w=W==null?void 0:W.dimensionList)!=null&&w.length){const z=F[0];z&&(q!=null&&q.length)&&(G={value:q[0][z]})}else{const z=F.find(P=>!!P);z&&(G={value:isNaN(q[z])?0:q[z]||0})}p(G==null?void 0:G.value),S(G)}else n.value=!0,p("NaN"),S({value:"NaN"})}catch(v){console.error(v)}finally{D.value=!1,f(e.id,!0)}},O=()=>{switch(e.dataType){case"indicator":B();break;case"request":b();break}},{setRequest:N}=t.inject(Fe,{setRequest:({id:x,sortNum:w,requestFn:v})=>{}});typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),Re(e,{refreshData:O,resetRecord:T}),o({refreshData:O});const A=Be(e),k=A("click",()=>{const x=document.getElementsByClassName(`ecan-text_${e.id}`);if(x!=null&&x.length&&p(x[0].innerText),setTimeout(()=>{p("")},0),!e.linkPage&&!e.href)return;const w=e.linkPage||"",v=Bi(t.unref(g),w),R=e.href;let F=R||v;F=De(F);const q=e.target;q&&(q!=="event"?window.open(F,"_"+q):window.parent.postMessage({type:"openPage",url:R},"*"))}),I=A("valueChange",()=>{});return t.watch(()=>h.value,(x,w)=>{x!==w&&I()}),{style:a,myText:h,loading:D,click:k,textIndent:s,vFontSize:i,gradientStyle:u}}}),Ri=()=>{t.useCssVars(e=>({bf700b4e:e.vFontSize,"10d75bc6":e.textIndent,d0a92fc4:e.percentageSide}))},Oi=Mo.setup;Mo.setup=Oi?(e,o)=>(Ri(),Oi(e,o)):Ri;const Ju="",Kc=["innerHTML"];function Zc(e,o,n,a,r,i){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["ecan-text","ecan-text_"+e.id]),style:t.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,14,Kc))}const _i=pe(me(Mo,[["render",Zc],["__scopeId","data-v-fc956f5c"]])),Yc=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),eh="",Qc={class:"red"};function Jc(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(e.text),1)}const Li=pe(me(Yc,[["render",Jc],["__scopeId","data-v-4dd9c03e"]])),Po={...ke,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},qo=ve(Po),Ni=["timeChange"],Xc=t.defineComponent({name:"EcanTimeDisplay",props:{...qo},setup(e){const o=Ae(e),n=()=>{const{format:c,operate:f}=e;let y=Se();if(f){const{type:u,value:h,mode:m}=f;switch(u){case"add":y=y.add(h,m);break;case"minus":y=y.subtract(h,m)}}return y.format(c)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=n()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Be(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:f,mode:y}=e.updateInterval||{};f&&(c=c*f);const u={second:1,minute:60,hour:60*60,day:24*60*60};y&&(c=c*u[y]),r=setInterval(()=>{a.value=n(),l()},c)};return Re(e,{timeChange:l}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:o,time:a}}}),nh="";function ed(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Fi=pe(me(Xc,[["render",ed],["__scopeId","data-v-b628fca2"]])),Vo={...ke,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:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}"},Ho=ve(Vo),zi=["refreshData","click","resetRecord"],td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",ad="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",rd=t.defineComponent({name:"EcanList",components:{Skeleton:en,ATooltip:se.Tooltip,MarqueeScroll:Mn},props:{...Ho},setup(e,{expose:o}){const n=t.ref(),a=Ae(e,["backgroundColor"]),r=(x,w)=>{const{format:v,customFormatter:R}=w;if(v==null||v==="")return x;const F={money:Ro,percentage:Sn,contrast:Sn,custom:Ti};return F[v]?v==="custom"?F[v](x,R)||"":F[v](x)||"":""},i=(x,w)=>{const v=parseFloat(x+"");if(w!=="contrast")return"";switch(!0){case v>=0:return"goUp";case v<0:return"goDown"}},s=Ve(e),l=t.ref(!1),d=async()=>{var x;if(e.dataType==="request")try{l.value=!0;const w=await s();n.value=((x=w==null?void 0:w.data)==null?void 0:x.data.rows)||[]}catch(w){console.error(w)}finally{l.value=!1}};t.watch(()=>e.data,()=>{(e.dataType==="static"||!t.unref(n))&&(n.value=e.data)},{immediate:!0,deep:!0});const c=t.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),f=t.computed(()=>{const{columns:x,isUseSeq:w}=e;return w?[t.unref(c),...x]:x}),y=Ze(e),u=async()=>{var x;try{l.value=!0;const w=await y(),{columns:v=[],rows:R=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};e.isUseSeq&&v.unshift(e.seqName),f.value.forEach((F,q)=>{(!e.isUseSeq||q!==0)&&(F.title=v[q],F.key=v[q])}),n.value=R}catch(w){console.error(w)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":u();break;case"request":d();break}},m=Be(e),{getGlobalModel:g,setGlobalModel:C}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{}}),D=x=>{m("click",()=>{const w=g(e.id);C(e.id,{...w,type:e.type,RECORD:x})})()};Re(e,{refreshData:h,resetRecord:()=>{const x=e.id,w=g(x);C(x,{...w,type:e.type,RECORD:""})}});const{setRequest:S}=t.inject(Fe,{setRequest:({id:x,sortNum:w,requestFn:v})=>{}});typeof S=="function"&&S({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const p=x=>({flex:x.width?"none":"1",width:x.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:x.align||"left",backgroundColor:x.cellColor}),T=(x,w)=>{let v=0;const R=t.unref(n).map(q=>q[w]),F=Math.max(...R);return F&&(v=x[w]/F*100),v},E=x=>{const{progressColor:w="#1890ff",progressGradientColor:v=""}=x;return v?{background:`linear-gradient(to right, ${w} 0%, ${v} 100%)`}:{backgroundColor:w||"#1890ff"}},B=t.computed(()=>{const x=parseFloat(e.seqFontSize)+5;return{width:x+10,height:x}}),{pageMode:O}=t.inject(Me,{pageMode:"normal"}),N=t.computed(()=>t.unref(O)!=="design"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:n,loading:l,myColumns:f,click:D,getColumnStyle:p,getPercentage:T,getBackgroundColor:E,isShowSeqIcon:x=>{const{seqIconConfig:w}=e;let v=w.find(R=>R.key===x+1);return v||(v=w.find(R=>R.key==="other")),!!(v!=null&&v.icon)},getSeqIconData:(x,w)=>{const{seqIconConfig:v}=e;let R=v.find(F=>F.key===x+1);return R||(R=v.find(F=>F.key==="other")),w===1?R!=null&&R.icon?yt(R.icon):"":w===2?(R==null?void 0:R.color)||"#fff":""},seqIcon4:td,seqIcon5:nd,seqIcon6:od,seqIcon7:ad,iconSize:B,isScroll:N,formatSeq:x=>{const{seqIndexFormatter:w}=e,v=x+1;return w?De(w,{textData:{index:v}},{useNewline:!1,useSpace:!0}):v}}}}),ah="",rh="",id=e=>(t.pushScopeId("data-v-29cacc3c"),e=e(),t.popScopeId(),e),ld={key:0,class:"title"},sd={key:0,class:"ranking"},cd={key:1,class:"ecan-list-content"},dd=["onClick"],fd={key:0,class:"ranking"},ud=id(()=>t.createElementVNode("div",{class:"icon"},null,-1)),hd={class:"sort"},gd=["src"],md={key:1},yd=["src","width","height"],xd=["src","width","height"],pd=["src","width","height"],bd=["src","width","height"],vd={key:1},Sd={key:2,class:"empty"};function Cd(e,o,n,a,r,i){const s=t.resolveComponent("a-tooltip"),l=t.resolveComponent("marquee-scroll"),d=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(d,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",sd)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,(f,y)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:f.key||y,style:t.normalizeStyle({color:f.titleColor,...e.getColumnStyle(f)})},t.toDisplayString(f.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",cd,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),t.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||f,onClick:y=>e.click(c)},[e.useRanking?(t.openBlock(),t.createElementBlock("div",fd,[ud,t.createElementVNode("div",hd," Top "+t.toDisplayString(f+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myColumns,y=>{var u;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[y.key],y.format),y.key==="SEQ"?"seq-column":""]),key:y.key,style:t.normalizeStyle({fontSize:y.fontSize,color:e.contrastClass(c[y.key],y.format)===""?y.color:"",fontWeight:y.fontWeight,...e.getColumnStyle(y)})},[y.key==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(u=e.seqIconConfig)!=null&&u.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"icon-box",style:t.normalizeStyle({width:e.seqIconWidth||"",height:e.seqIconHeight||""})},[e.seqIconWidth&&e.seqIconHeight&&e.isShowSeqIcon(f)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"custom-seq-icon",src:e.getSeqIconData(f,1),style:t.normalizeStyle({width:e.seqIconWidth,height:e.seqIconHeight})},null,12,gd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"custom-seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize,color:e.getSeqIconData(f,2),lineHeight:e.seqIconHeight||"",left:e.seqIconOffsetX,top:e.seqIconOffsetY})},t.toDisplayString(e.formatSeq(f)),5)],4)):(t.openBlock(),t.createElementBlock("div",md,[f===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,yd)):f===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,xd)):f===2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,pd)):f>=3?(t.openBlock(),t.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,bd)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.seqFontSize})},t.toDisplayString(e.formatSeq(f)),5)]))],64)):(t.openBlock(),t.createElementBlock("span",vd,t.toDisplayString(e.formatSeq(f)),1))],64)):y.format==="progress"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"progress-cell",style:t.normalizeStyle({height:e.itemHeight})},[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({height:y.progressWidth||"14px",backgroundColor:y.progressBaseColor})},[t.createVNode(s,{title:c[y.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({borderRadius:"10px",height:y.progressWidth||"14px",width:`${e.getPercentage(c,y.key)}%`,...e.getBackgroundColor(y)})},null,4)]),_:2},1032,["title"])],4)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString((y.format!=null||y.format!=="")&&e.formatFn(c[y.key],y)),1)],64))],6)}),128))],12,dd))),128))]),_:1},8,["visible","step"])])):(t.openBlock(),t.createElementBlock("div",Sd," 暂无数据 "))]),_:1},8,["loading"])],4)}const Mi=pe(me(rd,[["render",Cd],["__scopeId","data-v-29cacc3c"]])),jo={...ke,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:{}},Wo=ve(jo),Pi=["refreshData","click"],wd=t.defineComponent({name:"EcanProportion",components:{AProgress:se.Progress,Skeleton:en},props:{...Wo},setup(e,{expose:o}){const n=t.ref(!1),{pageMode:a}=t.inject(Me,{pageMode:"normal"}),r=Ae(e),i=t.computed(()=>{const p=e.width;return parseFloat(p)}),s=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=t.computed(()=>{const p=t.unref(s),T=+e.variableDefaultValue;if(p==null)return isNaN(T)?0:T;const E=e.text.match(/\{.+\}/g)||[];let B;const O=new Set(Object.keys(p));for(let N=0;N<E.length;N++){const A=E[N],k=A.slice(1,A.length-1);if(O.has(k)){B=p[k];break}}return typeof B=="number"?B=B*100:typeof B=="string"&&!isNaN(+B)?B=+B*100:isNaN(T)?B=0:B=T*100,e.decimalFormat&&(B=+B.toFixed(2)),B}),d=t.computed(()=>{var O;let p=e.text;if(p==="")return t.unref(l);const T=e.variableDefaultValue,E=t.unref(s),B=p.match(/\{.+\}/g)||[];for(let N=0;N<B.length;N++){const A=B[N];let k=A.slice(1,A.length-1);const I=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=A.match(I);for(let v=0;v<(x==null?void 0:x.length);v++){const R=(O=x[v])==null?void 0:O.trim();E[R]!=null&&(k=k.replace(R,E[R]))}let w=k;try{/\(.*\)/g.test(k)&&(w=Cn(k))}catch(v){console.error(v)}typeof+w=="number"&&!isNaN(+w)?(w=+w*100,e.decimalFormat&&(w=w.toFixed(2))):w=T,p=p.replace(A,w+"")}return t.unref(n)?"NaN":p}),c=Ve(e),f=t.ref(!1),y=async()=>{var p;if(e.dataType==="request")try{f.value=!0;const T=await c();s.value=((p=T==null?void 0:T.data)==null?void 0:p.data)||{}}catch(T){console.error(T)}finally{f.value=!1}},u=(p={})=>{s.value=p},h=Ze(e),m=async()=>{var p;try{f.value=!0;const T=await h(),{data:E}=(T==null?void 0:T.data)||{};if(E){n.value=!1;const{columns:B=[],rows:O=[]}=((p=T==null?void 0:T.data)==null?void 0:p.data)??{};let N={};if(B.length>0){const A=B.find(k=>!!k);A&&(N={percent:O[A]})}u(N)}else n.value=!0,u({percent:"NaN"})}catch(T){console.error(T)}finally{f.value=!1}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":y();break}};Re(e,{refreshData:g}),o({refreshData:g});const D=Be(e)("click",()=>{}),{setRequest:b}=t.inject(Fe,{setRequest:({id:p,sortNum:T,requestFn:E})=>{}});typeof b=="function"&&b({id:e.id,requestFn:g,sortNum:e.requestSort});const S=t.computed(()=>{const{gradientShow:p,gradientColor:T,gradientOffset:E,strokeColor:B}=e;let O=B;return p&&T&&(O={"0%":B,[`${E*100}%`]:T}),O});return{style:r,myWidth:i,text:d,myValue:l,loading:f,click:D,customStrokeColor:S}}}),lh="";function Ad(e,o,n,a,r,i){const s=t.resolveComponent("skeleton"),l=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5)):t.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const qi=pe(me(wd,[["render",Ad],["__scopeId","data-v-cf942b5f"]])),Uo={...ke,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},Go=ve(Uo),Vi=["inputChange","inputBlur"],kd=t.defineComponent({name:"EcanInput",components:{AInput:se.Input},props:{...Go},setup(e){const o=Ae(e),n=t.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=t.inject(Te,{getGlobalModel:f=>{},setGlobalModel:(f,y)=>{},getRecordValueByKeyName:f=>{}});t.watch(()=>e.value,f=>{n.value=i(f)},{immediate:!0}),r(e.id,{type:e.type,value:n});const s=()=>{const f=a(e.id);r(e.id,{...f,RECORD:n})},l=Be(e),d=Ie.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:c,inputChange:d}}}),ch="";function Td(e,o,n,a,r,i){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Hi=pe(me(kd,[["render",Td]])),$o={...ke,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"},Ko=ve($o),ji=["dateChange"],Zo=t.defineComponent({name:"EcanDatePicker",props:{...Ko},components:{ADatePicker:se.DatePicker},setup(e){const o=t.inject("scaleValue",{widthScale:"1",heightScale:"1"}),n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([u,h,m])=>{let g=null;if(u?g=Se(De(u)):h&&(g=Se()),m&&g){const{type:C,value:D,mode:b}=m;switch(C){case"add":g=g.add(D,b);break;case"minus":g=g.subtract(D,b)}}r.value=g},{deep:!0,immediate:!0});const{setGlobalModel:i}=t.inject(Te,{setGlobalModel:(u,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Be(e)("dateChange",()=>{}),d=()=>{t.unref(r)&&l()};Re(e,{dateChange:l});const c=t.ref({}),f=t.ref({}),y=u=>{u?setTimeout(()=>{f.value=t.unref(c)},300):f.value={}};return t.onMounted(()=>{setTimeout(()=>{const u=document.querySelector(`#ecan-date-picker-${e.id}`);if(u){const h=u.getBoundingClientRect(),m=parseFloat(t.unref(o).widthScale)*280;document.body.clientWidth-h.left<m&&(c.value.marginLeft=-1*(m-h.width)+"px")}},0)}),{style:n,getPopupContainer:a,myValue:r,locale:Ua,change:d,scaleValue:o,popupStyle:c,customStyle:f,openChange:y}}}),Wi=()=>{t.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Ui=Zo.setup;Zo.setup=Ui?(e,o)=>(Wi(),Ui(e,o)):Wi;const fh="",uh="",Bd=["id"];function Ed(e,o,n,a,r,i){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,Bd)}const Gi=pe(me(Zo,[["render",Ed],["__scopeId","data-v-d4ec0d66"]])),Yo={...ke,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},Qo=ve(Yo),$i=["dateChange"];var Ki={exports:{}};(function(e,o){(function(n,a){e.exports=a()})(de,function(){var n="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,f){return c=Number(c),this.$utils().p(f)===a?this.add(3*c,n):l.bind(this)(c,f)};var d=s.startOf;s.startOf=function(c,f){var y=this.$utils(),u=!!y.u(f)||f;if(y.p(c)===a){var h=this.quarter()-1;return u?this.month(3*h).startOf(n).startOf("day"):this.month(3*h+2).endOf(n).endOf("day")}return d.bind(this)(c,f)}}})})(Ki);var Dd=Ki.exports;const Id=wr(Dd);Se.extend(Id);const Jo=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:se.RangePicker},props:{...Qo},setup(e){const o=Ae(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,p,T,E,B,O])=>{let N=null,A=null;if(T&&(N=Se().subtract(E,B),A=Se()),S&&(N=Se(De(S))),p&&(A=Se(De(p))),O){const{type:k,value:I,mode:x}=O;switch(k){case"add":N=N&&N.add(I,x),A=A&&A.add(I,x);break;case"minus":N=N&&N.subtract(I,x),A=A&&A.subtract(I,x)}}a.value=[N,A]},{immediate:!0});let r=t.unref(a)[0],i=t.unref(a)[1],s="";const l=(S,p,T)=>{Array.isArray(S)?(r=S[0],i=S[1],s=T.range):(r=null,i=null)};window.dayjs=Se;const d=S=>{let p=!1,{limitStartTime:T,limitEndTime:E}=e;const B={startTime:`${r||""}`,endTime:`${i||""}`};if(T=De(T,{codeData:B}),E=De(E,{codeData:B}),T&&E?p=!(Se(T)<S&&S<Se(E)):T?p=Se(T)>S:E&&(p=Se(E)<S),!e.isAllowSpanYear&&s){let O=null;if(s==="start"?O=r:s==="end"&&(O=i),O){const N=O.startOf("year"),A=O.endOf("year");p=!(N<=S&&S<A)}}if(!p){const{value:O=0,mode:N="year"}=e.limitInterval||{};O&&(s==="start"?p=r.add(O,N)<S:s==="end"&&(p=i.subtract(O,N)>S))}return p},{getGlobalModel:c,setGlobalModel:f}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}}),y=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:y,endTime:u,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Be(e);let m=!1;const g=h("dateChange",()=>{}),C=S=>{const p=t.unref(a),T=p&&p[0]&&p[1];S===!1&&m===!0&&T&&(g(),m=!1),S||(s="")},D=()=>{m=!0};return Re(e,{dateChange:()=>{const{associated:S}=e;if(S){const p=c(S)||{};if(p){const{value:T}=p;if(T)switch(t.unref(T)){case"month":a.value=[Se().startOf("month"),Se().endOf("month")];break;case"quarter":a.value=[Se().startOf("quarter"),Se().endOf("quarter")];break;case"year":a.value=[Se().startOf("year"),Se().endOf("year")];break}}}g()}}),{style:o,getPopupContainer:n,locale:Ua,dateChange:g,myValue:a,disabledDate:d,calendarChange:l,openChange:C,change:D}}}),Zi=()=>{t.useCssVars(e=>({"2d84b603":e.optionFontSize}))},Yi=Jo.setup;Jo.setup=Yi?(e,o)=>(Zi(),Yi(e,o)):Zi;const gh="",mh="";function Rd(e,o,n,a,r,i){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Qi=pe(me(Jo,[["render",Rd],["__scopeId","data-v-c9c68612"]])),Xo={...ke,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"},ea=ve(Xo),Ji=["click"],Od=t.defineComponent({name:"EcanButton",components:{AButton:se.Button},props:{...ea},setup(e){const o=Ae(e),a=Be(e)("click",()=>{const d=t.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=t.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=t.computed(()=>De(e.text)),s=t.computed(()=>De(e.href)||null),l=t.computed(()=>{const d=e.target;if(!(d==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),xh="";function _d(e,o,n,a,r,i){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:t.normalizeStyle(e.buttonStyle),class:t.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Xi=pe(me(Od,[["render",_d]])),ta={...ke,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:{}},na=ve(ta),el=["checkboxChange"],Ld=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:se.CheckboxGroup},props:{...na},setup(e,{expose:o}){const n=Ae(e),a=t.ref([]),r=t.ref([]),i=C=>{const D=e.value;let b=[];C.forEach(S=>{S.checked&&b.push(S.value)}),typeof D=="string"&&D!==""?b=b.concat(D.split(",")):Array.isArray(D)&&(b=b.concat(D)),a.value=C,r.value=b};t.watch(()=>[e.data,e.value],([C])=>{i(C)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var b,S;if(e.dataType!=="request")return;const C=await s(),D=((S=(b=C==null?void 0:C.data)==null?void 0:b.data)==null?void 0:S.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:C=>{},setGlobalModel:(C,D)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("checkboxChange",()=>{const C=d(e.id);c(e.id,{...C,RECORD:r})}),u=Ze(e),h=async()=>{var C;try{const D=await u(),{data:b}=(D==null?void 0:D.data)||{};if(b){const p=(((C=D==null?void 0:D.data)==null?void 0:C.data)??[]).map(T=>({label:T.label,value:T.value}));i(p)}else i([])}catch(D){console.error(D)}},m=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:g}=t.inject(Fe,{setRequest:({id:C,sortNum:D,requestFn:b})=>{}});return typeof g=="function"&&g({id:e.id,requestFn:m,sortNum:e.requestSort}),o({refreshData:m}),{myOption:a,style:n,myValue:r,checkboxChange:y}}}),bh="";function Nd(e,o,n,a,r,i){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const tl=pe(me(Ld,[["render",Nd]])),oa={...ke,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"},aa=ve(oa),nl=["selectChange","refreshData"],Fd=t.defineComponent({name:"EcanSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...aa},setup(e,{expose:o}){const n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var v;const{mode:w}=e;return(v=t.unref(i))!=null&&v.length?s.value:w==="multiple"||w==="tags"||w==="combobox"?[]:""},set:w=>{s.value=w}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:w=>{},setGlobalModel:(w,v)=>{},getRecordValueByKeyName:w=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:w,selectFirstOption:v,value:R}=e,F=f(R),q=y.value;if(w==="multiple"||w==="tags"||w==="combobox"){if(F)s.value=F.split(",");else if(v){const W=t.unref(i)[0];s.value=W?[W[q]]:[]}}else if(F)s.value=F;else if(v){const W=t.unref(i)[0];s.value=W?W[q]:""}},{immediate:!0});const u=(w,v)=>{const R=y.label,F=y.value;let q;const W=v[R],G=v[F];return W!=null?q=W:G!=null&&(q=G),(q==null?void 0:q.toLowerCase().indexOf(w==null?void 0:w.toLowerCase()))>=0},h=w=>{const{label:v,value:R,options:F}=e.dataFieldNames;if(F&&Array.isArray(w))if(w.some(q=>F in q)){const q={},W=[];w.forEach(G=>{q[G[F]]||(q[G[F]]=[]),q[G[F]].push({[v]:G[v],[R]:G[R]})});for(const G in q)W.push({[v]:G,[F]:q[G]});return W}else return w;else if(!F)return w},m=t.ref(!1),g=async()=>{var w,v;if(e.dataType==="request"){m.value=!0;try{const R=await r();if(i.value=h(((v=(w=R==null?void 0:R.data)==null?void 0:w.data)==null?void 0:v.rows)||[]),e.selectFirstOption){let F=t.unref(i)[0];if(y.options){const q=F[y.options];q&&q.length&&(F=q[0])}s.value=F[y.value]}}catch(R){console.error(R)}finally{m.value=!1}}},{setLoadedData:C,loadedData:D}=t.inject(vt,{setLoadedData:(w,v)=>{},loadedData:{}}),b=t.computed(()=>{let w=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const v=y.label,R=y.value;if(e.mode==="multiple")w=t.unref(i).filter(F=>t.unref(s).includes(F[R])).map(F=>F[v]);else{const F=t.unref(i).find(q=>t.unref(s)===q[R]);F&&(w=F[v])}}return w}),S=t.ref([]),p=t.computed(()=>{const w={};if(e.mode!=="multiple"){const v=t.unref(S).find(R=>R.value===t.unref(s));v&&(w.itemCodes=v.item_codes)}return w});c(e.id,{type:e.type,value:b,...t.unref(p)});const E=Be(e)("selectChange",()=>{const w=e.id,v=d(w);c(w,{...v,...t.unref(p),RECORD:b})}),B=(w=[])=>{if(i.value=h(w),e.selectFirstOption){let v=t.unref(i)[0];if(y.options){const R=v[y.options];R&&R.length&&(v=R[0])}s.value=v[y.value]}},O=Ze(e),N=async()=>{var w;try{m.value=!0;const v=await O(),{data:R}=(v==null?void 0:v.data)||{},F=y.label,q=y.value;if(R){const W=((w=v==null?void 0:v.data)==null?void 0:w.data)??[];S.value=W;const G=W.map(M=>({[F]:M.label,[q]:M.value})),{id:z}=e,P=d(z);c(z,{...P,...t.unref(p)}),C(z,!0),B(G)}else B([])}catch(v){console.error(v)}finally{m.value=!1}},A=t.computed(()=>{var w,v;return(v=(w=e==null?void 0:e.graphicConfig)==null?void 0:w.controlList)==null?void 0:v.find(R=>R.conditionKey==="parentCode")}),k=t.ref(!1);t.watch(D,w=>{!t.unref(k)&&t.unref(A)&&w[t.unref(A).id]&&(k.value=!0,I())},{deep:!0});const I=()=>{switch(e.dataType){case"indicator":{if(t.unref(A)){if(t.unref(D)[t.unref(A).id]){const{mode:w}=e;w==="multiple"||w==="tags"||w==="combobox"?l.value=[]:l.value="",N()}}else N();break}case"request":g();break}};Re(e,{selectChange:E,refreshData:I});const{setRequest:x}=t.inject(Fe,{setRequest:({id:w,sortNum:v,requestFn:R})=>{}});return typeof x=="function"&&x({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{style:n,getPopupContainer:a,myValue:s,selectChange:E,options:i,filterOption:u,loading:m,resultValue:l}}}),Sh="",Ch="";function zd(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const ol=pe(me(Fd,[["render",zd],["__scopeId","data-v-2d3482b0"]])),ra={...ke,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},ia=ve(ra),al=["selectChange","refreshData"],Md={name:"EcanTreeSelect",components:{ATreeSelect:se.TreeSelect},props:{...ia},setup(e){const o=Ae(e),n=t.ref(e.data),a=(h,m)=>{const g=e.dataFieldNames,C=g.label,D=g.value;let b;const S=m[C],p=m[D];return S!=null?b=S:p!=null&&(b=p),(b==null?void 0:b.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:m,selectFirstOption:g}=e;h?m?r.value=m.split(","):g&&(r.value=[t.unref(n)[0]]):m?r.value=m:g&&(r.value=t.unref(n)[0])},{immediate:!0});const i=t.ref(!1),s=Ve(e),l=async()=>{var h,m;if(e.dataType==="request"){i.value=!0;try{const g=await s();n.value=((m=(h=g==null?void 0:g.data)==null?void 0:h.data)==null?void 0:m.rows)||[];const C=t.unref(n)[0];e.value===""&&C!=null&&(r.value=C[e.dataFieldNames.value])}catch(g){console.error(g)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:h=>{},setGlobalModel:(h,m)=>{}});c(e.id,{type:e.type,value:r});const y=Be(e)("selectChange",()=>{const h=e.id,m=d(h);c(h,{...m,RECORD:r})});Re(e,{selectChange:y,refreshData:l});const{setRequest:u}=t.inject(Fe,{setRequest:({id:h,sortNum:m,requestFn:g})=>{}});return u({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:n,filterTreeNode:a,myValue:r,loading:i,selectChange:y}}},Ah="",kh="";function Pd(e,o,n,a,r,i){const s=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const rl=pe(me(Md,[["render",Pd],["__scopeId","data-v-37236421"]])),la={...ke,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:""},sa=ve(la),il=["checkboxChange","click"],qd=t.defineComponent({name:"EcanRadio",components:{ARadioGroup:se.RadioGroup,ARadioButton:se.RadioButton,ARadio:se.Radio},props:{...sa},setup(e,{expose:o}){const n=Ae(e),a=t.ref([]),r=t.ref(""),i=S=>{const p=e.value;let T=[];typeof p=="string"&&p!==""?T=T.concat(p.split(",")):Array.isArray(p)&&(T=T.concat(p)),a.value=S,r.value=T[0]||""};t.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=Ve(e),l=async()=>{var T,E;if(e.dataType!=="request")return;const S=await s(),p=((E=(T=S==null?void 0:S.data)==null?void 0:T.data)==null?void 0:E.rows)||[];i(p)},{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:S=>{},setGlobalModel:(S,p)=>{}});c(e.id,{type:e.type,value:r});const f=Be(e),y=f("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),u=S=>{r.value=S,f("click",()=>{const p=d(e.id);c(e.id,{...p,RECORD:r})})()};t.watch(r,()=>{y()});const h=Ze(e),m=async()=>{var S;try{const p=await h(),{data:T}=(p==null?void 0:p.data)||{};if(T){const B=(((S=p==null?void 0:p.data)==null?void 0:S.data)??[]).map(O=>({label:O.label,value:O.value}));i(B)}else i([])}catch(p){console.error(p)}},g=()=>{switch(e.dataType){case"indicator":m();break;case"request":l();break}},{setRequest:C}=t.inject(Fe,{setRequest:({id:S,sortNum:p,requestFn:T})=>{}});typeof C=="function"&&C({id:e.id,requestFn:g,sortNum:e.requestSort});const D=S=>{r.value=S.value},b=t.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:g}),{myOption:a,style:n,myValue:r,radioStyle:b,onClickButton:u,useImagePath:yt,tabChange:D}}}),Bh="",Eh="",Vd=["onClick"];function Hd(e,o,n,a,r,i){const s=t.resolveComponent("a-radio"),l=t.resolveComponent("a-radio-button"),d=t.resolveComponent("a-radio-group");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-radio",e.optionType]),style:t.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:f,onClick:t.withModifiers(y=>e.tabChange(c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.label),5)],12,Vd))),128))],4)):(t.openBlock(),t.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myOption,c=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.value},[e.optionType==="default"?(t.openBlock(),t.createBlock(s,{key:0,value:c.value,style:t.normalizeStyle(e.radioStyle)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(t.openBlock(),t.createBlock(l,{key:1,value:c.value,onClick:f=>e.onClickButton(c.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const ll=pe(me(qd,[["render",Hd],["__scopeId","data-v-baa84768"]])),ca={...ke,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},da=ve(ca),sl=["click","refreshData","resetRecord"],Kt=async e=>{var d;const o=await dt.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([n]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},fa={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[]},ua=ve(fa),cl=["showModal","hideModal"],Rt=["ecanBorder","ecanTabs","ecanCirculate"];function dl(e){const{containerMap:o={},sourceList:n=[]}=e,a=Ie.cloneDeep(e.componentList),r=a.filter(i=>i.type==="ecanTabs"&&i.isAutoScroll);if(r!=null&&r.length)for(const i of r){const s=o[i.id],l=[];if((!$t(i,"componentList")||!(i!=null&&i.componentList))&&(i.componentList=[]),s){let d=0;for(const c in s){const f=s[c],y=[];if(f!=null&&f.length)for(const u of f){let h=a.find(m=>m.id===u);h||(h=n.find(m=>m.id===u)),h&&(y.push(h),Rt.includes(h.type)&&y.push(...rn(h.id,o,n)))}for(const u of y)$t(u,"scale")?parseFloat(c)>0&&(u.left=parseFloat(u.left)+d+"px"):(u.left=parseFloat(u.sourceLeft||u.left)-parseFloat(i.sourceLeft||i.left)+d+"px",u.top=parseFloat(u.sourceTop||u.top)-parseFloat(i.sourceTop||i.top)+"px"),l.includes(u.id)||l.push(u.id);i.componentList.push(...y),d=Kd(y)}}for(const d of l){const c=a.findIndex(f=>f.id===d);c!==-1&&a.splice(c,1)}}return a}function fl(e){var i,s;const{combinationMap:o={},sourceList:n=[]}=e,a=e.containerMap,r=Ie.cloneDeep([...e.componentList,...Wd(a,n)]);if(jd(a,r),(i=Object.keys(a))!=null&&i.length||(s=Object.keys(o))!=null&&s.length){for(const u in a){const h=r.find(m=>m.id===u);if(h){$t(h,"parentId")||(h.parentId="",h.sourceLeft=h.left,h.sourceTop=h.top);for(const m in a[u])if(a[u][m])for(const g of a[u][m]){const C=r.find(D=>D.id===g);C&&(C.parentId=u,C.sourceLeft=C.left,C.sourceTop=C.top,C.left=parseFloat(C.left)-parseFloat(h.sourceLeft||h.left)+"px",C.top=parseFloat(C.top)-parseFloat(h.sourceTop||h.top)+"px")}}}const l=Array.from(new Set(r.filter(u=>(!$t(u,"parentId")||u.parentId==="")&&u.combinationId).map(u=>u.combinationId))),d=Ud(l,{...e,componentList:r});d!=null&&d.length&&r.unshift(...d);const c=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],f=r.filter(u=>c.includes(u.type)&&!$t(u,"parentId")),y=[];for(const u of f)if(u){const h=u.id+"_vir";y.push({id:h,keyName:u.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:u.width,height:u.height,left:u.left,top:u.top,sourceLeft:u.left,sourceTop:u.top}),u.parentId=h,u.sourceLeft=u.left,u.sourceTop=u.top,u.left=0,u.top=0}y!=null&&y.length&&r.unshift(...y);for(const u of r){const h=document.body.clientWidth;if(u.parentId===""&&Rt.includes(u.type))u.sourceWidth=parseFloat(u.width),u.height=(h/(u.sourceWidth/parseFloat(u.height))).toFixed(2)+"px",u.width="100%",u.position="relative",u.top="auto",u.left="auto";else{const m=r.find(g=>g.id===u.parentId);if((m==null?void 0:m.parentId)===""){const g=m.sourceWidth||parseFloat(m.width),C=h/g;u.scale=C,u.top=parseFloat(u.top)*C-parseFloat(u.height)*(1-C)/2+"px",u.left=parseFloat(u.left)*C-parseFloat(u.width)*(1-C)/2+"px"}}u.type==="ecanModal"&&(u.parentId="",u.fullModal=!0)}return Gd(r)}return r}function jd(e,o){const n=Ie.cloneDeep(e),a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=n[r.id];for(const s in i)for(const l of i[s]){const d=o.find(c=>c.id===l);if(d&&Rt.includes(d.type)){const c=rn(d.id,n,o);for(const f of c)e[r.id][s].push(f.id),Rt.includes(f.type)&&delete e[f.id];delete e[d.id]}}}}function Wd(e,o){const n=[],a=o.filter(r=>r.type==="ecanTabs"&&r.isAutoScroll);if(a!=null&&a.length)for(const r of a){const i=e[r.id];for(const s in i)if(parseFloat(s)>0)for(const l of i[s]){const d=o.find(c=>c.id===l);d&&(n.push(d),Rt.includes(d.type)&&n.push(...rn(d.id,e,o)))}}return n}function rn(e,o,n){const a=[],r=o[e];for(const i in r)for(const s of r[i]){const l=n.find(d=>d.id===s);l&&(a.push(l),Rt.includes(l.type)&&a.push(...rn(l.id,o,n)))}return a}function Ud(e,o,n){const{combinationMap:a={},componentList:r=[]}=o,i=[];for(const s of e){const l=a[s];if(l!=null&&l.length){const d=r.filter(c=>l.includes(c.id));if(d!=null&&d.length){const c=$d(d);if(c){i.push({...c,id:s,keyName:s,parentId:n||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:c.left,sourceTop:c.top});for(const f of d)f&&(f.parentId=s,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(c.left)+"px",f.top=parseFloat(f.top)-parseFloat(c.top)+"px")}}}}return i}function Gd(e){const n=e.filter(a=>a.parentId==="");if(n!=null&&n.length){const a=Ie.cloneDeep(n).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function $d(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],n=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&n&&a&&r?{left:n.left,top:o.top,width:r.computedLeft-parseFloat(n.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}function Kd(e){const o=e.map(n=>parseFloat(n.left)+parseFloat(n.width)).sort((n,a)=>a-n)[0];return o||0}function ha(e,o,n){const a=e[n],r=[];if(a)for(const i in a){const s=a[i];for(const l of s){const d=o.find(c=>c.id===l);d&&(r.push(d),Rt.includes(d.type)&&r.push(...rn(d.id,e,o)))}}return r}const Zd=t.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Yd(e,o,n,a,r,i){return e.component.parentId?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#container_"+e.component.parentId},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.component.type),t.normalizeProps(t.mergeProps({key:1},e.component)),null,16))}const Qd=pe(me(Zd,[["render",Yd]])),Jd=t.defineComponent({name:"EcanModal",components:{AModal:se.Modal,CloseOutlined:ds,Render:Qd},props:{...ua},setup(e,{emit:o}){const n=t.ref([]),a=t.inject("isMobile",!1),r=t.inject("getContainerMap",()=>{}),i=t.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=t.inject(Te,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=t.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),f=e.fullModal?"1920px":e.width,y=e.fullModal?"1080px":e.height,u=e.originalWidth,h=e.originalHeight,m=t.ref("80%"),g=t.ref(0),C=t.ref(),D=t.ref(0),b=t.ref({}),S=Ae(e),p=t.ref({}),T=t.ref(!1),E=t.ref();let B;const O=()=>{C.value=parseFloat(f)/parseFloat(u);const Y=parseFloat(y)/parseFloat(h),ie=document.body.offsetWidth,re=document.body.offsetHeight;g.value=ie*t.unref(C),D.value=re*Y,m.value=`${t.unref(C)*100}%`,b.value={width:`${t.unref(g)}px`,height:`${t.unref(D)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},p.value={...t.unref(S),backgroundImage:yt(e.backgroundImage,!0)},a?p.value={...p.value,width:"100%",height:"100%"}:p.value={...p.value,transform:`scale(${t.unref(g)/parseFloat(f)},${t.unref(D)/parseFloat(y)})`,width:f,height:y}},N=Ie.debounce(()=>{O()},100),A=()=>{const Y=window.MutationObserver;B=new Y(N),B.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},k=()=>{B&&(B.disconnect(),B.takeRecords(),B=null)},I=t.ref(!1),{touchRequest:x}=t.inject(Fe,{touchRequest:()=>{}}),w=t.ref(""),v=()=>{var re;const{title:Y}=e,ie=(re=t.unref(l))==null?void 0:re.RECORD;return ie?De(Y,{textData:ie},{useNewline:!1,useSpace:!1}):Y},R=Be(e),F=()=>{a&&(document.documentElement.style.overflow="hidden"),w.value=v(),I.value=!0},q=R("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",n.value=[]),I.value=!1}),W=()=>{q()},G=()=>{q(),s()},{setModalModel:z,pushUseModalIds:P,popUseModalIds:M}=t.inject(pr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,ie)=>{}}),_=t.computed(()=>{let Y=e.componentList;const ie=Ie.cloneDeep(e.componentList),re=r(),Q=i(),X={containerMap:re,combinationMap:Q};a&&(Y=fl({...X,componentList:ie,sourceList:e.allComponentList})),Y=dl({...X,componentList:Y,sourceList:e.allComponentList});const te=[];for(const he of Y)if(he.type==="ecanCirculate"){const be=ha(re,t.unref(ie),he.id);he.componentList=be,te.push(...be.map(we=>we.id))}if(te!=null&&te.length)for(const he of te){const be=Y.findIndex(we=>we.id===he);be!==-1&&Y.splice(be,1)}return Y}),L=()=>{const Y=e.id;let ie=[];const re=e.componentList;Array.isArray(re)&&(ie=re.map(Q=>Q.id),z(Y,[...new Set(ie)]))};t.watch(()=>I.value,async Y=>{Y?(T.value=!1,P(e.id),L(),await t.nextTick(()=>{O(),window.addEventListener("resize",N),A(),T.value=!0}),x()):(M(),window.removeEventListener("resize",N),k())});const V=t.computed(()=>t.unref(C)>=1),Z=t.computed(()=>e.fullModal),U=t.computed(()=>{let Y="ecan-modal";return t.unref(V)&&(Y+=" ecan-full-width-modal"),t.unref(Z)&&(Y+=" ecan-full-modal"),Y});return Re(e,{showModal:F,hideModal:q}),{modalRef:E,containStyle:b,contentStyle:p,getContainer:d,modalStyle:c,modalWith:m,isFullModal:Z,style:S,visible:I,showModal:F,onOk:W,onCancel:G,isFullWidth:V,wrapClassName:U,ready:T,usedComponentList:_,isMobile:a,readyIds:n,hasOwn:$t,onComponentReady:Y=>{n.value.push(Y)},formatTitle:w}}}),Rh="",Oh="";function Xd(e,o,n,a,r,i){const s=t.resolveComponent("close-outlined"),l=t.resolveComponent("render"),d=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.formatTitle),5)):t.createCommentVNode("",!0),e.isShowCloseBtn?(t.openBlock(),t.createBlock(s,{key:1,class:"close-icon",style:t.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):t.createCommentVNode("",!0)],4),e.usedComponentList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isMobile?"mobile-wrap":"")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.usedComponentList,(c,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c.id+f},[e.isMobile?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(t.openBlock(),t.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:1},c)),null,16))],64))),128))],2)):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(me(Jd,[["render",Xd],["__scopeId","data-v-ec736357"]]));Je.use([Et.CanvasRenderer,ht.PieChart,Ce.TitleComponent,Ce.ToolboxComponent,Ce.TooltipComponent,Ce.LegendComponent]);const ef=t.defineComponent({name:"EcanPie",props:{...da},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e),r=t.ref([]),i=t.ref(),s=t.ref({}),l=t.computed(()=>{let{data:k=[]}=t.unref(r)[0]||{};if(Array.isArray(e.colors)){const I=e.isUseLabelColors,x=e.colors;k=k.map((w,v)=>({label:I?{color:x[v]}:{},...w}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var I;n.value=!0,(I=i.value)==null||I.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:I=>{const{marker:x,seriesName:w,name:v,value:R,percent:F,data:q}=I||{};return De(e.tooltipFormatter,{textData:{marker:x,name:v,value:R,percent:F,a:w,b:v,c:R,d:F,...q}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:t.unref(s),color:e.colors,series:[{data:k,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:n.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:Pc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const k=n.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:k+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:k}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:I=>{const{data:x}=r.value[0]||{};let w=0,v,R="0%";if(x)for(const F of x)F.name===I&&(v=+F.value),w+=+F.value;return w&&(R=`${(v/w*100).toFixed(2)}%`),an(e.legendFormatter,{name:I,value:v,percent:R})}}},c=()=>{n.value=!1},{getGlobalModel:f,setGlobalModel:y}=t.inject(Te,{getGlobalModel:k=>{},setGlobalModel:(k,I)=>{}}),{pageMode:u}=t.inject(Me,{pageMode:"normal"}),h=(k=[],I)=>{const{dataset:x}=zt(k,I);r.value=x},m=(k=[],I)=>{const x=zt(k,I);r.value=x.dataset};t.watch(()=>e.data,k=>{(e.dataType==="static"||t.unref(u)==="design")&&h(k)},{immediate:!0,deep:!0}),t.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const g=t.ref(!1),C=Ve(e),D=async()=>{var k,I;if(e.dataType==="request")try{g.value=!0;const x=await C();h((I=(k=x==null?void 0:x.data)==null?void 0:k.data)==null?void 0:I.rows,e.valueTypeDataFieldNames)}catch(x){console.error(x)}finally{g.value=!1}},b=Be(e);y(e.id,{type:e.type,RECORD:""});const S=b("click",k=>{const I=f(e.id);y(e.id,{...I,type:e.type,RECORD:k==null?void 0:k.data})}),p=Ze(e),T=async()=>{var k;try{g.value=!0;const I=await p(),{data:x}=(I==null?void 0:I.data)||{};if(x){const{columns:w=[],rows:v=[]}=((k=I==null?void 0:I.data)==null?void 0:k.data)??{};let R=[];if(w.length>0){const F=w[0],q=w[1];R=v.filter(W=>!!W).map(W=>({name:W[F],value:isNaN(W[q])?0:W[q]||0}))}m(R)}}catch(I){console.error(I)}finally{g.value=!1}},{loadedData:E}=t.inject(vt,{loadedData:{}}),B=t.ref(!1);t.watch(E,k=>{if(e.dataType==="indicator"){const I=on(e.graphicConfig);I!=null&&I.length&&(!t.unref(B)&&it(e.graphicConfig,k)?(B.value=!0,O()):it(e.graphicConfig,k)||(B.value=!1))}},{deep:!0});const O=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(E))&&T();break;case"request":D();break}};Re(e,{resetRecord:()=>{const k=e.id,I=f(k);y(k,{...I,RECORD:""})},refreshData:O,click:S}),o({refreshData:O});const{setRequest:A}=t.inject(Fe,{setRequest:k=>{}});return typeof A=="function"&&A({id:e.id,requestFn:O,sortNum:e.requestSort}),{option:l,style:a,click:S,onClose:c,loading:g,ecanModal:i}}}),Lh="";function tf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ul=pe(me(ef,[["render",tf]])),ga={...ke,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},ma=ve(ga),hl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.LineChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.LegendComponent,Ce.MarkLineComponent]);const nf=t.defineComponent({name:"EcanLine",props:{...ma},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ae(e),i=t.ref([]),s=t.ref([]),l=t.ref(),d=t.computed(()=>a.value?Ue:12),c=t.ref({});let f;const y=t.ref([]),u=t.computed(()=>{const v=e.xAxisLabelFormatter,R=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var F;a.value=!0,(F=l.value)==null||F.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:F=>{var z;const q=F.length;let W="",G=e.tooltipFormatter;f=(z=F[0])==null?void 0:z.data,G===""&&(G="{marker} {a} {c}");for(let P=0;P<q;P++){const{marker:M,seriesName:_,name:L,value:V,data:Z}=F[P]||{};if(P===0){let U=L;typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(U=(+L).toString()),W+=`${lt(v,U)}<br/>`}W+=De(G,{textData:{marker:M,name:L,value:V,a:_,b:L,c:V||0,...Z}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:t.unref(s).map(F=>{let q={};return F&&typeof F=="object"?q={...F}:q={value:F},q}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(F){return typeof F=="string"&&F[0]==="0"&&!isNaN(+F)&&(F=(+F).toString()),lt(v,F)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(F){return lt(R,F)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(y).map(F=>({name:F.name,icon:e.legendType})),formatter:F=>an(e.legendFormatter,{name:F})},series:t.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:v=>{},setGlobalModel:(v,R)=>{}}),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),D=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),b=(v=[],R=!1)=>{let F;if(e.dataFieldConfigType==="key"){const z=R?e.keyTypeDataFieldNames:null;F=At(v,z)}else if(e.dataFieldConfigType==="value"){const z=R?e.valueTypeDataFieldNames:null;F=zt(v,z)}s.value=F.dimensions,y.value=F.dataset;const q=F.dataset,W=[],G=q.length;for(let z=0;z<G;z++){const P={};e.shadowColor&&(P.shadowColor=e.shadowColor,P.shadowBlur=e.shadowBlur,P.shadowOffsetY=e.shadowOffsetY,P.shadowOffsetX=e.shadowOffsetX),W.push({type:"line",...q[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...P},...t.unref(D)})}i.value=W},S=(v=[],R,F=!1)=>{const W=At(v,F?R:null,!0);s.value=W.dimensions,y.value=W.dataset;const G=W.dataset,z=[],P=G.length;for(let M=0;M<P;M++){const _={};e.shadowColor&&(_.shadowColor=e.shadowColor,_.shadowBlur=e.shadowBlur,_.shadowOffsetY=e.shadowOffsetY,_.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...G[M],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[M]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[M],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,..._},...t.unref(D)})}i.value=z};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([v])=>{(e.dataType==="static"||t.unref(C)==="design")&&b(v)},{immediate:!0,deep:!0});const p=t.ref(!1),T=Ve(e),E=async()=>{var v,R;if(e.dataType==="request")try{p.value=!0;const F=await T();b((R=(v=F==null?void 0:F.data)==null?void 0:v.data)==null?void 0:R.rows,!0)}catch(F){console.error(F)}finally{p.value=!1}},B=Be(e);g(e.id,{type:e.type,RECORD:""});const O=B("click",v=>{const R=m(e.id);g(e.id,{...R,type:e.type,RECORD:e.tooltipShow?f:v.data})}),N=v=>{n.value.chart.containPixel("grid",[v.offsetX,v.offsetY])&&O()};e.tooltipShow?c.value["zr:click"]=N:c.value.click=O;const A=Ze(e),k=async()=>{var v;try{p.value=!0;const R=await A(),{columns:F=[],rows:q=[]}=((v=R==null?void 0:R.data)==null?void 0:v.data)??{};let W;F.length>0&&(W={name:F[0],types:F.slice(1).map(G=>({label:G,value:G}))}),S(q,W,!0)}catch(R){console.error(R)}finally{p.value=!1}},I=()=>{switch(e.dataType){case"indicator":k();break;case"request":E();break}};Re(e,{refreshData:I,resetRecord:()=>{const v=e.id,R=m(v);g(v,{...R,RECORD:""})},click:O});const{setRequest:w}=t.inject(Fe,{setRequest:v=>{}});return typeof w=="function"&&w({id:e.id,requestFn:I,sortNum:e.requestSort}),o({refreshData:I}),{option:u,style:r,click:O,loading:p,onClose:h,ecanModal:l,eventObj:c,echartRef:n}}}),Fh="";function of(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const gl=pe(me(nf,[["render",of]])),ya={...ke,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:""},xa=ve(ya),ml=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,Ce.TitleComponent,Ce.LegendComponent,Ce.DatasetComponent,Ce.ToolboxComponent,Ce.MarkLineComponent]);const af=t.defineComponent({name:"EcanBar",props:{...xa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=Ae(e),d=t.ref([]),c=t.ref(),f=t.ref({});let y;const u=t.computed(()=>a.value?Ue:12),h=t.computed(()=>{const{gradientShow:M,gradientColors:_,gradientOffset:L,barBorderRadius:V}=e,Z=t.unref(d),U=Z.length,ae=[];for(let Y=0;Y<U;Y++){const ie={...Z[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(ie.stack="stack"),ie.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let Q="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:te,name:he,value:be,data:we}=re||{};return Q+=De(X,{textData:{name:he,value:be,a:te,b:he,c:be||0,...we}},{useNewline:!0,useSpace:!0}),Q}},ie.itemStyle={},M&&(ie.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:L,color:_[Y]},{offset:1,color:_[Y]}]}}),V){const re=V.split(",");if(re!=null&&re.length){const Q=[];for(const X of re){const te=parseFloat(X);isNaN(te)||Q.push(te)}ie.itemStyle.borderRadius=Q}}e.isShowMarkLine&&(ie.markLine={data:[{type:e.markLineType}]}),ae.push(ie)}return ae}),m=t.ref([]),g=t.ref(!1),C=t.computed(()=>{const M=e.yAxisLabelFormatter,_=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const L=n.value.chart.getOption(),{xAxis:V}=L||{};V&&V.length&&(s.value=V[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;a.value=!0,(L=c.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{var ae;const V=L.length;let Z="",U=e.tooltipFormatter;y=(ae=L[0])==null?void 0:ae.data,U===""&&(U="{marker} {a} {c}");for(let Y=0;Y<V;Y++){const{marker:ie,seriesName:re,name:Q,value:X,data:te}=L[Y]||{};if(Y===0){let he=Q;typeof Q=="string"&&Q[0]==="0"&&!isNaN(+Q)&&(he=(+Q).toString()),Z+=`${lt(_,he)}<br/>`}Z+=De(U,{textData:{marker:ie,name:Q,value:X,a:re,b:Q,c:X||0,...te}},{useNewline:!0,useSpace:!0}),Z+="<br/>"}return Z},textStyle:{color:e.tooltipTextStyleColor,fontSize:u.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map((L,V)=>({name:L.name,itemStyle:{color:e.colors[V]},icon:e.legendType})),formatter:L=>an(e.legendFormatter,{name:L})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(T),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(L){return typeof L=="string"&&L[0]==="0"&&!isNaN(+L)&&(L=(+L).toString()),lt(_,L)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(m):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(L){return lt(M,L)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},series:t.unref(h)}}),{pageMode:D}=t.inject(Me,{pageMode:"normal"}),b=()=>{a.value=!1},S=(M=[],_=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const V=_?e.keyTypeDataFieldNames:null;L=At(M,V)}else if(e.dataFieldConfigType==="value"){const V=_?e.valueTypeDataFieldNames:null;L=zt(M,V)}d.value=L.dataset,m.value=L.dimensions},p=(M=[],_,L=!1)=>{const Z=At(M,L?_:null,!0);d.value=Z.dataset,m.value=Z.dimensions},T=t.computed(()=>t.unref(m).map(M=>{let _={};return M&&typeof M=="object"?_={...M}:_={value:M},_}));t.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([M])=>{(e.dataType==="static"||t.unref(D)==="design")&&S(M)},{immediate:!0,deep:!0});const E=Ve(e),B=async()=>{var M,_;try{g.value=!0;const L=await E();S((_=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:_.rows,!0)}catch(L){console.error(L)}finally{g.value=!1}},O=Ze(e),N=async()=>{var M;try{g.value=!0;const _=await O(),{columns:L=[],rows:V=[]}=((M=_==null?void 0:_.data)==null?void 0:M.data)??{};let Z;L.length>0&&(Z={name:L[0],types:L.slice(1).map(U=>({label:U,value:U}))}),p(V,Z,!0)}catch(_){console.error(_)}finally{g.value=!1}},{loadedData:A}=t.inject(vt,{loadedData:{}}),k=t.ref(!1);t.watch(A,M=>{if(e.dataType==="indicator"){const _=on(e.graphicConfig);_!=null&&_.length&&(!t.unref(k)&&it(e.graphicConfig,M)?(k.value=!0,I()):it(e.graphicConfig,M)||(k.value=!1))}},{deep:!0});const I=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(A))&&N();break;case"request":B();break}},x=(M,_)=>!!t.unref(s)[_.value].value.includes(M),w=async()=>{r.value=!1;const M=n.value.chart.getOption();for(let _=0;_<7;_++)await v(M,_)},v=(M,_)=>new Promise(L=>{setTimeout(()=>{const{series:V,color:Z,xAxis:U}=M,ae=n.value.chart,{splitArea:Y={}}=U[0]||{};V.forEach((ie,re)=>{const Q=ie.data;let X="";_%2?X=Z[re]+"a8":X=Z[re],Q[i.value].itemStyle={color:X}}),_%2?(Y.show=!0,Y.areaStyle.color=t.unref(s).map((ie,re)=>re===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:V,xAxis:U}),L()},200)});o({refreshData:I});const R=Be(e),{getGlobalModel:F,setGlobalModel:q}=t.inject(Te,{getGlobalModel:M=>{},setGlobalModel:(M,_)=>{}});q(e.id,{type:e.type,RECORD:""});const W=R("click",M=>{const _=F(e.id);q(e.id,{..._,type:e.type,RECORD:e.tooltipShow?y:M.data})}),{setRequest:G}=t.inject(Fe,{setRequest:M=>{}});typeof G=="function"&&G({id:e.id,requestFn:I,sortNum:e.requestSort});const z=()=>{const M=e.id,_=F(M);q(M,{..._,RECORD:""})},P=M=>{n.value.chart.containPixel("grid",[M.offsetX,M.offsetY])&&W()};return e.tooltipShow?f.value["zr:click"]=P:f.value.click=W,Re(e,{refreshData:I,click:W,resetRecord:z}),{option:C,style:l,refreshData:I,click:W,loading:g,onClose:b,ecanModal:c,echartRef:n,handleLocationOk:w,onFilterOption:x,locationVisible:r,locationValue:i,locationNames:s,eventObj:f}}}),Mh="",Ph="",rf=e=>(t.pushScopeId("data-v-21d7ed90"),e=e(),t.popScopeId(),e),lf={class:"location-wrap"},sf=rf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function cf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",lf,[sf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const yl=pe(me(af,[["render",cf],["__scopeId","data-v-21d7ed90"]])),pa={...ke,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",yAxisName:"",xAxisName:""},ba=ve(pa),xl=["click","refreshData","resetRecord"];Je.use([Et.CanvasRenderer,ht.ScatterChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.TooltipComponent,Ce.LegendComponent,Ce.MarkLineComponent]);const df=t.defineComponent({name:"EcanScatter",props:{...ba},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e){const o=t.ref(!1),n=Ae(e),a=t.ref([]),r=t.ref(),i=t.computed(()=>o.value?Ue:12),s=t.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=t.computed(()=>{const T=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var B;o.value=!0,(B=r.value)==null||B.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(B){return typeof B=="string"&&B[0]==="0"&&!isNaN(+B)&&(B=(+B).toString()),lt(T,B)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(B){return lt(E,B)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:e.yAxisName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:"right"}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(B){var x;const{marker:O,seriesName:N}=B,A=((x=B==null?void 0:B.data)==null?void 0:x.record)??{},{name:k,value:I}=A;return De(e.tooltipFormatter,{textData:{marker:O,seriesName:N,a:N,b:k,c:I,...A}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize,...t.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=t.inject(Te,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{}}),{pageMode:f}=t.inject(Me,{pageMode:"normal"}),y=(T=[],E)=>{const{name:B="name",value:O="value"}=E||{};a.value=T.map(N=>({value:[N[B],N[O]],record:N}))};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(f)==="design")&&y(T)},{immediate:!0,deep:!0});const u=t.ref(!1),h=Ve(e),m=async()=>{var T,E;if(e.dataType==="request"){u.value=!0;try{const B=await h();y((E=(T=B==null?void 0:B.data)==null?void 0:T.data)==null?void 0:E.rows,e.dataFieldNames)}catch(B){console.error(B)}finally{u.value=!1}}},g=()=>{o.value=!1},C=Be(e);c(e.id,{type:e.type,RECORD:""});const D=C("click",T=>{const E=e.id,B=d(E);c(E,{...B,type:e.type,RECORD:T==null?void 0:T.data})});Re(e,{refreshData:()=>{m()},click:D,resetRecord:()=>{const T=e.id,E=d(T);c(T,{...E,RECORD:""})}});const{setRequest:p}=t.inject(Fe,{setRequest:T=>{}});return typeof p=="function"&&p({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:l,style:n,click:D,loading:u,onClose:g,ecanModal:r}}}),Vh="";function ff(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const pl=pe(me(df,[["render",ff]])),va={...ke,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},Sa=ve(va),uf=t.defineComponent({name:"EcanCustomGraph",props:{...Sa},components:{Echarts:pt},setup(e){const o=Ae(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const r=eval;n.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:n,echarts:n0}}});function hf(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const bl=pe(me(uf,[["render",hf]])),Ca={...ke,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:""},wa=ve(Ca),vl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,Ce.TitleComponent,Ce.LegendComponent,Ce.DatasetComponent,Ce.ToolboxComponent,Ce.MarkLineComponent]);const gf=t.defineComponent({name:"EcanComboGraph",props:{...wa},components:{Spin:Ft,Echarts:pt,EcanModal:kt,AModal:se.Modal},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=t.ref(!1),i=t.ref(null),s=t.ref([]),l=t.ref({});let d;const c=Ae(e),f=t.ref([]),y=t.ref([]),u=t.ref(),h=t.ref([]),m=t.computed(()=>a.value?Ue:12),g=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const _=n.value.chart.getOption(),{xAxis:L}=_||{};L&&L.length&&(s.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;a.value=!0,(_=u.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){se.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(h).map((_,L)=>({name:_.name,itemStyle:{color:e.colors[L]},icon:e.legendType})),formatter:_=>an(e.legendFormatter,{name:_})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:_=>{var ae;const L=_.length;let V="",Z=e.tooltipFormatter;d=(ae=_[0])==null?void 0:ae.data,Z===""&&(Z="{marker} {a} {c}");const U=e.seriesTypes;for(let Y=0;Y<L;Y++){const ie=U[Y],{tooltipFormatter:re}=ie||{},{marker:Q,seriesName:X,name:te,value:he,data:be}=_[Y]||{};if(Y===0){let we=te;typeof te=="string"&&te[0]==="0"&&!isNaN(+te)&&(we=(+te).toString()),V+=`${lt(e.xAxisLabelFormatter,we)}<br/>`}V+=De(re||Z,{textData:{marker:Q,name:te,value:he,seriesName:X,a:X,b:te,c:he||0,...be}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(y).map(_=>{let L={};return _&&typeof _=="object"?L={..._}:L={value:_},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(_){return typeof _=="string"&&_[0]==="0"&&!isNaN(+_)&&(_=(+_).toString()),lt(e.xAxisLabelFormatter,_)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow},name:e.xAxisName,nameTextStyle:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,align:"left"}},yAxis:t.unref(T),series:t.unref(f)})),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),D=()=>{a.value=!1},b=(_=[],L=!1)=>{let V;if(e.dataFieldConfigType==="key"){const U=L?e.keyTypeDataFieldNames:null;V=At(_,U)}else if(e.dataFieldConfigType==="value"){const U=L?e.valueTypeDataFieldNames:null;V=zt(_,U)}y.value=V.dimensions;const Z=V.dataset;h.value=V.dataset,f.value=p(Z)},S=(_=[],L,V=!1)=>{const U=At(_,V?L:null,!0);y.value=U.dimensions;const ae=U.dataset;h.value=U.dataset,f.value=p(ae)};function p(_){const L=[],V=_.length,Z=e.seriesTypes;for(let U=0;U<V;U++){const ae=Z[U],{type:Y,axisIndex:ie}=ae||{};let re={type:Y,yAxisIndex:ie,..._[U]};if(Y==="line"){const Q={};e.shadowColor&&(Q.shadowColor=e.shadowColor,Q.shadowBlur=e.shadowBlur,Q.shadowOffsetY=e.shadowOffsetY,Q.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[U]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[U],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...Q}}}if(Y==="bar"){const{gradientShow:Q,gradientColors:X,gradientOffset:te}=e,he={};if(e.barBorderRadius){const be=e.barBorderRadius.split(",");if(be!=null&&be.length){const we=[];for(const $e of be){const Pe=parseFloat($e);isNaN(Pe)||we.push(Pe)}he.borderRadius=we}}Q&&(he.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[U]},{offset:te,color:X[U]},{offset:1,color:X[U]}]}),re={...re,barWidth:e.barWidth,itemStyle:he}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),L.push(re)}return L}t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([_])=>{(e.dataType==="static"||t.unref(C)==="design")&&b(_)},{immediate:!0,deep:!0});const T=t.computed(()=>{const _=e.yAxis;return _==null?void 0:_.map((L,V)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:V===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:V===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(Z){return lt(L.axisLabelFormatter,Z)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}},name:V===0?e.yAxisLeftName:e.yAxisRightName,nameTextStyle:{fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,align:V===0?"right":"left"}}))}),E=t.ref(!1),B=Ve(e),O=async()=>{var _,L;if(e.dataType==="request")try{E.value=!0;const V=await B();b((L=(_=V==null?void 0:V.data)==null?void 0:_.data)==null?void 0:L.rows,!0)}catch(V){console.error(V)}finally{E.value=!1}},N=Ze(e),A=async()=>{var _;try{E.value=!0;const L=await N(),{columns:V=[],rows:Z=[]}=((_=L==null?void 0:L.data)==null?void 0:_.data)??{};let U;V.length>0&&(U={name:V[0],types:V.slice(1).map(ae=>({label:ae,value:ae}))}),S(Z,U,!0)}catch(L){console.error(L)}finally{E.value=!1}},{loadedData:k}=t.inject(vt,{loadedData:{}}),I=t.ref(!1);t.watch(k,_=>{if(e.dataType==="indicator"){const L=on(e.graphicConfig);L!=null&&L.length&&(!t.unref(I)&&it(e.graphicConfig,_)?(I.value=!0,x()):it(e.graphicConfig,_)||(I.value=!1))}},{deep:!0});const x=()=>{switch(e.dataType){case"indicator":it(e.graphicConfig,t.unref(k))&&A();break;case"request":O();break}},w=(_,L)=>!!t.unref(s)[L.value].value.includes(_),v=async()=>{r.value=!1;const _=n.value.chart.getOption();for(let L=0;L<7;L++)await R(_,L)},R=(_,L)=>new Promise(V=>{setTimeout(()=>{const{series:Z,color:U,xAxis:ae}=_,Y=n.value.chart,{splitArea:ie={}}=ae[0]||{};Z.forEach((re,Q)=>{const X=re.data;let te="";L%2?te=U[Q]+"a8":te=U[Q],X[i.value].itemStyle={color:te}}),L%2?(ie.show=!0,ie.areaStyle.color=t.unref(s).map((re,Q)=>Q===i.value?"#ff003b26":"")):ie.show=!1,Y.setOption({series:Z,xAxis:ae}),V()},200)});o({refreshData:x});const F=Be(e),{getGlobalModel:q,setGlobalModel:W}=t.inject(Te,{getGlobalModel:_=>{},setGlobalModel:(_,L)=>{}});W(e.id,{type:e.type,RECORD:""});const G=F("click",_=>{const L=q(e.id);W(e.id,{...L,type:e.type,RECORD:e.tooltipShow?d:_==null?void 0:_.data})}),z=_=>{n.value.chart.containPixel("grid",[_.offsetX,_.offsetY])&&G()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=G;const{setRequest:P}=t.inject(Fe,{setRequest:_=>{}});return typeof P=="function"&&P({id:e.id,requestFn:x,sortNum:e.requestSort}),Re(e,{resetRecord:()=>{const _=e.id,L=q(_);W(_,{...L,RECORD:""})},refreshData:x,click:G}),{style:c,option:g,click:G,loading:E,onClose:D,ecanModal:u,echartRef:n,handleLocationOk:v,onFilterOption:w,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),Wh="",Uh="",mf=e=>(t.pushScopeId("data-v-1858b3c3"),e=e(),t.popScopeId(),e),yf={class:"location-wrap"},xf=mf(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function pf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),c=t.resolveComponent("a-select-option"),f=t.resolveComponent("a-select"),y=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,t.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(y,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=u=>e.locationVisible=u),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",yf,[xf,t.createVNode(f,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=u=>e.locationValue=u),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(u,h)=>(t.openBlock(),t.createBlock(c,{key:h,value:h},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Sl=pe(me(gf,[["render",pf],["__scopeId","data-v-1858b3c3"]])),Aa={...ke,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},ka=ve(Aa),Cl=["refreshData","click","resetRecord"];Je.use([Et.CanvasRenderer,ht.RadarChart,Ce.ToolboxComponent,Ce.TitleComponent,Ce.LegendComponent]);const bf=t.defineComponent({name:"EcanRadar",props:{...ka},components:{Spin:Ft,Echarts:pt,EcanModal:kt},setup(e,{expose:o}){const n=t.ref(),a=t.ref(!1),r=Ae(e),i=t.ref([]),s=t.ref(),l=t.computed(()=>a.value?Ue:12),d=t.ref([]),c=t.ref(e.valueTypeDataFieldNames.name),f=t.computed(()=>{const x=t.unref(d),w=x.length,v=[];for(let R=0;R<w;R++){const{name:F,data:q=[]}=x[R],W=[{name:F,value:q.map(P=>P.value)}];let G=e.colors[R];if(e.gradientShow){const{gradientOffset:P,gradientColors:M}=e;G={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:e.colors[R]},{offset:P,color:M[R]},{offset:1,color:M[R]}]}}const z={type:"radar",name:F,data:W,areaStyle:{color:G,opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:P=>{const{data:M,value:_}=P;let L=0,V="0%";if(M)for(const Z of M.value)L+=+Z;return L&&(V=`${(_/L*100).toFixed(2)}%`),De(e.labelFormatter,{textData:{value:_,percent:V}},{useNewline:!1,useSpace:!1})}}};v.push(z)}return v}),y=t.computed(()=>{var F;const x=[],w=[],v=t.unref(d),R=v.length;for(let q=0;q<R;q++){const{data:W=[]}=v[q];for(let G=0;G<W.length;G++)w.push(W[G].value)}if((F=i.value)!=null&&F.length){const q=w!=null&&w.length?Math.max(...w)*1.2:0;for(const W of i.value)x.push({name:W,max:q})}return x}),u=t.computed(()=>({toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Kt(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var x;a.value=!0,(x=s.value)==null||x.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:x=>{let w="",v=e.tooltipFormatter;v===""&&(v="{marker} {a} {c}");for(let R=0;R<t.unref(y).length;R++){const F=t.unref(y)[R],{marker:q,seriesName:W,value:G}=x||{};R===0&&W&&(w+=`${W}<br/>`),w+=De(v,{textData:{marker:q,name:F.name,value:G[R],a:F.name,b:F.name,c:G[R]||0,type:W}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},position:e.tooltipPosition||void 0},radar:{indicator:t.unref(y),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:t.unref(d).map(x=>({name:x.name,icon:e.legendType})),formatter:x=>an(e.legendFormatter,{name:x})},series:t.unref(f)})),h=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:g}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{}}),{pageMode:C}=t.inject(Me,{pageMode:"normal"}),D=(x=[],w=!1)=>{let v;if(e.dataFieldConfigType==="key"){const R=w?e.keyTypeDataFieldNames:null;v=At(x,R)}else if(e.dataFieldConfigType==="value"){const R=w?e.valueTypeDataFieldNames:null;v=zt(x,R)}i.value=v.dimensions,d.value=v.dataset},b=(x=[],w,v=!1)=>{const F=At(x,v?w:null,!0);i.value=F.dimensions,d.value=F.dataset};t.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll,e.labelFormatter],([x])=>{(e.dataType==="static"||t.unref(C)==="design")&&D(x)},{immediate:!0,deep:!0});const S=t.ref(!1),p=Ve(e),T=async()=>{var x,w;if(e.dataType==="request")try{S.value=!0;const v=await p();D((w=(x=v==null?void 0:v.data)==null?void 0:x.data)==null?void 0:w.rows,!0)}catch(v){console.error(v)}finally{S.value=!1}},E=Be(e);g(e.id,{type:e.type,RECORD:""});const B=x=>{const w=x.event.topTarget.__dimIdx;w!==void 0&&E("click",()=>{var q;const{value:v,name:R}=x.data||{},F=m(e.id);g(e.id,{...F,type:e.type,RECORD:{[t.unref(c)]:((q=t.unref(y)[w])==null?void 0:q.name)||"",[R]:v[w],seriesName:R}})})()},O=Ze(e),N=async()=>{var x;try{S.value=!0;const w=await O(),{columns:v=[],rows:R=[]}=((x=w==null?void 0:w.data)==null?void 0:x.data)??{};let F;v.length>0&&(c.value=v[0],F={name:v[0],types:v.slice(1).map(q=>({label:q,value:q}))}),b(R,F,!0)}catch(w){console.error(w)}finally{S.value=!1}},A=()=>{switch(e.dataType){case"indicator":N();break;case"request":T();break}};Re(e,{refreshData:A,resetRecord:()=>{const x=e.id,w=m(x);g(x,{...w,RECORD:""})},click:B});const{setRequest:I}=t.inject(Fe,{setRequest:x=>{}});return typeof I=="function"&&I({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:u,style:r,click:B,loading:S,onClose:h,ecanModal:s,echartRef:n}}}),$h="";function vf(e,o,n,a,r,i){const s=t.resolveComponent("echarts"),l=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(l,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const wl=pe(me(bf,[["render",vf]])),Sf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Cf="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==",wf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ta={...ke,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=ve(Ta),Al=["click"],kf=t.defineComponent({name:"EcanBorder",props:{...Ba},setup(e){const o=Ae(e,["background"]),n=t.computed(()=>{const{isTransparent:m,gradientShow:g,gradientColor:C,gradientOffset:D,gradientAngle:b,backgroundColor:S}=e;if(g){let p=C;return m&&(p="transparent"),p?{background:`linear-gradient(${b}, ${S}, ${p} ${D*100}%)`}:{}}else return{}}),a=t.computed(()=>{const{events:m}=e;let g={};return m!=null&&m.length&&m.find(D=>D.emit==="showModal")&&(g={cursor:"pointer"}),g}),{theme:r}=t.inject(Me,{theme:"light"}),i=t.computed(()=>{let m="";switch(e.titleMode){case"type-2":m="2";break}return m}),s=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":Sf,"../../assets/border-title-decoration-left2.png":Cf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=t.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":wf,"../../assets/border-title-decoration-right2.png":Af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=t.computed(()=>({width:"100%",height:"100%"})),c=t.computed(()=>{const{borderRadius:m}=e,g=[],C={};if(m){const D=m.split(",");for(const b of D)(+b||+b==0)&&g.push(+b+"px")}return g!=null&&g.length&&(C.borderRadius=g.join(" ")),C}),y=Be(e)("click",()=>{}),u=t.ref([]);t.watch(()=>e.data,m=>{u.value=m},{immediate:!0,deep:!0}),Re(e,{click:y});const{setGlobalModel:h}=t.inject(Te,{setGlobalModel:(m,g)=>{}});return h(e.id,{type:e.type,value:u}),{style:o,gradientStyle:n,click:y,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),Zh="",Tt=e=>(t.pushScopeId("data-v-8dd53b8f"),e=e(),t.popScopeId(),e),Tf=["id"],Bf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ef=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Df=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),If=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Rf={class:"title-item"},Of=["src"],_f={class:"title"},Lf=["src"],Nf=Tt(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ff=Tt(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),zf=Tt(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Mf=Tt(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Pf={key:2,class:"left-title"},qf={class:"title"};function Vf(e,o,n,a,r,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Bf,Ef,Df,If],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",{class:t.normalizeClass(["title-item-wrapper",e.titleMode])},[t.createElementVNode("div",Rf,[t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,Of),t.createElementVNode("div",_f,t.toDisplayString(e.title),1),t.createElementVNode("img",{class:t.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,Lf)])],2),Nf,Ff,zf,Mf],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Pf,[t.createElementVNode("div",qf,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],12,Tf)}const kl=pe(me(kf,[["render",Vf],["__scopeId","data-v-8dd53b8f"]])),Ea={...ke,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[]},Da=ve(Ea),Tl=["tabChange"],Hf=t.defineComponent({name:"EcanTabs",props:{...Da},components:{ASelect:se.Select,ASelectOption:se.SelectOption,MarqueeScroll:Mn},setup(e){const o=Ae(e),n=t.ref(0);t.watch(()=>e.activeKey,m=>{n.value=m},{immediate:!0});const{pageMode:a}=t.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const m=Array.isArray(t.unref(s))?t.unref(s).length-1:0;!e.isAutoScroll&&e.autoSwitch&&m>0&&(r=setInterval(()=>{const g=t.unref(n)+1;g<=m?n.value=g:n.value=0,l.value=t.unref(s)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(r)});const s=t.ref([]),l=t.ref({});t.watch(()=>e.data,m=>{s.value=m,l.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>n.value===m,c=Be(e),{setGlobalModel:f}=t.inject(Te,{setGlobalModel:(m,g)=>{}});f(e.id,{value:l,activeKey:n});const{emitRefreshPage:y}=t.inject(tn,{emitRefreshPage:()=>{}}),u=(m,g)=>{c("tabChange",()=>{g!==t.unref(n)&&(l.value=m,n.value=g,y())})()},h=t.computed(()=>{const m=e.componentList.map(g=>parseFloat(g.left)+parseFloat(g.width)).sort((g,C)=>C-g)[0];return{width:m?m+"px":"100%"}});return Re(e,{tabChange:u}),{style:o,activeKey:n,isActive:d,tabChange:u,myData:s,useImagePath:yt,pageMode:a,scrollWrapStyle:h}}}),Qh="",jf=["id"],Wf=["onClick"];function Uf(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select"),d=t.resolveComponent("marquee-scroll");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style),id:"container_"+e.id},[e.pageMode==="design"||!e.isAutoScroll?(t.openBlock(),t.createElementBlock("div",{key:0,class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(f)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(f)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:f,onClick:t.withModifiers(y=>e.tabChange(c,f),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(f)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,Wf))),128)):e.tabType==="select"?(t.openBlock(),t.createBlock(l,{key:1,value:e.activeKey,style:t.normalizeStyle({width:e.tabWidth})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,value:f,onClick:y=>e.tabChange(c,f)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.pageMode!=="design"&&e.isAutoScroll?(t.openBlock(),t.createBlock(d,{key:1,visible:e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)],12,jf)}const Bl=pe(me(Hf,[["render",Uf],["__scopeId","data-v-132544b5"]])),Ia={...ke,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff"},Ra=ve(Ia),El=["click","refreshData","resetRecord"];let Dl=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((o,n)=>(n&=63,n<36?o+=n.toString(36):n<62?o+=(n-26).toString(36).toUpperCase():n>62?o+="-":o+="_",o),"");const Gf=t.defineComponent({name:"EcanCirculate",props:{...Ra,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll:Mn,Skeleton:en},setup(e,{expose:o}){const n=t.ref(!1),a=Ae(e,["background"]),r=t.inject("usedComponentList",[]),i=t.inject("isMobile",!1),{getGlobalModel:s,setGlobalModel:l}=t.inject(Te,{getGlobalModel:B=>{},setGlobalModel:(B,O)=>{}}),d=t.ref([]),c=t.ref({}),{pageMode:f}=t.inject(Me,{pageMode:"normal"}),y=t.computed(()=>{if(t.unref(i)){const B=document.body.clientWidth,O=e.sourceWidth||parseFloat(e.width);return B/O||1}else return 1});function u(B,O){const N=O.find(A=>A.id===e.id);if(N)for(const A of B)A.left=parseFloat(A.left)-parseFloat(N.sourceLeft||N.left)+"px",A.top=parseFloat(A.top)-parseFloat(N.sourceTop||N.top)+"px"}const h=B=>{const O=B.sort((A,k)=>parseFloat(A.left)-parseFloat(k.left))[0],N=B.map(A=>parseFloat(A.left)+parseFloat(A.width)).sort((A,k)=>k-A)[0];if(O&&N){const A=parseFloat(O.left);return{width:N-A,left:A}}else return{width:0,left:0}},m=t.ref({}),g=B=>{var F,q;const O=[],{graphicConfig:N,id:A,componentList:k,keyFieldMap:I,unitInterval:x}=e;let w=Ie.cloneDeep(k),v=[];if((F=t.unref(r))!=null&&F.length)for(const W of t.unref(r))v.push(W),(q=W==null?void 0:W.componentList)!=null&&q.length&&v.push(...W.componentList);if(N.pageMode==="design"&&N.preview){const{containerMap:W}=N.pageConfig||{};v=N.componentList||[],v.push(e),w=ha(W,Ie.cloneDeep(v),A)}u(w,v);const R=h(w);if(B!=null&&B.length){const{width:W,left:G}=R;let z=0;for(const P of B){const M=Dl(),_=Ie.cloneDeep(w);for(const L of _){const V=I.find(U=>U.keyName===L.keyName),Z=Dl();if(L.left=(parseFloat(L.left)+z)*t.unref(y)+"px",L.top=parseFloat(L.top)*t.unref(y)+"px",L.scale=t.unref(y),L.id=Z,L.keyName=L.name+"_"+Z,L.unitId=M,V!=null&&V.fieldName)switch(L.type){case"ecanText":{const U=L.text.match(/\{(.+?)\}/g);L.data={value:String(P[V.fieldName])},U!=null&&U.length||(L.text="{value}");break}}}z+=x+W,O.push(..._),m.value[M]=P}c.value={width:(B.length*(W+x)+G)*t.unref(y)+"px"}}d.value=O,console.log("resultList",O)},C=Ze(e),D=async()=>{var B;try{n.value=!0;const O=await C(),{rows:N=[]}=((B=O==null?void 0:O.data)==null?void 0:B.data)??{};g(N)}catch(O){console.error(O)}finally{n.value=!1}},b=()=>{switch(e.dataType){case"indicator":D();break}};Re(e,{refreshData:b,resetRecord:()=>{const B=e.id,O=s(B);l(B,{...O,RECORD:""})}}),o({refreshData:b}),l(e.id,{type:e.type,RECORD:""});const{setRequest:p}=t.inject(Fe,{setRequest:B=>{}});typeof p=="function"&&p({id:e.id,requestFn:b,sortNum:e.requestSort});const T=Be(e);return{loading:n,style:a,myComponentList:d,scrollWrapStyle:c,pageMode:f,click:B=>{const{target:O}=B;if(O){const N=O.getAttribute("unitId");N&&T("click",()=>{const A=s(e.id);l(e.id,{...A,type:e.type,RECORD:t.unref(m)[N]})})()}}}}}),Xh="",$f=["id"];function Kf(e,o,n,a,r,i){const s=t.resolveComponent("marquee-scroll"),l=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-circulate",style:t.normalizeStyle(e.style),id:"container_"+e.id,onClick:o[0]||(o[0]=(...d)=>e.click&&e.click(...d))},[t.createVNode(l,{loading:e.loading},{default:t.withCtx(()=>{var d;return[(d=e.myComponentList)!=null&&d.length?(t.openBlock(),t.createBlock(s,{key:0,visible:!["design","normal"].includes(e.pageMode)&&e.isAutoScroll,step:e.scrollSpeed,vertical:!1,style:t.normalizeStyle({height:e.height}),wrapStyle:{overflow:"auto"}},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"scroll-wrap",style:t.normalizeStyle(e.scrollWrapStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myComponentList,c=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.normalizeProps(t.mergeProps({key:c.id},c)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,$f)}const Il=pe(me(Gf,[["render",Kf],["__scopeId","data-v-e355b1ff"]])),Oa={...ke,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},_a=ve(Oa),Rl=["click"],La=t.defineComponent({name:"EcanImage",props:{..._a},setup(e){const o=Ae(e),n=t.computed(()=>yt(e.imgUrl)),{pageMode:a}=t.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=t.inject(Te,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Be(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",f=Bi(t.unref(a),c),y=e.href;let u=y||f;u=De(u);const h=e.target;h&&(h!=="event"?window.open(u,"_"+h):window.parent.postMessage({type:"openPage",url:y},"*"))});return Re(e,{click:l}),{style:o,myImgUrl:n,onClick:l}}}),Ol=()=>{t.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},_l=La.setup;La.setup=_l?(e,o)=>(Ol(),_l(e,o)):Ol;const t1="",Zf=["src"];function Yf(e,o,n,a,r,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,class:"ecan-image",style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Zf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Ll=pe(me(La,[["render",Yf],["__scopeId","data-v-47ea6e7c"]])),Na={...ke,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Fa=ve(Na),Qf=t.defineComponent({name:"EcanIframe",props:{...Fa},setup(e){const o=Ae(e),{contextRequestUrl:n}=t.inject(Me,{contextRequestUrl:""}),a=t.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=t.unref(n);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${_s||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),o1="",Jf=["src"];function Xf(e,o,n,a,r,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Jf)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Nl=pe(me(Qf,[["render",Xf],["__scopeId","data-v-19bc100c"]])),za={...ke,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},Ma=ve(za),Fl=["click","refreshData","resetRecord","exportTableData"],eu="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",tu="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==",nu="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==",Pa=t.defineComponent({name:"EcanTable",components:{Skeleton:en,AButton:se.Button,AInput:se.Input,ACheckboxGroup:se.CheckboxGroup,ATable:se.Table,ATableSummary:se.TableSummary,ATableSummaryRow:se.TableSummaryRow,ATableSummaryCell:se.TableSummaryCell},props:{...Ma},setup(e,{expose:o}){const n=t.ref(!1),a=t.computed(()=>{const H=Ie.cloneDeep(e.columns);return e.isUseSeq&&H.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&H.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),H}),r=t.ref(),i=t.ref(!1),s=Ae(e),l=t.ref([]),d=t.computed(()=>e.scrollX),c=t.ref(0),f=()=>{let H=0;switch(e.size){case"small":H=50;break;case"middle":H=53;break;default:H=65;break}return H};t.watchEffect(()=>{var H;(H=l.value)!=null&&H.length&&e.height&&t.nextTick(()=>{let K=parseFloat(e.height);const J=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),le=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let ne=0;if(oe&&(K-=(oe==null?void 0:oe.clientHeight)||0),le&&e.isSummaryFixed&&(ne=(le==null?void 0:le.clientHeight)||0,K-=ne),e.paginationShow){let ee=0;ee=f(),ee&&(K-=ee)}(J==null?void 0:J.clientHeight)>K?c.value=K:c.value=0,t.nextTick(()=>{if(ne){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;ne!==fe&&t.unref(c)&&(c.value=K+ne-fe)}})})});const y=t.ref([]),u=t.ref([]),h=t.ref([]),m=t.ref([]),g=t.ref(0),C=t.ref(1),D=t.ref(e.paginationPageSize||10),b=t.reactive([]),S=(H=[])=>{var K,J;if(Array.isArray(H)&&H.length>0){let oe=H.length;const le=e.columnsFixedNum;if(e.dataType==="indicator"&&((K=t.unref(a))!=null&&K.length)){const{graphicConfig:{indicators:ne=[]}}=e;H.forEach((ee,fe)=>{if(t.unref(a)[fe])for(const Ne in t.unref(a)[fe])["dataIndex","title"].includes(Ne)||(ee[Ne]=t.unref(a)[fe][Ne]);const ge=ne.find(Ne=>Ne.label===ee.title),{showLabel:ye=""}=ge||{};ye&&(ee.title=ye)})}for(let ne=oe-1;ne>=0;ne--)(J=H[ne])!=null&&J.isHidden&&H.splice(ne,1);oe=H.length;for(let ne=0;ne<oe;ne++){const ee=H[ne];if(ne<le?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Qe=ee.dataIndex;ee.sorter=(_t,Zt)=>_t[Qe]-Zt[Qe]}const{cellAlign:fe="center",cellColor:ge,dataIndex:ye,title:Ne,tableFilter:Ye,headerCellAlign:xt,headerCellColor:Ot,overflow:wn}=ee;Ye&&(b.push(ye),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Qe,_t)=>_t[ye].toString().toLowerCase().includes(Qe.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:xt||"center",color:Ot||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Qe,_t)=>({style:{textAlign:fe,color:ge||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(V)===_t&&e.clickHighlight},onClick:G("click",()=>{const Zt=e.id,An=z(Zt);Qe={dataIndex:ye,title:Ne,...Qe},P(Zt,{...An,type:e.type,RECORD:Qe})})}),wn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&S(ee.children)}}},p=(H=[])=>{var J;let K=Ie.cloneDeep(H);return(J=t.unref(m))!=null&&J.length&&(K=Ie.cloneDeep(t.unref(m))),e.isUseSeq&&K.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&K.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),S(K),K};t.watch(D,()=>{C.value=1,Y(!1)}),t.watch(r,H=>{i.value=!!H}),t.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{y.value=p(Ie.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([H,K])=>{K==="static"&&(u.value=H)},{immediate:!0});const T=t.ref({}),E=H=>{if(Array.isArray(H)){const K=H.length,J=b,oe=J.length,le={};for(let ee=0;ee<K;ee++){const fe=H[ee];for(let ge=0;ge<oe;ge++){const ye=J[ge];if(le[ye])le[ye].add(fe[ye]);else{const Ne=new Set;Ne.add(fe[ye]),le[ye]=Ne}}}const ne={};for(const ee in le)if(Object.prototype.hasOwnProperty.call(le,ee)){const fe=le[ee],ge=Array.from(fe);ne[ee]=ge.map(ye=>({label:ye,value:ye}))}T.value=ne}};t.watch(()=>[e.isReverse,y.value,u.value],()=>{const H=t.unref(y),K=t.unref(u);if(E(K),e.isReverse){const{columns:J,dataSource:oe}=B(Ie.cloneDeep(H),Ie.cloneDeep(K));h.value=J,l.value=oe}else h.value=H,l.value=K},{immediate:!0});const B=(H,K)=>{const J=H[0],oe=[{title:J.title,dataIndex:"col0",key:"col0",align:"center"}];for(let ne=0;ne<K.length;ne++){const ee=K[ne],fe="col"+(ne+1);oe.push({title:ee[J.dataIndex],dataIndex:fe,key:fe,align:"center"})}const le=[];for(let ne=1;ne<H.length;ne++){const ee=H[ne],fe={col0:ee.title};for(let ge=0;ge<K.length;ge++){const ye=K[ge];fe[`col${ge+1}`]=ye[ee.dataIndex]}le.push(fe)}return{columns:oe,dataSource:le}},O=t.ref(""),N=Ve(e),A=async(H=!0,K={})=>{var J;try{H&&(n.value=!0),t.unref(O)&&(K.orderCondition=t.unref(O)),e.paginationShow&&(K={pageNum:t.unref(C),pageSize:t.unref(D)||"10",layer:"1",...K});const oe=await N(K),{rows:le=[],total:ne=0}=((J=oe==null?void 0:oe.data)==null?void 0:J.data)||{};if(g.value=ne,Array.isArray(le)&&(u.value=le),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(ge=>ge.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const ge=le.filter(ye=>!ye.绩效总额).map(ye=>ye.ORG_NAME);ge!=null&&ge.length&&t.nextTick(()=>{se.notification.warning({message:"提示",description:`当前时段${ge.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{n.value=!1}},k=({current:H},K,J)=>{if(C.value=H,J&&Object.keys(J).length>0){const{field:oe,order:le}=J,ee={ascend:"asc",descend:"desc"}[le];oe!=null&&ee!=null&&ee?O.value=oe+" "+ee:ee||(O.value="")}e.isSortByFront||Y(!1)},I=t.computed(()=>{const H=e.simple,K=[e.paginationPosition],J={};return e.isShowTotal&&(J.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:K,total:t.unref(g),current:t.unref(C),pageSize:t.unref(D)||"10",showSizeChanger:!1,size:"large",...J}}),x=H=>+H==1?"是":+H==0?"否":H,w=(H,K)=>{const{format:J,retentiondigit:oe,customFormatter:le}=K;if(J==null||J==="")return H;const ne={money:Ro,percentage:Sn,contrast:Sn,boolean:x,decimals:Vc,custom:Ti};return ne[J]?J==="decimals"?ne[J](H,oe)||"":J==="custom"?ne[J](H,le)||"":ne[J](H)||"":""},v=H=>H==="contrast"?"upDown":"",R=H=>{const{text:K,format:J,declineColor:oe="#39cf93",increaseColor:le="#ff512e"}=H;if(J==="contrast"){const ne={fontSize:e.fontSize},ee=parseFloat(K+"");return ee>=0?ne.color=le:ee<0&&(ne.color=oe),ne}else return{}},F=t.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),q=H=>{const{text:K,declineColor:J="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:le}=e,ne=parseFloat(K+""),ee={width:le,verticalAlign:"unset"};return ne>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${le} -1px)`:ne<0&&(ee.filter=`drop-shadow(${J||"#39cf93"} ${le} -1px)`),ee},W=H=>{const K=parseFloat(H+"");if(K>=0)return Fo;if(K<0)return zo},G=Be(e),{getGlobalModel:z,setGlobalModel:P}=t.inject(Te,{getGlobalModel:H=>{},setGlobalModel:(H,K)=>{}});P(e.id,{type:e.type,RECORD:""});const M=(H=[],K=[])=>{const J=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));m.value=Ie.cloneDeep(J),y.value=p(J),u.value=K},_=Ze(e),L=async(H=!0)=>{var K,J,oe,le;try{H&&(n.value=!0);const ne=t.unref(O).split(" "),ee={};e.isSortByFront||(ee.sort={order:ne[1],field:ne[0]});const fe=await _(ee);M((J=(K=fe==null?void 0:fe.data)==null?void 0:K.data)==null?void 0:J.columns,(le=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:le.rows)}catch(ne){console.error(ne)}finally{n.value=!1}},V=t.ref(-1),Z=(H,K)=>({onClick:G("rowClick",()=>{const J=e.id,oe=z(J);P(J,{...oe,type:e.type,RECORD:H}),V.value=K})}),{loadedData:U}=t.inject(vt,{loadedData:{}}),ae=t.ref(!1);t.watch(U,H=>{if(e.dataType==="indicator"){const K=on(e.graphicConfig);K!=null&&K.length&&(!t.unref(ae)&&it(e.graphicConfig,H)?(ae.value=!0,Y()):it(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Y=(H=!0)=>{switch(e.dataType){case"request":A(H);break;case"indicator":it(e.graphicConfig,t.unref(U))&&L(H);break}},ie=()=>{const H=e.id,K=z(H);P(H,{...K,type:e.type,RECORD:""})},re=t.computed(()=>{const H=t.unref(h);let K=0;const{subTotalColumn:J,subTotalName:oe}=e;J&&(K=H.findIndex(ge=>ge.dataIndex===J),K<0&&(K=0));const le=[];let ne=0;for(let ge=0;ge<H.length;ge++){const ye=H[ge],{isCalcTotal:Ne}=ye;ge===K?le.push({...ye,total:oe}):Ne?(le.push({...ye,index:ge,total:0}),ne++):le.push({...ye})}if(ne===0)return[];const ee=t.unref(l),fe=Q(le);for(let ge=0;ge<fe.length;ge++){const ye=fe[ge];let Ne=0;const{isCalcTotal:Ye,dataIndex:xt}=ye;if(Ye===!0){for(let Ot=0;Ot<ee.length;Ot++){const Qe=+ee[Ot][xt];isNaN(Qe)||(Ne=new e0.Big(Ne).add(Qe).toNumber())}ye.total=Ne}}return fe});function Q(H){var J;const K=[];for(const oe of H)(J=oe.children)!=null&&J.length?K.push(...Q(oe.children)):K.push(oe);return K}const{setRequest:X}=t.inject(Fe,{setRequest:H=>{}});typeof X=="function"&&X({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const te=(H="",K)=>De(H,K),he=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},be=(H,K="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:K},"*")},we=(H,K)=>{H(K.filterCheckboxGroupValue)},$e=(H,K)=>{H({confirm:!0}),K.filterOptionsInputValue="",K.filterCheckboxGroupValue=[]},Pe=()=>{},_e=H=>{const K=H.dataIndex;if(typeof K=="string"){let J=t.unref(T)[K];const oe=t.unref(H.filterOptionsInputValue).trim();return Array.isArray(J)?(J=J.filter(le=>typeof le.label=="string"?le.label.toLowerCase().includes(oe.toLowerCase()):!0),J):[]}return[]},Ee=async()=>{var ye,Ne;const H="EXPORT_KEY";se.message.loading({key:H,content:"正在导出...",duration:0});let K=[];if(e.dataType==="static")K=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};t.unref(O)&&(Ye.orderCondition=t.unref(O));const xt=await N(Ye);K=((Ne=(ye=xt==null?void 0:xt.data)==null?void 0:ye.data)==null?void 0:Ne.rows)||{}}const J=t.unref(h),oe=[],le=[];J==null||J.forEach(Ye=>{oe.push(Ye.dataIndex),le.push(Ye.title)});const ne=K.map(Ye=>Ie.pick(Ye,oe)),ee=Yt.utils.book_new(),fe=Yt.utils.aoa_to_sheet([le]),ge=Yt.utils.sheet_add_json(fe,ne,{skipHeader:!0,origin:"A2"});Yt.utils.book_append_sheet(ee,ge,"sheet"),Yt.writeFile(ee,"表格数据.xlsx"),se.message.success({key:H,content:"导出成功"})},He=(H,K=2)=>{const J=+H*100;return isNaN(J)||J<=0?0:J>=100?100:J.toFixed(K)};Re(e,{resetRecord:ie,refreshData:Y,exportTableData:Ee});const ze=(H,K)=>{let J=null;return e.stripedShow&&(J=K%2===1?"table-striped":null),J},Ke=t.computed(()=>{let H=0;const{height:K,isPageBottom:J}=e;return J&&K&&(H=parseFloat(K)-f()),H?H+"px":"100%"}),We=t.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),je=t.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),ut=t.computed(()=>parseFloat(e.fontSize)+16),tt=t.computed(()=>{let H="";const{paginationColor:K,paginationBgColor:J,activePaginationColor:oe,activePaginationBgColor:le,hoverBackgroundColor:ne}=e;return K&&(H+="p-color "),J&&(H+="p-bg-color "),oe&&(H+="active-p-color "),le&&(H+="active-p-bg-color "),ne&&(H+="hover-bg-color "),H});return{x:d,y:c,style:s,customRow:Z,pagination:I,formatFn:w,contrastClass:v,tableChange:k,summaryList:re,loading:n,onTouchHrefEvent:be,handleHref:te,handleHrefTarget:he,useRowIndex:V,tableColumns:h,tableDataSource:l,useFilterOptions:_e,useSetSelectedKeys:we,onResetFilter:$e,onSearchFilterOptions:Pe,exportTableData:Ee,handleProgressText:He,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:ze,tableHeight:Ke,tableHeaderBgColor:We,tableBodyBgColor:je,getChgStyle:R,chgBoxStyle:F,getChgBoxImgStyle:q,getChgBoxImgSrc:W,seqIcon1:eu,seqIcon2:tu,seqIcon3:nu,iconSize:ut,containerClass:tt,getCellStyle:H=>{const{overflow:K}=H;if(K==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(K==="wrap")return{}}}}}),zl=()=>{t.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},Ml=Pa.setup;Pa.setup=Ml?(e,o)=>(zl(),Ml(e,o)):zl;const r1="",i1="",ou=e=>(t.pushScopeId("data-v-f641124f"),e=e(),t.popScopeId(),e),au=["id"],ru={key:0,class:"table-tool"},iu=t.createTextVNode("导出数据"),lu=t.createTextVNode(" 搜索 "),su=t.createTextVNode(" 重置 "),cu=["src","width","height"],du=["src","width","height"],fu=["src","width","height"],uu={key:1},hu={key:1,class:"action-list"},gu=["href","target","onClick"],mu={key:2,class:"progress-cell"},yu=["title"],xu=["title"],pu=["src"],bu=["title"],vu=["src"],Su={class:"ant-pagination-options-quick-jumper"},Cu=ou(()=>t.createElementVNode("span",null,"条 / 页",-1));function wu(e,o,n,a,r,i){const s=t.resolveComponent("a-button"),l=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),c=t.resolveComponent("a-table-summary-cell"),f=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),u=t.resolveComponent("a-table"),h=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:t.normalizeStyle(e.style)},[t.createVNode(h,{loading:e.loading},{default:t.withCtx(()=>{var m;return[e.isUseExport?(t.openBlock(),t.createElementBlock("div",ru,[t.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[iu]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(u,{ref:"tableRef",class:"table",style:t.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:g,selectedKeys:C,setSelectedKeys:D,confirm:b,clearFilters:S})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(l,{value:g.filterOptionsInputValue,"onUpdate:value":p=>g.filterOptionsInputValue=p,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:g.filterCheckboxGroupValue,"onUpdate:value":p=>g.filterCheckboxGroupValue=p,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:p=>e.useSetSelectedKeys(D,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>b()},{default:t.withCtx(()=>[lu]),_:2},1032,["onClick"]),t.createVNode(s,{size:"small",style:{width:"90px"},onClick:t.withModifiers(p=>e.onResetFilter(S,g),["stop"])},{default:t.withCtx(()=>[su]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:C,text:D,record:b})=>{var S,p,T,E;return[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.seqIcon?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[C===0?(t.openBlock(),t.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,cu)):C===1?(t.openBlock(),t.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,du)):C>=2?(t.openBlock(),t.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,fu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:"seq-icon seq-text",style:t.normalizeStyle({fontSize:e.fontSize})},t.toDisplayString(C+1),5)],64)):(t.openBlock(),t.createElementBlock("span",uu,t.toDisplayString(C+1),1))],64)):g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",hu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(B,O)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:O},[t.createElementVNode("a",{href:e.handleHref(B.href,b),target:e.handleHrefTarget(B.target),style:t.normalizeStyle({color:B.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:N=>e.onTouchHrefEvent(B.target,e.handleHref(B.href,b))},t.toDisplayString(B.title),13,gu)]))),128))])):g.format==="progress"?(t.openBlock(),t.createElementBlock("div",mu,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:g.progressColor||"#1890ff",height:g.progressWidth||"18px",width:`${e.handleProgressText(D,g.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:+e.handleProgressText(D)<100?g.progressTextColor||"#333":g.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(D,g.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(g)})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:0,title:((S=g==null?void 0:g.customFormatter)==null?void 0:S.split("{value}")[0])||""},t.toDisplayString(((p=g==null?void 0:g.customFormatter)==null?void 0:p.split("{value}")[0])||""),9,yu)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle(e.getChgStyle({...g,text:D})),title:g.format!=null?e.formatFn(D,g):D},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:D})),src:e.getChgBoxImgSrc(D)},null,12,pu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(g.format!=null?e.formatFn(D,g):D),1)],14,xu),g.format==="contrast"?(t.openBlock(),t.createElementBlock("span",{key:1,title:((T=g==null?void 0:g.customFormatter)==null?void 0:T.split("{value}")[1])||""},t.toDisplayString(((E=g==null?void 0:g.customFormatter)==null?void 0:E.split("{value}")[1])||""),9,bu)):t.createCommentVNode("",!0)],4))]}),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0,fixed:e.isSummaryFixed},{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,C)=>(t.openBlock(),t.createBlock(c,{key:C,index:C,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass([e.contrastClass(g.format)]),style:t.normalizeStyle({...e.getChgStyle({...g,text:g.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[g.format==="contrast"?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(e.chgBoxStyle)},[t.createElementVNode("img",{style:t.normalizeStyle(e.getChgBoxImgStyle({...g,text:g.total})),src:e.getChgBoxImgSrc(g.total)},null,12,vu)],4)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):t.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(m=e.tableDataSource)!=null&&m.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[t.createElementVNode("div",Su,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=g=>e.pageSize=g)},null,512),[[t.vModelText,e.pageSize]]),Cu])],8,["to"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,au)}const Pl=pe(me(Pa,[["render",wu],["__scopeId","data-v-f641124f"]])),qa={...ke,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"},Va=ve(qa),ql=["click"];Je.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,Ce.VisualMapComponent,Ce.TooltipComponent,Ce.GraphicComponent]);const Au=t.defineComponent({name:"EcanMap",components:{Echarts:pt},props:{...Va},setup(e){const o=Ve(e),n=Ve({...e.tooltipRequestData,requestHeaders:{}}),a=t.ref(),r=t.ref(""),i=t.ref(""),s=Ae(e,["backgroundImage"]),l=t.ref(),d=t.computed(()=>yt(e.geoBackgroundImage)),c=t.computed(()=>yt(e.backgroundImage)),f=t.computed(()=>e.geoBackgroundImage?{image:t.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),y=t.computed(()=>{const x=e.symbolImage;return e.symbolImage?"image://"+yt(x):"circle"}),u=x=>{let w=e.tooltipFormatter;const v=w.match(/\{(.+?)\}/g);if(v==null||v.length===0)return w;for(let R=0;R<v.length;R++){const F=v[R];let q=F.slice(1,-1).trim();const W=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,G=q.match(W);for(let z=0;z<G.length;z++){const P=G[z],M=x[P];M!=null&&(q=q.replace(P,M))}w=w.replace(F,q)}return w.split(`
120
+ `)},h=t.ref(!1),m=t.ref("");let g=new AbortController;const C=(x,w)=>{const v=g.signal;h.value=!0,r.value=x,n({name:x,signal:v}).then(R=>{var F,q;if(R){const W=((q=(F=R==null?void 0:R.data)==null?void 0:F.data)==null?void 0:q.rows)||[];let G="";for(const z of W){const P=u(z)||[];if(P!=null&&P.length)for(const M of P)G+=`<div style="word-break: break-all;white-space: normal;">${M}</div>`}G=`<div style="max-width:200px;">${G}</div>`,i.value=G,w(t.unref(m),G)}else v.aborted?i.value="Loading":i.value=x,w(t.unref(m),i.value);h.value=!1})},D=t.computed(()=>{const x=e.geoCenter;let w;return typeof x=="string"&&x!==""&&(w=x.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:w,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(v,R,F)=>{m.value=R;const{name:q=""}=v,{requestUrl:W}=e.tooltipRequestData;if(!W)return q;if(t.unref(h))t.unref(r)!==q&&(g.abort(),g=new AbortController);else{if(t.unref(r)===q)return t.unref(i);C(q,F)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(f),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(y),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),b=t.ref(!1),S=async()=>{var v;b.value=!1;const x=e.mapJson,w=`map-${e.id}`;if(x!=null&&x.path){const R=await dt(((v=window==null?void 0:window.config)==null?void 0:v.uploadPath)+x.path);Je.registerMap(w,(R==null?void 0:R.data)||{})}else Je.registerMap(w,{});b.value=!0};t.watch(()=>e.mapJson,()=>{S()},{immediate:!0,deep:!0});const p=async()=>{var x,w;if(e.dataType==="request"){b.value=!1;try{const v=await o(),R=((w=(x=v==null?void 0:v.data)==null?void 0:x.data)==null?void 0:w.rows)||{},F=`map-${e.id}`;if(R!=null&&R.path){const q=await dt(R.path);Je.registerMap(F,(q==null?void 0:q.data)||{})}else Je.registerMap(F,{})}catch(v){console.error(v)}finally{b.value=!0}}},T=()=>{switch(e.dataType){case"request":p();break}},{getGlobalModel:E,setGlobalModel:B}=t.inject(Te,{getGlobalModel:x=>{},setGlobalModel:(x,w)=>{}}),N=Be(e)("click",()=>{const x=E(e.id);B(e.id,{...x,RECORD:t.unref(a)})});Re(e,{refreshData:T});const{setRequest:A}=t.inject(Fe,{setRequest:x=>{}});return typeof A=="function"&&A({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:b,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{t.unref(a)&&N()},onMouseOver:(x={})=>{x.componentType==="geo"&&x.region?a.value=x.region:a.value=null}}}}),s1="",ku=["src"];function Tu(e,o,n,a,r,i){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ku),[[t.vShow,!1]])],4)}const Vl=pe(me(Au,[["render",Tu],["__scopeId","data-v-10f150ac"]])),Ha={...ke,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ja=ve(Ha),Hl=["selectChange","refreshData"],Bu=t.defineComponent({name:"EcanDataSelect",components:{ASelect:se.Select,ASelectOption:se.SelectOption},props:{...ja},setup(e,{expose:o}){const n=Ae(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=Ve(e),i=t.ref(e.data||[]),s=t.ref(),l=t.computed({get:()=>{var k;const{mode:A}=e;return(k=t.unref(i))!=null&&k.length?s.value:A==="multiple"||A==="tags"||A==="combobox"?[]:""},set:A=>{s.value=A}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:f}=t.inject(Te,{getGlobalModel:A=>{},setGlobalModel:(A,k)=>{},getRecordValueByKeyName:A=>{}}),y=e.dataFieldNames;t.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:A,selectFirstOption:k,value:I}=e,x=f(I),w=y.value;if(A==="multiple"||A==="tags"||A==="combobox"){if(x)s.value=x.split(",");else if(k){const v=t.unref(i)[0];s.value=v?[v[w]]:[]}}else if(x)s.value=x;else if(k){const v=t.unref(i)[0];s.value=v?v[w]:""}},{immediate:!0});const u=(A,k)=>{const I=y.label,x=y.value;let w;const v=k[I],R=k[x];return v!=null?w=v:R!=null&&(w=R),(w==null?void 0:w.toLowerCase().indexOf(A==null?void 0:A.toLowerCase()))>=0},h=A=>{const{label:k,value:I,options:x}=e.dataFieldNames;if(x&&Array.isArray(A))if(A.some(w=>x in w)){const w={},v=[];A.forEach(R=>{w[R[x]]||(w[R[x]]=[]),w[R[x]].push({[k]:R[k],[I]:R[I]})});for(const R in w)v.push({[k]:R,[x]:w[R]});return v}else return A;else if(!x)return A},m=t.ref(!1),g=async()=>{var A,k;if(e.dataType==="request"){m.value=!0;try{const I=await r();if(i.value=h(((k=(A=I==null?void 0:I.data)==null?void 0:A.data)==null?void 0:k.rows)||[]),e.selectFirstOption){let x=t.unref(i)[0];if(y.options){const w=x[y.options];w&&w.length&&(x=w[0])}s.value=x[y.value]}}catch(I){console.error(I)}finally{m.value=!1}}},C=t.computed(()=>{let A=s.value;if(e.valueType==="label"&&t.unref(s)&&t.unref(i)){const k=y.label,I=y.value;if(e.mode==="multiple")A=t.unref(i).filter(x=>t.unref(s).includes(x[I])).map(x=>x[k]);else{const x=t.unref(i).find(w=>t.unref(s)===w[I]);x&&(A=x[k])}}return A}),D=t.ref([]),b=t.computed(()=>{const A={};if(e.mode!=="multiple"){const k=t.unref(D).find(I=>I.value===t.unref(s));k&&(A.itemCodes=k.item_codes)}return A});c(e.id,{type:e.type,value:C,...t.unref(b)});const p=Be(e)("selectChange",()=>{const A=e.id,k=d(A);c(A,{...k,...t.unref(b),RECORD:C})}),T=(A=[])=>{if(i.value=h(A),e.selectFirstOption){let k=t.unref(i)[0];if(y.options){const I=k[y.options];I&&I.length&&(k=I[0])}s.value=k[y.value]}},E=Ze(e),B=async()=>{var A;try{m.value=!0;const k=await E(),{data:I}=(k==null?void 0:k.data)||{},x=y.label,w=y.value;if(I){const v=((A=k==null?void 0:k.data)==null?void 0:A.data)??[];D.value=v;const R=v.map(W=>({[x]:W.label,[w]:W.value})),{id:F}=e,q=d(F);c(F,{...q,...t.unref(b)}),T(R)}else T([])}catch(k){console.error(k)}finally{m.value=!1}},O=()=>{switch(e.dataType){case"indicator":{B();break}case"request":g();break}};Re(e,{selectChange:p,refreshData:O});const{setRequest:N}=t.inject(Fe,{setRequest:({id:A,sortNum:k,requestFn:I})=>{}});return typeof N=="function"&&N({id:e.id,requestFn:O,sortNum:e.requestSort}),o({refreshData:O}),{style:n,getPopupContainer:a,myValue:s,selectChange:p,options:i,filterOption:u,loading:m,resultValue:l}}}),d1="",f1="";function Eu(e,o,n,a,r,i){const s=t.resolveComponent("a-select-option"),l=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:t.normalizeStyle({fontSize:e.optionFontSize})},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(d,c)=>(t.openBlock(),t.createBlock(s,{key:c,value:d.value,label:d.label,style:t.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const jl=pe(me(Bu,[["render",Eu],["__scopeId","data-v-f8bdb796"]])),Wl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:yl,EcanBorder:kl,EcanButton:Xi,EcanCheckbox:tl,EcanCirculate:Il,EcanComboGraph:Sl,EcanCustomGraph:bl,EcanDataSelect:jl,EcanDatePicker:Gi,EcanIframe:Nl,EcanImage:Ll,EcanInput:Hi,EcanLine:gl,EcanList:Mi,EcanMap:Vl,EcanModal:kt,EcanPageConfig:Ei,EcanPie:ul,EcanProportion:qi,EcanProviderConfig:Di,EcanRadar:wl,EcanRadio:ll,EcanRangePicker:Qi,EcanScatter:pl,EcanScrollText:Li,EcanSelect:ol,EcanTable:Pl,EcanTabs:Bl,EcanText:_i,EcanTimeDisplay:Fi,EcanTreeSelect:rl,barComponentProps:xa,barEvents:ml,barProps:ya,borderComponentProps:Ba,borderEvents:Al,borderProps:Ta,buttonComponentProps:ea,buttonEvents:Ji,buttonProps:Xo,checkboxComponentProps:na,checkboxEvents:el,checkboxProps:ta,circulateComponentProps:Ra,circulateEvents:El,circulateProps:Ia,comboGraphComponentProps:wa,comboGraphEvents:vl,comboGraphProps:Ca,customGraphComponentProps:Sa,customGraphProps:va,dataSelectComponentProps:ja,dataSelectEvents:Hl,dataSelectProps:Ha,datePickerComponentProps:Ko,datePickerEvents:ji,datePickerProps:$o,iframeComponentProps:Fa,iframeProps:Na,imageComponentProps:_a,imageEvents:Rl,imageProps:Oa,inputComponentProps:Go,inputEvents:Vi,inputProps:Uo,lineComponentProps:ma,lineEvents:hl,lineProps:ga,listComponentProps:Ho,listEvents:zi,listProps:Vo,mapComponentProps:Va,mapEvents:ql,mapProps:qa,modalComponentProps:ua,modalEvents:cl,modalProps:fa,pageConfig:Pn,pageConfigComponentProps:qn,pieComponentProps:da,pieEvents:sl,pieProps:ca,proportionComponentProps:Wo,proportionEvents:Pi,proportionProps:jo,providerConfig:Oo,providerConfigComponentProps:_o,radarComponentProps:ka,radarEvents:Cl,radarProps:Aa,radioComponentProps:sa,radioEvents:il,radioProps:la,rangePickerComponentProps:Qo,rangePickerEvents:$i,rangePickerProps:Yo,scatterComponentProps:ba,scatterEvents:xl,scatterProps:pa,selectComponentProps:aa,selectEvents:nl,selectProps:oa,tableComponentProps:Ma,tableEvents:Fl,tableProps:za,tabsComponentProps:Da,tabsEvents:Tl,tabsProps:Ea,textComponentProps:No,textEvents:Ii,textProps:Lo,timeDisplayComponentProps:qo,timeDisplayEvents:Ni,timeDisplayProps:Po,treeSelectComponentProps:ia,treeSelectEvents:al,treeSelectProps:ra},Symbol.toStringTag,{value:"Module"})),Du={install:e=>{Object.keys(Wl).forEach(o=>{const n=Wl[o];n.install&&e.use(n)})}};j.EcanBar=yl,j.EcanBorder=kl,j.EcanButton=Xi,j.EcanCheckbox=tl,j.EcanCirculate=Il,j.EcanComboGraph=Sl,j.EcanCustomGraph=bl,j.EcanDataSelect=jl,j.EcanDatePicker=Gi,j.EcanIframe=Nl,j.EcanImage=Ll,j.EcanInput=Hi,j.EcanLine=gl,j.EcanList=Mi,j.EcanMap=Vl,j.EcanModal=kt,j.EcanPageConfig=Ei,j.EcanPie=ul,j.EcanProportion=qi,j.EcanProviderConfig=Di,j.EcanRadar=wl,j.EcanRadio=ll,j.EcanRangePicker=Qi,j.EcanScatter=pl,j.EcanScrollText=Li,j.EcanSelect=ol,j.EcanTable=Pl,j.EcanTabs=Bl,j.EcanText=_i,j.EcanTimeDisplay=Fi,j.EcanTreeSelect=rl,j.barComponentProps=xa,j.barEvents=ml,j.barProps=ya,j.borderComponentProps=Ba,j.borderEvents=Al,j.borderProps=Ta,j.buttonComponentProps=ea,j.buttonEvents=Ji,j.buttonProps=Xo,j.checkboxComponentProps=na,j.checkboxEvents=el,j.checkboxProps=ta,j.circulateComponentProps=Ra,j.circulateEvents=El,j.circulateProps=Ia,j.comboGraphComponentProps=wa,j.comboGraphEvents=vl,j.comboGraphProps=Ca,j.compatibleMobileList=fl,j.customGraphComponentProps=Sa,j.customGraphProps=va,j.dataSelectComponentProps=ja,j.dataSelectEvents=Hl,j.dataSelectProps=Ha,j.datePickerComponentProps=Ko,j.datePickerEvents=ji,j.datePickerProps=$o,j.default=Du,j.handleScrollCombinations=dl,j.iframeComponentProps=Fa,j.iframeProps=Na,j.imageComponentProps=_a,j.imageEvents=Rl,j.imageProps=Oa,j.inputComponentProps=Go,j.inputEvents=Vi,j.inputProps=Uo,j.lineComponentProps=ma,j.lineEvents=hl,j.lineProps=ga,j.listComponentProps=Ho,j.listEvents=zi,j.listProps=Vo,j.mapComponentProps=Va,j.mapEvents=ql,j.mapProps=qa,j.modalComponentProps=ua,j.modalEvents=cl,j.modalProps=fa,j.moveToComponentList=ha,j.pageConfig=Pn,j.pageConfigComponentProps=qn,j.pieComponentProps=da,j.pieEvents=sl,j.pieProps=ca,j.proportionComponentProps=Wo,j.proportionEvents=Pi,j.proportionProps=jo,j.providerConfig=Oo,j.providerConfigComponentProps=_o,j.radarComponentProps=ka,j.radarEvents=Cl,j.radarProps=Aa,j.radioComponentProps=sa,j.radioEvents=il,j.radioProps=la,j.rangePickerComponentProps=Qo,j.rangePickerEvents=$i,j.rangePickerProps=Yo,j.scatterComponentProps=ba,j.scatterEvents=xl,j.scatterProps=pa,j.selectComponentProps=aa,j.selectEvents=nl,j.selectProps=oa,j.tableComponentProps=Ma,j.tableEvents=Fl,j.tableProps=za,j.tabsComponentProps=Da,j.tabsEvents=Tl,j.tabsProps=Ea,j.textComponentProps=No,j.textEvents=Ii,j.textProps=Lo,j.timeDisplayComponentProps=qo,j.timeDisplayEvents=Ni,j.timeDisplayProps=Po,j.treeSelectComponentProps=ia,j.treeSelectEvents=al,j.treeSelectProps=ra,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
121
121
  //# sourceMappingURL=index.umd.js.map