@ecan-bi/datav 1.6.19 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.6.
|
|
1
|
+
/*! @ecan-bi/datav@1.6.20 */
|
|
2
2
|
(function(aa,Ra){typeof exports=="object"&&typeof module<"u"?Ra(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("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),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("ant-design-vue/es/divider/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","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","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","ant-design-vue/es/divider/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Ra):(aa=typeof globalThis<"u"?globalThis:aa||self,Ra(aa["@ecan/bi-datav"]={},aa.Vue,aa["echarts/core"],aa.ResizeDetector,aa.AntDesignVue,null,null,aa.LodashEs,aa.Dayjs,aa.Axios,aa.Mitt,aa["echarts/renderers"],aa["echarts/charts"],aa["echarts/components"],null,null,null,null,aa["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,null,aa.Echarts,null,null,aa.Xlsx,aa.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,style$b,echarts,style$c,style$d,xlsx,big_js){var aa,Ra,Wa,Ya;"use strict";function _interopNamespaceDefault(ct){const Fn=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(ct){for(const er in ct)if(er!=="default"){const tr=Object.getOwnPropertyDescriptor(ct,er);Object.defineProperty(Fn,er,tr.get?tr:{enumerable:!0,get:()=>ct[er]})}}return Fn.default=ct,Object.freeze(Fn)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(ct,Fn){function er(nr){return(...or)=>{if(ct.value||Fn(),!ct.value)throw new Error("ECharts is not initialized yet.");return ct.value[nr].apply(ct.value,or)}}function tr(){const nr=Object.create(null);return METHOD_NAMES.forEach(or=>{nr[or]=er(or)}),nr}return tr()}function useAutoresize(ct,Fn,er){let tr=null;vue.watch([er,ct,Fn],([nr,or,ar],ir,sr)=>{nr&&or&&ar&&(tr=core$1.throttle(()=>{or.resize()},100),resizeDetector.addListener(nr,tr)),sr(()=>{tr&&nr&&resizeDetector.removeListener(nr,tr)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(ct,Fn,er){const tr=vue.inject(LOADING_OPTIONS_KEY,{}),nr=vue.computed(()=>({...vue.unref(tr),...er==null?void 0:er.value}));vue.watchEffect(()=>{const or=ct.value;or&&(Fn.value?or.showLoading(nr.value):or.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=ct=>onRE.test(ct);function omitOn(ct){const Fn={};for(const er in ct)isOn(er)||(Fn[er]=ct[er]);return Fn}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(ct,{attrs:Fn,listeners:er}){const tr=vue.shallowRef(),nr=vue.shallowRef(),or=vue.shallowRef(),ar=vue.inject(THEME_KEY,null),ir=vue.inject(INIT_OPTIONS_KEY,null),sr=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:lr,manualUpdate:cr,loading:pr,loadingOptions:ur}=vue.toRefs(ct),mr=vue.computed(()=>or.value||ct.option||Object.create(null)),vr=vue.computed(()=>ct.theme||vue.unref(ar)||{}),yr=vue.computed(()=>ct.initOptions||vue.unref(ir)||{}),Sr=vue.computed(()=>ct.updateOptions||vue.unref(sr)||{}),gr=vue.computed(()=>omitOn(Fn));function dr(_r){if(nr.value||!tr.value)return;const Er=nr.value=core$1.init(tr.value,vr.value,yr.value);ct.group&&(Er.group=ct.group);let Pr=er;Pr||(Pr={},Object.keys(Fn).filter(Dr=>Dr.indexOf("on")===0&&Dr.length>2).forEach(Dr=>{const Br=Dr.charAt(2).toLowerCase()+Dr.slice(3);Pr[Br]=Fn[Dr]})),Object.keys(Pr).forEach(Dr=>{const Br=Pr[Dr];Br&&(Dr.indexOf("zr:")===0?Er.getZr().on(Dr.slice(3).toLowerCase(),Br):Er.on(Dr.toLowerCase(),Br))});function Ir(){if(Er&&!Er.isDisposed())try{Er.resize()}catch(Dr){if(Dr.message==="Cannot read property 'get' of undefined")return;throw Dr}}function Mr(){Er.setOption(_r||mr.value,Sr.value)}lr.value?vue.nextTick(()=>{Ir(),Mr()}):Mr()}function fr(_r,Er){ct.manualUpdate&&(or.value=_r),nr.value?nr.value.setOption(_r,Er||{}):dr(_r)}function hr(){nr.value&&(nr.value.dispose(),nr.value=void 0)}let br=null;vue.watch(cr,_r=>{typeof br=="function"&&(br(),br=null),_r||(br=vue.watch(()=>ct.option,Er=>{Er&&(nr.value?nr.value.setOption(Er,Sr.value):dr())},{deep:!0}))},{immediate:!0}),vue.watch([vr,yr],()=>{hr(),dr()},{deep:!0}),vue.watchEffect(()=>{ct.group&&nr.value&&(nr.value.group=ct.group)});const xr=usePublicAPI(nr,dr);return useLoading(nr,pr,ur),useAutoresize(nr,lr,tr),vue.onMounted(()=>{ct.option&&dr()}),vue.onUnmounted(hr),{chart:nr,root:tr,setOption:fr,nonEventAttrs:gr,...xr}},render(){const ct={...this.nonEventAttrs};return ct.ref="root",ct.class=ct.class?["echarts"].concat(ct.class):"echarts",vue.h(TAG_NAME,ct)}});function bound01(ct,Fn){isOnePointZero(ct)&&(ct="100%");var er=isPercentage(ct);return ct=Fn===360?ct:Math.min(Fn,Math.max(0,parseFloat(ct))),er&&(ct=parseInt(String(ct*Fn),10)/100),Math.abs(ct-Fn)<1e-6?1:(Fn===360?ct=(ct<0?ct%Fn+Fn:ct%Fn)/parseFloat(String(Fn)):ct=ct%Fn/parseFloat(String(Fn)),ct)}function isOnePointZero(ct){return typeof ct=="string"&&ct.indexOf(".")!==-1&&parseFloat(ct)===1}function isPercentage(ct){return typeof ct=="string"&&ct.indexOf("%")!==-1}function boundAlpha(ct){return ct=parseFloat(ct),(isNaN(ct)||ct<0||ct>1)&&(ct=1),ct}function convertToPercentage(ct){return ct<=1?"".concat(Number(ct)*100,"%"):ct}function pad2(ct){return ct.length===1?"0"+ct:String(ct)}function rgbToRgb(ct,Fn,er){return{r:bound01(ct,255)*255,g:bound01(Fn,255)*255,b:bound01(er,255)*255}}function hue2rgb(ct,Fn,er){return er<0&&(er+=1),er>1&&(er-=1),er<1/6?ct+(Fn-ct)*(6*er):er<1/2?Fn:er<2/3?ct+(Fn-ct)*(2/3-er)*6:ct}function hslToRgb(ct,Fn,er){var tr,nr,or;if(ct=bound01(ct,360),Fn=bound01(Fn,100),er=bound01(er,100),Fn===0)nr=er,or=er,tr=er;else{var ar=er<.5?er*(1+Fn):er+Fn-er*Fn,ir=2*er-ar;tr=hue2rgb(ir,ar,ct+1/3),nr=hue2rgb(ir,ar,ct),or=hue2rgb(ir,ar,ct-1/3)}return{r:tr*255,g:nr*255,b:or*255}}function rgbToHsv(ct,Fn,er){ct=bound01(ct,255),Fn=bound01(Fn,255),er=bound01(er,255);var tr=Math.max(ct,Fn,er),nr=Math.min(ct,Fn,er),or=0,ar=tr,ir=tr-nr,sr=tr===0?0:ir/tr;if(tr===nr)or=0;else{switch(tr){case ct:or=(Fn-er)/ir+(Fn<er?6:0);break;case Fn:or=(er-ct)/ir+2;break;case er:or=(ct-Fn)/ir+4;break}or/=6}return{h:or,s:sr,v:ar}}function hsvToRgb(ct,Fn,er){ct=bound01(ct,360)*6,Fn=bound01(Fn,100),er=bound01(er,100);var tr=Math.floor(ct),nr=ct-tr,or=er*(1-Fn),ar=er*(1-nr*Fn),ir=er*(1-(1-nr)*Fn),sr=tr%6,lr=[er,ar,or,or,ir,er][sr],cr=[ir,er,er,ar,or,or][sr],pr=[or,or,ir,er,er,ar][sr];return{r:lr*255,g:cr*255,b:pr*255}}function rgbToHex(ct,Fn,er,tr){var nr=[pad2(Math.round(ct).toString(16)),pad2(Math.round(Fn).toString(16)),pad2(Math.round(er).toString(16))];return tr&&nr[0].startsWith(nr[0].charAt(1))&&nr[1].startsWith(nr[1].charAt(1))&&nr[2].startsWith(nr[2].charAt(1))?nr[0].charAt(0)+nr[1].charAt(0)+nr[2].charAt(0):nr.join("")}function convertHexToDecimal(ct){return parseIntFromHex(ct)/255}function parseIntFromHex(ct){return parseInt(ct,16)}var names={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 inputToRGB(ct){var Fn={r:0,g:0,b:0},er=1,tr=null,nr=null,or=null,ar=!1,ir=!1;return typeof ct=="string"&&(ct=stringInputToObject(ct)),typeof ct=="object"&&(isValidCSSUnit(ct.r)&&isValidCSSUnit(ct.g)&&isValidCSSUnit(ct.b)?(Fn=rgbToRgb(ct.r,ct.g,ct.b),ar=!0,ir=String(ct.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(ct.h)&&isValidCSSUnit(ct.s)&&isValidCSSUnit(ct.v)?(tr=convertToPercentage(ct.s),nr=convertToPercentage(ct.v),Fn=hsvToRgb(ct.h,tr,nr),ar=!0,ir="hsv"):isValidCSSUnit(ct.h)&&isValidCSSUnit(ct.s)&&isValidCSSUnit(ct.l)&&(tr=convertToPercentage(ct.s),or=convertToPercentage(ct.l),Fn=hslToRgb(ct.h,tr,or),ar=!0,ir="hsl"),Object.prototype.hasOwnProperty.call(ct,"a")&&(er=ct.a)),er=boundAlpha(er),{ok:ar,format:ct.format||ir,r:Math.min(255,Math.max(Fn.r,0)),g:Math.min(255,Math.max(Fn.g,0)),b:Math.min(255,Math.max(Fn.b,0)),a:er}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject(ct){if(ct=ct.trim().toLowerCase(),ct.length===0)return!1;var Fn=!1;if(names[ct])ct=names[ct],Fn=!0;else if(ct==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var er=matchers.rgb.exec(ct);return er?{r:er[1],g:er[2],b:er[3]}:(er=matchers.rgba.exec(ct),er?{r:er[1],g:er[2],b:er[3],a:er[4]}:(er=matchers.hsl.exec(ct),er?{h:er[1],s:er[2],l:er[3]}:(er=matchers.hsla.exec(ct),er?{h:er[1],s:er[2],l:er[3],a:er[4]}:(er=matchers.hsv.exec(ct),er?{h:er[1],s:er[2],v:er[3]}:(er=matchers.hsva.exec(ct),er?{h:er[1],s:er[2],v:er[3],a:er[4]}:(er=matchers.hex8.exec(ct),er?{r:parseIntFromHex(er[1]),g:parseIntFromHex(er[2]),b:parseIntFromHex(er[3]),a:convertHexToDecimal(er[4]),format:Fn?"name":"hex8"}:(er=matchers.hex6.exec(ct),er?{r:parseIntFromHex(er[1]),g:parseIntFromHex(er[2]),b:parseIntFromHex(er[3]),format:Fn?"name":"hex"}:(er=matchers.hex4.exec(ct),er?{r:parseIntFromHex(er[1]+er[1]),g:parseIntFromHex(er[2]+er[2]),b:parseIntFromHex(er[3]+er[3]),a:convertHexToDecimal(er[4]+er[4]),format:Fn?"name":"hex8"}:(er=matchers.hex3.exec(ct),er?{r:parseIntFromHex(er[1]+er[1]),g:parseIntFromHex(er[2]+er[2]),b:parseIntFromHex(er[3]+er[3]),format:Fn?"name":"hex"}:!1)))))))))}function isValidCSSUnit(ct){return!!matchers.CSS_UNIT.exec(String(ct))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 toHsv(ct){var Fn=ct.r,er=ct.g,tr=ct.b,nr=rgbToHsv(Fn,er,tr);return{h:nr.h*360,s:nr.s,v:nr.v}}function toHex(ct){var Fn=ct.r,er=ct.g,tr=ct.b;return"#".concat(rgbToHex(Fn,er,tr,!1))}function mix(ct,Fn,er){var tr=er/100,nr={r:(Fn.r-ct.r)*tr+ct.r,g:(Fn.g-ct.g)*tr+ct.g,b:(Fn.b-ct.b)*tr+ct.b};return nr}function getHue(ct,Fn,er){var tr;return Math.round(ct.h)>=60&&Math.round(ct.h)<=240?tr=er?Math.round(ct.h)-hueStep*Fn:Math.round(ct.h)+hueStep*Fn:tr=er?Math.round(ct.h)+hueStep*Fn:Math.round(ct.h)-hueStep*Fn,tr<0?tr+=360:tr>=360&&(tr-=360),tr}function getSaturation(ct,Fn,er){if(ct.h===0&&ct.s===0)return ct.s;var tr;return er?tr=ct.s-saturationStep*Fn:Fn===darkColorCount?tr=ct.s+saturationStep:tr=ct.s+saturationStep2*Fn,tr>1&&(tr=1),er&&Fn===lightColorCount&&tr>.1&&(tr=.1),tr<.06&&(tr=.06),Number(tr.toFixed(2))}function getValue(ct,Fn,er){var tr;return er?tr=ct.v+brightnessStep1*Fn:tr=ct.v-brightnessStep2*Fn,tr>1&&(tr=1),Number(tr.toFixed(2))}function generate$1(ct){for(var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},er=[],tr=inputToRGB(ct),nr=lightColorCount;nr>0;nr-=1){var or=toHsv(tr),ar=toHex(inputToRGB({h:getHue(or,nr,!0),s:getSaturation(or,nr,!0),v:getValue(or,nr,!0)}));er.push(ar)}er.push(toHex(tr));for(var ir=1;ir<=darkColorCount;ir+=1){var sr=toHsv(tr),lr=toHex(inputToRGB({h:getHue(sr,ir),s:getSaturation(sr,ir),v:getValue(sr,ir)}));er.push(lr)}return Fn.theme==="dark"?darkColorMap.map(function(cr){var pr=cr.index,ur=cr.opacity,mr=toHex(mix(inputToRGB(Fn.backgroundColor||"#141414"),inputToRGB(er[pr]),ur*100));return mr}):er}var presetPrimaryColors={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"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(ct){presetPalettes[ct]=generate$1(presetPrimaryColors[ct]),presetPalettes[ct].primary=presetPalettes[ct][5],presetDarkPalettes[ct]=generate$1(presetPrimaryColors[ct],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[ct].primary=presetDarkPalettes[ct][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var ct=document.createElement("style");return ct.setAttribute("type","text/css"),ct}function insertCss(ct,Fn){if(Fn=Fn||{},ct===void 0)throw new Error(usage);var er=Fn.prepend===!0?"prepend":"append",tr=Fn.container!==void 0?Fn.container:document.querySelector("head"),nr=containers.indexOf(tr);nr===-1&&(nr=containers.push(tr)-1,styleElements[nr]={});var or;return styleElements[nr]!==void 0&&styleElements[nr][er]!==void 0?or=styleElements[nr][er]:(or=styleElements[nr][er]=createStyleElement(),er==="prepend"?tr.insertBefore(or,tr.childNodes[0]):tr.appendChild(or)),ct.charCodeAt(0)===65279&&(ct=ct.substr(1,ct.length)),or.styleSheet?or.styleSheet.cssText+=ct:or.textContent+=ct,or}function _objectSpread$e(ct){for(var Fn=1;Fn<arguments.length;Fn++){var er=arguments[Fn]!=null?Object(arguments[Fn]):{},tr=Object.keys(er);typeof Object.getOwnPropertySymbols=="function"&&(tr=tr.concat(Object.getOwnPropertySymbols(er).filter(function(nr){return Object.getOwnPropertyDescriptor(er,nr).enumerable}))),tr.forEach(function(nr){_defineProperty$f(ct,nr,er[nr])})}return ct}function _defineProperty$f(ct,Fn,er){return Fn in ct?Object.defineProperty(ct,Fn,{value:er,enumerable:!0,configurable:!0,writable:!0}):ct[Fn]=er,ct}function warn(ct,Fn){process.env.NODE_ENV!=="production"&&!ct&&console!==void 0&&console.error("Warning: ".concat(Fn))}function warning(ct,Fn){warn(ct,"[@ant-design/icons-vue] ".concat(Fn))}function isIconDefinition(ct){return typeof ct=="object"&&typeof ct.name=="string"&&typeof ct.theme=="string"&&(typeof ct.icon=="object"||typeof ct.icon=="function")}function generate(ct,Fn,er){return er?vue.h(ct.tag,_objectSpread$e({key:Fn},er,ct.attrs),(ct.children||[]).map(function(tr,nr){return generate(tr,"".concat(Fn,"-").concat(ct.tag,"-").concat(nr))})):vue.h(ct.tag,_objectSpread$e({key:Fn},ct.attrs),(ct.children||[]).map(function(tr,nr){return generate(tr,"".concat(Fn,"-").concat(ct.tag,"-").concat(nr))}))}function getSecondaryColor(ct){return generate$1(ct)[0]}function normalizeTwoToneColors(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}var iconStyles=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -60,7 +60,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
60
60
|
`,...function(ar){const ir=[];return ar.forEach((sr,lr)=>{ir.push(...lr===0?[]:[`
|
|
61
61
|
`],...function({vnode:cr,recurseCount:pr}){const ur=pr>0?`... (${pr} recursive calls)`:"",mr=!!cr.component&&cr.component.parent==null,vr=` at <${yt(cr.component,cr.type,mr)}`,yr=">"+ur;return cr.props?[vr,...Re(cr.props),yr]:[vr+yr]}(sr))}),ir}(nr)),console.warn(...or)}V()}function Re(ct){const Fn=[],er=Object.keys(ct);return er.slice(0,3).forEach(tr=>{Fn.push(...We(tr,ct[tr]))}),er.length>3&&Fn.push(" ..."),Fn}function We(ct,Fn,er){return u(Fn)?(Fn=JSON.stringify(Fn),er?Fn:[`${ct}=${Fn}`]):typeof Fn=="number"||typeof Fn=="boolean"||Fn==null?er?Fn:[`${ct}=${Fn}`]:Fe(Fn)?(Fn=We(ct,je(Fn.value),!0),er?Fn:[`${ct}=Ref<`,Fn,">"]):c(Fn)?[`${ct}=fn${Fn.name?`<${Fn.name}>`:""}`]:(Fn=je(Fn),er?Fn:[`${ct}=`,Fn])}const He={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Pe(ct,Fn,er,tr){let nr;try{nr=tr?ct(...tr):ct()}catch(or){(function(ar,ir,sr,lr=!0){const cr=ir?ir.vnode:null;if(ir){let pr=ir.parent;const ur=ir.proxy,mr=process.env.NODE_ENV!=="production"?He[sr]:sr;for(;pr;){const yr=pr.ec;if(yr){for(let Sr=0;Sr<yr.length;Sr++)if(yr[Sr](ar,ur,mr)===!1)return}pr=pr.parent}const vr=ir.appContext.config.errorHandler;if(vr)return void Pe(vr,null,10,[ar,ur,mr])}(function(pr,ur,mr,vr=!0){if(process.env.NODE_ENV!=="production"){const Sr=He[ur];if(mr&&(yr=mr,ze.push(yr)),Ie("Unhandled error"+(Sr?` during execution of ${Sr}`:"")),mr&&ze.pop(),vr)throw pr;console.error(pr)}else console.error(pr);var yr})(ar,sr,cr,lr)})(or,Fn,er)}return nr}let Ge=!1,Ue=!1;const Ye=[];let Ke=0;const Be=[];let Qe=null,qe=0;const Ze=Promise.resolve();function Xe(ct){Ye.length&&Ye.includes(ct,Ge&&ct.allowRecurse?Ke+1:Ke)||(ct.id==null?Ye.push(ct):Ye.splice(function(Fn){let er=Ke+1,tr=Ye.length;for(;er<tr;){const nr=er+tr>>>1,or=Ye[nr],ar=et(or);ar<Fn||ar===Fn&&or.pre?er=nr+1:tr=nr}return er}(ct.id),0,ct),Je())}function Je(){Ge||Ue||(Ue=!0,Ze.then(ot))}const et=ct=>ct.id==null?1/0:ct.id,tt=(ct,Fn)=>{const er=et(ct)-et(Fn);if(er===0){if(ct.pre&&!Fn.pre)return-1;if(Fn.pre&&!ct.pre)return 1}return er};function ot(ct){Ue=!1,Ge=!0,process.env.NODE_ENV!=="production"&&(ct=ct||new Map),Ye.sort(tt);const Fn=process.env.NODE_ENV!=="production"?er=>nt(ct,er):n;try{for(Ke=0;Ke<Ye.length;Ke++){const er=Ye[Ke];if(er&&er.active!==!1){if(process.env.NODE_ENV!=="production"&&Fn(er))continue;Pe(er,null,14)}}}finally{Ke=0,Ye.length=0,function(er){if(Be.length){const tr=[...new Set(Be)];if(Be.length=0,Qe)return void Qe.push(...tr);for(Qe=tr,process.env.NODE_ENV!=="production"&&(er=er||new Map),Qe.sort((nr,or)=>et(nr)-et(or)),qe=0;qe<Qe.length;qe++)process.env.NODE_ENV!=="production"&&nt(er,Qe[qe])||Qe[qe]();Qe=null,qe=0}}(ct),Ge=!1,(Ye.length||Be.length)&&ot(ct)}}function nt(ct,Fn){if(ct.has(Fn)){const er=ct.get(Fn);if(er>100){const tr=Fn.ownerInstance,nr=tr&&ht(tr.type);return Ie(`Maximum recursive updates exceeded${nr?` in component <${nr}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}ct.set(Fn,er+1)}else ct.set(Fn,1)}const it=new Set;process.env.NODE_ENV!=="production"&&(x().__VUE_HMR_RUNTIME__={createRecord:st(function(ct,Fn){return rt.has(ct)?!1:(rt.set(ct,{initialDef:at(Fn),instances:new Set}),!0)}),rerender:st(function(ct,Fn){const er=rt.get(ct);er&&(er.initialDef.render=Fn,[...er.instances].forEach(tr=>{Fn&&(tr.render=Fn,at(tr.type).render=Fn),tr.renderCache=[],tr.update()}))}),reload:st(function(ct,Fn){const er=rt.get(ct);if(!er)return;Fn=at(Fn),lt(er.initialDef,Fn);const tr=[...er.instances];for(const or of tr){const ar=at(or.type);it.has(ar)||(ar!==er.initialDef&<(ar,Fn),it.add(ar)),or.appContext.propsCache.delete(or.type),or.appContext.emitsCache.delete(or.type),or.appContext.optionsCache.delete(or.type),or.ceReload?(it.add(ar),or.ceReload(Fn.styles),it.delete(ar)):or.parent?Xe(or.parent.update):or.appContext.reload?or.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}nr=()=>{for(const or of tr)it.delete(at(or.type))},l(nr)?Be.push(...nr):Qe&&Qe.includes(nr,nr.allowRecurse?qe+1:qe)||Be.push(nr),Je();var nr})});const rt=new Map;function at(ct){return c(Fn=ct)&&"__vccOpts"in Fn?ct.__vccOpts:ct;var Fn}function lt(ct,Fn){i(ct,Fn);for(const er in ct)er==="__file"||er in Fn||delete ct[er]}function st(ct){return(Fn,er)=>{try{return ct(Fn,er)}catch(tr){console.error(tr),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ut;process.env.NODE_ENV;let dt="__VUE_INSTANCE_SETTERS__";(ut=x()[dt])||(ut=x()[dt]=[]),ut.push(ct=>ct);const ft=/(?:^|[-_])(\w)/g,pt=ct=>ct.replace(ft,Fn=>Fn.toUpperCase()).replace(/[-_]/g,"");function ht(ct,Fn=!0){return c(ct)?ct.displayName||ct.name:ct.name||Fn&&ct.__name}function yt(ct,Fn,er=!1){let tr=ht(Fn);if(!tr&&Fn.__file){const nr=Fn.__file.match(/([^/\\]+)\.\w+$/);nr&&(tr=nr[1])}if(!tr&&ct&&ct.parent){const nr=or=>{for(const ar in or)if(or[ar]===Fn)return ar};tr=nr(ct.components||ct.parent.type.components)||nr(ct.appContext.components)}return tr?pt(tr):er?"App":"Anonymous"}const mt=(ct,Fn)=>function(er,tr,nr=!1){let or,ar;const ir=c(er);return ir?(or=er,ar=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:n):(or=er.get,ar=er.set),new Ee(or,ar,ir||!ar,nr)}(ct,0,!1);function gt(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}var bt,vt={exports:{}};function xt(){return bt||(bt=1,vt.exports=function(){var ct=1e3,Fn=6e4,er=36e5,tr="millisecond",nr="second",or="minute",ar="hour",ir="day",sr="week",lr="month",cr="quarter",pr="year",ur="date",mr="Invalid Date",vr=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yr=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Sr={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Dr){var Br=["th","st","nd","rd"],Vr=Dr%100;return"["+Dr+(Br[(Vr-20)%10]||Br[Vr]||Br[0])+"]"}},gr=function(Dr,Br,Vr){var $r=String(Dr);return!$r||$r.length>=Br?Dr:""+Array(Br+1-$r.length).join(Vr)+Dr},dr={s:gr,z:function(Dr){var Br=-Dr.utcOffset(),Vr=Math.abs(Br),$r=Math.floor(Vr/60),kr=Vr%60;return(Br<=0?"+":"-")+gr($r,2,"0")+":"+gr(kr,2,"0")},m:function Dr(Br,Vr){if(Br.date()<Vr.date())return-Dr(Vr,Br);var $r=12*(Vr.year()-Br.year())+(Vr.month()-Br.month()),kr=Br.clone().add($r,lr),Tr=Vr-kr<0,Cr=Br.clone().add($r+(Tr?-1:1),lr);return+(-($r+(Vr-kr)/(Tr?kr-Cr:Cr-kr))||0)},a:function(Dr){return Dr<0?Math.ceil(Dr)||0:Math.floor(Dr)},p:function(Dr){return{M:lr,y:pr,w:sr,d:ir,D:ur,h:ar,m:or,s:nr,ms:tr,Q:cr}[Dr]||String(Dr||"").toLowerCase().replace(/s$/,"")},u:function(Dr){return Dr===void 0}},fr="en",hr={};hr[fr]=Sr;var br="$isDayjsObject",xr=function(Dr){return Dr instanceof Ir||!(!Dr||!Dr[br])},_r=function Dr(Br,Vr,$r){var kr;if(!Br)return fr;if(typeof Br=="string"){var Tr=Br.toLowerCase();hr[Tr]&&(kr=Tr),Vr&&(hr[Tr]=Vr,kr=Tr);var Cr=Br.split("-");if(!kr&&Cr.length>1)return Dr(Cr[0])}else{var wr=Br.name;hr[wr]=Br,kr=wr}return!$r&&kr&&(fr=kr),kr||!$r&&fr},Er=function(Dr,Br){if(xr(Dr))return Dr.clone();var Vr=typeof Br=="object"?Br:{};return Vr.date=Dr,Vr.args=arguments,new Ir(Vr)},Pr=dr;Pr.l=_r,Pr.i=xr,Pr.w=function(Dr,Br){return Er(Dr,{locale:Br.$L,utc:Br.$u,x:Br.$x,$offset:Br.$offset})};var Ir=function(){function Dr(Vr){this.$L=_r(Vr.locale,null,!0),this.parse(Vr),this.$x=this.$x||Vr.x||{},this[br]=!0}var Br=Dr.prototype;return Br.parse=function(Vr){this.$d=function($r){var kr=$r.date,Tr=$r.utc;if(kr===null)return new Date(NaN);if(Pr.u(kr))return new Date;if(kr instanceof Date)return new Date(kr);if(typeof kr=="string"&&!/Z$/i.test(kr)){var Cr=kr.match(vr);if(Cr){var wr=Cr[2]-1||0,Or=(Cr[7]||"0").substring(0,3);return Tr?new Date(Date.UTC(Cr[1],wr,Cr[3]||1,Cr[4]||0,Cr[5]||0,Cr[6]||0,Or)):new Date(Cr[1],wr,Cr[3]||1,Cr[4]||0,Cr[5]||0,Cr[6]||0,Or)}}return new Date(kr)}(Vr),this.init()},Br.init=function(){var Vr=this.$d;this.$y=Vr.getFullYear(),this.$M=Vr.getMonth(),this.$D=Vr.getDate(),this.$W=Vr.getDay(),this.$H=Vr.getHours(),this.$m=Vr.getMinutes(),this.$s=Vr.getSeconds(),this.$ms=Vr.getMilliseconds()},Br.$utils=function(){return Pr},Br.isValid=function(){return this.$d.toString()!==mr},Br.isSame=function(Vr,$r){var kr=Er(Vr);return this.startOf($r)<=kr&&kr<=this.endOf($r)},Br.isAfter=function(Vr,$r){return Er(Vr)<this.startOf($r)},Br.isBefore=function(Vr,$r){return this.endOf($r)<Er(Vr)},Br.$g=function(Vr,$r,kr){return Pr.u(Vr)?this[$r]:this.set(kr,Vr)},Br.unix=function(){return Math.floor(this.valueOf()/1e3)},Br.valueOf=function(){return this.$d.getTime()},Br.startOf=function(Vr,$r){var kr=this,Tr=!!Pr.u($r)||$r,Cr=Pr.p(Vr),wr=function(zr,Kr){var Jr=Pr.w(kr.$u?Date.UTC(kr.$y,Kr,zr):new Date(kr.$y,Kr,zr),kr);return Tr?Jr:Jr.endOf(ir)},Or=function(zr,Kr){return Pr.w(kr.toDate()[zr].apply(kr.toDate("s"),(Tr?[0,0,0,0]:[23,59,59,999]).slice(Kr)),kr)},Ar=this.$W,Fr=this.$M,Nr=this.$D,Rr="set"+(this.$u?"UTC":"");switch(Cr){case pr:return Tr?wr(1,0):wr(31,11);case lr:return Tr?wr(1,Fr):wr(0,Fr+1);case sr:var Lr=this.$locale().weekStart||0,qr=(Ar<Lr?Ar+7:Ar)-Lr;return wr(Tr?Nr-qr:Nr+(6-qr),Fr);case ir:case ur:return Or(Rr+"Hours",0);case ar:return Or(Rr+"Minutes",1);case or:return Or(Rr+"Seconds",2);case nr:return Or(Rr+"Milliseconds",3);default:return this.clone()}},Br.endOf=function(Vr){return this.startOf(Vr,!1)},Br.$set=function(Vr,$r){var kr,Tr=Pr.p(Vr),Cr="set"+(this.$u?"UTC":""),wr=(kr={},kr[ir]=Cr+"Date",kr[ur]=Cr+"Date",kr[lr]=Cr+"Month",kr[pr]=Cr+"FullYear",kr[ar]=Cr+"Hours",kr[or]=Cr+"Minutes",kr[nr]=Cr+"Seconds",kr[tr]=Cr+"Milliseconds",kr)[Tr],Or=Tr===ir?this.$D+($r-this.$W):$r;if(Tr===lr||Tr===pr){var Ar=this.clone().set(ur,1);Ar.$d[wr](Or),Ar.init(),this.$d=Ar.set(ur,Math.min(this.$D,Ar.daysInMonth())).$d}else wr&&this.$d[wr](Or);return this.init(),this},Br.set=function(Vr,$r){return this.clone().$set(Vr,$r)},Br.get=function(Vr){return this[Pr.p(Vr)]()},Br.add=function(Vr,$r){var kr,Tr=this;Vr=Number(Vr);var Cr=Pr.p($r),wr=function(Fr){var Nr=Er(Tr);return Pr.w(Nr.date(Nr.date()+Math.round(Fr*Vr)),Tr)};if(Cr===lr)return this.set(lr,this.$M+Vr);if(Cr===pr)return this.set(pr,this.$y+Vr);if(Cr===ir)return wr(1);if(Cr===sr)return wr(7);var Or=(kr={},kr[or]=Fn,kr[ar]=er,kr[nr]=ct,kr)[Cr]||1,Ar=this.$d.getTime()+Vr*Or;return Pr.w(Ar,this)},Br.subtract=function(Vr,$r){return this.add(-1*Vr,$r)},Br.format=function(Vr){var $r=this,kr=this.$locale();if(!this.isValid())return kr.invalidDate||mr;var Tr=Vr||"YYYY-MM-DDTHH:mm:ssZ",Cr=Pr.z(this),wr=this.$H,Or=this.$m,Ar=this.$M,Fr=kr.weekdays,Nr=kr.months,Rr=kr.meridiem,Lr=function(Kr,Jr,Zr,Yr){return Kr&&(Kr[Jr]||Kr($r,Tr))||Zr[Jr].slice(0,Yr)},qr=function(Kr){return Pr.s(wr%12||12,Kr,"0")},zr=Rr||function(Kr,Jr,Zr){var Yr=Kr<12?"AM":"PM";return Zr?Yr.toLowerCase():Yr};return Tr.replace(yr,function(Kr,Jr){return Jr||function(Zr){switch(Zr){case"YY":return String($r.$y).slice(-2);case"YYYY":return Pr.s($r.$y,4,"0");case"M":return Ar+1;case"MM":return Pr.s(Ar+1,2,"0");case"MMM":return Lr(kr.monthsShort,Ar,Nr,3);case"MMMM":return Lr(Nr,Ar);case"D":return $r.$D;case"DD":return Pr.s($r.$D,2,"0");case"d":return String($r.$W);case"dd":return Lr(kr.weekdaysMin,$r.$W,Fr,2);case"ddd":return Lr(kr.weekdaysShort,$r.$W,Fr,3);case"dddd":return Fr[$r.$W];case"H":return String(wr);case"HH":return Pr.s(wr,2,"0");case"h":return qr(1);case"hh":return qr(2);case"a":return zr(wr,Or,!0);case"A":return zr(wr,Or,!1);case"m":return String(Or);case"mm":return Pr.s(Or,2,"0");case"s":return String($r.$s);case"ss":return Pr.s($r.$s,2,"0");case"SSS":return Pr.s($r.$ms,3,"0");case"Z":return Cr}return null}(Kr)||Cr.replace(":","")})},Br.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Br.diff=function(Vr,$r,kr){var Tr,Cr=this,wr=Pr.p($r),Or=Er(Vr),Ar=(Or.utcOffset()-this.utcOffset())*Fn,Fr=this-Or,Nr=function(){return Pr.m(Cr,Or)};switch(wr){case pr:Tr=Nr()/12;break;case lr:Tr=Nr();break;case cr:Tr=Nr()/3;break;case sr:Tr=(Fr-Ar)/6048e5;break;case ir:Tr=(Fr-Ar)/864e5;break;case ar:Tr=Fr/er;break;case or:Tr=Fr/Fn;break;case nr:Tr=Fr/ct;break;default:Tr=Fr}return kr?Tr:Pr.a(Tr)},Br.daysInMonth=function(){return this.endOf(lr).$D},Br.$locale=function(){return hr[this.$L]},Br.locale=function(Vr,$r){if(!Vr)return this.$L;var kr=this.clone(),Tr=_r(Vr,$r,!0);return Tr&&(kr.$L=Tr),kr},Br.clone=function(){return Pr.w(this.$d,this)},Br.toDate=function(){return new Date(this.valueOf())},Br.toJSON=function(){return this.isValid()?this.toISOString():null},Br.toISOString=function(){return this.$d.toISOString()},Br.toString=function(){return this.$d.toUTCString()},Dr}(),Mr=Ir.prototype;return Er.prototype=Mr,[["$ms",tr],["$s",nr],["$m",or],["$H",ar],["$W",ir],["$M",lr],["$y",pr],["$D",ur]].forEach(function(Dr){Mr[Dr[1]]=function(Br){return this.$g(Br,Dr[0],Dr[1])}}),Er.extend=function(Dr,Br){return Dr.$i||(Dr(Br,Ir,Er),Dr.$i=!0),Er},Er.locale=_r,Er.isDayjs=xr,Er.unix=function(Dr){return Er(1e3*Dr)},Er.en=hr[fr],Er.Ls=hr,Er.p={},Er}()),vt.exports}var wt=gt(xt()),St=typeof global=="object"&&global&&global.Object===Object&&global,At=typeof self=="object"&&self&&self.Object===Object&&self,_t=St||At||Function("return this")(),Lt=_t.Symbol,Ot=Object.prototype,Ct=Ot.hasOwnProperty,jt=Ot.toString,Nt=Lt?Lt.toStringTag:void 0,Tt=Object.prototype.toString,Mt=Lt?Lt.toStringTag:void 0;function kt(ct){return ct==null?ct===void 0?"[object Undefined]":"[object Null]":Mt&&Mt in Object(ct)?function(Fn){var er=Ct.call(Fn,Nt),tr=Fn[Nt];try{Fn[Nt]=void 0;var nr=!0}catch{}var or=jt.call(Fn);return nr&&(er?Fn[Nt]=tr:delete Fn[Nt]),or}(ct):function(Fn){return Tt.call(Fn)}(ct)}function Ft(ct){return ct!=null&&typeof ct=="object"}var Dt=Array.isArray;function $t(ct){var Fn=typeof ct;return ct!=null&&(Fn=="object"||Fn=="function")}function Vt(ct){if(!$t(ct))return!1;var Fn=kt(ct);return Fn=="[object Function]"||Fn=="[object GeneratorFunction]"||Fn=="[object AsyncFunction]"||Fn=="[object Proxy]"}var Et,zt=_t["__core-js_shared__"],It=(Et=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Et:"",Rt=Function.prototype.toString;function Wt(ct){if(ct!=null){try{return Rt.call(ct)}catch{}try{return ct+""}catch{}}return""}var Ht=/^\[object .+?Constructor\]$/,Pt=Function.prototype,Gt=Object.prototype,Ut=Pt.toString,Yt=Gt.hasOwnProperty,Kt=RegExp("^"+Ut.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bt(ct){return!(!$t(ct)||(Fn=ct,It&&It in Fn))&&(Vt(ct)?Kt:Ht).test(Wt(ct));var Fn}function Qt(ct,Fn){var er=function(tr,nr){return tr==null?void 0:tr[nr]}(ct,Fn);return Bt(er)?er:void 0}var qt=Qt(_t,"WeakMap"),Zt=Object.create,Xt=function(){function ct(){}return function(Fn){if(!$t(Fn))return{};if(Zt)return Zt(Fn);ct.prototype=Fn;var er=new ct;return ct.prototype=void 0,er}}(),Jt=function(){try{var ct=Qt(Object,"defineProperty");return ct({},"",{}),ct}catch{}}(),eo=/^(?:0|[1-9]\d*)$/;function to(ct,Fn){var er=typeof ct;return!!(Fn=Fn??9007199254740991)&&(er=="number"||er!="symbol"&&eo.test(ct))&&ct>-1&&ct%1==0&&ct<Fn}function oo(ct,Fn){return ct===Fn||ct!=ct&&Fn!=Fn}var no=Object.prototype.hasOwnProperty;function io(ct,Fn,er){var tr=ct[Fn];no.call(ct,Fn)&&oo(tr,er)&&(er!==void 0||Fn in ct)||function(nr,or,ar){or=="__proto__"&&Jt?Jt(nr,or,{configurable:!0,enumerable:!0,value:ar,writable:!0}):nr[or]=ar}(ct,Fn,er)}function ro(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=9007199254740991}var ao=Object.prototype;function lo(ct){var Fn=ct&&ct.constructor;return ct===(typeof Fn=="function"&&Fn.prototype||ao)}function so(ct){return Ft(ct)&&kt(ct)=="[object Arguments]"}var co=Object.prototype,uo=co.hasOwnProperty,fo=co.propertyIsEnumerable,po=so(function(){return arguments}())?so:function(ct){return Ft(ct)&&uo.call(ct,"callee")&&!fo.call(ct,"callee")},ho=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yo=ho&&typeof module=="object"&&module&&!module.nodeType&&module,mo=yo&&yo.exports===ho?_t.Buffer:void 0,go=(mo?mo.isBuffer:void 0)||function(){return!1},bo={};function vo(ct){return function(Fn){return ct(Fn)}}bo["[object Float32Array]"]=bo["[object Float64Array]"]=bo["[object Int8Array]"]=bo["[object Int16Array]"]=bo["[object Int32Array]"]=bo["[object Uint8Array]"]=bo["[object Uint8ClampedArray]"]=bo["[object Uint16Array]"]=bo["[object Uint32Array]"]=!0,bo["[object Arguments]"]=bo["[object Array]"]=bo["[object ArrayBuffer]"]=bo["[object Boolean]"]=bo["[object DataView]"]=bo["[object Date]"]=bo["[object Error]"]=bo["[object Function]"]=bo["[object Map]"]=bo["[object Number]"]=bo["[object Object]"]=bo["[object RegExp]"]=bo["[object Set]"]=bo["[object String]"]=bo["[object WeakMap]"]=!1;var xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wo=xo&&typeof module=="object"&&module&&!module.nodeType&&module,So=wo&&wo.exports===xo&&St.process,Ao=function(){try{var ct=wo&&wo.require&&wo.require("util").types;return ct||So&&So.binding&&So.binding("util")}catch{}}(),_o=Ao&&Ao.isTypedArray,Lo=_o?vo(_o):function(ct){return Ft(ct)&&ro(ct.length)&&!!bo[kt(ct)]},Oo=Object.prototype.hasOwnProperty;function Co(ct,Fn){var er=Dt(ct),tr=!er&&po(ct),nr=!er&&!tr&&go(ct),or=!er&&!tr&&!nr&&Lo(ct),ar=er||tr||nr||or,ir=ar?function(cr,pr){for(var ur=-1,mr=Array(cr);++ur<cr;)mr[ur]=pr(ur);return mr}(ct.length,String):[],sr=ir.length;for(var lr in ct)!Oo.call(ct,lr)||ar&&(lr=="length"||nr&&(lr=="offset"||lr=="parent")||or&&(lr=="buffer"||lr=="byteLength"||lr=="byteOffset")||to(lr,sr))||ir.push(lr);return ir}function jo(ct,Fn){return function(er){return ct(Fn(er))}}var No=jo(Object.keys,Object),To=Object.prototype.hasOwnProperty;function Mo(ct){return(Fn=ct)!=null&&ro(Fn.length)&&!Vt(Fn)?Co(ct):function(er){if(!lo(er))return No(er);var tr=[];for(var nr in Object(er))To.call(er,nr)&&nr!="constructor"&&tr.push(nr);return tr}(ct);var Fn}var ko=Qt(Object,"create"),Fo=Object.prototype.hasOwnProperty,Do=Object.prototype.hasOwnProperty;function $o(ct){var Fn=-1,er=ct==null?0:ct.length;for(this.clear();++Fn<er;){var tr=ct[Fn];this.set(tr[0],tr[1])}}function Vo(ct,Fn){for(var er=ct.length;er--;)if(oo(ct[er][0],Fn))return er;return-1}$o.prototype.clear=function(){this.__data__=ko?ko(null):{},this.size=0},$o.prototype.delete=function(ct){var Fn=this.has(ct)&&delete this.__data__[ct];return this.size-=Fn?1:0,Fn},$o.prototype.get=function(ct){var Fn=this.__data__;if(ko){var er=Fn[ct];return er==="__lodash_hash_undefined__"?void 0:er}return Fo.call(Fn,ct)?Fn[ct]:void 0},$o.prototype.has=function(ct){var Fn=this.__data__;return ko?Fn[ct]!==void 0:Do.call(Fn,ct)},$o.prototype.set=function(ct,Fn){var er=this.__data__;return this.size+=this.has(ct)?0:1,er[ct]=ko&&Fn===void 0?"__lodash_hash_undefined__":Fn,this};var Eo=Array.prototype.splice;function zo(ct){var Fn=-1,er=ct==null?0:ct.length;for(this.clear();++Fn<er;){var tr=ct[Fn];this.set(tr[0],tr[1])}}zo.prototype.clear=function(){this.__data__=[],this.size=0},zo.prototype.delete=function(ct){var Fn=this.__data__,er=Vo(Fn,ct);return!(er<0)&&(er==Fn.length-1?Fn.pop():Eo.call(Fn,er,1),--this.size,!0)},zo.prototype.get=function(ct){var Fn=this.__data__,er=Vo(Fn,ct);return er<0?void 0:Fn[er][1]},zo.prototype.has=function(ct){return Vo(this.__data__,ct)>-1},zo.prototype.set=function(ct,Fn){var er=this.__data__,tr=Vo(er,ct);return tr<0?(++this.size,er.push([ct,Fn])):er[tr][1]=Fn,this};var Io=Qt(_t,"Map");function Ro(ct,Fn){var er,tr,nr=ct.__data__;return((tr=typeof(er=Fn))=="string"||tr=="number"||tr=="symbol"||tr=="boolean"?er!=="__proto__":er===null)?nr[typeof Fn=="string"?"string":"hash"]:nr.map}function Wo(ct){var Fn=-1,er=ct==null?0:ct.length;for(this.clear();++Fn<er;){var tr=ct[Fn];this.set(tr[0],tr[1])}}Wo.prototype.clear=function(){this.size=0,this.__data__={hash:new $o,map:new(Io||zo),string:new $o}},Wo.prototype.delete=function(ct){var Fn=Ro(this,ct).delete(ct);return this.size-=Fn?1:0,Fn},Wo.prototype.get=function(ct){return Ro(this,ct).get(ct)},Wo.prototype.has=function(ct){return Ro(this,ct).has(ct)},Wo.prototype.set=function(ct,Fn){var er=Ro(this,ct),tr=er.size;return er.set(ct,Fn),this.size+=er.size==tr?0:1,this};var Ho=jo(Object.getPrototypeOf,Object);function Po(ct){var Fn=this.__data__=new zo(ct);this.size=Fn.size}Po.prototype.clear=function(){this.__data__=new zo,this.size=0},Po.prototype.delete=function(ct){var Fn=this.__data__,er=Fn.delete(ct);return this.size=Fn.size,er},Po.prototype.get=function(ct){return this.__data__.get(ct)},Po.prototype.has=function(ct){return this.__data__.has(ct)},Po.prototype.set=function(ct,Fn){var er=this.__data__;if(er instanceof zo){var tr=er.__data__;if(!Io||tr.length<199)return tr.push([ct,Fn]),this.size=++er.size,this;er=this.__data__=new Wo(tr)}return er.set(ct,Fn),this.size=er.size,this};var Go=Object.prototype.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols,Yo=Uo?function(ct){return ct==null?[]:(ct=Object(ct),function(Fn,er){for(var tr=-1,nr=Fn==null?0:Fn.length,or=0,ar=[];++tr<nr;){var ir=Fn[tr];er(ir,tr,Fn)&&(ar[or++]=ir)}return ar}(Uo(ct),function(Fn){return Go.call(ct,Fn)}))}:function(){return[]};function Ko(ct){return function(Fn,er,tr){var nr=er(Fn);return Dt(Fn)?nr:function(or,ar){for(var ir=-1,sr=ar.length,lr=or.length;++ir<sr;)or[lr+ir]=ar[ir];return or}(nr,tr(Fn))}(ct,Mo,Yo)}var Bo=Qt(_t,"DataView"),Qo=Qt(_t,"Promise"),qo=Qt(_t,"Set"),Zo="[object Map]",Xo="[object Promise]",Jo="[object Set]",en="[object WeakMap]",tn="[object DataView]",on$1=Wt(Bo),nn=Wt(Io),rn=Wt(Qo),an=Wt(qo),ln=Wt(qt),sn=kt;(Bo&&sn(new Bo(new ArrayBuffer(1)))!=tn||Io&&sn(new Io)!=Zo||Qo&&sn(Qo.resolve())!=Xo||qo&&sn(new qo)!=Jo||qt&&sn(new qt)!=en)&&(sn=function(ct){var Fn=kt(ct),er=Fn=="[object Object]"?ct.constructor:void 0,tr=er?Wt(er):"";if(tr)switch(tr){case on$1:return tn;case nn:return Zo;case rn:return Xo;case an:return Jo;case ln:return en}return Fn});var cn=Object.prototype.hasOwnProperty,un=_t.Uint8Array;function dn(ct){var Fn=new ct.constructor(ct.byteLength);return new un(Fn).set(new un(ct)),Fn}var fn=/\w*$/,pn=Lt?Lt.prototype:void 0,hn=pn?pn.valueOf:void 0;function yn(ct,Fn,er){var tr,nr,or,ar,ir,sr=ct.constructor;switch(Fn){case"[object ArrayBuffer]":return dn(ct);case"[object Boolean]":case"[object Date]":return new sr(+ct);case"[object DataView]":return ir=dn((ar=ct).buffer),new ar.constructor(ir,ar.byteOffset,ar.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(lr){var cr=dn(lr.buffer);return new lr.constructor(cr,lr.byteOffset,lr.length)}(ct);case"[object Map]":case"[object Set]":return new sr;case"[object Number]":case"[object String]":return new sr(ct);case"[object RegExp]":return(or=new(nr=ct).constructor(nr.source,fn.exec(nr))).lastIndex=nr.lastIndex,or;case"[object Symbol]":return tr=ct,hn?Object(hn.call(tr)):{}}}var mn=Ao&&Ao.isMap,gn=mn?vo(mn):function(ct){return Ft(ct)&&sn(ct)=="[object Map]"},bn=Ao&&Ao.isSet,vn=bn?vo(bn):function(ct){return Ft(ct)&&sn(ct)=="[object Set]"},xn="[object Arguments]",wn="[object Function]",Sn="[object Object]",An={};function _n(ct,Fn,er,tr,nr,or){var ar;if(ar!==void 0)return ar;if(!$t(ct))return ct;var ir=Dt(ct);if(ir)ar=function(ur){var mr=ur.length,vr=new ur.constructor(mr);return mr&&typeof ur[0]=="string"&&cn.call(ur,"index")&&(vr.index=ur.index,vr.input=ur.input),vr}(ct);else{var sr=sn(ct),lr=sr==wn||sr=="[object GeneratorFunction]";if(go(ct))return ct.slice();if(sr==Sn||sr==xn||lr&&!nr)ar=lr?{}:function(ur){return typeof ur.constructor!="function"||lo(ur)?{}:Xt(Ho(ur))}(ct);else{if(!An[sr])return nr?ct:{};ar=yn(ct,sr)}}or||(or=new Po);var cr=or.get(ct);if(cr)return cr;or.set(ct,ar),vn(ct)?ct.forEach(function(ur){ar.add(_n(ur,Fn,er,ur,ct,or))}):gn(ct)&&ct.forEach(function(ur,mr){ar.set(mr,_n(ur,Fn,er,mr,ct,or))});var pr=ir?void 0:Ko(ct);return function(ur,mr){for(var vr=-1,yr=ur==null?0:ur.length;++vr<yr&&mr(ur[vr],vr,ur)!==!1;);}(pr||ct,function(ur,mr){pr&&(ur=ct[mr=ur]),io(ar,mr,_n(ur,Fn,er,mr,ct,or))}),ar}An[xn]=An["[object Array]"]=An["[object ArrayBuffer]"]=An["[object DataView]"]=An["[object Boolean]"]=An["[object Date]"]=An["[object Float32Array]"]=An["[object Float64Array]"]=An["[object Int8Array]"]=An["[object Int16Array]"]=An["[object Int32Array]"]=An["[object Map]"]=An["[object Number]"]=An[Sn]=An["[object RegExp]"]=An["[object Set]"]=An["[object String]"]=An["[object Symbol]"]=An["[object Uint8Array]"]=An["[object Uint8ClampedArray]"]=An["[object Uint16Array]"]=An["[object Uint32Array]"]=!0,An["[object Error]"]=An[wn]=An["[object WeakMap]"]=!1;function Ln(ct){return _n(ct,5)}let On=(ct,Fn)=>()=>{let er="",tr=Fn;for(;tr--;)er+=ct[Math.random()*ct.length|0];return er};const Cn=(ct,Fn)=>{let er=ct;const tr=/[.*+?^${}()|[\]\\]/,nr=Object.assign({dayjs:wt},Fn);let or="";const ar=[];for(const lr in nr){let cr=lr;tr.test(lr)&&(cr=On("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",6)(),er=er.split(lr).join(cr)),or+=`${cr},`,ar.push(nr[lr])}or=or.replace(/,$/,"");const ir=`function (${or}){return ${er}}`;let sr;try{sr=Function(`"use strict";return (${ir})`)()(...ar)}catch{return ct}return sr},jn=(ct="",{textData:Fn,codeData:er}={},{useNewline:tr=!1,useSpace:nr=!1}={})=>{const or=window.config||{},ar=Object.assign(Object.assign({},or),Fn),ir=String(ct||"").match(/\{(.+?)\}/g);if(ir==null||ir.length===0)return ct;for(let sr=0;sr<ir.length;sr++){const lr=ir[sr];let cr=lr.slice(1,-1).trim();const pr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,ur=cr.match(pr);for(let mr=0;mr<ur.length;mr++){const vr=ur[mr],yr=ar[vr];yr!=null&&typeof yr!="function"&&(cr=cr.replace(vr,yr))}(/\(.*\)/g.test(cr)||/[+/\\*]/g.test(cr))&&(cr=Cn(cr,er)),ct=ct.replace(lr,cr)}return tr&&(ct=ct==null?void 0:ct.replace(/\n|\\n/g,"<br/>")),nr&&(ct=ct==null?void 0:ct.replace(/\s{2,}?/g," ")),ct=(ct=ct.replace(/Qfw\((.*?)\)/,(sr,lr)=>Fn!=null&&Fn.Qfw?Fn==null?void 0:Fn.Qfw(lr):lr)).replace(/QwfFixed\((.*?)\)/,(sr,lr)=>Fn!=null&&Fn.QwfFixed?Fn==null?void 0:Fn.QwfFixed(lr):lr)},Nn=(ct,Fn)=>{if(typeof ct=="string"&&typeof Fn=="string")return ct.toLocaleLowerCase().includes(Fn.toLocaleLowerCase());if(typeof ct=="string"&&Array.isArray(Fn)){const er=Fn.length;for(let tr=0;tr<er;tr++){const nr=Fn[tr];if(typeof nr=="string"&&ct.toLocaleLowerCase().includes(nr.toLocaleLowerCase()))return!0}}return!1},Tn=(ct,Fn)=>Object.prototype.hasOwnProperty.call(ct,Fn),Mn=ct=>{const Fn=[];for(const er of ct)er.conditions?Fn.push(...Mn(er.conditions)):(er==null?void 0:er.dataType)==="component"&&Fn.push(er);return Fn},kn=(ct="",Fn)=>{var er;const tr=ct.match(/\{(.+?)\}/g),nr=((er=ct.split(`
|
|
62
62
|
`))===null||er===void 0?void 0:er.length)-1;let or="";if(nr)for(let ir=0;ir<nr;ir++)or+=`
|
|
63
|
-
`;let ar=ct;if(tr!=null&&tr.length){for(const ir of tr){const sr=jn(ir,{textData:Fn},{useNewline:!1,useSpace:!1});sr&&(ar=ar.replace(ir,sr))}return`${or}{text|${ar}}`}return ct};function Dn(ct){return Number(ct).toLocaleString("zh-CN",{minimumFractionDigits:2})}function $n(ct){return Number(ct).toLocaleString()}const Vn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let En=new Map,zn=[];const In=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],Rn=ct=>En.get(ct),Wn=(ct,Fn)=>{if(Fn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:er=[],dateCalcTypes:tr=[],activeKey:nr,componentId:or=""}=ct;if(nr===5&&(er!=null&&er.length)&&(tr!=null&&tr.length)&&or){const ar=er[0].split("-");(ar==null?void 0:ar.length)>1&&ar[0]==="rangeValue"&&(ct.calcWays=((ir,sr={})=>{const{around:lr,unit:cr,id:pr}=ir;let ur="";const{pageMode:mr="",componentList:vr=[]}=(sr==null?void 0:sr.graphicConfig)||{};let yr=null,Sr=null;if(mr==="design"){const gr=vr==null?void 0:vr.find(Er=>Er.id===pr);if(!gr)return[];const{interval:dr,intervalUnit:fr,startTime:hr,endTime:br,operate:xr,useCurrentTime:_r}=gr||{};if(_r&&(yr=wt().subtract(dr,fr),Sr=wt()),hr&&(yr=wt(hr)),br&&(Sr=wt(br)),xr){const{type:Er,value:Pr,mode:Ir}=xr;switch(Er){case"add":yr=yr&&yr.add(Pr,Ir),Sr=Sr&&Sr.add(Pr,Ir);break;case"minus":yr=yr&&yr.subtract(Pr,Ir),Sr=Sr&&Sr.subtract(Pr,Ir)}}}else{const gr=Rn(pr)||{};Ve(gr.startTime)&&(yr=wt(Ve(gr.startTime))),Ve(gr.endTime)&&(Sr=wt(Ve(gr.endTime)))}return yr&&Sr&&(ur=`${lr==="before"?"-":""}${Sr.diff(yr,cr.toLowerCase())+1}`),ur?[ur]:[]})({around:ar[1],unit:tr[0],id:or})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let ar=ct.modelKey;ar&&ct.prop&&(ar+=`-${ct.prop}`),ct.fieldValue="${"+ar+"}"}else ct.fieldValue="${"+Gn(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=wt().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},Hn=(ct,Fn)=>{const er=[];return ct!=null&&ct.length&&Ln(ct).forEach(tr=>{if(tr.join&&tr.conditions){const nr=!tr.conditions.some(or=>or.join&&or.conditions);tr.conditions.forEach((or,ar)=>{Wn(or,Fn);const ir={};if(ar<tr.conditions.length-1&&(ir.join=tr.join),nr)er.push(Object.assign(Object.assign({},ir),or));else if(or.join&&or.conditions){const sr=Fn?"sqlConditions":"conditions";er.push(Object.assign({[sr]:Hn([or],Fn)},ir))}else er.push(Object.assign(Object.assign({},ir),or))})}else Wn(tr,Fn),er.push(tr)}),er},Pn=(ct={},Fn)=>{if(ct!=null&&ct.sortCpnts&&Fn){const br=qn(ct);br&&(Fn.sort=br)}const{label:er,name:tr,location:nr,show:or,indexCode:ar,indexCodeNum:ir,calcType:sr="COLUMN",builtInFormula:lr,builtInValueSource:cr,builtInCalcWay:pr,formula:ur,conditions:mr,aggregate:vr,distinct:yr,dimByCount:Sr,dataTo:gr,sort:dr}=ct;let fr;if(mr&&(fr=Hn(mr)),sr==="COMPONENT"){const br={};return Bn(br,cr),{label:er.trim(),columnName:tr,show:or,calcType:sr,componentAlias:pr,componentValue:br.fieldValue||null}}const hr={label:er.trim(),columnName:tr,location:nr,show:or,calcType:gr==="1"?"VIEW":sr,hrpIndexCode:ar,hrpIndexCodeNum:ir,aggregate:vr,builtInFormula:lr,builtInValueSource:cr,formula:ur,conditions:fr};if(dr&&(hr.sort={columnName:tr,label:hr.label,order:dr,type:"NORMAL"}),lr!=="DATE_OFFSET")return tr==="the_count"&&(hr.calcType="AGGREGATE",hr.distinct=!!yr,hr.typeGuid=Sr),Object.assign(Object.assign({},hr),{builtInCalcWay:pr});{const br=pr.split("-");if((br==null?void 0:br.length)===3){let xr=br[0];return br[2]==="before"&&br[0]!=="0"&&(xr=`-${br[0]}`),Object.assign(Object.assign({},hr),{calcWays:[xr],dateCalcTypes:[br[1]]})}}},Gn=(ct,Fn)=>{const er=zn.find(nr=>nr.id===ct),{keyName:tr}=er||{};if(tr){const nr=/-(startTime|endTime)/g,or=Fn.match(nr);return or!=null&&or.length?`${tr}${or[0]}`:tr}return Fn||""},Un=ct=>{if(!ct)return[];const Fn=Ln((ct==null?void 0:ct.controlList)||[]).filter(Sr=>Sr.conditionKey!=="parentCode"),{classificationList:er=[],rowHeaderList:tr=[],dimensionList:nr=[],seriesList:or=[],leftAxisList:ar=[],rightAxisList:ir=[],queryColumnList:sr=[],indexLibColumns:lr=[],indicators:cr=[],specialIndicators:pr=[]}=ct;Kn(Fn);const ur=[...er,...tr,...nr,...or,...ar,...ir,...sr,...lr,...cr,...pr],mr=[];for(const Sr of ur){const gr=Mn((Sr==null?void 0:Sr.conditions)||[]);if(gr!=null&&gr.length){const dr=gr.filter(fr=>(fr==null?void 0:fr.dataType)==="component").map(fr=>{const hr={};return fr!=null&&fr.dateFormat&&(hr.format=fr.dateFormat),fr.fieldValue==="PARENT"&&(hr.id="PARENT",hr.keyName=fr.modelKey,hr.modelKey=fr.modelKey,hr.prop=fr.prop),Object.assign({conditionKey:fr.fieldName,conditionLabel:fr.fieldName,conditionName:fr.fieldName,conditionValueType:fr.fieldType,id:fr.componentId,keyName:fr.fieldValue,rule:fr.rule,notGlobal:!0,indexCode:fr.indexCode,typeGuid:fr.typeGuid,indexCodeNum:fr.indexCodeNum},hr)});if(dr!=null&&dr.length)for(const fr of dr)mr.find(hr=>hr.keyName===fr.keyName)||mr.push(fr)}}const vr=mr.length,yr=Fn;for(let Sr=0;Sr<vr;Sr++){const gr=mr[Sr];if((gr==null?void 0:gr.conditionKey)==="parentCode")continue;const{id:dr,keyName:fr,prop:hr,format:br,modelKey:xr,dataType:_r="component",customValue:Er}=gr,Pr=Gn(dr,fr),Ir=Yn(gr);Bn(Ir,dr,{prop:hr,dateFormat:br,modelKey:xr,keyName:Pr}),_r===""&&(Ir.fieldValue=Er||""),yr.push(Ir)}for(let Sr=yr.length-1;Sr>=0;Sr--){const gr=yr[Sr];gr.globalCondition||Mn(yr).find(dr=>dr.alias===gr.alias&&dr.globalCondition)&&yr.splice(Sr,1)}return yr};function Yn(ct){const{id:Fn,keyName:er,conditionLabel:tr,conditionKey:nr,conditionValueType:or,prop:ar,rule:ir="NONE",notGlobal:sr=!1,indexCode:lr,typeGuid:cr,indexCodeNum:pr,dataType:ur="component"}=ct,mr=Gn(Fn,er);let vr=mr||Fn;vr&&ar&&(vr+=`-${ar}`);let yr=ir;return yr==="NONE"&&(yr=["startTime","endTime"].includes(ar)?ar==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":mr!=null&&mr.includes("startTime")?ar==="GREATER_EQUAL":mr!=null&&mr.includes("endTime")?ar==="LESS_EQUAL":"EQUAL"),Fn==="PARENT"&&(vr=ct.modelKey,vr&&ar&&(vr+=`-${ar}`),yr=ir),{rule:yr,label:tr,fieldName:nr,fieldValue:"",valueType:or,alias:vr,globalCondition:!sr,indexCode:lr,typeGuid:cr,indexCodeNum:pr,dataType:ur}}function Kn(ct){if(ct!=null&&ct.length)for(const Fn of ct)if(Fn!=null&&Fn.conditions)Kn(Fn.conditions);else{const{id:er,keyName:tr,prop:nr,modelKey:or,format:ar,dataType:ir="component",customValue:sr}=Fn,lr=Gn(er,tr),cr=Yn(Fn);Bn(cr,er,{prop:nr,dateFormat:ar,modelKey:or,keyName:lr}),ir===""&&(cr.fieldValue=sr||"");for(const pr in cr)Fn[pr]=cr[pr];for(const pr of In)delete Fn[pr]}}function Bn(ct,Fn,er){const{prop:tr="",dateFormat:nr="",modelKey:or="",keyName:ar="",operateValue:ir,operateMode:sr,operateType:lr}=er||{},cr=or||ar;if(Fn==="PARENT"&&cr&&tr){const dr=window.config.record;let fr=tr,hr=nr;const br=tr.match(/\{(.+?)\}/g);if(br!=null&&br.length){const xr=br[0].slice(1,-1).trim();fr=tr.replace(br[0],""),hr=xr,ct.dateFormat=hr}if(dr&&dr[cr]){const xr=Ve(dr[cr][fr]);wt.isDayjs(xr)?ct.fieldValue=xr.format(hr||"YYYY-MM-DD"):ct.fieldValue=xr}return}const pr=Rn(Fn)||{},{value:ur,format:mr="YYYY-MM-DD",type:vr="",useCurrentTime:yr,RECORD:Sr}=pr||{},gr=nr||mr;if(Nn(vr,"date")){let dr;if(dr=yr?ur?Ve(ur):wt():Ve(ur),typeof dr=="string"&&(dr=wt(dr)),ir&&sr&&lr)switch(lr){case"add":dr=dr.add(ir,sr);break;case"minus":dr=dr.subtract(ir,sr)}ct.fieldValue=dr==null?void 0:dr.format(gr),ct.dateFormat=gr}else if(Nn(vr,"rangepicker")){let dr=tr;if(!tr){const hr=ar&&ar.split("-");hr!=null&&hr.length&&(dr=hr[hr.length-1])}if(!dr)return;let fr=null;if(Ve(pr[dr])&&(fr=wt(Ve(pr[dr]))),ir&&sr&&lr){if(ir==="rangeValue"){if(pr.startTime&&pr.endTime){const hr=Ve(pr.endTime).diff(Ve(pr.startTime),sr)+1;switch(lr){case"add":fr=fr&&fr.add(hr,sr);break;case"minus":fr=fr&&fr.subtract(hr,sr)}}}else if(!isNaN(+ir))switch(lr){case"add":fr=fr&&fr.add(ir,sr);break;case"minus":fr=fr&&fr.subtract(ir,sr)}}if(fr&&(ct.fieldValue=fr==null?void 0:fr.format(gr)),dr==="rangeValue"&&pr.startTime&&pr.endTime){const hr=function(br){const xr=br.split("-");let _r="";if(xr!=null&&xr.length)switch(xr[xr.length-1]){case"YYYY":_r="year";break;case"MM":_r="month";break;case"DD":_r="day"}return _r}(gr);hr&&(ct.fieldValue=Ve(pr.endTime).diff(Ve(pr.startTime),hr)+1)}ct.dateFormat=gr}else Nn(vr,Vn)?ct.fieldValue=or&&Sr?Sr[or]:!or&&Sr?Sr.value:Ve(ur):Nn(vr,"select")&&Array.isArray(Ve(ur))?ct.fieldValue=Ve(ur).join(","):ct.fieldValue=Ve(ur)}const Qn=ct=>{if(ct){const Fn=Array.isArray(ct)?Ln(ct):[Ln(ct)];let er="",tr=[];const nr=[],or=[],ar=[];for(const ir of Fn){let sr=ir.label,lr=ir.columnName;if(ir.defaultCode&&(sr=ir.columnName,delete ir.defaultCode),lr==="component-value"&&ir.componentId){const cr=Rn(ir.componentId)||{},{value:pr}=cr;Ve(pr)&&(sr=lr=Ve(pr))}er=ir.type,er==="CUSTOM"&&(tr=ir.customOrderColumns),nr.push(sr),or.push(lr),ar.push(ir.order)}return er!=="CUSTOM"&&(nr==null?void 0:nr.length)>1&&(er="COMBINATION"),er==="CUSTOM"?{label:nr.join(","),columnName:or.join(","),type:er,customOrderColumns:tr}:{label:nr.join(","),columnName:or.join(","),order:ar.join(","),type:er}}return ct},qn=ct=>{const{sortCpnts:Fn=[]}=ct;let er,tr="";for(const nr of Fn){const or=Rn(nr)||{},{type:ar,RECORD:ir}=or;if(Nn(ar,"image")&&Nn(ir==null?void 0:ir.value,["asc","desc"])){tr=ir.value.toUpperCase();break}}return tr&&(er={label:ct.label,columnName:ct.name,order:tr,type:"NORMAL"}),er},Zn=(ct,Fn={})=>{var er,tr,nr,or,ar,ir,sr,lr;const{graphicConfig:cr,type:pr,globalModel:ur,isGroupTable:mr=!1,allComponentList:vr}=ct;ur&&(En=ur),vr!=null&&vr.length&&(zn=vr);const yr=Nn(pr,"pivottable");let Sr,{source:gr,dataViewId:dr,plugin:fr="1",layer:hr,chartType:br,classificationList:xr=[],rowHeaderList:_r=[],dimensionList:Er=[],seriesList:Pr=[],leftAxisList:Ir=[],rightAxisList:Mr=[],queryColumnList:Dr=[],indexLibColumns:Br=[],indicators:Vr=[],specialIndicators:$r=[],controlList:kr=[],formFields:Tr={},variableList:Cr=[],variableConditions:wr=[],dataSourceId:Or="",idxLibMode:Ar,preview:Fr=!1,edvDataSetId:Nr,compositeIndicator:Rr}=cr||{},Lr=[];if((cr==null?void 0:cr.pageMode)==="design"?(Lr=((er=cr.sqlConditions)!==null&&er!==void 0?er:[]).map(Wr=>{const Xr={};if(Tn(Wr,"globalCondition")||Wr.join||(Xr.globalCondition=!0),!Wr.join){const hi=Wr.rule||"EQUAL";Xr.rule=hi==="NONE"?"EQUAL":hi}return Object.assign(Object.assign({},Wr),Xr)}),wr!=null&&wr.length&&(Lr=Lr.concat(wr))):(Lr=Un(cr),Cr!=null&&Cr.length&&(Lr=Lr.concat(function(Wr){const Xr=[];if(Wr!=null&&Wr.length){for(const hi of Wr)if(hi.variableName){const gi=Gn(hi.id,hi.keyName),bi={variateName:hi.variableName,globalCondition:!1,valueType:hi.variableType,alias:gi||""};Bn(bi,hi.id,{dateFormat:hi.format,prop:hi.dateTypeValue,keyName:gi,operateType:hi.operateType,operateMode:hi.operateMode,operateValue:hi.operateValue}),hi.dataType===""&&(bi.fieldValue=hi.variableValue),hi.format&&(bi.dateFormat=hi.format),hi.label&&(bi.label=hi.label),Xr.push(bi)}}return Xr}(Cr)))),Lr==null?void 0:Lr.length){const Wr=Lr.filter(hi=>hi.globalCondition),Xr=Lr.filter(hi=>!hi.globalCondition);(Wr==null?void 0:Wr.length)>1&&(Lr=[{join:"&&",conditions:Wr},...Xr])}Lr!=null&&Lr.length&&(Lr=Hn(Lr,"1")),hr==null&&(hr=Nn(pr,["table","card"])||Nn(pr,["list","circulate"])&&(xr==null?void 0:xr.length)>1?"1":Nn(pr,["select","checkbox","radio","treeSelect"])?"3":Nn(pr,["indexPanel"])?"4":"2"),Nn(pr,["indexPanel"])&&(fr="3");const qr=[];let zr,Kr="";if(Array.isArray(xr)&&xr.length>0&&(!["ecanList","ecanCirculate"].includes(pr)||(xr==null?void 0:xr.length)===1)){const Wr=xr.length;for(let Xr=0;Xr<Wr;Xr++){const hi=xr[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,dateFormat:ji,typeGuid:qi="",truncations:Ui=[]}=hi;if(Pi||Wr===1){Kr=qi,Sr={label:gi.trim(),columnName:bi,show:Pi,sort:qn(hi)||Qn(Ci)||Ci,customGroup:Bi,conditions:Hn(Ri),typeGuid:qi},ji&&(Sr.dateFormat=ji),bi!=="the_date"||Sr.dateFormat||(Sr.dateFormat="YYYY-MM-DD");const Yi={};if(Array.isArray(Ui)&&Ui.length>0){const Qi=Ui.length;for(let na=0;na<Qi;na++){const ea=Ui[na]||{},{rule:la="",num:ua=0,name:fa=""}=ea;la&&ua&&(Yi.num=ua,Yi.rule=la,fa&&(Yi.otherGroupName=fa))}}if(!((tr=Object.keys(Yi))===null||tr===void 0)&&tr.length&&(Sr.truncation=Yi),!Nn(pr,["scatter","valueline"]))break;qr.push(Sr)}}}if(Array.isArray(Pr)&&Pr.length>0){const Wr=Pr.length;for(let Xr=0;Xr<Wr;Xr++){const hi=Pr[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,typeGuid:ji,dateFormat:qi=""}=hi;if(Pi||Wr===1){zr={label:gi.trim(),columnName:bi,show:Pi,sort:Qn(Ci),customGroup:Bi,conditions:Hn(Ri),typeGuid:ji},qi?zr.dateFormat=qi:bi==="the_date"&&(zr.dateFormat="YYYY-MM-DD");break}}}const Jr=[];Ir==null||Ir.forEach(Wr=>{Wr.location="LEFT",Jr.push(Pn(Wr,Sr))}),Mr==null||Mr.forEach(Wr=>{Wr.location="RIGHT",Jr.push(Pn(Wr,Sr))});let Zr=Vr;Fn!=null&&Fn.pivotTableCal&&(Zr=((nr=Fn.pivotTableCal)===null||nr===void 0?void 0:nr.indicators)||[]),Zr==null||Zr.forEach(Wr=>{Wr.location="LEFT",Jr.push(Pn(Wr,Sr))});const Yr=[];$r==null||$r.forEach(Wr=>{Wr.location="LEFT",Yr.push(Pn(Wr,Sr))});const Gr=[];["ecanList","ecanCirculate"].includes(pr)&&(xr==null?void 0:xr.length)>1&&(Dr=xr),Fn!=null&&Fn.pivotTableCal&&(Dr=((or=Fn.pivotTableCal)===null||or===void 0?void 0:or.dimensions)||[]),Dr==null||Dr.forEach(Wr=>{const{label:Xr,name:hi,location:gi,show:bi,indexCode:Pi,sort:Ci,typeGuid:Bi,indexCodeNum:Ri,dateFormat:ji,conditions:qi}=Wr;let Ui=Qn(Ci);if(Fn.sort){const{field:Qi,order:na}=Fn.sort;let ea=Jr.find(la=>la.label===Qi);ea||Xr!==Qi||(ea=Wr),ea&&(Ui={columnName:ea.columnName,label:Fn.sort.field,order:na.toUpperCase(),type:"NORMAL"})}const Yi={label:Xr,columnName:hi,location:gi,show:bi,sort:Ui,calcType:"COLUMN",hrpIndexCode:Pi,hrpIndexCodeNum:Ri,conditions:Hn(qi),typeGuid:Bi};ji&&(Yi.dateFormat=ji),hi!=="the_date"||Yi.dateFormat||(Yi.dateFormat="YYYY-MM-DD"),Gr.push(Yi)});const jr=[];["ecanTable"].includes(pr)&&cr.isIndexSet&&Br.forEach(Wr=>{const Xr={label:Wr.label,calcType:Wr.calcType,show:Wr.show};Wr.formula&&(Xr.formula=Wr.formula),jr.push(Xr)});let Hr=[],fi=[];if(Array.isArray(_r)&&_r.length>0?fi=_r:Array.isArray(Er)&&Er.length>0&&(fi=Er),fi==null?void 0:fi.length){const Wr=fi.length;for(let Xr=0;Xr<Wr;Xr++){const hi=fi[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,truncations:ji,typeGuid:qi="",dateFormat:Ui}=hi;let Yi=Qn(Ci);if(Fn.sort){const{field:ea,order:la}=Fn.sort;let ua=Jr.find(fa=>fa.label===ea);ua||hi.label!==ea||(ua=hi),ua&&(Yi={columnName:ua.columnName,label:Fn.sort.field,order:la.toUpperCase(),type:"NORMAL"})}const Qi={label:gi.trim(),columnName:bi,show:Pi,sort:Yi,customGroup:Bi,conditions:Hn(Ri),typeGuid:qi};Ui&&(Qi.dateFormat=Ui),bi!=="the_date"||Qi.dateFormat||(Qi.dateFormat="YYYY-MM-DD");const na={};if(Array.isArray(ji)&&ji.length>0){const ea=ji.length;for(let la=0;la<ea;la++){const ua=ji[la]||{},{rule:fa="",num:ya=0,name:ba=""}=ua;fa&&ya&&(na.num=ya,na.rule=fa,ba&&(na.otherGroupName=ba))}}!((ar=Object.keys(na))===null||ar===void 0)&&ar.length&&(Qi.truncation=na),Hr.push(Qi)}}let Qr,di=[];const pi=[];if(Fn!=null&&Fn.pivotTableCal){let Wr=[];const{calc:Xr=[],filter:hi=[],truncations:gi=[],sorts:bi=[],aggregateMethod:Pi=[],rowDimensionKeys:Ci=[],colDimensionKeys:Bi=[]}=Fn.pivotTableCal;if(Jr.push(...Xr),hi==null?void 0:hi.length){const Ri=function ji(qi){const Ui=[];for(const Yi of qi)Yi.conditions?Ui.push(...ji(Yi.conditions)):Yi.conditionKey==="the_date"&&Ui.push(Yi);return Ui}(kr);for(const ji of hi){const{type:qi}=ji,Ui=e(ji,["type"]);qi==="indicators"?Wr=Jr:qi==="dimension"&&(Wr=Gr);const Yi=Wr.find(Qi=>Qi.columnName===ji.fieldName&&Qi.label===ji.label);if(Yi){if(qi==="indicators")Yi.filter={rule:Ui.rule,fieldValue:Ui.fieldValue};else if(qi==="dimension"){let Qi=!0;Ui.fieldName==="the_date"&&(Ri==null?void 0:Ri.length)===2&&(Qi=!1,pi.push(Ui)),Qi&&(Yi.conditions||(Yi.conditions=[]),Yi.conditions.push(Ui))}}}}if(gi!=null&&gi.length)for(const Ri of gi){const ji=Gr.find(qi=>qi.label===Ri.key);ji&&(ji.truncation={num:Ri.num,rule:Ri.rule})}if(bi!=null&&bi.length)for(const Ri of bi){const{fieldType:ji,columnData:qi}=Ri,Ui=e(Ri,["fieldType","columnData"]);ji==="indicators"?(Wr=Jr,Qr=qi):ji==="dimension"&&(Wr=Gr);const Yi=Wr.find(Qi=>Qi.label===Ui.label);Yi&&(Yi.sort=Object.assign(Object.assign({},Ui),{columnName:Yi.columnName}))}if(!((ir=Object.keys(Pi))===null||ir===void 0)&&ir.length)for(const Ri in Pi){const ji=Gr.find(qi=>qi.label===Ri);ji&&(!((sr=Pi[Ri])===null||sr===void 0)&&sr.length)&&(ji.aggregateMethod=Pi[Ri])}Hr=[],di=[];for(const Ri of Gr)Ci.includes(Ri.columnName)?Hr.push(Ri):Bi.includes(Ri.columnName)&&di.push(Ri)}if(Nn(pr,["text","proportion","counter","gauge"])?br="zb":Nn(pr,["valueline"])?br="valueline":Nn(pr,["indexPanel"])?br="indexPanel":Nn(pr,["boxplot"])?br="boxplot":Nn(pr,["budget"])&&(br="budget"),mr||pr==="card"){if(Hr.length===0||Jr.length===0)return;br="grouptable"}else if(hr==="1"&&!Gr.length&&!jr.length||["2","4"].includes(hr)&&Jr.length===0||!(hr!=="3"||(Kr||gr==="EDV_DATA_SET")&&Tr.labelField&&Tr.valueField)||hr==="3"&&pr==="ecanDataSelect"&&Jr.length===0)return;let Si;if(Er!=null&&Er.length&&(hr="1",br="grouptable"),yr||Nn(pr,["scatter","valueline"])||!(!((lr=Object.keys(Tr))===null||lr===void 0)&&lr.length)){let Wr={};Wr=Nn(pr,["scatter","valueline"])?{classifications:qr}:{classification:Sr},jr!=null&&jr.length&&(Wr.indexLibColumns=jr,Wr.isIndexSet=!0),Yr!=null&&Yr.length&&(Wr.specialIndicatorList=Yr),Nn(pr,"table")&&cr.isIndexSet&&(Wr.compositeIndicator=Rr);const Xr=Lr.map(hi=>{const{fieldValue:gi}=hi,bi={};return gi&&Array.isArray(gi)&&(bi.fieldValue=JSON.stringify(gi)),Object.assign(Object.assign({},hi),bi)});pi!=null&&pi.length&&function hi(gi){for(const bi of gi)if(bi.sqlConditions)hi(bi.sqlConditions);else if(bi.fieldName==="the_date"){const Pi=pi.find(Ci=>Ci.prop===bi.prop);Pi&&(bi.fieldValue=Pi.fieldValue)}}(Xr),Si=Object.assign({url:"/diagram",source:gr,dataViewId:dr,plugin:yr?"5":fr,layer:hr,chartType:yr?"pivot-table":br,series:zr,indicatorList:Jr,queryColumns:mr?[]:Gr,pageFlag:!0,edvDataSetId:Nr||"",sqlConditions:Xr,idxLibMode:Ar,dataSourceId:Or,preview:Fr,rowHeaders:Hr,keyName:ct.keyName,columnData:Qr,columnHeaders:di},Wr)}else{const Wr=Mn(kr).find(gi=>gi.conditionKey==="parentCode"),Xr={};if(Wr){const gi=Rn(Wr.id)||{};if(!(gi!=null&&gi.itemCodes))return;Xr.parentItemCodes=gi.itemCodes}pr==="ecanDataSelect"&&(Xr.indicatorList=Jr.filter(gi=>gi.show)),gr==="EDV_DATA_SET"&&(Xr.edvDataSetId=Nr),Sr!=null&&Sr.sort&&(Xr.sort=Sr.sort);let hi="normalSelect";pr==="ecanDataSelect"?hi="normalSelectData":pr==="ecanTreeSelect"&&(hi="treeSelect"),Si=Object.assign({url:"/diagram/formData",source:gr,dataViewId:dr,plugin:"4",layer:hr,chartType:pr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:Kr,type:hi,labelField:Tr.labelField,valueField:Tr.valueField,parentField:Tr.parentField,sqlConditions:Lr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Or,keyName:ct.keyName},Xr)}return Si},Xn=(ct=[],Fn,er=!1)=>{let{name:tr="name",types:nr=[]}=Fn||{};tr=(tr==null?void 0:tr.trim())||tr;const or=new Set,ar=new Map,ir=ct.length,sr=nr.length;if(ir!==1||er)for(let pr=0;pr<ir;pr++){const ur=ct[pr],mr=ur[tr];or.add(mr);for(let vr=0;vr<sr;vr++){const yr=nr[vr],{label:Sr,value:gr}=yr,dr=Object.assign(Object.assign({},ur),{value:ur[gr]});if(ar.has(Sr)){const fr=ar.get(Sr);fr.push(dr),ar.set(Sr,fr)}else ar.set(Sr,[dr])}}else{const pr=[];for(let mr=0;mr<sr;mr++){const vr=nr[mr],{label:yr,value:Sr}=vr,gr=Object.assign(Object.assign({},ct[0]),{value:ct[0][Sr]});or.add(yr),pr.push(gr)}const ur=ct[0][tr]||"";ar.set(ur,pr)}const lr=Array.from(or),cr=[];for(const[pr,ur]of ar)cr.push({name:pr,data:ur});return{dimensions:lr,dataset:cr}},Jn=(ct,Fn)=>{let{name:er="name",value:tr="value",type:nr="type"}=Fn||{};er=er==null?void 0:er.trim(),tr=tr==null?void 0:tr.trim(),nr=nr==null?void 0:nr.trim();const or=new Map,ar=ct.length;for(let lr=0;lr<ar;lr++){const cr=ct[lr],pr=cr[er]||"",ur=cr[tr]||"",mr=cr[nr]||"";if(or.has(mr)){const vr=or.get(mr);vr.push(Object.assign({name:pr,value:ur},cr)),or.set(mr,vr)}else or.set(mr,[Object.assign({name:pr,value:ur},cr)])}const ir=[],sr=[];for(const[lr,cr]of or)if(sr.push({name:lr,data:cr}),cr==null?void 0:cr.length)if(ir.length)for(const pr of cr)ir.includes(pr.name)||ir.push(pr.name);else ir.push(...cr.map(pr=>pr.name));return{dimensions:ir,dataset:sr}},ei=(ct,Fn)=>{var er;if(ct==null)return Fn;const tr=ct.match(/\{.*\}/g);if(tr==null||tr.length===0)return Fn;const nr=tr.length;for(let or=0;or<nr;or++){const ar=tr[or];if(ar==null||ar==="")break;let ir=(er=ar.slice(1,-1))===null||er===void 0?void 0:er.trim();ir=ir==null?void 0:ir.replace(/value/g,Fn);try{let sr=ir;(/\(.*\)/g.test(ir)||/[+/\\*]/g.test(ir))&&(sr=Cn(ir)),ct=ct.replace(ar,sr)}catch{ct=ct.replace(ar,ir)}}return ct},ti=(ct,Fn,er)=>{let tr=ct.dataFieldNames;if(ct.dataType==="indicator"&&(er==null?void 0:er.pageMode)!=="design"&&Fn){const{formFields:nr={}}=Fn;nr!=null&&nr.labelField&&(nr!=null&&nr.valueField)&&(tr={name:nr.labelField,value:nr.valueField})}return tr},oi=ct=>{const Fn=ct==null?void 0:ct.chart.getModel().getComponent("yAxis").axis.scale._extent,er=ct==null?void 0:ct.chart.getModel().getComponent("xAxis").axis.scale._extent;let tr={};return er&&Fn&&(tr={xAxisMinValue:er[0],xAxisMaxValue:er[1],yAxisMinValue:Fn[0],yAxisMaxValue:Fn[1]}),tr};function ni(ct,Fn,er){switch(Fn){case"startX":ct[0].coord[0]=+er;break;case"startY":ct[0].coord[1]=+er;break;case"endX":ct[1].coord[0]=+er;break;case"endY":ct[1].coord[1]=+er}}const ii=(ct,Fn,er)=>{let tr=0,nr=[];switch(Fn.x?nr=Ve(er).map(ar=>ar.value[0]):Fn.y&&(nr=Ve(er).map(ar=>ar.value[1])),ct){case"max":tr=Math.max(...nr);break;case"min":tr=Math.min(...nr);break;case"average":or=nr,tr=Array.isArray(or)&&or.length!==0?or.reduce((ar,ir)=>ar+ir,0)/or.length:0;break;case"median":tr=function(ar){if(!Array.isArray(ar)||ar.length===0)return 0;const ir=[...ar].sort((cr,pr)=>cr-pr),sr=ir.length,lr=Math.floor(sr/2);return sr%2!=0?ir[lr]:(ir[lr-1]+ir[lr])/2}(nr)}var or;return tr},ri={最大值:"{max}",最小值:"{min}",平均值:"{average}",中位数:"{median}"};function ai(ct,Fn,er,tr,nr,or,ar){const ir=ti(ct,tr,ar),sr=ct.xAxisLabelFormatter,lr=ct.yAxisLabelFormatter,cr=nr?((ur,mr,vr,yr)=>{const{xAxisMarkLineValue:Sr=[],yAxisMarkLineValue:gr=[]}=ur,{xAxisMinValue:dr,xAxisMaxValue:fr,yAxisMinValue:hr,yAxisMaxValue:br}=mr,xr=Sr.map(Pr=>Object.assign(Object.assign({},Pr),{x:!0})),_r=gr.map(Pr=>Object.assign(Object.assign({},Pr),{y:!0})),Er=xr.concat(_r);if(Er!=null&&Er.length){const Pr=[];for(const Ir of Er){const Mr={label:{show:!0,formatter:"",rich:{ft:{}}}},Dr={};let Br=Ir.value;const Vr=Br==null?void 0:Br.match(/\{(.+?)\}/g);let $r="";if(Mr.label.formatter=Ir.label?`{ft|${Ir.label}}`:"",(Ir.offsetHorizontal||Ir.offsetVertical)&&(Ir.x?Mr.label.rich.ft.padding=[0,Ir.offsetHorizontal||0,Ir.offsetVertical||0,0]:Ir.y&&(Mr.label.rich.ft.padding=[Ir.offsetVertical||0,0,0,Ir.offsetHorizontal||0])),Ir.labelColor&&(Mr.label.rich.ft.color=Ir.labelColor),Ir.lineColor&&(Dr.color=Ir.lineColor),Ir.lineType&&(Dr.type=Ir.lineType),Ir.x?$r="xAxis":Ir.y&&($r="yAxis"),Vr==null?void 0:Vr.length){for(const kr of Vr)Br=Br.replace(kr,kr.slice(1,-1));if(Br){let kr;kr=yr&&yr.value[Br]?Ve(yr)[Br]:Cn(Br,{axisMax:Ir.x?Ve(fr):Ir.y?Ve(br):0,axisMin:Ir.x?Ve(dr):Ir.y?Ve(hr):0,max:ii("max",Ir,vr),min:ii("min",Ir,vr),average:ii("average",Ir,vr),median:ii("median",Ir,vr)}),isNaN(+kr)||Pr.push(Object.assign({[$r]:+kr,lineStyle:Dr},Mr))}}else isNaN(+Ir.value)||Pr.push(Object.assign({[$r]:Ir.value,lineStyle:Dr},Mr))}return{symbol:["none","none"],data:Pr}}return{data:[]}})(ct,nr,Fn,or):void 0,pr=nr?((ur,mr,vr)=>{const{axisMarkArea:yr=[]}=ur,{xAxisMinValue:Sr,xAxisMaxValue:gr,yAxisMinValue:dr,yAxisMaxValue:fr}=mr;if(yr!=null&&yr.length){const hr=[];for(const br of yr){const xr=[{name:br.label||"",coord:[],itemStyle:{color:br.color||"transparent"},label:{show:!!br.label,position:"inside",fontSize:16,color:"#000"}},{coord:[]}];for(const _r in br)if(["startX","startY","endX","endY"].includes(_r)){let Er=ri[br[_r]]||br[_r];const Pr=Er==null?void 0:Er.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){for(const Ir of Pr)Er=Er.replace(Ir,Ir.slice(1,-1));if(Er){const Ir={x:_r.includes("X"),y:_r.includes("Y")},Mr=Cn(Er,{xMax:Ve(gr),xMin:Ve(Sr),yMax:Ve(fr),yMin:Ve(dr),max:ii("max",Ir,vr),min:ii("min",Ir,vr),average:ii("average",Ir,vr),median:ii("median",Ir,vr)});isNaN(+Mr)||ni(xr,_r,Mr)}}else isNaN(+br[_r])||ni(xr,_r,br[_r])}xr.every(_r=>{var Er;return(Er=_r.coord)===null||Er===void 0?void 0:Er.length})&&hr.push(xr)}return{data:hr}}return{data:[]}})(ct,nr,Fn):void 0;return{xAxis:{z:5,splitLine:{show:ct.xAxisSplitLineShow,lineStyle:{color:ct.xAxisSplitLineStyleColor},interval:ct.xAxisSplitLineInterval},splitArea:{show:ct.xAxisSplitAreaShow},axisLabel:{show:ct.xAxisLabelShow,fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,interval:ct.xAxisLabelInterval||0,rotate:ct.xAxisLabelRotate,width:ct.xAxisLabelWidth,overflow:ct.xAxisLabelOverflow,formatter:ur=>(typeof ur!="string"||ur[0]!=="0"||isNaN(+ur)||(ur=(+ur).toString()),ei(sr,ur))},axisLine:{lineStyle:{color:ct.xAxisLineStyleColor},symbol:["none",ct.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:ct.xAxisTickShow},name:ct.xAxisName,nameLocation:ct.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,align:"left"},inverse:ct.xAxisLineInverse,max:ct.xAxisMax,min:ct.xAxisMin},yAxis:{z:5,splitLine:{show:ct.yAxisSplitLineShow,lineStyle:{color:ct.yAxisSplitLineStyleColor,type:ct.yAxisSplitLineType}},axisTick:{show:ct.yAxisTickShow},splitArea:{show:ct.yAxisSplitAreaShow},axisLabel:{show:ct.yAxisLabelShow,fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,formatter:ur=>ei(lr,ur)},axisLine:{show:ct.yAxisLineAlwaysDisplay,lineStyle:{color:ct.yAxisLineStyleColor},symbol:["none",ct.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:ct.yAxisName,nameLocation:ct.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,align:"right"},inverse:ct.yAxisLineInverse,max:ct.yAxisMax,min:ct.yAxisMin},tooltip:{show:ct.tooltipShow,trigger:ct.tooltipTrigger,formatter(ur){var mr,vr;const{marker:yr,seriesName:Sr,componentType:gr}=ur,dr=(vr=(mr=ur==null?void 0:ur.data)===null||mr===void 0?void 0:mr.record)!==null&&vr!==void 0?vr:{},fr=dr[ir.name],hr=dr[ir.value];return["markLine","markArea"].includes(gr)?"":jn(ct.tooltipFormatter,{textData:Object.assign({marker:yr,seriesName:Sr,a:Sr,b:fr,c:hr,Qfw:$n,QwfFixed:Dn},dr)},{useNewline:!0,useSpace:!0})},axisPointer:{type:ct.crossShow||ct.crossShow===void 0?"cross":""},textStyle:{fontSize:Ve(er)},position:ct.tooltipPosition||void 0},legend:{show:ct.legendShow,orient:ct.legendOrient,top:ct.legendTop,left:ct.legendLeft,textStyle:{color:ct.legendTextStyleColor,fontSize:er}},series:[{data:Ve(Fn),type:"scatter",symbolSize:ct.symbolSize,itemStyle:{color:ct.symbolColor},label:{show:ct.labelShow,fontSize:ct.labelFontSize,position:ct.labelPosition,color:ct.labelColor,width:ct.labelWidth,overflow:ct.labelOverflow,formatter:ur=>{var mr;let vr="",yr=ct.labelFormatter;yr===""&&(yr="{c}");const{seriesName:Sr,data:gr}=ur||{},dr=(mr=gr==null?void 0:gr.record)!==null&&mr!==void 0?mr:{},fr=dr[ir.name],hr=dr[ir.value];return vr+=jn(yr,{textData:Object.assign({name:fr,value:hr,a:Sr,b:fr,c:hr||0},dr)},{useNewline:!0,useSpace:!0}),vr}},markLine:cr,markArea:pr}]}}function li(ct){let Fn="";switch(ct){case 1:Fn="万";break;case 3:Fn="百万";break;case 4:Fn="千万"}return Fn}const si=(ct,Fn,er,tr,nr,or,ar)=>{switch(((ir,sr)=>{if(!ir)return ir||"";if(ir.toLowerCase().startsWith(sr.toLowerCase())){const lr=ir.slice(sr.length);return lr?lr.charAt(0).toLowerCase()+lr.slice(1):""}return ir})(ct.type,"ecan")){case"bar":return function(ir,sr,lr,cr){const pr=ir.yAxisLabelFormatter,ur=ir.xAxisLabelFormatter,mr=De(sr.dataset),vr=De(sr.dimensions),yr=mt(()=>{const{gradientShow:gr,gradientColors:dr,gradientOffset:fr,barBorderRadius:hr}=ir,br=Ve(mr),xr=br.length,_r=[];for(let Er=0;Er<xr;Er++){const Pr=Object.assign(Object.assign({},br[Er]),{type:"bar",barWidth:ir.barWidth.value+ir.barWidth.suffix,showBackground:ir.showBarBackground});if(ir.isStack&&(Pr.stack="stack"),Pr.label={show:ir.labelShow,fontSize:ir.labelFontSize,position:ir.labelPosition,color:ir.labelColor,width:ir.labelWidth,overflow:ir.labelOverflow,formatter:Ir=>{let Mr="",Dr=ir.labelFormatter;Dr===""&&(Dr="{c}");const{seriesName:Br,name:Vr,value:$r,data:kr}=Ir||{};return Mr+=jn(Dr,{textData:Object.assign({name:Vr,value:$r,a:Br,b:Vr,c:$r||0},kr)},{useNewline:!0,useSpace:!0}),Mr}},Pr.itemStyle={},gr){let Ir=ir.colors[Er];if(!Ir&&ir.colors.length){const Mr=(Er+1)%ir.colors.length-1;Ir=Mr>0?ir.colors[Mr]:ir.colors[0]}Ir||(Ir="#5470C6"),Pr.itemStyle={color:{x:ir.isUseHorizontalAxis?1:0,y:0,x2:0,y2:ir.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:Ir},{offset:fr,color:dr[Er]},{offset:1,color:dr[Er]}]}}}if(hr&&(!ir.isStack||Er===xr-1)){const Ir=hr.split(",");if(Ir!=null&&Ir.length){const Mr=[];for(const Dr of Ir){const Br=parseFloat(Dr);isNaN(Br)||Mr.push(Br)}Pr.itemStyle.borderRadius=Mr}}ir.isShowMarkLine&&(Pr.markLine={data:[{type:ir.markLineType}]}),_r.push(Pr)}return _r}),Sr=mt(()=>Ve(vr).map(gr=>{let dr={};return dr=gr&&typeof gr=="object"?Object.assign(Object.assign({},gr),{textStyle:{fontSize:lr}}):{value:gr,textStyle:{fontSize:lr}},dr}));return{tooltip:{trigger:"axis",show:ir.tooltipShow,formatter:gr=>{var dr;const fr=gr.length;let hr="",br=ir.tooltipFormatter;cr!=null&&cr.getCurrentData&&cr.getCurrentData((dr=gr[0])===null||dr===void 0?void 0:dr.data),br===""&&(br="{marker} {a} {c}");for(let xr=0;xr<fr;xr++){const{marker:_r,seriesName:Er,name:Pr,value:Ir,data:Mr}=gr[xr]||{};if(xr===0){let Dr=Pr;Pr==="undefined"&&(Dr=""),typeof Pr!="string"||Pr[0]!=="0"||isNaN(+Pr)||(Dr=(+Pr).toString()),hr+=`${ei(ur,Dr)}${Dr?"<br/>":""}`}hr+=jn(br,{textData:Object.assign({marker:_r,name:Pr,value:Ir,a:Er,b:Pr,c:Mr.sourceValue||Ir||0,Qfw:$n,QwfFixed:Dn},Mr)},{useNewline:!0,useSpace:!0}),hr+="<br/>"}return hr},textStyle:{color:ir.tooltipTextStyleColor,fontSize:lr.value},position:ir.tooltipPosition||void 0},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(mr).map((gr,dr)=>({name:gr.name,itemStyle:{color:ir.colors[dr]},icon:ir.legendType})),formatter:gr=>kn(ir.legendFormatter,{name:gr})},xAxis:{type:ir.isUseHorizontalAxis?"value":"category",data:ir.isUseHorizontalAxis?null:Ve(Sr),inverse:ir.isUseHorizontalAxis?ir.xAxisInverse:ir.axisInverse,minInterval:ir.xAxisMinInterval,splitLine:{show:ir.xAxisSplitLineShow,lineStyle:{color:ir.xAxisSplitLineStyleColor,type:ir.xAxisSplitLineType},interval:ir.xAxisSplitLineInterval},splitArea:{show:ir.xAxisSplitAreaShow},axisLabel:{show:ir.xAxisLabelShow,color:ir.xAxisLabelColor,interval:ir.xAxisLabelInterval||0,rotate:ir.xAxisLabelRotate,width:ir.xAxisLabelWidth,overflow:ir.xAxisLabelOverflow,fontSize:ir.xAxisLabelFontSize,formatter:gr=>(typeof gr!="string"||gr[0]!=="0"||isNaN(+gr)||(gr=(+gr).toString()),ei(ur,gr))},axisLine:{show:ir.xAxisLineShow,lineStyle:{color:ir.xAxisLineStyleColor}},axisTick:{show:ir.xAxisTickShow},name:ir.xAxisName,nameTextStyle:{fontSize:ir.xAxisLabelFontSize,color:ir.xAxisLabelColor,align:"left"},max:ir.xAxisMaxValue||null},yAxis:{type:ir.isUseHorizontalAxis?"category":"value",data:ir.isUseHorizontalAxis?Ve(vr):null,inverse:ir.isUseHorizontalAxis?ir.axisInverse:ir.yAxisInverse,minInterval:ir.yAxisMinInterval,splitLine:{show:ir.yAxisSplitLineShow,lineStyle:{color:ir.yAxisSplitLineStyleColor,type:ir.yAxisSplitLineType}},splitArea:{show:ir.yAxisSplitAreaShow},axisTick:{show:ir.yAxisTickShow},axisLabel:{show:ir.yAxisLabelShow,fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,rotate:ir.yAxisLabelRotate,width:ir.yAxisLabelWidth,overflow:ir.yAxisLabelOverflow,formatter:gr=>ei(pr,gr)},axisLine:{show:ir.yAxisLineAlwaysDisplay,lineStyle:{color:ir.yAxisLineStyleColor}},name:ir.yAxisName,nameTextStyle:{fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,align:"right"},max:ir.yAxisMaxValue||null},series:Ve(yr)}}(ct,Fn,er,ar);case"line":return function(ir,sr,lr,cr){const pr=ir.yAxisLabelFormatter,ur=ir.xAxisLabelFormatter,mr=De(sr.dataset),vr=De(sr.dimensions),yr=sr.dataset,Sr=mt(()=>{const gr=[],dr=yr.length;for(let hr=0;hr<dr;hr++){const br={};ir.shadowColor&&(br.shadowColor=ir.shadowColor,br.shadowBlur=ir.shadowBlur,br.shadowOffsetY=ir.shadowOffsetY,br.shadowOffsetX=ir.shadowOffsetX);let xr=ir.colors[hr];if(!xr&&ir.colors.length){const _r=(hr+1)%ir.colors.length-1;xr=_r>0?ir.colors[_r]:ir.colors[0]}xr||(xr="#5470C6"),gr.push(Object.assign(Object.assign(Object.assign({type:"line"},yr[hr]),{symbolSize:ir.symbolSize,smooth:ir.smooth,areaStyle:{color:ir.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:xr},{offset:1,color:ir.areaGradientColor||"transparent"}],global:!1}:xr,opacity:ir.areaStyleOpacity},lineStyle:Object.assign({width:ir.lineStyleWidth},br)}),(fr=ir).isShowMarkLine?{markLine:{data:[{type:fr.markLineType}]}}:{}))}var fr;return gr});return{tooltip:{trigger:"axis",textStyle:{fontSize:lr.value,color:ir.tooltipTextStyleColor},show:ir.tooltipShow,formatter:gr=>{var dr;const fr=gr.length;let hr="",br=ir.tooltipFormatter;cr!=null&&cr.getCurrentData&&cr.getCurrentData((dr=gr[0])===null||dr===void 0?void 0:dr.data),br===""&&(br="{marker} {a} {c}");for(let xr=0;xr<fr;xr++){const{marker:_r,seriesName:Er,name:Pr,value:Ir,data:Mr}=gr[xr]||{};if(xr===0){let Dr=Pr;typeof Pr!="string"||Pr[0]!=="0"||isNaN(+Pr)||(Dr=(+Pr).toString()),hr+=`${ei(ur,Dr)}<br/>`}hr+=jn(br,{textData:Object.assign({marker:_r,name:Pr,value:Ir,a:Er,b:Pr,c:Ir||0,Qfw:$n,QwfFixed:Dn},Mr)},{useNewline:!0,useSpace:!0}),hr+="<br/>"}return hr},position:ir.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:ir.isBoundaryGap,data:Ve(vr).map(gr=>{let dr={};return dr=gr&&typeof gr=="object"?Object.assign({},gr):{value:gr},dr}),minInterval:ir.xAxisMinInterval,splitLine:{show:ir.xAxisSplitLineShow,lineStyle:{color:ir.xAxisSplitLineStyleColor},interval:ir.xAxisSplitLineInterval},splitArea:{show:ir.xAxisSplitAreaShow},axisLabel:{show:ir.xAxisLabelShow,color:ir.xAxisLabelColor,interval:ir.xAxisLabelInterval||0,rotate:ir.xAxisLabelRotate,width:ir.xAxisLabelWidth,overflow:ir.xAxisLabelOverflow,fontSize:ir.xAxisLabelFontSize,formatter:gr=>(typeof gr!="string"||gr[0]!=="0"||isNaN(+gr)||(gr=(+gr).toString()),ei(ur,gr))},axisLine:{show:ir.xAxisLineShow,lineStyle:{color:ir.xAxisLineStyleColor}},axisTick:{show:ir.xAxisTickShow},name:ir.xAxisName,nameTextStyle:{fontSize:ir.xAxisLabelFontSize,color:ir.xAxisLabelColor,align:"left"},max:ir.xAxisMaxValue||null},yAxis:{type:"value",minInterval:ir.yAxisMinInterval,splitLine:{show:ir.yAxisSplitLineShow,lineStyle:{color:ir.yAxisSplitLineStyleColor,type:ir.yAxisSplitLineType}},splitArea:{show:ir.yAxisSplitAreaShow},axisLabel:{show:ir.yAxisLabelShow,fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,formatter:gr=>ei(pr,gr)},axisLine:{show:ir.yAxisLineAlwaysDisplay,lineStyle:{color:ir.yAxisLineStyleColor}},name:ir.yAxisName,nameTextStyle:{fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,align:"right"},max:ir.yAxisMaxValue||null},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{lineHeight:parseFloat(ir.legendFontSize)+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:ir.legendFontSize}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(mr).map(gr=>({name:gr.name,icon:ir.legendType})),formatter:gr=>kn(ir.legendFormatter,{name:gr})},series:Ve(Sr)}}(ct,Fn,er,ar);case"pie":return function(ir,sr,lr){var cr,pr;const ur=De(sr.dataset);let{data:mr=[]}=Ve(ur)[0]||{};if(Array.isArray(ir.colors)){const yr=ir.isUseLabelColors,Sr=ir.colors;mr=mr.map((gr,dr)=>Object.assign({label:yr?{color:Sr[dr]}:{}},gr))}return{tooltip:{show:ir.tooltipShow,trigger:ir.tooltipTrigger,formatter:yr=>{const{marker:Sr,seriesName:gr,name:dr,value:fr,percent:hr,data:br}=yr||{};return jn(ir.tooltipFormatter,{textData:Object.assign({marker:Sr,name:dr,value:fr,percent:hr,a:gr,b:dr,c:fr,d:hr,Qfw:$n,QwfFixed:Dn},br)},{useNewline:!0,useSpace:!0})},textStyle:{color:ir.tooltipTextStyleColor},position:ir.tooltipPosition||void 0},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,align:"left",textStyle:{lineHeight:lr+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:lr}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:(pr=(cr=Ve(ur)[0])===null||cr===void 0?void 0:cr.data)===null||pr===void 0?void 0:pr.map(yr=>({name:yr.name,icon:ir.legendType})),formatter:yr=>{const{data:Sr}=ur.value[0]||{};let gr,dr=0,fr="0%";if(Sr)for(const hr of Sr)hr.name===yr&&(gr=+hr.value),dr+=+hr.value;return dr&&(fr=`${(gr/dr*100).toFixed(2)}%`),kn(ir.legendFormatter,{name:yr,value:gr,percent:fr})}},series:[{data:mr,type:"pie",radius:[ir.innerRadius,ir.outerRadius],center:[ir.centerLeft,ir.centerTop],roseType:ir.roseType,avoidLabelOverlap:!0,minAngle:ir.minAngle,label:{show:ir.labelPosition!=="center"&&ir.labelShow,color:ir.labelColor,fontSize:ir.labelFontSize,position:ir.labelPosition,formatter:(vr=ir.labelFormatter,vr.replace(/\\n/g,`
|
|
63
|
+
`;let ar=ct;if(tr!=null&&tr.length){for(const ir of tr){const sr=jn(ir,{textData:Fn},{useNewline:!1,useSpace:!1});sr&&(ar=ar.replace(ir,sr))}return`${or}{text|${ar}}`}return ct};function Dn(ct){return Number(ct).toLocaleString("zh-CN",{minimumFractionDigits:2,maximumFractionDigits:2})}function $n(ct){return Number(ct).toLocaleString()}const Vn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let En=new Map,zn=[];const In=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],Rn=ct=>En.get(ct),Wn=(ct,Fn)=>{if(Fn)Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),Tn(ct,"dataType")&&delete ct.dataType,ct.fieldValue||delete ct.fieldValue;else{const{calcWays:er=[],dateCalcTypes:tr=[],activeKey:nr,componentId:or=""}=ct;if(nr===5&&(er!=null&&er.length)&&(tr!=null&&tr.length)&&or){const ar=er[0].split("-");(ar==null?void 0:ar.length)>1&&ar[0]==="rangeValue"&&(ct.calcWays=((ir,sr={})=>{const{around:lr,unit:cr,id:pr}=ir;let ur="";const{pageMode:mr="",componentList:vr=[]}=(sr==null?void 0:sr.graphicConfig)||{};let yr=null,Sr=null;if(mr==="design"){const gr=vr==null?void 0:vr.find(Er=>Er.id===pr);if(!gr)return[];const{interval:dr,intervalUnit:fr,startTime:hr,endTime:br,operate:xr,useCurrentTime:_r}=gr||{};if(_r&&(yr=wt().subtract(dr,fr),Sr=wt()),hr&&(yr=wt(hr)),br&&(Sr=wt(br)),xr){const{type:Er,value:Pr,mode:Ir}=xr;switch(Er){case"add":yr=yr&&yr.add(Pr,Ir),Sr=Sr&&Sr.add(Pr,Ir);break;case"minus":yr=yr&&yr.subtract(Pr,Ir),Sr=Sr&&Sr.subtract(Pr,Ir)}}}else{const gr=Rn(pr)||{};Ve(gr.startTime)&&(yr=wt(Ve(gr.startTime))),Ve(gr.endTime)&&(Sr=wt(Ve(gr.endTime)))}return yr&&Sr&&(ur=`${lr==="before"?"-":""}${Sr.diff(yr,cr.toLowerCase())+1}`),ur?[ur]:[]})({around:ar[1],unit:tr[0],id:or})),delete ct.radioValue}if(Tn(ct,"dataType")){if(ct.fieldType==="DATE"&&(ct.label=ct.fieldName),ct.dataType==="component")if(ct.fieldValue==="PARENT"){let ar=ct.modelKey;ar&&ct.prop&&(ar+=`-${ct.prop}`),ct.fieldValue="${"+ar+"}"}else ct.fieldValue="${"+Gn(ct.componentId,ct.fieldValue)+"}";delete ct.dataType}Tn(ct,"activeKey")&&delete ct.activeKey,Tn(ct,"radioValue")&&delete ct.radioValue,Tn(ct,"indexCode")&&(ct.hrpIndexCode=ct.indexCode,delete ct.indexCode),Tn(ct,"indexCodeNum")&&(ct.hrpIndexCodeNum=ct.indexCodeNum,delete ct.indexCodeNum),ct.dataType!=="component"&&ct.useCurrentTime&&(ct.fieldValue=wt().format(ct.dateFormat)),Tn(ct,"modelKey")&&delete ct.modelKey,Tn(ct,"prop")&&delete ct.prop,delete ct.useCurrentTime}},Hn=(ct,Fn)=>{const er=[];return ct!=null&&ct.length&&Ln(ct).forEach(tr=>{if(tr.join&&tr.conditions){const nr=!tr.conditions.some(or=>or.join&&or.conditions);tr.conditions.forEach((or,ar)=>{Wn(or,Fn);const ir={};if(ar<tr.conditions.length-1&&(ir.join=tr.join),nr)er.push(Object.assign(Object.assign({},ir),or));else if(or.join&&or.conditions){const sr=Fn?"sqlConditions":"conditions";er.push(Object.assign({[sr]:Hn([or],Fn)},ir))}else er.push(Object.assign(Object.assign({},ir),or))})}else Wn(tr,Fn),er.push(tr)}),er},Pn=(ct={},Fn)=>{if(ct!=null&&ct.sortCpnts&&Fn){const br=qn(ct);br&&(Fn.sort=br)}const{label:er,name:tr,location:nr,show:or,indexCode:ar,indexCodeNum:ir,calcType:sr="COLUMN",builtInFormula:lr,builtInValueSource:cr,builtInCalcWay:pr,formula:ur,conditions:mr,aggregate:vr,distinct:yr,dimByCount:Sr,dataTo:gr,sort:dr}=ct;let fr;if(mr&&(fr=Hn(mr)),sr==="COMPONENT"){const br={};return Bn(br,cr),{label:er.trim(),columnName:tr,show:or,calcType:sr,componentAlias:pr,componentValue:br.fieldValue||null}}const hr={label:er.trim(),columnName:tr,location:nr,show:or,calcType:gr==="1"?"VIEW":sr,hrpIndexCode:ar,hrpIndexCodeNum:ir,aggregate:vr,builtInFormula:lr,builtInValueSource:cr,formula:ur,conditions:fr};if(dr&&(hr.sort={columnName:tr,label:hr.label,order:dr,type:"NORMAL"}),lr!=="DATE_OFFSET")return tr==="the_count"&&(hr.calcType="AGGREGATE",hr.distinct=!!yr,hr.typeGuid=Sr),Object.assign(Object.assign({},hr),{builtInCalcWay:pr});{const br=pr.split("-");if((br==null?void 0:br.length)===3){let xr=br[0];return br[2]==="before"&&br[0]!=="0"&&(xr=`-${br[0]}`),Object.assign(Object.assign({},hr),{calcWays:[xr],dateCalcTypes:[br[1]]})}}},Gn=(ct,Fn)=>{const er=zn.find(nr=>nr.id===ct),{keyName:tr}=er||{};if(tr){const nr=/-(startTime|endTime)/g,or=Fn.match(nr);return or!=null&&or.length?`${tr}${or[0]}`:tr}return Fn||""},Un=ct=>{if(!ct)return[];const Fn=Ln((ct==null?void 0:ct.controlList)||[]).filter(Sr=>Sr.conditionKey!=="parentCode"),{classificationList:er=[],rowHeaderList:tr=[],dimensionList:nr=[],seriesList:or=[],leftAxisList:ar=[],rightAxisList:ir=[],queryColumnList:sr=[],indexLibColumns:lr=[],indicators:cr=[],specialIndicators:pr=[]}=ct;Kn(Fn);const ur=[...er,...tr,...nr,...or,...ar,...ir,...sr,...lr,...cr,...pr],mr=[];for(const Sr of ur){const gr=Mn((Sr==null?void 0:Sr.conditions)||[]);if(gr!=null&&gr.length){const dr=gr.filter(fr=>(fr==null?void 0:fr.dataType)==="component").map(fr=>{const hr={};return fr!=null&&fr.dateFormat&&(hr.format=fr.dateFormat),fr.fieldValue==="PARENT"&&(hr.id="PARENT",hr.keyName=fr.modelKey,hr.modelKey=fr.modelKey,hr.prop=fr.prop),Object.assign({conditionKey:fr.fieldName,conditionLabel:fr.fieldName,conditionName:fr.fieldName,conditionValueType:fr.fieldType,id:fr.componentId,keyName:fr.fieldValue,rule:fr.rule,notGlobal:!0,indexCode:fr.indexCode,typeGuid:fr.typeGuid,indexCodeNum:fr.indexCodeNum},hr)});if(dr!=null&&dr.length)for(const fr of dr)mr.find(hr=>hr.keyName===fr.keyName)||mr.push(fr)}}const vr=mr.length,yr=Fn;for(let Sr=0;Sr<vr;Sr++){const gr=mr[Sr];if((gr==null?void 0:gr.conditionKey)==="parentCode")continue;const{id:dr,keyName:fr,prop:hr,format:br,modelKey:xr,dataType:_r="component",customValue:Er}=gr,Pr=Gn(dr,fr),Ir=Yn(gr);Bn(Ir,dr,{prop:hr,dateFormat:br,modelKey:xr,keyName:Pr}),_r===""&&(Ir.fieldValue=Er||""),yr.push(Ir)}for(let Sr=yr.length-1;Sr>=0;Sr--){const gr=yr[Sr];gr.globalCondition||Mn(yr).find(dr=>dr.alias===gr.alias&&dr.globalCondition)&&yr.splice(Sr,1)}return yr};function Yn(ct){const{id:Fn,keyName:er,conditionLabel:tr,conditionKey:nr,conditionValueType:or,prop:ar,rule:ir="NONE",notGlobal:sr=!1,indexCode:lr,typeGuid:cr,indexCodeNum:pr,dataType:ur="component"}=ct,mr=Gn(Fn,er);let vr=mr||Fn;vr&&ar&&(vr+=`-${ar}`);let yr=ir;return yr==="NONE"&&(yr=["startTime","endTime"].includes(ar)?ar==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":mr!=null&&mr.includes("startTime")?ar==="GREATER_EQUAL":mr!=null&&mr.includes("endTime")?ar==="LESS_EQUAL":"EQUAL"),Fn==="PARENT"&&(vr=ct.modelKey,vr&&ar&&(vr+=`-${ar}`),yr=ir),{rule:yr,label:tr,fieldName:nr,fieldValue:"",valueType:or,alias:vr,globalCondition:!sr,indexCode:lr,typeGuid:cr,indexCodeNum:pr,dataType:ur}}function Kn(ct){if(ct!=null&&ct.length)for(const Fn of ct)if(Fn!=null&&Fn.conditions)Kn(Fn.conditions);else{const{id:er,keyName:tr,prop:nr,modelKey:or,format:ar,dataType:ir="component",customValue:sr}=Fn,lr=Gn(er,tr),cr=Yn(Fn);Bn(cr,er,{prop:nr,dateFormat:ar,modelKey:or,keyName:lr}),ir===""&&(cr.fieldValue=sr||"");for(const pr in cr)Fn[pr]=cr[pr];for(const pr of In)delete Fn[pr]}}function Bn(ct,Fn,er){const{prop:tr="",dateFormat:nr="",modelKey:or="",keyName:ar="",operateValue:ir,operateMode:sr,operateType:lr}=er||{},cr=or||ar;if(Fn==="PARENT"&&cr&&tr){const dr=window.config.record;let fr=tr,hr=nr;const br=tr.match(/\{(.+?)\}/g);if(br!=null&&br.length){const xr=br[0].slice(1,-1).trim();fr=tr.replace(br[0],""),hr=xr,ct.dateFormat=hr}if(dr&&dr[cr]){const xr=Ve(dr[cr][fr]);wt.isDayjs(xr)?ct.fieldValue=xr.format(hr||"YYYY-MM-DD"):ct.fieldValue=xr}return}const pr=Rn(Fn)||{},{value:ur,format:mr="YYYY-MM-DD",type:vr="",useCurrentTime:yr,RECORD:Sr}=pr||{},gr=nr||mr;if(Nn(vr,"date")){let dr;if(dr=yr?ur?Ve(ur):wt():Ve(ur),typeof dr=="string"&&(dr=wt(dr)),ir&&sr&&lr)switch(lr){case"add":dr=dr.add(ir,sr);break;case"minus":dr=dr.subtract(ir,sr)}ct.fieldValue=dr==null?void 0:dr.format(gr),ct.dateFormat=gr}else if(Nn(vr,"rangepicker")){let dr=tr;if(!tr){const hr=ar&&ar.split("-");hr!=null&&hr.length&&(dr=hr[hr.length-1])}if(!dr)return;let fr=null;if(Ve(pr[dr])&&(fr=wt(Ve(pr[dr]))),ir&&sr&&lr){if(ir==="rangeValue"){if(pr.startTime&&pr.endTime){const hr=Ve(pr.endTime).diff(Ve(pr.startTime),sr)+1;switch(lr){case"add":fr=fr&&fr.add(hr,sr);break;case"minus":fr=fr&&fr.subtract(hr,sr)}}}else if(!isNaN(+ir))switch(lr){case"add":fr=fr&&fr.add(ir,sr);break;case"minus":fr=fr&&fr.subtract(ir,sr)}}if(fr&&(ct.fieldValue=fr==null?void 0:fr.format(gr)),dr==="rangeValue"&&pr.startTime&&pr.endTime){const hr=function(br){const xr=br.split("-");let _r="";if(xr!=null&&xr.length)switch(xr[xr.length-1]){case"YYYY":_r="year";break;case"MM":_r="month";break;case"DD":_r="day"}return _r}(gr);hr&&(ct.fieldValue=Ve(pr.endTime).diff(Ve(pr.startTime),hr)+1)}ct.dateFormat=gr}else Nn(vr,Vn)?ct.fieldValue=or&&Sr?Sr[or]:!or&&Sr?Sr.value:Ve(ur):Nn(vr,"select")&&Array.isArray(Ve(ur))?ct.fieldValue=Ve(ur).join(","):ct.fieldValue=Ve(ur)}const Qn=ct=>{if(ct){const Fn=Array.isArray(ct)?Ln(ct):[Ln(ct)];let er="",tr=[];const nr=[],or=[],ar=[];for(const ir of Fn){let sr=ir.label,lr=ir.columnName;if(ir.defaultCode&&(sr=ir.columnName,delete ir.defaultCode),lr==="component-value"&&ir.componentId){const cr=Rn(ir.componentId)||{},{value:pr}=cr;Ve(pr)&&(sr=lr=Ve(pr))}er=ir.type,er==="CUSTOM"&&(tr=ir.customOrderColumns),nr.push(sr),or.push(lr),ar.push(ir.order)}return er!=="CUSTOM"&&(nr==null?void 0:nr.length)>1&&(er="COMBINATION"),er==="CUSTOM"?{label:nr.join(","),columnName:or.join(","),type:er,customOrderColumns:tr}:{label:nr.join(","),columnName:or.join(","),order:ar.join(","),type:er}}return ct},qn=ct=>{const{sortCpnts:Fn=[]}=ct;let er,tr="";for(const nr of Fn){const or=Rn(nr)||{},{type:ar,RECORD:ir}=or;if(Nn(ar,"image")&&Nn(ir==null?void 0:ir.value,["asc","desc"])){tr=ir.value.toUpperCase();break}}return tr&&(er={label:ct.label,columnName:ct.name,order:tr,type:"NORMAL"}),er},Zn=(ct,Fn={})=>{var er,tr,nr,or,ar,ir,sr,lr;const{graphicConfig:cr,type:pr,globalModel:ur,isGroupTable:mr=!1,allComponentList:vr}=ct;ur&&(En=ur),vr!=null&&vr.length&&(zn=vr);const yr=Nn(pr,"pivottable");let Sr,{source:gr,dataViewId:dr,plugin:fr="1",layer:hr,chartType:br,classificationList:xr=[],rowHeaderList:_r=[],dimensionList:Er=[],seriesList:Pr=[],leftAxisList:Ir=[],rightAxisList:Mr=[],queryColumnList:Dr=[],indexLibColumns:Br=[],indicators:Vr=[],specialIndicators:$r=[],controlList:kr=[],formFields:Tr={},variableList:Cr=[],variableConditions:wr=[],dataSourceId:Or="",idxLibMode:Ar,preview:Fr=!1,edvDataSetId:Nr,compositeIndicator:Rr}=cr||{},Lr=[];if((cr==null?void 0:cr.pageMode)==="design"?(Lr=((er=cr.sqlConditions)!==null&&er!==void 0?er:[]).map(Wr=>{const Xr={};if(Tn(Wr,"globalCondition")||Wr.join||(Xr.globalCondition=!0),!Wr.join){const hi=Wr.rule||"EQUAL";Xr.rule=hi==="NONE"?"EQUAL":hi}return Object.assign(Object.assign({},Wr),Xr)}),wr!=null&&wr.length&&(Lr=Lr.concat(wr))):(Lr=Un(cr),Cr!=null&&Cr.length&&(Lr=Lr.concat(function(Wr){const Xr=[];if(Wr!=null&&Wr.length){for(const hi of Wr)if(hi.variableName){const gi=Gn(hi.id,hi.keyName),bi={variateName:hi.variableName,globalCondition:!1,valueType:hi.variableType,alias:gi||""};Bn(bi,hi.id,{dateFormat:hi.format,prop:hi.dateTypeValue,keyName:gi,operateType:hi.operateType,operateMode:hi.operateMode,operateValue:hi.operateValue}),hi.dataType===""&&(bi.fieldValue=hi.variableValue),hi.format&&(bi.dateFormat=hi.format),hi.label&&(bi.label=hi.label),Xr.push(bi)}}return Xr}(Cr)))),Lr==null?void 0:Lr.length){const Wr=Lr.filter(hi=>hi.globalCondition),Xr=Lr.filter(hi=>!hi.globalCondition);(Wr==null?void 0:Wr.length)>1&&(Lr=[{join:"&&",conditions:Wr},...Xr])}Lr!=null&&Lr.length&&(Lr=Hn(Lr,"1")),hr==null&&(hr=Nn(pr,["table","card"])||Nn(pr,["list","circulate"])&&(xr==null?void 0:xr.length)>1?"1":Nn(pr,["select","checkbox","radio","treeSelect"])?"3":Nn(pr,["indexPanel"])?"4":"2"),Nn(pr,["indexPanel"])&&(fr="3");const qr=[];let zr,Kr="";if(Array.isArray(xr)&&xr.length>0&&(!["ecanList","ecanCirculate"].includes(pr)||(xr==null?void 0:xr.length)===1)){const Wr=xr.length;for(let Xr=0;Xr<Wr;Xr++){const hi=xr[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,dateFormat:ji,typeGuid:qi="",truncations:Ui=[]}=hi;if(Pi||Wr===1){Kr=qi,Sr={label:gi.trim(),columnName:bi,show:Pi,sort:qn(hi)||Qn(Ci)||Ci,customGroup:Bi,conditions:Hn(Ri),typeGuid:qi},ji&&(Sr.dateFormat=ji),bi!=="the_date"||Sr.dateFormat||(Sr.dateFormat="YYYY-MM-DD");const Yi={};if(Array.isArray(Ui)&&Ui.length>0){const Qi=Ui.length;for(let na=0;na<Qi;na++){const ea=Ui[na]||{},{rule:la="",num:ua=0,name:fa=""}=ea;la&&ua&&(Yi.num=ua,Yi.rule=la,fa&&(Yi.otherGroupName=fa))}}if(!((tr=Object.keys(Yi))===null||tr===void 0)&&tr.length&&(Sr.truncation=Yi),!Nn(pr,["scatter","valueline"]))break;qr.push(Sr)}}}if(Array.isArray(Pr)&&Pr.length>0){const Wr=Pr.length;for(let Xr=0;Xr<Wr;Xr++){const hi=Pr[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,typeGuid:ji,dateFormat:qi=""}=hi;if(Pi||Wr===1){zr={label:gi.trim(),columnName:bi,show:Pi,sort:Qn(Ci),customGroup:Bi,conditions:Hn(Ri),typeGuid:ji},qi?zr.dateFormat=qi:bi==="the_date"&&(zr.dateFormat="YYYY-MM-DD");break}}}const Jr=[];Ir==null||Ir.forEach(Wr=>{Wr.location="LEFT",Jr.push(Pn(Wr,Sr))}),Mr==null||Mr.forEach(Wr=>{Wr.location="RIGHT",Jr.push(Pn(Wr,Sr))});let Zr=Vr;Fn!=null&&Fn.pivotTableCal&&(Zr=((nr=Fn.pivotTableCal)===null||nr===void 0?void 0:nr.indicators)||[]),Zr==null||Zr.forEach(Wr=>{Wr.location="LEFT",Jr.push(Pn(Wr,Sr))});const Yr=[];$r==null||$r.forEach(Wr=>{Wr.location="LEFT",Yr.push(Pn(Wr,Sr))});const Gr=[];["ecanList","ecanCirculate"].includes(pr)&&(xr==null?void 0:xr.length)>1&&(Dr=xr),Fn!=null&&Fn.pivotTableCal&&(Dr=((or=Fn.pivotTableCal)===null||or===void 0?void 0:or.dimensions)||[]),Dr==null||Dr.forEach(Wr=>{const{label:Xr,name:hi,location:gi,show:bi,indexCode:Pi,sort:Ci,typeGuid:Bi,indexCodeNum:Ri,dateFormat:ji,conditions:qi}=Wr;let Ui=Qn(Ci);if(Fn.sort){const{field:Qi,order:na}=Fn.sort;let ea=Jr.find(la=>la.label===Qi);ea||Xr!==Qi||(ea=Wr),ea&&(Ui={columnName:ea.columnName,label:Fn.sort.field,order:na.toUpperCase(),type:"NORMAL"})}const Yi={label:Xr,columnName:hi,location:gi,show:bi,sort:Ui,calcType:"COLUMN",hrpIndexCode:Pi,hrpIndexCodeNum:Ri,conditions:Hn(qi),typeGuid:Bi};ji&&(Yi.dateFormat=ji),hi!=="the_date"||Yi.dateFormat||(Yi.dateFormat="YYYY-MM-DD"),Gr.push(Yi)});const jr=[];["ecanTable"].includes(pr)&&cr.isIndexSet&&Br.forEach(Wr=>{const Xr={label:Wr.label,calcType:Wr.calcType,show:Wr.show};Wr.formula&&(Xr.formula=Wr.formula),jr.push(Xr)});let Hr=[],fi=[];if(Array.isArray(_r)&&_r.length>0?fi=_r:Array.isArray(Er)&&Er.length>0&&(fi=Er),fi==null?void 0:fi.length){const Wr=fi.length;for(let Xr=0;Xr<Wr;Xr++){const hi=fi[Xr]||{},{label:gi="",name:bi="",show:Pi=!1,sort:Ci,customGroup:Bi,conditions:Ri,truncations:ji,typeGuid:qi="",dateFormat:Ui}=hi;let Yi=Qn(Ci);if(Fn.sort){const{field:ea,order:la}=Fn.sort;let ua=Jr.find(fa=>fa.label===ea);ua||hi.label!==ea||(ua=hi),ua&&(Yi={columnName:ua.columnName,label:Fn.sort.field,order:la.toUpperCase(),type:"NORMAL"})}const Qi={label:gi.trim(),columnName:bi,show:Pi,sort:Yi,customGroup:Bi,conditions:Hn(Ri),typeGuid:qi};Ui&&(Qi.dateFormat=Ui),bi!=="the_date"||Qi.dateFormat||(Qi.dateFormat="YYYY-MM-DD");const na={};if(Array.isArray(ji)&&ji.length>0){const ea=ji.length;for(let la=0;la<ea;la++){const ua=ji[la]||{},{rule:fa="",num:ya=0,name:ba=""}=ua;fa&&ya&&(na.num=ya,na.rule=fa,ba&&(na.otherGroupName=ba))}}!((ar=Object.keys(na))===null||ar===void 0)&&ar.length&&(Qi.truncation=na),Hr.push(Qi)}}let Qr,di=[];const pi=[];if(Fn!=null&&Fn.pivotTableCal){let Wr=[];const{calc:Xr=[],filter:hi=[],truncations:gi=[],sorts:bi=[],aggregateMethod:Pi=[],rowDimensionKeys:Ci=[],colDimensionKeys:Bi=[]}=Fn.pivotTableCal;if(Jr.push(...Xr),hi==null?void 0:hi.length){const Ri=function ji(qi){const Ui=[];for(const Yi of qi)Yi.conditions?Ui.push(...ji(Yi.conditions)):Yi.conditionKey==="the_date"&&Ui.push(Yi);return Ui}(kr);for(const ji of hi){const{type:qi}=ji,Ui=e(ji,["type"]);qi==="indicators"?Wr=Jr:qi==="dimension"&&(Wr=Gr);const Yi=Wr.find(Qi=>Qi.columnName===ji.fieldName&&Qi.label===ji.label);if(Yi){if(qi==="indicators")Yi.filter={rule:Ui.rule,fieldValue:Ui.fieldValue};else if(qi==="dimension"){let Qi=!0;Ui.fieldName==="the_date"&&(Ri==null?void 0:Ri.length)===2&&(Qi=!1,pi.push(Ui)),Qi&&(Yi.conditions||(Yi.conditions=[]),Yi.conditions.push(Ui))}}}}if(gi!=null&&gi.length)for(const Ri of gi){const ji=Gr.find(qi=>qi.label===Ri.key);ji&&(ji.truncation={num:Ri.num,rule:Ri.rule})}if(bi!=null&&bi.length)for(const Ri of bi){const{fieldType:ji,columnData:qi}=Ri,Ui=e(Ri,["fieldType","columnData"]);ji==="indicators"?(Wr=Jr,Qr=qi):ji==="dimension"&&(Wr=Gr);const Yi=Wr.find(Qi=>Qi.label===Ui.label);Yi&&(Yi.sort=Object.assign(Object.assign({},Ui),{columnName:Yi.columnName}))}if(!((ir=Object.keys(Pi))===null||ir===void 0)&&ir.length)for(const Ri in Pi){const ji=Gr.find(qi=>qi.label===Ri);ji&&(!((sr=Pi[Ri])===null||sr===void 0)&&sr.length)&&(ji.aggregateMethod=Pi[Ri])}Hr=[],di=[];for(const Ri of Gr)Ci.includes(Ri.columnName)?Hr.push(Ri):Bi.includes(Ri.columnName)&&di.push(Ri)}if(Nn(pr,["text","proportion","counter","gauge"])?br="zb":Nn(pr,["valueline"])?br="valueline":Nn(pr,["indexPanel"])?br="indexPanel":Nn(pr,["boxplot"])?br="boxplot":Nn(pr,["budget"])&&(br="budget"),mr||pr==="card"){if(Hr.length===0||Jr.length===0)return;br="grouptable"}else if(hr==="1"&&!Gr.length&&!jr.length||["2","4"].includes(hr)&&Jr.length===0||!(hr!=="3"||(Kr||gr==="EDV_DATA_SET")&&Tr.labelField&&Tr.valueField)||hr==="3"&&pr==="ecanDataSelect"&&Jr.length===0)return;let Si;if(Er!=null&&Er.length&&(hr="1",br="grouptable"),yr||Nn(pr,["scatter","valueline"])||!(!((lr=Object.keys(Tr))===null||lr===void 0)&&lr.length)){let Wr={};Wr=Nn(pr,["scatter","valueline"])?{classifications:qr}:{classification:Sr},jr!=null&&jr.length&&(Wr.indexLibColumns=jr,Wr.isIndexSet=!0),Yr!=null&&Yr.length&&(Wr.specialIndicatorList=Yr),Nn(pr,"table")&&cr.isIndexSet&&(Wr.compositeIndicator=Rr);const Xr=Lr.map(hi=>{const{fieldValue:gi}=hi,bi={};return gi&&Array.isArray(gi)&&(bi.fieldValue=JSON.stringify(gi)),Object.assign(Object.assign({},hi),bi)});pi!=null&&pi.length&&function hi(gi){for(const bi of gi)if(bi.sqlConditions)hi(bi.sqlConditions);else if(bi.fieldName==="the_date"){const Pi=pi.find(Ci=>Ci.prop===bi.prop);Pi&&(bi.fieldValue=Pi.fieldValue)}}(Xr),Si=Object.assign({url:"/diagram",source:gr,dataViewId:dr,plugin:yr?"5":fr,layer:hr,chartType:yr?"pivot-table":br,series:zr,indicatorList:Jr,queryColumns:mr?[]:Gr,pageFlag:!0,edvDataSetId:Nr||"",sqlConditions:Xr,idxLibMode:Ar,dataSourceId:Or,preview:Fr,rowHeaders:Hr,keyName:ct.keyName,columnData:Qr,columnHeaders:di},Wr)}else{const Wr=Mn(kr).find(gi=>gi.conditionKey==="parentCode"),Xr={};if(Wr){const gi=Rn(Wr.id)||{};if(!(gi!=null&&gi.itemCodes))return;Xr.parentItemCodes=gi.itemCodes}pr==="ecanDataSelect"&&(Xr.indicatorList=Jr.filter(gi=>gi.show)),gr==="EDV_DATA_SET"&&(Xr.edvDataSetId=Nr),Sr!=null&&Sr.sort&&(Xr.sort=Sr.sort);let hi="normalSelect";pr==="ecanDataSelect"?hi="normalSelectData":pr==="ecanTreeSelect"&&(hi="treeSelect"),Si=Object.assign({url:"/diagram/formData",source:gr,dataViewId:dr,plugin:"4",layer:hr,chartType:pr==="ecanTreeSelect"?"treeSelect":"normalSelect",rangeIndexTypeGuid:Kr,type:hi,labelField:Tr.labelField,valueField:Tr.valueField,parentField:Tr.parentField,sqlConditions:Lr,idxLibMode:"WITH_DATE_DIM_TABLE",dataSourceId:Or,keyName:ct.keyName},Xr)}return Si},Xn=(ct=[],Fn,er=!1)=>{let{name:tr="name",types:nr=[]}=Fn||{};tr=(tr==null?void 0:tr.trim())||tr;const or=new Set,ar=new Map,ir=ct.length,sr=nr.length;if(ir!==1||er)for(let pr=0;pr<ir;pr++){const ur=ct[pr],mr=ur[tr];or.add(mr);for(let vr=0;vr<sr;vr++){const yr=nr[vr],{label:Sr,value:gr}=yr,dr=Object.assign(Object.assign({},ur),{value:ur[gr]});if(ar.has(Sr)){const fr=ar.get(Sr);fr.push(dr),ar.set(Sr,fr)}else ar.set(Sr,[dr])}}else{const pr=[];for(let mr=0;mr<sr;mr++){const vr=nr[mr],{label:yr,value:Sr}=vr,gr=Object.assign(Object.assign({},ct[0]),{value:ct[0][Sr]});or.add(yr),pr.push(gr)}const ur=ct[0][tr]||"";ar.set(ur,pr)}const lr=Array.from(or),cr=[];for(const[pr,ur]of ar)cr.push({name:pr,data:ur});return{dimensions:lr,dataset:cr}},Jn=(ct,Fn)=>{let{name:er="name",value:tr="value",type:nr="type"}=Fn||{};er=er==null?void 0:er.trim(),tr=tr==null?void 0:tr.trim(),nr=nr==null?void 0:nr.trim();const or=new Map,ar=ct.length;for(let lr=0;lr<ar;lr++){const cr=ct[lr],pr=cr[er]||"",ur=cr[tr]||"",mr=cr[nr]||"";if(or.has(mr)){const vr=or.get(mr);vr.push(Object.assign({name:pr,value:ur},cr)),or.set(mr,vr)}else or.set(mr,[Object.assign({name:pr,value:ur},cr)])}const ir=[],sr=[];for(const[lr,cr]of or)if(sr.push({name:lr,data:cr}),cr==null?void 0:cr.length)if(ir.length)for(const pr of cr)ir.includes(pr.name)||ir.push(pr.name);else ir.push(...cr.map(pr=>pr.name));return{dimensions:ir,dataset:sr}},ei=(ct,Fn)=>{var er;if(ct==null)return Fn;const tr=ct.match(/\{.*\}/g);if(tr==null||tr.length===0)return Fn;const nr=tr.length;for(let or=0;or<nr;or++){const ar=tr[or];if(ar==null||ar==="")break;let ir=(er=ar.slice(1,-1))===null||er===void 0?void 0:er.trim();ir=ir==null?void 0:ir.replace(/value/g,Fn);try{let sr=ir;(/\(.*\)/g.test(ir)||/[+/\\*]/g.test(ir))&&(sr=Cn(ir)),ct=ct.replace(ar,sr)}catch{ct=ct.replace(ar,ir)}}return ct},ti=(ct,Fn,er)=>{let tr=ct.dataFieldNames;if(ct.dataType==="indicator"&&(er==null?void 0:er.pageMode)!=="design"&&Fn){const{formFields:nr={}}=Fn;nr!=null&&nr.labelField&&(nr!=null&&nr.valueField)&&(tr={name:nr.labelField,value:nr.valueField})}return tr},oi=ct=>{const Fn=ct==null?void 0:ct.chart.getModel().getComponent("yAxis").axis.scale._extent,er=ct==null?void 0:ct.chart.getModel().getComponent("xAxis").axis.scale._extent;let tr={};return er&&Fn&&(tr={xAxisMinValue:er[0],xAxisMaxValue:er[1],yAxisMinValue:Fn[0],yAxisMaxValue:Fn[1]}),tr};function ni(ct,Fn,er){switch(Fn){case"startX":ct[0].coord[0]=+er;break;case"startY":ct[0].coord[1]=+er;break;case"endX":ct[1].coord[0]=+er;break;case"endY":ct[1].coord[1]=+er}}const ii=(ct,Fn,er)=>{let tr=0,nr=[];switch(Fn.x?nr=Ve(er).map(ar=>ar.value[0]):Fn.y&&(nr=Ve(er).map(ar=>ar.value[1])),ct){case"max":tr=Math.max(...nr);break;case"min":tr=Math.min(...nr);break;case"average":or=nr,tr=Array.isArray(or)&&or.length!==0?or.reduce((ar,ir)=>ar+ir,0)/or.length:0;break;case"median":tr=function(ar){if(!Array.isArray(ar)||ar.length===0)return 0;const ir=[...ar].sort((cr,pr)=>cr-pr),sr=ir.length,lr=Math.floor(sr/2);return sr%2!=0?ir[lr]:(ir[lr-1]+ir[lr])/2}(nr)}var or;return tr},ri={最大值:"{max}",最小值:"{min}",平均值:"{average}",中位数:"{median}"};function ai(ct,Fn,er,tr,nr,or,ar){const ir=ti(ct,tr,ar),sr=ct.xAxisLabelFormatter,lr=ct.yAxisLabelFormatter,cr=nr?((ur,mr,vr,yr)=>{const{xAxisMarkLineValue:Sr=[],yAxisMarkLineValue:gr=[]}=ur,{xAxisMinValue:dr,xAxisMaxValue:fr,yAxisMinValue:hr,yAxisMaxValue:br}=mr,xr=Sr.map(Pr=>Object.assign(Object.assign({},Pr),{x:!0})),_r=gr.map(Pr=>Object.assign(Object.assign({},Pr),{y:!0})),Er=xr.concat(_r);if(Er!=null&&Er.length){const Pr=[];for(const Ir of Er){const Mr={label:{show:!0,formatter:"",rich:{ft:{}}}},Dr={};let Br=Ir.value;const Vr=Br==null?void 0:Br.match(/\{(.+?)\}/g);let $r="";if(Mr.label.formatter=Ir.label?`{ft|${Ir.label}}`:"",(Ir.offsetHorizontal||Ir.offsetVertical)&&(Ir.x?Mr.label.rich.ft.padding=[0,Ir.offsetHorizontal||0,Ir.offsetVertical||0,0]:Ir.y&&(Mr.label.rich.ft.padding=[Ir.offsetVertical||0,0,0,Ir.offsetHorizontal||0])),Ir.labelColor&&(Mr.label.rich.ft.color=Ir.labelColor),Ir.lineColor&&(Dr.color=Ir.lineColor),Ir.lineType&&(Dr.type=Ir.lineType),Ir.x?$r="xAxis":Ir.y&&($r="yAxis"),Vr==null?void 0:Vr.length){for(const kr of Vr)Br=Br.replace(kr,kr.slice(1,-1));if(Br){let kr;kr=yr&&yr.value[Br]?Ve(yr)[Br]:Cn(Br,{axisMax:Ir.x?Ve(fr):Ir.y?Ve(br):0,axisMin:Ir.x?Ve(dr):Ir.y?Ve(hr):0,max:ii("max",Ir,vr),min:ii("min",Ir,vr),average:ii("average",Ir,vr),median:ii("median",Ir,vr)}),isNaN(+kr)||Pr.push(Object.assign({[$r]:+kr,lineStyle:Dr},Mr))}}else isNaN(+Ir.value)||Pr.push(Object.assign({[$r]:Ir.value,lineStyle:Dr},Mr))}return{symbol:["none","none"],data:Pr}}return{data:[]}})(ct,nr,Fn,or):void 0,pr=nr?((ur,mr,vr)=>{const{axisMarkArea:yr=[]}=ur,{xAxisMinValue:Sr,xAxisMaxValue:gr,yAxisMinValue:dr,yAxisMaxValue:fr}=mr;if(yr!=null&&yr.length){const hr=[];for(const br of yr){const xr=[{name:br.label||"",coord:[],itemStyle:{color:br.color||"transparent"},label:{show:!!br.label,position:"inside",fontSize:16,color:"#000"}},{coord:[]}];for(const _r in br)if(["startX","startY","endX","endY"].includes(_r)){let Er=ri[br[_r]]||br[_r];const Pr=Er==null?void 0:Er.match(/\{(.+?)\}/g);if(Pr!=null&&Pr.length){for(const Ir of Pr)Er=Er.replace(Ir,Ir.slice(1,-1));if(Er){const Ir={x:_r.includes("X"),y:_r.includes("Y")},Mr=Cn(Er,{xMax:Ve(gr),xMin:Ve(Sr),yMax:Ve(fr),yMin:Ve(dr),max:ii("max",Ir,vr),min:ii("min",Ir,vr),average:ii("average",Ir,vr),median:ii("median",Ir,vr)});isNaN(+Mr)||ni(xr,_r,Mr)}}else isNaN(+br[_r])||ni(xr,_r,br[_r])}xr.every(_r=>{var Er;return(Er=_r.coord)===null||Er===void 0?void 0:Er.length})&&hr.push(xr)}return{data:hr}}return{data:[]}})(ct,nr,Fn):void 0;return{xAxis:{z:5,splitLine:{show:ct.xAxisSplitLineShow,lineStyle:{color:ct.xAxisSplitLineStyleColor},interval:ct.xAxisSplitLineInterval},splitArea:{show:ct.xAxisSplitAreaShow},axisLabel:{show:ct.xAxisLabelShow,fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,interval:ct.xAxisLabelInterval||0,rotate:ct.xAxisLabelRotate,width:ct.xAxisLabelWidth,overflow:ct.xAxisLabelOverflow,formatter:ur=>(typeof ur!="string"||ur[0]!=="0"||isNaN(+ur)||(ur=(+ur).toString()),ei(sr,ur))},axisLine:{lineStyle:{color:ct.xAxisLineStyleColor},symbol:["none",ct.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:ct.xAxisTickShow},name:ct.xAxisName,nameLocation:ct.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.xAxisLabelFontSize,color:ct.xAxisLabelColor,align:"left"},inverse:ct.xAxisLineInverse,max:ct.xAxisMax,min:ct.xAxisMin},yAxis:{z:5,splitLine:{show:ct.yAxisSplitLineShow,lineStyle:{color:ct.yAxisSplitLineStyleColor,type:ct.yAxisSplitLineType}},axisTick:{show:ct.yAxisTickShow},splitArea:{show:ct.yAxisSplitAreaShow},axisLabel:{show:ct.yAxisLabelShow,fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,formatter:ur=>ei(lr,ur)},axisLine:{show:ct.yAxisLineAlwaysDisplay,lineStyle:{color:ct.yAxisLineStyleColor},symbol:["none",ct.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:ct.yAxisName,nameLocation:ct.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:ct.yAxisLabelFontSize,color:ct.yAxisLabelColor,align:"right"},inverse:ct.yAxisLineInverse,max:ct.yAxisMax,min:ct.yAxisMin},tooltip:{show:ct.tooltipShow,trigger:ct.tooltipTrigger,formatter(ur){var mr,vr;const{marker:yr,seriesName:Sr,componentType:gr}=ur,dr=(vr=(mr=ur==null?void 0:ur.data)===null||mr===void 0?void 0:mr.record)!==null&&vr!==void 0?vr:{},fr=dr[ir.name],hr=dr[ir.value];return["markLine","markArea"].includes(gr)?"":jn(ct.tooltipFormatter,{textData:Object.assign({marker:yr,seriesName:Sr,a:Sr,b:fr,c:hr,Qfw:$n,QwfFixed:Dn},dr)},{useNewline:!0,useSpace:!0})},axisPointer:{type:ct.crossShow||ct.crossShow===void 0?"cross":""},textStyle:{fontSize:Ve(er)},position:ct.tooltipPosition||void 0},legend:{show:ct.legendShow,orient:ct.legendOrient,top:ct.legendTop,left:ct.legendLeft,textStyle:{color:ct.legendTextStyleColor,fontSize:er}},series:[{data:Ve(Fn),type:"scatter",symbolSize:ct.symbolSize,itemStyle:{color:ct.symbolColor},label:{show:ct.labelShow,fontSize:ct.labelFontSize,position:ct.labelPosition,color:ct.labelColor,width:ct.labelWidth,overflow:ct.labelOverflow,formatter:ur=>{var mr;let vr="",yr=ct.labelFormatter;yr===""&&(yr="{c}");const{seriesName:Sr,data:gr}=ur||{},dr=(mr=gr==null?void 0:gr.record)!==null&&mr!==void 0?mr:{},fr=dr[ir.name],hr=dr[ir.value];return vr+=jn(yr,{textData:Object.assign({name:fr,value:hr,a:Sr,b:fr,c:hr||0},dr)},{useNewline:!0,useSpace:!0}),vr}},markLine:cr,markArea:pr}]}}function li(ct){let Fn="";switch(ct){case 1:Fn="万";break;case 3:Fn="百万";break;case 4:Fn="千万"}return Fn}const si=(ct,Fn,er,tr,nr,or,ar)=>{switch(((ir,sr)=>{if(!ir)return ir||"";if(ir.toLowerCase().startsWith(sr.toLowerCase())){const lr=ir.slice(sr.length);return lr?lr.charAt(0).toLowerCase()+lr.slice(1):""}return ir})(ct.type,"ecan")){case"bar":return function(ir,sr,lr,cr){const pr=ir.yAxisLabelFormatter,ur=ir.xAxisLabelFormatter,mr=De(sr.dataset),vr=De(sr.dimensions),yr=mt(()=>{const{gradientShow:gr,gradientColors:dr,gradientOffset:fr,barBorderRadius:hr}=ir,br=Ve(mr),xr=br.length,_r=[];for(let Er=0;Er<xr;Er++){const Pr=Object.assign(Object.assign({},br[Er]),{type:"bar",barWidth:ir.barWidth.value+ir.barWidth.suffix,showBackground:ir.showBarBackground});if(ir.isStack&&(Pr.stack="stack"),Pr.label={show:ir.labelShow,fontSize:ir.labelFontSize,position:ir.labelPosition,color:ir.labelColor,width:ir.labelWidth,overflow:ir.labelOverflow,formatter:Ir=>{let Mr="",Dr=ir.labelFormatter;Dr===""&&(Dr="{c}");const{seriesName:Br,name:Vr,value:$r,data:kr}=Ir||{};return Mr+=jn(Dr,{textData:Object.assign({name:Vr,value:$r,a:Br,b:Vr,c:$r||0},kr)},{useNewline:!0,useSpace:!0}),Mr}},Pr.itemStyle={},gr){let Ir=ir.colors[Er];if(!Ir&&ir.colors.length){const Mr=(Er+1)%ir.colors.length-1;Ir=Mr>0?ir.colors[Mr]:ir.colors[0]}Ir||(Ir="#5470C6"),Pr.itemStyle={color:{x:ir.isUseHorizontalAxis?1:0,y:0,x2:0,y2:ir.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:Ir},{offset:fr,color:dr[Er]},{offset:1,color:dr[Er]}]}}}if(hr&&(!ir.isStack||Er===xr-1)){const Ir=hr.split(",");if(Ir!=null&&Ir.length){const Mr=[];for(const Dr of Ir){const Br=parseFloat(Dr);isNaN(Br)||Mr.push(Br)}Pr.itemStyle.borderRadius=Mr}}ir.isShowMarkLine&&(Pr.markLine={data:[{type:ir.markLineType}]}),_r.push(Pr)}return _r}),Sr=mt(()=>Ve(vr).map(gr=>{let dr={};return dr=gr&&typeof gr=="object"?Object.assign(Object.assign({},gr),{textStyle:{fontSize:lr}}):{value:gr,textStyle:{fontSize:lr}},dr}));return{tooltip:{trigger:"axis",show:ir.tooltipShow,formatter:gr=>{var dr;const fr=gr.length;let hr="",br=ir.tooltipFormatter;cr!=null&&cr.getCurrentData&&cr.getCurrentData((dr=gr[0])===null||dr===void 0?void 0:dr.data),br===""&&(br="{marker} {a} {c}");for(let xr=0;xr<fr;xr++){const{marker:_r,seriesName:Er,name:Pr,value:Ir,data:Mr}=gr[xr]||{};if(xr===0){let Dr=Pr;Pr==="undefined"&&(Dr=""),typeof Pr!="string"||Pr[0]!=="0"||isNaN(+Pr)||(Dr=(+Pr).toString()),hr+=`${ei(ur,Dr)}${Dr?"<br/>":""}`}hr+=jn(br,{textData:Object.assign({marker:_r,name:Pr,value:Ir,a:Er,b:Pr,c:Mr.sourceValue||Ir||0,Qfw:$n,QwfFixed:Dn},Mr)},{useNewline:!0,useSpace:!0}),hr+="<br/>"}return hr},textStyle:{color:ir.tooltipTextStyleColor,fontSize:lr.value},position:ir.tooltipPosition||void 0},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(mr).map((gr,dr)=>({name:gr.name,itemStyle:{color:ir.colors[dr]},icon:ir.legendType})),formatter:gr=>kn(ir.legendFormatter,{name:gr})},xAxis:{type:ir.isUseHorizontalAxis?"value":"category",data:ir.isUseHorizontalAxis?null:Ve(Sr),inverse:ir.isUseHorizontalAxis?ir.xAxisInverse:ir.axisInverse,minInterval:ir.xAxisMinInterval,splitLine:{show:ir.xAxisSplitLineShow,lineStyle:{color:ir.xAxisSplitLineStyleColor,type:ir.xAxisSplitLineType},interval:ir.xAxisSplitLineInterval},splitArea:{show:ir.xAxisSplitAreaShow},axisLabel:{show:ir.xAxisLabelShow,color:ir.xAxisLabelColor,interval:ir.xAxisLabelInterval||0,rotate:ir.xAxisLabelRotate,width:ir.xAxisLabelWidth,overflow:ir.xAxisLabelOverflow,fontSize:ir.xAxisLabelFontSize,formatter:gr=>(typeof gr!="string"||gr[0]!=="0"||isNaN(+gr)||(gr=(+gr).toString()),ei(ur,gr))},axisLine:{show:ir.xAxisLineShow,lineStyle:{color:ir.xAxisLineStyleColor}},axisTick:{show:ir.xAxisTickShow},name:ir.xAxisName,nameTextStyle:{fontSize:ir.xAxisLabelFontSize,color:ir.xAxisLabelColor,align:"left"},max:ir.xAxisMaxValue||null},yAxis:{type:ir.isUseHorizontalAxis?"category":"value",data:ir.isUseHorizontalAxis?Ve(vr):null,inverse:ir.isUseHorizontalAxis?ir.axisInverse:ir.yAxisInverse,minInterval:ir.yAxisMinInterval,splitLine:{show:ir.yAxisSplitLineShow,lineStyle:{color:ir.yAxisSplitLineStyleColor,type:ir.yAxisSplitLineType}},splitArea:{show:ir.yAxisSplitAreaShow},axisTick:{show:ir.yAxisTickShow},axisLabel:{show:ir.yAxisLabelShow,fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,rotate:ir.yAxisLabelRotate,width:ir.yAxisLabelWidth,overflow:ir.yAxisLabelOverflow,formatter:gr=>ei(pr,gr)},axisLine:{show:ir.yAxisLineAlwaysDisplay,lineStyle:{color:ir.yAxisLineStyleColor}},name:ir.yAxisName,nameTextStyle:{fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,align:"right"},max:ir.yAxisMaxValue||null},series:Ve(yr)}}(ct,Fn,er,ar);case"line":return function(ir,sr,lr,cr){const pr=ir.yAxisLabelFormatter,ur=ir.xAxisLabelFormatter,mr=De(sr.dataset),vr=De(sr.dimensions),yr=sr.dataset,Sr=mt(()=>{const gr=[],dr=yr.length;for(let hr=0;hr<dr;hr++){const br={};ir.shadowColor&&(br.shadowColor=ir.shadowColor,br.shadowBlur=ir.shadowBlur,br.shadowOffsetY=ir.shadowOffsetY,br.shadowOffsetX=ir.shadowOffsetX);let xr=ir.colors[hr];if(!xr&&ir.colors.length){const _r=(hr+1)%ir.colors.length-1;xr=_r>0?ir.colors[_r]:ir.colors[0]}xr||(xr="#5470C6"),gr.push(Object.assign(Object.assign(Object.assign({type:"line"},yr[hr]),{symbolSize:ir.symbolSize,smooth:ir.smooth,areaStyle:{color:ir.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:xr},{offset:1,color:ir.areaGradientColor||"transparent"}],global:!1}:xr,opacity:ir.areaStyleOpacity},lineStyle:Object.assign({width:ir.lineStyleWidth},br)}),(fr=ir).isShowMarkLine?{markLine:{data:[{type:fr.markLineType}]}}:{}))}var fr;return gr});return{tooltip:{trigger:"axis",textStyle:{fontSize:lr.value,color:ir.tooltipTextStyleColor},show:ir.tooltipShow,formatter:gr=>{var dr;const fr=gr.length;let hr="",br=ir.tooltipFormatter;cr!=null&&cr.getCurrentData&&cr.getCurrentData((dr=gr[0])===null||dr===void 0?void 0:dr.data),br===""&&(br="{marker} {a} {c}");for(let xr=0;xr<fr;xr++){const{marker:_r,seriesName:Er,name:Pr,value:Ir,data:Mr}=gr[xr]||{};if(xr===0){let Dr=Pr;typeof Pr!="string"||Pr[0]!=="0"||isNaN(+Pr)||(Dr=(+Pr).toString()),hr+=`${ei(ur,Dr)}<br/>`}hr+=jn(br,{textData:Object.assign({marker:_r,name:Pr,value:Ir,a:Er,b:Pr,c:Ir||0,Qfw:$n,QwfFixed:Dn},Mr)},{useNewline:!0,useSpace:!0}),hr+="<br/>"}return hr},position:ir.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:ir.isBoundaryGap,data:Ve(vr).map(gr=>{let dr={};return dr=gr&&typeof gr=="object"?Object.assign({},gr):{value:gr},dr}),minInterval:ir.xAxisMinInterval,splitLine:{show:ir.xAxisSplitLineShow,lineStyle:{color:ir.xAxisSplitLineStyleColor},interval:ir.xAxisSplitLineInterval},splitArea:{show:ir.xAxisSplitAreaShow},axisLabel:{show:ir.xAxisLabelShow,color:ir.xAxisLabelColor,interval:ir.xAxisLabelInterval||0,rotate:ir.xAxisLabelRotate,width:ir.xAxisLabelWidth,overflow:ir.xAxisLabelOverflow,fontSize:ir.xAxisLabelFontSize,formatter:gr=>(typeof gr!="string"||gr[0]!=="0"||isNaN(+gr)||(gr=(+gr).toString()),ei(ur,gr))},axisLine:{show:ir.xAxisLineShow,lineStyle:{color:ir.xAxisLineStyleColor}},axisTick:{show:ir.xAxisTickShow},name:ir.xAxisName,nameTextStyle:{fontSize:ir.xAxisLabelFontSize,color:ir.xAxisLabelColor,align:"left"},max:ir.xAxisMaxValue||null},yAxis:{type:"value",minInterval:ir.yAxisMinInterval,splitLine:{show:ir.yAxisSplitLineShow,lineStyle:{color:ir.yAxisSplitLineStyleColor,type:ir.yAxisSplitLineType}},splitArea:{show:ir.yAxisSplitAreaShow},axisLabel:{show:ir.yAxisLabelShow,fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,formatter:gr=>ei(pr,gr)},axisLine:{show:ir.yAxisLineAlwaysDisplay,lineStyle:{color:ir.yAxisLineStyleColor}},name:ir.yAxisName,nameTextStyle:{fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,align:"right"},max:ir.yAxisMaxValue||null},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{lineHeight:parseFloat(ir.legendFontSize)+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:ir.legendFontSize}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(mr).map(gr=>({name:gr.name,icon:ir.legendType})),formatter:gr=>kn(ir.legendFormatter,{name:gr})},series:Ve(Sr)}}(ct,Fn,er,ar);case"pie":return function(ir,sr,lr){var cr,pr;const ur=De(sr.dataset);let{data:mr=[]}=Ve(ur)[0]||{};if(Array.isArray(ir.colors)){const yr=ir.isUseLabelColors,Sr=ir.colors;mr=mr.map((gr,dr)=>Object.assign({label:yr?{color:Sr[dr]}:{}},gr))}return{tooltip:{show:ir.tooltipShow,trigger:ir.tooltipTrigger,formatter:yr=>{const{marker:Sr,seriesName:gr,name:dr,value:fr,percent:hr,data:br}=yr||{};return jn(ir.tooltipFormatter,{textData:Object.assign({marker:Sr,name:dr,value:fr,percent:hr,a:gr,b:dr,c:fr,d:hr,Qfw:$n,QwfFixed:Dn},br)},{useNewline:!0,useSpace:!0})},textStyle:{color:ir.tooltipTextStyleColor},position:ir.tooltipPosition||void 0},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,align:"left",textStyle:{lineHeight:lr+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:lr}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:(pr=(cr=Ve(ur)[0])===null||cr===void 0?void 0:cr.data)===null||pr===void 0?void 0:pr.map(yr=>({name:yr.name,icon:ir.legendType})),formatter:yr=>{const{data:Sr}=ur.value[0]||{};let gr,dr=0,fr="0%";if(Sr)for(const hr of Sr)hr.name===yr&&(gr=+hr.value),dr+=+hr.value;return dr&&(fr=`${(gr/dr*100).toFixed(2)}%`),kn(ir.legendFormatter,{name:yr,value:gr,percent:fr})}},series:[{data:mr,type:"pie",radius:[ir.innerRadius,ir.outerRadius],center:[ir.centerLeft,ir.centerTop],roseType:ir.roseType,avoidLabelOverlap:!0,minAngle:ir.minAngle,label:{show:ir.labelPosition!=="center"&&ir.labelShow,color:ir.labelColor,fontSize:ir.labelFontSize,position:ir.labelPosition,formatter:(vr=ir.labelFormatter,vr.replace(/\\n/g,`
|
|
64
64
|
`)),width:ir.labelWidth,overflow:ir.labelOverflow},labelLine:{show:ir.labelLineShow,length:ir.labelLineLength,length2:ir.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var vr}(ct,Fn,er);case"radar":return function(ir,sr,lr){const cr=De(sr.dimensions),pr=De(sr.dataset),ur=mt(()=>{var yr;const Sr=[],gr=[],dr=Ve(pr),fr=dr.length;for(let hr=0;hr<fr;hr++){const{data:br=[]}=dr[hr];for(let xr=0;xr<br.length;xr++)gr.push(br[xr].value)}if(!((yr=cr.value)===null||yr===void 0)&&yr.length){const hr=gr!=null&&gr.length?1.2*Math.max(...gr):0;for(const br of cr.value)Sr.push({name:br,max:hr})}return Sr}),mr=mt(()=>{const yr=Ve(pr),Sr=yr.length,gr=[];for(let dr=0;dr<Sr;dr++){const{name:fr,data:hr=[]}=yr[dr],br=[{name:fr,value:hr.map(Pr=>Pr.value)}];let xr=ir.colors[dr];if(!xr&&ir.colors.length){const Pr=(dr+1)%ir.colors.length-1;xr=Pr>0?ir.colors[Pr]:ir.colors[0]}xr||(xr="#5470C6");let _r=xr;if(ir.gradientShow){const{gradientOffset:Pr,gradientColors:Ir}=ir;_r={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:xr},{offset:Pr,color:Ir[dr]},{offset:1,color:Ir[dr]}]}}const Er={type:"radar",name:fr,data:br,areaStyle:{color:_r,opacity:ir.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:ir.symbolSize,lineStyle:{width:ir.lineStyleWidth},label:{show:ir.labelShow,fontSize:ir.labelFontSize,position:ir.labelPosition,color:ir.labelColor,width:ir.labelWidth,overflow:ir.labelOverflow,formatter:Pr=>{const{data:Ir,value:Mr}=Pr;let Dr=0,Br="0%";if(Ir)for(const Vr of Ir.value)Dr+=+Vr;return Dr&&(Br=`${(Mr/Dr*100).toFixed(2)}%`),jn(ir.labelFormatter,{textData:{value:Mr,percent:Br}},{useNewline:!1,useSpace:!1})}}};gr.push(Er)}return gr}),vr=mt(()=>({tooltip:{trigger:"axis",textStyle:{fontSize:lr.value},show:ir.tooltipShow,formatter:yr=>{let Sr="",gr=ir.tooltipFormatter;gr===""&&(gr="{marker} {a} {c}");for(let dr=0;dr<Ve(ur).length;dr++){const fr=Ve(ur)[dr],{marker:hr,seriesName:br,value:xr}=yr||{};dr===0&&br&&(Sr+=`${br}<br/>`),Sr+=jn(gr,{textData:{marker:hr,name:fr.name,value:xr[dr],a:fr.name,b:fr.name,c:xr[dr]||0,Qfw:$n,QwfFixed:Dn,type:br}},{useNewline:!0,useSpace:!0}),Sr+="<br/>"}return Sr},position:ir.tooltipPosition||void 0},radar:{indicator:Ve(ur),axisName:{color:ir.axisNameColor}},legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{lineHeight:parseFloat(ir.legendFontSize)+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:ir.legendFontSize}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(pr).map(yr=>({name:yr.name,icon:ir.legendType})),formatter:yr=>kn(ir.legendFormatter,{name:yr})},series:Ve(mr)}));return Ve(vr)}(ct,Fn,er);case"scatter":return ai(ct,Fn,er,tr,nr,or,ar);case"comboGraph":return function(ir,sr,lr,cr){const pr=De(sr.dimensions),ur=De(sr.dataset),mr=sr.dataset,vr=dr=>{const fr=[];let hr=0;return ir.seriesTypes.forEach((br,xr)=>{var _r,Er;br.axisIndex===dr&&(!((Er=(_r=Ve(ur)[xr])===null||_r===void 0?void 0:_r.data)===null||Er===void 0)&&Er.length)&&fr.push(...Ve(ur)[xr].data.map(Pr=>+Pr.value))}),fr.some(br=>br>=1e7)?hr=4:fr.some(br=>br>=1e6)?hr=3:fr.some(br=>br>=1e4)&&(hr=1),hr},yr=De([0,0]),Sr=mt(()=>{const dr=ir.yAxis;return dr==null?void 0:dr.map((fr,hr)=>{const br=yr.value[hr];let xr;return br&&(xr=1e4*Math.pow(10,br-1)),{type:"value",minInterval:ir.yAxisMinInterval,splitLine:{show:hr===0?ir.yAxisLeftSplitLineShow:ir.yAxisRightSplitLineShow,lineStyle:{color:ir.yAxisSplitLineStyleColor,type:hr===0?ir.yAxisLeftSplitLineType:ir.yAxisRightSplitLineType}},splitArea:{show:ir.yAxisSplitAreaShow},axisLabel:{show:ir.yAxisLabelShow,fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,formatter(_r){let Er=_r;return xr&&(Er=(+_r/xr).toString()),ei(fr.axisLabelFormatter,Er)}},axisLine:{show:ir.yAxisLineAlwaysDisplay,lineStyle:{color:ir.yAxisLineStyleColor}},name:li(br)+(hr===0?ir.yAxisLeftName:ir.yAxisRightName),nameTextStyle:{fontSize:ir.yAxisLabelFontSize,color:ir.yAxisLabelColor,align:hr===0?"right":"left"},max:ir.yAxisMaxValue||null}})});return yr.value[0]=ir.yAxisLeftUnitAdapt?vr(0):0,yr.value[1]=ir.yAxisRightUnitAdapt?vr(1):0,{legend:{type:ir.legendScroll?"scroll":"plain",width:ir.legendWidth,height:ir.legendHeight,show:ir.legendShow,orient:ir.legendOrient,top:ir.legendTop,left:ir.legendLeft,textStyle:{lineHeight:parseFloat(ir.legendFontSize)+8,rich:{text:{width:ir.legendTextWidth,color:ir.legendTextStyleColor,fontSize:ir.legendFontSize}}},itemHeight:ir.legendItemHeight,itemWidth:ir.legendItemWidth,itemGap:ir.legendItemGap,data:Ve(ur).map((dr,fr)=>({name:dr.name,itemStyle:{color:ir.colors[fr]},icon:ir.legendType})),formatter:dr=>kn(ir.legendFormatter,{name:dr})},tooltip:{trigger:"axis",show:ir.tooltipShow,formatter:dr=>{var fr;const hr=dr.length;let br="",xr=ir.tooltipFormatter;cr!=null&&cr.getCurrentData&&cr.getCurrentData((fr=dr[0])===null||fr===void 0?void 0:fr.data),xr===""&&(xr="{marker} {a} {c}");const _r=ir.seriesTypes;for(let Er=0;Er<hr;Er++){const Pr=_r[Er],{tooltipFormatter:Ir}=Pr||{},{marker:Mr,seriesName:Dr,name:Br,value:Vr,data:$r}=dr[Er]||{};if(Er===0){let kr=Br;typeof Br!="string"||Br[0]!=="0"||isNaN(+Br)||(kr=(+Br).toString()),br+=`${ei(ir.xAxisLabelFormatter,kr)}<br/>`}br+=jn(Ir||xr,{textData:Object.assign({marker:Mr,name:Br,value:Vr,seriesName:Dr,a:Dr,b:Br,c:Vr||0,Qfw:$n,QwfFixed:Dn},$r)},{useNewline:!0,useSpace:!0}),br+="<br/>"}return br},textStyle:{color:ir.tooltipTextStyleColor,fontSize:lr.value},position:ir.tooltipPosition||void 0},xAxis:{minInterval:ir.xAxisMinInterval,type:"category",data:Ve(pr).map(dr=>{let fr={};return fr=dr&&typeof dr=="object"?Object.assign({},dr):{value:dr},fr}),splitLine:{show:ir.xAxisSplitLineShow,lineStyle:{color:ir.xAxisSplitLineStyleColor},interval:ir.xAxisSplitLineInterval},splitArea:{show:ir.xAxisSplitAreaShow},axisLabel:{show:ir.xAxisLabelShow,color:ir.xAxisLabelColor,interval:ir.xAxisLabelInterval||0,rotate:ir.xAxisLabelRotate,width:ir.xAxisLabelWidth,overflow:ir.xAxisLabelOverflow,fontSize:ir.xAxisLabelFontSize,formatter:dr=>(typeof dr!="string"||dr[0]!=="0"||isNaN(+dr)||(dr=(+dr).toString()),ei(ir.xAxisLabelFormatter,dr))},axisLine:{show:ir.xAxisLineShow,lineStyle:{color:ir.xAxisLineStyleColor}},axisTick:{show:ir.xAxisTickShow},name:ir.xAxisName,nameTextStyle:{fontSize:ir.xAxisLabelFontSize,color:ir.xAxisLabelColor,align:"left"},max:ir.xAxisMaxValue||null},yAxis:Ve(Sr),series:function(dr){const fr=[],hr=dr.length,br=ir.seriesTypes;for(let xr=0;xr<hr;xr++){const _r=br[xr],{type:Er,axisIndex:Pr}=_r||{};let Ir=Object.assign({type:Er,yAxisIndex:Pr},dr[xr]),Mr=ir.colors[xr];if(!Mr&&ir.colors.length){const Dr=(xr+1)%ir.colors.length-1;Mr=Dr>0?ir.colors[Dr]:ir.colors[0]}if(Mr||(Mr="#5470C6"),Er==="line"){const Dr={};ir.shadowColor&&(Dr.shadowColor=ir.shadowColor,Dr.shadowBlur=ir.shadowBlur,Dr.shadowOffsetY=ir.shadowOffsetY,Dr.shadowOffsetX=ir.shadowOffsetX),Ir=Object.assign(Object.assign({},Ir),{symbolSize:ir.symbolSize,smooth:ir.smooth,itemStyle:{color:Mr},areaStyle:{color:ir.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Mr},{offset:1,color:ir.areaGradientColor||"transparent"}],global:!1}:Mr,opacity:ir.areaStyleOpacity},lineStyle:Object.assign({width:ir.lineStyleWidth},Dr)})}if(Er==="bar"){const{gradientShow:Dr,gradientColors:Br,gradientOffset:Vr}=ir,$r={color:Mr};if(ir.barBorderRadius){const kr=ir.barBorderRadius.split(",");if(kr!=null&&kr.length){const Tr=[];for(const Cr of kr){const wr=parseFloat(Cr);isNaN(wr)||Tr.push(wr)}$r.borderRadius=Tr}}Dr&&($r.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:Mr},{offset:Vr,color:Br[xr]},{offset:1,color:Br[xr]}]}),Ir=Object.assign(Object.assign({},Ir),{barWidth:ir.barWidth.value+ir.barWidth.suffix,itemStyle:$r,label:{show:ir.labelShow,fontSize:ir.labelFontSize,position:ir.labelPosition,color:ir.labelColor,width:ir.labelWidth,overflow:ir.labelOverflow,formatter:kr=>{let Tr="",Cr=ir.labelFormatter;Cr===""&&(Cr="{c}");const{seriesName:wr,name:Or,value:Ar,data:Fr}=kr||{};return Tr+=jn(Cr,{textData:Object.assign({name:Or,value:Ar,a:wr,b:Or,c:Ar||0},Fr)},{useNewline:!0,useSpace:!0}),Tr}}})}ir.isShowMarkLine&&(Ir.markLine={data:[{type:ir.markLineType}]}),fr.push(Ir)}return fr}(mr)}}(ct,Fn,er,ar);default:return{}}},ci=(ct,Fn,{fontSize:er=12,graphicConfig:tr={},maxValueObj:nr={},fontFamily:or=null,componentValues:ar=null,callBackMethodMap:ir={}})=>Object.assign(Object.assign({},function(sr,lr,cr){return{textStyle:{fontFamily:Ve(lr)},toolbox:{show:sr.toolboxShow,left:sr.toolboxLeft,top:sr.toolboxTop,itemSize:sr.toolboxItemSize,itemGap:sr.toolboxItemGap,feature:{myLocation:{show:!!sr.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(){cr.toolboxLocationFun&&cr.toolboxLocationFun(sr)}},myDownload:{show:sr.toolboxDownloadUrl&&sr.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(){cr.toolboxDownloadShowFun&&cr.toolboxDownloadShowFun(sr)}},myDataZoom:{show:sr.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(){cr.toolboxDataZoomShowFun&&cr.toolboxDataZoomShowFun(sr)}},myInfo:{show:sr.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(){cr.toolboxInfoShowFun&&cr.toolboxInfoShowFun(sr)}},mySource:{show:sr.toolboxInfoSource,title:"指标来源",icon:"path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z",onclick(){cr.toolboxSourceShowFun&&cr.toolboxSourceShowFun(sr)}}}},title:{text:sr.titleText,subtext:sr.titleSubtext,textStyle:{fontSize:sr.titleFontSize,fontWeight:sr.fontWeight,color:sr.titleColor},left:sr.textAlign},grid:{top:sr.gridTop,bottom:sr.gridBottom,left:sr.gridLeft,right:sr.gridRight,containLabel:sr.gridContainLabel},color:sr.colors}}(ct,or,ir)),si(ct,Fn,er,tr,nr,ar,ir)),styleList=["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"],usePickComponentStyle=(ct,Fn=[])=>{const{pageMode:er}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),tr=lodashEs.without(styleList,...Fn);return vue.computed(()=>{var ar,ir;const nr=lodashEs.pick(ct,tr),or=["width","height","top","left"];for(const sr of or)Tn(nr,sr)&&(["width","height"].includes(sr)&&((ar=ct[sr])==null?void 0:ar.suffix)==="%"&&vue.unref(er)==="design"?nr[sr]="100%":(ir=ct[sr])!=null&&ir.suffix&&(nr[sr]=(ct[sr].value||0)+ct[sr].suffix));return nr})},useOnEvent=(ct,Fn)=>{vue.watch(()=>ct.id,er=>{const tr=vue.inject(EVENT_BUS,{onEvent:(nr,or,ar)=>{}});er!=null&&er!==""&&tr.onEvent(er,Fn,ct.requestSort)},{immediate:!0})},ignoreClickType=["ecanTable"],useEmitEvent=ct=>{const Fn=ct.events,er=ct.id,tr=vue.inject(EVENT_BUS,{emitEvent:(ar,ir)=>{}}),nr=vue.inject(COMMON_OPERATE,{operateAction:(ar,ir)=>{}}),{touchEventId:or}=vue.inject(GLOBAL_CONFIG,{touchEventId:vue.ref("")});return(ar,ir=()=>{},sr)=>function(){ir.call(this,...arguments);const{emitEvent:lr}=tr,{operateAction:cr}=nr;ar==="click"&&!Fn.find(ur=>ur.on==="click")&&(!ignoreClickType.includes(ct.type)&&ct.dataType==="indicator"||ct.parentId)&&cr("SHOW_INDICATOR_DETAIL_MODAL",{props:ct}),or.value=er;try{lr(Fn.filter(pr=>pr.on===ar),sr)}catch(pr){console.error(pr)}}};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ct){return ct&&ct.__esModule&&Object.prototype.hasOwnProperty.call(ct,"default")?ct.default:ct}function getAugmentedNamespace(ct){if(ct.__esModule)return ct;var Fn=ct.default;if(typeof Fn=="function"){var er=function tr(){return this instanceof tr?Reflect.construct(Fn,arguments,this.constructor):Fn.apply(this,arguments)};er.prototype=Fn.prototype}else er={};return Object.defineProperty(er,"__esModule",{value:!0}),Object.keys(ct).forEach(function(tr){var nr=Object.getOwnPropertyDescriptor(ct,tr);Object.defineProperty(er,tr,nr.get?nr:{enumerable:!0,get:function(){return ct[tr]}})}),er}var cryptoJs={exports:{}};function commonjsRequire(ct){throw new Error('Could not dynamically require "'+ct+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function(ct,Fn){(function(er,tr){ct.exports=tr()})(commonjsGlobal,function(){var er=er||function(tr,nr){var or;if(typeof window<"u"&&window.crypto&&(or=window.crypto),typeof self<"u"&&self.crypto&&(or=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(or=globalThis.crypto),!or&&typeof window<"u"&&window.msCrypto&&(or=window.msCrypto),!or&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(or=commonjsGlobal.crypto),!or&&typeof commonjsRequire=="function")try{or=require$$0}catch{}var ar=function(){if(or){if(typeof or.getRandomValues=="function")try{return or.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof or.randomBytes=="function")try{return or.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},ir=Object.create||function(){function dr(){}return function(fr){var hr;return dr.prototype=fr,hr=new dr,dr.prototype=null,hr}}(),sr={},lr=sr.lib={},cr=lr.Base=function(){return{extend:function(dr){var fr=ir(this);return dr&&fr.mixIn(dr),(!fr.hasOwnProperty("init")||this.init===fr.init)&&(fr.init=function(){fr.$super.init.apply(this,arguments)}),fr.init.prototype=fr,fr.$super=this,fr},create:function(){var dr=this.extend();return dr.init.apply(dr,arguments),dr},init:function(){},mixIn:function(dr){for(var fr in dr)dr.hasOwnProperty(fr)&&(this[fr]=dr[fr]);dr.hasOwnProperty("toString")&&(this.toString=dr.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),pr=lr.WordArray=cr.extend({init:function(dr,fr){dr=this.words=dr||[],fr!=nr?this.sigBytes=fr:this.sigBytes=dr.length*4},toString:function(dr){return(dr||mr).stringify(this)},concat:function(dr){var fr=this.words,hr=dr.words,br=this.sigBytes,xr=dr.sigBytes;if(this.clamp(),br%4)for(var _r=0;_r<xr;_r++){var Er=hr[_r>>>2]>>>24-_r%4*8&255;fr[br+_r>>>2]|=Er<<24-(br+_r)%4*8}else for(var Pr=0;Pr<xr;Pr+=4)fr[br+Pr>>>2]=hr[Pr>>>2];return this.sigBytes+=xr,this},clamp:function(){var dr=this.words,fr=this.sigBytes;dr[fr>>>2]&=4294967295<<32-fr%4*8,dr.length=tr.ceil(fr/4)},clone:function(){var dr=cr.clone.call(this);return dr.words=this.words.slice(0),dr},random:function(dr){for(var fr=[],hr=0;hr<dr;hr+=4)fr.push(ar());return new pr.init(fr,dr)}}),ur=sr.enc={},mr=ur.Hex={stringify:function(dr){for(var fr=dr.words,hr=dr.sigBytes,br=[],xr=0;xr<hr;xr++){var _r=fr[xr>>>2]>>>24-xr%4*8&255;br.push((_r>>>4).toString(16)),br.push((_r&15).toString(16))}return br.join("")},parse:function(dr){for(var fr=dr.length,hr=[],br=0;br<fr;br+=2)hr[br>>>3]|=parseInt(dr.substr(br,2),16)<<24-br%8*4;return new pr.init(hr,fr/2)}},vr=ur.Latin1={stringify:function(dr){for(var fr=dr.words,hr=dr.sigBytes,br=[],xr=0;xr<hr;xr++){var _r=fr[xr>>>2]>>>24-xr%4*8&255;br.push(String.fromCharCode(_r))}return br.join("")},parse:function(dr){for(var fr=dr.length,hr=[],br=0;br<fr;br++)hr[br>>>2]|=(dr.charCodeAt(br)&255)<<24-br%4*8;return new pr.init(hr,fr)}},yr=ur.Utf8={stringify:function(dr){try{return decodeURIComponent(escape(vr.stringify(dr)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(dr){return vr.parse(unescape(encodeURIComponent(dr)))}},Sr=lr.BufferedBlockAlgorithm=cr.extend({reset:function(){this._data=new pr.init,this._nDataBytes=0},_append:function(dr){typeof dr=="string"&&(dr=yr.parse(dr)),this._data.concat(dr),this._nDataBytes+=dr.sigBytes},_process:function(dr){var fr,hr=this._data,br=hr.words,xr=hr.sigBytes,_r=this.blockSize,Er=_r*4,Pr=xr/Er;dr?Pr=tr.ceil(Pr):Pr=tr.max((Pr|0)-this._minBufferSize,0);var Ir=Pr*_r,Mr=tr.min(Ir*4,xr);if(Ir){for(var Dr=0;Dr<Ir;Dr+=_r)this._doProcessBlock(br,Dr);fr=br.splice(0,Ir),hr.sigBytes-=Mr}return new pr.init(fr,Mr)},clone:function(){var dr=cr.clone.call(this);return dr._data=this._data.clone(),dr},_minBufferSize:0});lr.Hasher=Sr.extend({cfg:cr.extend(),init:function(dr){this.cfg=this.cfg.extend(dr),this.reset()},reset:function(){Sr.reset.call(this),this._doReset()},update:function(dr){return this._append(dr),this._process(),this},finalize:function(dr){dr&&this._append(dr);var fr=this._doFinalize();return fr},blockSize:16,_createHelper:function(dr){return function(fr,hr){return new dr.init(hr).finalize(fr)}},_createHmacHelper:function(dr){return function(fr,hr){return new gr.HMAC.init(dr,hr).finalize(fr)}}});var gr=sr.algo={};return sr}(Math);return er})}(core)),core.exports}var x64Core={exports:{}},hasRequiredX64Core;function requireX64Core(){return hasRequiredX64Core||(hasRequiredX64Core=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(tr){var nr=er,or=nr.lib,ar=or.Base,ir=or.WordArray,sr=nr.x64={};sr.Word=ar.extend({init:function(lr,cr){this.high=lr,this.low=cr}}),sr.WordArray=ar.extend({init:function(lr,cr){lr=this.words=lr||[],cr!=tr?this.sigBytes=cr:this.sigBytes=lr.length*8},toX32:function(){for(var lr=this.words,cr=lr.length,pr=[],ur=0;ur<cr;ur++){var mr=lr[ur];pr.push(mr.high),pr.push(mr.low)}return ir.create(pr,this.sigBytes)},clone:function(){for(var lr=ar.clone.call(this),cr=lr.words=this.words.slice(0),pr=cr.length,ur=0;ur<pr;ur++)cr[ur]=cr[ur].clone();return lr}})}(),er})}(x64Core)),x64Core.exports}var libTypedarrays={exports:{}},hasRequiredLibTypedarrays;function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(){if(typeof ArrayBuffer=="function"){var tr=er,nr=tr.lib,or=nr.WordArray,ar=or.init,ir=or.init=function(sr){if(sr instanceof ArrayBuffer&&(sr=new Uint8Array(sr)),(sr instanceof Int8Array||typeof Uint8ClampedArray<"u"&&sr instanceof Uint8ClampedArray||sr instanceof Int16Array||sr instanceof Uint16Array||sr instanceof Int32Array||sr instanceof Uint32Array||sr instanceof Float32Array||sr instanceof Float64Array)&&(sr=new Uint8Array(sr.buffer,sr.byteOffset,sr.byteLength)),sr instanceof Uint8Array){for(var lr=sr.byteLength,cr=[],pr=0;pr<lr;pr++)cr[pr>>>2]|=sr[pr]<<24-pr%4*8;ar.call(this,cr,lr)}else ar.apply(this,arguments)};ir.prototype=or}}(),er.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.WordArray,ar=tr.enc;ar.Utf16=ar.Utf16BE={stringify:function(sr){for(var lr=sr.words,cr=sr.sigBytes,pr=[],ur=0;ur<cr;ur+=2){var mr=lr[ur>>>2]>>>16-ur%4*8&65535;pr.push(String.fromCharCode(mr))}return pr.join("")},parse:function(sr){for(var lr=sr.length,cr=[],pr=0;pr<lr;pr++)cr[pr>>>1]|=sr.charCodeAt(pr)<<16-pr%2*16;return or.create(cr,lr*2)}},ar.Utf16LE={stringify:function(sr){for(var lr=sr.words,cr=sr.sigBytes,pr=[],ur=0;ur<cr;ur+=2){var mr=ir(lr[ur>>>2]>>>16-ur%4*8&65535);pr.push(String.fromCharCode(mr))}return pr.join("")},parse:function(sr){for(var lr=sr.length,cr=[],pr=0;pr<lr;pr++)cr[pr>>>1]|=ir(sr.charCodeAt(pr)<<16-pr%2*16);return or.create(cr,lr*2)}};function ir(sr){return sr<<8&4278255360|sr>>>8&16711935}}(),er.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.WordArray,ar=tr.enc;ar.Base64={stringify:function(sr){var lr=sr.words,cr=sr.sigBytes,pr=this._map;sr.clamp();for(var ur=[],mr=0;mr<cr;mr+=3)for(var vr=lr[mr>>>2]>>>24-mr%4*8&255,yr=lr[mr+1>>>2]>>>24-(mr+1)%4*8&255,Sr=lr[mr+2>>>2]>>>24-(mr+2)%4*8&255,gr=vr<<16|yr<<8|Sr,dr=0;dr<4&&mr+dr*.75<cr;dr++)ur.push(pr.charAt(gr>>>6*(3-dr)&63));var fr=pr.charAt(64);if(fr)for(;ur.length%4;)ur.push(fr);return ur.join("")},parse:function(sr){var lr=sr.length,cr=this._map,pr=this._reverseMap;if(!pr){pr=this._reverseMap=[];for(var ur=0;ur<cr.length;ur++)pr[cr.charCodeAt(ur)]=ur}var mr=cr.charAt(64);if(mr){var vr=sr.indexOf(mr);vr!==-1&&(lr=vr)}return ir(sr,lr,pr)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function ir(sr,lr,cr){for(var pr=[],ur=0,mr=0;mr<lr;mr++)if(mr%4){var vr=cr[sr.charCodeAt(mr-1)]<<mr%4*2,yr=cr[sr.charCodeAt(mr)]>>>6-mr%4*2,Sr=vr|yr;pr[ur>>>2]|=Sr<<24-ur%4*8,ur++}return or.create(pr,ur)}}(),er.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.WordArray,ar=tr.enc;ar.Base64url={stringify:function(sr,lr=!0){var cr=sr.words,pr=sr.sigBytes,ur=lr?this._safe_map:this._map;sr.clamp();for(var mr=[],vr=0;vr<pr;vr+=3)for(var yr=cr[vr>>>2]>>>24-vr%4*8&255,Sr=cr[vr+1>>>2]>>>24-(vr+1)%4*8&255,gr=cr[vr+2>>>2]>>>24-(vr+2)%4*8&255,dr=yr<<16|Sr<<8|gr,fr=0;fr<4&&vr+fr*.75<pr;fr++)mr.push(ur.charAt(dr>>>6*(3-fr)&63));var hr=ur.charAt(64);if(hr)for(;mr.length%4;)mr.push(hr);return mr.join("")},parse:function(sr,lr=!0){var cr=sr.length,pr=lr?this._safe_map:this._map,ur=this._reverseMap;if(!ur){ur=this._reverseMap=[];for(var mr=0;mr<pr.length;mr++)ur[pr.charCodeAt(mr)]=mr}var vr=pr.charAt(64);if(vr){var yr=sr.indexOf(vr);yr!==-1&&(cr=yr)}return ir(sr,cr,ur)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function ir(sr,lr,cr){for(var pr=[],ur=0,mr=0;mr<lr;mr++)if(mr%4){var vr=cr[sr.charCodeAt(mr-1)]<<mr%4*2,yr=cr[sr.charCodeAt(mr)]>>>6-mr%4*2,Sr=vr|yr;pr[ur>>>2]|=Sr<<24-ur%4*8,ur++}return or.create(pr,ur)}}(),er.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(tr){var nr=er,or=nr.lib,ar=or.WordArray,ir=or.Hasher,sr=nr.algo,lr=[];(function(){for(var yr=0;yr<64;yr++)lr[yr]=tr.abs(tr.sin(yr+1))*4294967296|0})();var cr=sr.MD5=ir.extend({_doReset:function(){this._hash=new ar.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(yr,Sr){for(var gr=0;gr<16;gr++){var dr=Sr+gr,fr=yr[dr];yr[dr]=(fr<<8|fr>>>24)&16711935|(fr<<24|fr>>>8)&4278255360}var hr=this._hash.words,br=yr[Sr+0],xr=yr[Sr+1],_r=yr[Sr+2],Er=yr[Sr+3],Pr=yr[Sr+4],Ir=yr[Sr+5],Mr=yr[Sr+6],Dr=yr[Sr+7],Br=yr[Sr+8],Vr=yr[Sr+9],$r=yr[Sr+10],kr=yr[Sr+11],Tr=yr[Sr+12],Cr=yr[Sr+13],wr=yr[Sr+14],Or=yr[Sr+15],Ar=hr[0],Fr=hr[1],Nr=hr[2],Rr=hr[3];Ar=pr(Ar,Fr,Nr,Rr,br,7,lr[0]),Rr=pr(Rr,Ar,Fr,Nr,xr,12,lr[1]),Nr=pr(Nr,Rr,Ar,Fr,_r,17,lr[2]),Fr=pr(Fr,Nr,Rr,Ar,Er,22,lr[3]),Ar=pr(Ar,Fr,Nr,Rr,Pr,7,lr[4]),Rr=pr(Rr,Ar,Fr,Nr,Ir,12,lr[5]),Nr=pr(Nr,Rr,Ar,Fr,Mr,17,lr[6]),Fr=pr(Fr,Nr,Rr,Ar,Dr,22,lr[7]),Ar=pr(Ar,Fr,Nr,Rr,Br,7,lr[8]),Rr=pr(Rr,Ar,Fr,Nr,Vr,12,lr[9]),Nr=pr(Nr,Rr,Ar,Fr,$r,17,lr[10]),Fr=pr(Fr,Nr,Rr,Ar,kr,22,lr[11]),Ar=pr(Ar,Fr,Nr,Rr,Tr,7,lr[12]),Rr=pr(Rr,Ar,Fr,Nr,Cr,12,lr[13]),Nr=pr(Nr,Rr,Ar,Fr,wr,17,lr[14]),Fr=pr(Fr,Nr,Rr,Ar,Or,22,lr[15]),Ar=ur(Ar,Fr,Nr,Rr,xr,5,lr[16]),Rr=ur(Rr,Ar,Fr,Nr,Mr,9,lr[17]),Nr=ur(Nr,Rr,Ar,Fr,kr,14,lr[18]),Fr=ur(Fr,Nr,Rr,Ar,br,20,lr[19]),Ar=ur(Ar,Fr,Nr,Rr,Ir,5,lr[20]),Rr=ur(Rr,Ar,Fr,Nr,$r,9,lr[21]),Nr=ur(Nr,Rr,Ar,Fr,Or,14,lr[22]),Fr=ur(Fr,Nr,Rr,Ar,Pr,20,lr[23]),Ar=ur(Ar,Fr,Nr,Rr,Vr,5,lr[24]),Rr=ur(Rr,Ar,Fr,Nr,wr,9,lr[25]),Nr=ur(Nr,Rr,Ar,Fr,Er,14,lr[26]),Fr=ur(Fr,Nr,Rr,Ar,Br,20,lr[27]),Ar=ur(Ar,Fr,Nr,Rr,Cr,5,lr[28]),Rr=ur(Rr,Ar,Fr,Nr,_r,9,lr[29]),Nr=ur(Nr,Rr,Ar,Fr,Dr,14,lr[30]),Fr=ur(Fr,Nr,Rr,Ar,Tr,20,lr[31]),Ar=mr(Ar,Fr,Nr,Rr,Ir,4,lr[32]),Rr=mr(Rr,Ar,Fr,Nr,Br,11,lr[33]),Nr=mr(Nr,Rr,Ar,Fr,kr,16,lr[34]),Fr=mr(Fr,Nr,Rr,Ar,wr,23,lr[35]),Ar=mr(Ar,Fr,Nr,Rr,xr,4,lr[36]),Rr=mr(Rr,Ar,Fr,Nr,Pr,11,lr[37]),Nr=mr(Nr,Rr,Ar,Fr,Dr,16,lr[38]),Fr=mr(Fr,Nr,Rr,Ar,$r,23,lr[39]),Ar=mr(Ar,Fr,Nr,Rr,Cr,4,lr[40]),Rr=mr(Rr,Ar,Fr,Nr,br,11,lr[41]),Nr=mr(Nr,Rr,Ar,Fr,Er,16,lr[42]),Fr=mr(Fr,Nr,Rr,Ar,Mr,23,lr[43]),Ar=mr(Ar,Fr,Nr,Rr,Vr,4,lr[44]),Rr=mr(Rr,Ar,Fr,Nr,Tr,11,lr[45]),Nr=mr(Nr,Rr,Ar,Fr,Or,16,lr[46]),Fr=mr(Fr,Nr,Rr,Ar,_r,23,lr[47]),Ar=vr(Ar,Fr,Nr,Rr,br,6,lr[48]),Rr=vr(Rr,Ar,Fr,Nr,Dr,10,lr[49]),Nr=vr(Nr,Rr,Ar,Fr,wr,15,lr[50]),Fr=vr(Fr,Nr,Rr,Ar,Ir,21,lr[51]),Ar=vr(Ar,Fr,Nr,Rr,Tr,6,lr[52]),Rr=vr(Rr,Ar,Fr,Nr,Er,10,lr[53]),Nr=vr(Nr,Rr,Ar,Fr,$r,15,lr[54]),Fr=vr(Fr,Nr,Rr,Ar,xr,21,lr[55]),Ar=vr(Ar,Fr,Nr,Rr,Br,6,lr[56]),Rr=vr(Rr,Ar,Fr,Nr,Or,10,lr[57]),Nr=vr(Nr,Rr,Ar,Fr,Mr,15,lr[58]),Fr=vr(Fr,Nr,Rr,Ar,Cr,21,lr[59]),Ar=vr(Ar,Fr,Nr,Rr,Pr,6,lr[60]),Rr=vr(Rr,Ar,Fr,Nr,kr,10,lr[61]),Nr=vr(Nr,Rr,Ar,Fr,_r,15,lr[62]),Fr=vr(Fr,Nr,Rr,Ar,Vr,21,lr[63]),hr[0]=hr[0]+Ar|0,hr[1]=hr[1]+Fr|0,hr[2]=hr[2]+Nr|0,hr[3]=hr[3]+Rr|0},_doFinalize:function(){var yr=this._data,Sr=yr.words,gr=this._nDataBytes*8,dr=yr.sigBytes*8;Sr[dr>>>5]|=128<<24-dr%32;var fr=tr.floor(gr/4294967296),hr=gr;Sr[(dr+64>>>9<<4)+15]=(fr<<8|fr>>>24)&16711935|(fr<<24|fr>>>8)&4278255360,Sr[(dr+64>>>9<<4)+14]=(hr<<8|hr>>>24)&16711935|(hr<<24|hr>>>8)&4278255360,yr.sigBytes=(Sr.length+1)*4,this._process();for(var br=this._hash,xr=br.words,_r=0;_r<4;_r++){var Er=xr[_r];xr[_r]=(Er<<8|Er>>>24)&16711935|(Er<<24|Er>>>8)&4278255360}return br},clone:function(){var yr=ir.clone.call(this);return yr._hash=this._hash.clone(),yr}});function pr(yr,Sr,gr,dr,fr,hr,br){var xr=yr+(Sr&gr|~Sr&dr)+fr+br;return(xr<<hr|xr>>>32-hr)+Sr}function ur(yr,Sr,gr,dr,fr,hr,br){var xr=yr+(Sr&dr|gr&~dr)+fr+br;return(xr<<hr|xr>>>32-hr)+Sr}function mr(yr,Sr,gr,dr,fr,hr,br){var xr=yr+(Sr^gr^dr)+fr+br;return(xr<<hr|xr>>>32-hr)+Sr}function vr(yr,Sr,gr,dr,fr,hr,br){var xr=yr+(gr^(Sr|~dr))+fr+br;return(xr<<hr|xr>>>32-hr)+Sr}nr.MD5=ir._createHelper(cr),nr.HmacMD5=ir._createHmacHelper(cr)}(Math),er.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.WordArray,ar=nr.Hasher,ir=tr.algo,sr=[],lr=ir.SHA1=ar.extend({_doReset:function(){this._hash=new or.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(cr,pr){for(var ur=this._hash.words,mr=ur[0],vr=ur[1],yr=ur[2],Sr=ur[3],gr=ur[4],dr=0;dr<80;dr++){if(dr<16)sr[dr]=cr[pr+dr]|0;else{var fr=sr[dr-3]^sr[dr-8]^sr[dr-14]^sr[dr-16];sr[dr]=fr<<1|fr>>>31}var hr=(mr<<5|mr>>>27)+gr+sr[dr];dr<20?hr+=(vr&yr|~vr&Sr)+1518500249:dr<40?hr+=(vr^yr^Sr)+1859775393:dr<60?hr+=(vr&yr|vr&Sr|yr&Sr)-1894007588:hr+=(vr^yr^Sr)-899497514,gr=Sr,Sr=yr,yr=vr<<30|vr>>>2,vr=mr,mr=hr}ur[0]=ur[0]+mr|0,ur[1]=ur[1]+vr|0,ur[2]=ur[2]+yr|0,ur[3]=ur[3]+Sr|0,ur[4]=ur[4]+gr|0},_doFinalize:function(){var cr=this._data,pr=cr.words,ur=this._nDataBytes*8,mr=cr.sigBytes*8;return pr[mr>>>5]|=128<<24-mr%32,pr[(mr+64>>>9<<4)+14]=Math.floor(ur/4294967296),pr[(mr+64>>>9<<4)+15]=ur,cr.sigBytes=pr.length*4,this._process(),this._hash},clone:function(){var cr=ar.clone.call(this);return cr._hash=this._hash.clone(),cr}});tr.SHA1=ar._createHelper(lr),tr.HmacSHA1=ar._createHmacHelper(lr)}(),er.SHA1})}(sha1)),sha1.exports}var sha256={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){return function(tr){var nr=er,or=nr.lib,ar=or.WordArray,ir=or.Hasher,sr=nr.algo,lr=[],cr=[];(function(){function mr(gr){for(var dr=tr.sqrt(gr),fr=2;fr<=dr;fr++)if(!(gr%fr))return!1;return!0}function vr(gr){return(gr-(gr|0))*4294967296|0}for(var yr=2,Sr=0;Sr<64;)mr(yr)&&(Sr<8&&(lr[Sr]=vr(tr.pow(yr,1/2))),cr[Sr]=vr(tr.pow(yr,1/3)),Sr++),yr++})();var pr=[],ur=sr.SHA256=ir.extend({_doReset:function(){this._hash=new ar.init(lr.slice(0))},_doProcessBlock:function(mr,vr){for(var yr=this._hash.words,Sr=yr[0],gr=yr[1],dr=yr[2],fr=yr[3],hr=yr[4],br=yr[5],xr=yr[6],_r=yr[7],Er=0;Er<64;Er++){if(Er<16)pr[Er]=mr[vr+Er]|0;else{var Pr=pr[Er-15],Ir=(Pr<<25|Pr>>>7)^(Pr<<14|Pr>>>18)^Pr>>>3,Mr=pr[Er-2],Dr=(Mr<<15|Mr>>>17)^(Mr<<13|Mr>>>19)^Mr>>>10;pr[Er]=Ir+pr[Er-7]+Dr+pr[Er-16]}var Br=hr&br^~hr&xr,Vr=Sr&gr^Sr&dr^gr&dr,$r=(Sr<<30|Sr>>>2)^(Sr<<19|Sr>>>13)^(Sr<<10|Sr>>>22),kr=(hr<<26|hr>>>6)^(hr<<21|hr>>>11)^(hr<<7|hr>>>25),Tr=_r+kr+Br+cr[Er]+pr[Er],Cr=$r+Vr;_r=xr,xr=br,br=hr,hr=fr+Tr|0,fr=dr,dr=gr,gr=Sr,Sr=Tr+Cr|0}yr[0]=yr[0]+Sr|0,yr[1]=yr[1]+gr|0,yr[2]=yr[2]+dr|0,yr[3]=yr[3]+fr|0,yr[4]=yr[4]+hr|0,yr[5]=yr[5]+br|0,yr[6]=yr[6]+xr|0,yr[7]=yr[7]+_r|0},_doFinalize:function(){var mr=this._data,vr=mr.words,yr=this._nDataBytes*8,Sr=mr.sigBytes*8;return vr[Sr>>>5]|=128<<24-Sr%32,vr[(Sr+64>>>9<<4)+14]=tr.floor(yr/4294967296),vr[(Sr+64>>>9<<4)+15]=yr,mr.sigBytes=vr.length*4,this._process(),this._hash},clone:function(){var mr=ir.clone.call(this);return mr._hash=this._hash.clone(),mr}});nr.SHA256=ir._createHelper(ur),nr.HmacSHA256=ir._createHmacHelper(ur)}(Math),er.SHA256})}(sha256)),sha256.exports}var sha224={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function(ct,Fn){(function(er,tr,nr){ct.exports=tr(requireCore(),requireSha256())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.WordArray,ar=tr.algo,ir=ar.SHA256,sr=ar.SHA224=ir.extend({_doReset:function(){this._hash=new or.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var lr=ir._doFinalize.call(this);return lr.sigBytes-=4,lr}});tr.SHA224=ir._createHelper(sr),tr.HmacSHA224=ir._createHmacHelper(sr)}(),er.SHA224})}(sha224)),sha224.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function(ct,Fn){(function(er,tr,nr){ct.exports=tr(requireCore(),requireX64Core())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.lib,or=nr.Hasher,ar=tr.x64,ir=ar.Word,sr=ar.WordArray,lr=tr.algo;function cr(){return ir.create.apply(ir,arguments)}var pr=[cr(1116352408,3609767458),cr(1899447441,602891725),cr(3049323471,3964484399),cr(3921009573,2173295548),cr(961987163,4081628472),cr(1508970993,3053834265),cr(2453635748,2937671579),cr(2870763221,3664609560),cr(3624381080,2734883394),cr(310598401,1164996542),cr(607225278,1323610764),cr(1426881987,3590304994),cr(1925078388,4068182383),cr(2162078206,991336113),cr(2614888103,633803317),cr(3248222580,3479774868),cr(3835390401,2666613458),cr(4022224774,944711139),cr(264347078,2341262773),cr(604807628,2007800933),cr(770255983,1495990901),cr(1249150122,1856431235),cr(1555081692,3175218132),cr(1996064986,2198950837),cr(2554220882,3999719339),cr(2821834349,766784016),cr(2952996808,2566594879),cr(3210313671,3203337956),cr(3336571891,1034457026),cr(3584528711,2466948901),cr(113926993,3758326383),cr(338241895,168717936),cr(666307205,1188179964),cr(773529912,1546045734),cr(1294757372,1522805485),cr(1396182291,2643833823),cr(1695183700,2343527390),cr(1986661051,1014477480),cr(2177026350,1206759142),cr(2456956037,344077627),cr(2730485921,1290863460),cr(2820302411,3158454273),cr(3259730800,3505952657),cr(3345764771,106217008),cr(3516065817,3606008344),cr(3600352804,1432725776),cr(4094571909,1467031594),cr(275423344,851169720),cr(430227734,3100823752),cr(506948616,1363258195),cr(659060556,3750685593),cr(883997877,3785050280),cr(958139571,3318307427),cr(1322822218,3812723403),cr(1537002063,2003034995),cr(1747873779,3602036899),cr(1955562222,1575990012),cr(2024104815,1125592928),cr(2227730452,2716904306),cr(2361852424,442776044),cr(2428436474,593698344),cr(2756734187,3733110249),cr(3204031479,2999351573),cr(3329325298,3815920427),cr(3391569614,3928383900),cr(3515267271,566280711),cr(3940187606,3454069534),cr(4118630271,4000239992),cr(116418474,1914138554),cr(174292421,2731055270),cr(289380356,3203993006),cr(460393269,320620315),cr(685471733,587496836),cr(852142971,1086792851),cr(1017036298,365543100),cr(1126000580,2618297676),cr(1288033470,3409855158),cr(1501505948,4234509866),cr(1607167915,987167468),cr(1816402316,1246189591)],ur=[];(function(){for(var vr=0;vr<80;vr++)ur[vr]=cr()})();var mr=lr.SHA512=or.extend({_doReset:function(){this._hash=new sr.init([new ir.init(1779033703,4089235720),new ir.init(3144134277,2227873595),new ir.init(1013904242,4271175723),new ir.init(2773480762,1595750129),new ir.init(1359893119,2917565137),new ir.init(2600822924,725511199),new ir.init(528734635,4215389547),new ir.init(1541459225,327033209)])},_doProcessBlock:function(vr,yr){for(var Sr=this._hash.words,gr=Sr[0],dr=Sr[1],fr=Sr[2],hr=Sr[3],br=Sr[4],xr=Sr[5],_r=Sr[6],Er=Sr[7],Pr=gr.high,Ir=gr.low,Mr=dr.high,Dr=dr.low,Br=fr.high,Vr=fr.low,$r=hr.high,kr=hr.low,Tr=br.high,Cr=br.low,wr=xr.high,Or=xr.low,Ar=_r.high,Fr=_r.low,Nr=Er.high,Rr=Er.low,Lr=Pr,qr=Ir,zr=Mr,Kr=Dr,Jr=Br,Zr=Vr,Yr=$r,Gr=kr,jr=Tr,Hr=Cr,fi=wr,Qr=Or,di=Ar,pi=Fr,Si=Nr,Wr=Rr,Xr=0;Xr<80;Xr++){var hi,gi,bi=ur[Xr];if(Xr<16)gi=bi.high=vr[yr+Xr*2]|0,hi=bi.low=vr[yr+Xr*2+1]|0;else{var Pi=ur[Xr-15],Ci=Pi.high,Bi=Pi.low,Ri=(Ci>>>1|Bi<<31)^(Ci>>>8|Bi<<24)^Ci>>>7,ji=(Bi>>>1|Ci<<31)^(Bi>>>8|Ci<<24)^(Bi>>>7|Ci<<25),qi=ur[Xr-2],Ui=qi.high,Yi=qi.low,Qi=(Ui>>>19|Yi<<13)^(Ui<<3|Yi>>>29)^Ui>>>6,na=(Yi>>>19|Ui<<13)^(Yi<<3|Ui>>>29)^(Yi>>>6|Ui<<26),ea=ur[Xr-7],la=ea.high,ua=ea.low,fa=ur[Xr-16],ya=fa.high,ba=fa.low;hi=ji+ua,gi=Ri+la+(hi>>>0<ji>>>0?1:0),hi=hi+na,gi=gi+Qi+(hi>>>0<na>>>0?1:0),hi=hi+ba,gi=gi+ya+(hi>>>0<ba>>>0?1:0),bi.high=gi,bi.low=hi}var Ma=jr&fi^~jr&di,ka=Hr&Qr^~Hr&pi,Sa=Lr&zr^Lr&Jr^zr&Jr,Aa=qr&Kr^qr&Zr^Kr&Zr,Ta=(Lr>>>28|qr<<4)^(Lr<<30|qr>>>2)^(Lr<<25|qr>>>7),ki=(qr>>>28|Lr<<4)^(qr<<30|Lr>>>2)^(qr<<25|Lr>>>7),Di=(jr>>>14|Hr<<18)^(jr>>>18|Hr<<14)^(jr<<23|Hr>>>9),Mi=(Hr>>>14|jr<<18)^(Hr>>>18|jr<<14)^(Hr<<23|jr>>>9),Ni=pr[Xr],Li=Ni.high,$i=Ni.low,Vi=Wr+Mi,wi=Si+Di+(Vi>>>0<Wr>>>0?1:0),Vi=Vi+ka,wi=wi+Ma+(Vi>>>0<ka>>>0?1:0),Vi=Vi+$i,wi=wi+Li+(Vi>>>0<$i>>>0?1:0),Vi=Vi+hi,wi=wi+gi+(Vi>>>0<hi>>>0?1:0),yi=ki+Aa,Ti=Ta+Sa+(yi>>>0<ki>>>0?1:0);Si=di,Wr=pi,di=fi,pi=Qr,fi=jr,Qr=Hr,Hr=Gr+Vi|0,jr=Yr+wi+(Hr>>>0<Gr>>>0?1:0)|0,Yr=Jr,Gr=Zr,Jr=zr,Zr=Kr,zr=Lr,Kr=qr,qr=Vi+yi|0,Lr=wi+Ti+(qr>>>0<Vi>>>0?1:0)|0}Ir=gr.low=Ir+qr,gr.high=Pr+Lr+(Ir>>>0<qr>>>0?1:0),Dr=dr.low=Dr+Kr,dr.high=Mr+zr+(Dr>>>0<Kr>>>0?1:0),Vr=fr.low=Vr+Zr,fr.high=Br+Jr+(Vr>>>0<Zr>>>0?1:0),kr=hr.low=kr+Gr,hr.high=$r+Yr+(kr>>>0<Gr>>>0?1:0),Cr=br.low=Cr+Hr,br.high=Tr+jr+(Cr>>>0<Hr>>>0?1:0),Or=xr.low=Or+Qr,xr.high=wr+fi+(Or>>>0<Qr>>>0?1:0),Fr=_r.low=Fr+pi,_r.high=Ar+di+(Fr>>>0<pi>>>0?1:0),Rr=Er.low=Rr+Wr,Er.high=Nr+Si+(Rr>>>0<Wr>>>0?1:0)},_doFinalize:function(){var vr=this._data,yr=vr.words,Sr=this._nDataBytes*8,gr=vr.sigBytes*8;yr[gr>>>5]|=128<<24-gr%32,yr[(gr+128>>>10<<5)+30]=Math.floor(Sr/4294967296),yr[(gr+128>>>10<<5)+31]=Sr,vr.sigBytes=yr.length*4,this._process();var dr=this._hash.toX32();return dr},clone:function(){var vr=or.clone.call(this);return vr._hash=this._hash.clone(),vr},blockSize:1024/32});tr.SHA512=or._createHelper(mr),tr.HmacSHA512=or._createHmacHelper(mr)}(),er.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function(ct,Fn){(function(er,tr,nr){ct.exports=tr(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(er){return function(){var tr=er,nr=tr.x64,or=nr.Word,ar=nr.WordArray,ir=tr.algo,sr=ir.SHA512,lr=ir.SHA384=sr.extend({_doReset:function(){this._hash=new ar.init([new or.init(3418070365,3238371032),new or.init(1654270250,914150663),new or.init(2438529370,812702999),new or.init(355462360,4144912697),new or.init(1731405415,4290775857),new or.init(2394180231,1750603025),new or.init(3675008525,1694076839),new or.init(1203062813,3204075428)])},_doFinalize:function(){var cr=sr._doFinalize.call(this);return cr.sigBytes-=16,cr}});tr.SHA384=sr._createHelper(lr),tr.HmacSHA384=sr._createHmacHelper(lr)}(),er.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function(ct,Fn){(function(er,tr,nr){ct.exports=tr(requireCore(),requireX64Core())})(commonjsGlobal,function(er){return function(tr){var nr=er,or=nr.lib,ar=or.WordArray,ir=or.Hasher,sr=nr.x64,lr=sr.Word,cr=nr.algo,pr=[],ur=[],mr=[];(function(){for(var Sr=1,gr=0,dr=0;dr<24;dr++){pr[Sr+5*gr]=(dr+1)*(dr+2)/2%64;var fr=gr%5,hr=(2*Sr+3*gr)%5;Sr=fr,gr=hr}for(var Sr=0;Sr<5;Sr++)for(var gr=0;gr<5;gr++)ur[Sr+5*gr]=gr+(2*Sr+3*gr)%5*5;for(var br=1,xr=0;xr<24;xr++){for(var _r=0,Er=0,Pr=0;Pr<7;Pr++){if(br&1){var Ir=(1<<Pr)-1;Ir<32?Er^=1<<Ir:_r^=1<<Ir-32}br&128?br=br<<1^113:br<<=1}mr[xr]=lr.create(_r,Er)}})();var vr=[];(function(){for(var Sr=0;Sr<25;Sr++)vr[Sr]=lr.create()})();var yr=cr.SHA3=ir.extend({cfg:ir.cfg.extend({outputLength:512}),_doReset:function(){for(var Sr=this._state=[],gr=0;gr<25;gr++)Sr[gr]=new lr.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(Sr,gr){for(var dr=this._state,fr=this.blockSize/2,hr=0;hr<fr;hr++){var br=Sr[gr+2*hr],xr=Sr[gr+2*hr+1];br=(br<<8|br>>>24)&16711935|(br<<24|br>>>8)&4278255360,xr=(xr<<8|xr>>>24)&16711935|(xr<<24|xr>>>8)&4278255360;var _r=dr[hr];_r.high^=xr,_r.low^=br}for(var Er=0;Er<24;Er++){for(var Pr=0;Pr<5;Pr++){for(var Ir=0,Mr=0,Dr=0;Dr<5;Dr++){var _r=dr[Pr+5*Dr];Ir^=_r.high,Mr^=_r.low}var Br=vr[Pr];Br.high=Ir,Br.low=Mr}for(var Pr=0;Pr<5;Pr++)for(var Vr=vr[(Pr+4)%5],$r=vr[(Pr+1)%5],kr=$r.high,Tr=$r.low,Ir=Vr.high^(kr<<1|Tr>>>31),Mr=Vr.low^(Tr<<1|kr>>>31),Dr=0;Dr<5;Dr++){var _r=dr[Pr+5*Dr];_r.high^=Ir,_r.low^=Mr}for(var Cr=1;Cr<25;Cr++){var Ir,Mr,_r=dr[Cr],wr=_r.high,Or=_r.low,Ar=pr[Cr];Ar<32?(Ir=wr<<Ar|Or>>>32-Ar,Mr=Or<<Ar|wr>>>32-Ar):(Ir=Or<<Ar-32|wr>>>64-Ar,Mr=wr<<Ar-32|Or>>>64-Ar);var Fr=vr[ur[Cr]];Fr.high=Ir,Fr.low=Mr}var Nr=vr[0],Rr=dr[0];Nr.high=Rr.high,Nr.low=Rr.low;for(var Pr=0;Pr<5;Pr++)for(var Dr=0;Dr<5;Dr++){var Cr=Pr+5*Dr,_r=dr[Cr],Lr=vr[Cr],qr=vr[(Pr+1)%5+5*Dr],zr=vr[(Pr+2)%5+5*Dr];_r.high=Lr.high^~qr.high&zr.high,_r.low=Lr.low^~qr.low&zr.low}var _r=dr[0],Kr=mr[Er];_r.high^=Kr.high,_r.low^=Kr.low}},_doFinalize:function(){var Sr=this._data,gr=Sr.words;this._nDataBytes*8;var dr=Sr.sigBytes*8,fr=this.blockSize*32;gr[dr>>>5]|=1<<24-dr%32,gr[(tr.ceil((dr+1)/fr)*fr>>>5)-1]|=128,Sr.sigBytes=gr.length*4,this._process();for(var hr=this._state,br=this.cfg.outputLength/8,xr=br/8,_r=[],Er=0;Er<xr;Er++){var Pr=hr[Er],Ir=Pr.high,Mr=Pr.low;Ir=(Ir<<8|Ir>>>24)&16711935|(Ir<<24|Ir>>>8)&4278255360,Mr=(Mr<<8|Mr>>>24)&16711935|(Mr<<24|Mr>>>8)&4278255360,_r.push(Mr),_r.push(Ir)}return new ar.init(_r,br)},clone:function(){for(var Sr=ir.clone.call(this),gr=Sr._state=this._state.slice(0),dr=0;dr<25;dr++)gr[dr]=gr[dr].clone();return Sr}});nr.SHA3=ir._createHelper(yr),nr.HmacSHA3=ir._createHmacHelper(yr)}(Math),er.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function(ct,Fn){(function(er,tr){ct.exports=tr(requireCore())})(commonjsGlobal,function(er){/** @preserve
|
|
65
65
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
66
66
|
|