@ecan-bi/datav 1.4.30 → 1.4.32
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 +11 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.4.
|
|
1
|
+
/*! @ecan-bi/datav@1.4.32 */
|
|
2
2
|
(function(Rr,Jr){typeof exports=="object"&&typeof module<"u"?Jr(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Jr):(Rr=typeof globalThis<"u"?globalThis:Rr||self,Jr(Rr["@ecan/bi-datav"]={},Rr.Vue,Rr["echarts/core"],Rr.ResizeDetector,Rr.AntDesignVue,null,null,Rr.LodashEs,Rr.Dayjs,Rr.Axios,Rr.Mitt,null,null,null,Rr["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,Rr["echarts/renderers"],Rr["echarts/charts"],Rr["echarts/components"],null,Rr.Echarts,null,null,Rr.Xlsx,Rr.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,style$3,style$4,style$5,locale,style$6,style$7,style$8,style$9,renderers,charts,components$1,style$a,echarts,style$b,style$c,xlsx,big_js){var Rr,Jr,hi,di;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const f in c)if(f!=="default"){const h=Object.getOwnPropertyDescriptor(c,f);Object.defineProperty(u,f,h.get?h:{enumerable:!0,get:()=>c[f]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function f(d){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[d].apply(c.value,v)}}function h(){const d=Object.create(null);return METHOD_NAMES.forEach(v=>{d[v]=f(v)}),d}return h()}function useAutoresize(c,u,f){let h=null;vue.watch([f,c,u],([d,v,p],m,g)=>{d&&v&&p&&(h=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(d,h)),g(()=>{h&&d&&resizeDetector.removeListener(d,h)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,f){const h=vue.inject(LOADING_OPTIONS_KEY,{}),d=vue.computed(()=>({...vue.unref(h),...f==null?void 0:f.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(d.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const f in c)isOn(f)||(u[f]=c[f]);return u}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(c,{attrs:u,listeners:f}){const h=vue.shallowRef(),d=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:x,loading:pn,loadingOptions:b}=vue.toRefs(c),re=vue.computed(()=>v.value||c.option||Object.create(null)),_=vue.computed(()=>c.theme||vue.unref(p)||{}),J=vue.computed(()=>c.initOptions||vue.unref(m)||{}),En=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),gn=vue.computed(()=>omitOn(u));function w(zn){if(d.value||!h.value)return;const Vn=d.value=core$1.init(h.value,_.value,J.value);c.group&&(Vn.group=c.group);let Yn=f;Yn||(Yn={},Object.keys(u).filter(Kn=>Kn.indexOf("on")===0&&Kn.length>2).forEach(Kn=>{const Hn=Kn.charAt(2).toLowerCase()+Kn.slice(3);Yn[Hn]=u[Kn]})),Object.keys(Yn).forEach(Kn=>{const Hn=Yn[Kn];Hn&&(Kn.indexOf("zr:")===0?Vn.getZr().on(Kn.slice(3).toLowerCase(),Hn):Vn.on(Kn.toLowerCase(),Hn))});function Gn(){if(Vn&&!Vn.isDisposed())try{Vn.resize()}catch(Kn){if(Kn.message==="Cannot read property 'get' of undefined")return;throw Kn}}function Un(){Vn.setOption(zn||re.value,En.value)}y.value?vue.nextTick(()=>{Gn(),Un()}):Un()}function hn(zn,Vn){c.manualUpdate&&(v.value=zn),d.value?d.value.setOption(zn,Vn||{}):w(zn)}function vn(){d.value&&(d.value.dispose(),d.value=void 0)}let Pn=null;vue.watch(x,zn=>{typeof Pn=="function"&&(Pn(),Pn=null),zn||(Pn=vue.watch(()=>c.option,Vn=>{Vn&&(d.value?d.value.setOption(Vn,En.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([_,J],()=>{vn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&d.value&&(d.value.group=c.group)});const Fn=usePublicAPI(d,w);return useLoading(d,pn,b),useAutoresize(d,y,h),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(vn),{chart:d,root:h,setOption:hn,nonEventAttrs:gn,...Fn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var f=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),f&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,f){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(f,255)*255}}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*(6*f):f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c,u,f){var h,d,v;if(c=bound01(c,360),u=bound01(u,100),f=bound01(f,100),u===0)d=f,v=f,h=f;else{var p=f<.5?f*(1+u):f+u-f*u,m=2*f-p;h=hue2rgb(m,p,c+1/3),d=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:h*255,g:d*255,b:v*255}}function rgbToHsv(c,u,f){c=bound01(c,255),u=bound01(u,255),f=bound01(f,255);var h=Math.max(c,u,f),d=Math.min(c,u,f),v=0,p=h,m=h-d,g=h===0?0:m/h;if(h===d)v=0;else{switch(h){case c:v=(u-f)/m+(u<f?6:0);break;case u:v=(f-c)/m+2;break;case f:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,f){c=bound01(c,360)*6,u=bound01(u,100),f=bound01(f,100);var h=Math.floor(c),d=c-h,v=f*(1-u),p=f*(1-d*u),m=f*(1-(1-d)*u),g=h%6,y=[f,p,v,v,m,f][g],x=[m,f,f,p,v,v][g],pn=[v,v,m,f,f,p][g];return{r:y*255,g:x*255,b:pn*255}}function rgbToHex(c,u,f,h){var d=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(f).toString(16))];return h&&d[0].startsWith(d[0].charAt(1))&&d[1].startsWith(d[1].charAt(1))&&d[2].startsWith(d[2].charAt(1))?d[0].charAt(0)+d[1].charAt(0)+d[2].charAt(0):d.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,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(c){var u={r:0,g:0,b:0},f=1,h=null,d=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(h=convertToPercentage(c.s),d=convertToPercentage(c.v),u=hsvToRgb(c.h,h,d),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(h=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,h,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(f=c.a)),f=boundAlpha(f),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:f}}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(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f=matchers.rgb.exec(c);return f?{r:f[1],g:f[2],b:f[3]}:(f=matchers.rgba.exec(c),f?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=matchers.hsl.exec(c),f?{h:f[1],s:f[2],l:f[3]}:(f=matchers.hsla.exec(c),f?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=matchers.hsv.exec(c),f?{h:f[1],s:f[2],v:f[3]}:(f=matchers.hsva.exec(c),f?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=matchers.hex8.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),a:convertHexToDecimal(f[4]),format:u?"name":"hex8"}:(f=matchers.hex6.exec(c),f?{r:parseIntFromHex(f[1]),g:parseIntFromHex(f[2]),b:parseIntFromHex(f[3]),format:u?"name":"hex"}:(f=matchers.hex4.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),a:convertHexToDecimal(f[4]+f[4]),format:u?"name":"hex8"}:(f=matchers.hex3.exec(c),f?{r:parseIntFromHex(f[1]+f[1]),g:parseIntFromHex(f[2]+f[2]),b:parseIntFromHex(f[3]+f[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}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(c){var u=c.r,f=c.g,h=c.b,d=rgbToHsv(u,f,h);return{h:d.h*360,s:d.s,v:d.v}}function toHex(c){var u=c.r,f=c.g,h=c.b;return"#".concat(rgbToHex(u,f,h,!1))}function mix(c,u,f){var h=f/100,d={r:(u.r-c.r)*h+c.r,g:(u.g-c.g)*h+c.g,b:(u.b-c.b)*h+c.b};return d}function getHue(c,u,f){var h;return Math.round(c.h)>=60&&Math.round(c.h)<=240?h=f?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:h=f?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,h<0?h+=360:h>=360&&(h-=360),h}function getSaturation(c,u,f){if(c.h===0&&c.s===0)return c.s;var h;return f?h=c.s-saturationStep*u:u===darkColorCount?h=c.s+saturationStep:h=c.s+saturationStep2*u,h>1&&(h=1),f&&u===lightColorCount&&h>.1&&(h=.1),h<.06&&(h=.06),Number(h.toFixed(2))}function getValue(c,u,f){var h;return f?h=c.v+brightnessStep1*u:h=c.v-brightnessStep2*u,h>1&&(h=1),Number(h.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=[],h=inputToRGB(c),d=lightColorCount;d>0;d-=1){var v=toHsv(h),p=toHex(inputToRGB({h:getHue(v,d,!0),s:getSaturation(v,d,!0),v:getValue(v,d,!0)}));f.push(p)}f.push(toHex(h));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(h),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));f.push(y)}return u.theme==="dark"?darkColorMap.map(function(x){var pn=x.index,b=x.opacity,re=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(f[pn]),b*100));return re}):f}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(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var f=u.prepend===!0?"prepend":"append",h=u.container!==void 0?u.container:document.querySelector("head"),d=containers.indexOf(h);d===-1&&(d=containers.push(h)-1,styleElements[d]={});var v;return styleElements[d]!==void 0&&styleElements[d][f]!==void 0?v=styleElements[d][f]:(v=styleElements[d][f]=createStyleElement(),f==="prepend"?h.insertBefore(v,h.childNodes[0]):h.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$8(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?Object(arguments[u]):{},h=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(h=h.concat(Object.getOwnPropertySymbols(f).filter(function(d){return Object.getOwnPropertyDescriptor(f,d).enumerable}))),h.forEach(function(d){_defineProperty$8(c,d,f[d])})}return c}function _defineProperty$8(c,u,f){return u in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,f){return f?vue.h(c.tag,_objectSpread$8({key:u},f,c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))})):vue.h(c.tag,_objectSpread$8({key:u},c.attrs),(c.children||[]).map(function(h,d){return generate(h,"".concat(u,"-").concat(c.tag,"-").concat(d))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -99,7 +99,7 @@ version: 2.9.0
|
|
|
99
99
|
`,f+="-----END PUBLIC KEY-----",f},u.hasPublicKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(f){return f=f||{},f.hasOwnProperty("n")&&f.hasOwnProperty("e")&&f.hasOwnProperty("d")&&f.hasOwnProperty("p")&&f.hasOwnProperty("q")&&f.hasOwnProperty("dmp1")&&f.hasOwnProperty("dmq1")&&f.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(f){this.n=f.n,this.e=f.e,f.hasOwnProperty("d")&&(this.d=f.d,this.p=f.p,this.q=f.q,this.dmp1=f.dmp1,this.dmq1=f.dmq1,this.coeff=f.coeff)},u}(RSAKey),_a,version=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,f,h){try{return hex2b64(this.getKey().sign(u,f,h))}catch{return!1}},c.prototype.verify=function(u,f,h){try{return this.getKey().verify(u,b64tohex(f),h)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u);let h="";switch(typeof c){case"string":h=CryptoJS.enc.Utf8.parse(c);break;case"object":h=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:h=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(h,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const f=CryptoJS.enc.Utf8.parse(u),h=CryptoJS.AES.decrypt(c,f,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(h).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const f=["/diagram","/dataview"].map(h=>`^(.*?)${h}(/|$)`);for(const h of f)if(new RegExp(h).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:f,params:h,method:d}=c;u==="form"?["get","delete"].includes(d)?c.params=getEncryptParam(h,"string"):c.data=getEncryptParam(f,"string"):["get","delete"].includes(d)?c.params=getEncryptParam(h,"string"):c.data=getEncryptParam(f)}function getEncryptParam(c,u){let f=c||{};if(u==="string"){f="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];f+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const d=rsaEncrypt(aesKey);return{c:aesEncrypt(f,aesKey),p:d}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var f;(f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),f=new FormData,h={};for(const v of u){const p=v[0],m=v[1];m instanceof Blob?f.append(p,m):h[p]=m}const d=getEncryptParam(h,"json");return typeof d=="object"&&(f.append("c",d.c),f.append("p",d.p)),f}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var f;if((f=window==null?void 0:window.config)!=null&&f.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const h=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(h)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,f,h;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((f=c==null?void 0:c.data)==null?void 0:f.msg)||((h=c==null?void 0:c.data)==null?void 0:h.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const runCode=(c,u)=>{const f={dayjs,...u};let h="";const d=[];for(const m in f)h+=`${m},`,d.push(f[m]);h=h.replace(/,$/,"");const v=`function (${h}){return ${c}}`;let p;try{p=Function(`"use strict";return (${v})`)()(...d)}catch{return c}return p},useVariablesInText=(c="",{textData:u,codeData:f}={},{useNewline:h=!1,useSpace:d=!1}={})=>{const p={...window.config||{},...u},m=c.match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let g=0;g<m.length;g++){const y=m[g];let x=y.slice(1,-1).trim();const pn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,b=x.match(pn);for(let re=0;re<b.length;re++){const _=b[re],J=p[_];J!=null&&typeof J!="function"&&(x=x.replace(_,J))}(/\(.*\)/g.test(x)||/[+/\\*]/g.test(x))&&(x=runCode(x,f)),c=c.replace(y,x)}return h&&(c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>")),d&&(c=c==null?void 0:c.replace(/\s{2,}?/g," ")),c},useRequestData=(c,u,f=()=>{})=>{const{requestUrl:h,requestMethod:d,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:x="",getModel:pn,requestParamsMode:b,customRequestParams:re,dataSetParam:_,requestType:J,dataType:En}=c,{pageMode:gn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:w}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:hn,touchEventId:vn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:Pn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Gn=>{}})||{},Fn=pn||Pn,zn=useVariablesInText(h),Vn=async(Gn={})=>{var In;if(En!=="request"&&Yn){clearInterval(Yn);return}if(!zn||!d||!v)return;let Un={};for(const Dn of p){const{key:er,value:Bn}=Dn;if((Bn==null?void 0:Bn.id)==="PARENT"&&(Bn!=null&&Bn.prop)){const Xn=(((In=window.config)==null?void 0:In.record)||{})[Bn.prop];if(Xn){const Wn=Xn[Bn.propKey||"value"];Wn&&(["date","range"].some(ir=>lowerCaseIncludes(Xn==null?void 0:Xn.type,ir))?Un[er]=vue.unref(Wn).format(Xn.format||"YYYY-MM-DD"):Un[er]=vue.unref(Wn))}continue}if(typeof Bn=="object"&&Bn!=null&&Bn.id){let Jn={};const{id:Xn,prop:Wn,propKey:nr,operate:ir}=Bn;let ar=!1;try{JSON.parse(Xn),ar=!0}catch{ar=!1}Xn==="THIS"?Jn=Fn(vue.unref(vn))||{}:Jn=Fn(Xn)||{};const or=vue.unref(Jn[Wn]);let tr=null;if(["date","range"].some(cr=>lowerCaseIncludes(Jn==null?void 0:Jn.type,cr))){const{value:cr,type:vr,mode:dr}=ir||{};if(cr&&vr&&dr)switch(vr){case"add":tr=vue.unref(or).add(cr,dr);break;case"minus":tr=vue.unref(or).subtract(cr,dr);break}tr==null&&(tr=vue.unref(or)),tr=(tr==null?void 0:tr.format((nr==null?void 0:nr.trim())||Jn.format))||""}else if(Object.prototype.toString.call(or)==="[object Object]")nr?tr=or[nr]:tr=Wn?or[Wn]:or;else if(lowerCaseIncludes(Jn==null?void 0:Jn.type,"select")&&vue.unref(or)&&Wn&&Array.isArray(vue.unref(or)))tr=vue.unref(or).map(cr=>Object.prototype.hasOwnProperty.call(cr,Wn)?cr[Wn]:cr);else if(ar){const cr=JSON.parse(Xn);console.log(cr,"urlvalue"),tr=cr.value}else tr=or;Un[er]=tr}else typeof Bn=="object"&&Bn.id===null&&J===1?(console.log(Bn.propKey,"value.propKey"),Un[er]=Bn.propKey):typeof Bn=="string"&&(Un[er]=useVariablesInText(Bn))}if(J===1){console.log(Un,"_params");const Dn=Object.entries(Un);_.param=_.param.map((er,Bn)=>({...er,paramKey:Dn[Bn][0],defaultValue:Dn[Bn][1]||""})),Un=_}if(b==="2"&&re!=="{}"){const Dn=JSON.parse(re);Kn(Dn),Dn&&(Un=Dn)}function Kn(Dn){const er={...Un,...getPageUrlParams(w)};if(Array.isArray(Dn))Dn.forEach((Bn,Jn)=>{if(typeof Bn=="string"){const Xn=Bn.match(/\${(.+?)\}/g);if(Xn!=null&&Xn.length){const Wn=Xn[0].slice(2,-1);Wn&&er[Wn]?Dn[Jn]=er[Wn]:Dn[Jn]=""}}else Kn(Bn)});else if(Object.prototype.toString.call(Dn)==="[object Object]")for(const Bn in Dn)if(typeof Dn[Bn]=="string"){const Jn=Dn[Bn].match(/\${(.+?)\}/g);if(Jn!=null&&Jn.length){const Xn=Jn[0].slice(2,-1);Xn&&er[Xn]?Dn[Bn]=er[Xn]:Dn[Bn]=""}}else Kn(Dn[Bn])}Un={...getPageUrlParams(w),...Gn,...Un};let Hn="";const Qn=Object.keys(Un),Zn=Qn.length-1,Rn=Qn.length;Qn.forEach((Dn,er)=>{let Bn=Un[Dn];Object.prototype.toString.call(Bn)==="[object Object]"&&(Bn=JSON.stringify(Bn)),er===0?Rn!==1?Hn+=`?${Dn}=${Bn}&`:Hn+=`?${Dn}=${Bn}`:er===Zn?Hn+=`${Dn}=${Bn}`:Hn+=`${Dn}=${Bn}&`}),zn.includes("?")&&(Hn=Hn.replace("?","&"));function qn(Dn){var er;if(J===1)return{Authentication:(er=window==null?void 0:window.config)==null?void 0:er.indicatorToken};if(typeof Dn=="string"){const Bn=JSON.parse(Dn),Jn=getPageUrlParams(w);if(Object.prototype.toString.call(Bn)==="[object Object]"){for(const Xn in Bn)if(typeof Bn[Xn]=="string"){const Wn=Bn[Xn].match(/\${(.+?)\}/g);if(Wn!=null&&Wn.length){const nr=Wn[0].slice(2,-1);nr&&Jn[nr]?Bn[Xn]=Jn[nr]:Bn[Xn]=""}}}return Bn}else return Dn}try{const Dn=["get","head"].includes(d),er={};let Bn=Dn?zn+Hn:zn;Un.dataSqlId&&!Bn.includes("dataSqlId")&&(Bn+=`${Bn.includes("?")?"&":"?"}dataSqlId=${Un.dataSqlId}`),Object.prototype.hasOwnProperty.call(Un,"signal")?er.signal=Un.signal:window.controller&&(er.signal=window.controller.signal);const Jn=await request({baseURL:vue.unref(hn)||x||"",url:Bn,method:d,headers:v?qn(v):{},data:Dn?{}:Un,...er});return f(Jn),Jn}catch(Dn){console.error(Dn)}},Yn=vue.unref(gn)!=="design"&&g&&(y||y===void 0)&&setInterval(Vn,m*1e3);return vue.onUnmounted(()=>{clearInterval(Yn)}),Vn},useTransformChartDataByAttrKey=(c=[],u,f=!1)=>{let{name:h="name",types:d=[]}=u||{};h=(h==null?void 0:h.trim())||h;const v=new Set,p=new Map,m=c.length,g=d.length;if(m===1&&!f){const pn=[];for(let re=0;re<g;re++){const _=d[re],{label:J,value:En}=_,gn={...c[0],value:c[0][En]};v.add(J),pn.push(gn)}const b=c[0][h]||"";p.set(b,pn)}else for(let pn=0;pn<m;pn++){const b=c[pn],re=b[h];v.add(re);for(let _=0;_<g;_++){const J=d[_],{label:En,value:gn}=J,w={...b,value:b[gn]||0};if(p.has(En)){const hn=p.get(En);hn.push(w),p.set(En,hn)}else p.set(En,[w])}}const y=Array.from(v),x=[];for(const[pn,b]of p)x.push({name:pn,data:b});return{dimensions:y,dataset:x}},useImagePath=(c,u=!1)=>{var h;if(!c)return c;let f="";return c!=null&&c.includes("://")?f=c:f=((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+c,u&&(f=`url(${f})`),f},usePageUrl=(c,u)=>{const f=`${BASE_URL}/preview?pageId=${u}`,h=`${BASE_URL}/${u}`;return c==="preview"?f:h},useValueFormatter=(c,u)=>{var d;if(c==null)return u;const f=c.match(/\{.*\}/g);if(f==null||f.length===0)return u;const h=f.length;for(let v=0;v<h;v++){const p=f[v];if(p==null||p==="")break;let m=(d=p.slice(1,-1))==null?void 0:d.trim();m=m==null?void 0:m.replace(/value/g,u);try{let g=m;(/\(.*\)/g.test(m)||/[+/\\*]/g.test(m))&&(g=runCode(m)),c=c.replace(p,g)}catch{c=c.replace(p,m)}}return c};function e(c,u){var f={};for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&u.indexOf(h)<0&&(f[h]=c[h]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function"){var d=0;for(h=Object.getOwnPropertySymbols(c);d<h.length;d++)u.indexOf(h[d])<0&&Object.prototype.propertyIsEnumerable.call(c,h[d])&&(f[h[d]]=c[h[d]])}return f}const n=()=>{},o=Object.assign,r=Array.isArray,i=c=>typeof c=="function",a=c=>typeof c=="symbol";let l;const s=()=>l||(l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S(c){const u=c&&c.__v_raw;return u?S(u):c}function A(c){return!(!c||c.__v_isRef!==!0)}function j(c){return A(c)?c.value:c}new Set(Object.getOwnPropertyNames(Symbol).filter(c=>c!=="arguments"&&c!=="caller").map(c=>Symbol[c]).filter(a));const O=[];function C(c,...u){if(process.env.NODE_ENV==="production")return;const f=O.length?O[O.length-1].component:null,h=f&&f.appContext.config.warnHandler,d=function(){let v=O[O.length-1];if(!v)return[];const p=[];for(;v;){const m=p[0];m&&m.vnode===v?m.recurseCount++:p.push({vnode:v,recurseCount:0});const g=v.component&&v.component.parent;v=g&&g.vnode}return p}();if(h)$(h,f,11,[c+u.join(""),f&&f.proxy,d.map(({vnode:v})=>`at <${oe(f,v.type)}>`).join(`
|
|
100
100
|
`),d]);else{const v=[`[Vue warn]: ${c}`,...u];d.length&&v.push(`
|
|
101
101
|
`,...function(p){const m=[];return p.forEach((g,y)=>{m.push(...y===0?[]:[`
|
|
102
|
-
`],...function({vnode:x,recurseCount:pn}){const b=pn>0?`... (${pn} recursive calls)`:"",re=!!x.component&&x.component.parent==null,_=` at <${oe(x.component,x.type,re)}`,J=">"+b;return x.props?[_,...L(x.props),J]:[_+J]}(g))}),m}(d)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(h=>{u.push(...T(h,c[h]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={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 $(c,u,f,h){let d;try{d=h?c(...h):c()}catch(v){(function(p,m,g,y=!0){const x=m?m.vnode:null;if(m){let pn=m.parent;const b=m.proxy,re=process.env.NODE_ENV!=="production"?N[g]:g;for(;pn;){const J=pn.ec;if(J){for(let En=0;En<J.length;En++)if(J[En](p,b,re)===!1)return}pn=pn.parent}const _=m.appContext.config.errorHandler;if(_)return void $(_,null,10,[p,b,re])}(function(pn,b,re,_=!0){if(process.env.NODE_ENV!=="production"){const En=N[b];if(re&&(J=re,O.push(J)),C("Unhandled error"+(En?` during execution of ${En}`:"")),re&&O.pop(),_)throw pn;console.error(pn)}else console.error(pn);var J})(p,g,x,y)})(v,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z=Promise.resolve();function R(c){D.length&&D.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?D.push(c):D.splice(function(u){let f=E+1,h=D.length;for(;f<h;){const d=f+h>>>1,v=D[d],p=G(v);p<u||p===u&&v.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z.then(W))}const G=c=>c.id==null?1/0:c.id,P=(c,u)=>{const f=G(c)-G(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function W(c){M=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),D.sort(P);const u=process.env.NODE_ENV!=="production"?f=>Y(c,f):n;try{for(E=0;E<D.length;E++){const f=D[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,D.length=0,function(f){if(I.length){const h=[...new Set(I)];if(I.length=0,F)return void F.push(...h);for(F=h,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((d,v)=>G(d)-G(v)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&Y(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(D.length||I.length)&&W(c)}}function Y(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const h=u.ownerInstance,d=h&&ne(h.type);return C(`Maximum recursive updates exceeded${d?` in component <${d}>`:""}. 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}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(h=>{u&&(h.render=u,K(h.type).render=u),h.renderCache=[],h.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const h=[...f.instances];for(const v of h){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const v of h)H.delete(K(v.type))},r(d)?I.push(...d):F&&F.includes(d,d.allowRecurse?V+1:V)||I.push(d),U();var d})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(h){console.error(h),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let h=ne(u);if(!h&&u.__file){const d=u.__file.match(/([^/\\]+)\.\w+$/);d&&(h=d[1])}if(!h&&c&&c.parent){const d=v=>{for(const p in v)if(v[p]===u)return p};h=d(c.components||c.parent.type.components)||d(c.appContext.components)}return h?te(h):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,h="millisecond",d="second",v="minute",p="hour",m="day",g="week",y="month",x="quarter",pn="year",b="date",re="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|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,En={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(Kn){var Hn=["th","st","nd","rd"],Qn=Kn%100;return"["+Kn+(Hn[(Qn-20)%10]||Hn[Qn]||Hn[0])+"]"}},gn=function(Kn,Hn,Qn){var Zn=String(Kn);return!Zn||Zn.length>=Hn?Kn:""+Array(Hn+1-Zn.length).join(Qn)+Kn},w={s:gn,z:function(Kn){var Hn=-Kn.utcOffset(),Qn=Math.abs(Hn),Zn=Math.floor(Qn/60),Rn=Qn%60;return(Hn<=0?"+":"-")+gn(Zn,2,"0")+":"+gn(Rn,2,"0")},m:function Kn(Hn,Qn){if(Hn.date()<Qn.date())return-Kn(Qn,Hn);var Zn=12*(Qn.year()-Hn.year())+(Qn.month()-Hn.month()),Rn=Hn.clone().add(Zn,y),qn=Qn-Rn<0,In=Hn.clone().add(Zn+(qn?-1:1),y);return+(-(Zn+(Qn-Rn)/(qn?Rn-In:In-Rn))||0)},a:function(Kn){return Kn<0?Math.ceil(Kn)||0:Math.floor(Kn)},p:function(Kn){return{M:y,y:pn,w:g,d:m,D:b,h:p,m:v,s:d,ms:h,Q:x}[Kn]||String(Kn||"").toLowerCase().replace(/s$/,"")},u:function(Kn){return Kn===void 0}},hn="en",vn={};vn[hn]=En;var Pn="$isDayjsObject",Fn=function(Kn){return Kn instanceof Gn||!(!Kn||!Kn[Pn])},zn=function Kn(Hn,Qn,Zn){var Rn;if(!Hn)return hn;if(typeof Hn=="string"){var qn=Hn.toLowerCase();vn[qn]&&(Rn=qn),Qn&&(vn[qn]=Qn,Rn=qn);var In=Hn.split("-");if(!Rn&&In.length>1)return Kn(In[0])}else{var Dn=Hn.name;vn[Dn]=Hn,Rn=Dn}return!Zn&&Rn&&(hn=Rn),Rn||!Zn&&hn},Vn=function(Kn,Hn){if(Fn(Kn))return Kn.clone();var Qn=typeof Hn=="object"?Hn:{};return Qn.date=Kn,Qn.args=arguments,new Gn(Qn)},Yn=w;Yn.l=zn,Yn.i=Fn,Yn.w=function(Kn,Hn){return Vn(Kn,{locale:Hn.$L,utc:Hn.$u,x:Hn.$x,$offset:Hn.$offset})};var Gn=function(){function Kn(Qn){this.$L=zn(Qn.locale,null,!0),this.parse(Qn),this.$x=this.$x||Qn.x||{},this[Pn]=!0}var Hn=Kn.prototype;return Hn.parse=function(Qn){this.$d=function(Zn){var Rn=Zn.date,qn=Zn.utc;if(Rn===null)return new Date(NaN);if(Yn.u(Rn))return new Date;if(Rn instanceof Date)return new Date(Rn);if(typeof Rn=="string"&&!/Z$/i.test(Rn)){var In=Rn.match(_);if(In){var Dn=In[2]-1||0,er=(In[7]||"0").substring(0,3);return qn?new Date(Date.UTC(In[1],Dn,In[3]||1,In[4]||0,In[5]||0,In[6]||0,er)):new Date(In[1],Dn,In[3]||1,In[4]||0,In[5]||0,In[6]||0,er)}}return new Date(Rn)}(Qn),this.init()},Hn.init=function(){var Qn=this.$d;this.$y=Qn.getFullYear(),this.$M=Qn.getMonth(),this.$D=Qn.getDate(),this.$W=Qn.getDay(),this.$H=Qn.getHours(),this.$m=Qn.getMinutes(),this.$s=Qn.getSeconds(),this.$ms=Qn.getMilliseconds()},Hn.$utils=function(){return Yn},Hn.isValid=function(){return this.$d.toString()!==re},Hn.isSame=function(Qn,Zn){var Rn=Vn(Qn);return this.startOf(Zn)<=Rn&&Rn<=this.endOf(Zn)},Hn.isAfter=function(Qn,Zn){return Vn(Qn)<this.startOf(Zn)},Hn.isBefore=function(Qn,Zn){return this.endOf(Zn)<Vn(Qn)},Hn.$g=function(Qn,Zn,Rn){return Yn.u(Qn)?this[Zn]:this.set(Rn,Qn)},Hn.unix=function(){return Math.floor(this.valueOf()/1e3)},Hn.valueOf=function(){return this.$d.getTime()},Hn.startOf=function(Qn,Zn){var Rn=this,qn=!!Yn.u(Zn)||Zn,In=Yn.p(Qn),Dn=function(ar,or){var tr=Yn.w(Rn.$u?Date.UTC(Rn.$y,or,ar):new Date(Rn.$y,or,ar),Rn);return qn?tr:tr.endOf(m)},er=function(ar,or){return Yn.w(Rn.toDate()[ar].apply(Rn.toDate("s"),(qn?[0,0,0,0]:[23,59,59,999]).slice(or)),Rn)},Bn=this.$W,Jn=this.$M,Xn=this.$D,Wn="set"+(this.$u?"UTC":"");switch(In){case pn:return qn?Dn(1,0):Dn(31,11);case y:return qn?Dn(1,Jn):Dn(0,Jn+1);case g:var nr=this.$locale().weekStart||0,ir=(Bn<nr?Bn+7:Bn)-nr;return Dn(qn?Xn-ir:Xn+(6-ir),Jn);case m:case b:return er(Wn+"Hours",0);case p:return er(Wn+"Minutes",1);case v:return er(Wn+"Seconds",2);case d:return er(Wn+"Milliseconds",3);default:return this.clone()}},Hn.endOf=function(Qn){return this.startOf(Qn,!1)},Hn.$set=function(Qn,Zn){var Rn,qn=Yn.p(Qn),In="set"+(this.$u?"UTC":""),Dn=(Rn={},Rn[m]=In+"Date",Rn[b]=In+"Date",Rn[y]=In+"Month",Rn[pn]=In+"FullYear",Rn[p]=In+"Hours",Rn[v]=In+"Minutes",Rn[d]=In+"Seconds",Rn[h]=In+"Milliseconds",Rn)[qn],er=qn===m?this.$D+(Zn-this.$W):Zn;if(qn===y||qn===pn){var Bn=this.clone().set(b,1);Bn.$d[Dn](er),Bn.init(),this.$d=Bn.set(b,Math.min(this.$D,Bn.daysInMonth())).$d}else Dn&&this.$d[Dn](er);return this.init(),this},Hn.set=function(Qn,Zn){return this.clone().$set(Qn,Zn)},Hn.get=function(Qn){return this[Yn.p(Qn)]()},Hn.add=function(Qn,Zn){var Rn,qn=this;Qn=Number(Qn);var In=Yn.p(Zn),Dn=function(Jn){var Xn=Vn(qn);return Yn.w(Xn.date(Xn.date()+Math.round(Jn*Qn)),qn)};if(In===y)return this.set(y,this.$M+Qn);if(In===pn)return this.set(pn,this.$y+Qn);if(In===m)return Dn(1);if(In===g)return Dn(7);var er=(Rn={},Rn[v]=u,Rn[p]=f,Rn[d]=c,Rn)[In]||1,Bn=this.$d.getTime()+Qn*er;return Yn.w(Bn,this)},Hn.subtract=function(Qn,Zn){return this.add(-1*Qn,Zn)},Hn.format=function(Qn){var Zn=this,Rn=this.$locale();if(!this.isValid())return Rn.invalidDate||re;var qn=Qn||"YYYY-MM-DDTHH:mm:ssZ",In=Yn.z(this),Dn=this.$H,er=this.$m,Bn=this.$M,Jn=Rn.weekdays,Xn=Rn.months,Wn=Rn.meridiem,nr=function(or,tr,sr,cr){return or&&(or[tr]||or(Zn,qn))||sr[tr].slice(0,cr)},ir=function(or){return Yn.s(Dn%12||12,or,"0")},ar=Wn||function(or,tr,sr){var cr=or<12?"AM":"PM";return sr?cr.toLowerCase():cr};return qn.replace(J,function(or,tr){return tr||function(sr){switch(sr){case"YY":return String(Zn.$y).slice(-2);case"YYYY":return Yn.s(Zn.$y,4,"0");case"M":return Bn+1;case"MM":return Yn.s(Bn+1,2,"0");case"MMM":return nr(Rn.monthsShort,Bn,Xn,3);case"MMMM":return nr(Xn,Bn);case"D":return Zn.$D;case"DD":return Yn.s(Zn.$D,2,"0");case"d":return String(Zn.$W);case"dd":return nr(Rn.weekdaysMin,Zn.$W,Jn,2);case"ddd":return nr(Rn.weekdaysShort,Zn.$W,Jn,3);case"dddd":return Jn[Zn.$W];case"H":return String(Dn);case"HH":return Yn.s(Dn,2,"0");case"h":return ir(1);case"hh":return ir(2);case"a":return ar(Dn,er,!0);case"A":return ar(Dn,er,!1);case"m":return String(er);case"mm":return Yn.s(er,2,"0");case"s":return String(Zn.$s);case"ss":return Yn.s(Zn.$s,2,"0");case"SSS":return Yn.s(Zn.$ms,3,"0");case"Z":return In}return null}(or)||In.replace(":","")})},Hn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Hn.diff=function(Qn,Zn,Rn){var qn,In=this,Dn=Yn.p(Zn),er=Vn(Qn),Bn=(er.utcOffset()-this.utcOffset())*u,Jn=this-er,Xn=function(){return Yn.m(In,er)};switch(Dn){case pn:qn=Xn()/12;break;case y:qn=Xn();break;case x:qn=Xn()/3;break;case g:qn=(Jn-Bn)/6048e5;break;case m:qn=(Jn-Bn)/864e5;break;case p:qn=Jn/f;break;case v:qn=Jn/u;break;case d:qn=Jn/c;break;default:qn=Jn}return Rn?qn:Yn.a(qn)},Hn.daysInMonth=function(){return this.endOf(y).$D},Hn.$locale=function(){return vn[this.$L]},Hn.locale=function(Qn,Zn){if(!Qn)return this.$L;var Rn=this.clone(),qn=zn(Qn,Zn,!0);return qn&&(Rn.$L=qn),Rn},Hn.clone=function(){return Yn.w(this.$d,this)},Hn.toDate=function(){return new Date(this.valueOf())},Hn.toJSON=function(){return this.isValid()?this.toISOString():null},Hn.toISOString=function(){return this.$d.toISOString()},Hn.toString=function(){return this.$d.toUTCString()},Kn}(),Un=Gn.prototype;return Vn.prototype=Un,[["$ms",h],["$s",d],["$m",v],["$H",p],["$W",m],["$M",y],["$y",pn],["$D",b]].forEach(function(Kn){Un[Kn[1]]=function(Hn){return this.$g(Hn,Kn[0],Kn[1])}}),Vn.extend=function(Kn,Hn){return Kn.$i||(Kn(Hn,Gn,Vn),Kn.$i=!0),Vn},Vn.locale=zn,Vn.isDayjs=Fn,Vn.unix=function(Kn){return Vn(1e3*Kn)},Vn.en=vn[hn],Vn.Ls=vn,Vn.p={},Vn}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),h=u[be];try{u[be]=void 0;var d=!0}catch{}var v=me.call(u);return d&&(f?u[be]=h:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function je(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var _e,Oe=fe["__core-js_shared__"],Ce=(_e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,Me=$e.toString,De=ke.hasOwnProperty,Ee=RegExp("^"+Me.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(je(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(h,d){return h==null?void 0:h[d]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Ge=/^(?:0|[1-9]\d*)$/;function Pe(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Ge.test(c))&&c>-1&&c%1==0&&c<u}function We(c,u){return c===u||c!=c&&u!=u}var Ye=Object.prototype.hasOwnProperty;function He(c,u,f){var h=c[u];Ye.call(c,u)&&We(h,f)&&(f!==void 0||u in c)||function(d,v,p){v=="__proto__"&&Ue?Ue(d,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):d[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),h=!f&&et(c),d=!f&&!h&&rt(c),v=!f&&!h&&!d&&ft(c),p=f||h||d||v,m=p?function(x,pn){for(var b=-1,re=Array(x);++b<x;)re[b]=pn(b);return re}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||d&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Pe(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!je(u)?ht(c):function(f){if(!qe(f))return mt(f);var h=[];for(var d in Object(f))bt.call(f,d)&&d!="constructor"&&h.push(d);return h}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}function At(c,u){for(var f=c.length;f--;)if(We(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var jt=Array.prototype.splice;function _t(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}_t.prototype.clear=function(){this.__data__=[],this.size=0},_t.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():jt.call(u,f,1),--this.size,!0)},_t.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},_t.prototype.has=function(c){return At(this.__data__,c)>-1},_t.prototype.set=function(c,u){var f=this.__data__,h=At(f,c);return h<0?(++this.size,f.push([c,u])):f[h][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,h,d=c.__data__;return((h=typeof(f=u))=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null)?d[typeof u=="string"?"string":"hash"]:d.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||_t),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),h=f.size;return f.set(c,u),this.size+=f.size==h?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new _t(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new _t,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof _t){var h=f.__data__;if(!Ot||h.length<199)return h.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(h)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Mt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var h=-1,d=u==null?0:u.length,v=0,p=[];++h<d;){var m=u[h];f(m,h,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Dt(c){return function(u,f,h){var d=f(u);return Se(u)?d:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(d,h(u))}(c,gt,Mt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Gt="[object DataView]",Pt=Te(Et),Wt=Te(Ot),Yt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Gt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,h=f?Te(f):"";if(h)switch(h){case Pt:return Gt;case Wt:return Vt;case Yt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var h,d,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.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(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,v;case"[object Symbol]":return h=c,en?Object(en.call(h)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,h,d,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(b){var re=b.length,_=new b.constructor(re);return re&&typeof b[0]=="string"&&qt.call(b,"index")&&(_.index=b.index,_.input=b.input),_}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!d)p=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};p=tn(c,g)}}v||(v=new Nt);var x=v.get(c);if(x)return x;v.set(c,p),an(c)?c.forEach(function(b){p.add(dn(b,u,f,b,c,v))}):on(c)&&c.forEach(function(b,re){p.set(re,dn(b,u,f,re,c,v))});var pn=m?void 0:Dt(c);return function(b,re){for(var _=-1,J=b==null?0:b.length;++_<J&&re(b[_],_,b)!==!1;);}(pn||c,function(b,re){pn&&(b=c[re=b]),He(p,re,dn(b,u,f,re,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let h=0;h<f;h++){const d=u[h];if(typeof d=="string"&&c.toLocaleLowerCase().includes(d.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType;else{const{calcWays:f=[],dateCalcTypes:h=[],activeKey:d,componentId:v=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:pn}=m;let b="";const{pageMode:re="",componentList:_=[]}=(g==null?void 0:g.graphicConfig)||{};let J=null,En=null;if(re==="design"){const gn=_==null?void 0:_.find(Vn=>Vn.id===pn);if(!gn)return[];const{interval:w,intervalUnit:hn,startTime:vn,endTime:Pn,operate:Fn,useCurrentTime:zn}=gn||{};if(zn&&(J=ce().subtract(w,hn),En=ce()),vn&&(J=ce(vn)),Pn&&(En=ce(Pn)),Fn){const{type:Vn,value:Yn,mode:Gn}=Fn;switch(Vn){case"add":J=J&&J.add(Yn,Gn),En=En&&En.add(Yn,Gn);break;case"minus":J=J&&J.subtract(Yn,Gn),En=En&&En.subtract(Yn,Gn)}}}else{const gn=An(pn)||{};j(gn.startTime)&&(J=ce(j(gn.startTime))),j(gn.endTime)&&(En=ce(j(gn.endTime)))}return J&&En&&(b=`${y==="before"?"-":""}${En.diff(J,x.toLowerCase())+1}`),b?[b]:[]})({around:p[1],unit:h[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},_n=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(h=>{if(h.join&&h.conditions){const d=!h.conditions.some(v=>v.join&&v.conditions);h.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const vn=kn(c);vn&&(u.sort=vn)}const{label:f,name:h,location:d,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:pn,formula:b,conditions:re,aggregate:_,distinct:J,dimByCount:En,dataTo:gn}=c;let w;if(re&&(w=_n(re)),g==="COMPONENT"){const vn={};return Nn(vn,x),{label:f.trim(),columnName:h,show:v,calcType:g,componentAlias:pn,componentValue:vn.fieldValue||null}}const hn={label:f.trim(),columnName:h,location:d,show:v,calcType:gn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:_,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(hn.calcType="AGGREGATE",hn.distinct=!!J,hn.typeGuid=En),Object.assign(Object.assign({},hn),{builtInCalcWay:pn});{const vn=pn.split("-");if((vn==null?void 0:vn.length)===3){let Pn=vn[0];return vn[2]==="before"&&vn[0]!=="0"&&(Pn=`-${vn[0]}`),Object.assign(Object.assign({},hn),{calcWays:[Pn],dateCalcTypes:[vn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(_=>_.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...v,...p,...m,...g,...y],pn=[];for(const _ of x){const J=bn((_==null?void 0:_.conditions)||[]);if(J!=null&&J.length){const En=J.filter(gn=>(gn==null?void 0:gn.dataType)==="component").map(gn=>{const w={};return gn!=null&&gn.dateFormat&&(w.format=gn.dateFormat),gn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=gn.modelKey,w.modelKey=gn.modelKey,w.prop=gn.prop),Object.assign({conditionKey:gn.fieldName,conditionLabel:gn.fieldName,conditionName:gn.fieldName,conditionValueType:gn.fieldType,id:gn.componentId,keyName:gn.fieldValue,rule:gn.rule,notGlobal:!0,indexCode:gn.indexCode,typeGuid:gn.typeGuid,indexCodeNum:gn.indexCodeNum},w)});if(En!=null&&En.length)for(const gn of En)pn.find(w=>w.keyName===gn.keyName)||pn.push(gn)}}const b=pn.length,re=u;for(let _=0;_<b;_++){const J=pn[_];if((J==null?void 0:J.conditionKey)==="parentCode")continue;const{id:En,keyName:gn,prop:w,format:hn,modelKey:vn,dataType:Pn="component",customValue:Fn}=J,zn=Ln(J);Nn(zn,En,{prop:w,dateFormat:hn,modelKey:vn,keyName:gn}),Pn===""&&(zn.fieldValue=Fn||""),re.push(zn)}for(let _=re.length-1;_>=0;_--){const J=re[_];J.globalCondition||bn(re).find(En=>En.alias===J.alias&&En.globalCondition)&&re.splice(_,1)}return re};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:pn,dataType:b="component"}=c;let re=f||u;re&&p&&(re+=`-${p}`);let _=m;return _==="NONE"&&(_=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(re=c.modelKey,re&&p&&(re+=`-${p}`),_=m),{rule:_,label:h,fieldName:d,fieldValue:"",valueType:v,alias:re,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:pn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:h,prop:d,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:p,modelKey:v,keyName:h}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:h="",dateFormat:d="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},x=v||p;if(u==="PARENT"&&x&&h){const w=window.config.record;let hn=h,vn=d;const Pn=h.match(/\{(.+?)\}/g);if(Pn!=null&&Pn.length){const Fn=Pn[0].slice(1,-1).trim();hn=h.replace(Pn[0],""),vn=Fn,c.dateFormat=vn}if(w&&w[x]){const Fn=j(w[x][hn]);ce.isDayjs(Fn)?c.fieldValue=Fn.format(vn||"YYYY-MM-DD"):c.fieldValue=Fn}return}const pn=An(u)||{},{value:b,format:re="YYYY-MM-DD",type:_="",useCurrentTime:J,RECORD:En}=pn||{},gn=d||re;if(yn(pn.type,"date")){let w;if(w=J?b?j(b):ce():j(b),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(gn),c.dateFormat=gn}else if(_==="ecanRangePicker"){let w=h;if(!h){const vn=p&&p.split("-");vn!=null&&vn.length&&(w=vn[vn.length-1])}if(!w)return;let hn=null;if(j(pn[w])&&(hn=ce(j(pn[w]))),m&&g&&y){if(m==="rangeValue"){if(pn.startTime&&pn.endTime){const vn=j(pn.endTime).diff(j(pn.startTime),g)+1;switch(y){case"add":hn=hn&&hn.add(vn,g);break;case"minus":hn=hn&&hn.subtract(vn,g)}}}else if(!isNaN(+m))switch(y){case"add":hn=hn&&hn.add(m,g);break;case"minus":hn=hn&&hn.subtract(m,g)}}if(hn&&(c.fieldValue=hn==null?void 0:hn.format(gn)),w==="rangeValue"&&pn.startTime&&pn.endTime){const vn=function(Pn){const Fn=Pn.split("-");let zn="";if(Fn!=null&&Fn.length)switch(Fn[Fn.length-1]){case"YYYY":zn="year";break;case"MM":zn="month";break;case"DD":zn="day"}return zn}(gn);vn&&(c.fieldValue=j(pn.endTime).diff(j(pn.startTime),vn)+1)}c.dateFormat=gn}else yn(_,xn)?c.fieldValue=v&&En?En[v]:!v&&En?En.value:j(b):c.fieldValue=j(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let h="",d=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(d=g.customOrderColumns),h=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:h,customOrderColumns:d}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const v=An(d)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){h=m.value.toUpperCase();break}}return h&&(f={label:c.label,columnName:c.name,order:h,type:"NORMAL"}),f},Mn=(c,u={})=>{var f,h,d,v,p,m,g,y,x,pn;const{graphicConfig:b,type:re,globalModel:_,isGroupTable:J=!1}=c;_&&(wn=_);const En=yn(re,"pivottable");let gn,{source:w,dataViewId:hn,plugin:vn="1",layer:Pn,chartType:Fn,classificationList:zn=[],rowHeaderList:Vn=[],dimensionList:Yn=[],seriesList:Gn=[],leftAxisList:Un=[],rightAxisList:Kn=[],queryColumnList:Hn=[],indicators:Qn=[],controlList:Zn=[],formFields:Rn={},variableList:qn=[],variableConditions:In=[],idxLibMode:Dn,preview:er=!1,edvDataSetId:Bn}=b||{},Jn=[];if((b==null?void 0:b.pageMode)==="design"?(Jn=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(lr=>{const ur={};if(mn(lr,"globalCondition")||lr.join||(ur.globalCondition=!0),!lr.join){const fr=lr.rule||"EQUAL";ur.rule=fr==="NONE"?"EQUAL":fr}return Object.assign(Object.assign({},lr),ur)}),In!=null&&In.length&&(Jn=Jn.concat(In))):(Jn=Cn(b),qn!=null&&qn.length&&(Jn=Jn.concat(function(lr){const ur=[];if(lr!=null&&lr.length){for(const fr of lr)if(fr.variableName){const mr={variateName:fr.variableName,globalCondition:!1,valueType:fr.variableType,alias:fr.keyName||""};Nn(mr,fr.id,{dateFormat:fr.format,prop:fr.dateTypeValue,keyName:fr.keyName,operateType:fr.operateType,operateMode:fr.operateMode,operateValue:fr.operateValue}),fr.dataType===""&&(mr.fieldValue=fr.variableValue),fr.format&&(mr.dateFormat=fr.format),fr.label&&(mr.label=fr.label),ur.push(mr)}}return ur}(qn)))),Jn==null?void 0:Jn.length){const lr=Jn.filter(fr=>fr.globalCondition),ur=Jn.filter(fr=>!fr.globalCondition);(lr==null?void 0:lr.length)>1&&(Jn=[{join:"&&",conditions:lr},...ur])}Jn!=null&&Jn.length&&(Jn=_n(Jn,"1")),Pn==null&&(Pn=yn(re,["table","card"])||yn(re,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(re,["select","checkbox","radio"])?"3":"2");const Xn=[];let Wn,nr="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(re)||(zn==null?void 0:zn.length)===1)){const lr=zn.length;for(let ur=0;ur<lr;ur++){const fr=zn[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,dateFormat:kr,typeGuid:Mr="",truncations:Ir=[]}=fr;if(br||lr===1){nr=Mr,gn={label:mr.trim(),columnName:yr,show:br,sort:kn(fr)||$n(Sr)||Sr,customGroup:Er,conditions:_n(wr),typeGuid:Mr},kr&&(gn.dateFormat=kr),yr!=="the_date"||gn.dateFormat||(gn.dateFormat="YYYY-MM");const Tr={};if(Array.isArray(Ir)&&Ir.length>0){const Fr=Ir.length;for(let Lr=0;Lr<Fr;Lr++){const Or=Ir[Lr]||{},{rule:Nr="",num:zr=0,name:qr=""}=Or;Nr&&zr&&(Tr.num=zr,Tr.rule=Nr,qr&&(Tr.otherGroupName=qr))}}if(!((h=Object.keys(Tr))===null||h===void 0)&&h.length&&(gn.truncation=Tr),!yn(re,["scatter","valueline"]))break;Xn.push(gn)}}}if(Array.isArray(Gn)&&Gn.length>0){const lr=Gn.length;for(let ur=0;ur<lr;ur++){const fr=Gn[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,typeGuid:kr}=fr;if(br||lr===1){Wn={label:mr.trim(),columnName:yr,show:br,sort:$n(Sr),customGroup:Er,conditions:_n(wr),typeGuid:kr};break}}}const ir=[];Un==null||Un.forEach(lr=>{lr.location="LEFT",ir.push(On(lr,gn))}),Kn==null||Kn.forEach(lr=>{lr.location="RIGHT",ir.push(On(lr,gn))});let ar=Qn;!((v=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||v===void 0)&&v.length&&(ar=u.pivotTableCal.indicators),ar==null||ar.forEach(lr=>{lr.location="LEFT",ir.push(On(lr,gn))});const or=[];["ecanList","ecanCirculate"].includes(re)&&(zn==null?void 0:zn.length)>1&&(Hn=zn),!((m=(p=u==null?void 0:u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)===null||m===void 0)&&m.length&&(Hn=u.pivotTableCal.dimensions),Hn==null||Hn.forEach(lr=>{const{label:ur,name:fr,location:mr,show:yr,indexCode:br,sort:Sr,typeGuid:Er,indexCodeNum:wr,dateFormat:kr,conditions:Mr}=lr;let Ir=$n(Sr);if(u.sort){const{field:Fr,order:Lr}=u.sort;let Or=ir.find(Nr=>Nr.label===Fr);Or||ur!==Fr||(Or=lr),Or&&(Ir={columnName:Or.columnName,label:u.sort.field,order:Lr.toUpperCase(),type:"NORMAL"})}const Tr={label:ur,columnName:fr,location:mr,show:yr,sort:Ir,calcType:"COLUMN",hrpIndexCode:br,hrpIndexCodeNum:wr,conditions:_n(Mr),typeGuid:Er};kr&&(Tr.dateFormat=kr),fr!=="the_date"||Tr.dateFormat||(Tr.dateFormat="YYYY-MM"),or.push(Tr)});let tr=[],sr=[];if(Array.isArray(Vn)&&Vn.length>0?sr=Vn:Array.isArray(Yn)&&Yn.length>0&&(sr=Yn),sr==null?void 0:sr.length){const lr=sr.length;for(let ur=0;ur<lr;ur++){const fr=sr[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,truncations:kr,typeGuid:Mr="",dateFormat:Ir}=fr;let Tr=$n(Sr);if(u.sort){const{field:Or,order:Nr}=u.sort;let zr=ir.find(qr=>qr.label===Or);zr||fr.label!==Or||(zr=fr),zr&&(Tr={columnName:zr.columnName,label:u.sort.field,order:Nr.toUpperCase(),type:"NORMAL"})}const Fr={label:mr.trim(),columnName:yr,show:br,sort:Tr,customGroup:Er,conditions:_n(wr),typeGuid:Mr};Ir&&(Fr.dateFormat=Ir),yr!=="the_date"||Fr.dateFormat||(Fr.dateFormat="YYYY-MM");const Lr={};if(Array.isArray(kr)&&kr.length>0){const Or=kr.length;for(let Nr=0;Nr<Or;Nr++){const zr=kr[Nr]||{},{rule:qr="",num:Zr=0,name:Kr=""}=zr;qr&&Zr&&(Lr.num=Zr,Lr.rule=qr,Kr&&(Lr.otherGroupName=Kr))}}!((g=Object.keys(Lr))===null||g===void 0)&&g.length&&(Fr.truncation=Lr),tr.push(Fr)}}let cr,vr,dr=[];if(u!=null&&u.pivotTableCal){let lr=[];const{calc:ur=[],filter:fr=[],truncations:mr=[],sorts:yr=[],aggregateMethod:br=[],rowDimensionKeys:Sr=[],colDimensionKeys:Er=[]}=u.pivotTableCal;if(ir.push(...ur),fr==null?void 0:fr.length)for(const wr of fr){const{type:kr}=wr,Mr=e(wr,["type"]);kr==="indicators"?lr=ir:kr==="dimension"&&(lr=or);const Ir=lr.find(Tr=>Tr.columnName===wr.fieldName);Ir&&(Ir.conditions||(Ir.conditions=[]),Ir.conditions.push(Mr))}if(mr!=null&&mr.length)for(const wr of mr){const kr=or.find(Mr=>Mr.columnName===wr.key);kr&&(kr.truncation={num:wr.num,rule:wr.rule})}if(yr!=null&&yr.length)for(const wr of yr){const{fieldType:kr,columnData:Mr}=wr,Ir=e(wr,["fieldType","columnData"]);kr==="indicators"?(lr=ir,cr=Mr):kr==="dimension"&&(lr=or);const Tr=lr.find(Fr=>Fr.label===Ir.label);Tr&&(Tr.sort=Object.assign(Object.assign({},Ir),{columnName:Tr.columnName}))}if(!((y=Object.keys(br))===null||y===void 0)&&y.length)for(const wr in br){const kr=or.find(Mr=>Mr.label===wr);kr&&(!((x=br[wr])===null||x===void 0)&&x.length)&&(kr.aggregateMethod=br[wr])}tr=[],dr=[];for(const wr of or)Sr.includes(wr.columnName)?tr.push(wr):Er.includes(wr.columnName)&&dr.push(wr)}if(yn(re,["text","proportion","counter"])?Fn="zb":yn(re,["valueline"])&&(Fn="valueline"),J||re==="card"){if(tr.length===0||ir.length===0)return;Fn="grouptable"}else if(Pn==="1"&&or.length===0||Pn==="2"&&ir.length===0||!(Pn!=="3"||(nr||w==="EDV_DATA_SET")&&Rn.labelField&&Rn.valueField)||Pn==="3"&&re==="ecanDataSelect"&&ir.length===0)return;if(Yn!=null&&Yn.length&&(Pn="1",Fn="grouptable"),!yn(re,["scatter","valueline"])&&((pn=Object.keys(Rn))===null||pn===void 0?void 0:pn.length)){const lr=bn(Zn).find(fr=>fr.conditionKey==="parentCode"),ur={};if(lr){const fr=An(lr.id)||{};if(!(fr!=null&&fr.itemCodes))return;ur.parentItemCodes=fr.itemCodes}re==="ecanDataSelect"&&(ur.indicatorList=ir.filter(fr=>fr.show)),w==="EDV_DATA_SET"&&(ur.edvDataSetId=Bn),vr=Object.assign({url:"/diagram/formData",source:w,dataViewId:hn,plugin:"4",layer:Pn,chartType:"normalSelect",rangeIndexTypeGuid:nr,type:re==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Rn.labelField,valueField:Rn.valueField,sqlConditions:Jn,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:c.keyName},ur)}else{let lr={};lr=yn(re,["scatter","valueline"])?{classifications:Xn}:{classification:gn},vr=Object.assign({url:"/diagram",source:w,dataViewId:hn,plugin:En?"5":vn,layer:Pn,chartType:En?"pivot-table":Fn,series:Wn,indicatorList:ir,queryColumns:J?[]:or,pageFlag:!0,edvDataSetId:Bn||"",sqlConditions:Jn.map(ur=>{const{fieldValue:fr}=ur,mr={};return fr&&Array.isArray(fr)&&(mr.fieldValue=JSON.stringify(fr)),Object.assign(Object.assign({},ur),mr)}),idxLibMode:Dn,preview:er,rowHeaders:tr,keyName:c.keyName,columnData:cr,columnHeaders:dr},lr)}return vr},useIndicatorData=(c={},u=()=>{})=>{var y;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(x,pn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var En,gn,w;const pn=v();d(c.id,!1);const b=Mn({...c,globalModel:pn},x),{url:re,..._}=b||{};let J=p||((En=window==null?void 0:window.config)==null?void 0:En.pageId);if(!J){const{pathname:hn}=window==null?void 0:window.location;if(hn){const vn=hn.split("/");vn!=null&&vn.length&&(J=vn[vn.length-1])}}if(re&&_)try{const hn=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{..._,pageId:J},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(hn),hn}catch(hn){console.error(hn)}},g=vue.unref(f)!=="design"&&((y=c==null?void 0:c.graphicConfig)==null?void 0:y.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{m({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(g)}),m},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,h={};for(let d=0;d<f;d++){const v=u[d];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(h[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(c){const{width:u,height:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),h=vue.inject("setPageHeight",vn=>{}),d=vue.inject("isMobile",!1),v=vue.computed(()=>{const vn={};return d||(vn.width=u.value,vn.height=f.value),{...vn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),p=vue.ref(0),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(!1),pn=vue.ref();let b;const re=()=>new Promise(vn=>{vue.nextTick(()=>{u.value&&f.value?(p.value=parseFloat(u.value),m.value=parseFloat(f.value)):(p.value=pn.value.clientWidth,m.value=pn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),vn()})}),_=()=>{p.value&&m.value?(pn.value.style.width=`${p.value}px`,pn.value.style.height=`${m.value}px`):(pn.value.style.width=`${g.value}px`,pn.value.style.height=`${y.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await re(),_(),En(),window.addEventListener("resize",gn),w()),x.value=!0},{immediate:!0});const J=vue.ref({});vue.provide("scaleValue",J);const En=()=>{if(d){pn.value.style.width="100%",pn.value.style.height="auto",h("auto");return}const vn=document.body.clientWidth,Pn=document.body.clientHeight,Fn=p.value||g.value,zn=m.value||y.value,Vn=vn/Fn;let Yn=Pn/zn;(p.value!==1920||m.value!==1080)&&(Yn=m.value/p.value*vn/zn),J.value={widthScale:Vn,heightScale:Yn},pn.value&&(pn.value.style.transform=`scale(${Vn}, ${Yn})`),h(Yn)},gn=lodashEs.debounce(async()=>{await re(),En()},100),w=()=>{const vn=window.MutationObserver;b=new vn(gn),b.observe(pn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},hn=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",gn),hn()}),{style:v,container:pn,ready:x}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const h=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),d=vue.ref(),v=()=>{d.value.setAttribute("datav-theme",c.theme)},p=vue.inject("usedComponentList",[]),m=vue.inject("componentList",[]),g=vue.computed(()=>{const ur=[];for(const fr of vue.unref(p))fr.type==="ecanModal"?ur.push(...fr.componentList):ur.push(fr);return ur});vue.watch(()=>c.theme,()=>{v()}),vue.onMounted(()=>{v()});const y=vue.computed(()=>useVariablesInText(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),pn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),re=vue.computed(()=>c.height),_=vue.computed(()=>c.pageFontFamily),J=vue.computed(()=>{const ur=[],fr=vue.unref(m).filter(mr=>mr.type==="ecanModal");for(const mr of fr)mr!=null&&mr.requestList&&ur.push(...mr.requestList);return[...ur,...c.requestList]}),En=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:pn,touchEventId:En,width:b,height:re,fontFamily:_,requestList:J});const gn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",ur=>{let fr=ur;h.value||(fr=parseFloat(re.value)*ur+"px"),gn.value.height=fr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:ur=>{var fr;if(ur!=null&&ur.pageId){const{componentId:mr,...yr}=ur;(fr=window.config)!=null&&fr.urlParams||(window.config.urlParams={}),window.config.urlParams[ur.pageId]=yr,f("templateChange",ur)}}});const w=vue.ref(),hn=new Map,vn=()=>hn,Pn=ur=>hn.get(ur),Fn=(ur,fr)=>{var mr;if(w.value=fr,hn.set(ur,fr),!c.pageId){const yr=vue.unref(p).find(br=>br.id===ur);yr&&((mr=window.config)!=null&&mr.record||(window.config.record={}),window.config.record[yr.keyName]=fr)}},zn=()=>{w.value=null},Vn=ur=>{let fr=ur;if(fr){const mr=ur.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){let yr=mr[0].slice(1,-1).trim();const br=yr.match(/\[(.+?)\]/g);let Sr="";br!=null&&br.length&&(yr=yr.replace(br[0],""),Sr=br[0].slice(1,-1).trim());const Er=vue.unref(g).find(wr=>wr.keyName===yr);if(Er){const wr=Pn(Er.id),{type:kr,value:Mr,RECORD:Ir,recordData:Tr}=wr||{};lowerCaseIncludes(kr,MODEL_KEY_LIST)?fr=Ir[Sr]:lowerCaseIncludes(kr,"select")?fr=Tr[Sr]:lowerCaseIncludes(kr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(wr[Sr]))?fr=vue.unref(wr[Sr]).format(wr.format):fr=vue.unref(wr[Sr]):fr=Mr}else fr=(window.config.requestParams||{})[yr]||""}}return fr},Yn=new Map,Gn={},Un=async(ur,fr)=>{var Er;const{requestName:mr}=ur,yr=await useRequestData({...ur,projectRequestUrl:vue.unref(y),getModel:Pn})(),br=((Er=yr==null?void 0:yr.data)==null?void 0:Er.data)||{},Sr=Yn.get(mr);if(Sr!=null&&Sr.length&&(!fr||Gn[mr])){for(const wr of Sr)wr(br);fr||Yn.delete(mr)}},Kn=(ur,fr)=>{Gn[ur]&&(clearInterval(Gn[ur]),delete Gn[ur],Yn.delete(ur));const mr=vue.unref(g).filter(br=>!br.openCustomRequestData&&br.customRequestName===ur),yr=Yn.get(ur)||[];if((mr==null?void 0:mr.length)>yr.length&&(yr.push(fr),Yn.set(ur,yr),(mr==null?void 0:mr.length)===yr.length)){const br=vue.unref(J).find(Sr=>Sr.requestName===ur);br&&(br!=null&&br.isOpenRequestTimer&&(br!=null&&br.requestInterval)?(Un(br,!0),Gn[ur]=setInterval(()=>{Un(br,!0)},br.requestInterval*1e3)):Un(br))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Pn,setGlobalModel:Fn,getAllGlobalModel:vn,clearInteractiveData:zn,getRecordValueByKeyName:Vn,hanldePageRequestData:Kn,interactiveData:w});const Hn=vue.ref({}),Qn=(ur,fr)=>{Hn.value[ur]=fr};vue.provide(LOADED_DATA,{loadedData:Hn,setLoadedData:Qn});const Zn=[],Rn=()=>{Zn.pop()},qn=ur=>{Zn.push(ur)},In=new Map,Dn=ur=>In.get(ur),er=(ur,fr)=>{In.set(ur,fr)};vue.provide(MODAL_MODEL,{popUseModalIds:Rn,pushUseModalIds:qn,getModalModel:Dn,setModalModel:er});const Bn=mitt(),Jn=new Set,Xn=(ur,fr)=>{Jn.add(ur),Bn.on(ur,mr=>{const{eventName:yr,params:br}=mr;return typeof fr[yr]=="function"&&fr[yr](br)}),vue.onBeforeUnmount(()=>{Wn(ur)})},Wn=ur=>{Jn.delete(ur),Bn.off(ur)},nr=(ur,fr,mr={})=>{if(ur==="PAGE"){const yr=Zn.length;let br=[];if(yr===0)br=[...Jn];else{const Sr=Zn[yr-1];br=[...Dn(Sr)]}br.forEach(Sr=>{Bn.emit(Sr,{eventName:fr,params:mr})})}else Bn.emit(ur,{eventName:fr,params:mr})};vue.provide(EVENT_BUS,{onEvent:Xn,offEvent:Wn,emitEvent:nr});const ir=vue.ref(0),ar=()=>{ir.value=vue.unref(ir)+1};vue.provide(GLOBAL_TOKEN,{requestToken:ar});const or=new Map,tr=new Map,sr=({requestFn:ur=()=>{},sortNum:fr=0,id:mr=""})=>{if(or.has(fr)){const yr=or.get(fr);yr==null||yr.push(ur)}else or.set(fr,[ur]);tr.set(mr,ur)},cr=ur=>new Promise((fr,mr)=>{const yr=ur.map(br=>br());Promise.all(yr).then(br=>{fr(br)}).catch(br=>{mr(br)})}),vr=ur=>new Promise(async(fr,mr)=>{if(ur){if(typeof ur=="string"){const yr=tr.get(ur);if(typeof yr=="function"){const br=request.interceptors.response.use(Sr=>(fr(Sr),Sr),Sr=>(mr(Sr),Promise.reject(Sr)));yr(),request.interceptors.response.eject(br)}}}else{const yr=Array.from(or);yr.sort((Sr,Er)=>Er[0]-Sr[0]);const br=yr.length;try{c.pageMode!=="design"&&vue.unref(ir)>0;for(let Sr=0;Sr<br;Sr++){const Er=yr[Sr][1];await cr(Er)}}catch(Sr){console.error(Sr)}finally{or.clear(),fr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:sr,touchRequest:vr});const dr=()=>{Bn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:dr});const lr=ur=>{Bn.on(REFRESH_PAGE,()=>ur()),vue.onMounted(()=>{Bn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var ur;if((ur=vue.unref(p))!=null&&ur.length&&vue.unref(x)!=="design"){const{jumpType:fr,jumpTime:mr,jumpPage:yr,jumpLink:br}=c;if(mr!=null&&mr.value){let Sr=0;switch(mr==null?void 0:mr.suffix){case"hours":Sr=mr.value*60*60*1e3;break;case"minute":Sr=mr.value*60*1e3;break;case"seconds":Sr=mr.value*1e3;break}setTimeout(()=>{let Er="";fr==="page"&&yr?Er=usePageUrl(vue.unref(x),yr):fr==="link"&&br&&(Er=br),Er=useVariablesInText(Er),window.open(Er,"_self")},Sr)}}}),vue.onBeforeUnmount(()=>{or==null||or.clear(),tr==null||tr.clear()}),u({touchRequest:vr,getGlobalModel:Pn,onRefreshPage:lr,emitEvent:nr,getRecordValueByKeyName:Vn,props:c}),{providerConfig:d,configStyle:gn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_d2563ca9_lang="";function _sfc_render$y(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-d2563ca9"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c),d=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,Jn)=>{},getRecordValueByKeyName:Bn=>{},hanldePageRequestData:(Bn,Jn)=>{}}),{setLoadedData:pn,loadedData:b}=vue.inject(LOADED_DATA,{setLoadedData:(Bn,Jn)=>{},loadedData:{}}),{setTemplateData:re}=vue.inject("templateOperate",{setTemplateData:Bn=>{}}),_=Bn=>{const Jn=c.id,Xn=m(Jn);g(Jn,{...Xn,value:Bn||"",RECORD:Bn||""})},J=Bn=>{var Jn,Xn;if(hasOwn(Bn,"value")&&_(Bn.value),c.showAnimation){const Wn=c.text.match(/\{(.+?)\}/g)||[];if(Wn!=null&&Wn.length){const nr=(Jn=Wn[0].slice(1,-1))==null?void 0:Jn.trim();if(vue.unref(d)[nr]===Bn){d.value=Bn;return}const ir=+Bn[nr];let ar=0;if(isNaN(ir))d.value=Bn;else{String(ir).includes(".")&&(ar=((Xn=String(ir).split(".")[1])==null?void 0:Xn.length)||0);const or=Math.abs(ir)*Math.pow(10,ar),tr=String(or).length;let sr=[];for(let vr=0;vr<5;vr++){const dr=Math.ceil(Math.random()*(or+1)-1);sr.includes(dr)||sr.push(dr)}sr.sort((vr,dr)=>vr-dr),sr=sr.map(vr=>{const dr=String(vr).split("").reverse(),lr=[];for(let ur=0;ur<tr;ur++)dr&&dr[ur]?lr.push(dr[ur]):lr.push("0");return ar&&lr.splice(ar,0,"."),(ir<0?"-":"")+lr.reverse().join("")}),sr.push(ir);let cr=0;for(const vr of sr)setTimeout(()=>{d.value={...vue.unref(d),[nr]:vr}},cr*1e3),cr+=.1}}else d.value=Bn}else d.value=Bn};vue.watch(()=>[c.data,c.dataType],([Bn,Jn])=>{Jn==="static"&&J(Bn)},{immediate:!0});const En=vue.computed(()=>{let Bn="";if(c.gradientShow){const{gradientColor:Jn,gradientOffset:Xn,gradientAngle:Wn,color:nr}=c;Bn+=`background: linear-gradient(${Wn}, ${nr}, ${Jn||"transparent"} ${Xn*100}%);-webkit-background-clip: text;color: transparent;`}return Bn}),gn=vue.computed(()=>{const Bn={};if(c.gradientShow){const{gradientColor:Jn,gradientOffset:Xn,gradientAngle:Wn,color:nr}=c,ir=Jn||"transparent";Bn.background=`linear-gradient(${Wn}, ${nr}, ${ir} ${Xn*100}%)`,Bn["-webkit-background-clip"]="text",Bn.color="transparent"}return Bn}),w=vue.computed(()=>{const Bn={};return c.linkPage&&(Bn.cursor="pointer",Bn.userSelect="none"),Bn}),hn=vue.ref(1),vn=vue.computed(()=>{var or;if(vue.unref(f))return c.variableDefaultValue;if(!hn.value)return;const Bn=vue.unref(d),Jn=c.increaseColor||c.color,Xn=c.declineColor||c.color;let Wn=c.text;Wn=Wn==null?void 0:Wn.replace(/\n|\\n/g,"<br/>"),Wn=Wn==null?void 0:Wn.replace(/\s(?!\{) | (?!\})\s/g," ");const nr=Wn.match(/\{(.+?)\}/g)||[];let ir="",ar="";if(c.exceedConfig==="wrap"?ar="show-wrap":c.exceedConfig==="ellipsis"&&(ar="show-ellipsis"),nr==null||nr.length===0){if(Wn&&c.format==="percentage"&&!isNaN(+Wn)){const tr=parseFloat(Wn),sr=tr*100,cr=Pn(sr.toFixed(2));tr>=0?Wn=`<span class="${ar}" style="color: ${cr||Jn||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(En)}">
|
|
102
|
+
`],...function({vnode:x,recurseCount:pn}){const b=pn>0?`... (${pn} recursive calls)`:"",re=!!x.component&&x.component.parent==null,_=` at <${oe(x.component,x.type,re)}`,J=">"+b;return x.props?[_,...L(x.props),J]:[_+J]}(g))}),m}(d)),console.warn(...v)}}function L(c){const u=[],f=Object.keys(c);return f.slice(0,3).forEach(h=>{u.push(...T(h,c[h]))}),f.length>3&&u.push(" ..."),u}function T(c,u,f){return typeof u=="string"?(u=JSON.stringify(u),f?u:[`${c}=${u}`]):typeof u=="number"||typeof u=="boolean"||u==null?f?u:[`${c}=${u}`]:A(u)?(u=T(c,S(u.value),!0),f?u:[`${c}=Ref<`,u,">"]):i(u)?[`${c}=fn${u.name?`<${u.name}>`:""}`]:(u=S(u),f?u:[`${c}=`,u])}const N={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 $(c,u,f,h){let d;try{d=h?c(...h):c()}catch(v){(function(p,m,g,y=!0){const x=m?m.vnode:null;if(m){let pn=m.parent;const b=m.proxy,re=process.env.NODE_ENV!=="production"?N[g]:g;for(;pn;){const J=pn.ec;if(J){for(let En=0;En<J.length;En++)if(J[En](p,b,re)===!1)return}pn=pn.parent}const _=m.appContext.config.errorHandler;if(_)return void $(_,null,10,[p,b,re])}(function(pn,b,re,_=!0){if(process.env.NODE_ENV!=="production"){const En=N[b];if(re&&(J=re,O.push(J)),C("Unhandled error"+(En?` during execution of ${En}`:"")),re&&O.pop(),_)throw pn;console.error(pn)}else console.error(pn);var J})(p,g,x,y)})(v,u,f)}return d}let k=!1,M=!1;const D=[];let E=0;const I=[];let F=null,V=0;const z=Promise.resolve();function R(c){D.length&&D.includes(c,k&&c.allowRecurse?E+1:E)||(c.id==null?D.push(c):D.splice(function(u){let f=E+1,h=D.length;for(;f<h;){const d=f+h>>>1,v=D[d],p=G(v);p<u||p===u&&v.pre?f=d+1:h=d}return f}(c.id),0,c),U())}function U(){k||M||(M=!0,z.then(W))}const G=c=>c.id==null?1/0:c.id,P=(c,u)=>{const f=G(c)-G(u);if(f===0){if(c.pre&&!u.pre)return-1;if(u.pre&&!c.pre)return 1}return f};function W(c){M=!1,k=!0,process.env.NODE_ENV!=="production"&&(c=c||new Map),D.sort(P);const u=process.env.NODE_ENV!=="production"?f=>Y(c,f):n;try{for(E=0;E<D.length;E++){const f=D[E];if(f&&f.active!==!1){if(process.env.NODE_ENV!=="production"&&u(f))continue;$(f,null,14)}}}finally{E=0,D.length=0,function(f){if(I.length){const h=[...new Set(I)];if(I.length=0,F)return void F.push(...h);for(F=h,process.env.NODE_ENV!=="production"&&(f=f||new Map),F.sort((d,v)=>G(d)-G(v)),V=0;V<F.length;V++)process.env.NODE_ENV!=="production"&&Y(f,F[V])||F[V]();F=null,V=0}}(c),k=!1,(D.length||I.length)&&W(c)}}function Y(c,u){if(c.has(u)){const f=c.get(u);if(f>100){const h=u.ownerInstance,d=h&&ne(h.type);return C(`Maximum recursive updates exceeded${d?` in component <${d}>`:""}. 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}c.set(u,f+1)}else c.set(u,1)}const H=new Set;process.env.NODE_ENV!=="production"&&(s().__VUE_HMR_RUNTIME__={createRecord:Q(function(c,u){return B.has(c)?!1:(B.set(c,{initialDef:K(u),instances:new Set}),!0)}),rerender:Q(function(c,u){const f=B.get(c);f&&(f.initialDef.render=u,[...f.instances].forEach(h=>{u&&(h.render=u,K(h.type).render=u),h.renderCache=[],h.update()}))}),reload:Q(function(c,u){const f=B.get(c);if(!f)return;u=K(u),q(f.initialDef,u);const h=[...f.instances];for(const v of h){const p=K(v.type);H.has(p)||(p!==f.initialDef&&q(p,u),H.add(p)),v.appContext.propsCache.delete(v.type),v.appContext.emitsCache.delete(v.type),v.appContext.optionsCache.delete(v.type),v.ceReload?(H.add(p),v.ceReload(u.styles),H.delete(p)):v.parent?R(v.parent.update):v.appContext.reload?v.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}d=()=>{for(const v of h)H.delete(K(v.type))},r(d)?I.push(...d):F&&F.includes(d,d.allowRecurse?V+1:V)||I.push(d),U();var d})});const B=new Map;function K(c){return i(u=c)&&"__vccOpts"in u?c.__vccOpts:c;var u}function q(c,u){o(c,u);for(const f in c)f==="__file"||f in u||delete c[f]}function Q(c){return(u,f)=>{try{return c(u,f)}catch(h){console.error(h),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let X;process.env.NODE_ENV;let Z="__VUE_INSTANCE_SETTERS__";(X=s()[Z])||(X=s()[Z]=[]),X.push(c=>c);const ee=/(?:^|[-_])(\w)/g,te=c=>c.replace(ee,u=>u.toUpperCase()).replace(/[-_]/g,"");function ne(c,u=!0){return i(c)?c.displayName||c.name:c.name||u&&c.__name}function oe(c,u,f=!1){let h=ne(u);if(!h&&u.__file){const d=u.__file.match(/([^/\\]+)\.\w+$/);d&&(h=d[1])}if(!h&&c&&c.parent){const d=v=>{for(const p in v)if(v[p]===u)return p};h=d(c.components||c.parent.type.components)||d(c.appContext.components)}return h?te(h):f?"App":"Anonymous"}function ie(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ae,le={exports:{}};function se(){return ae||(ae=1,le.exports=function(){var c=1e3,u=6e4,f=36e5,h="millisecond",d="second",v="minute",p="hour",m="day",g="week",y="month",x="quarter",pn="year",b="date",re="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|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,En={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(Kn){var Hn=["th","st","nd","rd"],Qn=Kn%100;return"["+Kn+(Hn[(Qn-20)%10]||Hn[Qn]||Hn[0])+"]"}},gn=function(Kn,Hn,Qn){var Zn=String(Kn);return!Zn||Zn.length>=Hn?Kn:""+Array(Hn+1-Zn.length).join(Qn)+Kn},w={s:gn,z:function(Kn){var Hn=-Kn.utcOffset(),Qn=Math.abs(Hn),Zn=Math.floor(Qn/60),Rn=Qn%60;return(Hn<=0?"+":"-")+gn(Zn,2,"0")+":"+gn(Rn,2,"0")},m:function Kn(Hn,Qn){if(Hn.date()<Qn.date())return-Kn(Qn,Hn);var Zn=12*(Qn.year()-Hn.year())+(Qn.month()-Hn.month()),Rn=Hn.clone().add(Zn,y),qn=Qn-Rn<0,In=Hn.clone().add(Zn+(qn?-1:1),y);return+(-(Zn+(Qn-Rn)/(qn?Rn-In:In-Rn))||0)},a:function(Kn){return Kn<0?Math.ceil(Kn)||0:Math.floor(Kn)},p:function(Kn){return{M:y,y:pn,w:g,d:m,D:b,h:p,m:v,s:d,ms:h,Q:x}[Kn]||String(Kn||"").toLowerCase().replace(/s$/,"")},u:function(Kn){return Kn===void 0}},hn="en",vn={};vn[hn]=En;var Pn="$isDayjsObject",Fn=function(Kn){return Kn instanceof Gn||!(!Kn||!Kn[Pn])},zn=function Kn(Hn,Qn,Zn){var Rn;if(!Hn)return hn;if(typeof Hn=="string"){var qn=Hn.toLowerCase();vn[qn]&&(Rn=qn),Qn&&(vn[qn]=Qn,Rn=qn);var In=Hn.split("-");if(!Rn&&In.length>1)return Kn(In[0])}else{var Dn=Hn.name;vn[Dn]=Hn,Rn=Dn}return!Zn&&Rn&&(hn=Rn),Rn||!Zn&&hn},Vn=function(Kn,Hn){if(Fn(Kn))return Kn.clone();var Qn=typeof Hn=="object"?Hn:{};return Qn.date=Kn,Qn.args=arguments,new Gn(Qn)},Yn=w;Yn.l=zn,Yn.i=Fn,Yn.w=function(Kn,Hn){return Vn(Kn,{locale:Hn.$L,utc:Hn.$u,x:Hn.$x,$offset:Hn.$offset})};var Gn=function(){function Kn(Qn){this.$L=zn(Qn.locale,null,!0),this.parse(Qn),this.$x=this.$x||Qn.x||{},this[Pn]=!0}var Hn=Kn.prototype;return Hn.parse=function(Qn){this.$d=function(Zn){var Rn=Zn.date,qn=Zn.utc;if(Rn===null)return new Date(NaN);if(Yn.u(Rn))return new Date;if(Rn instanceof Date)return new Date(Rn);if(typeof Rn=="string"&&!/Z$/i.test(Rn)){var In=Rn.match(_);if(In){var Dn=In[2]-1||0,er=(In[7]||"0").substring(0,3);return qn?new Date(Date.UTC(In[1],Dn,In[3]||1,In[4]||0,In[5]||0,In[6]||0,er)):new Date(In[1],Dn,In[3]||1,In[4]||0,In[5]||0,In[6]||0,er)}}return new Date(Rn)}(Qn),this.init()},Hn.init=function(){var Qn=this.$d;this.$y=Qn.getFullYear(),this.$M=Qn.getMonth(),this.$D=Qn.getDate(),this.$W=Qn.getDay(),this.$H=Qn.getHours(),this.$m=Qn.getMinutes(),this.$s=Qn.getSeconds(),this.$ms=Qn.getMilliseconds()},Hn.$utils=function(){return Yn},Hn.isValid=function(){return this.$d.toString()!==re},Hn.isSame=function(Qn,Zn){var Rn=Vn(Qn);return this.startOf(Zn)<=Rn&&Rn<=this.endOf(Zn)},Hn.isAfter=function(Qn,Zn){return Vn(Qn)<this.startOf(Zn)},Hn.isBefore=function(Qn,Zn){return this.endOf(Zn)<Vn(Qn)},Hn.$g=function(Qn,Zn,Rn){return Yn.u(Qn)?this[Zn]:this.set(Rn,Qn)},Hn.unix=function(){return Math.floor(this.valueOf()/1e3)},Hn.valueOf=function(){return this.$d.getTime()},Hn.startOf=function(Qn,Zn){var Rn=this,qn=!!Yn.u(Zn)||Zn,In=Yn.p(Qn),Dn=function(ar,or){var tr=Yn.w(Rn.$u?Date.UTC(Rn.$y,or,ar):new Date(Rn.$y,or,ar),Rn);return qn?tr:tr.endOf(m)},er=function(ar,or){return Yn.w(Rn.toDate()[ar].apply(Rn.toDate("s"),(qn?[0,0,0,0]:[23,59,59,999]).slice(or)),Rn)},Bn=this.$W,Jn=this.$M,Xn=this.$D,Wn="set"+(this.$u?"UTC":"");switch(In){case pn:return qn?Dn(1,0):Dn(31,11);case y:return qn?Dn(1,Jn):Dn(0,Jn+1);case g:var nr=this.$locale().weekStart||0,ir=(Bn<nr?Bn+7:Bn)-nr;return Dn(qn?Xn-ir:Xn+(6-ir),Jn);case m:case b:return er(Wn+"Hours",0);case p:return er(Wn+"Minutes",1);case v:return er(Wn+"Seconds",2);case d:return er(Wn+"Milliseconds",3);default:return this.clone()}},Hn.endOf=function(Qn){return this.startOf(Qn,!1)},Hn.$set=function(Qn,Zn){var Rn,qn=Yn.p(Qn),In="set"+(this.$u?"UTC":""),Dn=(Rn={},Rn[m]=In+"Date",Rn[b]=In+"Date",Rn[y]=In+"Month",Rn[pn]=In+"FullYear",Rn[p]=In+"Hours",Rn[v]=In+"Minutes",Rn[d]=In+"Seconds",Rn[h]=In+"Milliseconds",Rn)[qn],er=qn===m?this.$D+(Zn-this.$W):Zn;if(qn===y||qn===pn){var Bn=this.clone().set(b,1);Bn.$d[Dn](er),Bn.init(),this.$d=Bn.set(b,Math.min(this.$D,Bn.daysInMonth())).$d}else Dn&&this.$d[Dn](er);return this.init(),this},Hn.set=function(Qn,Zn){return this.clone().$set(Qn,Zn)},Hn.get=function(Qn){return this[Yn.p(Qn)]()},Hn.add=function(Qn,Zn){var Rn,qn=this;Qn=Number(Qn);var In=Yn.p(Zn),Dn=function(Jn){var Xn=Vn(qn);return Yn.w(Xn.date(Xn.date()+Math.round(Jn*Qn)),qn)};if(In===y)return this.set(y,this.$M+Qn);if(In===pn)return this.set(pn,this.$y+Qn);if(In===m)return Dn(1);if(In===g)return Dn(7);var er=(Rn={},Rn[v]=u,Rn[p]=f,Rn[d]=c,Rn)[In]||1,Bn=this.$d.getTime()+Qn*er;return Yn.w(Bn,this)},Hn.subtract=function(Qn,Zn){return this.add(-1*Qn,Zn)},Hn.format=function(Qn){var Zn=this,Rn=this.$locale();if(!this.isValid())return Rn.invalidDate||re;var qn=Qn||"YYYY-MM-DDTHH:mm:ssZ",In=Yn.z(this),Dn=this.$H,er=this.$m,Bn=this.$M,Jn=Rn.weekdays,Xn=Rn.months,Wn=Rn.meridiem,nr=function(or,tr,sr,cr){return or&&(or[tr]||or(Zn,qn))||sr[tr].slice(0,cr)},ir=function(or){return Yn.s(Dn%12||12,or,"0")},ar=Wn||function(or,tr,sr){var cr=or<12?"AM":"PM";return sr?cr.toLowerCase():cr};return qn.replace(J,function(or,tr){return tr||function(sr){switch(sr){case"YY":return String(Zn.$y).slice(-2);case"YYYY":return Yn.s(Zn.$y,4,"0");case"M":return Bn+1;case"MM":return Yn.s(Bn+1,2,"0");case"MMM":return nr(Rn.monthsShort,Bn,Xn,3);case"MMMM":return nr(Xn,Bn);case"D":return Zn.$D;case"DD":return Yn.s(Zn.$D,2,"0");case"d":return String(Zn.$W);case"dd":return nr(Rn.weekdaysMin,Zn.$W,Jn,2);case"ddd":return nr(Rn.weekdaysShort,Zn.$W,Jn,3);case"dddd":return Jn[Zn.$W];case"H":return String(Dn);case"HH":return Yn.s(Dn,2,"0");case"h":return ir(1);case"hh":return ir(2);case"a":return ar(Dn,er,!0);case"A":return ar(Dn,er,!1);case"m":return String(er);case"mm":return Yn.s(er,2,"0");case"s":return String(Zn.$s);case"ss":return Yn.s(Zn.$s,2,"0");case"SSS":return Yn.s(Zn.$ms,3,"0");case"Z":return In}return null}(or)||In.replace(":","")})},Hn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Hn.diff=function(Qn,Zn,Rn){var qn,In=this,Dn=Yn.p(Zn),er=Vn(Qn),Bn=(er.utcOffset()-this.utcOffset())*u,Jn=this-er,Xn=function(){return Yn.m(In,er)};switch(Dn){case pn:qn=Xn()/12;break;case y:qn=Xn();break;case x:qn=Xn()/3;break;case g:qn=(Jn-Bn)/6048e5;break;case m:qn=(Jn-Bn)/864e5;break;case p:qn=Jn/f;break;case v:qn=Jn/u;break;case d:qn=Jn/c;break;default:qn=Jn}return Rn?qn:Yn.a(qn)},Hn.daysInMonth=function(){return this.endOf(y).$D},Hn.$locale=function(){return vn[this.$L]},Hn.locale=function(Qn,Zn){if(!Qn)return this.$L;var Rn=this.clone(),qn=zn(Qn,Zn,!0);return qn&&(Rn.$L=qn),Rn},Hn.clone=function(){return Yn.w(this.$d,this)},Hn.toDate=function(){return new Date(this.valueOf())},Hn.toJSON=function(){return this.isValid()?this.toISOString():null},Hn.toISOString=function(){return this.$d.toISOString()},Hn.toString=function(){return this.$d.toUTCString()},Kn}(),Un=Gn.prototype;return Vn.prototype=Un,[["$ms",h],["$s",d],["$m",v],["$H",p],["$W",m],["$M",y],["$y",pn],["$D",b]].forEach(function(Kn){Un[Kn[1]]=function(Hn){return this.$g(Hn,Kn[0],Kn[1])}}),Vn.extend=function(Kn,Hn){return Kn.$i||(Kn(Hn,Gn,Vn),Kn.$i=!0),Vn},Vn.locale=zn,Vn.isDayjs=Fn,Vn.unix=function(Kn){return Vn(1e3*Kn)},Vn.en=vn[hn],Vn.Ls=vn,Vn.p={},Vn}()),le.exports}var ce=ie(se()),ue=typeof global=="object"&&global&&global.Object===Object&&global,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=ue||de||Function("return this")(),pe=fe.Symbol,he=Object.prototype,ye=he.hasOwnProperty,me=he.toString,be=pe?pe.toStringTag:void 0,ge=Object.prototype.toString,ve=pe?pe.toStringTag:void 0;function xe(c){return c==null?c===void 0?"[object Undefined]":"[object Null]":ve&&ve in Object(c)?function(u){var f=ye.call(u,be),h=u[be];try{u[be]=void 0;var d=!0}catch{}var v=me.call(u);return d&&(f?u[be]=h:delete u[be]),v}(c):function(u){return ge.call(u)}(c)}function we(c){return c!=null&&typeof c=="object"}var Se=Array.isArray;function Ae(c){var u=typeof c;return c!=null&&(u=="object"||u=="function")}function je(c){if(!Ae(c))return!1;var u=xe(c);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}var _e,Oe=fe["__core-js_shared__"],Ce=(_e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",Le=Function.prototype.toString;function Te(c){if(c!=null){try{return Le.call(c)}catch{}try{return c+""}catch{}}return""}var Ne=/^\[object .+?Constructor\]$/,$e=Function.prototype,ke=Object.prototype,Me=$e.toString,De=ke.hasOwnProperty,Ee=RegExp("^"+Me.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ie(c){return!(!Ae(c)||(u=c,Ce&&Ce in u))&&(je(c)?Ee:Ne).test(Te(c));var u}function Fe(c,u){var f=function(h,d){return h==null?void 0:h[d]}(c,u);return Ie(f)?f:void 0}var Ve=Fe(fe,"WeakMap"),ze=Object.create,Re=function(){function c(){}return function(u){if(!Ae(u))return{};if(ze)return ze(u);c.prototype=u;var f=new c;return c.prototype=void 0,f}}(),Ue=function(){try{var c=Fe(Object,"defineProperty");return c({},"",{}),c}catch{}}(),Ge=/^(?:0|[1-9]\d*)$/;function Pe(c,u){var f=typeof c;return!!(u=u??9007199254740991)&&(f=="number"||f!="symbol"&&Ge.test(c))&&c>-1&&c%1==0&&c<u}function We(c,u){return c===u||c!=c&&u!=u}var Ye=Object.prototype.hasOwnProperty;function He(c,u,f){var h=c[u];Ye.call(c,u)&&We(h,f)&&(f!==void 0||u in c)||function(d,v,p){v=="__proto__"&&Ue?Ue(d,v,{configurable:!0,enumerable:!0,value:p,writable:!0}):d[v]=p}(c,u,f)}function Be(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=9007199254740991}var Ke=Object.prototype;function qe(c){var u=c&&c.constructor;return c===(typeof u=="function"&&u.prototype||Ke)}function Qe(c){return we(c)&&xe(c)=="[object Arguments]"}var Je=Object.prototype,Xe=Je.hasOwnProperty,Ze=Je.propertyIsEnumerable,et=Qe(function(){return arguments}())?Qe:function(c){return we(c)&&Xe.call(c,"callee")&&!Ze.call(c,"callee")},tt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nt=tt&&typeof module=="object"&&module&&!module.nodeType&&module,ot=nt&&nt.exports===tt?fe.Buffer:void 0,rt=(ot?ot.isBuffer:void 0)||function(){return!1},it={};function at(c){return function(u){return c(u)}}it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var lt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,st=lt&&typeof module=="object"&&module&&!module.nodeType&&module,ct=st&&st.exports===lt&&ue.process,ut=function(){try{var c=st&&st.require&&st.require("util").types;return c||ct&&ct.binding&&ct.binding("util")}catch{}}(),dt=ut&&ut.isTypedArray,ft=dt?at(dt):function(c){return we(c)&&Be(c.length)&&!!it[xe(c)]},pt=Object.prototype.hasOwnProperty;function ht(c,u){var f=Se(c),h=!f&&et(c),d=!f&&!h&&rt(c),v=!f&&!h&&!d&&ft(c),p=f||h||d||v,m=p?function(x,pn){for(var b=-1,re=Array(x);++b<x;)re[b]=pn(b);return re}(c.length,String):[],g=m.length;for(var y in c)!pt.call(c,y)||p&&(y=="length"||d&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Pe(y,g))||m.push(y);return m}function yt(c,u){return function(f){return c(u(f))}}var mt=yt(Object.keys,Object),bt=Object.prototype.hasOwnProperty;function gt(c){return(u=c)!=null&&Be(u.length)&&!je(u)?ht(c):function(f){if(!qe(f))return mt(f);var h=[];for(var d in Object(f))bt.call(f,d)&&d!="constructor"&&h.push(d);return h}(c);var u}var vt=Fe(Object,"create"),xt=Object.prototype.hasOwnProperty,wt=Object.prototype.hasOwnProperty;function St(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}function At(c,u){for(var f=c.length;f--;)if(We(c[f][0],u))return f;return-1}St.prototype.clear=function(){this.__data__=vt?vt(null):{},this.size=0},St.prototype.delete=function(c){var u=this.has(c)&&delete this.__data__[c];return this.size-=u?1:0,u},St.prototype.get=function(c){var u=this.__data__;if(vt){var f=u[c];return f==="__lodash_hash_undefined__"?void 0:f}return xt.call(u,c)?u[c]:void 0},St.prototype.has=function(c){var u=this.__data__;return vt?u[c]!==void 0:wt.call(u,c)},St.prototype.set=function(c,u){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=vt&&u===void 0?"__lodash_hash_undefined__":u,this};var jt=Array.prototype.splice;function _t(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}_t.prototype.clear=function(){this.__data__=[],this.size=0},_t.prototype.delete=function(c){var u=this.__data__,f=At(u,c);return!(f<0)&&(f==u.length-1?u.pop():jt.call(u,f,1),--this.size,!0)},_t.prototype.get=function(c){var u=this.__data__,f=At(u,c);return f<0?void 0:u[f][1]},_t.prototype.has=function(c){return At(this.__data__,c)>-1},_t.prototype.set=function(c,u){var f=this.__data__,h=At(f,c);return h<0?(++this.size,f.push([c,u])):f[h][1]=u,this};var Ot=Fe(fe,"Map");function Ct(c,u){var f,h,d=c.__data__;return((h=typeof(f=u))=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null)?d[typeof u=="string"?"string":"hash"]:d.map}function Lt(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var h=c[u];this.set(h[0],h[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Ot||_t),string:new St}},Lt.prototype.delete=function(c){var u=Ct(this,c).delete(c);return this.size-=u?1:0,u},Lt.prototype.get=function(c){return Ct(this,c).get(c)},Lt.prototype.has=function(c){return Ct(this,c).has(c)},Lt.prototype.set=function(c,u){var f=Ct(this,c),h=f.size;return f.set(c,u),this.size+=f.size==h?0:1,this};var Tt=yt(Object.getPrototypeOf,Object);function Nt(c){var u=this.__data__=new _t(c);this.size=u.size}Nt.prototype.clear=function(){this.__data__=new _t,this.size=0},Nt.prototype.delete=function(c){var u=this.__data__,f=u.delete(c);return this.size=u.size,f},Nt.prototype.get=function(c){return this.__data__.get(c)},Nt.prototype.has=function(c){return this.__data__.has(c)},Nt.prototype.set=function(c,u){var f=this.__data__;if(f instanceof _t){var h=f.__data__;if(!Ot||h.length<199)return h.push([c,u]),this.size=++f.size,this;f=this.__data__=new Lt(h)}return f.set(c,u),this.size=f.size,this};var $t=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols,Mt=kt?function(c){return c==null?[]:(c=Object(c),function(u,f){for(var h=-1,d=u==null?0:u.length,v=0,p=[];++h<d;){var m=u[h];f(m,h,u)&&(p[v++]=m)}return p}(kt(c),function(u){return $t.call(c,u)}))}:function(){return[]};function Dt(c){return function(u,f,h){var d=f(u);return Se(u)?d:function(v,p){for(var m=-1,g=p.length,y=v.length;++m<g;)v[y+m]=p[m];return v}(d,h(u))}(c,gt,Mt)}var Et=Fe(fe,"DataView"),It=Fe(fe,"Promise"),Ft=Fe(fe,"Set"),Vt="[object Map]",zt="[object Promise]",Rt="[object Set]",Ut="[object WeakMap]",Gt="[object DataView]",Pt=Te(Et),Wt=Te(Ot),Yt=Te(It),Ht=Te(Ft),Bt=Te(Ve),Kt=xe;(Et&&Kt(new Et(new ArrayBuffer(1)))!=Gt||Ot&&Kt(new Ot)!=Vt||It&&Kt(It.resolve())!=zt||Ft&&Kt(new Ft)!=Rt||Ve&&Kt(new Ve)!=Ut)&&(Kt=function(c){var u=xe(c),f=u=="[object Object]"?c.constructor:void 0,h=f?Te(f):"";if(h)switch(h){case Pt:return Gt;case Wt:return Vt;case Yt:return zt;case Ht:return Rt;case Bt:return Ut}return u});var qt=Object.prototype.hasOwnProperty,Qt=fe.Uint8Array;function Jt(c){var u=new c.constructor(c.byteLength);return new Qt(u).set(new Qt(c)),u}var Xt=/\w*$/,Zt=pe?pe.prototype:void 0,en=Zt?Zt.valueOf:void 0;function tn(c,u,f){var h,d,v,p,m,g=c.constructor;switch(u){case"[object ArrayBuffer]":return Jt(c);case"[object Boolean]":case"[object Date]":return new g(+c);case"[object DataView]":return m=Jt((p=c).buffer),new p.constructor(m,p.byteOffset,p.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(y){var x=Jt(y.buffer);return new y.constructor(x,y.byteOffset,y.length)}(c);case"[object Map]":case"[object Set]":return new g;case"[object Number]":case"[object String]":return new g(c);case"[object RegExp]":return(v=new(d=c).constructor(d.source,Xt.exec(d))).lastIndex=d.lastIndex,v;case"[object Symbol]":return h=c,en?Object(en.call(h)):{}}}var nn=ut&&ut.isMap,on=nn?at(nn):function(c){return we(c)&&Kt(c)=="[object Map]"},rn=ut&&ut.isSet,an=rn?at(rn):function(c){return we(c)&&Kt(c)=="[object Set]"},ln="[object Arguments]",sn="[object Function]",cn="[object Object]",un={};function dn(c,u,f,h,d,v){var p;if(p!==void 0)return p;if(!Ae(c))return c;var m=Se(c);if(m)p=function(b){var re=b.length,_=new b.constructor(re);return re&&typeof b[0]=="string"&&qt.call(b,"index")&&(_.index=b.index,_.input=b.input),_}(c);else{var g=Kt(c),y=g==sn||g=="[object GeneratorFunction]";if(rt(c))return c.slice();if(g==cn||g==ln||y&&!d)p=y?{}:function(b){return typeof b.constructor!="function"||qe(b)?{}:Re(Tt(b))}(c);else{if(!un[g])return d?c:{};p=tn(c,g)}}v||(v=new Nt);var x=v.get(c);if(x)return x;v.set(c,p),an(c)?c.forEach(function(b){p.add(dn(b,u,f,b,c,v))}):on(c)&&c.forEach(function(b,re){p.set(re,dn(b,u,f,re,c,v))});var pn=m?void 0:Dt(c);return function(b,re){for(var _=-1,J=b==null?0:b.length;++_<J&&re(b[_],_,b)!==!1;);}(pn||c,function(b,re){pn&&(b=c[re=b]),He(p,re,dn(b,u,f,re,c,v))}),p}un[ln]=un["[object Array]"]=un["[object ArrayBuffer]"]=un["[object DataView]"]=un["[object Boolean]"]=un["[object Date]"]=un["[object Float32Array]"]=un["[object Float64Array]"]=un["[object Int8Array]"]=un["[object Int16Array]"]=un["[object Int32Array]"]=un["[object Map]"]=un["[object Number]"]=un[cn]=un["[object RegExp]"]=un["[object Set]"]=un["[object String]"]=un["[object Symbol]"]=un["[object Uint8Array]"]=un["[object Uint8ClampedArray]"]=un["[object Uint16Array]"]=un["[object Uint32Array]"]=!0,un["[object Error]"]=un[sn]=un["[object WeakMap]"]=!1;function fn(c){return dn(c,5)}const yn=(c,u)=>{if(typeof c=="string"&&typeof u=="string")return c.toLocaleLowerCase().includes(u.toLocaleLowerCase());if(typeof c=="string"&&Array.isArray(u)){const f=u.length;for(let h=0;h<f;h++){const d=u[h];if(typeof d=="string"&&c.toLocaleLowerCase().includes(d.toLocaleLowerCase()))return!0}}return!1},mn=(c,u)=>Object.prototype.hasOwnProperty.call(c,u),bn=c=>{const u=[];for(const f of c)f.conditions?u.push(...bn(f.conditions)):(f==null?void 0:f.dataType)==="component"&&u.push(f);return u},xn=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];let wn=new Map;const Sn=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"],An=c=>wn.get(c),jn=(c,u)=>{if(u)mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),mn(c,"dataType")&&delete c.dataType;else{const{calcWays:f=[],dateCalcTypes:h=[],activeKey:d,componentId:v=""}=c;if(d===5&&(f!=null&&f.length)&&(h!=null&&h.length)&&v){const p=f[0].split("-");(p==null?void 0:p.length)>1&&p[0]==="rangeValue"&&(c.calcWays=((m,g={})=>{const{around:y,unit:x,id:pn}=m;let b="";const{pageMode:re="",componentList:_=[]}=(g==null?void 0:g.graphicConfig)||{};let J=null,En=null;if(re==="design"){const gn=_==null?void 0:_.find(Vn=>Vn.id===pn);if(!gn)return[];const{interval:w,intervalUnit:hn,startTime:vn,endTime:Pn,operate:Fn,useCurrentTime:zn}=gn||{};if(zn&&(J=ce().subtract(w,hn),En=ce()),vn&&(J=ce(vn)),Pn&&(En=ce(Pn)),Fn){const{type:Vn,value:Yn,mode:Gn}=Fn;switch(Vn){case"add":J=J&&J.add(Yn,Gn),En=En&&En.add(Yn,Gn);break;case"minus":J=J&&J.subtract(Yn,Gn),En=En&&En.subtract(Yn,Gn)}}}else{const gn=An(pn)||{};j(gn.startTime)&&(J=ce(j(gn.startTime))),j(gn.endTime)&&(En=ce(j(gn.endTime)))}return J&&En&&(b=`${y==="before"?"-":""}${En.diff(J,x.toLowerCase())+1}`),b?[b]:[]})({around:p[1],unit:h[0],id:v})),delete c.radioValue}if(mn(c,"dataType")){if(c.fieldType==="DATE"&&(c.label=c.fieldName),c.dataType==="component")if(c.fieldValue==="PARENT"){let p=c.modelKey;p&&c.prop&&(p+=`-${c.prop}`),c.fieldValue="${"+p+"}"}else c.fieldValue="${"+c.fieldValue+"}";delete c.dataType}mn(c,"activeKey")&&delete c.activeKey,mn(c,"radioValue")&&delete c.radioValue,mn(c,"indexCode")&&(c.hrpIndexCode=c.indexCode,delete c.indexCode),mn(c,"indexCodeNum")&&(c.hrpIndexCodeNum=c.indexCodeNum,delete c.indexCodeNum),c.dataType!=="component"&&c.useCurrentTime&&(c.fieldValue=ce().format(c.dateFormat)),mn(c,"modelKey")&&delete c.modelKey,mn(c,"prop")&&delete c.prop,delete c.useCurrentTime}},_n=(c,u)=>{const f=[];return c!=null&&c.length&&fn(c).forEach(h=>{if(h.join&&h.conditions){const d=!h.conditions.some(v=>v.join&&v.conditions);h.conditions.forEach((v,p)=>{jn(v,u);const m={};if(p<h.conditions.length-1&&(m.join=h.join),d)f.push(Object.assign(Object.assign({},m),v));else if(v.join&&v.conditions){const g=u?"sqlConditions":"conditions";f.push(Object.assign({[g]:_n([v],u)},m))}else f.push(Object.assign(Object.assign({},m),v))})}else jn(h,u),f.push(h)}),f},On=(c={},u)=>{if(c!=null&&c.sortCpnts&&u){const vn=kn(c);vn&&(u.sort=vn)}const{label:f,name:h,location:d,show:v,indexCode:p,indexCodeNum:m,calcType:g="COLUMN",builtInFormula:y,builtInValueSource:x,builtInCalcWay:pn,formula:b,conditions:re,aggregate:_,distinct:J,dimByCount:En,dataTo:gn}=c;let w;if(re&&(w=_n(re)),g==="COMPONENT"){const vn={};return Nn(vn,x),{label:f.trim(),columnName:h,show:v,calcType:g,componentAlias:pn,componentValue:vn.fieldValue||null}}const hn={label:f.trim(),columnName:h,location:d,show:v,calcType:gn==="1"?"VIEW":g,hrpIndexCode:p,hrpIndexCodeNum:m,aggregate:_,builtInFormula:y,builtInValueSource:x,formula:b,conditions:w};if(y!=="DATE_OFFSET")return h==="the_count"&&(hn.calcType="AGGREGATE",hn.distinct=!!J,hn.typeGuid=En),Object.assign(Object.assign({},hn),{builtInCalcWay:pn});{const vn=pn.split("-");if((vn==null?void 0:vn.length)===3){let Pn=vn[0];return vn[2]==="before"&&vn[0]!=="0"&&(Pn=`-${vn[0]}`),Object.assign(Object.assign({},hn),{calcWays:[Pn],dateCalcTypes:[vn[1]]})}}},Cn=c=>{if(!c)return[];const u=fn((c==null?void 0:c.controlList)||[]).filter(_=>_.conditionKey!=="parentCode"),{classificationList:f=[],rowHeaderList:h=[],dimensionList:d=[],seriesList:v=[],leftAxisList:p=[],rightAxisList:m=[],queryColumnList:g=[],indicators:y=[]}=c;Tn(u);const x=[...f,...h,...d,...v,...p,...m,...g,...y],pn=[];for(const _ of x){const J=bn((_==null?void 0:_.conditions)||[]);if(J!=null&&J.length){const En=J.filter(gn=>(gn==null?void 0:gn.dataType)==="component").map(gn=>{const w={};return gn!=null&&gn.dateFormat&&(w.format=gn.dateFormat),gn.fieldValue==="PARENT"&&(w.id="PARENT",w.keyName=gn.modelKey,w.modelKey=gn.modelKey,w.prop=gn.prop),Object.assign({conditionKey:gn.fieldName,conditionLabel:gn.fieldName,conditionName:gn.fieldName,conditionValueType:gn.fieldType,id:gn.componentId,keyName:gn.fieldValue,rule:gn.rule,notGlobal:!0,indexCode:gn.indexCode,typeGuid:gn.typeGuid,indexCodeNum:gn.indexCodeNum},w)});if(En!=null&&En.length)for(const gn of En)pn.find(w=>w.keyName===gn.keyName)||pn.push(gn)}}const b=pn.length,re=u;for(let _=0;_<b;_++){const J=pn[_];if((J==null?void 0:J.conditionKey)==="parentCode")continue;const{id:En,keyName:gn,prop:w,format:hn,modelKey:vn,dataType:Pn="component",customValue:Fn}=J,zn=Ln(J);Nn(zn,En,{prop:w,dateFormat:hn,modelKey:vn,keyName:gn}),Pn===""&&(zn.fieldValue=Fn||""),re.push(zn)}for(let _=re.length-1;_>=0;_--){const J=re[_];J.globalCondition||bn(re).find(En=>En.alias===J.alias&&En.globalCondition)&&re.splice(_,1)}return re};function Ln(c){const{id:u,keyName:f,conditionLabel:h,conditionKey:d,conditionValueType:v,prop:p,rule:m="NONE",notGlobal:g=!1,indexCode:y,typeGuid:x,indexCodeNum:pn,dataType:b="component"}=c;let re=f||u;re&&p&&(re+=`-${p}`);let _=m;return _==="NONE"&&(_=["startTime","endTime"].includes(p)?p==="startTime"?"GREATER_EQUAL":"LESS_EQUAL":f!=null&&f.includes("startTime")?p==="GREATER_EQUAL":f!=null&&f.includes("endTime")?p==="LESS_EQUAL":"EQUAL"),u==="PARENT"&&(re=c.modelKey,re&&p&&(re+=`-${p}`),_=m),{rule:_,label:h,fieldName:d,fieldValue:"",valueType:v,alias:re,globalCondition:!g,indexCode:y,typeGuid:x,indexCodeNum:pn,dataType:b}}function Tn(c){if(c!=null&&c.length)for(const u of c)if(u!=null&&u.conditions)Tn(u.conditions);else{const{id:f,keyName:h,prop:d,modelKey:v,format:p,dataType:m="component",customValue:g}=u,y=Ln(u);Nn(y,f,{prop:d,dateFormat:p,modelKey:v,keyName:h}),m===""&&(y.fieldValue=g||"");for(const x in y)u[x]=y[x];for(const x of Sn)delete u[x]}}function Nn(c,u,f){const{prop:h="",dateFormat:d="",modelKey:v="",keyName:p="",operateValue:m,operateMode:g,operateType:y}=f||{},x=v||p;if(u==="PARENT"&&x&&h){const w=window.config.record;let hn=h,vn=d;const Pn=h.match(/\{(.+?)\}/g);if(Pn!=null&&Pn.length){const Fn=Pn[0].slice(1,-1).trim();hn=h.replace(Pn[0],""),vn=Fn,c.dateFormat=vn}if(w&&w[x]){const Fn=j(w[x][hn]);ce.isDayjs(Fn)?c.fieldValue=Fn.format(vn||"YYYY-MM-DD"):c.fieldValue=Fn}return}const pn=An(u)||{},{value:b,format:re="YYYY-MM-DD",type:_="",useCurrentTime:J,RECORD:En}=pn||{},gn=d||re;if(yn(pn.type,"date")){let w;if(w=J?b?j(b):ce():j(b),m&&g&&y)switch(y){case"add":w=w.add(m,g);break;case"minus":w=w.subtract(m,g)}c.fieldValue=w==null?void 0:w.format(gn),c.dateFormat=gn}else if(_==="ecanRangePicker"){let w=h;if(!h){const vn=p&&p.split("-");vn!=null&&vn.length&&(w=vn[vn.length-1])}if(!w)return;let hn=null;if(j(pn[w])&&(hn=ce(j(pn[w]))),m&&g&&y){if(m==="rangeValue"){if(pn.startTime&&pn.endTime){const vn=j(pn.endTime).diff(j(pn.startTime),g)+1;switch(y){case"add":hn=hn&&hn.add(vn,g);break;case"minus":hn=hn&&hn.subtract(vn,g)}}}else if(!isNaN(+m))switch(y){case"add":hn=hn&&hn.add(m,g);break;case"minus":hn=hn&&hn.subtract(m,g)}}if(hn&&(c.fieldValue=hn==null?void 0:hn.format(gn)),w==="rangeValue"&&pn.startTime&&pn.endTime){const vn=function(Pn){const Fn=Pn.split("-");let zn="";if(Fn!=null&&Fn.length)switch(Fn[Fn.length-1]){case"YYYY":zn="year";break;case"MM":zn="month";break;case"DD":zn="day"}return zn}(gn);vn&&(c.fieldValue=j(pn.endTime).diff(j(pn.startTime),vn)+1)}c.dateFormat=gn}else yn(_,xn)?c.fieldValue=v&&En?En[v]:!v&&En?En.value:j(b):c.fieldValue=j(b)}const $n=c=>{var u;if(c){const f=Array.isArray(c)?fn(c):[fn(c)];let h="",d=[];const v=[],p=[],m=[];for(const g of f){if(g.defaultCode&&(g.label=g.columnName,delete g.defaultCode),g.type==="CUSTOM"&&(d=g.customOrderColumns),h=g.type,v.push(g.label),(u=g.columnName)===null||u===void 0?void 0:u.includes("_ecanrepeat_")){const y=g.columnName.split("_ecanrepeat_");p.push(y[0])}else p.push(g.columnName);m.push(g.order)}return h!=="CUSTOM"&&(v==null?void 0:v.length)>1&&(h="COMBINATION"),h==="CUSTOM"?{label:v.join(","),columnName:p.join(","),type:h,customOrderColumns:d}:{label:v.join(","),columnName:p.join(","),order:m.join(","),type:h}}return c},kn=c=>{const{sortCpnts:u=[]}=c;let f,h="";for(const d of u){const v=An(d)||{},{type:p,RECORD:m}=v;if(yn(p,"image")&&yn(m==null?void 0:m.value,["asc","desc"])){h=m.value.toUpperCase();break}}return h&&(f={label:c.label,columnName:c.name,order:h,type:"NORMAL"}),f},Mn=(c,u={})=>{var f,h,d,v,p,m,g,y,x,pn;const{graphicConfig:b,type:re,globalModel:_,isGroupTable:J=!1}=c;_&&(wn=_);const En=yn(re,"pivottable");let gn,{source:w,dataViewId:hn,plugin:vn="1",layer:Pn,chartType:Fn,classificationList:zn=[],rowHeaderList:Vn=[],dimensionList:Yn=[],seriesList:Gn=[],leftAxisList:Un=[],rightAxisList:Kn=[],queryColumnList:Hn=[],indicators:Qn=[],controlList:Zn=[],formFields:Rn={},variableList:qn=[],variableConditions:In=[],idxLibMode:Dn,preview:er=!1,edvDataSetId:Bn}=b||{},Jn=[];if((b==null?void 0:b.pageMode)==="design"?(Jn=((f=b.sqlConditions)!==null&&f!==void 0?f:[]).map(lr=>{const ur={};if(mn(lr,"globalCondition")||lr.join||(ur.globalCondition=!0),!lr.join){const fr=lr.rule||"EQUAL";ur.rule=fr==="NONE"?"EQUAL":fr}return Object.assign(Object.assign({},lr),ur)}),In!=null&&In.length&&(Jn=Jn.concat(In))):(Jn=Cn(b),qn!=null&&qn.length&&(Jn=Jn.concat(function(lr){const ur=[];if(lr!=null&&lr.length){for(const fr of lr)if(fr.variableName){const mr={variateName:fr.variableName,globalCondition:!1,valueType:fr.variableType,alias:fr.keyName||""};Nn(mr,fr.id,{dateFormat:fr.format,prop:fr.dateTypeValue,keyName:fr.keyName,operateType:fr.operateType,operateMode:fr.operateMode,operateValue:fr.operateValue}),fr.dataType===""&&(mr.fieldValue=fr.variableValue),fr.format&&(mr.dateFormat=fr.format),fr.label&&(mr.label=fr.label),ur.push(mr)}}return ur}(qn)))),Jn==null?void 0:Jn.length){const lr=Jn.filter(fr=>fr.globalCondition),ur=Jn.filter(fr=>!fr.globalCondition);(lr==null?void 0:lr.length)>1&&(Jn=[{join:"&&",conditions:lr},...ur])}Jn!=null&&Jn.length&&(Jn=_n(Jn,"1")),Pn==null&&(Pn=yn(re,["table","card"])||yn(re,["list","circulate"])&&(zn==null?void 0:zn.length)>1?"1":yn(re,["select","checkbox","radio"])?"3":"2");const Xn=[];let Wn,nr="";if(Array.isArray(zn)&&zn.length>0&&(!["ecanList","ecanCirculate"].includes(re)||(zn==null?void 0:zn.length)===1)){const lr=zn.length;for(let ur=0;ur<lr;ur++){const fr=zn[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,dateFormat:kr,typeGuid:Mr="",truncations:Ir=[]}=fr;if(br||lr===1){nr=Mr,gn={label:mr.trim(),columnName:yr,show:br,sort:kn(fr)||$n(Sr)||Sr,customGroup:Er,conditions:_n(wr),typeGuid:Mr},kr&&(gn.dateFormat=kr),yr!=="the_date"||gn.dateFormat||(gn.dateFormat="YYYY-MM");const Tr={};if(Array.isArray(Ir)&&Ir.length>0){const Fr=Ir.length;for(let Lr=0;Lr<Fr;Lr++){const Or=Ir[Lr]||{},{rule:Nr="",num:zr=0,name:qr=""}=Or;Nr&&zr&&(Tr.num=zr,Tr.rule=Nr,qr&&(Tr.otherGroupName=qr))}}if(!((h=Object.keys(Tr))===null||h===void 0)&&h.length&&(gn.truncation=Tr),!yn(re,["scatter","valueline"]))break;Xn.push(gn)}}}if(Array.isArray(Gn)&&Gn.length>0){const lr=Gn.length;for(let ur=0;ur<lr;ur++){const fr=Gn[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,typeGuid:kr}=fr;if(br||lr===1){Wn={label:mr.trim(),columnName:yr,show:br,sort:$n(Sr),customGroup:Er,conditions:_n(wr),typeGuid:kr};break}}}const ir=[];Un==null||Un.forEach(lr=>{lr.location="LEFT",ir.push(On(lr,gn))}),Kn==null||Kn.forEach(lr=>{lr.location="RIGHT",ir.push(On(lr,gn))});let ar=Qn;!((v=(d=u==null?void 0:u.pivotTableCal)===null||d===void 0?void 0:d.indicators)===null||v===void 0)&&v.length&&(ar=u.pivotTableCal.indicators),ar==null||ar.forEach(lr=>{lr.location="LEFT",ir.push(On(lr,gn))});const or=[];["ecanList","ecanCirculate"].includes(re)&&(zn==null?void 0:zn.length)>1&&(Hn=zn),!((m=(p=u==null?void 0:u.pivotTableCal)===null||p===void 0?void 0:p.dimensions)===null||m===void 0)&&m.length&&(Hn=u.pivotTableCal.dimensions),Hn==null||Hn.forEach(lr=>{const{label:ur,name:fr,location:mr,show:yr,indexCode:br,sort:Sr,typeGuid:Er,indexCodeNum:wr,dateFormat:kr,conditions:Mr}=lr;let Ir=$n(Sr);if(u.sort){const{field:Fr,order:Lr}=u.sort;let Or=ir.find(Nr=>Nr.label===Fr);Or||ur!==Fr||(Or=lr),Or&&(Ir={columnName:Or.columnName,label:u.sort.field,order:Lr.toUpperCase(),type:"NORMAL"})}const Tr={label:ur,columnName:fr,location:mr,show:yr,sort:Ir,calcType:"COLUMN",hrpIndexCode:br,hrpIndexCodeNum:wr,conditions:_n(Mr),typeGuid:Er};kr&&(Tr.dateFormat=kr),fr!=="the_date"||Tr.dateFormat||(Tr.dateFormat="YYYY-MM"),or.push(Tr)});let tr=[],sr=[];if(Array.isArray(Vn)&&Vn.length>0?sr=Vn:Array.isArray(Yn)&&Yn.length>0&&(sr=Yn),sr==null?void 0:sr.length){const lr=sr.length;for(let ur=0;ur<lr;ur++){const fr=sr[ur]||{},{label:mr="",name:yr="",show:br=!1,sort:Sr,customGroup:Er,conditions:wr,truncations:kr,typeGuid:Mr="",dateFormat:Ir}=fr;let Tr=$n(Sr);if(u.sort){const{field:Or,order:Nr}=u.sort;let zr=ir.find(qr=>qr.label===Or);zr||fr.label!==Or||(zr=fr),zr&&(Tr={columnName:zr.columnName,label:u.sort.field,order:Nr.toUpperCase(),type:"NORMAL"})}const Fr={label:mr.trim(),columnName:yr,show:br,sort:Tr,customGroup:Er,conditions:_n(wr),typeGuid:Mr};Ir&&(Fr.dateFormat=Ir),yr!=="the_date"||Fr.dateFormat||(Fr.dateFormat="YYYY-MM");const Lr={};if(Array.isArray(kr)&&kr.length>0){const Or=kr.length;for(let Nr=0;Nr<Or;Nr++){const zr=kr[Nr]||{},{rule:qr="",num:Zr=0,name:Kr=""}=zr;qr&&Zr&&(Lr.num=Zr,Lr.rule=qr,Kr&&(Lr.otherGroupName=Kr))}}!((g=Object.keys(Lr))===null||g===void 0)&&g.length&&(Fr.truncation=Lr),tr.push(Fr)}}let cr,vr,dr=[];if(u!=null&&u.pivotTableCal){let lr=[];const{calc:ur=[],filter:fr=[],truncations:mr=[],sorts:yr=[],aggregateMethod:br=[],rowDimensionKeys:Sr=[],colDimensionKeys:Er=[]}=u.pivotTableCal;if(ir.push(...ur),fr==null?void 0:fr.length)for(const wr of fr){const{type:kr}=wr,Mr=e(wr,["type"]);kr==="indicators"?lr=ir:kr==="dimension"&&(lr=or);const Ir=lr.find(Tr=>Tr.columnName===wr.fieldName);Ir&&(Ir.conditions||(Ir.conditions=[]),Ir.conditions.push(Mr))}if(mr!=null&&mr.length)for(const wr of mr){const kr=or.find(Mr=>Mr.columnName===wr.key);kr&&(kr.truncation={num:wr.num,rule:wr.rule})}if(yr!=null&&yr.length)for(const wr of yr){const{fieldType:kr,columnData:Mr}=wr,Ir=e(wr,["fieldType","columnData"]);kr==="indicators"?(lr=ir,cr=Mr):kr==="dimension"&&(lr=or);const Tr=lr.find(Fr=>Fr.label===Ir.label);Tr&&(Tr.sort=Object.assign(Object.assign({},Ir),{columnName:Tr.columnName}))}if(!((y=Object.keys(br))===null||y===void 0)&&y.length)for(const wr in br){const kr=or.find(Mr=>Mr.label===wr);kr&&(!((x=br[wr])===null||x===void 0)&&x.length)&&(kr.aggregateMethod=br[wr])}tr=[],dr=[];for(const wr of or)Sr.includes(wr.columnName)?tr.push(wr):Er.includes(wr.columnName)&&dr.push(wr)}if(yn(re,["text","proportion","counter"])?Fn="zb":yn(re,["valueline"])&&(Fn="valueline"),J||re==="card"){if(tr.length===0||ir.length===0)return;Fn="grouptable"}else if(Pn==="1"&&or.length===0||Pn==="2"&&ir.length===0||!(Pn!=="3"||(nr||w==="EDV_DATA_SET")&&Rn.labelField&&Rn.valueField)||Pn==="3"&&re==="ecanDataSelect"&&ir.length===0)return;if(Yn!=null&&Yn.length&&(Pn="1",Fn="grouptable"),!yn(re,["scatter","valueline"])&&((pn=Object.keys(Rn))===null||pn===void 0?void 0:pn.length)){const lr=bn(Zn).find(fr=>fr.conditionKey==="parentCode"),ur={};if(lr){const fr=An(lr.id)||{};if(!(fr!=null&&fr.itemCodes))return;ur.parentItemCodes=fr.itemCodes}re==="ecanDataSelect"&&(ur.indicatorList=ir.filter(fr=>fr.show)),w==="EDV_DATA_SET"&&(ur.edvDataSetId=Bn),vr=Object.assign({url:"/diagram/formData",source:w,dataViewId:hn,plugin:"4",layer:Pn,chartType:"normalSelect",rangeIndexTypeGuid:nr,type:re==="ecanDataSelect"?"normalSelectData":"normalSelect",labelField:Rn.labelField,valueField:Rn.valueField,sqlConditions:Jn,idxLibMode:"WITH_DATE_DIM_TABLE",keyName:c.keyName},ur)}else{let lr={};lr=yn(re,["scatter","valueline"])?{classifications:Xn}:{classification:gn},vr=Object.assign({url:"/diagram",source:w,dataViewId:hn,plugin:En?"5":vn,layer:Pn,chartType:En?"pivot-table":Fn,series:Wn,indicatorList:ir,queryColumns:J?[]:or,pageFlag:!0,edvDataSetId:Bn||"",sqlConditions:Jn.map(ur=>{const{fieldValue:fr}=ur,mr={};return fr&&Array.isArray(fr)&&(mr.fieldValue=JSON.stringify(fr)),Object.assign(Object.assign({},ur),mr)}),idxLibMode:Dn,preview:er,rowHeaders:tr,keyName:c.keyName,columnData:cr,columnHeaders:dr},lr)}return vr},useIndicatorData=(c={},u=()=>{})=>{var y;const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:h}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:d}=vue.inject(LOADED_DATA,{setLoadedData:(x,pn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{};c.dataType==="indicator"&&h();const m=async(x={})=>{var En,gn,w;const pn=v();d(c.id,!1);const b=Mn({...c,globalModel:pn},x),{url:re,..._}=b||{};let J=p||((En=window==null?void 0:window.config)==null?void 0:En.pageId);if(!J){const{pathname:hn}=window==null?void 0:window.location;if(hn){const vn=hn.split("/");vn!=null&&vn.length&&(J=vn[vn.length-1])}}if(re&&_)try{const hn=await request({url:`${INDICATOR_URL}${re}`,method:"post",headers:{Authentication:(gn=window==null?void 0:window.config)==null?void 0:gn.indicatorToken,operateContext:CONTEXT},data:{..._,pageId:J},signal:((w=window.controller)==null?void 0:w.signal)||""});return x!=null&&x.isTimer&&u(hn),hn}catch(hn){console.error(hn)}},g=vue.unref(f)!=="design"&&((y=c==null?void 0:c.graphicConfig)==null?void 0:y.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{m({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(g)}),m},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),f=u.length,h={};for(let d=0;d<f;d++){const v=u[d];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(h[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...h},window.config={...window.config,...h}},_sfc_main$u=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""}},setup(c){const{width:u,height:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),h=vue.inject("setPageHeight",vn=>{}),d=vue.inject("isMobile",!1),v=vue.computed(()=>{const vn={};return d||(vn.width=u.value,vn.height=f.value),{...vn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),p=vue.ref(0),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),x=vue.ref(!1),pn=vue.ref();let b;const re=()=>new Promise(vn=>{vue.nextTick(()=>{u.value&&f.value?(p.value=parseFloat(u.value),m.value=parseFloat(f.value)):(p.value=pn.value.clientWidth,m.value=pn.value.clientHeight),(!g.value||!y.value)&&(g.value=window.screen.width,y.value=window.screen.height),vn()})}),_=()=>{p.value&&m.value?(pn.value.style.width=`${p.value}px`,pn.value.style.height=`${m.value}px`):(pn.value.style.width=`${g.value}px`,pn.value.style.height=`${y.value}px`)};vue.watch([u,f],async()=>{c.pageId||(await re(),_(),En(),window.addEventListener("resize",gn),w()),x.value=!0},{immediate:!0});const J=vue.ref({});vue.provide("scaleValue",J);const En=()=>{if(d){pn.value.style.width="100%",pn.value.style.height="auto",h("auto");return}const vn=document.body.clientWidth,Pn=document.body.clientHeight,Fn=p.value||g.value,zn=m.value||y.value,Vn=vn/Fn;let Yn=Pn/zn;(p.value!==1920||m.value!==1080)&&(Yn=m.value/p.value*vn/zn),J.value={widthScale:Vn,heightScale:Yn},pn.value&&(pn.value.style.transform=`scale(${Vn}, ${Yn})`),h(Yn)},gn=lodashEs.debounce(async()=>{await re(),En()},100),w=()=>{const vn=window.MutationObserver;b=new vn(gn),b.observe(pn.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},hn=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)};return vue.onMounted(()=>{x.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",gn),hn()}),{style:v,container:pn,ready:x}}}),PageConfig_vue_vue_type_style_index_0_scoped_e1e149bf_lang="",_hoisted_1$g={id:"container",ref:"container"};function _sfc_render$z(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$g,[c.ready||c.pageId?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)):vue.createCommentVNode("",!0)],512)}const PageConfig=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$z],["__scopeId","data-v-e1e149bf"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[]},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$t=vue.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...providerConfigComponentProps,pageId:{type:String,default:""}},setup(c,{expose:u,emit:f}){c.pageId||useHrefParamsToGlobalVariables();const h=vue.computed(()=>!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)),d=vue.ref(),v=()=>{d.value.setAttribute("datav-theme",c.theme)},p=vue.inject("usedComponentList",[]),m=vue.inject("componentList",[]),g=vue.computed(()=>{const ur=[];for(const fr of vue.unref(p))fr.type==="ecanModal"?ur.push(...fr.componentList):ur.push(fr);return ur});vue.watch(()=>c.theme,()=>{v()}),vue.onMounted(()=>{v()});const y=vue.computed(()=>useVariablesInText(c.contextRequestUrl)),x=vue.computed(()=>c.pageMode),pn=vue.computed(()=>c.theme),b=vue.computed(()=>c.width),re=vue.computed(()=>c.height),_=vue.computed(()=>c.pageFontFamily),J=vue.computed(()=>{const ur=[],fr=vue.unref(m).filter(mr=>mr.type==="ecanModal");for(const mr of fr)mr!=null&&mr.requestList&&ur.push(...mr.requestList);return[...ur,...c.requestList]}),En=vue.ref("");vue.provide(GLOBAL_CONFIG,{contextRequestUrl:y,pageMode:x,theme:pn,touchEventId:En,width:b,height:re,fontFamily:_,requestList:J});const gn=vue.ref({height:"100%",overflow:c.pageMode==="design"?"":"hidden"});vue.provide("setPageHeight",ur=>{let fr=ur;h.value||(fr=parseFloat(re.value)*ur+"px"),gn.value.height=fr}),vue.provide("isMobile",h.value),vue.provide("getContainerMap",()=>c.containerMap),vue.provide("getCombinationMap",()=>c.combinationMap),vue.provide("templateOperate",{pageId:c.pageId,templateEmit:f,setTemplateData:ur=>{var fr;if(ur!=null&&ur.pageId){const{componentId:mr,...yr}=ur;(fr=window.config)!=null&&fr.urlParams||(window.config.urlParams={}),window.config.urlParams[ur.pageId]=yr,f("templateChange",ur)}}});const w=vue.ref(),hn=new Map,vn=()=>hn,Pn=ur=>hn.get(ur),Fn=(ur,fr)=>{var mr;if(w.value=fr,hn.set(ur,fr),!c.pageId){const yr=vue.unref(p).find(br=>br.id===ur);yr&&((mr=window.config)!=null&&mr.record||(window.config.record={}),window.config.record[yr.keyName]=fr)}},zn=()=>{w.value=null},Vn=ur=>{let fr=ur;if(fr){const mr=ur.match(/\{(.+?)\}/g);if(mr!=null&&mr.length){let yr=mr[0].slice(1,-1).trim();const br=yr.match(/\[(.+?)\]/g);let Sr="";br!=null&&br.length&&(yr=yr.replace(br[0],""),Sr=br[0].slice(1,-1).trim());const Er=vue.unref(g).find(wr=>wr.keyName===yr);if(Er){const wr=Pn(Er.id),{type:kr,value:Mr,RECORD:Ir,recordData:Tr}=wr||{};lowerCaseIncludes(kr,MODEL_KEY_LIST)?fr=Ir[Sr]:lowerCaseIncludes(kr,"select")?fr=Tr[Sr]:lowerCaseIncludes(kr,["rangePicker","date"])?dayjs.isDayjs(vue.unref(wr[Sr]))?fr=vue.unref(wr[Sr]).format(wr.format):fr=vue.unref(wr[Sr]):fr=Mr}else fr=(window.config.requestParams||{})[yr]||""}}return fr},Yn=new Map,Gn={},Un=async(ur,fr)=>{var Er;const{requestName:mr}=ur,yr=await useRequestData({...ur,projectRequestUrl:vue.unref(y),getModel:Pn})(),br=((Er=yr==null?void 0:yr.data)==null?void 0:Er.data)||{},Sr=Yn.get(mr);if(Sr!=null&&Sr.length&&(!fr||Gn[mr])){for(const wr of Sr)wr(br);fr||Yn.delete(mr)}},Kn=(ur,fr)=>{Gn[ur]&&(clearInterval(Gn[ur]),delete Gn[ur],Yn.delete(ur));const mr=vue.unref(g).filter(br=>!br.openCustomRequestData&&br.customRequestName===ur),yr=Yn.get(ur)||[];if((mr==null?void 0:mr.length)>yr.length&&(yr.push(fr),Yn.set(ur,yr),(mr==null?void 0:mr.length)===yr.length)){const br=vue.unref(J).find(Sr=>Sr.requestName===ur);br&&(br!=null&&br.isOpenRequestTimer&&(br!=null&&br.requestInterval)?(Un(br,!0),Gn[ur]=setInterval(()=>{Un(br,!0)},br.requestInterval*1e3)):Un(br))}};vue.provide(GLOBAL_MODEL,{getGlobalModel:Pn,setGlobalModel:Fn,getAllGlobalModel:vn,clearInteractiveData:zn,getRecordValueByKeyName:Vn,hanldePageRequestData:Kn,interactiveData:w});const Hn=vue.ref({}),Qn=(ur,fr)=>{Hn.value[ur]=fr};vue.provide(LOADED_DATA,{loadedData:Hn,setLoadedData:Qn});const Zn=[],Rn=()=>{Zn.pop()},qn=ur=>{Zn.push(ur)},In=new Map,Dn=ur=>In.get(ur),er=(ur,fr)=>{In.set(ur,fr)};vue.provide(MODAL_MODEL,{popUseModalIds:Rn,pushUseModalIds:qn,getModalModel:Dn,setModalModel:er});const Bn=mitt(),Jn=new Set,Xn=(ur,fr)=>{Jn.add(ur),Bn.on(ur,mr=>{const{eventName:yr,params:br}=mr;return typeof fr[yr]=="function"&&fr[yr](br)}),vue.onBeforeUnmount(()=>{Wn(ur)})},Wn=ur=>{Jn.delete(ur),Bn.off(ur)},nr=(ur,fr,mr={})=>{if(ur==="PAGE"){const yr=Zn.length;let br=[];if(yr===0)br=[...Jn];else{const Sr=Zn[yr-1];br=[...Dn(Sr)]}br.forEach(Sr=>{Bn.emit(Sr,{eventName:fr,params:mr})})}else Bn.emit(ur,{eventName:fr,params:mr})};vue.provide(EVENT_BUS,{onEvent:Xn,offEvent:Wn,emitEvent:nr});const ir=vue.ref(0),ar=()=>{ir.value=vue.unref(ir)+1};vue.provide(GLOBAL_TOKEN,{requestToken:ar});const or=new Map,tr=new Map,sr=({requestFn:ur=()=>{},sortNum:fr=0,id:mr=""})=>{if(or.has(fr)){const yr=or.get(fr);yr==null||yr.push(ur)}else or.set(fr,[ur]);tr.set(mr,ur)},cr=ur=>new Promise((fr,mr)=>{const yr=ur.map(br=>br());Promise.all(yr).then(br=>{fr(br)}).catch(br=>{mr(br)})}),vr=ur=>new Promise(async(fr,mr)=>{if(ur){if(typeof ur=="string"){const yr=tr.get(ur);if(typeof yr=="function"){const br=request.interceptors.response.use(Sr=>(fr(Sr),Sr),Sr=>(mr(Sr),Promise.reject(Sr)));yr(),request.interceptors.response.eject(br)}}}else{const yr=Array.from(or);yr.sort((Sr,Er)=>Er[0]-Sr[0]);const br=yr.length;try{c.pageMode!=="design"&&vue.unref(ir)>0;for(let Sr=0;Sr<br;Sr++){const Er=yr[Sr][1];await cr(Er)}}catch(Sr){console.error(Sr)}finally{or.clear(),fr(null)}}});vue.provide(REQUEST_MODEL,{setRequest:sr,touchRequest:vr});const dr=()=>{Bn.emit(REFRESH_PAGE)};vue.provide(REFRESH_PAGE,{emitRefreshPage:dr});const lr=ur=>{Bn.on(REFRESH_PAGE,()=>ur()),vue.onMounted(()=>{Bn.off(REFRESH_PAGE)})};return vue.watchEffect(()=>{var ur;if((ur=vue.unref(p))!=null&&ur.length&&vue.unref(x)!=="design"){const{jumpType:fr,jumpTime:mr,jumpPage:yr,jumpLink:br}=c;if(mr!=null&&mr.value){let Sr=0;switch(mr==null?void 0:mr.suffix){case"hours":Sr=mr.value*60*60*1e3;break;case"minute":Sr=mr.value*60*1e3;break;case"seconds":Sr=mr.value*1e3;break}setTimeout(()=>{let Er="";fr==="page"&&yr?Er=usePageUrl(vue.unref(x),yr):fr==="link"&&br&&(Er=br),Er=useVariablesInText(Er),window.open(Er,"_self")},Sr)}}}),vue.onBeforeUnmount(()=>{or==null||or.clear(),tr==null||tr.clear()}),u({touchRequest:vr,getGlobalModel:Pn,onRefreshPage:lr,emitEvent:nr,getRecordValueByKeyName:Vn,props:c}),{providerConfig:d,configStyle:gn}}}),ProviderConfig_vue_vue_type_style_index_0_scoped_d2563ca9_lang="";function _sfc_render$y(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{id:"ProviderConfig",ref:"providerConfig",style:vue.normalizeStyle({...c.configStyle,fontFamily:c.pageFontFamily})},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],4)}const ProviderConfig=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$y],["__scopeId","data-v-d2563ca9"]]),EcanProviderConfig=withInstall$1(ProviderConfig),textProps={...props,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{},percentageSide:"left",increaseColor:"",declineColor:"",minusSignShow:!0,unitShow:!0,unitText:"",unitFontSize:"14px",unitFontWeight:400,unitColor:"#333",unitTop:"",unitLeft:"",graphicConfig:{},targetShow:!1,targetRule:"",targetValue:"",notExpectColor:"",gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",openCustomRequestData:!0,customRequestName:"",customRequestField:"",showEllipsis:!1,showAnimation:!1,transParams:[],exceedConfig:"",targetTemplate:""},textComponentProps=transformToComponentProps(textProps),textEvents=["refreshData","click","valueChange"],goUp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",goDown="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",__default__$4=vue.defineComponent({name:"EcanText",components:{Skeleton},props:{...textComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c),d=vue.ref({}),v=vue.computed(()=>c.variableFontSize||"14px"),p=vue.computed(()=>"-"+vue.unref(v)),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y,hanldePageRequestData:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Bn=>{},setGlobalModel:(Bn,Jn)=>{},getRecordValueByKeyName:Bn=>{},hanldePageRequestData:(Bn,Jn)=>{}}),{setLoadedData:pn,loadedData:b}=vue.inject(LOADED_DATA,{setLoadedData:(Bn,Jn)=>{},loadedData:{}}),{setTemplateData:re}=vue.inject("templateOperate",{setTemplateData:Bn=>{}}),_=Bn=>{const Jn=c.id,Xn=m(Jn);g(Jn,{...Xn,value:Bn||"",RECORD:Bn||""})},J=Bn=>{var Jn,Xn;if(hasOwn(Bn,"value")&&_(Bn.value),c.showAnimation){const Wn=c.text.match(/\{(.+?)\}/g)||[];if(Wn!=null&&Wn.length){const nr=(Jn=Wn[0].slice(1,-1))==null?void 0:Jn.trim();if(vue.unref(d)[nr]===Bn){d.value=Bn;return}const ir=+Bn[nr];let ar=0;if(isNaN(ir))d.value=Bn;else{String(ir).includes(".")&&(ar=((Xn=String(ir).split(".")[1])==null?void 0:Xn.length)||0);const or=Math.abs(ir)*Math.pow(10,ar),tr=String(or).length;let sr=[];for(let vr=0;vr<5;vr++){const dr=Math.ceil(Math.random()*(or+1)-1);sr.includes(dr)||sr.push(dr)}sr.sort((vr,dr)=>vr-dr),sr=sr.map(vr=>{const dr=String(vr).split("").reverse(),lr=[];for(let ur=0;ur<tr;ur++)dr&&dr[ur]?lr.push(dr[ur]):lr.push("0");return ar&&lr.splice(ar,0,"."),(ir<0?"-":"")+lr.reverse().join("")}),sr.push(ir);let cr=0;for(const vr of sr)setTimeout(()=>{d.value={...vue.unref(d),[nr]:vr}},cr*1e3),cr+=.1}}else d.value=Bn}else d.value=Bn};vue.watch(()=>[c.data,c.dataType],([Bn,Jn])=>{Jn==="static"&&J(Bn)},{immediate:!0});const En=vue.computed(()=>{let Bn="";if(c.gradientShow){const{gradientColor:Jn,gradientOffset:Xn,gradientAngle:Wn,color:nr}=c;Bn+=`background: linear-gradient(${Wn}, ${nr}, ${Jn||"transparent"} ${Xn*100}%);-webkit-background-clip: text;color: transparent;`}return Bn}),gn=vue.computed(()=>{const Bn={};if(c.gradientShow){const{gradientColor:Jn,gradientOffset:Xn,gradientAngle:Wn,color:nr}=c,ir=Jn||"transparent";Bn.background=`linear-gradient(${Wn}, ${nr}, ${ir} ${Xn*100}%)`,Bn["-webkit-background-clip"]="text",Bn.color="transparent"}return Bn}),w=vue.computed(()=>{const Bn={};return c.linkPage&&(Bn.cursor="pointer",Bn.userSelect="none"),Bn}),hn=vue.ref(1),vn=vue.computed(()=>{var or;if(vue.unref(f))return`<span style="color:${c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${c.variableDefaultValue}</span>`;if(!hn.value)return;const Bn=vue.unref(d),Jn=c.increaseColor||c.color,Xn=c.declineColor||c.color;let Wn=c.text;Wn=Wn==null?void 0:Wn.replace(/\n|\\n/g,"<br/>"),Wn=Wn==null?void 0:Wn.replace(/\s(?!\{) | (?!\})\s/g," ");const nr=Wn.match(/\{(.+?)\}/g)||[];let ir="",ar="";if(c.exceedConfig==="wrap"?ar="show-wrap":c.exceedConfig==="ellipsis"&&(ar="show-ellipsis"),nr==null||nr.length===0){if(Wn&&c.format==="percentage"&&!isNaN(+Wn)){const tr=parseFloat(Wn),sr=tr*100,cr=Pn(sr.toFixed(2));tr>=0?Wn=`<span class="${ar}" style="color: ${cr||Jn||"#ED6643"};font-size:${vue.unref(v)};display: inline-block;${vue.unref(En)}">
|
|
103
103
|
<div class="percentage-img-box">
|
|
104
104
|
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${cr||Jn||"#ED6643"} ${vue.unref(v)} 0px)`};" src="${goUp}"/>
|
|
105
105
|
</div>
|
|
@@ -119,7 +119,7 @@ version: 2.9.0
|
|
|
119
119
|
<img style="width: ${vue.unref(v)};filter: ${`drop-shadow(${fr||Xn||"#6ACB97"} ${vue.unref(v)} 0px)`};" src="${goDown}"/>
|
|
120
120
|
</div>
|
|
121
121
|
<span style="color: ${fr||c.color};${vue.unref(En)}">${c.minusSignShow?"-":""}${Math.abs(+lr).toFixed(2)}%</span>
|
|
122
|
-
</span>`)}else c.format==="percent"?(lr=+lr,isNaN(lr)||(lr=(lr*100).toFixed(2),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}%</span>`))):c.format==="money"?(lr=+lr,isNaN(lr)||(lr=formatMoney(lr),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`))):ur==="thousands"?(lr=+lr,isNaN(lr)||(lr=formatThousands(lr),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`))):Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`)}}if(ir||(ir=`<span class="${ar}" style="color: ${Pn(Wn)};${vue.unref(En)}">${Wn}</span>`),c.unitShow&&c.unitText){const{unitTop:tr,unitLeft:sr}=c;let cr="position:relative;";tr&&(cr+=`top:${tr};`),sr&&(cr+=`margin-left:${sr};`),ir+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${cr};${vue.unref(En)}'>${c.unitText}</span>`}return c.exceedConfig&&(ir=`<span class="${ar}" style="display: inline-block;color: ${Pn(ir)};">${ir}</span>`),ir.includes("span")||(ir=`<span class="${ar}" style="color: ${Pn(ir)};">${ir}</span>`),ir});function Pn(Bn){let Jn="",Xn=!1;const{targetValue:Wn,targetShow:nr,notExpectColor:ir}=c;if(nr){switch(c.targetRule){case"equal":Bn!==Wn&&(Xn=!0);break;case"greater":Bn<=Wn&&(Xn=!0);break;case"greater_equal":Bn<Wn&&(Xn=!0);break;case"less":Bn>=Wn&&(Xn=!0);break;case"less_equal":Bn>Wn&&(Xn=!0);break}Xn&&(Jn=ir)}return Jn}const{pageMode:Fn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:zn}=vue.inject("templateOperate",{pageId:""})||{},Vn=useRequestData(c),Yn=vue.ref(!1),Gn=async()=>{var Bn,Jn,Xn;try{Yn.value=!0;const Wn=await Vn();(Bn=Wn==null?void 0:Wn.data)!=null&&Bn.data.rowsToData?J(((Jn=Wn==null?void 0:Wn.data)==null?void 0:Jn.data.rowsToData)||{}):J(((Xn=Wn==null?void 0:Wn.data)==null?void 0:Xn.data)||{})}catch(Wn){console.error(Wn)}finally{Yn.value=!1}},Un=()=>{_("")},Kn=Bn=>{var Xn,Wn;const{data:Jn}=(Bn==null?void 0:Bn.data)||{};if(Jn){f.value=!1;const{columns:nr=[],rows:ir=[]}=((Xn=Bn==null?void 0:Bn.data)==null?void 0:Xn.data)??{},{graphicConfig:ar}=c;let or={};if(nr.length>0)if((Wn=ar==null?void 0:ar.dimensionList)!=null&&Wn.length){const tr=nr[0];tr&&(ir!=null&&ir.length)&&(or={value:ir[0][tr]})}else{const tr=nr.find(sr=>!!sr);tr&&(or={value:isNaN(ir[tr])?0:ir[tr]||0})}_(or==null?void 0:or.value),J(or)}else f.value=!0,_(c.variableDefaultValue),J({value:c.variableDefaultValue})},Hn=useIndicatorData(c,Kn),Qn=async()=>{try{Yn.value=!0;const Bn=await Hn();Kn(Bn)}catch(Bn){console.error(Bn)}finally{Yn.value=!1,pn(c.id,!0)}},Zn=vue.ref(!1);vue.watch(b,Bn=>{if(c.dataType==="indicator"){const Jn=getFixedValueDatas(c.graphicConfig);Jn!=null&&Jn.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,Bn)?(Zn.value=!0,Rn()):canRequestIndicator(c.graphicConfig,Bn)||(Zn.value=!1))}},{deep:!0});const Rn=()=>{switch(c.dataType){case"indicator":Qn();break;case"request":{const{openCustomRequestData:Bn,customRequestName:Jn}=c;Bn||Bn===void 0?Gn():x(Jn,Xn=>{Xn&&(Xn.rowsToData?J(Xn.rowsToData):J(Xn))});break}}},{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:Jn,requestFn:Xn})=>{}});typeof qn=="function"&&qn({id:c.id,requestFn:Rn,sortNum:c.requestSort}),u({refreshData:Rn});const In=useEmitEvent(c),Dn=In("click",()=>{const Bn=document.getElementsByClassName(`ecan-text_${c.id}`);Bn!=null&&Bn.length&&_(Bn[0].innerText),setTimeout(()=>{_("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(Fn),targetTemplate:c.targetTemplate,getRecordValueByKeyName:y,setTemplateData:re})}),er=In("valueChange",()=>{hn.value++});return useOnEvent(c,{refreshData:Rn,resetRecord:Un,click:Dn,valueChange:er}),vue.watch(()=>vn.value,(Bn,Jn)=>{Bn!==Jn&&er()}),{style:h,myText:vn,loading:Yn,click:Dn,textIndent:p,vFontSize:v,gradientStyle:gn,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"0e45030c":c.vFontSize,"6a1b4876":c.textIndent,"678f5ec6":c.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_90e720f5_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+c.id]),style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText,onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-90e720f5"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),h=()=>{const{format:x,operate:pn}=c;let b=dayjs();if(pn){const{type:re,value:_,mode:J}=pn;switch(re){case"add":b=b.add(_,J);break;case"minus":b=b.subtract(_,J)}}return b.format(x)},d=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{d.value=h()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let x=1e3;const{value:pn,mode:b}=c.updateInterval||{};pn&&(x=x*pn);const re={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*re[b]),v=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c,["backgroundColor"]),d=(qn,In)=>{const{format:Dn,customFormatter:er}=In;if(Dn==null||Dn==="")return qn;const Bn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Bn[Dn]?Dn==="custom"?Bn[Dn](qn,er)||"":Bn[Dn](qn)||"":""},v=(qn,In)=>{const Dn=parseFloat(qn+"");if(In!=="contrast")return"";switch(!0){case Dn>=0:return"goUp";case Dn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var qn;if(c.dataType==="request")try{m.value=!0;const In=await p();f.value=((qn=In==null?void 0:In.data)==null?void 0:qn.data.rows)||[]}catch(In){console.error(In)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),x=vue.computed(()=>{const{columns:qn,isUseSeq:In}=c;return In?[vue.unref(y),...qn]:qn}),pn=qn=>{var er;const{columns:In=[],rows:Dn=[]}=((er=qn==null?void 0:qn.data)==null?void 0:er.data)??{};c.isUseSeq&&In.unshift(c.seqName),x.value.forEach((Bn,Jn)=>{(!c.isUseSeq||Jn!==0)&&(Bn.title=In[Jn],Bn.key=In[Jn])}),f.value=Dn},b=useIndicatorData(c,pn),re=async()=>{try{m.value=!0;const qn=await b();pn(qn)}catch(qn){console.error(qn)}finally{m.value=!1}},_=()=>{switch(c.dataType){case"indicator":re();break;case"request":g();break}},J=useEmitEvent(c),{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,In)=>{}}),w=qn=>{J("click",()=>{const In=En(c.id);gn(c.id,{...In,type:c.type,RECORD:qn})})()};useOnEvent(c,{refreshData:_,resetRecord:()=>{const qn=c.id,In=En(qn);gn(qn,{...In,type:c.type,RECORD:""})}});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:qn,sortNum:In,requestFn:Dn})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:_,sortNum:c.requestSort}),u({refreshData:_});const Pn=(qn,In)=>({flex:qn.width?"none":"1",width:qn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(In?qn.cellAlign:qn.align)||"left",backgroundColor:qn.cellColor}),Fn=(qn,In)=>{let Dn=0;const er=vue.unref(f).map(Jn=>Jn[In]),Bn=Math.max(...er);return Bn&&(Dn=qn[In]/Bn*100),Dn},zn=qn=>{const{progressColor:In="#1890ff",progressGradientColor:Dn=""}=qn;return Dn?{background:`linear-gradient(to right, ${In} 0%, ${Dn} 100%)`}:{backgroundColor:In||"#1890ff"}},Vn=vue.computed(()=>{const qn=parseFloat(c.seqFontSize)+5;return{width:qn+10,height:qn}}),{pageMode:Yn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Gn=vue.computed(()=>vue.unref(Yn)!=="design"&&c.isAutoScroll),Un=qn=>{const{seqIconConfig:In}=c;let Dn=In.find(er=>er.key===qn+1);return Dn||(Dn=In.find(er=>er.key==="other")),!!(Dn!=null&&Dn.icon)},Kn=(qn,In)=>{const{seqIconConfig:Dn}=c;let er=Dn.find(Bn=>Bn.key===qn+1);return er||(er=Dn.find(Bn=>Bn.key==="other")),In===1?er!=null&&er.icon?useImagePath(er.icon):"":In===2?(er==null?void 0:er.color)||"#fff":""},Hn=qn=>{const{seqIndexFormatter:In}=c,Dn=qn+1;return In?useVariablesInText(In,{textData:{index:Dn}},{useNewline:!1,useSpace:!0}):Dn},Qn=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),Zn=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:h,formatFn:d,contrastClass:v,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Pn,getPercentage:Fn,getBackgroundColor:zn,isShowSeqIcon:Un,getSeqIconData:Kn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Vn,isScroll:Gn,formatSeq:Hn,wrapStyle:Qn,colSpan:Zn,getText:(qn,In)=>(qn.format!=null||qn.format!=="")&&d(In[qn.key],qn)}}}),List_vue_vue_type_style_index_0_scoped_5ba2950a_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-5ba2950a"),c=c(),vue.popScopeId(),c),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(c,u,f,h,d,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||pn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||x,onClick:pn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,pn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[pn.key],pn.format),pn.key==="SEQ"?"seq-column":""]),key:pn.key,style:vue.normalizeStyle({fontSize:pn.fontSize,color:c.contrastClass(y[pn.key],pn.format)===""?pn.color:"",fontWeight:pn.fontWeight,...c.getColumnStyle(pn,"cell")})},[pn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):x===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):x===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):x>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):pn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:pn.progressWidth||"14px",backgroundColor:pn.progressBaseColor})},[vue.createVNode(p,{title:y[pn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:pn.progressWidth||"14px",width:`${c.getPercentage(y,pn.key)}%`,...c.getBackgroundColor(pn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(pn,y)},vue.toDisplayString(c.getText(pn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-5ba2950a"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),v=vue.computed(()=>{const Pn=c.width;return parseFloat(Pn)}),p=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(p.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Pn=vue.unref(p),Fn=+c.variableDefaultValue;if(Pn==null)return isNaN(Fn)?0:Fn;const zn=c.text.match(/\{(.+?)\}/g)||[];let Vn;const Yn=new Set(Object.keys(Pn));for(let Gn=0;Gn<zn.length;Gn++){const Un=zn[Gn],Kn=Un.slice(1,Un.length-1);if(Yn.has(Kn)){Vn=Pn[Kn];break}}return typeof Vn=="number"?Vn=Vn*100:typeof Vn=="string"&&!isNaN(+Vn)?Vn=+Vn*100:isNaN(Fn)?Vn=0:Vn=Fn*100,c.decimalFormat&&(Vn=+Vn.toFixed(2)),Vn}),g=vue.computed(()=>{var Yn;let Pn=c.text;if(Pn==="")return vue.unref(m);const Fn=c.variableDefaultValue,zn=vue.unref(p),Vn=Pn.match(/\{(.+?)\}/g)||[];for(let Gn=0;Gn<Vn.length;Gn++){const Un=Vn[Gn];let Kn=Un.slice(1,Un.length-1);const Hn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Qn=Un.match(Hn);for(let Rn=0;Rn<(Qn==null?void 0:Qn.length);Rn++){const qn=(Yn=Qn[Rn])==null?void 0:Yn.trim();zn[qn]!=null&&(Kn=Kn.replace(qn,zn[qn]))}let Zn=Kn;try{(/\(.*\)/g.test(Kn)||/[+/\\*]/g.test(Kn))&&(Zn=runCode(Kn))}catch(Rn){console.error(Rn)}typeof+Zn=="number"&&!isNaN(+Zn)?(Zn=+Zn*100,c.decimalFormat&&(Zn=Zn.toFixed(2))):typeof Zn!="string"&&(Zn=Fn),Pn=Pn.replace(Un,`<span style="color: ${c.variableColor};">${Zn+""}</span>`)}return Pn=Pn==null?void 0:Pn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Pn}),y=useRequestData(c),x=vue.ref(!1),pn=async()=>{var Pn,Fn,zn,Vn,Yn;if(c.dataType==="request")try{x.value=!0;const Gn=await y();p.value=((Pn=Gn==null?void 0:Gn.data)==null?void 0:Pn.data)||{},(zn=(Fn=Gn==null?void 0:Gn.data)==null?void 0:Fn.data)!=null&&zn.rowsToData&&(p.value=((Yn=(Vn=Gn==null?void 0:Gn.data)==null?void 0:Vn.data)==null?void 0:Yn.rowsToData)||{})}catch(Gn){console.error(Gn)}finally{x.value=!1}},b=(Pn={})=>{p.value=Pn},re=Pn=>{var zn;const{data:Fn}=(Pn==null?void 0:Pn.data)||{};if(Fn){f.value=!1;const{columns:Vn=[],rows:Yn=[]}=((zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)??{};let Gn={};if(Vn.length>0){const Un=Vn.find(Kn=>!!Kn);Un&&(Gn={percent:Yn[Un]})}b(Gn)}else f.value=!0,b({percent:"NaN"})},_=useIndicatorData(c,re),J=async()=>{try{x.value=!0;const Pn=await _();re(Pn)}catch(Pn){console.error(Pn)}finally{x.value=!1}},En=()=>{switch(c.dataType){case"indicator":J();break;case"request":pn();break}};useOnEvent(c,{refreshData:En}),u({refreshData:En});const w=useEmitEvent(c)("click",()=>{}),{setRequest:hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Fn,requestFn:zn})=>{}});typeof hn=="function"&&hn({id:c.id,requestFn:En,sortNum:c.requestSort});const vn=vue.computed(()=>{const{gradientShow:Pn,gradientColor:Fn,gradientOffset:zn,strokeColor:Vn}=c;let Yn=Vn;return Pn&&(Yn={"0%":Vn||"transparent",[`${zn*100}%`]:Fn||"transparent"}),Yn});return{style:d,myWidth:v,text:g,myValue:m,loading:x,click:w,customStrokeColor:vn}}}),Proportion_vue_vue_type_style_index_0_scoped_66e28f38_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-66e28f38"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c),d=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([vn,Pn])=>{Pn==="static"&&(f.value=vn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:vn=>{},setGlobalModel:(vn,Pn)=>{}}),y=useEmitEvent(c)("click",()=>{const vn=p(c.id);m(c.id,{...vn,type:c.type,value:vue.unref(f)})}),x=()=>{const vn=c.id,Pn=p(vn);m(vn,{...Pn,type:c.type,value:""})},pn=useRequestData(c),b=vue.ref(!1),re=async()=>{var vn,Pn;try{b.value=!0;const Fn=await pn();f.value=((Pn=(vn=Fn==null?void 0:Fn.data)==null?void 0:vn.data)==null?void 0:Pn.value)||""}catch(Fn){console.error(Fn)}finally{b.value=!1}},_=vn=>{var zn;const{data:Pn}=(vn==null?void 0:vn.data)||{};let Fn="";if(Pn){const{columns:Vn=[],rows:Yn=[]}=((zn=vn==null?void 0:vn.data)==null?void 0:zn.data)??{};if(Vn.length>0){const Gn=Vn.find(Un=>!!Un);Gn&&(Fn=Yn[Gn]||"")}}f.value=String(Fn)},J=useIndicatorData(c,_),En=async()=>{try{b.value=!0;const vn=await J();_(vn)}catch(vn){console.error(vn)}finally{b.value=!1}},gn=()=>{switch(c.dataType){case"indicator":En();break;case"request":re();break}},w=vue.computed(()=>{const vn=[],{digits:Pn}=c,Fn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let zn=0;zn<Pn;zn++)Fn&&Fn[zn]?vn.push(Fn[zn]):vn.push("0");return vn.reverse()});useOnEvent(c,{refreshData:gn,resetRecord:x});const{setRequest:hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:vn,sortNum:Pn,requestFn:Fn})=>{}});return typeof hn=="function"&&hn({id:c.id,requestFn:gn,sortNum:c.requestSort}),u({refreshData:gn}),{style:h,valueList:w,digitsStyle:d,fontStyle:v,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(c,u,f,h,d,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:h,setGlobalModel:d,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=v(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const p=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(c,u,f,h,d,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.computed(()=>{let Gn=["year","month","day"];switch(c.picker){case"year":Gn=["year"];break;case"month":Gn=["year","month"];break}return Gn});vue.watch(()=>[c.value,c.useCurrentTime,c.operate],([Gn,Un,Kn])=>{let Hn=null;if(Gn?Hn=dayjs(useVariablesInText(Gn)):Un&&(Hn=dayjs()),Kn&&Hn){const{type:Qn,value:Zn,mode:Rn}=Kn;switch(Qn){case"add":Hn=Hn.add(Zn,Rn);break;case"minus":Hn=Hn.subtract(Zn,Rn)}}v.value=Hn,p.value=Hn,vue.unref(u)&&zn(Hn)},{deep:!0,immediate:!0});const{setGlobalModel:pn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Gn,Un)=>{}}),{pageId:b}=vue.inject("templateOperate",{pageId:""})||{};pn(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v});const _=useEmitEvent(c)("dateChange",()=>{const Gn=getNewValueFromUrlParams(b,c.keyName,"value");Gn&&(v.value=dayjs(Gn))}),J=()=>{vue.unref(v)&&_()};useOnEvent(c,{dateChange:_});const En=vue.ref({}),gn=vue.ref({}),w=Gn=>{Gn?setTimeout(()=>{gn.value=vue.unref(En)},300):gn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Gn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Gn){const Un=Gn.getBoundingClientRect(),Kn=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-Un.left<Kn&&(En.value.marginLeft=-1*(Kn-Un.width)+"px")}},0)});const hn=()=>{zn(vue.unref(v)),g.value=!0},vn=()=>{zn(),v.value=null},Pn=()=>{const Gn=dayjs(vue.unref(y).join("-"));v.value=Gn,zn(Gn),g.value=!1,J()},Fn=()=>{v.value=dayjs(),zn(),m.value=dayjs().format(c.format),g.value=!1};function zn(Gn){y.value=Vn(Gn||dayjs()),m.value=(Gn==null?void 0:Gn.format(c.format))||""}function Vn(Gn){const Un=[];for(const Kn of vue.unref(x))Kn==="day"?Un.push(Gn.date()):Un.push(Gn[Kn]()+(Kn==="month"?1:0));return Un}return{style:h,getPopupContainer:d,myValue:v,locale,change:J,scaleValue:f,popupStyle:En,customStyle:gn,openChange:w,isMobile:u,mobileDateStr:m,handleClearDate:vn,openDatePick:hn,datePickVisible:g,columnsType:x,mobileDate:y,onConfirmDate:Pn,onCancelDate:Fn,disabledDate:Gn=>{let Un=!1,{limitStartTime:Kn,limitEndTime:Hn}=c,Qn=c.picker;const Zn={current:vue.unref(p)};return c.picker==="date"&&(Qn="day"),Kn=useVariablesInText(Kn,{textData:Zn}),Hn=useVariablesInText(Hn,{textData:Zn}),Kn&&Hn?Un=!(dayjs(Kn).isBefore(Gn,Qn)&&Gn.isBefore(dayjs(Hn),Qn)):Kn?Un=Gn.isBefore(dayjs(Kn),Qn):Hn&&(Un=dayjs(Hn).isBefore(Gn,Qn)),Un}}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({10653284:c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_3e281dca_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),pn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileDate=b),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(pn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-3e281dca"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f="month",h="quarter";return function(d,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,x){return y=Number(y),this.$utils().p(x)===h?this.add(3*y,f):m.bind(this)(y,x)};var g=p.startOf;p.startOf=function(y,x){var pn=this.$utils(),b=!!pn.u(x)||x;if(pn.p(y)===h){var re=this.quarter()-1;return b?this.month(3*re).startOf(f).startOf("day"):this.month(3*re+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref([null,null]),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.ref(),pn=vue.ref(),b=vue.ref(),re=vue.ref(0),_=vue.ref({}),J=vue.ref(""),En=vue.computed(()=>{let tr=["year","month","day"];switch(c.picker){case"year":tr=["year"];break;case"month":tr=["year","month"];break}return tr});vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([tr,sr,cr,vr,dr,lr])=>{if(vue.unref(v).every(ur=>!ur)||vue.unref(f)==="design"){let ur=null,fr=null;if(cr&&(ur=dayjs().subtract(vr,dr),fr=dayjs()),tr&&(ur=dayjs(useVariablesInText(tr))),sr&&(fr=dayjs(useVariablesInText(sr))),lr){const{type:mr,value:yr,mode:br}=lr;switch(mr){case"add":ur=ur&&ur.add(yr,br),fr=fr&&fr.add(yr,br);break;case"minus":ur=ur&&ur.subtract(yr,br),fr=fr&&fr.subtract(yr,br)}}v.value=[ur,fr],vue.unref(u)&&ar()}},{immediate:!0});let gn=vue.unref(v)[0],w=vue.unref(v)[1],hn="";const vn=(tr,sr,cr)=>{Array.isArray(tr)?(gn=tr[0],w=tr[1],hn=cr.range):(gn=null,w=null)},Pn=tr=>{let sr=!1,{limitStartTime:cr,limitEndTime:vr}=c;const dr={startTime:`${gn||""}`,endTime:`${w||""}`};if(cr=useVariablesInText(cr,{codeData:dr}),vr=useVariablesInText(vr,{codeData:dr}),cr&&vr?sr=!(dayjs(cr)<tr&&tr<dayjs(vr)):cr?sr=dayjs(cr)>tr:vr&&(sr=dayjs(vr)<tr),!c.isAllowSpanYear&&hn){let lr=null;if(hn==="start"?lr=gn:hn==="end"&&(lr=w),lr){const ur=lr.startOf("year"),fr=lr.endOf("year");sr=!(ur<=tr&&tr<fr)}}if(!sr){const{value:lr=0,mode:ur="year"}=c.limitInterval||{};lr&&(hn==="start"?sr=gn.add(lr,ur)<tr:hn==="end"&&(sr=w.subtract(lr,ur)>tr))}return sr},{getGlobalModel:Fn,setGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,sr)=>{}}),Vn=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[0]:null),Yn=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[1]:null),{pageId:Gn}=vue.inject("templateOperate",{pageId:""})||{};zn(c.id,{type:c.type,format:c.format,startTime:Vn,endTime:Yn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const Un=useEmitEvent(c);let Kn=!1;const Hn=Un("dateChange",()=>{var cr;const tr=getNewValueFromUrlParams(Gn,c.keyName,"startTime"),sr=getNewValueFromUrlParams(Gn,c.keyName,"endTime");(cr=v.value)!=null&&cr.length||(v.value=[null,null]),tr&&(v.value[0]=dayjs(tr)),sr&&(v.value[1]=dayjs(sr))}),Qn=tr=>{const sr=vue.unref(v),cr=sr&&sr[0]&&sr[1];tr===!1&&Kn===!0&&cr&&(Hn(),Kn=!1),tr||(hn="")},Zn=()=>{Kn=!0},Rn=()=>{const{associated:tr}=c;if(tr){const sr=Fn(tr)||{};if(sr){const{value:cr}=sr;if(cr)switch(vue.unref(cr)){case"month":v.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":v.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":v.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}Hn()},qn=()=>{nr(vue.unref(v)),p.value=!0},In=()=>{nr(),J.value="",v.value=[null,null]},Dn=()=>{v.value=[dayjs(vue.unref(m).join("-")),dayjs(vue.unref(g).join("-"))],nr(vue.unref(v)),ir(),Xn(),p.value=!1,Hn()},er=()=>{Wn(),p.value=!1},Bn=()=>{var tr,sr;(tr=vue.unref(m))!=null&&tr.length&&c.format&&(pn.value=new Date(vue.unref(m).join("-")),(sr=vue.unref(g))!=null&&sr.length&&dayjs(vue.unref(g).join("-")).isBefore(dayjs(vue.unref(m).join("-")))&&(g.value=lodashEs.cloneDeep(vue.unref(m))))},Jn=()=>{var tr,sr;(tr=vue.unref(g))!=null&&tr.length&&c.format&&(x.value=new Date(vue.unref(g).join("-")),(sr=vue.unref(m))!=null&&sr.length&&dayjs(vue.unref(m).join("-")).isAfter(dayjs(vue.unref(g).join("-")))&&(m.value=lodashEs.cloneDeep(vue.unref(g))))};function Xn(){_.value={startMinDate:lodashEs.cloneDeep(vue.unref(y)),startMaxDate:lodashEs.cloneDeep(vue.unref(x)),endMinDate:lodashEs.cloneDeep(vue.unref(pn)),endMaxDate:lodashEs.cloneDeep(vue.unref(b))}}function Wn(){y.value=vue.unref(_).startMinDate,x.value=vue.unref(_).startMaxDate,pn.value=vue.unref(_).endMinDate,b.value=vue.unref(_).endMaxDate}function nr(tr=[]){m.value=or(tr[0]||dayjs()),g.value=or(tr[1]||dayjs())}function ir(){var cr,vr;const tr=(cr=vue.unref(m))!=null&&cr.length?dayjs(vue.unref(m).join("-")):"",sr=(vr=vue.unref(g))!=null&&vr.length?dayjs(vue.unref(g).join("-")):"";J.value=tr&&sr&&`${tr.format(c.format)} 至 ${sr.format(c.format)}`}function ar(){const{limitStartTime:tr,limitEndTime:sr,limitInterval:cr,isAllowSpanYear:vr}=c;nr(vue.unref(v)),tr&&(y.value=new Date(tr),pn.value=new Date(tr),vue.unref(v)[0].isBefore(dayjs(tr))&&(vue.unref(v)[0]=dayjs(tr),m.value=or(vue.unref(v)[0]))),sr&&(x.value=new Date(sr),b.value=new Date(sr),vue.unref(v)[1].isAfter(dayjs(sr))&&(vue.unref(v)[1]=dayjs(sr),g.value=or(vue.unref(v)[1]))),vue.unref(v).every(dr=>dr)&&(cr!=null&&cr.value)&&vue.unref(v)[1].diff(vue.unref(v)[0],cr.mode)>cr.value&&(vue.unref(v)[0]=vue.unref(v)[1].subtract(cr.value,cr.mode),m.value=or(vue.unref(v)[0])),vue.unref(v).every(dr=>dr)&&!vr&&vue.unref(v)[0].year()!==vue.unref(v)[1].year()&&(vue.unref(v)[0]=dayjs(`${vue.unref(v)[1].year()}-01-01`),m.value=or(vue.unref(v)[0])),Xn(),ir()}function or(tr){const sr=[];for(const cr of vue.unref(En))cr==="day"?sr.push(tr.date()):sr.push(tr[cr]()+(cr==="month"?1:0));return sr}return useOnEvent(c,{dateChange:Rn}),{style:h,getPopupContainer:d,locale,dateChange:Hn,myValue:v,disabledDate:Pn,calendarChange:vn,openChange:Qn,change:Zn,isMobile:u,mobileDateStr:J,datePickVisible:p,columnsType:En,openDatePick:qn,handleClearDate:In,onConfirmDate:Dn,onCancelDate:er,mobileStartDate:m,mobileEndDate:g,startMinDate:y,startMaxDate:x,endMinDate:pn,endMaxDate:b,pickerTabKey:re,onStartDateChange:Bn,onEndDateChange:Jn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"46b8899f":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_5bde1d03_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),pn=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(pn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=re=>c.datePickVisible=re),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=re=>c.pickerTabKey=re),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=re=>c.mobileStartDate=re),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=re=>c.mobileEndDate=re),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=re=>c.myValue=re),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-5bde1d03"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),h=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),d=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>useVariablesInText(c.text)),p=vue.computed(()=>useVariablesInText(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:v,myHref:p,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=vue.ref([]),d=vue.ref([]),v=gn=>{const w=c.value;let hn=[];gn.forEach(vn=>{vn.checked&&hn.push(vn.value)}),typeof w=="string"&&w!==""?hn=hn.concat(w.split(",")):Array.isArray(w)&&(hn=hn.concat(w)),h.value=gn,d.value=hn};vue.watch(()=>[c.data,c.value],([gn])=>{v(gn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var hn,vn;if(c.dataType!=="request")return;const gn=await p(),w=((vn=(hn=gn==null?void 0:gn.data)==null?void 0:hn.data)==null?void 0:vn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,w)=>{}});y(c.id,{type:c.type,value:d});const pn=useEmitEvent(c)("checkboxChange",()=>{const gn=g(c.id);y(c.id,{...gn,RECORD:d})}),b=gn=>{var hn;const{data:w}=(gn==null?void 0:gn.data)||{};if(w){const Pn=(((hn=gn==null?void 0:gn.data)==null?void 0:hn.data)??[]).map(Fn=>({label:Fn.label,value:Fn.value}));v(Pn)}else v([])},re=useIndicatorData(c,b),_=async()=>{try{const gn=await re();b(gn)}catch(gn){console.error(gn)}},J=()=>{switch(c.dataType){case"indicator":_();break;case"request":m();break}},{setRequest:En}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:w,requestFn:hn})=>{}});return typeof En=="function"&&En({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J}),{myOption:h,style:f,myValue:d,checkboxChange:pn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,h,d,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var ir,ar,or;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((ir=c.dataFieldNames)==null?void 0:ir.label)||"label",value:((ar=c.dataFieldNames)==null?void 0:ar.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var sr;const{mode:tr}=c;return(sr=vue.unref(g))!=null&&sr.length?y.value:tr==="multiple"||tr==="tags"||tr==="combobox"?[]:""},set:tr=>{y.value=tr}}),pn=vue.computed(()=>{const{value:tr,label:sr}=c.dataFieldNames,cr=[];if(Array.isArray(vue.unref(x)))for(const vr of vue.unref(x)){const dr=vue.unref(g).find(lr=>lr[tr]===vr);dr&&cr.push(dr[sr])}else{const vr=vue.unref(g).find(dr=>dr[tr]===vue.unref(x));vr&&cr.push(vr[sr])}return cr.join(",")}),{getGlobalModel:b,setGlobalModel:re,getRecordValueByKeyName:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,sr)=>{},getRecordValueByKeyName:tr=>{}}),J=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:tr,selectFirstOption:sr,value:cr}=c,vr=_(cr),dr=J.value;if(tr==="multiple"||tr==="tags"||tr==="combobox"){if(vr)y.value=vr.split(",");else if(sr){const lr=vue.unref(g)[0];y.value=lr?[lr[dr]]:[]}}else if(vr)y.value=vr;else if(sr){const lr=vue.unref(g)[0];y.value=lr?lr[dr]:""}},{immediate:!0});const En=(tr,sr)=>{const cr=J.label,vr=J.value;let dr;const lr=sr[cr],ur=sr[vr];return lr!=null?dr=lr:ur!=null&&(dr=ur),(dr==null?void 0:dr.toLowerCase().indexOf(tr==null?void 0:tr.toLowerCase()))>=0},gn=tr=>{const{label:sr,value:cr,options:vr}=c.dataFieldNames;if(vr&&Array.isArray(tr))if(tr.some(dr=>vr in dr)){const dr={},lr=[];tr.forEach(ur=>{dr[ur[vr]]||(dr[ur[vr]]=[]),dr[ur[vr]].push({[sr]:ur[sr],[cr]:ur[cr]})});for(const ur in dr)lr.push({[sr]:ur,[vr]:dr[ur]});return lr}else return tr;else{if(!vr&&Array.isArray(tr))return tr=tr.map(dr=>({label:dr[sr],value:dr[cr]})),tr;if(!vr&&!Array.isArray(tr))return tr}},w=vue.ref(!1),hn=tr=>{var sr,cr;if(g.value=gn(((cr=(sr=tr==null?void 0:tr.data)==null?void 0:sr.data)==null?void 0:cr.rows)||[]),c.selectFirstOption){let vr=vue.unref(g)[0];if(J.options){const dr=vr[J.options];dr&&dr.length&&(vr=dr[0])}y.value=vr[J.value]}},vn=useRequestData(c),Pn=async()=>{if(c.dataType==="request"){w.value=!0;try{const tr=await vn();hn(tr)}catch(tr){console.error(tr)}finally{w.value=!1}}},{setLoadedData:Fn,loadedData:zn}=vue.inject(LOADED_DATA,{setLoadedData:(tr,sr)=>{},loadedData:{}}),Vn=vue.computed(()=>{let tr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const sr=J.label,cr=J.value;if(c.mode==="multiple")tr=vue.unref(g).filter(vr=>vue.unref(y).includes(vr[cr])).map(vr=>vr[sr]);else{const vr=vue.unref(g).find(dr=>vue.unref(y)===dr[cr]);vr&&(tr=vr[sr])}}return tr}),Yn=vue.ref([]),Gn=vue.computed(()=>{const tr={};if(c.mode!=="multiple"){const sr=vue.unref(Yn).find(cr=>cr.value===vue.unref(y));sr&&(tr.itemCodes=sr.item_codes)}return tr}),Un=vue.computed(()=>{const{value:tr,label:sr}=J,cr=vue.unref(g).find(vr=>vr[tr]===vue.unref(x));return cr?{label:cr[sr],value:cr[tr]}:{}}),{pageId:Kn}=vue.inject("templateOperate",{pageId:""})||{};re(c.id,{type:c.type,value:Vn,label:(or=vue.unref(Un))==null?void 0:or.label,...vue.unref(Gn),recordData:vue.unref(Un)});const Hn=useEmitEvent(c),Qn=Hn("selectChange",()=>{const tr=c.id,sr=b(tr);re(tr,{...sr,...vue.unref(Gn),RECORD:Vn,recordData:vue.unref(Un)});const cr=getNewValueFromUrlParams(Kn,c.keyName,"value");cr&&(x.value=cr)}),Zn=Hn("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const tr=c.id;re(tr,{RECORD:"",recordData:vue.unref(Un)})}),Rn=(tr=[])=>{var cr,vr;const sr=gn(tr);if((vr=(cr=c==null?void 0:c.graphicConfig)==null?void 0:cr.formFields)!=null&&vr.hasAllOption){const dr=J.label,lr=J.value;sr.unshift({[dr]:"全部",[lr]:""})}if(g.value=sr,c.selectFirstOption){let dr=vue.unref(g)[0];if(J.options){const lr=dr[J.options];lr&&lr.length&&(dr=lr[0])}y.value=dr[J.value]}re(c.id,{type:c.type,value:Vn,...vue.unref(Gn),recordData:vue.unref(Un)})},qn=tr=>{var dr;const{data:sr}=(tr==null?void 0:tr.data)||{},cr=J.label,vr=J.value;if(sr){const{rows:lr=[]}=((dr=tr==null?void 0:tr.data)==null?void 0:dr.data)||{};Yn.value=lr;const ur=lr.map(yr=>({[cr]:yr.label,[vr]:yr.value})),{id:fr}=c,mr=b(fr);re(fr,{...mr,...vue.unref(Gn)}),Fn(fr,!0),Rn(ur)}else Rn([])},In=useIndicatorData(c,qn),Dn=async()=>{try{w.value=!0;const tr=await In();qn(tr)}catch(tr){console.error(tr)}finally{w.value=!1}},er=vue.computed(()=>{var tr,sr;return(sr=getConditions(((tr=c==null?void 0:c.graphicConfig)==null?void 0:tr.controlList)||[]))==null?void 0:sr.find(cr=>cr.conditionKey==="parentCode")}),Bn=vue.ref(!1);vue.watch(zn,tr=>{!vue.unref(Bn)&&vue.unref(er)&&tr[vue.unref(er).id]&&(Bn.value=!0,Jn())},{deep:!0});const Jn=()=>{switch(c.dataType){case"indicator":{if(vue.unref(er)){if(vue.unref(zn)[vue.unref(er).id]){const{mode:tr}=c;tr==="multiple"||tr==="tags"||tr==="combobox"?x.value=[]:x.value="",Dn()}}else Dn();break}case"request":Pn();break}};useOnEvent(c,{selectChange:Qn,refreshData:Jn,clearValue:Zn});const{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:({id:tr,sortNum:sr,requestFn:cr})=>{}});return typeof Xn=="function"&&Xn({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:p,getPopupContainer:m,myValue:y,selectChange:Qn,options:g,filterOption:En,loading:w,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(v)[0],Qn(),h.value=!1},mobileValue:pn,openPicker:()=>{var tr;!Array.isArray(vue.unref(x))&&((tr=vue.unref(g))!=null&&tr.length)&&c.dataFieldNames.value&&(v.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:v}}}),Select_vue_vue_type_style_index_0_scoped_cb904478_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,v){const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),pn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:"请选择日期",readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p)]),_:1},8,["value","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(pn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(b,re)=>(vue.openBlock(),vue.createBlock(x,{key:re,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-cb904478"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),h=(_,J)=>{const En=c.dataFieldNames,gn=En.label,w=En.value;let hn;const vn=J[gn],Pn=J[w];return vn!=null?hn=vn:Pn!=null&&(hn=Pn),(hn==null?void 0:hn.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:_,value:J,selectFirstOption:En}=c;_?J?d.value=J.split(","):En&&(d.value=[vue.unref(f)[0]]):J?d.value=J:En&&(d.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=_=>{var En,gn;f.value=((gn=(En=_==null?void 0:_.data)==null?void 0:En.data)==null?void 0:gn.rows)||[];const J=vue.unref(f)[0];c.value===""&&J!=null&&(d.value=J[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const _=await m();p(_)}catch(_){console.error(_)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,J)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const _=c.id,J=y(_);x(_,{...J,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:_,sortNum:J,requestFn:En})=>{}});return re({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:v,selectChange:b}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,h,d,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(p,{class:"tree-select",value:h.myValue,"onUpdate:value":u[0]||(u[0]=m=>h.myValue=m),allowClear:"",showSearch:"",loading:h.loading,fieldNames:c.dataFieldNames,treeData:h.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:h.filterTreeNode,placeholder:c.placeholder,onChange:h.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=vue.ref([]),v=vue.ref(""),p=(Pn=[])=>{var Vn;const Fn=c.value;let zn=[];typeof Fn=="string"&&Fn!==""?zn=zn.concat(Fn.split(",")):Array.isArray(Fn)&&(zn=zn.concat(Fn)),d.value=Pn,c.selectFirstOption?v.value=((Vn=Pn[0])==null?void 0:Vn.value)||"":v.value=zn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Pn])=>{vue.unref(f)==="design"&&p(Pn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var zn,Vn;if(c.dataType!=="request")return;const Pn=await m(),Fn=((Vn=(zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)==null?void 0:Vn.rows)||[];p(Fn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Pn=>{},setGlobalModel:(Pn,Fn)=>{}});x(c.id,{type:c.type,value:v});const pn=useEmitEvent(c),b=()=>{const Pn=vue.unref(d).find(Fn=>Fn.value===vue.unref(v))||{};pn("checkboxChange",()=>{const Fn=y(c.id);x(c.id,{...Fn,RECORD:v})},Pn)()},re=Pn=>{v.value=Pn,pn("click",()=>{const Fn=y(c.id);x(c.id,{...Fn,RECORD:v})})()};vue.watch(v,()=>{b()});const _=Pn=>{var zn;const{data:Fn}=(Pn==null?void 0:Pn.data)||{};if(Fn){const Yn=(((zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)??[]).map(Gn=>({label:Gn.label,value:Gn.value}));p(Yn)}else p([])},J=useIndicatorData(c,_),En=async()=>{try{const Pn=await J();_(Pn)}catch(Pn){console.error(Pn)}},gn=()=>{switch(c.dataType){case"indicator":En();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Fn,requestFn:zn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:gn,sortNum:c.requestSort});const hn=Pn=>{v.value=Pn.value},vn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),u({refreshData:gn}),{myOption:d,style:h,myValue:v,radioStyle:vn,onClickButton:re,useImagePath,tabChange:hn}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(c,u,f,h,d,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:x,onClick:vue.withModifiers(pn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$9))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:x=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:""},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:h}=u,d=h["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(d),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,h=lodashEs.cloneDeep(c.componentList),d=h.filter(v=>v.type==="ecanTabs"&&v.isAutoScroll);if(d!=null&&d.length)for(const v of d){const p=u[v.id],m=[];if((!hasOwn(v,"componentList")||!(v!=null&&v.componentList))&&(v.componentList=[]),p){let g=0;for(const y in p){const x=p[y],pn=[];if(x!=null&&x.length)for(const b of x){let re=h.find(_=>_.id===b);re||(re=f.find(_=>_.id===b)),re&&(pn.push(re),containerType.includes(re.type)&&pn.push(...getComponentByContainer(re.id,u,f)))}for(const b of pn)hasOwn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(v.sourceLeft||v.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(v.sourceTop||v.top)+"px"),m.includes(b.id)||m.push(b.id);v.componentList.push(...pn),g=getMaxLeftInComponents(pn)}}for(const g of m){const y=h.findIndex(x=>x.id===g);y!==-1&&h.splice(y,1)}}return h}function compatibleMobileList(c){var v,p;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(v=Object.keys(h))!=null&&v.length||(p=Object.keys(u))!=null&&p.length){for(const b in h){const re=d.find(_=>_.id===b);if(re){hasOwn(re,"parentId")||(re.parentId="",re.sourceLeft=re.left,re.sourceTop=re.top);for(const _ in h[b])if(h[b][_])for(const J of h[b][_]){const En=d.find(gn=>gn.id===J);En&&(En.parentId=b,En.sourceLeft=En.left,En.sourceTop=En.top,En.left=parseFloat(En.left)-parseFloat(re.sourceLeft||re.left)+"px",En.top=parseFloat(En.top)-parseFloat(re.sourceTop||re.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!hasOwn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:d});g!=null&&g.length&&d.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=d.filter(b=>y.includes(b.type)&&!hasOwn(b,"parentId")),pn=[];for(const b of x)if(b){const re=b.id+"_vir";pn.push({id:re,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=re,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}pn!=null&&pn.length&&d.unshift(...pn);for(const b of d){const re=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(re/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const _=d.find(J=>J.id===b.parentId);if((_==null?void 0:_.parentId)===""){const J=_.sourceWidth||parseFloat(_.width),En=re/J;b.scale=En,b.top=parseFloat(b.top)*En-parseFloat(b.height)*(1-En)/2+"px",b.left=parseFloat(b.left)*En-parseFloat(b.width)*(1-En)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(d)}return d}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=f[d.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[d.id][p].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=c[d.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const h=[],d=u[c];for(const v in d)for(const p of d[v]){const m=f.find(g=>g.id===p);m&&(h.push(m),containerType.includes(m.type)&&h.push(...getComponentByContainer(m.id,u,f)))}return h}function getCombinationList(c,u,f){const{combinationMap:h={},componentList:d=[]}=u,v=[];for(const p of c){const m=h[p];if(m!=null&&m.length){const g=d.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){v.push({...y,id:p,keyName:p,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=p,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return v}function sortList(c){const f=c.filter(h=>h.parentId==="");if(f!=null&&f.length){const h=lodashEs.cloneDeep(f).map(d=>({...d,sourceTop:parseFloat(d.sourceTop),sourceLeft:parseFloat(d.sourceLeft)}));for(let d=0;d<h.length-1;d++)for(let v=0;v<h.length-d-1;v++){let p=!1;if((h[v].sourceTop-h[v+1].sourceTop>50||Math.abs(h[v+1].sourceTop-h[v].sourceTop)<=50&&h[v].sourceLeft>h[v+1].sourceLeft)&&(p=!0),p){const m=h[v];h[v]=h[v+1],h[v+1]=m}}for(const d of h){const v=c.findIndex(p=>p.id===d.id);v!==-1&&c.splice(v,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((v,p)=>parseFloat(v.top)-parseFloat(p.top))[0],f=c.sort((v,p)=>parseFloat(v.left)-parseFloat(p.left))[0],h=c.map(v=>({...v,computedTop:parseFloat(v.top)+parseFloat(v.height)})).sort((v,p)=>p.computedTop-v.computedTop)[0],d=c.map(v=>({...v,computedLeft:parseFloat(v.left)+parseFloat(v.width)})).sort((v,p)=>p.computedLeft-v.computedLeft)[0];return u&&f&&h&&d?{left:f.left,top:u.top,width:d.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,h)=>h-f)[0];return u||0}function moveToComponentList(c,u,f){const h=c[f],d=[];if(h)for(const v in h){const p=h[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$j(c,u,f,h,d,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),h=vue.inject("isMobile",!1),d=vue.computed(()=>c.fullModal),v=vue.inject("getContainerMap",()=>{}),p=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(lr,ur)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,pn=vue.computed(()=>{const lr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[lr]}}),b=c.fullModal?"1920px":c.width,re=c.fullModal?"1080px":c.height,_=c.originalWidth,J=c.originalHeight,En=vue.ref("80%"),gn=vue.ref(0),w=vue.ref(),hn=vue.ref(0),vn=vue.ref({}),Pn=usePickComponentStyle(c),Fn=vue.ref({}),zn=vue.ref(!1),Vn=vue.ref();let Yn;const Gn=()=>{w.value=parseFloat(b)/parseFloat(_);const lr=parseFloat(re)/parseFloat(J),ur=document.body.offsetWidth,fr=document.body.offsetHeight;if(gn.value=ur*vue.unref(w),hn.value=fr*lr,En.value=`${vue.unref(w)*100}%`,vn.value={width:`${vue.unref(gn)}px`,height:`${vue.unref(hn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Fn.value={...vue.unref(Pn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)Fn.value={...Fn.value,width:"100%",height:"100%"};else{const mr={...Fn.value,width:b,height:re};c.banScale&&vue.unref(d)?(mr.width="100%",mr.height="100%"):mr.transform=`scale(${vue.unref(gn)/parseFloat(b)},${vue.unref(hn)/parseFloat(re)})`,Fn.value=mr}},Un=lodashEs.debounce(()=>{Gn()},100),Kn=()=>{const lr=window.MutationObserver;Yn=new lr(Un),Yn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Hn=()=>{Yn&&(Yn.disconnect(),Yn.takeRecords(),Yn=null)},Qn=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Rn=vue.ref(""),qn=()=>{var fr;const{title:lr}=c,ur=(fr=vue.unref(g))==null?void 0:fr.RECORD;return ur?useVariablesInText(lr,{textData:ur},{useNewline:!1,useSpace:!1}):lr},In=useEmitEvent(c),Dn=lr=>{const{changeIframeStyle:ur}=window.parent;ur&&typeof ur=="function"&&ur({iframeId:c.parentIframeId||"",action:lr})},er=()=>{vue.unref(d)&&Dn("open"),h&&(document.documentElement.style.overflow="hidden"),Rn.value=qn(),Qn.value=!0},Bn=In("hideModal",()=>{vue.unref(d)&&Dn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Qn.value=!1}),Jn=()=>{Bn()},Xn=()=>{Bn(),m()},{setModalModel:Wn,pushUseModalIds:nr,popUseModalIds:ir}=vue.inject(MODAL_MODEL,{pushUseModalIds:lr=>{},popUseModalIds:()=>{},setModalModel:(lr,ur)=>{}}),ar=vue.computed(()=>{let lr=c.componentList;const ur=lodashEs.cloneDeep(c.componentList),fr=v(),mr=p(),yr={containerMap:fr,combinationMap:mr};h&&(lr=compatibleMobileList({...yr,componentList:ur,sourceList:c.allComponentList})),lr=handleScrollCombinations({...yr,componentList:lr,sourceList:c.allComponentList});const br=[];for(const Sr of lr)if(Sr.type==="ecanCirculate"){const Er=moveToComponentList(fr,vue.unref(ur),Sr.id);Sr.componentList=Er,br.push(...Er.map(wr=>wr.id))}if(br!=null&&br.length)for(const Sr of br){const Er=lr.findIndex(wr=>wr.id===Sr);Er!==-1&&lr.splice(Er,1)}return lr}),or=()=>{const lr=c.id;let ur=[];const fr=c.componentList;Array.isArray(fr)&&(ur=fr.map(mr=>mr.id),Wn(lr,[...new Set(ur)]))},tr=vue.ref(!1),sr={};for(const lr of c.requestList)sr[lr.requestName]=useRequestData(lr);vue.watch(()=>Qn.value,async lr=>{if(lr)zn.value=!1,nr(c.id),or(),await vue.nextTick(()=>{Gn(),window.addEventListener("resize",Un),Kn(),zn.value=!0}),Zn();else{if(y)for(const ur in sr)y(ur,{});ir(),window.removeEventListener("resize",Un),Hn()}});const cr=vue.computed(()=>vue.unref(w)>=1),vr=vue.computed(()=>{let lr="ecan-modal";return vue.unref(cr)&&(lr+=" ecan-full-width-modal"),vue.unref(d)&&(lr+=" ecan-full-modal"),lr});return useOnEvent(c,{showModal:er,hideModal:Bn}),{modalRef:Vn,containStyle:vn,contentStyle:Fn,getContainer:x,modalStyle:pn,modalWith:En,isFullModal:d,style:Pn,visible:Qn,showModal:er,onOk:Jn,onCancel:Xn,isFullWidth:cr,wrapClassName:vr,ready:zn,usedComponentList:ar,isMobile:h,readyIds:f,hasOwn,onComponentReady:lr=>{f.value.push(lr)},formatTitle:Rn,requestLoaded:tr}}}),Modal_vue_vue_type_style_index_0_scoped_0dbefacd_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-0dbefacd"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.ref({}),x=vue.computed(()=>{let{data:Qn=[]}=vue.unref(m)[0]||{};if(Array.isArray(c.colors)){const Zn=c.isUseLabelColors,Rn=c.colors;Qn=Qn.map((qn,In)=>({label:Zn?{color:Rn[In]}:{},...qn}))}return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;v.value=!0,(Zn=g.value)==null||Zn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Zn=>{const{marker:Rn,seriesName:qn,name:In,value:Dn,percent:er,data:Bn}=Zn||{};return useVariablesInText(c.tooltipFormatter,{textData:{marker:Rn,name:In,value:Dn,percent:er,a:qn,b:In,c:Dn,d:er,...Bn}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(y),color:c.colors,series:[{data:Qn,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:v.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),pn=()=>{var Zn,Rn;const Qn=v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);y.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:Qn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Qn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Rn=(Zn=vue.unref(m)[0])==null?void 0:Zn.data)==null?void 0:Rn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:In}=m.value[0]||{};let Dn=0,er,Bn="0%";if(In)for(const Jn of In)Jn.name===qn&&(er=+Jn.value),Dn+=+Jn.value;return Dn&&(Bn=`${(er/Dn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:er,percent:Bn})}}},b=()=>{v.value=!1},{getGlobalModel:re,setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,Zn)=>{}}),J=(Qn=[],Zn)=>{const{dataset:Rn}=useTransformChartDataByAttrValue(Qn,Zn);m.value=Rn},En=(Qn=[],Zn)=>{const Rn=useTransformChartDataByAttrValue(Qn,Zn);m.value=Rn.dataset};vue.watch(()=>c.data,Qn=>{(c.dataType==="static"||vue.unref(f)==="design")&&J(Qn)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{pn()},{immediate:!0});const gn=vue.ref(!1),w=useRequestData(c),hn=async()=>{var Qn,Zn;if(c.dataType==="request")try{gn.value=!0;const Rn=await w();J((Zn=(Qn=Rn==null?void 0:Rn.data)==null?void 0:Qn.data)==null?void 0:Zn.rows,c.valueTypeDataFieldNames)}catch(Rn){console.error(Rn)}finally{gn.value=!1}},vn=useEmitEvent(c);_(c.id,{type:c.type,RECORD:""});const Pn=vn("click",Qn=>{const Zn=re(c.id);_(c.id,{...Zn,type:c.type,RECORD:Qn==null?void 0:Qn.data})}),Fn=Qn=>{var Rn;const{data:Zn}=(Qn==null?void 0:Qn.data)||{};if(Zn){const{columns:qn=[],rows:In=[]}=((Rn=Qn==null?void 0:Qn.data)==null?void 0:Rn.data)??{};let Dn=[];if(qn.length>0){const er=qn[0],Bn=qn[1];Dn=In.filter(Jn=>!!Jn).map(Jn=>({name:Jn[er],value:isNaN(Jn[Bn])?0:Jn[Bn]||0}))}En(Dn)}},zn=useIndicatorData(c,Qn=>{c.isViewRedrawing&&d.value.clear(),Fn(Qn)}),Vn=async()=>{try{gn.value=!0;const Qn=await zn();Fn(Qn)}catch(Qn){console.error(Qn)}finally{gn.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Gn=vue.ref(!1);vue.watch(Yn,Qn=>{if(c.dataType==="indicator"){const Zn=getFixedValueDatas(c.graphicConfig);Zn!=null&&Zn.length&&(!vue.unref(Gn)&&canRequestIndicator(c.graphicConfig,Qn)?(Gn.value=!0,Un()):canRequestIndicator(c.graphicConfig,Qn)||(Gn.value=!1))}},{deep:!0});const Un=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&Vn();break;case"request":hn();break}};useOnEvent(c,{resetRecord:()=>{const Qn=c.id,Zn=re(Qn);_(Qn,{...Zn,RECORD:""})},refreshData:Un,click:Pn}),u({refreshData:Un});const{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});return typeof Hn=="function"&&Hn({id:c.id,requestFn:Un,sortNum:c.requestSort}),{option:x,style:p,click:Pn,onClose:b,loading:gn,ecanModal:g,echartRef:d}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$h(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),pn=vue.ref({});let b;const re=vue.ref([]),_=vue.computed(()=>{const qn=c.xAxisLabelFormatter,In=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Dn;v.value=!0,(Dn=y.value)==null||Dn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:x.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Dn=>{var Xn;const er=Dn.length;let Bn="",Jn=c.tooltipFormatter;b=(Xn=Dn[0])==null?void 0:Xn.data,Jn===""&&(Jn="{marker} {a} {c}");for(let Wn=0;Wn<er;Wn++){const{marker:nr,seriesName:ir,name:ar,value:or,data:tr}=Dn[Wn]||{};if(Wn===0){let sr=ar;typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(sr=(+ar).toString()),Bn+=`${useValueFormatter(qn,sr)}<br/>`}Bn+=useVariablesInText(Jn,{textData:{marker:nr,name:ar,value:or,a:ir,b:ar,c:or||0,...tr}},{useNewline:!0,useSpace:!0}),Bn+="<br/>"}return Bn},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(g).map(Dn=>{let er={};return Dn&&typeof Dn=="object"?er={...Dn}:er={value:Dn},er}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Dn){return typeof Dn=="string"&&Dn[0]==="0"&&!isNaN(+Dn)&&(Dn=(+Dn).toString()),useValueFormatter(qn,Dn)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Dn){return useValueFormatter(In,Dn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(re).map(Dn=>({name:Dn.name,icon:c.legendType})),formatter:Dn=>getLegendFormat(c.legendFormatter,{name:Dn})},series:vue.unref(m)}}),J=()=>{v.value=!1},{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,In)=>{}}),w=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),hn=(qn=[],In=!1)=>{let Dn;if(c.dataFieldConfigType==="key"){const Xn=In?c.keyTypeDataFieldNames:null;Dn=useTransformChartDataByAttrKey(qn,Xn)}else if(c.dataFieldConfigType==="value"){const Xn=In?c.valueTypeDataFieldNames:null;Dn=useTransformChartDataByAttrValue(qn,Xn)}g.value=Dn.dimensions,re.value=Dn.dataset;const er=Dn.dataset,Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={};c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX),Bn.push({type:"line",...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(w)})}m.value=Bn},vn=(qn=[],In,Dn=!1)=>{const Bn=useTransformChartDataByAttrKey(qn,Dn?In:null,!0);g.value=Bn.dimensions,re.value=Bn.dataset;const Jn=Bn.dataset,Xn=[],Wn=Jn.length;for(let nr=0;nr<Wn;nr++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),Xn.push({type:"line",...Jn[nr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[nr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[nr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(w)})}m.value=Xn};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&hn(qn)},{immediate:!0,deep:!0});const Pn=vue.ref(!1),Fn=useRequestData(c),zn=async()=>{var qn,In;if(c.dataType==="request")try{Pn.value=!0;const Dn=await Fn();hn((In=(qn=Dn==null?void 0:Dn.data)==null?void 0:qn.data)==null?void 0:In.rows,!0)}catch(Dn){console.error(Dn)}finally{Pn.value=!1}},Vn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Yn=Vn("click",qn=>{const In=En(c.id);gn(c.id,{...In,type:c.type,RECORD:c.tooltipShow?b:qn.data})}),Gn=qn=>{d.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&Yn()};c.tooltipShow?pn.value["zr:click"]=Gn:pn.value.click=Yn;const Un=qn=>{var Bn;const{columns:In=[],rows:Dn=[]}=((Bn=qn==null?void 0:qn.data)==null?void 0:Bn.data)??{};let er;In.length>0&&(er={name:In[0],types:In.slice(1).map(Jn=>({label:Jn,value:Jn}))}),vn(Dn,er,!0)},Kn=useIndicatorData(c,qn=>{c.isViewRedrawing&&d.value.clear(),Un(qn)}),Hn=async()=>{try{Pn.value=!0;const qn=await Kn();Un(qn)}catch(qn){console.error(qn)}finally{Pn.value=!1}},Qn=()=>{switch(c.dataType){case"indicator":Hn();break;case"request":zn();break}};useOnEvent(c,{refreshData:Qn,resetRecord:()=>{const qn=c.id,In=En(qn);gn(qn,{...In,RECORD:""})},click:Yn});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{option:_,style:p,click:Yn,loading:Pn,onClose:J,ecanModal:y,eventObj:pn,echartRef:d}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$g(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.inject("usedComponentList",[]),v=vue.ref(),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(null),y=vue.ref([]),x=usePickComponentStyle(c),pn=vue.ref([]),b=vue.ref(),re=vue.ref({});let _;const J=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),En=vue.computed(()=>{const{gradientShow:ir,gradientColors:ar,gradientOffset:or,barBorderRadius:tr}=c,sr=vue.unref(pn),cr=sr.length,vr=[];for(let dr=0;dr<cr;dr++){const lr={...sr[dr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(lr.stack="stack"),lr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:ur=>{let fr="",mr=c.labelFormatter;mr===""&&(mr="{c}");const{seriesName:yr,name:br,value:Sr,data:Er}=ur||{};return fr+=useVariablesInText(mr,{textData:{name:br,value:Sr,a:yr,b:br,c:Sr||0,...Er}},{useNewline:!0,useSpace:!0}),fr}},lr.itemStyle={},ir&&(lr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[dr]},{offset:or,color:ar[dr]},{offset:1,color:ar[dr]}]}}),tr){const ur=tr.split(",");if(ur!=null&&ur.length){const fr=[];for(const mr of ur){const yr=parseFloat(mr);isNaN(yr)||fr.push(yr)}lr.itemStyle.borderRadius=fr}}c.isShowMarkLine&&(lr.markLine={data:[{type:c.markLineType}]}),vr.push(lr)}return vr}),gn=vue.ref([]),w=vue.ref(!1),hn=vue.computed(()=>{const ir=c.yAxisLabelFormatter,ar=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:p.value?!1:c.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(){m.value=!0;const or=v.value.chart.getOption(),{xAxis:tr}=or||{};tr&&tr.length&&(y.value=tr[0].data)}},myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var or;p.value=!0,(or=b.value)==null||or.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:or=>{var vr;const tr=or.length;let sr="",cr=c.tooltipFormatter;_=(vr=or[0])==null?void 0:vr.data,cr===""&&(cr="{marker} {a} {c}");for(let dr=0;dr<tr;dr++){const{marker:lr,seriesName:ur,name:fr,value:mr,data:yr}=or[dr]||{};if(dr===0){let br=fr;typeof fr=="string"&&fr[0]==="0"&&!isNaN(+fr)&&(br=(+fr).toString()),sr+=`${useValueFormatter(ar,br)}<br/>`}sr+=useVariablesInText(cr,{textData:{marker:lr,name:fr,value:mr,a:ur,b:fr,c:mr||0,...yr}},{useNewline:!0,useSpace:!0}),sr+="<br/>"}return sr},textStyle:{color:c.tooltipTextStyleColor,fontSize:J.value},position:c.tooltipPosition||void 0},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(pn).map((or,tr)=>({name:or.name,itemStyle:{color:c.colors[tr]},icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(zn),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(or){return typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(or=(+or).toString()),useValueFormatter(ar,or)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(gn):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(or){return useValueFormatter(ir,or)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(En)}}),vn=()=>{p.value=!1},Pn=(ir=[],ar=!1)=>{let or={};if(c.dataFieldConfigType==="key"){const tr=ar?c.keyTypeDataFieldNames:null;or=useTransformChartDataByAttrKey(ir,tr)}else if(c.dataFieldConfigType==="value"){const tr=ar?c.valueTypeDataFieldNames:null;or=useTransformChartDataByAttrValue(ir,tr)}pn.value=or.dataset,gn.value=or.dimensions},Fn=(ir=[],ar,or=!1)=>{const sr=useTransformChartDataByAttrKey(ir,or?ar:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(d),getGlobalModel:er},sr),pn.value=sr.dataset,gn.value=sr.dimensions},zn=vue.computed(()=>vue.unref(gn).map(ir=>{let ar={};return ir&&typeof ir=="object"?ar={...ir}:ar={value:ir},ar}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ir])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Pn(ir)},{immediate:!0,deep:!0});const Vn=useRequestData(c),Yn=async()=>{var ir,ar;try{w.value=!0;const or=await Vn();Pn((ar=(ir=or==null?void 0:or.data)==null?void 0:ir.data)==null?void 0:ar.rows,!0)}catch(or){console.error(or)}finally{w.value=!1}},Gn=ir=>{var sr;const{columns:ar=[],rows:or=[]}=((sr=ir==null?void 0:ir.data)==null?void 0:sr.data)??{};let tr;ar.length>0&&(tr={name:ar[0],types:ar.slice(1).map(cr=>({label:cr,value:cr}))}),Fn(or,tr,!0)},Un=useIndicatorData(c,ir=>{c.isViewRedrawing&&v.value.clear(),Gn(ir)}),Kn=async()=>{try{w.value=!0;const ir=await Un();Gn(ir)}catch(ir){console.error(ir)}finally{w.value=!1}},{loadedData:Hn}=vue.inject(LOADED_DATA,{loadedData:{}}),Qn=vue.ref(!1);vue.watch(Hn,ir=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Qn)&&canRequestIndicator(c.graphicConfig,ir)?(Qn.value=!0,Zn()):canRequestIndicator(c.graphicConfig,ir)||(Qn.value=!1))}},{deep:!0});const Zn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Hn))&&Kn();break;case"request":Yn();break}},Rn=(ir,ar)=>!!vue.unref(y)[ar.value].value.includes(ir),qn=async()=>{m.value=!1;const ir=v.value.chart.getOption();for(let ar=0;ar<7;ar++)await In(ir,ar)},In=(ir,ar)=>new Promise(or=>{setTimeout(()=>{const{series:tr,color:sr,xAxis:cr}=ir,vr=v.value.chart,{splitArea:dr={}}=cr[0]||{};tr.forEach((lr,ur)=>{const fr=lr.data;let mr="";ar%2?mr=sr[ur]+"a8":mr=sr[ur],fr[g.value].itemStyle={color:mr}}),ar%2?(dr.show=!0,dr.areaStyle.color=vue.unref(y).map((lr,ur)=>ur===g.value?"#ff003b26":"")):dr.show=!1,vr.setOption({series:tr,xAxis:cr}),or()},200)});u({refreshData:Zn});const Dn=useEmitEvent(c),{getGlobalModel:er,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ir=>{},setGlobalModel:(ir,ar)=>{}});Bn(c.id,{type:c.type,RECORD:""});const Jn=Dn("click",ir=>{const ar=er(c.id);Bn(c.id,{...ar,type:c.type,RECORD:c.tooltipShow?_:ir.data})}),{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:ir=>{}});typeof Xn=="function"&&Xn({id:c.id,requestFn:Zn,sortNum:c.requestSort});const Wn=()=>{const ir=c.id,ar=er(ir);Bn(ir,{...ar,RECORD:""})},nr=ir=>{v.value.chart.containPixel("grid",[ir.offsetX,ir.offsetY])&&Jn()};return c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Jn,useOnEvent(c,{refreshData:Zn,click:Jn,resetRecord:Wn}),{option:hn,style:x,refreshData:Zn,click:Jn,loading:w,onClose:vn,ecanModal:b,echartRef:v,handleLocationOk:qn,onFilterOption:Rn,locationVisible:m,locationValue:g,locationNames:y,eventObj:re}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_b1e34a16_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-b1e34a16"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-b1e34a16"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref(),pn=vue.ref(),b=vue.ref(),re=vue.ref(),_=vue.inject("componentList",[]),{loadedData:J}=vue.inject(LOADED_DATA,{loadedData:{}}),En=vue.ref({}),gn=vue.computed(()=>{const{xAxisMarkLineValue:Xn=[],yAxisMarkLineValue:Wn=[]}=c,nr=Xn.concat(Wn),ir=[];for(const ar of nr){let or=ar.value;const tr=or.match(/\{(.+?)\}/g);if(tr!=null&&tr.length){for(const cr of tr)or=or.replace(cr,cr.slice(1,-1));const sr=vue.unref(_).find(cr=>cr.keyName===or);sr!=null&&sr.id&&!ir.find(cr=>cr.keyName===or)&&ir.push({componentId:sr.id,keyName:sr.keyName})}}return ir});vue.watch(J,Xn=>{var Wn;if((Wn=vue.unref(gn))!=null&&Wn.length)for(const nr of vue.unref(gn)){const{componentId:ir,keyName:ar}=nr;if(Xn[ir]){const or=Fn(ir);En.value[ar]=or.value}else delete En.value[ar]}},{deep:!0});const w=vue.computed(()=>{const{xAxisMarkLineValue:Xn=[],yAxisMarkLineValue:Wn=[]}=c,nr=Xn.map(or=>({...or,x:!0})),ir=Wn.map(or=>({...or,y:!0})),ar=nr.concat(ir);if(ar!=null&&ar.length){const or=[];for(const tr of ar){const sr={label:{show:!0,formatter:"",rich:{ft:{}}}},cr={};let vr=tr.value;const dr=vr.match(/\{(.+?)\}/g);let lr="";if(sr.label.formatter=tr.label?`{ft|${tr.label}}`:"",(tr.offsetHorizontal||tr.offsetVertical)&&(tr.x?sr.label.rich.ft.padding=[0,tr.offsetHorizontal||0,tr.offsetVertical||0,0]:tr.y&&(sr.label.rich.ft.padding=[tr.offsetVertical||0,0,0,tr.offsetHorizontal||0])),tr.labelColor&&(sr.label.rich.ft.color=tr.labelColor),tr.lineColor&&(cr.color=tr.lineColor),tr.x?lr="xAxis":tr.y&&(lr="yAxis"),dr!=null&&dr.length){for(const ur of dr)vr=vr.replace(ur,ur.slice(1,-1));if(vr){let ur;En.value[vr]?ur=vue.unref(En)[vr]:ur=runCode(vr,{max:tr.x?vue.unref(x):tr.y?vue.unref(b):0,min:tr.x?vue.unref(pn):tr.y?vue.unref(re):0}),isNaN(+ur)||or.push({[lr]:+ur,lineStyle:cr,...sr})}}else isNaN(+tr.value)||or.push({[lr]:tr.value,lineStyle:cr,...sr})}return{symbol:["none","none"],data:or}}else return{data:[]}});function hn(Xn,Wn,nr){switch(Wn){case"startX":Xn[0].coord[0]=+nr;break;case"startY":Xn[0].coord[1]=+nr;break;case"endX":Xn[1].coord[0]=+nr;break;case"endY":Xn[1].coord[1]=+nr;break}}const vn=vue.computed(()=>{const{axisMarkArea:Xn=[]}=c;if(Xn!=null&&Xn.length){const Wn=[];for(const nr of Xn){const ir=[{name:"",coord:[],itemStyle:{color:nr.color}},{coord:[]}];for(const ar in nr)if(ar!=="color"){let or=nr[ar];const tr=or.match(/\{(.+?)\}/g);if(tr!=null&&tr.length){for(const sr of tr)or=or.replace(sr,sr.slice(1,-1));if(or){const sr=runCode(or,{xMax:vue.unref(x),xMin:vue.unref(pn),yMax:vue.unref(b),yMin:vue.unref(re)});isNaN(+sr)||hn(ir,ar,sr)}}else isNaN(+nr[ar])||hn(ir,ar,nr[ar])}ir.every(ar=>{var or;return(or=ar.coord)==null?void 0:or.length})&&Wn.push(ir)}return{data:Wn}}else return{data:[]}}),Pn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Wn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var nr;v.value=!0,(nr=g.value)==null||nr.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),useValueFormatter(Xn,nr)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(nr){return useValueFormatter(Wn,nr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(nr){var vr;const{marker:ir,seriesName:ar,componentType:or}=nr,tr=((vr=nr==null?void 0:nr.data)==null?void 0:vr.record)??{},sr=tr[vue.unref(Yn).name],cr=tr[vue.unref(Yn).value];return["markLine","markArea"].includes(or)?"":useVariablesInText(c.tooltipFormatter,{textData:{marker:ir,seriesName:ar,a:ar,b:sr,c:cr,...tr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:y.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:y.value}},series:[{data:vue.unref(m),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:w.value,markArea:vn.value}]}}),{getGlobalModel:Fn,setGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Wn)=>{}}),Vn=()=>{var nr,ir;const Xn=(nr=vue.unref(d))==null?void 0:nr.chart.getModel().getComponent("yAxis").axis.scale._extent,Wn=(ir=vue.unref(d))==null?void 0:ir.chart.getModel().getComponent("xAxis").axis.scale._extent;Wn&&Xn&&(pn.value=Wn[0],x.value=Wn[1],re.value=Xn[0],b.value=Xn[1])},Yn=vue.computed(()=>{let Xn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:Wn={}}=c.graphicConfig;Wn!=null&&Wn.labelField&&(Wn!=null&&Wn.valueField)&&(Xn={name:Wn.labelField,value:Wn.valueField})}return Xn}),Gn=(Xn=[])=>{const{name:Wn="name",value:nr="value"}=vue.unref(Yn)||{};m.value=Xn.map(ir=>({value:[ir[Wn],ir[nr]],record:ir})),setTimeout(()=>{Vn()},0)};vue.watch(()=>c.data,Xn=>{(c.dataType==="static"||vue.unref(f)==="design")&&Gn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Kn=useRequestData(c),Hn=async()=>{var Xn,Wn;if(c.dataType==="request"){Un.value=!0;try{const nr=await Kn();Gn((Wn=(Xn=nr==null?void 0:nr.data)==null?void 0:Xn.data)==null?void 0:Wn.rows)}catch(nr){console.error(nr)}finally{Un.value=!1}}},Qn=()=>{v.value=!1},Zn=useEmitEvent(c);zn(c.id,{type:c.type,RECORD:""});const Rn=Zn("click",Xn=>{const Wn=c.id,nr=Fn(Wn);zn(Wn,{...nr,type:c.type,RECORD:Xn==null?void 0:Xn.data})}),qn=Xn=>{var Wn,nr;Gn((nr=(Wn=Xn==null?void 0:Xn.data)==null?void 0:Wn.data)==null?void 0:nr.rows)},In=useIndicatorData(c,Xn=>{c.isViewRedrawing&&d.value.clear(),qn(Xn)}),Dn=async()=>{try{Un.value=!0;const Xn=await In();qn(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},er=()=>{switch(c.dataType){case"indicator":Dn();break;case"request":Hn();break}};useOnEvent(c,{refreshData:er,click:Rn,resetRecord:()=>{const Xn=c.id,Wn=Fn(Xn);zn(Xn,{...Wn,RECORD:""})}});const{setRequest:Jn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof Jn=="function"&&Jn({id:c.id,requestFn:er,sortNum:c.requestSort}),u({refreshData:er}),{option:Pn,style:p,click:Rn,loading:Un,onClose:Qn,ecanModal:g,echartRef:d}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$e(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,h=>{try{const d=eval;f.value=d(h)}catch(d){console.error(d)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$d(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.inject("usedComponentList",[]),{getGlobalModel:v,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,or)=>{}}),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),x=vue.ref(null),pn=vue.ref([]),b=vue.ref({});let re;const _=usePickComponentStyle(c),J=vue.ref([]),En=vue.ref([]),gn=vue.ref(),w=vue.ref([]),hn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),vn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:g.value?!1:c.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(){y.value=!0;const ar=m.value.chart.getOption(),{xAxis:or}=ar||{};or&&or.length&&(pn.value=or[0].data)}},myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var ar;g.value=!0,(ar=gn.value)==null||ar.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(w).map((ar,or)=>({name:ar.name,itemStyle:{color:c.colors[or]},icon:c.legendType})),formatter:ar=>getLegendFormat(c.legendFormatter,{name:ar})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:ar=>{var vr;const or=ar.length;let tr="",sr=c.tooltipFormatter;re=(vr=ar[0])==null?void 0:vr.data,sr===""&&(sr="{marker} {a} {c}");const cr=c.seriesTypes;for(let dr=0;dr<or;dr++){const lr=cr[dr],{tooltipFormatter:ur}=lr||{},{marker:fr,seriesName:mr,name:yr,value:br,data:Sr}=ar[dr]||{};if(dr===0){let Er=yr;typeof yr=="string"&&yr[0]==="0"&&!isNaN(+yr)&&(Er=(+yr).toString()),tr+=`${useValueFormatter(c.xAxisLabelFormatter,Er)}<br/>`}tr+=useVariablesInText(ur||sr,{textData:{marker:fr,name:yr,value:br,seriesName:mr,a:mr,b:yr,c:br||0,...Sr}},{useNewline:!0,useSpace:!0}),tr+="<br/>"}return tr},textStyle:{color:c.tooltipTextStyleColor,fontSize:hn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(En).map(ar=>{let or={};return ar&&typeof ar=="object"?or={...ar}:or={value:ar},or}),splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(ar){return typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(ar=(+ar).toString()),useValueFormatter(c.xAxisLabelFormatter,ar)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:vue.unref(Yn),series:vue.unref(J)})),Pn=()=>{g.value=!1},Fn=(ar=[],or=!1)=>{let tr;if(c.dataFieldConfigType==="key"){const cr=or?c.keyTypeDataFieldNames:null;tr=useTransformChartDataByAttrKey(ar,cr)}else if(c.dataFieldConfigType==="value"){const cr=or?c.valueTypeDataFieldNames:null;tr=useTransformChartDataByAttrValue(ar,cr)}En.value=tr.dimensions;const sr=tr.dataset;w.value=tr.dataset,J.value=Vn(sr)},zn=(ar=[],or,tr=!1)=>{const cr=useTransformChartDataByAttrKey(ar,tr?or:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(d),getGlobalModel:v},cr),En.value=cr.dimensions;const vr=cr.dataset;w.value=cr.dataset,J.value=Vn(vr)};function Vn(ar){const or=[],tr=ar.length,sr=c.seriesTypes;for(let cr=0;cr<tr;cr++){const vr=sr[cr],{type:dr,axisIndex:lr}=vr||{};let ur={type:dr,yAxisIndex:lr,...ar[cr]};if(dr==="line"){const fr={};c.shadowColor&&(fr.shadowColor=c.shadowColor,fr.shadowBlur=c.shadowBlur,fr.shadowOffsetY=c.shadowOffsetY,fr.shadowOffsetX=c.shadowOffsetX),ur={...ur,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[cr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...fr}}}if(dr==="bar"){const{gradientShow:fr,gradientColors:mr,gradientOffset:yr}=c,br={color:c.colors[cr]};if(c.barBorderRadius){const Sr=c.barBorderRadius.split(",");if(Sr!=null&&Sr.length){const Er=[];for(const wr of Sr){const kr=parseFloat(wr);isNaN(kr)||Er.push(kr)}br.borderRadius=Er}}fr&&(br.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[cr]},{offset:yr,color:mr[cr]},{offset:1,color:mr[cr]}]}),ur={...ur,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:br}}c.isShowMarkLine&&(ur.markLine={data:[{type:c.markLineType}]}),or.push(ur)}return or}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ar])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Fn(ar)},{immediate:!0,deep:!0});const Yn=vue.computed(()=>{const ar=c.yAxis;return ar==null?void 0:ar.map((or,tr)=>({type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:tr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:tr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(sr){return useValueFormatter(or.axisLabelFormatter,sr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:tr===0?c.yAxisLeftName:c.yAxisRightName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:tr===0?"right":"left"},max:c.yAxisMaxValue||null}))}),Gn=vue.ref(!1),Un=useRequestData(c),Kn=async()=>{var ar,or;if(c.dataType==="request")try{Gn.value=!0;const tr=await Un();Fn((or=(ar=tr==null?void 0:tr.data)==null?void 0:ar.data)==null?void 0:or.rows,!0)}catch(tr){console.error(tr)}finally{Gn.value=!1}},Hn=ar=>{var cr;const{columns:or=[],rows:tr=[]}=((cr=ar==null?void 0:ar.data)==null?void 0:cr.data)??{};let sr;or.length>0&&(sr={name:or[0],types:or.slice(1).map(vr=>({label:vr,value:vr}))}),zn(tr,sr,!0)},Qn=useIndicatorData(c,ar=>{c.isViewRedrawing&&m.value.clear(),Hn(ar)}),Zn=async()=>{try{Gn.value=!0;const ar=await Qn();Hn(ar)}catch(ar){console.error(ar)}finally{Gn.value=!1}},{loadedData:Rn}=vue.inject(LOADED_DATA,{loadedData:{}}),qn=vue.ref(!1);vue.watch(Rn,ar=>{if(c.dataType==="indicator"){const or=getFixedValueDatas(c.graphicConfig);or!=null&&or.length&&(!vue.unref(qn)&&canRequestIndicator(c.graphicConfig,ar)?(qn.value=!0,In()):canRequestIndicator(c.graphicConfig,ar)||(qn.value=!1))}},{deep:!0});const In=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Rn))&&Zn();break;case"request":Kn();break}},Dn=(ar,or)=>!!vue.unref(pn)[or.value].value.includes(ar),er=async()=>{y.value=!1;const ar=m.value.chart.getOption();for(let or=0;or<7;or++)await Bn(ar,or)},Bn=(ar,or)=>new Promise(tr=>{setTimeout(()=>{const{series:sr,color:cr,xAxis:vr}=ar,dr=m.value.chart,{splitArea:lr={}}=vr[0]||{};sr.forEach((ur,fr)=>{const mr=ur.data;let yr="";or%2?yr=cr[fr]+"a8":yr=cr[fr],mr[x.value].itemStyle={color:yr}}),or%2?(lr.show=!0,lr.areaStyle.color=vue.unref(pn).map((ur,fr)=>fr===x.value?"#ff003b26":"")):lr.show=!1,dr.setOption({series:sr,xAxis:vr}),tr()},200)});u({refreshData:In});const Jn=useEmitEvent(c);p(c.id,{type:c.type,RECORD:""});const Xn=Jn("click",ar=>{const or=v(c.id);p(c.id,{...or,type:c.type,RECORD:c.tooltipShow?re:ar==null?void 0:ar.data})}),Wn=ar=>{m.value.chart.containPixel("grid",[ar.offsetX,ar.offsetY])&&Xn()};c.tooltipShow?b.value["zr:click"]=Wn:b.value.click=Xn;const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:ar=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:In,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const ar=c.id,or=v(ar);p(ar,{...or,RECORD:""})},refreshData:In,click:Xn}),{style:_,option:vn,click:Xn,loading:Gn,onClose:Pn,ecanModal:gn,echartRef:m,handleLocationOk:er,onFilterOption:Dn,locationVisible:y,locationValue:x,locationNames:pn,eventObj:b}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_cc00fe91_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-cc00fe91"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-cc00fe91"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),pn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const Zn=vue.unref(x),Rn=Zn.length,qn=[];for(let In=0;In<Rn;In++){const{name:Dn,data:er=[]}=Zn[In],Bn=[{name:Dn,value:er.map(Wn=>Wn.value)}];let Jn=c.colors[In];if(c.gradientShow){const{gradientOffset:Wn,gradientColors:nr}=c;Jn={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[In]},{offset:Wn,color:nr[In]},{offset:1,color:nr[In]}]}}const Xn={type:"radar",name:Dn,data:Bn,areaStyle:{color:Jn,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Wn=>{const{data:nr,value:ir}=Wn;let ar=0,or="0%";if(nr)for(const tr of nr.value)ar+=+tr;return ar&&(or=`${(ir/ar*100).toFixed(2)}%`),useVariablesInText(c.labelFormatter,{textData:{value:ir,percent:or}},{useNewline:!1,useSpace:!1})}}};qn.push(Xn)}return qn}),re=vue.computed(()=>{var Dn;const Zn=[],Rn=[],qn=vue.unref(x),In=qn.length;for(let er=0;er<In;er++){const{data:Bn=[]}=qn[er];for(let Jn=0;Jn<Bn.length;Jn++)Rn.push(Bn[Jn].value)}if((Dn=m.value)!=null&&Dn.length){const er=Rn!=null&&Rn.length?Math.max(...Rn)*1.2:0;for(const Bn of m.value)Zn.push({name:Bn,max:er})}return Zn}),_=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;v.value=!0,(Zn=g.value)==null||Zn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value},show:c.tooltipShow,formatter:Zn=>{let Rn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let In=0;In<vue.unref(re).length;In++){const Dn=vue.unref(re)[In],{marker:er,seriesName:Bn,value:Jn}=Zn||{};In===0&&Bn&&(Rn+=`${Bn}<br/>`),Rn+=useVariablesInText(qn,{textData:{marker:er,name:Dn.name,value:Jn[In],a:Dn.name,b:Dn.name,c:Jn[In]||0,type:Bn}},{useNewline:!0,useSpace:!0}),Rn+="<br/>"}return Rn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(re),axisName:{color:c.axisNameColor}},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(b)})),J=()=>{v.value=!1},{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Rn)=>{}}),w=(Zn=[],Rn=!1)=>{let qn;if(c.dataFieldConfigType==="key"){const In=Rn?c.keyTypeDataFieldNames:null;qn=useTransformChartDataByAttrKey(Zn,In)}else if(c.dataFieldConfigType==="value"){const In=Rn?c.valueTypeDataFieldNames:null;qn=useTransformChartDataByAttrValue(Zn,In)}m.value=qn.dimensions,x.value=qn.dataset},hn=(Zn=[],Rn,qn=!1)=>{const Dn=useTransformChartDataByAttrKey(Zn,qn?Rn:null,!0);m.value=Dn.dimensions,x.value=Dn.dataset};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([Zn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&w(Zn)},{immediate:!0,deep:!0});const vn=vue.ref(!1),Pn=useRequestData(c),Fn=async()=>{var Zn,Rn;if(c.dataType==="request")try{vn.value=!0;const qn=await Pn();w((Rn=(Zn=qn==null?void 0:qn.data)==null?void 0:Zn.data)==null?void 0:Rn.rows,!0)}catch(qn){console.error(qn)}finally{vn.value=!1}},zn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Vn=Zn=>{const Rn=Zn.event.topTarget.__dimIdx;Rn!==void 0&&zn("click",()=>{var er;const{value:qn,name:In}=Zn.data||{},Dn=En(c.id);gn(c.id,{...Dn,type:c.type,RECORD:{[vue.unref(pn)]:((er=vue.unref(re)[Rn])==null?void 0:er.name)||"",[In]:qn[Rn],seriesName:In}})})()},Yn=Zn=>{var Dn;const{columns:Rn=[],rows:qn=[]}=((Dn=Zn==null?void 0:Zn.data)==null?void 0:Dn.data)??{};let In;Rn.length>0&&(pn.value=Rn[0],In={name:Rn[0],types:Rn.slice(1).map(er=>({label:er,value:er}))}),hn(qn,In,!0)},Gn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&d.value.clear(),Yn(Zn)}),Un=async()=>{try{vn.value=!0;const Zn=await Gn();Yn(Zn)}catch(Zn){console.error(Zn)}finally{vn.value=!1}},Kn=()=>{switch(c.dataType){case"indicator":Un();break;case"request":Fn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const Zn=c.id,Rn=En(Zn);gn(Zn,{...Rn,RECORD:""})},click:Vn});const{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof Qn=="function"&&Qn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:_,style:p,click:Vn,loading:vn,onClose:J,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:_,gradientShow:J,gradientColor:En,gradientOffset:gn,gradientAngle:w,backgroundColor:hn}=c;if(J){let vn=En;return _&&(vn="transparent"),vn?{background:`linear-gradient(${w}, ${hn}, ${vn} ${gn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:_}=c;let J={};return _!=null&&_.length&&_.find(gn=>gn.emit==="showModal")&&(J={cursor:"pointer"}),J}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let _="";switch(c.titleMode){case"type-2":_="2";break}return _}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:_}=c,J=[],En={};if(_){const gn=_.split(",");for(const w of gn)(+w||+w==0)&&J.push(+w+"px")}return J!=null&&J.length&&(En.borderRadius=J.join(" ")),En}),pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,_=>{b.value=_},{immediate:!0,deep:!0}),useOnEvent(c,{click:pn});const{setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,J)=>{}});return re(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:pn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:h}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-8dd53b8f"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(c.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Vn=>{f.value=Vn},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Vn=>{const Yn=vue.unref(m)[Vn],Gn=[];if(Yn)for(const Un in Yn)for(const Kn of Yn[Un]){const Hn=vue.unref(v).find(Qn=>Qn.id===Kn);Gn.push(Kn),p.includes(Hn==null?void 0:Hn.type)&&Gn.push(...g(Kn))}return Gn},y=vue.computed(()=>g(c.id));let x=null;const pn=()=>{const Vn=Array.isArray(vue.unref(re))?vue.unref(re).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Vn>0&&(x=setInterval(()=>{const Yn=vue.unref(f)+1;Yn<=Vn?f.value=Yn:f.value=0,_.value=vue.unref(re)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&pn()}),vue.onBeforeUnmount(()=>{b()});const re=vue.ref([]),_=vue.ref({});vue.watch(()=>c.data,Vn=>{re.value=Vn,_.value=Array.isArray(Vn)&&Vn.length>0?Vn[0]:{}},{immediate:!0,deep:!0});const J=Vn=>f.value===Vn,En=useEmitEvent(c),{setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Vn,Yn)=>{}});gn(c.id,{RECORD:vue.unref(_),value:vue.unref(_),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),hn=Vn=>{let{tab:Yn,index:Gn}=Vn||{};if(Vn.label){const Un=vue.unref(re).findIndex(Kn=>Kn.title===Vn.label);Un!==-1&&(Gn=Un,Yn=vue.unref(re)[Un])}En("tabChange",()=>{!isNaN(+Gn)&&Gn!==vue.unref(f)&&(_.value=Yn,f.value=Gn,gn(c.id,{RECORD:Yn,value:Yn,activeKey:Gn}),w())})()},vn=vue.computed(()=>{const Vn=c.componentList.map(Yn=>parseFloat(Yn.left)+parseFloat(Yn.width)).sort((Yn,Gn)=>Gn-Yn)[0];return{width:Vn?Vn+"px":"100%"}}),Pn=()=>{vue.unref(h)!=="design"&&b()},Fn=Vn=>{var Yn,Gn;return Vn?(Gn=(Yn=Vn==null?void 0:Vn.parentNode)==null?void 0:Yn.className)!=null&&Gn.includes("ecan-")?Vn.parentNode.getAttribute("cpntid"):Fn(Vn.parentNode):""},zn=Vn=>{var Yn;if(vue.unref(h)!=="design"){const Gn=(Vn==null?void 0:Vn.toElement)||{};if((Yn=Gn==null?void 0:Gn.className)!=null&&Yn.includes("ecan-"))vue.unref(y).includes(Gn.getAttribute("cpntid"))||pn();else if((Gn==null?void 0:Gn.className)==="page-config")pn();else{const Un=Fn(Gn);vue.unref(y).includes(Un)||pn()}}};return useOnEvent(c,{tabChange:hn}),{style:u,activeKey:f,isActive:J,tabChange:hn,myData:re,useImagePath,pageMode:h,scrollWrapStyle:vn,onMouseEnter:Pn,onMouseLeave:zn}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:x,onClick:vue.withModifiers(pn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createBlock(p,{key:x,value:x,onClick:pn=>c.tabChange({tab:y,index:x})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c,["background"]),d=vue.inject("usedComponentList",[]),v=vue.inject("isMobile",!1),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Yn)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),pn=vue.computed(()=>{if(vue.unref(v)){const Vn=document.body.clientWidth,Yn=c.sourceWidth||parseFloat(c.width);return Vn/Yn||1}else return 1});function b(Vn,Yn){const Gn=Yn.find(Un=>Un.id===c.id);if(Gn)for(const Un of Vn)Un.left=parseFloat(Un.left)-parseFloat(Gn.sourceLeft||Gn.left)+"px",Un.top=parseFloat(Un.top)-parseFloat(Gn.sourceTop||Gn.top)+"px"}const re=Vn=>{const Yn=Vn.sort((Hn,Qn)=>parseFloat(Hn.top)-parseFloat(Qn.top))[0],Gn=Vn.sort((Hn,Qn)=>parseFloat(Hn.left)-parseFloat(Qn.left))[0],Un=Vn.map(Hn=>parseFloat(Hn.left)+parseFloat(Hn.width)).sort((Hn,Qn)=>Qn-Hn)[0],Kn=Vn.map(Hn=>parseFloat(Hn.top)+parseFloat(Hn.height)).sort((Hn,Qn)=>Qn-Hn)[0];if(Gn&&Un&&Yn&&Kn){const Hn=parseFloat(Gn.left),Qn=parseFloat(Yn.top);return{width:Un-Hn,height:Kn-Qn,left:Hn}}else return{width:0,height:0,left:0}},_=vue.ref({}),J=Vn=>{var Dn,er;const Yn=[],{graphicConfig:Gn,id:Un,componentList:Kn,keyFieldMap:Hn,unitInterval:Qn,colNum:Zn}=c;let Rn=lodashEs.cloneDeep(Kn),qn=[];if((Dn=vue.unref(d))!=null&&Dn.length)for(const Bn of vue.unref(d))qn.push(Bn),(er=Bn==null?void 0:Bn.componentList)!=null&&er.length&&qn.push(...Bn.componentList);if(Gn.pageMode==="design"&&Gn.preview){const{containerMap:Bn}=Gn.pageConfig||{};qn=Gn.componentList||[],qn.push(c),Rn=moveToComponentList(Bn,lodashEs.cloneDeep(qn),Un)}b(Rn,qn);const In=re(Rn);if(Vn!=null&&Vn.length){const{width:Bn,left:Jn,height:Xn}=In;let Wn=0,nr=0;Vn.forEach((ir,ar)=>{ir.index=ar+1;const or=nanoid(),tr=lodashEs.cloneDeep(Rn);for(const sr of tr){const cr=Hn.find(dr=>dr.keyName===sr.keyName),vr=nanoid();if(sr.left=(parseFloat(sr.left)+Wn)*vue.unref(pn)+"px",sr.top=(parseFloat(sr.top)+nr)*vue.unref(pn)+"px",sr.scale=vue.unref(pn),sr.id=vr,sr.keyName=sr.name+"_"+vr,sr.unitId=or,cr!=null&&cr.fieldName){const dr=sr.text.match(/\{(.+?)\}/g);switch(sr.type){case"ecanText":{sr.data={value:String(ir[cr.fieldName])},dr!=null&&dr.length||(sr.text="{value}");break}case"ecanProportion":{sr.data={percent:String(ir[cr.fieldName])},dr!=null&&dr.length||(sr.text="{percent}");break}}}}Zn&&ir.index%Zn===0?(Wn=0,nr+=Qn+Xn):Wn+=Qn+Bn,Yn.push(...tr),_.value[or]=ir}),y.value={width:((Zn||Vn.length)*(Bn+Qn)+Jn)*vue.unref(pn)+"px",height:(Zn?Math.ceil(Vn.length/Zn)*(Qn+Xn):Qn+Xn)*vue.unref(pn)+"px"}}g.value=Yn},En=Vn=>{var Gn;const{rows:Yn=[]}=((Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)??{};J(Yn)},gn=useIndicatorData(c,En),w=async()=>{try{f.value=!0;const Vn=await gn();En(Vn)}catch(Vn){console.error(Vn)}finally{f.value=!1}},hn=()=>{switch(c.dataType){case"indicator":w();break}};useOnEvent(c,{refreshData:hn,resetRecord:()=>{const Vn=c.id,Yn=p(Vn);m(Vn,{...Yn,RECORD:""})}}),u({refreshData:hn}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Pn}=vue.inject(REQUEST_MODEL,{setRequest:Vn=>{}});typeof Pn=="function"&&Pn({id:c.id,requestFn:hn,sortNum:c.requestSort});const Fn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Vn=>{let Yn=Vn.target;if(Yn){let Gn=Yn.getAttribute("unitId");for(;!Gn&&!Yn.className.includes("ecan-");)Yn=Yn.parentElement,Gn=Yn.getAttribute("unitId");Gn&&Fn("click",()=>{const Un=p(c.id);m(c.id,{...Un,type:c.type,RECORD:vue.unref(_)[Gn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(d,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,h=c.length,d;for(f=0;f<h;f+=1){d=c[f].prototype;for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(u.prototype[v]=d[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].pause()},resume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].resume()},setRate:function(f){var h,d=this.audios.length;for(h=0;h<d;h+=1)this.audios[h].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,h){var d=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<h;d+=1)v.push(p);return v}function u(f,h){return f==="float32"?new Float32Array(h):f==="int16"?new Int16Array(h):f==="uint8c"?new Uint8ClampedArray(h):c(f,h)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),h,d=c.length;for(h=0;h<d;h+=1)f[h]=Math.abs(c[h]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,h){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=h<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,h){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=h<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var h,d,v,p,m,g,y,x;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),p%6){case 0:h=f,d=x,v=g;break;case 1:h=y,d=f,v=g;break;case 2:h=g,d=f,v=x;break;case 3:h=g,d=y,v=f;break;case 4:h=x,d=g,v=f;break;case 5:h=f,d=g,v=y;break}return[h,d,v]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),v=h-d,p,m=h===0?0:v/h,g=h/255;switch(h){case d:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(h,d,v){return h<0&&(h=0),d<0&&(d=0),v<0&&(v=0),"#"+c[h]+c[d]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,h,d={onmessage:function(){},postMessage:function(re){f({data:re})}},v={postMessage:function(re){d.onmessage({data:re})}};function p(b){if(window.Worker&&window.Blob&&getWebWorker()){var re=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),_=URL.createObjectURL(re);return new Worker(_)}return f=b,d}function m(){h||(h=p(function(re){function _(){function En(Zn,Rn){var qn,In,Dn=Zn.length,er,Bn,Jn,Xn;for(In=0;In<Dn;In+=1)if(qn=Zn[In],"ks"in qn&&!qn.completed){if(qn.completed=!0,qn.hasMask){var Wn=qn.masksProperties;for(Bn=Wn.length,er=0;er<Bn;er+=1)if(Wn[er].pt.k.i)Pn(Wn[er].pt.k);else for(Xn=Wn[er].pt.k.length,Jn=0;Jn<Xn;Jn+=1)Wn[er].pt.k[Jn].s&&Pn(Wn[er].pt.k[Jn].s[0]),Wn[er].pt.k[Jn].e&&Pn(Wn[er].pt.k[Jn].e[0])}qn.ty===0?(qn.layers=hn(qn.refId,Rn),En(qn.layers,Rn)):qn.ty===4?vn(qn.shapes):qn.ty===5&&Hn(qn)}}function gn(Zn,Rn){if(Zn){var qn=0,In=Zn.length;for(qn=0;qn<In;qn+=1)Zn[qn].t===1&&(Zn[qn].data.layers=hn(Zn[qn].data.refId,Rn),En(Zn[qn].data.layers,Rn))}}function w(Zn,Rn){for(var qn=0,In=Rn.length;qn<In;){if(Rn[qn].id===Zn)return Rn[qn];qn+=1}return null}function hn(Zn,Rn){var qn=w(Zn,Rn);return qn?qn.layers.__used?JSON.parse(JSON.stringify(qn.layers)):(qn.layers.__used=!0,qn.layers):null}function vn(Zn){var Rn,qn=Zn.length,In,Dn;for(Rn=qn-1;Rn>=0;Rn-=1)if(Zn[Rn].ty==="sh")if(Zn[Rn].ks.k.i)Pn(Zn[Rn].ks.k);else for(Dn=Zn[Rn].ks.k.length,In=0;In<Dn;In+=1)Zn[Rn].ks.k[In].s&&Pn(Zn[Rn].ks.k[In].s[0]),Zn[Rn].ks.k[In].e&&Pn(Zn[Rn].ks.k[In].e[0]);else Zn[Rn].ty==="gr"&&vn(Zn[Rn].it)}function Pn(Zn){var Rn,qn=Zn.i.length;for(Rn=0;Rn<qn;Rn+=1)Zn.i[Rn][0]+=Zn.v[Rn][0],Zn.i[Rn][1]+=Zn.v[Rn][1],Zn.o[Rn][0]+=Zn.v[Rn][0],Zn.o[Rn][1]+=Zn.v[Rn][1]}function Fn(Zn,Rn){var qn=Rn?Rn.split("."):[100,100,100];return Zn[0]>qn[0]?!0:qn[0]>Zn[0]?!1:Zn[1]>qn[1]?!0:qn[1]>Zn[1]?!1:Zn[2]>qn[2]?!0:qn[2]>Zn[2]?!1:null}var zn=function(){var Zn=[4,4,14];function Rn(In){var Dn=In.t.d;In.t.d={k:[{s:Dn,t:0}]}}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===5&&Rn(In[Dn])}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Vn=function(){var Zn=[4,7,99];return function(Rn){if(Rn.chars&&!Fn(Zn,Rn.v)){var qn,In=Rn.chars.length;for(qn=0;qn<In;qn+=1){var Dn=Rn.chars[qn];Dn.data&&Dn.data.shapes&&(vn(Dn.data.shapes),Dn.data.ip=0,Dn.data.op=99999,Dn.data.st=0,Dn.data.sr=1,Dn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Rn.chars[qn].t||(Dn.data.shapes.push({ty:"no"}),Dn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Yn=function(){var Zn=[5,7,15];function Rn(In){var Dn=In.t.p;typeof Dn.a=="number"&&(Dn.a={a:0,k:Dn.a}),typeof Dn.p=="number"&&(Dn.p={a:0,k:Dn.p}),typeof Dn.r=="number"&&(Dn.r={a:0,k:Dn.r})}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===5&&Rn(In[Dn])}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Gn=function(){var Zn=[4,1,9];function Rn(In){var Dn,er=In.length,Bn,Jn;for(Dn=0;Dn<er;Dn+=1)if(In[Dn].ty==="gr")Rn(In[Dn].it);else if(In[Dn].ty==="fl"||In[Dn].ty==="st")if(In[Dn].c.k&&In[Dn].c.k[0].i)for(Jn=In[Dn].c.k.length,Bn=0;Bn<Jn;Bn+=1)In[Dn].c.k[Bn].s&&(In[Dn].c.k[Bn].s[0]/=255,In[Dn].c.k[Bn].s[1]/=255,In[Dn].c.k[Bn].s[2]/=255,In[Dn].c.k[Bn].s[3]/=255),In[Dn].c.k[Bn].e&&(In[Dn].c.k[Bn].e[0]/=255,In[Dn].c.k[Bn].e[1]/=255,In[Dn].c.k[Bn].e[2]/=255,In[Dn].c.k[Bn].e[3]/=255);else In[Dn].c.k[0]/=255,In[Dn].c.k[1]/=255,In[Dn].c.k[2]/=255,In[Dn].c.k[3]/=255}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===4&&Rn(In[Dn].shapes)}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Un=function(){var Zn=[4,4,18];function Rn(In){var Dn,er=In.length,Bn,Jn;for(Dn=er-1;Dn>=0;Dn-=1)if(In[Dn].ty==="sh")if(In[Dn].ks.k.i)In[Dn].ks.k.c=In[Dn].closed;else for(Jn=In[Dn].ks.k.length,Bn=0;Bn<Jn;Bn+=1)In[Dn].ks.k[Bn].s&&(In[Dn].ks.k[Bn].s[0].c=In[Dn].closed),In[Dn].ks.k[Bn].e&&(In[Dn].ks.k[Bn].e[0].c=In[Dn].closed);else In[Dn].ty==="gr"&&Rn(In[Dn].it)}function qn(In){var Dn,er,Bn=In.length,Jn,Xn,Wn,nr;for(er=0;er<Bn;er+=1){if(Dn=In[er],Dn.hasMask){var ir=Dn.masksProperties;for(Xn=ir.length,Jn=0;Jn<Xn;Jn+=1)if(ir[Jn].pt.k.i)ir[Jn].pt.k.c=ir[Jn].cl;else for(nr=ir[Jn].pt.k.length,Wn=0;Wn<nr;Wn+=1)ir[Jn].pt.k[Wn].s&&(ir[Jn].pt.k[Wn].s[0].c=ir[Jn].cl),ir[Jn].pt.k[Wn].e&&(ir[Jn].pt.k[Wn].e[0].c=ir[Jn].cl)}Dn.ty===4&&Rn(Dn.shapes)}}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}();function Kn(Zn){Zn.__complete||(Gn(Zn),zn(Zn),Vn(Zn),Yn(Zn),Un(Zn),En(Zn.layers,Zn.assets),gn(Zn.chars,Zn.assets),Zn.__complete=!0)}function Hn(Zn){Zn.t.a.length===0&&"m"in Zn.t.p}var Qn={};return Qn.completeData=Kn,Qn.checkColors=Gn,Qn.checkChars=Vn,Qn.checkPathProperties=Yn,Qn.checkShapes=Un,Qn.completeLayers=En,Qn}if(v.dataManager||(v.dataManager=_()),v.assetLoader||(v.assetLoader=function(){function En(w){var hn=w.getResponseHeader("content-type");return hn&&w.responseType==="json"&&hn.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function gn(w,hn,vn,Pn){var Fn,zn=new XMLHttpRequest;try{zn.responseType="json"}catch{}zn.onreadystatechange=function(){if(zn.readyState===4)if(zn.status===200)Fn=En(zn),vn(Fn);else try{Fn=En(zn),vn(Fn)}catch(Vn){Pn&&Pn(Vn)}};try{zn.open(["G","E","T"].join(""),w,!0)}catch{zn.open(["G","E","T"].join(""),hn+"/"+w,!0)}zn.send()}return{load:gn}}()),re.data.type==="loadAnimation")v.assetLoader.load(re.data.path,re.data.fullPath,function(En){v.dataManager.completeData(En),v.postMessage({id:re.data.id,payload:En,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})});else if(re.data.type==="complete"){var J=re.data.animation;v.dataManager.completeData(J),v.postMessage({id:re.data.id,payload:J,status:"success"})}else re.data.type==="loadData"&&v.assetLoader.load(re.data.path,re.data.fullPath,function(En){v.postMessage({id:re.data.id,payload:En,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})})}),h.onmessage=function(b){var re=b.data,_=re.id,J=u[_];u[_]=null,re.status==="success"?J.onComplete(re.payload):J.onError&&J.onError()})}function g(b,re){c+=1;var _="processId_"+c;return u[_]={onComplete:b,onError:re},_}function y(b,re,_){m();var J=g(re,_);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:J})}function x(b,re,_){m();var J=g(re,_);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:J})}function pn(b,re,_){m();var J=g(re,_);h.postMessage({type:"complete",animation:b,id:J})}return{loadAnimation:y,loadData:x,completeAnimation:pn}}(),ImagePreloader=function(){var c=function(){var gn=createTag("canvas");gn.width=1,gn.height=1;var w=gn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),gn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function h(gn,w,hn){var vn="";if(gn.e)vn=gn.p;else if(w){var Pn=gn.p;Pn.indexOf("images/")!==-1&&(Pn=Pn.split("/")[1]),vn=w+Pn}else vn=hn,vn+=gn.u?gn.u:"",vn+=gn.p;return vn}function d(gn){var w=0,hn=setInterval((function(){var vn=gn.getBBox();(vn.width||w>500)&&(this._imageLoaded(),clearInterval(hn)),w+=1}).bind(this),50)}function v(gn){var w=h(gn,this.assetsPath,this.path),hn=createNS("image");isSafari?this.testImageLoaded(hn):hn.addEventListener("load",this._imageLoaded,!1),hn.addEventListener("error",(function(){vn.img=c,this._imageLoaded()}).bind(this),!1),hn.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(hn):this._elementHelper.appendChild(hn);var vn={img:hn,assetData:gn};return vn}function p(gn){var w=h(gn,this.assetsPath,this.path),hn=createTag("img");hn.crossOrigin="anonymous",hn.addEventListener("load",this._imageLoaded,!1),hn.addEventListener("error",(function(){vn.img=c,this._imageLoaded()}).bind(this),!1),hn.src=w;var vn={img:hn,assetData:gn};return vn}function m(gn){var w={assetData:gn},hn=h(gn,this.assetsPath,this.path);return dataManager.loadData(hn,(function(vn){w.img=vn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(gn,w){this.imagesLoadedCb=w;var hn,vn=gn.length;for(hn=0;hn<vn;hn+=1)gn[hn].layers||(!gn[hn].t||gn[hn].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(gn[hn]))):gn[hn].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(gn[hn]))))}function y(gn){this.path=gn||""}function x(gn){this.assetsPath=gn||""}function pn(gn){for(var w=0,hn=this.images.length;w<hn;){if(this.images[w].assetData===gn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function re(){return this.totalImages===this.loadedAssets}function _(){return this.totalFootages===this.loadedFootagesCount}function J(gn,w){gn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function En(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return En.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:re,loadedFootages:_,destroy:b,getAsset:pn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:J},En}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var h=this._cbs[u],d=0;d<h.length;d+=1)h[d](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var h=0,d=this._cbs[u].length;h<d;)this._cbs[u][h]===f&&(this._cbs[u].splice(h,1),h-=1,d-=1),h+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
|
|
122
|
+
</span>`)}else c.format==="percent"?(lr=+lr,isNaN(lr)||(lr=(lr*100).toFixed(2),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}%</span>`))):c.format==="money"?(lr=+lr,isNaN(lr)||(lr=formatMoney(lr),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`))):ur==="thousands"?(lr=+lr,isNaN(lr)||(lr=formatThousands(lr),Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`))):Wn=Wn.replace(sr,`<span class="${ar}" style="color:${Pn(lr)||c.variableColor};font-size:${vue.unref(v)};${vue.unref(En)}">${lr}</span>`)}}if(ir||(ir=`<span class="${ar}" style="color: ${Pn(Wn)};${vue.unref(En)}">${Wn}</span>`),c.unitShow&&c.unitText){const{unitTop:tr,unitLeft:sr}=c;let cr="position:relative;";tr&&(cr+=`top:${tr};`),sr&&(cr+=`margin-left:${sr};`),ir+=`<span style='color:${c.unitColor};font-size:${c.unitFontSize};font-weight:${c.unitFontWeight};${cr};${vue.unref(En)}'>${c.unitText}</span>`}return c.exceedConfig&&(ir=`<span class="${ar}" style="display: inline-block;color: ${Pn(ir)};">${ir}</span>`),ir.includes("span")||(ir=`<span class="${ar}" style="color: ${Pn(ir)};">${ir}</span>`),ir});function Pn(Bn){let Jn="",Xn=!1;const{targetValue:Wn,targetShow:nr,notExpectColor:ir}=c;if(nr){switch(c.targetRule){case"equal":Bn!==Wn&&(Xn=!0);break;case"greater":Bn<=Wn&&(Xn=!0);break;case"greater_equal":Bn<Wn&&(Xn=!0);break;case"less":Bn>=Wn&&(Xn=!0);break;case"less_equal":Bn>Wn&&(Xn=!0);break}Xn&&(Jn=ir)}return Jn}const{pageMode:Fn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",requestList:[]}),{pageId:zn}=vue.inject("templateOperate",{pageId:""})||{},Vn=useRequestData(c),Yn=vue.ref(!1),Gn=async()=>{var Bn,Jn,Xn;try{Yn.value=!0;const Wn=await Vn();(Bn=Wn==null?void 0:Wn.data)!=null&&Bn.data.rowsToData?J(((Jn=Wn==null?void 0:Wn.data)==null?void 0:Jn.data.rowsToData)||{}):J(((Xn=Wn==null?void 0:Wn.data)==null?void 0:Xn.data)||{})}catch(Wn){console.error(Wn)}finally{Yn.value=!1}},Un=()=>{_("")},Kn=Bn=>{var Xn,Wn;const{data:Jn}=(Bn==null?void 0:Bn.data)||{};if(Jn){f.value=!1;const{columns:nr=[],rows:ir=[]}=((Xn=Bn==null?void 0:Bn.data)==null?void 0:Xn.data)??{},{graphicConfig:ar}=c;let or={};if(nr.length>0)if((Wn=ar==null?void 0:ar.dimensionList)!=null&&Wn.length){const tr=nr[0];tr&&(ir!=null&&ir.length)&&(or={value:ir[0][tr]})}else{const tr=nr.find(sr=>!!sr);tr&&(or={value:isNaN(ir[tr])?0:ir[tr]||0})}_(or==null?void 0:or.value),J(or)}else f.value=!0,_(c.variableDefaultValue),J({value:c.variableDefaultValue})},Hn=useIndicatorData(c,Kn),Qn=async()=>{try{Yn.value=!0;const Bn=await Hn();Kn(Bn)}catch(Bn){console.error(Bn)}finally{Yn.value=!1,pn(c.id,!0)}},Zn=vue.ref(!1);vue.watch(b,Bn=>{if(c.dataType==="indicator"){const Jn=getFixedValueDatas(c.graphicConfig);Jn!=null&&Jn.length&&(!vue.unref(Zn)&&canRequestIndicator(c.graphicConfig,Bn)?(Zn.value=!0,Rn()):canRequestIndicator(c.graphicConfig,Bn)||(Zn.value=!1))}},{deep:!0});const Rn=()=>{switch(c.dataType){case"indicator":Qn();break;case"request":{const{openCustomRequestData:Bn,customRequestName:Jn}=c;Bn||Bn===void 0?Gn():x(Jn,Xn=>{Xn&&(Xn.rowsToData?J(Xn.rowsToData):J(Xn))});break}}},{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Bn,sortNum:Jn,requestFn:Xn})=>{}});typeof qn=="function"&&qn({id:c.id,requestFn:Rn,sortNum:c.requestSort}),u({refreshData:Rn});const In=useEmitEvent(c),Dn=In("click",()=>{const Bn=document.getElementsByClassName(`ecan-text_${c.id}`);Bn!=null&&Bn.length&&_(Bn[0].innerText),setTimeout(()=>{_("")},0),!(!c.linkPage&&!c.href)&&handleJumpLink(c,{pageMode:vue.unref(Fn),targetTemplate:c.targetTemplate,getRecordValueByKeyName:y,setTemplateData:re})}),er=In("valueChange",()=>{hn.value++});return useOnEvent(c,{refreshData:Rn,resetRecord:Un,click:Dn,valueChange:er}),vue.watch(()=>vn.value,(Bn,Jn)=>{Bn!==Jn&&er()}),{style:h,myText:vn,loading:Yn,click:Dn,textIndent:p,vFontSize:v,gradientStyle:gn,cursorStyle:w}}}),__injectCSSVars__$4=()=>{vue.useCssVars(c=>({"38a45d5f":c.vFontSize,f7f14d00:c.textIndent,"5a5c0e50":c.percentageSide}))},__setup__$4=__default__$4.setup;__default__$4.setup=__setup__$4?(c,u)=>(__injectCSSVars__$4(),__setup__$4(c,u)):__injectCSSVars__$4;const Text_vue_vue_type_style_index_0_scoped_da7526c5_lang="",Text_vue_vue_type_style_index_1_lang="",_hoisted_1$f=["innerHTML"];function _sfc_render$x(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["ecan-text","ecan-text_"+c.id]),style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.cursorStyle}),innerHTML:c.myText,onClick:u[0]||(u[0]=(...m)=>c.click&&c.click(...m))},null,14,_hoisted_1$f))}const Text=_export_sfc$1(__default__$4,[["render",_sfc_render$x],["__scopeId","data-v-da7526c5"]]),EcanText=withInstall$1(Text),_sfc_main$s=vue.defineComponent({name:"EcanScrollText",setup(){return{text:vue.ref("基础文本")}}}),ScrollText_vue_vue_type_style_index_0_scoped_4dd9c03e_lang="",_hoisted_1$e={class:"red"};function _sfc_render$w(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,vue.toDisplayString(c.text),1)}const ScrollText=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$w],["__scopeId","data-v-4dd9c03e"]]),EcanScrollText=withInstall$1(ScrollText),timeDisplayProps={...props,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},timeDisplayComponentProps=transformToComponentProps(timeDisplayProps),timeDisplayEvents=["timeChange"],_sfc_main$r=vue.defineComponent({name:"EcanTimeDisplay",props:{...timeDisplayComponentProps},setup(c){const{pageMode:u}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),f=usePickComponentStyle(c),h=()=>{const{format:x,operate:pn}=c;let b=dayjs();if(pn){const{type:re,value:_,mode:J}=pn;switch(re){case"add":b=b.add(_,J);break;case"minus":b=b.subtract(_,J)}}return b.format(x)},d=vue.ref();vue.watch(()=>[c.operate,c.format],()=>{d.value=h()},{immediate:!0,deep:!0}),vue.watch(()=>c.updateInterval,()=>{y()},{deep:!0});let v=null;const p=()=>{clearInterval(v),v=null},g=useEmitEvent(c)("timeChange",()=>{}),y=()=>{v&&p();let x=1e3;const{value:pn,mode:b}=c.updateInterval||{};pn&&(x=x*pn);const re={second:1,minute:60,hour:60*60,day:24*60*60};b&&(x=x*re[b]),v=setInterval(()=>{d.value=h(),vue.unref(u)!=="design"&&g()},x)};return useOnEvent(c,{timeChange:g}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{p()}),{style:f,time:d}}}),TimeDisplay_vue_vue_type_style_index_0_scoped_b9216314_lang="";function _sfc_render$v(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"time-display",style:vue.normalizeStyle(c.style)},vue.toDisplayString(c.time),5)}const TimeDisplay=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$v],["__scopeId","data-v-b9216314"]]),EcanTimeDisplay=withInstall$1(TimeDisplay),listProps={...props,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"0px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:10,graphicConfig:{},seqIconWidth:"",seqIconHeight:"",seqIconConfig:[],seqIconOffsetX:0,seqIconOffsetY:0,seqIndexFormatter:"{index}",itemWidth:"100%"},listComponentProps=transformToComponentProps(listProps),listEvents=["refreshData","click","resetRecord"],seqIcon4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",seqIcon5="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2iOa8l+Ybn+CD+kqIZlSFA+C1CTpuw9zvBYK2YfuCM9QmKgaIZNcEQGj4da0bKQuug3g4G3T2TYmQIYwYlIqIbVXdH0KrW2oI4u2Z8qfgqT6AVutZ1Ny0VhAelEXSl+2DilO1IywhCKNgaR8oouVJFGkikk0grvqBl9c5cx5UV8R0I/0MjbTJwqOftMekgmsLA9fxbTa8Po1V9D8eMpIyAwhE8n55JYM6YvDyXBhIN21DEHgHNdgNIg4BmpIEEpak3xGsCMKsU7DMpIC2xeg2R7p2uvMkTK9GRXiiNSmnfrhhoYXcQODzBMkr2oixtxLeW3osP5oDMpRdZxl9sQNcYo1oxfc8Z64/dKgo6efwwxgfnTt1OGpnVDL4Zp3mOAouCmivvdjTPwTlRN3oWBMFiHOeEIPFEAKtGvrTz0znxCSDl9ZPnj4lKAAAAAElFTkSuQmCC",seqIcon6="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAZhJREFUSEvNl79LY0EUhb87L6uwkHSieRjBwm7/ApHVbcwzrT8ake21EGHZympBbLewEOxk2xVEBAVttBLtrRWTiLtaiTHue3NlsgiKRiwSJ1NOMffjzLl3zghH+oHL81ms/Y4xHajSsGUMJMkZIgtE4fJr5wqbpVnS6Z9UrmkoxENVMYCC6BTD4a96MMJW8RQT5LC2YUI8OygInDLrdGcn+CR3LxUStsvaFCUeV3NXpPaIdPKZ/lzlZZCtUgNNUUdUB2LtIZlksBVADmivDvGl99afIiLOsBWUPFG47w/EVXbdU7uieJ7h7CIiT7pDeA+PPJfgN1E49njbD0hbO9xVj8kkA/TnrmqCeVIEUimI4zJqphjp2vUHUpPBmZh/JDrjH0Q1xjLtDyRIQRJfQDBJ1LnjB+TBrFYGKWT/+DTrGlE46qd9W2Kgue5QvUXIkw/3/I34/69vCzx6b4oBrROMiieYoKfpUTGON9CbcQp91ToeKc7wMbPU9PCsfCXKrtYPz+478fd8DtVvGGnOd0LlB4Vw5bV0fg/E2Mcb2D1RagAAAABJRU5ErkJggg==",seqIcon7="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==",_sfc_main$q=vue.defineComponent({name:"EcanList",components:{Skeleton,ATooltip:antDesignVue.Tooltip,MarqueeScroll},props:{...listComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c,["backgroundColor"]),d=(qn,In)=>{const{format:Dn,customFormatter:er}=In;if(Dn==null||Dn==="")return qn;const Bn={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,custom:formatCustom};return Bn[Dn]?Dn==="custom"?Bn[Dn](qn,er)||"":Bn[Dn](qn)||"":""},v=(qn,In)=>{const Dn=parseFloat(qn+"");if(In!=="contrast")return"";switch(!0){case Dn>=0:return"goUp";case Dn<0:return"goDown"}},p=useRequestData(c),m=vue.ref(!1),g=async()=>{var qn;if(c.dataType==="request")try{m.value=!0;const In=await p();f.value=((qn=In==null?void 0:In.data)==null?void 0:qn.data.rows)||[]}catch(In){console.error(In)}finally{m.value=!1}};vue.watch(()=>c.data,()=>{(c.dataType==="static"||!vue.unref(f))&&(f.value=c.data)},{immediate:!0,deep:!0});const y=vue.computed(()=>({key:"SEQ",width:c.seqWidth,title:c.seqName,align:"center",fontSize:c.seqFontSize})),x=vue.computed(()=>{const{columns:qn,isUseSeq:In}=c;return In?[vue.unref(y),...qn]:qn}),pn=qn=>{var er;const{columns:In=[],rows:Dn=[]}=((er=qn==null?void 0:qn.data)==null?void 0:er.data)??{};c.isUseSeq&&In.unshift(c.seqName),x.value.forEach((Bn,Jn)=>{(!c.isUseSeq||Jn!==0)&&(Bn.title=In[Jn],Bn.key=In[Jn])}),f.value=Dn},b=useIndicatorData(c,pn),re=async()=>{try{m.value=!0;const qn=await b();pn(qn)}catch(qn){console.error(qn)}finally{m.value=!1}},_=()=>{switch(c.dataType){case"indicator":re();break;case"request":g();break}},J=useEmitEvent(c),{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,In)=>{}}),w=qn=>{J("click",()=>{const In=En(c.id);gn(c.id,{...In,type:c.type,RECORD:qn})})()};useOnEvent(c,{refreshData:_,resetRecord:()=>{const qn=c.id,In=En(qn);gn(qn,{...In,type:c.type,RECORD:""})}});const{setRequest:vn}=vue.inject(REQUEST_MODEL,{setRequest:({id:qn,sortNum:In,requestFn:Dn})=>{}});typeof vn=="function"&&vn({id:c.id,requestFn:_,sortNum:c.requestSort}),u({refreshData:_});const Pn=(qn,In)=>({flex:qn.width?"none":"1",width:qn.width,height:c.itemHeight,lineHeight:c.itemHeight,textAlign:(In?qn.cellAlign:qn.align)||"left",backgroundColor:qn.cellColor}),Fn=(qn,In)=>{let Dn=0;const er=vue.unref(f).map(Jn=>Jn[In]),Bn=Math.max(...er);return Bn&&(Dn=qn[In]/Bn*100),Dn},zn=qn=>{const{progressColor:In="#1890ff",progressGradientColor:Dn=""}=qn;return Dn?{background:`linear-gradient(to right, ${In} 0%, ${Dn} 100%)`}:{backgroundColor:In||"#1890ff"}},Vn=vue.computed(()=>{const qn=parseFloat(c.seqFontSize)+5;return{width:qn+10,height:qn}}),{pageMode:Yn}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),Gn=vue.computed(()=>vue.unref(Yn)!=="design"&&c.isAutoScroll),Un=qn=>{const{seqIconConfig:In}=c;let Dn=In.find(er=>er.key===qn+1);return Dn||(Dn=In.find(er=>er.key==="other")),!!(Dn!=null&&Dn.icon)},Kn=(qn,In)=>{const{seqIconConfig:Dn}=c;let er=Dn.find(Bn=>Bn.key===qn+1);return er||(er=Dn.find(Bn=>Bn.key==="other")),In===1?er!=null&&er.icon?useImagePath(er.icon):"":In===2?(er==null?void 0:er.color)||"#fff":""},Hn=qn=>{const{seqIndexFormatter:In}=c,Dn=qn+1;return In?useVariablesInText(In,{textData:{index:Dn}},{useNewline:!1,useSpace:!0}):Dn},Qn=vue.computed(()=>parseFloat(c.itemWidth)!==100?{height:"100%"}:{}),Zn=vue.computed(()=>!c.itemWidth||c.itemWidth==="100%"?"0":c.itemColSpan);return{style:h,formatFn:d,contrastClass:v,dataSource:f,loading:m,myColumns:x,click:w,getColumnStyle:Pn,getPercentage:Fn,getBackgroundColor:zn,isShowSeqIcon:Un,getSeqIconData:Kn,seqIcon4,seqIcon5,seqIcon6,seqIcon7,iconSize:Vn,isScroll:Gn,formatSeq:Hn,wrapStyle:Qn,colSpan:Zn,getText:(qn,In)=>(qn.format!=null||qn.format!=="")&&d(In[qn.key],qn)}}}),List_vue_vue_type_style_index_0_scoped_5ba2950a_lang="",List_vue_vue_type_style_index_1_lang="",_withScopeId$4=c=>(vue.pushScopeId("data-v-5ba2950a"),c=c(),vue.popScopeId(),c),_hoisted_1$d={key:0,class:"title"},_hoisted_2$6={key:0,class:"ranking"},_hoisted_3$2=["onClick"],_hoisted_4$2={key:0,class:"ranking"},_hoisted_5$2=_withScopeId$4(()=>vue.createElementVNode("div",{class:"icon"},null,-1)),_hoisted_6$2={class:"sort"},_hoisted_7$2=["src"],_hoisted_8$2={key:1},_hoisted_9$2=["src","width","height"],_hoisted_10$2=["src","width","height"],_hoisted_11$2=["src","width","height"],_hoisted_12$2=["src","width","height"],_hoisted_13$2={key:1},_hoisted_14$2=["title"],_hoisted_15$2={key:2,class:"empty"};function _sfc_render$u(c,u,f,h,d,v){const p=vue.resolveComponent("a-tooltip"),m=vue.resolveComponent("marquee-scroll"),g=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-list",style:vue.normalizeStyle(c.style)},[vue.createVNode(g,{loading:c.loading},{default:vue.withCtx(()=>[c.useTitle?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.columnCount,y=>(vue.openBlock(),vue.createElementBlock("div",{class:"title-inner",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(100% / ${c.columnCount} - ${c.itemColSpan} * ${c.columnCount-1}/ ${c.columnCount})`,marginRight:y%c.columnCount!==0?c.itemColSpan:"",padding:`0 ${c.itemPadding}`}),key:y},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$6)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,(x,pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"column",key:x.key||pn,style:vue.normalizeStyle({color:x.titleColor,fontSize:x.fontSize,...c.getColumnStyle(x)})},vue.toDisplayString(x.title),5))),128))],4))),128))])):vue.createCommentVNode("",!0),c.dataSource.length>0?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-list-content",style:vue.normalizeStyle({paddingTop:c.useTitle?c.itemRowSpan:0,height:c.useTitle?"calc(100% - 40px)":"100%"})},[vue.createVNode(m,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap",...c.wrapStyle}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.dataSource.slice(0,c.sliceCount),(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"item",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,height:c.itemHeight,width:`calc(${c.itemWidth} - ${c.colSpan})`,marginRight:c.colSpan,marginBottom:c.itemRowSpan,padding:`0 ${c.itemPadding}`}),key:y.id||x,onClick:pn=>c.click(y)},[c.useRanking?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$2,[_hoisted_5$2,vue.createElementVNode("div",_hoisted_6$2," Top "+vue.toDisplayString(x+1),1)])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myColumns,pn=>{var b;return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["column",c.contrastClass(y[pn.key],pn.format),pn.key==="SEQ"?"seq-column":""]),key:pn.key,style:vue.normalizeStyle({fontSize:pn.fontSize,color:c.contrastClass(y[pn.key],pn.format)===""?pn.color:"",fontWeight:pn.fontWeight,...c.getColumnStyle(pn,"cell")})},[pn.key==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(b=c.seqIconConfig)!=null&&b.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"icon-box",style:vue.normalizeStyle({width:c.seqIconWidth||"",height:c.seqIconHeight||""})},[c.seqIconWidth&&c.seqIconHeight&&c.isShowSeqIcon(x)?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"custom-seq-icon",src:c.getSeqIconData(x,1),style:vue.normalizeStyle({width:c.seqIconWidth,height:c.seqIconHeight})},null,12,_hoisted_7$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"custom-seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize,color:c.getSeqIconData(x,2),lineHeight:c.seqIconHeight||"",left:c.seqIconOffsetX,top:c.seqIconOffsetY})},vue.toDisplayString(c.formatSeq(x)),5)],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$2,[x===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon4,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_9$2)):x===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon5,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_10$2)):x===2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon6,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_11$2)):x>=3?(vue.openBlock(),vue.createElementBlock("img",{key:3,class:"seq-icon",src:c.seqIcon7,width:c.iconSize.width,height:c.iconSize.height},null,8,_hoisted_12$2)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.seqFontSize})},vue.toDisplayString(c.formatSeq(x)),5)]))],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_13$2,vue.toDisplayString(c.formatSeq(x)),1))],64)):pn.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"progress-cell",style:vue.normalizeStyle({height:c.itemHeight})},[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({height:pn.progressWidth||"14px",backgroundColor:pn.progressBaseColor})},[vue.createVNode(p,{title:y[pn.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:vue.withCtx(()=>[vue.createElementVNode("div",{style:vue.normalizeStyle({borderRadius:"10px",height:pn.progressWidth||"14px",width:`${c.getPercentage(y,pn.key)}%`,...c.getBackgroundColor(pn)})},null,4)]),_:2},1032,["title"])],4)],4)):(vue.openBlock(),vue.createElementBlock("span",{key:2,title:c.getText(pn,y)},vue.toDisplayString(c.getText(pn,y)),9,_hoisted_14$2))],6)}),128))],12,_hoisted_3$2))),128))]),_:1},8,["visible","step","wrapStyle"])],4)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2," 暂无数据 "))]),_:1},8,["loading"])],4)}const List=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$u],["__scopeId","data-v-5ba2950a"]]),EcanList=withInstall$1(List),proportionProps={...props,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}{%}",fontSize:"26px",color:"#4091f7",variableColor:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},proportionComponentProps=transformToComponentProps(proportionProps),proportionEvents=["refreshData","click"],_sfc_main$p=vue.defineComponent({name:"EcanProportion",components:{AProgress:antDesignVue.Progress,Skeleton},props:{...proportionComponentProps},setup(c,{expose:u}){const f=vue.ref(!1),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=usePickComponentStyle(c),v=vue.computed(()=>{const Pn=c.width;return parseFloat(Pn)}),p=vue.ref({});vue.watch(()=>c.data,()=>{(c.dataType==="static"||vue.unref(h)==="design")&&(p.value=c.data)},{immediate:!0,deep:!0});const m=vue.computed(()=>{const Pn=vue.unref(p),Fn=+c.variableDefaultValue;if(Pn==null)return isNaN(Fn)?0:Fn;const zn=c.text.match(/\{(.+?)\}/g)||[];let Vn;const Yn=new Set(Object.keys(Pn));for(let Gn=0;Gn<zn.length;Gn++){const Un=zn[Gn],Kn=Un.slice(1,Un.length-1);if(Yn.has(Kn)){Vn=Pn[Kn];break}}return typeof Vn=="number"?Vn=Vn*100:typeof Vn=="string"&&!isNaN(+Vn)?Vn=+Vn*100:isNaN(Fn)?Vn=0:Vn=Fn*100,c.decimalFormat&&(Vn=+Vn.toFixed(2)),Vn}),g=vue.computed(()=>{var Yn;let Pn=c.text;if(Pn==="")return vue.unref(m);const Fn=c.variableDefaultValue,zn=vue.unref(p),Vn=Pn.match(/\{(.+?)\}/g)||[];for(let Gn=0;Gn<Vn.length;Gn++){const Un=Vn[Gn];let Kn=Un.slice(1,Un.length-1);const Hn=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,Qn=Un.match(Hn);for(let Rn=0;Rn<(Qn==null?void 0:Qn.length);Rn++){const qn=(Yn=Qn[Rn])==null?void 0:Yn.trim();zn[qn]!=null&&(Kn=Kn.replace(qn,zn[qn]))}let Zn=Kn;try{(/\(.*\)/g.test(Kn)||/[+/\\*]/g.test(Kn))&&(Zn=runCode(Kn))}catch(Rn){console.error(Rn)}typeof+Zn=="number"&&!isNaN(+Zn)?(Zn=+Zn*100,c.decimalFormat&&(Zn=Zn.toFixed(2))):typeof Zn!="string"&&(Zn=Fn),Pn=Pn.replace(Un,`<span style="color: ${c.variableColor};">${Zn+""}</span>`)}return Pn=Pn==null?void 0:Pn.replace(/\n|\\n/g,"<br/>"),vue.unref(f)?"NaN":Pn}),y=useRequestData(c),x=vue.ref(!1),pn=async()=>{var Pn,Fn,zn,Vn,Yn;if(c.dataType==="request")try{x.value=!0;const Gn=await y();p.value=((Pn=Gn==null?void 0:Gn.data)==null?void 0:Pn.data)||{},(zn=(Fn=Gn==null?void 0:Gn.data)==null?void 0:Fn.data)!=null&&zn.rowsToData&&(p.value=((Yn=(Vn=Gn==null?void 0:Gn.data)==null?void 0:Vn.data)==null?void 0:Yn.rowsToData)||{})}catch(Gn){console.error(Gn)}finally{x.value=!1}},b=(Pn={})=>{p.value=Pn},re=Pn=>{var zn;const{data:Fn}=(Pn==null?void 0:Pn.data)||{};if(Fn){f.value=!1;const{columns:Vn=[],rows:Yn=[]}=((zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)??{};let Gn={};if(Vn.length>0){const Un=Vn.find(Kn=>!!Kn);Un&&(Gn={percent:Yn[Un]})}b(Gn)}else f.value=!0,b({percent:"NaN"})},_=useIndicatorData(c,re),J=async()=>{try{x.value=!0;const Pn=await _();re(Pn)}catch(Pn){console.error(Pn)}finally{x.value=!1}},En=()=>{switch(c.dataType){case"indicator":J();break;case"request":pn();break}};useOnEvent(c,{refreshData:En}),u({refreshData:En});const w=useEmitEvent(c)("click",()=>{}),{setRequest:hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Fn,requestFn:zn})=>{}});typeof hn=="function"&&hn({id:c.id,requestFn:En,sortNum:c.requestSort});const vn=vue.computed(()=>{const{gradientShow:Pn,gradientColor:Fn,gradientOffset:zn,strokeColor:Vn}=c;let Yn=Vn;return Pn&&(Yn={"0%":Vn||"transparent",[`${zn*100}%`]:Fn||"transparent"}),Yn});return{style:d,myWidth:v,text:g,myValue:m,loading:x,click:w,customStrokeColor:vn}}}),Proportion_vue_vue_type_style_index_0_scoped_66e28f38_lang="",_hoisted_1$c=["innerHTML"];function _sfc_render$t(c,u,f,h,d,v){const p=vue.resolveComponent("skeleton"),m=vue.resolveComponent("a-progress");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-proportion",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:vue.normalizeClass(["progress",c.gradientShow?"gradient":""]),percent:c.myValue,width:c.myWidth,type:c.strokeType,strokeColor:c.customStrokeColor,strokeLinecap:c.strokeLinecap,trailColor:c.trailColor||"transparent",strokeWidth:c.strokeWidth,showInfo:c.strokeTextShow,gapDegree:c.strokeType==="dashboard"?75:0,onClick:c.click},{format:vue.withCtx(()=>[c.loading?(vue.openBlock(),vue.createBlock(p,{key:0,loading:c.loading},null,8,["loading"])):c.strokeTextShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"format",style:vue.normalizeStyle({width:c.strokeTextWidth,fontSize:c.fontSize,color:c.color,fontWeight:c.fontWeight,lineHeight:c.lineHeight})},[vue.createElementVNode("span",{style:{"white-space":"nowrap"},innerHTML:c.text},null,8,_hoisted_1$c)],4)):vue.createCommentVNode("",!0)]),_:1},8,["class","percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Proportion=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$t],["__scopeId","data-v-66e28f38"]]),EcanProportion=withInstall$1(Proportion),counterProps={...props,name:"计数器",type:"ecanCounter",keyName:"计数器",width:"400px",height:"80px",zIndex:0,digits:5,counterBackgroundImage:"",color:"#333",unitInterval:15,fontSize:"20px",fontWeight:700,fontStyle:"normal",unitWidth:"65px",unitHeight:"72px",data:"",graphicConfig:{}},counterComponentProps=transformToComponentProps(counterProps),counterEvents=["refreshData","click","resetRecord"],_sfc_main$o=vue.defineComponent({name:"EcanCounter",components:{Skeleton},props:{...counterComponentProps},setup(c,{expose:u}){const f=vue.ref(),h=usePickComponentStyle(c),d=vue.computed(()=>({width:c.unitWidth,height:c.unitHeight,marginRight:c.unitInterval+"px"})),v=vue.computed(()=>({color:c.color,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}));vue.watch(()=>[c.data,c.dataType],([vn,Pn])=>{Pn==="static"&&(f.value=vn)},{immediate:!0});const{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:vn=>{},setGlobalModel:(vn,Pn)=>{}}),y=useEmitEvent(c)("click",()=>{const vn=p(c.id);m(c.id,{...vn,type:c.type,value:vue.unref(f)})}),x=()=>{const vn=c.id,Pn=p(vn);m(vn,{...Pn,type:c.type,value:""})},pn=useRequestData(c),b=vue.ref(!1),re=async()=>{var vn,Pn;try{b.value=!0;const Fn=await pn();f.value=((Pn=(vn=Fn==null?void 0:Fn.data)==null?void 0:vn.data)==null?void 0:Pn.value)||""}catch(Fn){console.error(Fn)}finally{b.value=!1}},_=vn=>{var zn;const{data:Pn}=(vn==null?void 0:vn.data)||{};let Fn="";if(Pn){const{columns:Vn=[],rows:Yn=[]}=((zn=vn==null?void 0:vn.data)==null?void 0:zn.data)??{};if(Vn.length>0){const Gn=Vn.find(Un=>!!Un);Gn&&(Fn=Yn[Gn]||"")}}f.value=String(Fn)},J=useIndicatorData(c,_),En=async()=>{try{b.value=!0;const vn=await J();_(vn)}catch(vn){console.error(vn)}finally{b.value=!1}},gn=()=>{switch(c.dataType){case"indicator":En();break;case"request":re();break}},w=vue.computed(()=>{const vn=[],{digits:Pn}=c,Fn=vue.unref(f)?vue.unref(f).split("").reverse().join(""):"";for(let zn=0;zn<Pn;zn++)Fn&&Fn[zn]?vn.push(Fn[zn]):vn.push("0");return vn.reverse()});useOnEvent(c,{refreshData:gn,resetRecord:x});const{setRequest:hn}=vue.inject(REQUEST_MODEL,{setRequest:({id:vn,sortNum:Pn,requestFn:Fn})=>{}});return typeof hn=="function"&&hn({id:c.id,requestFn:gn,sortNum:c.requestSort}),u({refreshData:gn}),{style:h,valueList:w,digitsStyle:d,fontStyle:v,loading:b,useImagePath,click:y}}}),Counter_vue_vue_type_style_index_0_scoped_82bd9070_lang="",_hoisted_1$b=["src"];function _sfc_render$s(c,u,f,h,d,v){var m;const p=vue.resolveComponent("skeleton");return c.loading?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{loading:c.loading},null,8,["loading"])],4)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"ecan-counter",style:vue.normalizeStyle(c.style),onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[(m=c.valueList)!=null&&m.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.valueList,(g,y)=>(vue.openBlock(),vue.createElementBlock("div",{class:"digits-item",style:vue.normalizeStyle(c.digitsStyle),key:y},[c.counterBackgroundImage?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"item-image",src:c.useImagePath(c.counterBackgroundImage)},null,8,_hoisted_1$b)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:"item-text",style:vue.normalizeStyle(c.fontStyle)},vue.toDisplayString(g),5)],4))),128)):vue.createCommentVNode("",!0)],4))}const Counter=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$s],["__scopeId","data-v-82bd9070"]]),EcanCounter=withInstall$1(Counter),inputProps={...props,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},inputComponentProps=transformToComponentProps(inputProps),inputEvents=["inputChange","inputBlur"],_sfc_main$n=vue.defineComponent({name:"EcanInput",components:{AInput:antDesignVue.Input},props:{...inputComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(""),{getGlobalModel:h,setGlobalModel:d,getRecordValueByKeyName:v}=vue.inject(GLOBAL_MODEL,{getGlobalModel:x=>{},setGlobalModel:(x,pn)=>{},getRecordValueByKeyName:x=>{}});vue.watch(()=>c.value,x=>{f.value=v(x)},{immediate:!0}),d(c.id,{type:c.type,value:f});const p=()=>{const x=h(c.id);d(c.id,{...x,RECORD:f})},m=useEmitEvent(c),g=lodashEs.debounce(m("inputChange",()=>{p()}),300),y=m("inputBlur",()=>{});return{style:u,myValue:f,inputBlur:y,inputChange:g}}}),Input_vue_vue_type_style_index_0_lang="";function _sfc_render$r(c,u,f,h,d,v){const p=vue.resolveComponent("a-input");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-input",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{class:"input",value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),placeholder:c.placeholder,onChange:c.inputChange,onBlur:c.inputBlur,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Input=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$r]]),EcanInput=withInstall$1(Input),datePickerProps$1={...props,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null,optionFontSize:"14px",limitStartTime:"",limitEndTime:""},datePickerComponentProps=transformToComponentProps(datePickerProps$1),datePickerEvents=["dateChange"],__default__$3=vue.defineComponent({name:"EcanDatePicker",props:{...datePickerComponentProps},components:{ADatePicker:antDesignVue.DatePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},setup(c){const u=vue.inject("isMobile",!1),f=vue.inject("scaleValue",{widthScale:"1",heightScale:"1"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref(null),p=vue.ref(null),m=vue.ref(""),g=vue.ref(!1),y=vue.ref([]),x=vue.computed(()=>{let Gn=["year","month","day"];switch(c.picker){case"year":Gn=["year"];break;case"month":Gn=["year","month"];break}return Gn});vue.watch(()=>[c.value,c.useCurrentTime,c.operate],([Gn,Un,Kn])=>{let Hn=null;if(Gn?Hn=dayjs(useVariablesInText(Gn)):Un&&(Hn=dayjs()),Kn&&Hn){const{type:Qn,value:Zn,mode:Rn}=Kn;switch(Qn){case"add":Hn=Hn.add(Zn,Rn);break;case"minus":Hn=Hn.subtract(Zn,Rn)}}v.value=Hn,p.value=Hn,vue.unref(u)&&zn(Hn)},{deep:!0,immediate:!0});const{setGlobalModel:pn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Gn,Un)=>{}}),{pageId:b}=vue.inject("templateOperate",{pageId:""})||{};pn(c.id,{type:c.type,format:c.format,useCurrentTime:c.useCurrentTime,value:v});const _=useEmitEvent(c)("dateChange",()=>{const Gn=getNewValueFromUrlParams(b,c.keyName,"value");Gn&&(v.value=dayjs(Gn))}),J=()=>{vue.unref(v)&&_()};useOnEvent(c,{dateChange:_});const En=vue.ref({}),gn=vue.ref({}),w=Gn=>{Gn?setTimeout(()=>{gn.value=vue.unref(En)},300):gn.value={}};vue.onMounted(()=>{setTimeout(()=>{const Gn=document.querySelector(`#ecan-date-picker-${c.id}`);if(Gn){const Un=Gn.getBoundingClientRect(),Kn=parseFloat(vue.unref(f).widthScale)*280;document.body.clientWidth-Un.left<Kn&&(En.value.marginLeft=-1*(Kn-Un.width)+"px")}},0)});const hn=()=>{zn(vue.unref(v)),g.value=!0},vn=()=>{zn(),v.value=null},Pn=()=>{const Gn=dayjs(vue.unref(y).join("-"));v.value=Gn,zn(Gn),g.value=!1,J()},Fn=()=>{v.value=dayjs(),zn(),m.value=dayjs().format(c.format),g.value=!1};function zn(Gn){y.value=Vn(Gn||dayjs()),m.value=(Gn==null?void 0:Gn.format(c.format))||""}function Vn(Gn){const Un=[];for(const Kn of vue.unref(x))Kn==="day"?Un.push(Gn.date()):Un.push(Gn[Kn]()+(Kn==="month"?1:0));return Un}return{style:h,getPopupContainer:d,myValue:v,locale,change:J,scaleValue:f,popupStyle:En,customStyle:gn,openChange:w,isMobile:u,mobileDateStr:m,handleClearDate:vn,openDatePick:hn,datePickVisible:g,columnsType:x,mobileDate:y,onConfirmDate:Pn,onCancelDate:Fn,disabledDate:Gn=>{let Un=!1,{limitStartTime:Kn,limitEndTime:Hn}=c,Qn=c.picker;const Zn={current:vue.unref(p)};return c.picker==="date"&&(Qn="day"),Kn=useVariablesInText(Kn,{textData:Zn}),Hn=useVariablesInText(Hn,{textData:Zn}),Kn&&Hn?Un=!(dayjs(Kn).isBefore(Gn,Qn)&&Gn.isBefore(dayjs(Hn),Qn)):Kn?Un=Gn.isBefore(dayjs(Kn),Qn):Hn&&(Un=dayjs(Hn).isBefore(Gn,Qn)),Un}}}}),__injectCSSVars__$3=()=>{vue.useCssVars(c=>({10653284:c.optionFontSize}))},__setup__$3=__default__$3.setup;__default__$3.setup=__setup__$3?(c,u)=>(__injectCSSVars__$3(),__setup__$3(c,u)):__injectCSSVars__$3;const DatePicker_vue_vue_type_style_index_0_scoped_3e281dca_lang="",DatePicker_vue_vue_type_style_index_1_lang="",_hoisted_1$a=["id"];function _sfc_render$q(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-popup"),pn=vue.resolveComponent("a-date-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-date-picker",style:vue.normalizeStyle(c.style),id:"ecan-date-picker-"+c.id},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(x,{show:c.datePickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.datePickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(y,{key:0,modelValue:c.mobileDate,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileDate=b),"columns-type":c.columnsType,"cancel-button-text":"此刻",onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},null,8,["modelValue","columns-type","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(pn,{key:1,class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:c.myValue,"onUpdate:value":u[2]||(u[2]=b=>c.myValue=b),format:c.format,picker:c.picker,showTime:c.showTime,locale:c.locale,onChange:c.change,onOpenChange:c.openChange,"disabled-date":c.disabledDate,getPopupContainer:c.getPopupContainer,popupStyle:{fontSize:c.optionFontSize,transform:`scale(${c.scaleValue.widthScale}, ${c.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","disabled-date","getPopupContainer","popupStyle"]))],12,_hoisted_1$a)}const DatePicker$1=_export_sfc$1(__default__$3,[["render",_sfc_render$q],["__scopeId","data-v-3e281dca"]]),EcanDatePicker=withInstall$1(DatePicker$1),rangePickerProps={...props,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0,limitInterval:null},rangePickerComponentProps=transformToComponentProps(rangePickerProps),rangePickerEvents=["dateChange"];var quarterOfYear$1={exports:{}};(function(c,u){(function(f,h){c.exports=h()})(commonjsGlobal,function(){var f="month",h="quarter";return function(d,v){var p=v.prototype;p.quarter=function(y){return this.$utils().u(y)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(y-1))};var m=p.add;p.add=function(y,x){return y=Number(y),this.$utils().p(x)===h?this.add(3*y,f):m.bind(this)(y,x)};var g=p.startOf;p.startOf=function(y,x){var pn=this.$utils(),b=!!pn.u(x)||x;if(pn.p(y)===h){var re=this.quarter()-1;return b?this.month(3*re).startOf(f).startOf("day"):this.month(3*re+2).endOf(f).endOf("day")}return g.bind(this)(y,x)}}})})(quarterOfYear$1);var quarterOfYearExports=quarterOfYear$1.exports;const quarterOfYear=getDefaultExportFromCjs(quarterOfYearExports);dayjs.extend(quarterOfYear);const __default__$2=vue.defineComponent({name:"EcanRangePicker",components:{ARangePicker:antDesignVue.RangePicker,AInput:antDesignVue.Input,CalendarOutlined:CalendarOutlined$1,CloseCircleFilled:CloseCircleFilled$1},props:{...rangePickerComponentProps},setup(c){const u=vue.inject("isMobile",!1),{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=()=>document.getElementById("ProviderConfig")||document.body,v=vue.ref([null,null]),p=vue.ref(!1),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.ref(),pn=vue.ref(),b=vue.ref(),re=vue.ref(0),_=vue.ref({}),J=vue.ref(""),En=vue.computed(()=>{let tr=["year","month","day"];switch(c.picker){case"year":tr=["year"];break;case"month":tr=["year","month"];break}return tr});vue.watch(()=>[c.startTime,c.endTime,c.useCurrentTime,c.interval,c.intervalUnit,c.operate],([tr,sr,cr,vr,dr,lr])=>{if(vue.unref(v).every(ur=>!ur)||vue.unref(f)==="design"){let ur=null,fr=null;if(cr&&(ur=dayjs().subtract(vr,dr),fr=dayjs()),tr&&(ur=dayjs(useVariablesInText(tr))),sr&&(fr=dayjs(useVariablesInText(sr))),lr){const{type:mr,value:yr,mode:br}=lr;switch(mr){case"add":ur=ur&&ur.add(yr,br),fr=fr&&fr.add(yr,br);break;case"minus":ur=ur&&ur.subtract(yr,br),fr=fr&&fr.subtract(yr,br)}}v.value=[ur,fr],vue.unref(u)&&ar()}},{immediate:!0});let gn=vue.unref(v)[0],w=vue.unref(v)[1],hn="";const vn=(tr,sr,cr)=>{Array.isArray(tr)?(gn=tr[0],w=tr[1],hn=cr.range):(gn=null,w=null)},Pn=tr=>{let sr=!1,{limitStartTime:cr,limitEndTime:vr}=c;const dr={startTime:`${gn||""}`,endTime:`${w||""}`};if(cr=useVariablesInText(cr,{codeData:dr}),vr=useVariablesInText(vr,{codeData:dr}),cr&&vr?sr=!(dayjs(cr)<tr&&tr<dayjs(vr)):cr?sr=dayjs(cr)>tr:vr&&(sr=dayjs(vr)<tr),!c.isAllowSpanYear&&hn){let lr=null;if(hn==="start"?lr=gn:hn==="end"&&(lr=w),lr){const ur=lr.startOf("year"),fr=lr.endOf("year");sr=!(ur<=tr&&tr<fr)}}if(!sr){const{value:lr=0,mode:ur="year"}=c.limitInterval||{};lr&&(hn==="start"?sr=gn.add(lr,ur)<tr:hn==="end"&&(sr=w.subtract(lr,ur)>tr))}return sr},{getGlobalModel:Fn,setGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,sr)=>{}}),Vn=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[0]:null),Yn=vue.computed(()=>Array.isArray(vue.unref(v))?vue.unref(v)[1]:null),{pageId:Gn}=vue.inject("templateOperate",{pageId:""})||{};zn(c.id,{type:c.type,format:c.format,startTime:Vn,endTime:Yn,interval:c.interval,intervalUnit:c.intervalUnit,useCurrentTime:c.useCurrentTime,operate:c.operate});const Un=useEmitEvent(c);let Kn=!1;const Hn=Un("dateChange",()=>{var cr;const tr=getNewValueFromUrlParams(Gn,c.keyName,"startTime"),sr=getNewValueFromUrlParams(Gn,c.keyName,"endTime");(cr=v.value)!=null&&cr.length||(v.value=[null,null]),tr&&(v.value[0]=dayjs(tr)),sr&&(v.value[1]=dayjs(sr))}),Qn=tr=>{const sr=vue.unref(v),cr=sr&&sr[0]&&sr[1];tr===!1&&Kn===!0&&cr&&(Hn(),Kn=!1),tr||(hn="")},Zn=()=>{Kn=!0},Rn=()=>{const{associated:tr}=c;if(tr){const sr=Fn(tr)||{};if(sr){const{value:cr}=sr;if(cr)switch(vue.unref(cr)){case"month":v.value=[dayjs().startOf("month"),dayjs().endOf("month")];break;case"quarter":v.value=[dayjs().startOf("quarter"),dayjs().endOf("quarter")];break;case"year":v.value=[dayjs().startOf("year"),dayjs().endOf("year")];break}}}Hn()},qn=()=>{nr(vue.unref(v)),p.value=!0},In=()=>{nr(),J.value="",v.value=[null,null]},Dn=()=>{v.value=[dayjs(vue.unref(m).join("-")),dayjs(vue.unref(g).join("-"))],nr(vue.unref(v)),ir(),Xn(),p.value=!1,Hn()},er=()=>{Wn(),p.value=!1},Bn=()=>{var tr,sr;(tr=vue.unref(m))!=null&&tr.length&&c.format&&(pn.value=new Date(vue.unref(m).join("-")),(sr=vue.unref(g))!=null&&sr.length&&dayjs(vue.unref(g).join("-")).isBefore(dayjs(vue.unref(m).join("-")))&&(g.value=lodashEs.cloneDeep(vue.unref(m))))},Jn=()=>{var tr,sr;(tr=vue.unref(g))!=null&&tr.length&&c.format&&(x.value=new Date(vue.unref(g).join("-")),(sr=vue.unref(m))!=null&&sr.length&&dayjs(vue.unref(m).join("-")).isAfter(dayjs(vue.unref(g).join("-")))&&(m.value=lodashEs.cloneDeep(vue.unref(g))))};function Xn(){_.value={startMinDate:lodashEs.cloneDeep(vue.unref(y)),startMaxDate:lodashEs.cloneDeep(vue.unref(x)),endMinDate:lodashEs.cloneDeep(vue.unref(pn)),endMaxDate:lodashEs.cloneDeep(vue.unref(b))}}function Wn(){y.value=vue.unref(_).startMinDate,x.value=vue.unref(_).startMaxDate,pn.value=vue.unref(_).endMinDate,b.value=vue.unref(_).endMaxDate}function nr(tr=[]){m.value=or(tr[0]||dayjs()),g.value=or(tr[1]||dayjs())}function ir(){var cr,vr;const tr=(cr=vue.unref(m))!=null&&cr.length?dayjs(vue.unref(m).join("-")):"",sr=(vr=vue.unref(g))!=null&&vr.length?dayjs(vue.unref(g).join("-")):"";J.value=tr&&sr&&`${tr.format(c.format)} 至 ${sr.format(c.format)}`}function ar(){const{limitStartTime:tr,limitEndTime:sr,limitInterval:cr,isAllowSpanYear:vr}=c;nr(vue.unref(v)),tr&&(y.value=new Date(tr),pn.value=new Date(tr),vue.unref(v)[0].isBefore(dayjs(tr))&&(vue.unref(v)[0]=dayjs(tr),m.value=or(vue.unref(v)[0]))),sr&&(x.value=new Date(sr),b.value=new Date(sr),vue.unref(v)[1].isAfter(dayjs(sr))&&(vue.unref(v)[1]=dayjs(sr),g.value=or(vue.unref(v)[1]))),vue.unref(v).every(dr=>dr)&&(cr!=null&&cr.value)&&vue.unref(v)[1].diff(vue.unref(v)[0],cr.mode)>cr.value&&(vue.unref(v)[0]=vue.unref(v)[1].subtract(cr.value,cr.mode),m.value=or(vue.unref(v)[0])),vue.unref(v).every(dr=>dr)&&!vr&&vue.unref(v)[0].year()!==vue.unref(v)[1].year()&&(vue.unref(v)[0]=dayjs(`${vue.unref(v)[1].year()}-01-01`),m.value=or(vue.unref(v)[0])),Xn(),ir()}function or(tr){const sr=[];for(const cr of vue.unref(En))cr==="day"?sr.push(tr.date()):sr.push(tr[cr]()+(cr==="month"?1:0));return sr}return useOnEvent(c,{dateChange:Rn}),{style:h,getPopupContainer:d,locale,dateChange:Hn,myValue:v,disabledDate:Pn,calendarChange:vn,openChange:Qn,change:Zn,isMobile:u,mobileDateStr:J,datePickVisible:p,columnsType:En,openDatePick:qn,handleClearDate:In,onConfirmDate:Dn,onCancelDate:er,mobileStartDate:m,mobileEndDate:g,startMinDate:y,startMaxDate:x,endMinDate:pn,endMaxDate:b,pickerTabKey:re,onStartDateChange:Bn,onEndDateChange:Jn}}}),__injectCSSVars__$2=()=>{vue.useCssVars(c=>({"46b8899f":c.optionFontSize}))},__setup__$2=__default__$2.setup;__default__$2.setup=__setup__$2?(c,u)=>(__injectCSSVars__$2(),__setup__$2(c,u)):__injectCSSVars__$2;const RangePicker_vue_vue_type_style_index_0_scoped_5bde1d03_lang="",RangePicker_vue_vue_type_style_index_1_lang="";function _sfc_render$p(c,u,f,h,d,v){const p=vue.resolveComponent("calendar-outlined"),m=vue.resolveComponent("close-circle-filled"),g=vue.resolveComponent("a-input"),y=vue.resolveComponent("van-date-picker"),x=vue.resolveComponent("van-picker-group"),pn=vue.resolveComponent("van-popup"),b=vue.resolveComponent("a-range-picker");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-range-picker",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{value:c.mobileDateStr,placeholder:"请选择日期范围",readonly:"",onClick:c.openDatePick},vue.createSlots({prefix:vue.withCtx(()=>[vue.createVNode(p,{style:{color:"#b0b0b0","padding-right":"5px"}})]),_:2},[c.mobileDateStr?{name:"suffix",fn:vue.withCtx(()=>[vue.createVNode(m,{style:{color:"#b0b0b0"},onClick:vue.withModifiers(c.handleClearDate,["stop"])},null,8,["onClick"])])}:void 0]),1032,["value","onClick"]),vue.createVNode(pn,{show:c.datePickVisible,"onUpdate:show":u[3]||(u[3]=re=>c.datePickVisible=re),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.datePickVisible?(vue.openBlock(),vue.createBlock(x,{key:0,"active-tab":c.pickerTabKey,"onUpdate:active-tab":u[2]||(u[2]=re=>c.pickerTabKey=re),tabs:["开始日期","结束日期"],onConfirm:c.onConfirmDate,onCancel:c.onCancelDate},{default:vue.withCtx(()=>[vue.createVNode(y,{modelValue:c.mobileStartDate,"onUpdate:modelValue":u[0]||(u[0]=re=>c.mobileStartDate=re),"min-date":c.startMinDate,"max-date":c.startMaxDate,"columns-type":c.columnsType,onChange:c.onStartDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"]),vue.createVNode(y,{modelValue:c.mobileEndDate,"onUpdate:modelValue":u[1]||(u[1]=re=>c.mobileEndDate=re),"min-date":c.endMinDate,"max-date":c.endMaxDate,"columns-type":c.columnsType,onChange:c.onEndDateChange},null,8,["modelValue","min-date","max-date","columns-type","onChange"])]),_:1},8,["active-tab","onConfirm","onCancel"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(b,{key:1,class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:c.myValue,"onUpdate:value":u[4]||(u[4]=re=>c.myValue=re),format:c.format,picker:c.picker,locale:c.locale,getPopupContainer:c.getPopupContainer,"disabled-date":c.disabledDate,onChange:c.change,onCalendarChange:c.calendarChange,onOpenChange:c.openChange,popupStyle:{fontSize:c.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"]))],4)}const RangePicker=_export_sfc$1(__default__$2,[["render",_sfc_render$p],["__scopeId","data-v-5bde1d03"]]),EcanRangePicker=withInstall$1(RangePicker),buttonProps={...props,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},buttonComponentProps=transformToComponentProps(buttonProps),buttonEvents=["click"],_sfc_main$m=vue.defineComponent({name:"EcanButton",components:{AButton:antDesignVue.Button},props:{...buttonComponentProps},setup(c){const u=usePickComponentStyle(c),h=useEmitEvent(c)("click",()=>{const g=vue.unref(p);g&&c.target==="event"&&window.parent.postMessage({type:"openPage",url:g},"*")}),d=vue.computed(()=>{const g={};return c.mode!=="primary"&&(g.backgroundColor=c.buttonBackgroundColor||"transparent",g.color=c.tooltipTextStyleColor,g.borderColor=c.borderColor||"transparent"),{height:c.height,...g}}),v=vue.computed(()=>useVariablesInText(c.text)),p=vue.computed(()=>useVariablesInText(c.href)||null),m=vue.computed(()=>{const g=c.target;if(!(g==="event"||vue.unref(p)==null))return{self:"_self",blank:"_blank"}[g]});return{style:u,click:h,myText:v,myHref:p,myTarget:m,buttonStyle:d}}}),Button_vue_vue_type_style_index_0_lang="";function _sfc_render$o(c,u,f,h,d,v){const p=vue.resolveComponent("a-button");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-button",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{block:"",onClick:c.click,type:c.mode,danger:c.danger,shape:c.shape,href:c.myHref,target:c.myTarget,style:vue.normalizeStyle(c.buttonStyle),class:vue.normalizeClass(c.tooltipTextStyleColor?"custom-color":"")},{default:vue.withCtx(()=>[vue.createElementVNode("span",{style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.fontWeight})},vue.toDisplayString(c.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Button=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$o]]),EcanButton=withInstall$1(Button),checkboxProps={...props,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}],graphicConfig:{}},checkboxComponentProps=transformToComponentProps(checkboxProps),checkboxEvents=["checkboxChange"],_sfc_main$l=vue.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:antDesignVue.CheckboxGroup},props:{...checkboxComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=vue.ref([]),d=vue.ref([]),v=gn=>{const w=c.value;let hn=[];gn.forEach(vn=>{vn.checked&&hn.push(vn.value)}),typeof w=="string"&&w!==""?hn=hn.concat(w.split(",")):Array.isArray(w)&&(hn=hn.concat(w)),h.value=gn,d.value=hn};vue.watch(()=>[c.data,c.value],([gn])=>{v(gn)},{immediate:!0,deep:!0});const p=useRequestData(c),m=async()=>{var hn,vn;if(c.dataType!=="request")return;const gn=await p(),w=((vn=(hn=gn==null?void 0:gn.data)==null?void 0:hn.data)==null?void 0:vn.rows)||[];v(w)},{getGlobalModel:g,setGlobalModel:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:gn=>{},setGlobalModel:(gn,w)=>{}});y(c.id,{type:c.type,value:d});const pn=useEmitEvent(c)("checkboxChange",()=>{const gn=g(c.id);y(c.id,{...gn,RECORD:d})}),b=gn=>{var hn;const{data:w}=(gn==null?void 0:gn.data)||{};if(w){const Pn=(((hn=gn==null?void 0:gn.data)==null?void 0:hn.data)??[]).map(Fn=>({label:Fn.label,value:Fn.value}));v(Pn)}else v([])},re=useIndicatorData(c,b),_=async()=>{try{const gn=await re();b(gn)}catch(gn){console.error(gn)}},J=()=>{switch(c.dataType){case"indicator":_();break;case"request":m();break}},{setRequest:En}=vue.inject(REQUEST_MODEL,{setRequest:({id:gn,sortNum:w,requestFn:hn})=>{}});return typeof En=="function"&&En({id:c.id,requestFn:J,sortNum:c.requestSort}),u({refreshData:J}),{myOption:h,style:f,myValue:d,checkboxChange:pn}}}),Checkbox_vue_vue_type_style_index_0_lang="";function _sfc_render$n(c,u,f,h,d,v){const p=vue.resolveComponent("a-checkbox-group");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-checkbox",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{options:c.myOption,value:c.myValue,"onUpdate:value":u[0]||(u[0]=m=>c.myValue=m),onChange:c.checkboxChange},null,8,["options","value","onChange"])],4)}const Checkbox=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$n]]),EcanCheckbox=withInstall$1(Checkbox),selectProps={...props,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},selectComponentProps=transformToComponentProps(selectProps),selectEvents=["selectChange","refreshData","clearValue"],_sfc_main$k=vue.defineComponent({name:"EcanSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,AInput:antDesignVue.Input,DownOutlined:DownOutlined$1},props:{...selectComponentProps},setup(c,{expose:u}){var ir,ar,or;const f=vue.inject("isMobile",!1),h=vue.ref(!1),d={text:((ir=c.dataFieldNames)==null?void 0:ir.label)||"label",value:((ar=c.dataFieldNames)==null?void 0:ar.value)||"value"},v=vue.ref([]),p=usePickComponentStyle(c),m=()=>document.getElementById("ProviderConfig")||document.body,g=vue.ref(c.data||[]),y=vue.ref(),x=vue.computed({get:()=>{var sr;const{mode:tr}=c;return(sr=vue.unref(g))!=null&&sr.length?y.value:tr==="multiple"||tr==="tags"||tr==="combobox"?[]:""},set:tr=>{y.value=tr}}),pn=vue.computed(()=>{const{value:tr,label:sr}=c.dataFieldNames,cr=[];if(Array.isArray(vue.unref(x)))for(const vr of vue.unref(x)){const dr=vue.unref(g).find(lr=>lr[tr]===vr);dr&&cr.push(dr[sr])}else{const vr=vue.unref(g).find(dr=>dr[tr]===vue.unref(x));vr&&cr.push(vr[sr])}return cr.join(",")}),{getGlobalModel:b,setGlobalModel:re,getRecordValueByKeyName:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:tr=>{},setGlobalModel:(tr,sr)=>{},getRecordValueByKeyName:tr=>{}}),J=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,g.value],()=>{const{mode:tr,selectFirstOption:sr,value:cr}=c,vr=_(cr),dr=J.value;if(tr==="multiple"||tr==="tags"||tr==="combobox"){if(vr)y.value=vr.split(",");else if(sr){const lr=vue.unref(g)[0];y.value=lr?[lr[dr]]:[]}}else if(vr)y.value=vr;else if(sr){const lr=vue.unref(g)[0];y.value=lr?lr[dr]:""}},{immediate:!0});const En=(tr,sr)=>{const cr=J.label,vr=J.value;let dr;const lr=sr[cr],ur=sr[vr];return lr!=null?dr=lr:ur!=null&&(dr=ur),(dr==null?void 0:dr.toLowerCase().indexOf(tr==null?void 0:tr.toLowerCase()))>=0},gn=tr=>{const{label:sr,value:cr,options:vr}=c.dataFieldNames;if(vr&&Array.isArray(tr))if(tr.some(dr=>vr in dr)){const dr={},lr=[];tr.forEach(ur=>{dr[ur[vr]]||(dr[ur[vr]]=[]),dr[ur[vr]].push({[sr]:ur[sr],[cr]:ur[cr]})});for(const ur in dr)lr.push({[sr]:ur,[vr]:dr[ur]});return lr}else return tr;else{if(!vr&&Array.isArray(tr))return tr=tr.map(dr=>({label:dr[sr],value:dr[cr]})),tr;if(!vr&&!Array.isArray(tr))return tr}},w=vue.ref(!1),hn=tr=>{var sr,cr;if(g.value=gn(((cr=(sr=tr==null?void 0:tr.data)==null?void 0:sr.data)==null?void 0:cr.rows)||[]),c.selectFirstOption){let vr=vue.unref(g)[0];if(J.options){const dr=vr[J.options];dr&&dr.length&&(vr=dr[0])}y.value=vr[J.value]}},vn=useRequestData(c),Pn=async()=>{if(c.dataType==="request"){w.value=!0;try{const tr=await vn();hn(tr)}catch(tr){console.error(tr)}finally{w.value=!1}}},{setLoadedData:Fn,loadedData:zn}=vue.inject(LOADED_DATA,{setLoadedData:(tr,sr)=>{},loadedData:{}}),Vn=vue.computed(()=>{let tr=y.value;if(c.valueType==="label"&&vue.unref(y)&&vue.unref(g)){const sr=J.label,cr=J.value;if(c.mode==="multiple")tr=vue.unref(g).filter(vr=>vue.unref(y).includes(vr[cr])).map(vr=>vr[sr]);else{const vr=vue.unref(g).find(dr=>vue.unref(y)===dr[cr]);vr&&(tr=vr[sr])}}return tr}),Yn=vue.ref([]),Gn=vue.computed(()=>{const tr={};if(c.mode!=="multiple"){const sr=vue.unref(Yn).find(cr=>cr.value===vue.unref(y));sr&&(tr.itemCodes=sr.item_codes)}return tr}),Un=vue.computed(()=>{const{value:tr,label:sr}=J,cr=vue.unref(g).find(vr=>vr[tr]===vue.unref(x));return cr?{label:cr[sr],value:cr[tr]}:{}}),{pageId:Kn}=vue.inject("templateOperate",{pageId:""})||{};re(c.id,{type:c.type,value:Vn,label:(or=vue.unref(Un))==null?void 0:or.label,...vue.unref(Gn),recordData:vue.unref(Un)});const Hn=useEmitEvent(c),Qn=Hn("selectChange",()=>{const tr=c.id,sr=b(tr);re(tr,{...sr,...vue.unref(Gn),RECORD:Vn,recordData:vue.unref(Un)});const cr=getNewValueFromUrlParams(Kn,c.keyName,"value");cr&&(x.value=cr)}),Zn=Hn("clearValue",()=>{["multiple","tags","combobox"].includes(c.mode)?y.value=[]:y.value=null;const tr=c.id;re(tr,{RECORD:"",recordData:vue.unref(Un)})}),Rn=(tr=[])=>{var cr,vr;const sr=gn(tr);if((vr=(cr=c==null?void 0:c.graphicConfig)==null?void 0:cr.formFields)!=null&&vr.hasAllOption){const dr=J.label,lr=J.value;sr.unshift({[dr]:"全部",[lr]:""})}if(g.value=sr,c.selectFirstOption){let dr=vue.unref(g)[0];if(J.options){const lr=dr[J.options];lr&&lr.length&&(dr=lr[0])}y.value=dr[J.value]}re(c.id,{type:c.type,value:Vn,...vue.unref(Gn),recordData:vue.unref(Un)})},qn=tr=>{var dr;const{data:sr}=(tr==null?void 0:tr.data)||{},cr=J.label,vr=J.value;if(sr){const{rows:lr=[]}=((dr=tr==null?void 0:tr.data)==null?void 0:dr.data)||{};Yn.value=lr;const ur=lr.map(yr=>({[cr]:yr.label,[vr]:yr.value})),{id:fr}=c,mr=b(fr);re(fr,{...mr,...vue.unref(Gn)}),Fn(fr,!0),Rn(ur)}else Rn([])},In=useIndicatorData(c,qn),Dn=async()=>{try{w.value=!0;const tr=await In();qn(tr)}catch(tr){console.error(tr)}finally{w.value=!1}},er=vue.computed(()=>{var tr,sr;return(sr=getConditions(((tr=c==null?void 0:c.graphicConfig)==null?void 0:tr.controlList)||[]))==null?void 0:sr.find(cr=>cr.conditionKey==="parentCode")}),Bn=vue.ref(!1);vue.watch(zn,tr=>{!vue.unref(Bn)&&vue.unref(er)&&tr[vue.unref(er).id]&&(Bn.value=!0,Jn())},{deep:!0});const Jn=()=>{switch(c.dataType){case"indicator":{if(vue.unref(er)){if(vue.unref(zn)[vue.unref(er).id]){const{mode:tr}=c;tr==="multiple"||tr==="tags"||tr==="combobox"?x.value=[]:x.value="",Dn()}}else Dn();break}case"request":Pn();break}};useOnEvent(c,{selectChange:Qn,refreshData:Jn,clearValue:Zn});const{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:({id:tr,sortNum:sr,requestFn:cr})=>{}});return typeof Xn=="function"&&Xn({id:c.id,requestFn:Jn,sortNum:c.requestSort}),u({refreshData:Jn}),{style:p,getPopupContainer:m,myValue:y,selectChange:Qn,options:g,filterOption:En,loading:w,resultValue:x,isMobile:f,customFieldName:d,pickVisible:h,onConfirmPicker:()=>{x.value=vue.unref(v)[0],Qn(),h.value=!1},mobileValue:pn,openPicker:()=>{var tr;!Array.isArray(vue.unref(x))&&((tr=vue.unref(g))!=null&&tr.length)&&c.dataFieldNames.value&&(v.value=vue.unref(x)?[vue.unref(x)]:[vue.unref(g)[0][c.dataFieldNames.value]]),h.value=!0},mobileSelectValue:v}}}),Select_vue_vue_type_style_index_0_scoped_fb0c8846_lang="",Select_vue_vue_type_style_index_1_lang="";function _sfc_render$m(c,u,f,h,d,v){const p=vue.resolveComponent("down-outlined"),m=vue.resolveComponent("a-input"),g=vue.resolveComponent("van-picker"),y=vue.resolveComponent("van-popup"),x=vue.resolveComponent("a-select-option"),pn=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(m,{value:c.mobileValue,placeholder:"请选择日期",readonly:"",onClick:c.openPicker},{suffix:vue.withCtx(()=>[vue.createVNode(p)]),_:1},8,["value","onClick"]),vue.createVNode(y,{show:c.pickVisible,"onUpdate:show":u[1]||(u[1]=b=>c.pickVisible=b),"overlay-style":{background:"rgba(0, 0, 0, .3)"},position:"bottom",teleport:"#app"},{default:vue.withCtx(()=>[c.pickVisible?(vue.openBlock(),vue.createBlock(g,{key:0,modelValue:c.mobileSelectValue,"onUpdate:modelValue":u[0]||(u[0]=b=>c.mobileSelectValue=b),"columns-field-names":c.customFieldName,columns:c.options,"cancel-button-text":" ",onConfirm:c.onConfirmPicker},null,8,["modelValue","columns-field-names","columns","onConfirm"])):vue.createCommentVNode("",!0)]),_:1},8,["show","overlay-style"])],64)):(vue.openBlock(),vue.createBlock(pn,{key:1,class:"select",value:c.resultValue,"onUpdate:value":u[2]||(u[2]=b=>c.resultValue=b),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(b,re)=>(vue.openBlock(),vue.createBlock(x,{key:re,value:b.value,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.label),1)]),_:2},1032,["value","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"]))],4)}const Select=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$m],["__scopeId","data-v-fb0c8846"]]),EcanSelect=withInstall$1(Select),treeSelectProps={...props,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},treeSelectComponentProps=transformToComponentProps(treeSelectProps),treeSelectEvents=["selectChange","refreshData"],_sfc_main$j={name:"EcanTreeSelect",components:{ATreeSelect:antDesignVue.TreeSelect},props:{...treeSelectComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.ref(c.data),h=(_,J)=>{const En=c.dataFieldNames,gn=En.label,w=En.value;let hn;const vn=J[gn],Pn=J[w];return vn!=null?hn=vn:Pn!=null&&(hn=Pn),(hn==null?void 0:hn.toLowerCase().indexOf(_==null?void 0:_.toLowerCase()))>=0},d=vue.ref();vue.watch(()=>[c.multiple,c.value,c.treeCheckable,c.selectFirstOption],()=>{const{multiple:_,value:J,selectFirstOption:En}=c;_?J?d.value=J.split(","):En&&(d.value=[vue.unref(f)[0]]):J?d.value=J:En&&(d.value=vue.unref(f)[0])},{immediate:!0});const v=vue.ref(!1),p=_=>{var En,gn;f.value=((gn=(En=_==null?void 0:_.data)==null?void 0:En.data)==null?void 0:gn.rows)||[];const J=vue.unref(f)[0];c.value===""&&J!=null&&(d.value=J[c.dataFieldNames.value])},m=useRequestData(c),g=async()=>{if(c.dataType==="request"){v.value=!0;try{const _=await m();p(_)}catch(_){console.error(_)}finally{v.value=!1}}},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,J)=>{}});x(c.id,{type:c.type,value:d});const b=useEmitEvent(c)("selectChange",()=>{const _=c.id,J=y(_);x(_,{...J,RECORD:d})});useOnEvent(c,{selectChange:b,refreshData:g});const{setRequest:re}=vue.inject(REQUEST_MODEL,{setRequest:({id:_,sortNum:J,requestFn:En})=>{}});return re({id:c.id,requestFn:g,sortNum:c.requestSort}),{style:u,treeData:f,filterTreeNode:h,myValue:d,loading:v,selectChange:b}}},TreeSelect_vue_vue_type_style_index_0_scoped_09e7f364_lang="",TreeSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$l(c,u,f,h,d,v){const p=vue.resolveComponent("a-tree-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tree-select",style:vue.normalizeStyle(h.style)},[vue.createVNode(p,{class:"tree-select",value:h.myValue,"onUpdate:value":u[0]||(u[0]=m=>h.myValue=m),allowClear:"",showSearch:"",loading:h.loading,fieldNames:c.dataFieldNames,treeData:h.treeData,maxTagCount:c.maxTagCount,multiple:c.multiple,treeCheckable:c.treeCheckable,filterTreeNode:h.filterTreeNode,placeholder:c.placeholder,onChange:h.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const TreeSelect=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$l],["__scopeId","data-v-09e7f364"]]),EcanTreeSelect=withInstall$1(TreeSelect),radioProps={...props,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabVerticalPadding:"5px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:"",selectFirstOption:!1,radioMode:"native"},radioComponentProps=transformToComponentProps(radioProps),radioEvents=["checkboxChange","click"],_sfc_main$i=vue.defineComponent({name:"EcanRadio",components:{ARadioGroup:antDesignVue.RadioGroup,ARadioButton:antDesignVue.RadioButton,ARadio:antDesignVue.Radio},props:{...radioComponentProps},setup(c,{expose:u}){const{pageMode:f}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),h=usePickComponentStyle(c),d=vue.ref([]),v=vue.ref(""),p=(Pn=[])=>{var Vn;const Fn=c.value;let zn=[];typeof Fn=="string"&&Fn!==""?zn=zn.concat(Fn.split(",")):Array.isArray(Fn)&&(zn=zn.concat(Fn)),d.value=Pn,c.selectFirstOption?v.value=((Vn=Pn[0])==null?void 0:Vn.value)||"":v.value=zn[0]||""};vue.watch(()=>[c.data,c.value,c.selectFirstOption],([Pn])=>{vue.unref(f)==="design"&&p(Pn)},{immediate:!0,deep:!0});const m=useRequestData(c),g=async()=>{var zn,Vn;if(c.dataType!=="request")return;const Pn=await m(),Fn=((Vn=(zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)==null?void 0:Vn.rows)||[];p(Fn)},{getGlobalModel:y,setGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Pn=>{},setGlobalModel:(Pn,Fn)=>{}});x(c.id,{type:c.type,value:v});const pn=useEmitEvent(c),b=()=>{const Pn=vue.unref(d).find(Fn=>Fn.value===vue.unref(v))||{};pn("checkboxChange",()=>{const Fn=y(c.id);x(c.id,{...Fn,RECORD:v})},Pn)()},re=Pn=>{v.value=Pn,pn("click",()=>{const Fn=y(c.id);x(c.id,{...Fn,RECORD:v})})()};vue.watch(v,()=>{b()});const _=Pn=>{var zn;const{data:Fn}=(Pn==null?void 0:Pn.data)||{};if(Fn){const Yn=(((zn=Pn==null?void 0:Pn.data)==null?void 0:zn.data)??[]).map(Gn=>({label:Gn.label,value:Gn.value}));p(Yn)}else p([])},J=useIndicatorData(c,_),En=async()=>{try{const Pn=await J();_(Pn)}catch(Pn){console.error(Pn)}},gn=()=>{switch(c.dataType){case"indicator":En();break;case"request":g();break}},{setRequest:w}=vue.inject(REQUEST_MODEL,{setRequest:({id:Pn,sortNum:Fn,requestFn:zn})=>{}});typeof w=="function"&&w({id:c.id,requestFn:gn,sortNum:c.requestSort});const hn=Pn=>{v.value=Pn.value},vn=vue.computed(()=>c.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px",fontSize:c.tabFontSize}:{fontSize:c.tabFontSize});return vue.onMounted(()=>{p(c.data)}),u({refreshData:gn}),{myOption:d,style:h,myValue:v,radioStyle:vn,onClickButton:re,useImagePath,tabChange:hn}}}),Radio_vue_vue_type_style_index_0_lang="",Radio_vue_vue_type_style_index_1_scoped_a19c4d3e_lang="",_hoisted_1$9=["onClick"];function _sfc_render$k(c,u,f,h,d,v){const p=vue.resolveComponent("a-radio"),m=vue.resolveComponent("a-radio-button"),g=vue.resolveComponent("a-radio-group");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-radio",c.optionType]),style:vue.normalizeStyle(c.style)},[c.radioMode==="custom"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,flexDirection:c.tabFlexDirection,alignItems:c.tabTextAlign})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`${c.tabVerticalPadding} ${c.tabHorizontalPadding}`,color:c.myValue===y.value?c.activeTabColor:c.tabColor,backgroundImage:c.myValue===y.value?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:"0",marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:"0"}),key:x,onClick:vue.withModifiers(pn=>c.tabChange(y),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.myValue===y.value?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.label),5)],12,_hoisted_1$9))),128))],4)):c.radioMode==="native"?(vue.openBlock(),vue.createBlock(g,{key:1,value:c.myValue,"onUpdate:value":u[0]||(u[0]=y=>c.myValue=y)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myOption,y=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.value},[c.optionType==="default"?(vue.openBlock(),vue.createBlock(p,{key:0,value:y.value,style:vue.normalizeStyle(c.radioStyle)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style"])):c.optionType==="button"?(vue.openBlock(),vue.createBlock(m,{key:1,value:y.value,style:vue.normalizeStyle({fontSize:c.tabFontSize}),onClick:x=>c.onClickButton(y.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.label),1)]),_:2},1032,["value","style","onClick"])):vue.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"])):vue.createCommentVNode("",!0)],6)}const Radio=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$k],["__scopeId","data-v-a19c4d3e"]]),EcanRadio=withInstall$1(Radio),pieProps={...props,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:""},pieComponentProps=transformToComponentProps(pieProps),pieEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:f,headers:h}=u,d=h["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([f]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(d),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:f=[]}=c,h=lodashEs.cloneDeep(c.componentList),d=h.filter(v=>v.type==="ecanTabs"&&v.isAutoScroll);if(d!=null&&d.length)for(const v of d){const p=u[v.id],m=[];if((!hasOwn(v,"componentList")||!(v!=null&&v.componentList))&&(v.componentList=[]),p){let g=0;for(const y in p){const x=p[y],pn=[];if(x!=null&&x.length)for(const b of x){let re=h.find(_=>_.id===b);re||(re=f.find(_=>_.id===b)),re&&(pn.push(re),containerType.includes(re.type)&&pn.push(...getComponentByContainer(re.id,u,f)))}for(const b of pn)hasOwn(b,"scale")?parseFloat(y)>0&&(b.left=parseFloat(b.left)+g+"px"):(b.left=parseFloat(b.sourceLeft||b.left)-parseFloat(v.sourceLeft||v.left)+g+"px",b.top=parseFloat(b.sourceTop||b.top)-parseFloat(v.sourceTop||v.top)+"px"),m.includes(b.id)||m.push(b.id);v.componentList.push(...pn),g=getMaxLeftInComponents(pn)}}for(const g of m){const y=h.findIndex(x=>x.id===g);y!==-1&&h.splice(y,1)}}return h}function compatibleMobileList(c){var v,p;const{combinationMap:u={},sourceList:f=[]}=c,h=c.containerMap,d=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(h,f)]);if(handleContainerMap(h,d),(v=Object.keys(h))!=null&&v.length||(p=Object.keys(u))!=null&&p.length){for(const b in h){const re=d.find(_=>_.id===b);if(re){hasOwn(re,"parentId")||(re.parentId="",re.sourceLeft=re.left,re.sourceTop=re.top);for(const _ in h[b])if(h[b][_])for(const J of h[b][_]){const En=d.find(gn=>gn.id===J);En&&(En.parentId=b,En.sourceLeft=En.left,En.sourceTop=En.top,En.left=parseFloat(En.left)-parseFloat(re.sourceLeft||re.left)+"px",En.top=parseFloat(En.top)-parseFloat(re.sourceTop||re.top)+"px")}}}const m=Array.from(new Set(d.filter(b=>(!hasOwn(b,"parentId")||b.parentId==="")&&b.combinationId).map(b=>b.combinationId))),g=getCombinationList(m,{...c,componentList:d});g!=null&&g.length&&d.unshift(...g);const y=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],x=d.filter(b=>y.includes(b.type)&&!hasOwn(b,"parentId")),pn=[];for(const b of x)if(b){const re=b.id+"_vir";pn.push({id:re,keyName:b.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:b.width,height:b.height,left:b.left,top:b.top,sourceLeft:b.left,sourceTop:b.top}),b.parentId=re,b.sourceLeft=b.left,b.sourceTop=b.top,b.left=0,b.top=0}pn!=null&&pn.length&&d.unshift(...pn);for(const b of d){const re=document.body.clientWidth;if(b.parentId===""&&containerType.includes(b.type))b.sourceWidth=parseFloat(b.width),b.height=(re/(b.sourceWidth/parseFloat(b.height))).toFixed(2)+"px",b.width="100%",b.position="relative",b.top="auto",b.left="auto";else{const _=d.find(J=>J.id===b.parentId);if((_==null?void 0:_.parentId)===""){const J=_.sourceWidth||parseFloat(_.width),En=re/J;b.scale=En,b.top=parseFloat(b.top)*En-parseFloat(b.height)*(1-En)/2+"px",b.left=parseFloat(b.left)*En-parseFloat(b.width)*(1-En)/2+"px"}}b.type==="ecanModal"&&(b.parentId="",b.fullModal=!0)}return sortList(d)}return d}function handleContainerMap(c,u){const f=lodashEs.cloneDeep(c),h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=f[d.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,f,u);for(const x of y)c[d.id][p].push(x.id),containerType.includes(x.type)&&delete c[x.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const f=[],h=u.filter(d=>d.type==="ecanTabs"&&d.isAutoScroll);if(h!=null&&h.length)for(const d of h){const v=c[d.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(f.push(g),containerType.includes(g.type)&&f.push(...getComponentByContainer(g.id,c,u)))}}return f}function getComponentByContainer(c,u,f){const h=[],d=u[c];for(const v in d)for(const p of d[v]){const m=f.find(g=>g.id===p);m&&(h.push(m),containerType.includes(m.type)&&h.push(...getComponentByContainer(m.id,u,f)))}return h}function getCombinationList(c,u,f){const{combinationMap:h={},componentList:d=[]}=u,v=[];for(const p of c){const m=h[p];if(m!=null&&m.length){const g=d.filter(y=>m.includes(y.id));if(g!=null&&g.length){const y=getCombinateRect(g);if(y){v.push({...y,id:p,keyName:p,parentId:f||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const x of g)x&&(x.parentId=p,x.sourceLeft=x.left,x.sourceTop=x.top,x.left=parseFloat(x.left)-parseFloat(y.left)+"px",x.top=parseFloat(x.top)-parseFloat(y.top)+"px")}}}}return v}function sortList(c){const f=c.filter(h=>h.parentId==="");if(f!=null&&f.length){const h=lodashEs.cloneDeep(f).map(d=>({...d,sourceTop:parseFloat(d.sourceTop),sourceLeft:parseFloat(d.sourceLeft)}));for(let d=0;d<h.length-1;d++)for(let v=0;v<h.length-d-1;v++){let p=!1;if((h[v].sourceTop-h[v+1].sourceTop>50||Math.abs(h[v+1].sourceTop-h[v].sourceTop)<=50&&h[v].sourceLeft>h[v+1].sourceLeft)&&(p=!0),p){const m=h[v];h[v]=h[v+1],h[v+1]=m}}for(const d of h){const v=c.findIndex(p=>p.id===d.id);v!==-1&&c.splice(v,1)}return[...h,...c]}return c}function getCombinateRect(c){const u=c.sort((v,p)=>parseFloat(v.top)-parseFloat(p.top))[0],f=c.sort((v,p)=>parseFloat(v.left)-parseFloat(p.left))[0],h=c.map(v=>({...v,computedTop:parseFloat(v.top)+parseFloat(v.height)})).sort((v,p)=>p.computedTop-v.computedTop)[0],d=c.map(v=>({...v,computedLeft:parseFloat(v.left)+parseFloat(v.width)})).sort((v,p)=>p.computedLeft-v.computedLeft)[0];return u&&f&&h&&d?{left:f.left,top:u.top,width:d.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(u.top)+"px"}:null}function getMaxLeftInComponents(c){const u=c.map(f=>parseFloat(f.left)+parseFloat(f.width)).sort((f,h)=>h-f)[0];return u||0}function moveToComponentList(c,u,f){const h=c[f],d=[];if(h)for(const v in h){const p=h[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}const _sfc_main$h=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$j(c,u,f,h,d,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$j]]),EcanRender=withInstall$1(Render),_sfc_main$g=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const f=vue.ref([]),h=vue.inject("isMobile",!1),d=vue.computed(()=>c.fullModal),v=vue.inject("getContainerMap",()=>{}),p=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:m,interactiveData:g,setRequestData:y}=vue.inject(GLOBAL_MODEL,{setRequestData:(lr,ur)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,pn=vue.computed(()=>{const lr=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[lr]}}),b=c.fullModal?"1920px":c.width,re=c.fullModal?"1080px":c.height,_=c.originalWidth,J=c.originalHeight,En=vue.ref("80%"),gn=vue.ref(0),w=vue.ref(),hn=vue.ref(0),vn=vue.ref({}),Pn=usePickComponentStyle(c),Fn=vue.ref({}),zn=vue.ref(!1),Vn=vue.ref();let Yn;const Gn=()=>{w.value=parseFloat(b)/parseFloat(_);const lr=parseFloat(re)/parseFloat(J),ur=document.body.offsetWidth,fr=document.body.offsetHeight;if(gn.value=ur*vue.unref(w),hn.value=fr*lr,En.value=`${vue.unref(w)*100}%`,vn.value={width:`${vue.unref(gn)}px`,height:`${vue.unref(hn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Fn.value={...vue.unref(Pn),backgroundImage:useImagePath(c.backgroundImage,!0)},h)Fn.value={...Fn.value,width:"100%",height:"100%"};else{const mr={...Fn.value,width:b,height:re};c.banScale&&vue.unref(d)?(mr.width="100%",mr.height="100%"):mr.transform=`scale(${vue.unref(gn)/parseFloat(b)},${vue.unref(hn)/parseFloat(re)})`,Fn.value=mr}},Un=lodashEs.debounce(()=>{Gn()},100),Kn=()=>{const lr=window.MutationObserver;Yn=new lr(Un),Yn.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Hn=()=>{Yn&&(Yn.disconnect(),Yn.takeRecords(),Yn=null)},Qn=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Rn=vue.ref(""),qn=()=>{var fr;const{title:lr}=c,ur=(fr=vue.unref(g))==null?void 0:fr.RECORD;return ur?useVariablesInText(lr,{textData:ur},{useNewline:!1,useSpace:!1}):lr},In=useEmitEvent(c),Dn=lr=>{const{changeIframeStyle:ur}=window.parent;ur&&typeof ur=="function"&&ur({iframeId:c.parentIframeId||"",action:lr})},er=()=>{vue.unref(d)&&Dn("open"),h&&(document.documentElement.style.overflow="hidden"),Rn.value=qn(),Qn.value=!0},Bn=In("hideModal",()=>{vue.unref(d)&&Dn("close"),u("close"),h&&(document.documentElement.style.overflow="hidden auto",f.value=[]),Qn.value=!1}),Jn=()=>{Bn()},Xn=()=>{Bn(),m()},{setModalModel:Wn,pushUseModalIds:nr,popUseModalIds:ir}=vue.inject(MODAL_MODEL,{pushUseModalIds:lr=>{},popUseModalIds:()=>{},setModalModel:(lr,ur)=>{}}),ar=vue.computed(()=>{let lr=c.componentList;const ur=lodashEs.cloneDeep(c.componentList),fr=v(),mr=p(),yr={containerMap:fr,combinationMap:mr};h&&(lr=compatibleMobileList({...yr,componentList:ur,sourceList:c.allComponentList})),lr=handleScrollCombinations({...yr,componentList:lr,sourceList:c.allComponentList});const br=[];for(const Sr of lr)if(Sr.type==="ecanCirculate"){const Er=moveToComponentList(fr,vue.unref(ur),Sr.id);Sr.componentList=Er,br.push(...Er.map(wr=>wr.id))}if(br!=null&&br.length)for(const Sr of br){const Er=lr.findIndex(wr=>wr.id===Sr);Er!==-1&&lr.splice(Er,1)}return lr}),or=()=>{const lr=c.id;let ur=[];const fr=c.componentList;Array.isArray(fr)&&(ur=fr.map(mr=>mr.id),Wn(lr,[...new Set(ur)]))},tr=vue.ref(!1),sr={};for(const lr of c.requestList)sr[lr.requestName]=useRequestData(lr);vue.watch(()=>Qn.value,async lr=>{if(lr)zn.value=!1,nr(c.id),or(),await vue.nextTick(()=>{Gn(),window.addEventListener("resize",Un),Kn(),zn.value=!0}),Zn();else{if(y)for(const ur in sr)y(ur,{});ir(),window.removeEventListener("resize",Un),Hn()}});const cr=vue.computed(()=>vue.unref(w)>=1),vr=vue.computed(()=>{let lr="ecan-modal";return vue.unref(cr)&&(lr+=" ecan-full-width-modal"),vue.unref(d)&&(lr+=" ecan-full-modal"),lr});return useOnEvent(c,{showModal:er,hideModal:Bn}),{modalRef:Vn,containStyle:vn,contentStyle:Fn,getContainer:x,modalStyle:pn,modalWith:En,isFullModal:d,style:Pn,visible:Qn,showModal:er,onOk:Jn,onCancel:Xn,isFullWidth:cr,wrapClassName:vr,ready:zn,usedComponentList:ar,isMobile:h,readyIds:f,hasOwn,onComponentReady:lr=>{f.value.push(lr)},formatTitle:Rn,requestLoaded:tr}}}),Modal_vue_vue_type_style_index_0_scoped_0dbefacd_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$i(c,u,f,h,d,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,x)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+x},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:1},y)),null,16))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$i],["__scopeId","data-v-0dbefacd"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.PieChart,components$1.TitleComponent,components$1.ToolboxComponent,components$1.TooltipComponent,components$1.LegendComponent]);const _sfc_main$f=vue.defineComponent({name:"EcanPie",props:{...pieComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.ref({}),x=vue.computed(()=>{let{data:Qn=[]}=vue.unref(m)[0]||{};if(Array.isArray(c.colors)){const Zn=c.isUseLabelColors,Rn=c.colors;Qn=Qn.map((qn,In)=>({label:Zn?{color:Rn[In]}:{},...qn}))}return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;v.value=!0,(Zn=g.value)==null||Zn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter:Zn=>{const{marker:Rn,seriesName:qn,name:In,value:Dn,percent:er,data:Bn}=Zn||{};return useVariablesInText(c.tooltipFormatter,{textData:{marker:Rn,name:In,value:Dn,percent:er,a:qn,b:In,c:Dn,d:er,...Bn}},{useNewline:!0,useSpace:!0})},textStyle:{color:c.tooltipTextStyleColor},position:c.tooltipPosition||void 0},legend:vue.unref(y),color:c.colors,series:[{data:Qn,type:"pie",radius:[c.innerRadius,c.outerRadius],center:[c.centerLeft,c.centerTop],roseType:c.roseType,avoidLabelOverlap:!0,minAngle:c.minAngle,label:{show:c.labelPosition!=="center"&&c.labelShow,color:c.labelColor,fontSize:v.value?ZOOM_FONT_SIZE:c.labelFontSize,position:c.labelPosition,formatter:handleFormatter(c.labelFormatter),width:c.labelWidth,overflow:c.labelOverflow},labelLine:{show:c.labelLineShow,length:c.labelLineLength,length2:c.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),pn=()=>{var Zn,Rn;const Qn=v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize);y.value={type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,align:"left",textStyle:{lineHeight:Qn+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:Qn}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:(Rn=(Zn=vue.unref(m)[0])==null?void 0:Zn.data)==null?void 0:Rn.map(qn=>({name:qn.name,icon:c.legendType})),formatter:qn=>{const{data:In}=m.value[0]||{};let Dn=0,er,Bn="0%";if(In)for(const Jn of In)Jn.name===qn&&(er=+Jn.value),Dn+=+Jn.value;return Dn&&(Bn=`${(er/Dn*100).toFixed(2)}%`),getLegendFormat(c.legendFormatter,{name:qn,value:er,percent:Bn})}}},b=()=>{v.value=!1},{getGlobalModel:re,setGlobalModel:_}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Qn=>{},setGlobalModel:(Qn,Zn)=>{}}),J=(Qn=[],Zn)=>{const{dataset:Rn}=useTransformChartDataByAttrValue(Qn,Zn);m.value=Rn},En=(Qn=[],Zn)=>{const Rn=useTransformChartDataByAttrValue(Qn,Zn);m.value=Rn.dataset};vue.watch(()=>c.data,Qn=>{(c.dataType==="static"||vue.unref(f)==="design")&&J(Qn)},{immediate:!0,deep:!0}),vue.watch(()=>[c.legendShow,c.legendOrient,c.legendTop,c.legendLeft,c.legendTextStyleColor,c.labelFontSize,c.legendItemHeight,c.legendItemWidth,c.legendItemGap,c.legendFormatter,c.legendFontSize,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.legendType],()=>{pn()},{immediate:!0});const gn=vue.ref(!1),w=useRequestData(c),hn=async()=>{var Qn,Zn;if(c.dataType==="request")try{gn.value=!0;const Rn=await w();J((Zn=(Qn=Rn==null?void 0:Rn.data)==null?void 0:Qn.data)==null?void 0:Zn.rows,c.valueTypeDataFieldNames)}catch(Rn){console.error(Rn)}finally{gn.value=!1}},vn=useEmitEvent(c);_(c.id,{type:c.type,RECORD:""});const Pn=vn("click",Qn=>{const Zn=re(c.id);_(c.id,{...Zn,type:c.type,RECORD:Qn==null?void 0:Qn.data})}),Fn=Qn=>{var Rn;const{data:Zn}=(Qn==null?void 0:Qn.data)||{};if(Zn){const{columns:qn=[],rows:In=[]}=((Rn=Qn==null?void 0:Qn.data)==null?void 0:Rn.data)??{};let Dn=[];if(qn.length>0){const er=qn[0],Bn=qn[1];Dn=In.filter(Jn=>!!Jn).map(Jn=>({name:Jn[er],value:isNaN(Jn[Bn])?0:Jn[Bn]||0}))}En(Dn)}},zn=useIndicatorData(c,Qn=>{c.isViewRedrawing&&d.value.clear(),Fn(Qn)}),Vn=async()=>{try{gn.value=!0;const Qn=await zn();Fn(Qn)}catch(Qn){console.error(Qn)}finally{gn.value=!1}},{loadedData:Yn}=vue.inject(LOADED_DATA,{loadedData:{}}),Gn=vue.ref(!1);vue.watch(Yn,Qn=>{if(c.dataType==="indicator"){const Zn=getFixedValueDatas(c.graphicConfig);Zn!=null&&Zn.length&&(!vue.unref(Gn)&&canRequestIndicator(c.graphicConfig,Qn)?(Gn.value=!0,Un()):canRequestIndicator(c.graphicConfig,Qn)||(Gn.value=!1))}},{deep:!0});const Un=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Yn))&&Vn();break;case"request":hn();break}};useOnEvent(c,{resetRecord:()=>{const Qn=c.id,Zn=re(Qn);_(Qn,{...Zn,RECORD:""})},refreshData:Un,click:Pn}),u({refreshData:Un});const{setRequest:Hn}=vue.inject(REQUEST_MODEL,{setRequest:Qn=>{}});return typeof Hn=="function"&&Hn({id:c.id,requestFn:Un,sortNum:c.requestSort}),{option:x,style:p,click:Pn,onClose:b,loading:gn,ecanModal:g,echartRef:d}}}),Pie_vue_vue_type_style_index_0_lang="";function _sfc_render$h(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,ref:"echartRef",autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Pie=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$h]]),EcanPie=withInstall$1(Pie),lineProps={...props,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$e=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref([]),y=vue.ref(),x=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),pn=vue.ref({});let b;const re=vue.ref([]),_=vue.computed(()=>{const qn=c.xAxisLabelFormatter,In=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Dn;v.value=!0,(Dn=y.value)==null||Dn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:x.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Dn=>{var Xn;const er=Dn.length;let Bn="",Jn=c.tooltipFormatter;b=(Xn=Dn[0])==null?void 0:Xn.data,Jn===""&&(Jn="{marker} {a} {c}");for(let Wn=0;Wn<er;Wn++){const{marker:nr,seriesName:ir,name:ar,value:or,data:tr}=Dn[Wn]||{};if(Wn===0){let sr=ar;typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(sr=(+ar).toString()),Bn+=`${useValueFormatter(qn,sr)}<br/>`}Bn+=useVariablesInText(Jn,{textData:{marker:nr,name:ar,value:or,a:ir,b:ar,c:or||0,...tr}},{useNewline:!0,useSpace:!0}),Bn+="<br/>"}return Bn},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(g).map(Dn=>{let er={};return Dn&&typeof Dn=="object"?er={...Dn}:er={value:Dn},er}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Dn){return typeof Dn=="string"&&Dn[0]==="0"&&!isNaN(+Dn)&&(Dn=(+Dn).toString()),useValueFormatter(qn,Dn)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Dn){return useValueFormatter(In,Dn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(re).map(Dn=>({name:Dn.name,icon:c.legendType})),formatter:Dn=>getLegendFormat(c.legendFormatter,{name:Dn})},series:vue.unref(m)}}),J=()=>{v.value=!1},{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:qn=>{},setGlobalModel:(qn,In)=>{}}),w=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),hn=(qn=[],In=!1)=>{let Dn;if(c.dataFieldConfigType==="key"){const Xn=In?c.keyTypeDataFieldNames:null;Dn=useTransformChartDataByAttrKey(qn,Xn)}else if(c.dataFieldConfigType==="value"){const Xn=In?c.valueTypeDataFieldNames:null;Dn=useTransformChartDataByAttrValue(qn,Xn)}g.value=Dn.dimensions,re.value=Dn.dataset;const er=Dn.dataset,Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={};c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX),Bn.push({type:"line",...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(w)})}m.value=Bn},vn=(qn=[],In,Dn=!1)=>{const Bn=useTransformChartDataByAttrKey(qn,Dn?In:null,!0);g.value=Bn.dimensions,re.value=Bn.dataset;const Jn=Bn.dataset,Xn=[],Wn=Jn.length;for(let nr=0;nr<Wn;nr++){const ir={};c.shadowColor&&(ir.shadowColor=c.shadowColor,ir.shadowBlur=c.shadowBlur,ir.shadowOffsetY=c.shadowOffsetY,ir.shadowOffsetX=c.shadowOffsetX),Xn.push({type:"line",...Jn[nr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[nr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[nr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...ir},...vue.unref(w)})}m.value=Xn};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([qn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&hn(qn)},{immediate:!0,deep:!0});const Pn=vue.ref(!1),Fn=useRequestData(c),zn=async()=>{var qn,In;if(c.dataType==="request")try{Pn.value=!0;const Dn=await Fn();hn((In=(qn=Dn==null?void 0:Dn.data)==null?void 0:qn.data)==null?void 0:In.rows,!0)}catch(Dn){console.error(Dn)}finally{Pn.value=!1}},Vn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Yn=Vn("click",qn=>{const In=En(c.id);gn(c.id,{...In,type:c.type,RECORD:c.tooltipShow?b:qn.data})}),Gn=qn=>{d.value.chart.containPixel("grid",[qn.offsetX,qn.offsetY])&&Yn()};c.tooltipShow?pn.value["zr:click"]=Gn:pn.value.click=Yn;const Un=qn=>{var Bn;const{columns:In=[],rows:Dn=[]}=((Bn=qn==null?void 0:qn.data)==null?void 0:Bn.data)??{};let er;In.length>0&&(er={name:In[0],types:In.slice(1).map(Jn=>({label:Jn,value:Jn}))}),vn(Dn,er,!0)},Kn=useIndicatorData(c,qn=>{c.isViewRedrawing&&d.value.clear(),Un(qn)}),Hn=async()=>{try{Pn.value=!0;const qn=await Kn();Un(qn)}catch(qn){console.error(qn)}finally{Pn.value=!1}},Qn=()=>{switch(c.dataType){case"indicator":Hn();break;case"request":zn();break}};useOnEvent(c,{refreshData:Qn,resetRecord:()=>{const qn=c.id,In=En(qn);gn(qn,{...In,RECORD:""})},click:Yn});const{setRequest:Rn}=vue.inject(REQUEST_MODEL,{setRequest:qn=>{}});return typeof Rn=="function"&&Rn({id:c.id,requestFn:Qn,sortNum:c.requestSort}),u({refreshData:Qn}),{option:_,style:p,click:Yn,loading:Pn,onClose:J,ecanModal:y,eventObj:pn,echartRef:d}}}),Line_vue_vue_type_style_index_0_lang="";function _sfc_render$g(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$g]]),EcanLine=withInstall$1(Line),barProps={...props,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},barComponentProps=transformToComponentProps(barProps),barEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$d=vue.defineComponent({name:"EcanBar",props:{...barComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.inject("usedComponentList",[]),v=vue.ref(),p=vue.ref(!1),m=vue.ref(!1),g=vue.ref(null),y=vue.ref([]),x=usePickComponentStyle(c),pn=vue.ref([]),b=vue.ref(),re=vue.ref({});let _;const J=vue.computed(()=>p.value?ZOOM_FONT_SIZE:12),En=vue.computed(()=>{const{gradientShow:ir,gradientColors:ar,gradientOffset:or,barBorderRadius:tr}=c,sr=vue.unref(pn),cr=sr.length,vr=[];for(let dr=0;dr<cr;dr++){const lr={...sr[dr],type:"bar",barWidth:c.barWidth.value+c.barWidth.suffix,showBackground:c.showBarBackground};if(c.isStack&&(lr.stack="stack"),lr.label={show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:ur=>{let fr="",mr=c.labelFormatter;mr===""&&(mr="{c}");const{seriesName:yr,name:br,value:Sr,data:Er}=ur||{};return fr+=useVariablesInText(mr,{textData:{name:br,value:Sr,a:yr,b:br,c:Sr||0,...Er}},{useNewline:!0,useSpace:!0}),fr}},lr.itemStyle={},ir&&(lr.itemStyle={color:{x:c.isUseHorizontalAxis?1:0,y:0,x2:0,y2:c.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:c.colors[dr]},{offset:or,color:ar[dr]},{offset:1,color:ar[dr]}]}}),tr){const ur=tr.split(",");if(ur!=null&&ur.length){const fr=[];for(const mr of ur){const yr=parseFloat(mr);isNaN(yr)||fr.push(yr)}lr.itemStyle.borderRadius=fr}}c.isShowMarkLine&&(lr.markLine={data:[{type:c.markLineType}]}),vr.push(lr)}return vr}),gn=vue.ref([]),w=vue.ref(!1),hn=vue.computed(()=>{const ir=c.yAxisLabelFormatter,ar=c.xAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:p.value?!1:c.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(){m.value=!0;const or=v.value.chart.getOption(),{xAxis:tr}=or||{};tr&&tr.length&&(y.value=tr[0].data)}},myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:p.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var or;p.value=!0,(or=b.value)==null||or.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",show:c.tooltipShow,formatter:or=>{var vr;const tr=or.length;let sr="",cr=c.tooltipFormatter;_=(vr=or[0])==null?void 0:vr.data,cr===""&&(cr="{marker} {a} {c}");for(let dr=0;dr<tr;dr++){const{marker:lr,seriesName:ur,name:fr,value:mr,data:yr}=or[dr]||{};if(dr===0){let br=fr;typeof fr=="string"&&fr[0]==="0"&&!isNaN(+fr)&&(br=(+fr).toString()),sr+=`${useValueFormatter(ar,br)}<br/>`}sr+=useVariablesInText(cr,{textData:{marker:lr,name:fr,value:mr,a:ur,b:fr,c:mr||0,...yr}},{useNewline:!0,useSpace:!0}),sr+="<br/>"}return sr},textStyle:{color:c.tooltipTextStyleColor,fontSize:J.value},position:c.tooltipPosition||void 0},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(p.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:p.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(pn).map((or,tr)=>({name:or.name,itemStyle:{color:c.colors[tr]},icon:c.legendType})),formatter:or=>getLegendFormat(c.legendFormatter,{name:or})},xAxis:{type:c.isUseHorizontalAxis?"value":"category",data:c.isUseHorizontalAxis?null:vue.unref(zn),inverse:c.isUseHorizontalAxis?c.xAxisInverse:c.axisInverse,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor,type:c.xAxisSplitLineType},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(or){return typeof or=="string"&&or[0]==="0"&&!isNaN(+or)&&(or=(+or).toString()),useValueFormatter(ar,or)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:c.isUseHorizontalAxis?"category":"value",data:c.isUseHorizontalAxis?vue.unref(gn):null,inverse:c.isUseHorizontalAxis?c.axisInverse:c.yAxisInverse,minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,rotate:c.yAxisLabelRotate,width:c.yAxisLabelWidth,overflow:c.yAxisLabelOverflow,formatter(or){return useValueFormatter(ir,or)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},series:vue.unref(En)}}),vn=()=>{p.value=!1},Pn=(ir=[],ar=!1)=>{let or={};if(c.dataFieldConfigType==="key"){const tr=ar?c.keyTypeDataFieldNames:null;or=useTransformChartDataByAttrKey(ir,tr)}else if(c.dataFieldConfigType==="value"){const tr=ar?c.valueTypeDataFieldNames:null;or=useTransformChartDataByAttrValue(ir,tr)}pn.value=or.dataset,gn.value=or.dimensions},Fn=(ir=[],ar,or=!1)=>{const sr=useTransformChartDataByAttrKey(ir,or?ar:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(d),getGlobalModel:er},sr),pn.value=sr.dataset,gn.value=sr.dimensions},zn=vue.computed(()=>vue.unref(gn).map(ir=>{let ar={};return ir&&typeof ir=="object"?ar={...ir}:ar={value:ir},ar}));vue.watch(()=>[c.data,c.labelFormatter,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ir])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Pn(ir)},{immediate:!0,deep:!0});const Vn=useRequestData(c),Yn=async()=>{var ir,ar;try{w.value=!0;const or=await Vn();Pn((ar=(ir=or==null?void 0:or.data)==null?void 0:ir.data)==null?void 0:ar.rows,!0)}catch(or){console.error(or)}finally{w.value=!1}},Gn=ir=>{var sr;const{columns:ar=[],rows:or=[]}=((sr=ir==null?void 0:ir.data)==null?void 0:sr.data)??{};let tr;ar.length>0&&(tr={name:ar[0],types:ar.slice(1).map(cr=>({label:cr,value:cr}))}),Fn(or,tr,!0)},Un=useIndicatorData(c,ir=>{c.isViewRedrawing&&v.value.clear(),Gn(ir)}),Kn=async()=>{try{w.value=!0;const ir=await Un();Gn(ir)}catch(ir){console.error(ir)}finally{w.value=!1}},{loadedData:Hn}=vue.inject(LOADED_DATA,{loadedData:{}}),Qn=vue.ref(!1);vue.watch(Hn,ir=>{if(c.dataType==="indicator"){const ar=getFixedValueDatas(c.graphicConfig);ar!=null&&ar.length&&(!vue.unref(Qn)&&canRequestIndicator(c.graphicConfig,ir)?(Qn.value=!0,Zn()):canRequestIndicator(c.graphicConfig,ir)||(Qn.value=!1))}},{deep:!0});const Zn=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Hn))&&Kn();break;case"request":Yn();break}},Rn=(ir,ar)=>!!vue.unref(y)[ar.value].value.includes(ir),qn=async()=>{m.value=!1;const ir=v.value.chart.getOption();for(let ar=0;ar<7;ar++)await In(ir,ar)},In=(ir,ar)=>new Promise(or=>{setTimeout(()=>{const{series:tr,color:sr,xAxis:cr}=ir,vr=v.value.chart,{splitArea:dr={}}=cr[0]||{};tr.forEach((lr,ur)=>{const fr=lr.data;let mr="";ar%2?mr=sr[ur]+"a8":mr=sr[ur],fr[g.value].itemStyle={color:mr}}),ar%2?(dr.show=!0,dr.areaStyle.color=vue.unref(y).map((lr,ur)=>ur===g.value?"#ff003b26":"")):dr.show=!1,vr.setOption({series:tr,xAxis:cr}),or()},200)});u({refreshData:Zn});const Dn=useEmitEvent(c),{getGlobalModel:er,setGlobalModel:Bn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ir=>{},setGlobalModel:(ir,ar)=>{}});Bn(c.id,{type:c.type,RECORD:""});const Jn=Dn("click",ir=>{const ar=er(c.id);Bn(c.id,{...ar,type:c.type,RECORD:c.tooltipShow?_:ir.data})}),{setRequest:Xn}=vue.inject(REQUEST_MODEL,{setRequest:ir=>{}});typeof Xn=="function"&&Xn({id:c.id,requestFn:Zn,sortNum:c.requestSort});const Wn=()=>{const ir=c.id,ar=er(ir);Bn(ir,{...ar,RECORD:""})},nr=ir=>{v.value.chart.containPixel("grid",[ir.offsetX,ir.offsetY])&&Jn()};return c.tooltipShow?re.value["zr:click"]=nr:re.value.click=Jn,useOnEvent(c,{refreshData:Zn,click:Jn,resetRecord:Wn}),{option:hn,style:x,refreshData:Zn,click:Jn,loading:w,onClose:vn,ecanModal:b,echartRef:v,handleLocationOk:qn,onFilterOption:Rn,locationVisible:m,locationValue:g,locationNames:y,eventObj:re}}}),Bar_vue_vue_type_style_index_0_lang="",Bar_vue_vue_type_style_index_1_scoped_b1e34a16_lang="",_withScopeId$3=c=>(vue.pushScopeId("data-v-b1e34a16"),c=c(),vue.popScopeId(),c),_hoisted_1$8={class:"location-wrap"},_hoisted_2$5=_withScopeId$3(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$f(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-bar",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$8,[_hoisted_2$5,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bar=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$f],["__scopeId","data-v-b1e34a16"]]),EcanBar=withInstall$1(Bar),scatterProps={...props,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0},scatterComponentProps=transformToComponentProps(scatterProps),scatterEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.ScatterChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.TooltipComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkAreaComponent]);const _sfc_main$c=vue.defineComponent({name:"EcanScatter",props:{...scatterComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref(),pn=vue.ref(),b=vue.ref(),re=vue.ref(),_=vue.inject("componentList",[]),{loadedData:J}=vue.inject(LOADED_DATA,{loadedData:{}}),En=vue.ref({}),gn=vue.computed(()=>{const{xAxisMarkLineValue:Xn=[],yAxisMarkLineValue:Wn=[]}=c,nr=Xn.concat(Wn),ir=[];for(const ar of nr){let or=ar.value;const tr=or.match(/\{(.+?)\}/g);if(tr!=null&&tr.length){for(const cr of tr)or=or.replace(cr,cr.slice(1,-1));const sr=vue.unref(_).find(cr=>cr.keyName===or);sr!=null&&sr.id&&!ir.find(cr=>cr.keyName===or)&&ir.push({componentId:sr.id,keyName:sr.keyName})}}return ir});vue.watch(J,Xn=>{var Wn;if((Wn=vue.unref(gn))!=null&&Wn.length)for(const nr of vue.unref(gn)){const{componentId:ir,keyName:ar}=nr;if(Xn[ir]){const or=Fn(ir);En.value[ar]=or.value}else delete En.value[ar]}},{deep:!0});const w=vue.computed(()=>{const{xAxisMarkLineValue:Xn=[],yAxisMarkLineValue:Wn=[]}=c,nr=Xn.map(or=>({...or,x:!0})),ir=Wn.map(or=>({...or,y:!0})),ar=nr.concat(ir);if(ar!=null&&ar.length){const or=[];for(const tr of ar){const sr={label:{show:!0,formatter:"",rich:{ft:{}}}},cr={};let vr=tr.value;const dr=vr.match(/\{(.+?)\}/g);let lr="";if(sr.label.formatter=tr.label?`{ft|${tr.label}}`:"",(tr.offsetHorizontal||tr.offsetVertical)&&(tr.x?sr.label.rich.ft.padding=[0,tr.offsetHorizontal||0,tr.offsetVertical||0,0]:tr.y&&(sr.label.rich.ft.padding=[tr.offsetVertical||0,0,0,tr.offsetHorizontal||0])),tr.labelColor&&(sr.label.rich.ft.color=tr.labelColor),tr.lineColor&&(cr.color=tr.lineColor),tr.x?lr="xAxis":tr.y&&(lr="yAxis"),dr!=null&&dr.length){for(const ur of dr)vr=vr.replace(ur,ur.slice(1,-1));if(vr){let ur;En.value[vr]?ur=vue.unref(En)[vr]:ur=runCode(vr,{max:tr.x?vue.unref(x):tr.y?vue.unref(b):0,min:tr.x?vue.unref(pn):tr.y?vue.unref(re):0}),isNaN(+ur)||or.push({[lr]:+ur,lineStyle:cr,...sr})}}else isNaN(+tr.value)||or.push({[lr]:tr.value,lineStyle:cr,...sr})}return{symbol:["none","none"],data:or}}else return{data:[]}});function hn(Xn,Wn,nr){switch(Wn){case"startX":Xn[0].coord[0]=+nr;break;case"startY":Xn[0].coord[1]=+nr;break;case"endX":Xn[1].coord[0]=+nr;break;case"endY":Xn[1].coord[1]=+nr;break}}const vn=vue.computed(()=>{const{axisMarkArea:Xn=[]}=c;if(Xn!=null&&Xn.length){const Wn=[];for(const nr of Xn){const ir=[{name:"",coord:[],itemStyle:{color:nr.color}},{coord:[]}];for(const ar in nr)if(ar!=="color"){let or=nr[ar];const tr=or.match(/\{(.+?)\}/g);if(tr!=null&&tr.length){for(const sr of tr)or=or.replace(sr,sr.slice(1,-1));if(or){const sr=runCode(or,{xMax:vue.unref(x),xMin:vue.unref(pn),yMax:vue.unref(b),yMin:vue.unref(re)});isNaN(+sr)||hn(ir,ar,sr)}}else isNaN(+nr[ar])||hn(ir,ar,nr[ar])}ir.every(ar=>{var or;return(or=ar.coord)==null?void 0:or.length})&&Wn.push(ir)}return{data:Wn}}else return{data:[]}}),Pn=vue.computed(()=>{const Xn=c.xAxisLabelFormatter,Wn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var nr;v.value=!0,(nr=g.value)==null||nr.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,xAxis:{z:5,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,formatter(nr){return typeof nr=="string"&&nr[0]==="0"&&!isNaN(+nr)&&(nr=(+nr).toString()),useValueFormatter(Xn,nr)}},axisLine:{lineStyle:{color:c.xAxisLineStyleColor},symbol:["none",c.showXAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameLocation:c.xAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},inverse:c.xAxisLineInverse,max:c.xAxisMax,min:c.xAxisMin},yAxis:{z:5,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},axisTick:{show:c.yAxisTickShow},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(nr){return useValueFormatter(Wn,nr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor},symbol:["none",c.showYAxisLineArrow?"arrow":"none"],symbolSize:[8,12],onZero:!1},name:c.yAxisName,nameLocation:c.yAxisLineInverse?"start":"end",nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},inverse:c.yAxisLineInverse,max:c.yAxisMax,min:c.yAxisMin},tooltip:{show:c.tooltipShow,trigger:c.tooltipTrigger,formatter(nr){var vr;const{marker:ir,seriesName:ar,componentType:or}=nr,tr=((vr=nr==null?void 0:nr.data)==null?void 0:vr.record)??{},sr=tr[vue.unref(Yn).name],cr=tr[vue.unref(Yn).value];return["markLine","markArea"].includes(or)?"":useVariablesInText(c.tooltipFormatter,{textData:{marker:ir,seriesName:ar,a:ar,b:sr,c:cr,...tr}},{useNewline:!0,useSpace:!0})},axisPointer:{type:c.crossShow||c.crossShow===void 0?"cross":""},textStyle:{fontSize:y.value},position:c.tooltipPosition||void 0},legend:{show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{color:c.legendTextStyleColor,fontSize:y.value}},series:[{data:vue.unref(m),type:"scatter",symbolSize:c.symbolSize,itemStyle:{color:c.symbolColor},markLine:w.value,markArea:vn.value}]}}),{getGlobalModel:Fn,setGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Xn=>{},setGlobalModel:(Xn,Wn)=>{}}),Vn=()=>{var nr,ir;const Xn=(nr=vue.unref(d))==null?void 0:nr.chart.getModel().getComponent("yAxis").axis.scale._extent,Wn=(ir=vue.unref(d))==null?void 0:ir.chart.getModel().getComponent("xAxis").axis.scale._extent;Wn&&Xn&&(pn.value=Wn[0],x.value=Wn[1],re.value=Xn[0],b.value=Xn[1])},Yn=vue.computed(()=>{let Xn=c.dataFieldNames;if(c.dataType==="indicator"){const{formFields:Wn={}}=c.graphicConfig;Wn!=null&&Wn.labelField&&(Wn!=null&&Wn.valueField)&&(Xn={name:Wn.labelField,value:Wn.valueField})}return Xn}),Gn=(Xn=[])=>{const{name:Wn="name",value:nr="value"}=vue.unref(Yn)||{};m.value=Xn.map(ir=>({value:[ir[Wn],ir[nr]],record:ir})),setTimeout(()=>{Vn()},0)};vue.watch(()=>c.data,Xn=>{(c.dataType==="static"||vue.unref(f)==="design")&&Gn(Xn)},{immediate:!0,deep:!0});const Un=vue.ref(!1),Kn=useRequestData(c),Hn=async()=>{var Xn,Wn;if(c.dataType==="request"){Un.value=!0;try{const nr=await Kn();Gn((Wn=(Xn=nr==null?void 0:nr.data)==null?void 0:Xn.data)==null?void 0:Wn.rows)}catch(nr){console.error(nr)}finally{Un.value=!1}}},Qn=()=>{v.value=!1},Zn=useEmitEvent(c);zn(c.id,{type:c.type,RECORD:""});const Rn=Zn("click",Xn=>{const Wn=c.id,nr=Fn(Wn);zn(Wn,{...nr,type:c.type,RECORD:Xn==null?void 0:Xn.data})}),qn=Xn=>{var Wn,nr;Gn((nr=(Wn=Xn==null?void 0:Xn.data)==null?void 0:Wn.data)==null?void 0:nr.rows)},In=useIndicatorData(c,Xn=>{c.isViewRedrawing&&d.value.clear(),qn(Xn)}),Dn=async()=>{try{Un.value=!0;const Xn=await In();qn(Xn)}catch(Xn){console.error(Xn)}finally{Un.value=!1}},er=()=>{switch(c.dataType){case"indicator":Dn();break;case"request":Hn();break}};useOnEvent(c,{refreshData:er,click:Rn,resetRecord:()=>{const Xn=c.id,Wn=Fn(Xn);zn(Xn,{...Wn,RECORD:""})}});const{setRequest:Jn}=vue.inject(REQUEST_MODEL,{setRequest:Xn=>{}});return typeof Jn=="function"&&Jn({id:c.id,requestFn:er,sortNum:c.requestSort}),u({refreshData:er}),{option:Pn,style:p,click:Rn,loading:Un,onClose:Qn,ecanModal:g,echartRef:d}}}),Scatter_vue_vue_type_style_index_0_lang="";function _sfc_render$e(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Scatter=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$e]]),EcanScatter=withInstall$1(Scatter),customGraphProps={...props,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},customGraphComponentProps=transformToComponentProps(customGraphProps),_sfc_main$b=vue.defineComponent({name:"EcanCustomGraph",props:{...customGraphComponentProps},components:{Echarts},setup(c){const u=usePickComponentStyle(c),f=vue.ref();return vue.watch(()=>c.optionCode,h=>{try{const d=eval;f.value=d(h)}catch(d){console.error(d)}},{immediate:!0}),{style:u,myOption:f,echarts:echarts__namespace}}});function _sfc_render$d(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(p,{option:c.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const CustomGraph=_export_sfc$1(_sfc_main$b,[["render",_sfc_render$d]]),EcanCustomGraph=withInstall$1(CustomGraph),comboGraphProps={...props,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0},comboGraphComponentProps=transformToComponentProps(comboGraphProps),comboGraphEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.BarChart,charts.LineChart,components$1.TitleComponent,components$1.LegendComponent,components$1.DatasetComponent,components$1.ToolboxComponent,components$1.MarkLineComponent]);const _sfc_main$a=vue.defineComponent({name:"EcanComboGraph",props:{...comboGraphComponentProps},components:{Spin,Echarts,EcanModal,AModal:antDesignVue.Modal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.inject("usedComponentList",[]),{getGlobalModel:v,setGlobalModel:p}=vue.inject(GLOBAL_MODEL,{getGlobalModel:ar=>{},setGlobalModel:(ar,or)=>{}}),m=vue.ref(),g=vue.ref(!1),y=vue.ref(!1),x=vue.ref(null),pn=vue.ref([]),b=vue.ref({});let re;const _=usePickComponentStyle(c),J=vue.ref([]),En=vue.ref([]),gn=vue.ref(),w=vue.ref([]),hn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),vn=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},title:{text:c.titleText,subtext:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myLocation:{show:g.value?!1:c.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(){y.value=!0;const ar=m.value.chart.getOption(),{xAxis:or}=ar||{};or&&or.length&&(pn.value=or[0].data)}},myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var ar;g.value=!0,(ar=gn.value)==null||ar.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(w).map((ar,or)=>({name:ar.name,itemStyle:{color:c.colors[or]},icon:c.legendType})),formatter:ar=>getLegendFormat(c.legendFormatter,{name:ar})},tooltip:{trigger:"axis",show:c.tooltipShow,formatter:ar=>{var vr;const or=ar.length;let tr="",sr=c.tooltipFormatter;re=(vr=ar[0])==null?void 0:vr.data,sr===""&&(sr="{marker} {a} {c}");const cr=c.seriesTypes;for(let dr=0;dr<or;dr++){const lr=cr[dr],{tooltipFormatter:ur}=lr||{},{marker:fr,seriesName:mr,name:yr,value:br,data:Sr}=ar[dr]||{};if(dr===0){let Er=yr;typeof yr=="string"&&yr[0]==="0"&&!isNaN(+yr)&&(Er=(+yr).toString()),tr+=`${useValueFormatter(c.xAxisLabelFormatter,Er)}<br/>`}tr+=useVariablesInText(ur||sr,{textData:{marker:fr,name:yr,value:br,seriesName:mr,a:mr,b:yr,c:br||0,...Sr}},{useNewline:!0,useSpace:!0}),tr+="<br/>"}return tr},textStyle:{color:c.tooltipTextStyleColor,fontSize:hn.value},position:c.tooltipPosition||void 0},xAxis:{minInterval:c.xAxisMinInterval,type:"category",data:vue.unref(En).map(ar=>{let or={};return ar&&typeof ar=="object"?or={...ar}:or={value:ar},or}),splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(ar){return typeof ar=="string"&&ar[0]==="0"&&!isNaN(+ar)&&(ar=(+ar).toString()),useValueFormatter(c.xAxisLabelFormatter,ar)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:vue.unref(Yn),series:vue.unref(J)})),Pn=()=>{g.value=!1},Fn=(ar=[],or=!1)=>{let tr;if(c.dataFieldConfigType==="key"){const cr=or?c.keyTypeDataFieldNames:null;tr=useTransformChartDataByAttrKey(ar,cr)}else if(c.dataFieldConfigType==="value"){const cr=or?c.valueTypeDataFieldNames:null;tr=useTransformChartDataByAttrValue(ar,cr)}En.value=tr.dimensions;const sr=tr.dataset;w.value=tr.dataset,J.value=Vn(sr)},zn=(ar=[],or,tr=!1)=>{const cr=useTransformChartDataByAttrKey(ar,tr?or:null,!0);c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(d),getGlobalModel:v},cr),En.value=cr.dimensions;const vr=cr.dataset;w.value=cr.dataset,J.value=Vn(vr)};function Vn(ar){const or=[],tr=ar.length,sr=c.seriesTypes;for(let cr=0;cr<tr;cr++){const vr=sr[cr],{type:dr,axisIndex:lr}=vr||{};let ur={type:dr,yAxisIndex:lr,...ar[cr]};if(dr==="line"){const fr={};c.shadowColor&&(fr.shadowColor=c.shadowColor,fr.shadowBlur=c.shadowBlur,fr.shadowOffsetY=c.shadowOffsetY,fr.shadowOffsetX=c.shadowOffsetX),ur={...ur,symbolSize:c.symbolSize,smooth:c.smooth,itemStyle:{color:c.colors[cr]},areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[cr]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[cr],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...fr}}}if(dr==="bar"){const{gradientShow:fr,gradientColors:mr,gradientOffset:yr}=c,br={color:c.colors[cr]};if(c.barBorderRadius){const Sr=c.barBorderRadius.split(",");if(Sr!=null&&Sr.length){const Er=[];for(const wr of Sr){const kr=parseFloat(wr);isNaN(kr)||Er.push(kr)}br.borderRadius=Er}}fr&&(br.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[cr]},{offset:yr,color:mr[cr]},{offset:1,color:mr[cr]}]}),ur={...ur,barWidth:c.barWidth.value+c.barWidth.suffix,itemStyle:br}}c.isShowMarkLine&&(ur.markLine={data:[{type:c.markLineType}]}),or.push(ur)}return or}vue.watch(()=>[c.data,c.seriesTypes,c.symbolSize,c.smooth,c.areaStyleOpacity,c.lineStyleWidth,c.barWidth,c.barBorderRadius,c.areaGradientShow,c.areaGradientColor,c.gradientShow,c.gradientColors,c.gradientOffset,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.xAxisLabelFormatter,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([ar])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Fn(ar)},{immediate:!0,deep:!0});const Yn=vue.computed(()=>{const ar=c.yAxis;return ar==null?void 0:ar.map((or,tr)=>({type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:tr===0?c.yAxisLeftSplitLineShow:c.yAxisRightSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:tr===0?c.yAxisLeftSplitLineType:c.yAxisRightSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(sr){return useValueFormatter(or.axisLabelFormatter,sr)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:tr===0?c.yAxisLeftName:c.yAxisRightName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:tr===0?"right":"left"},max:c.yAxisMaxValue||null}))}),Gn=vue.ref(!1),Un=useRequestData(c),Kn=async()=>{var ar,or;if(c.dataType==="request")try{Gn.value=!0;const tr=await Un();Fn((or=(ar=tr==null?void 0:tr.data)==null?void 0:ar.data)==null?void 0:or.rows,!0)}catch(tr){console.error(tr)}finally{Gn.value=!1}},Hn=ar=>{var cr;const{columns:or=[],rows:tr=[]}=((cr=ar==null?void 0:ar.data)==null?void 0:cr.data)??{};let sr;or.length>0&&(sr={name:or[0],types:or.slice(1).map(vr=>({label:vr,value:vr}))}),zn(tr,sr,!0)},Qn=useIndicatorData(c,ar=>{c.isViewRedrawing&&m.value.clear(),Hn(ar)}),Zn=async()=>{try{Gn.value=!0;const ar=await Qn();Hn(ar)}catch(ar){console.error(ar)}finally{Gn.value=!1}},{loadedData:Rn}=vue.inject(LOADED_DATA,{loadedData:{}}),qn=vue.ref(!1);vue.watch(Rn,ar=>{if(c.dataType==="indicator"){const or=getFixedValueDatas(c.graphicConfig);or!=null&&or.length&&(!vue.unref(qn)&&canRequestIndicator(c.graphicConfig,ar)?(qn.value=!0,In()):canRequestIndicator(c.graphicConfig,ar)||(qn.value=!1))}},{deep:!0});const In=()=>{switch(c.dataType){case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(Rn))&&Zn();break;case"request":Kn();break}},Dn=(ar,or)=>!!vue.unref(pn)[or.value].value.includes(ar),er=async()=>{y.value=!1;const ar=m.value.chart.getOption();for(let or=0;or<7;or++)await Bn(ar,or)},Bn=(ar,or)=>new Promise(tr=>{setTimeout(()=>{const{series:sr,color:cr,xAxis:vr}=ar,dr=m.value.chart,{splitArea:lr={}}=vr[0]||{};sr.forEach((ur,fr)=>{const mr=ur.data;let yr="";or%2?yr=cr[fr]+"a8":yr=cr[fr],mr[x.value].itemStyle={color:yr}}),or%2?(lr.show=!0,lr.areaStyle.color=vue.unref(pn).map((ur,fr)=>fr===x.value?"#ff003b26":"")):lr.show=!1,dr.setOption({series:sr,xAxis:vr}),tr()},200)});u({refreshData:In});const Jn=useEmitEvent(c);p(c.id,{type:c.type,RECORD:""});const Xn=Jn("click",ar=>{const or=v(c.id);p(c.id,{...or,type:c.type,RECORD:c.tooltipShow?re:ar==null?void 0:ar.data})}),Wn=ar=>{m.value.chart.containPixel("grid",[ar.offsetX,ar.offsetY])&&Xn()};c.tooltipShow?b.value["zr:click"]=Wn:b.value.click=Xn;const{setRequest:nr}=vue.inject(REQUEST_MODEL,{setRequest:ar=>{}});return typeof nr=="function"&&nr({id:c.id,requestFn:In,sortNum:c.requestSort}),useOnEvent(c,{resetRecord:()=>{const ar=c.id,or=v(ar);p(ar,{...or,RECORD:""})},refreshData:In,click:Xn}),{style:_,option:vn,click:Xn,loading:Gn,onClose:Pn,ecanModal:gn,echartRef:m,handleLocationOk:er,onFilterOption:Dn,locationVisible:y,locationValue:x,locationNames:pn,eventObj:b}}}),ComboGraph_vue_vue_type_style_index_0_lang="",ComboGraph_vue_vue_type_style_index_1_scoped_cc00fe91_lang="",_withScopeId$2=c=>(vue.pushScopeId("data-v-cc00fe91"),c=c(),vue.popScopeId(),c),_hoisted_1$7={class:"location-wrap"},_hoisted_2$4=_withScopeId$2(()=>vue.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function _sfc_render$c(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal"),y=vue.resolveComponent("a-select-option"),x=vue.resolveComponent("a-select"),pn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,"update-options":{notMerge:!0},autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),vue.createVNode(pn,{visible:c.locationVisible,"onUpdate:visible":u[1]||(u[1]=b=>c.locationVisible=b),title:"快速定位",onOk:c.handleLocationOk},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$7,[_hoisted_2$4,vue.createVNode(x,{value:c.locationValue,"onUpdate:value":u[0]||(u[0]=b=>c.locationValue=b),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":c.onFilterOption},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.locationNames,(b,re)=>(vue.openBlock(),vue.createBlock(y,{key:re,value:re},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(b.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ComboGraph=_export_sfc$1(_sfc_main$a,[["render",_sfc_render$c],["__scopeId","data-v-cc00fe91"]]),EcanComboGraph=withInstall$1(ComboGraph),radarProps={...props,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1},radarComponentProps=transformToComponentProps(radarProps),radarEvents=["refreshData","click","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.RadarChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent]);const _sfc_main$9=vue.defineComponent({name:"EcanRadar",props:{...radarComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref([]),pn=vue.ref(c.valueTypeDataFieldNames.name),b=vue.computed(()=>{const Zn=vue.unref(x),Rn=Zn.length,qn=[];for(let In=0;In<Rn;In++){const{name:Dn,data:er=[]}=Zn[In],Bn=[{name:Dn,value:er.map(Wn=>Wn.value)}];let Jn=c.colors[In];if(c.gradientShow){const{gradientOffset:Wn,gradientColors:nr}=c;Jn={x:.7,y:0,x2:0,y2:0,colorStops:[{offset:0,color:c.colors[In]},{offset:Wn,color:nr[In]},{offset:1,color:nr[In]}]}}const Xn={type:"radar",name:Dn,data:Bn,areaStyle:{color:Jn,opacity:c.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:c.symbolSize,lineStyle:{width:c.lineStyleWidth},label:{show:c.labelShow,fontSize:c.labelFontSize,position:c.labelPosition,color:c.labelColor,width:c.labelWidth,overflow:c.labelOverflow,formatter:Wn=>{const{data:nr,value:ir}=Wn;let ar=0,or="0%";if(nr)for(const tr of nr.value)ar+=+tr;return ar&&(or=`${(ir/ar*100).toFixed(2)}%`),useVariablesInText(c.labelFormatter,{textData:{value:ir,percent:or}},{useNewline:!1,useSpace:!1})}}};qn.push(Xn)}return qn}),re=vue.computed(()=>{var Dn;const Zn=[],Rn=[],qn=vue.unref(x),In=qn.length;for(let er=0;er<In;er++){const{data:Bn=[]}=qn[er];for(let Jn=0;Jn<Bn.length;Jn++)Rn.push(Bn[Jn].value)}if((Dn=m.value)!=null&&Dn.length){const er=Rn!=null&&Rn.length?Math.max(...Rn)*1.2:0;for(const Bn of m.value)Zn.push({name:Bn,max:er})}return Zn}),_=vue.computed(()=>({textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Zn;v.value=!0,(Zn=g.value)==null||Zn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value},show:c.tooltipShow,formatter:Zn=>{let Rn="",qn=c.tooltipFormatter;qn===""&&(qn="{marker} {a} {c}");for(let In=0;In<vue.unref(re).length;In++){const Dn=vue.unref(re)[In],{marker:er,seriesName:Bn,value:Jn}=Zn||{};In===0&&Bn&&(Rn+=`${Bn}<br/>`),Rn+=useVariablesInText(qn,{textData:{marker:er,name:Dn.name,value:Jn[In],a:Dn.name,b:Dn.name,c:Jn[In]||0,type:Bn}},{useNewline:!0,useSpace:!0}),Rn+="<br/>"}return Rn},position:c.tooltipPosition||void 0},radar:{indicator:vue.unref(re),axisName:{color:c.axisNameColor}},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(x).map(Zn=>({name:Zn.name,icon:c.legendType})),formatter:Zn=>getLegendFormat(c.legendFormatter,{name:Zn})},series:vue.unref(b)})),J=()=>{v.value=!1},{getGlobalModel:En,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Zn=>{},setGlobalModel:(Zn,Rn)=>{}}),w=(Zn=[],Rn=!1)=>{let qn;if(c.dataFieldConfigType==="key"){const In=Rn?c.keyTypeDataFieldNames:null;qn=useTransformChartDataByAttrKey(Zn,In)}else if(c.dataFieldConfigType==="value"){const In=Rn?c.valueTypeDataFieldNames:null;qn=useTransformChartDataByAttrValue(Zn,In)}m.value=qn.dimensions,x.value=qn.dataset},hn=(Zn=[],Rn,qn=!1)=>{const Dn=useTransformChartDataByAttrKey(Zn,qn?Rn:null,!0);m.value=Dn.dimensions,x.value=Dn.dataset};vue.watch(()=>[c.data,c.areaStyleOpacity,c.legendFontSize,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll,c.labelFormatter],([Zn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&w(Zn)},{immediate:!0,deep:!0});const vn=vue.ref(!1),Pn=useRequestData(c),Fn=async()=>{var Zn,Rn;if(c.dataType==="request")try{vn.value=!0;const qn=await Pn();w((Rn=(Zn=qn==null?void 0:qn.data)==null?void 0:Zn.data)==null?void 0:Rn.rows,!0)}catch(qn){console.error(qn)}finally{vn.value=!1}},zn=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Vn=Zn=>{const Rn=Zn.event.topTarget.__dimIdx;Rn!==void 0&&zn("click",()=>{var er;const{value:qn,name:In}=Zn.data||{},Dn=En(c.id);gn(c.id,{...Dn,type:c.type,RECORD:{[vue.unref(pn)]:((er=vue.unref(re)[Rn])==null?void 0:er.name)||"",[In]:qn[Rn],seriesName:In}})})()},Yn=Zn=>{var Dn;const{columns:Rn=[],rows:qn=[]}=((Dn=Zn==null?void 0:Zn.data)==null?void 0:Dn.data)??{};let In;Rn.length>0&&(pn.value=Rn[0],In={name:Rn[0],types:Rn.slice(1).map(er=>({label:er,value:er}))}),hn(qn,In,!0)},Gn=useIndicatorData(c,Zn=>{c.isViewRedrawing&&d.value.clear(),Yn(Zn)}),Un=async()=>{try{vn.value=!0;const Zn=await Gn();Yn(Zn)}catch(Zn){console.error(Zn)}finally{vn.value=!1}},Kn=()=>{switch(c.dataType){case"indicator":Un();break;case"request":Fn();break}};useOnEvent(c,{refreshData:Kn,resetRecord:()=>{const Zn=c.id,Rn=En(Zn);gn(Zn,{...Rn,RECORD:""})},click:Vn});const{setRequest:Qn}=vue.inject(REQUEST_MODEL,{setRequest:Zn=>{}});return typeof Qn=="function"&&Qn({id:c.id,requestFn:Kn,sortNum:c.requestSort}),u({refreshData:Kn}),{option:_,style:p,click:Vn,loading:vn,onClose:J,ecanModal:g,echartRef:d}}}),Radar_vue_vue_type_style_index_0_lang="";function _sfc_render$b(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{ref:"echartRef",option:c.option,autoresize:"",onClick:c.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Radar=_export_sfc$1(_sfc_main$9,[["render",_sfc_render$b]]),EcanRadar=withInstall$1(Radar),__vite_glob_0_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",__vite_glob_0_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEnVJREFUeF7tXU2MHNdxrqrumd0luRJNi4jIXUeEbcBAfIiM+KLk4BUs2GEOkexA+ZHE5c4yjmAISeSDASc5ZAMESAQkiJPAECKJnP2R8sfAjqEgTgIbpi5RDgogIxAQAbFAWbsrShQoUvxZ7kz3q6jqve7p7pnZmdkf8MBqQezt9+rVq/peT3V1T381CLYZAoaAIWAI3FIEjj52+lNIdKbdTr787t995Z2qMXhLrbPJDQFDwBC4zRGYmj19HyJ9jxnuBIb/SSC6752V2etFWCxQ3+YniblvCBgCtw6BqRPNhwHhH4sWsONfWH9+/j8tUN+6dbGZDQFDwBBQBKZOnvkaMP05AGcJ8yVi98W3Vk69Yo8+7CQxBAwBQ+CWIsA4Ndv8FgB+NTODmd+MiD7/1tLcj3uZZo8+bumC2eSGgCFwOyHwyd/+q7EbVyb/AQEeLPj9ahrxFy405y/2w8IC9e10lpivhoAhcMsQmD713CFu078A4H0dI/j7PN5+cP2Zx29sZZgF6lu2bDaxIWAI3C4IHHnkuXsojn4AAJ/IfUY4u3Zj/2/A2V9NB+FggXoQQtZvCBgChsAOEJiaa97LDv4DAQ7nz6QBnlpfbnxjWLUWqIdFyuQMAUPAEBgRgenZpeMM7p8AYF8YyoD8xNrS/NOjqLJAPQpaJmsIGAKGwJAIfGy2OZ8CP4uAJEMQYdMx/9r68vx3B6k4cqL5JDO8euH5xjkdO2iA9RsChoAhYAiMhsDUyTN/DIx/kI9CuAJMx9eWT748SNPR2TOLCHgSAC6nBJ+5sNg4b4F6EGrWbwgYAobAkAj83G/9Te2dzXqTGR7tDMFVdukD68+fen0rNQfnmgf3p/AdQJjJ5Bjg1fXlxmcsUA+5ACZmCBgChsBWCNw1f3pyLKEXAeBzBbnXawQz5xcbF7Yae/dc8xg5+A4C3FuSY2isrTQWLVDbuWcIGAKGwA4RODbXvDtx8H0G+HQhk355bHzz+BvPPH5lK/VTjzTvhRh+CAAHcznmK5DizNrfNl6VtlED9YfyCwjwGsLMRYSrV/34jY8jtK4hJBsIySaCayEcOQrQ3kRIWghpGyG9A8G18SMA8L5L8M7J/XjFJTiZJgguRYBJYJcgcIo8kSK4MWSWdgBwDpnHvNy4b2NXR2AX/q8h1J1v17Yayhjtr8faXmfGTXZY59i3x5m8HDMCR7rnmm+HTE71xchBXuWEm69jHMaxHIt8GB/JeP+3byevN5Jj/7e2R/7vCBgTJoylPfbyrDJBNhLh8LfqyXRIB2NEjCmT6vHjIgDKxostYiehNKsdmS4i7YuAQMflY8ry8hWI76/KZ3aIPAb9Xkb+069OmJEye0RGbCHZBz/lGEO79xmIsnNSv3/p3qjaPqxcpirIF3ZO5u2aqSzX6a5I5ocD7KrIyaGTlc3N6uNH9SPa5X9vv/rZK57qvF3T9fCrt2DR6qIDfZYrzFf1t4q4Tt8Lg2HxDtNXHMv97Zq/gv8O+xngN6V8RwGEb68tN36l90ncaZ060ZwDhGZJjvlHkOJcFqSlb5RAjQsLC7iwcI7gZw6TBObpwwdo9Y3X6fBHD+HF1gYdPHCELl96Dyf3jdHVpEUH9k3gtQ9atG+sRjc4xYl6TBvXExofq0vwpno9ps0Nh1CLiF1C9XoNWzdTqsVELWaUfbvlsBZF1OaUJCi2naNahMRtxniMKGk7iqMIE04pojolSRvjqEaJcxRFhGnSpqgWEySAFCGl7CgiQtkTxeTSFAmRUiCMyPeTBKXEEcVIzrH2O2aRxzT17ZBKYNU9AWlgJq8nk1f96NKERLMEKcz1ROj1ITofZQkcqn1yrO0SUUU+6BP9iIQsUdfrQUIS++RYgqDYrfZKP8t40iDr+0v6SKIziQYAR/KtNEtk1XGZPu0kVrtJ/c/mAf8tdkVergBYsA/EXGK1TwO47EU/onx6FCZAtZ/IzxP0SowHb5BcRPzeTwictefHvl+3ME73IO16EaqMD+2V/ny+6rgB82X2+Ol3YG8+T7C3OC+I/2V/ivN52HqMy+2hML6DX3l8Ae8unAO+fgF0XTy+O/S3Or4nzh27O/OKAZm/g9a37O+goLl7/fj02vLJJwBQjO27HZ1tStb7h9UgfT3CmcuLjcvF9pECtWbTM+cI3n2XoHUPws3LBIcmSbLmQ60JupRskGbK7Zt0IKmTZsdjLbqe1mhCMuK0RVxPCNgHanYxaSbsEmIXkWbCtZTAEdViyRAloDhsu4jiKCXNVJ3TDzlHEhzlb/k/wihCSrgYtDUYSbbnZaIINcFT+XJQTpk1qPs+DVYIFHtZjT+OJKqlxBhJv3wyQnBU/ZKNSrtEImCU2E6oZxOC7NkHcwmCKp8FXwlseb98qkQvk4+BPpj5jFjaO/rED4maEvykXWJfZx6vR8f7rNbbGvRJqutQgFU/ZP1lDjEXdW6G4Jt++v38/goh/gV5vYj4oJzJe/06D3vQvH2qozC/SPg2xUdk9ZYh86cTBcJ5WggKIbPIgnYxaIRIXUg9iqe2tybrzMfnnwRBJTsoz5e3ZheDTDA/Lo/Lzdfg2jE4v5j0G1/Rn1+cNAT7oJj7mLtS9tFHT/9P8EKPdXwpJ+v2N7N7aH+r9gZ/81je5Wcl1HT5q5caHTXM+pTtLY8r+VtZ190Lxj01yW3h760uN57aah750nBfCn+BCHNFOQZeWl+eL7VVzq6hzEf4MKOGhfDY49y7BJ+8Rx93TB85jHlmnbbxUHoH5kH7/QQnDySoGTZP4DWX4v6JMbyetn3wdtcQxuvI1xMCybT1cUUN+UZCsgfewDrX/GOLWkSt8PhCM+5IMm+HNYixzZuaect4lscW4BAiImgz+iDtMI4kA2d9XJGwwygiStsse0wgwVgywOJjB/KBMuIINVPWjNvLp4k8dtCUzT+OSPS23strxq6RWzPs/Fj6JRMPjxE05dOoSpJZhsxe9hE6SJFAH8tkFwUdx5LxM6KTSKeZt2by/rGCf0whGbzvR5FzYrbq95m1XDS8vMpJphweb2h4L86n8pIOix61Lx+vOKE+BtL5y/rloqefupBJS1CXWEMILvgjuAW79c5ArjY+GnWiiJqpI8MJ6h8YEBE4J7fvCM5fWfztPIp6vUqExwrhtrnz6S8Eu46gXl7B+WtZr0yxEIS8QHY7HhTnE4ZMPpeX08P5zD4EyzwxDRmkNyg8CJHbdu9IFq58r/qlt0TBr8xfCP52Hi+EAT31qN1d9vTK4EOw7GOPvwZ31sXjFvws3QlkeuRjXYAte8TRtb7e7846Vh6byHrrumfrm91Jeb+61qXnnZk/MfM7reyOK7/z2kE/0bOrS3MvDAzSDn5Y/dLQMXzt7ZXGN/uNHSWjHiqam5AhYAgYAoZANwLypSHH+mbHsbxXvjQEfFLe7NgKMwvUdkYZAoaAIbDHCBx9rPkQkn5p2PfNDgvUe7wIpt4QMAQMgX4I9HuzI43wIWEdDoOcZdTDoGQyhoAhYAhsA4ECHbwzmvml6xE+VH2zwzLqbQBsQwwBQ8AQ2AkCSmSJ+Bwg3lnUkzq4Pyu2NKx+y6iHRcrkDAFDwBAYEQFfv0OD9c+WhgZq+LDqLFAPi5TJGQKGgCGwDQRCsP5nQCzWAJFXNhfWlxt/NIzKUQN15Q37BVA6+cMAcPZip+ZTkVqeWSEUc9mEZq77TQSYBoBVgJ+6C+FtALhL2sIm1HP5QYR0He+Cj8J7AHAobeMlAPiIa+P78vXpHQdQ6DvyNerltK33F0pDDxun+/zfoY33JwhXAWDyAIBQ11U+0NSLcjzux40XdAklHSZASDy5jWEsy/vfGwAw5vvGAeAmOxyHcbjpUhwDgE3plv6bwmev+bnlnfFsU/1joLR5GaD2eLninH5MXQxH2SlVPnfY0+Vr7LAl09Rr0HIORcy/b64O+/Gy5TT6QIPP+4NcrVa2UenzmQ4ZX1N9wnxv5/rlfW5pERZ+sM0V9Mv77RD0ejHPt/GAlM/HOAZIEgDZFzY5SmT6rn3c1e79LAj2bijp7z4I83fpqUoOFAi4Z/aU/epnRAwRJJCC3xfcKcCTtXcmGOBSEQfFOSjuOWxv/OqxMN6qHn558/qsb5fNwd6iX1X/9uD4Zt3993tnTkmE6bn1el7NDIvrK43GoNUaJVCL7IfMxJmezERoTRBUmInXOMX9YzGxsBAlAKVxH2aip5ALM7FeS6klzERmbMWyF+ZiRJwzE4WdkHaYiUJqCQxEIYPkdHInr8UHEkqVmShMicBSFL62MhO1BoYTMggpB4Q8S1FZFZ5k4skrQrNWZqISTISMkrMHlWyipJEykzBjGCpzkZGc/KOswyozUcggWqxAGCI5SzEwJgJtG8gzH3szE4WH7mnggRHo2RRKIVeGYSChBCalrGmBPVhgGnr2QGAV+vYiM9GzDYvyHQZimZkY1iFjRm7FTMzJNh2acrnKQcYwlNM6IztUTuE+DMKcQlLtz/VkH5WyXj+uF2Muk+s9LrOvP1Ov4IP+mfnh935cZd4CfTv/YI/MaKx+5Pv4W2U0DmBiensCH7XIhCyN68GIrOCfMyh7MjEr616ksw/N4BwUErffzwCv1Qke2KpS3tRsU0gtv1uaheHc9Qi+tNWXiyMF6v61Pj6FF1s/2btaH+MRtVt7WesjohRgQK0PqUhBw9f60JogUutDmIE+mCNG5DglomqtD6Ha8fZrfURKWRPz+tT60AJKhdoh26/1obTxHdX6kKImQtULtT58DZP+tT5CuNqTWh85g7BY6yIw7rpqbZRrW2TRdEe1PooXm61qfRRrdgQGXSeay8Dt1b4o1SbpqrUR/A01RDK6/o78LdUKqdRiGbbWhxowqLZJd22Y7YffEUcyr0ZEv/iTpbnX+o3s9bqe1J2+QXB/v2A9UqD2aczDCHARs8JMecW8UPMjq5R3MNmgyy7BOyb34wdpgnntD3lcoDVAaj7LdmP+uK61NTyF3IVjrYAnNHKHLI8LNOv21ewk4wbJsjmSmhO++p3UAYk1o/QV7FxKEPs+X1WPwjFjrFXqfA0Qf8vts2jNpkWftMv4UAlPaeZS0IkZfQGnrDZIqEiXHWfV6rL6H6EqXZTPF6rThYzU1+MQ9rKnf0eAnn5epJmrfXKWEzJKpp/1B0q31NgItHAteZT5g5q2k5NbANVfpJD76nbZHYGnbxcp5DktXYOoz+CLFPLQH+bL9Wc1SXzdD1/vQ+s6FefzfRJzCpl5qKRXoJCXMs3stK9WtfOnsG8tZmyVqmv9MsJKVbs8P+6bQXZmy7LIggGdTD9XlFtW7uvS39uv7szZt+RFBvNPcNFfLUQYtuodR7VCXSeDL9+9jGZPRr/vJMiVecPTrcz6fn517pTK6537mzcP51dxPbeqkJTdcfULroP6izWoGeADYv7l1ZX5l/rpUwIM8mLxjRAGOI8JfKlYNa/PKo549TBxQ8AQMAQMAZg+ceZzTPgiMEx6OLgNjI+urTTO9oOnz+t7lyGB+6vBepSM2pbDEDAEDAFDoA8CP31y8dOOWX484G4fq7VS2u+vrjT+dECwlsx6y9f3LFDbaWcIGAKGwC4hMPXos9MYxf9W/KUXBDiz+vE3vwILC1IbsWvr9661A3jy7eXGX8oAC9S7tECmxhAwBAwBQUB+O3E8oRe59NuJ+L0a8ZfPLzbkBd2ewXqf42+GXx/P+7PX9yxQ27llCBgChsAuIyC/Rn5hs/4CsLJMdEPAV5LI/dKF5vzFvo9Cqq/vMb+0tjI/Y4F6lxfI1BkChoAhkCFwdLb5JwjwjQIibxLi599amvtx32Cd/Y4i84+yn+WyQG3nlCFgCBgCe4jA0dnmPAI/m/8EDcIl59wX31459Uq/ae9+rDkDMZzPyqBaoN7DBTLVhoAhYAgIAtOzS8cZ3LdDhQlpusnAv76+PP/dYRCyQD0MSiZjCBgChsAOEfjYidOfTZH+1Rcx0qfWDOieWFuaf3qQagvUgxCyfkPAEDAEdgmBI488dw/F0Q8A4BOZSgT8s9Xlua9vNYUF6l1aAFNjCBgChsAwCEyfeu6Qa9O/I+Bnc3mGsxMHr574v7/+HSm02bVZoB4GWZMxBAwBQ2AXETg21xxPHPw9AzzYUcsvj423j7/xzONXqlNZoN5F8E2VIWAIGALDI8A4Ndv8FgB+tZNZ8+vg6g+svfDYalGPBerhUTVJQ8AQMAR2HYGjs82vf/irJE+F8o/vM/HPry82/tcC9a5DbQoNAUPAENg+AlMnmg8DwWlA+MLaYuO/7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",__vite_glob_1_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",__vite_glob_1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXnvt75yz9rr77m9dhNoxdfilMR5feQWJv3DmxOwP6vV2bQgYAoaAIbC9CGClu7k5N/nW3d8GgI8jQJsZHl8+MXNye02y3gwBQ8AQMATKCFQc9cSRpfcB5D9GxPcWQsifW16a/bzBZggYAoaAIXBrEKhG1AAw+fhzU5CkrwHAvdEkBJg/c+j0EzA3R7fGTOvVEDAEDIGdi8AmRy1QHHrymb3r643XEPD+DjT8asPhJ04tzqzvXLhs5IaAIWAIbD8CXR21mHHP9MJom/hbAPhQNIsB36CEPn5uYfb89ptqPRoChoAhsDMR6OmoFY65OTfx1t3PIcBs4ayZTyfOfeTtpelf7EzIbNSGgCFgCGwvAv0ddbBl8ujC5wDgX0qmXXRMH3v7xKff2F5zrTdDwBAwBHYeAkM5aoFl6lOLj7ODJQBOAkzrCO4TZ44fe3XnwWYjNgQMAUNg+xAY2lGLSRNH5x9EQNlnPRpMJED+q+Wl2a9tn8nWkyFgCBgCOwsBddR3TS/ck+Twt8snZj47aPgHjzx/v3PuO8BwZ5RFxC+eWZr+h0Ftrd4QMAQMAUPg+hHAfdML+8YJvo8A9wHD6ysJPHppceZSP1W/f2zx/cT8PQC4u5BDOHnXSOvxnzz7VPv6zbAWhoAhYAgYAr0QwIkj8y8j4sNRgAHeJAePnlucOdUPtrtm5g8khN8FhvuKyBrgB83R1sNvPfvUZYPcEDAEDAFD4OYggJOPLdwHCb8OiHtLKi9BBh9e/ubMm/26mXjymXFcH3kFgB8syf0M8uzB5ReeOHNzTDQthoAhYAjsbAR0jTo460VA/OMKHAwzyydmFvtCdPilZHJ85T+B4XARWSOcywAfPLc0/X87G14bvSFgCBgCW0eg2PUha9W7co2sK86aAebOHp/550FdTR1d+CID/H1HDq8Bw5cROY9lkijElRTdrGuCWgoSveyWlqRUVqnuIbup2BdEu4kAnAMg+dD1COXD9NXV5Kpe7U/7H3ZsPezqau+7d7p+BLlivEV9t3F1G8CQcoWZtfGG56UYbw+5jlkFQLWRXN/zEYbNgMwAyMDMKGfBHYGBQrnUIzLlOchZZJFDHeQAhB0dUk+kIFPUS8QY2qlulSfVqf12kZc6b0vUr3YxoPNn/+yr3hyQEyTORa9/clU35qEP7ScHyKVfr0ftERsygAyRU2kv/Um5tJMjyhbtMtD+vT7GPH6WcuQMHEOed8YlysWOTOQyb7va31I92A7tMbYR8YxB5R23MOMRdLwBACOI3GoFHS7q2QAUfS25bpf0rwOKzHrC4BJG3GCQax2SlG0wuoRhNWF0KQNcBZG7mqS816V8+eoK7wOAS1LnGgzJFYakwZA2PS4X3mFwTYZ0hCEdY2ju9uVjbzHs2cPw+gEG+CNxqfFl6/LSdfckm7bnTRydX0TAY2VxZlg8e2JmZpCznjy2+Bkm/ioiXNe2v0F6+9XLe4EI8i6BdMtMgCjnUK7PZKgP5apP36fYrlovxjOIPl8ej+Laf5DbW+0vyFf6k7feF2h/vl3sP7RXPeVxxP59fWgYmnm54fsv9StmFHhEszrjrOLYsScYPHi8AY84XjFTfFphr+BPtfuj962Mfxhv/f7o/Qg41e5P3e4yzh1cw3g3PQ+d/qIebw6L0yL2BrO4TUAmJvDlQCQOk4jIyzE7B1IvClmQBvF4rM7Pn9UDSr1IA7lQLnJh/mfpr5u87x+JmNipXiZ0pf6JGR2SGOSknJkcIOf+mqRB6E/tlvaqjyiUcygntUvkQfTl0l4fG19OeSEv/WQ5h/5ycpgSUcYJOmmv/YsC6UcfhETaMyUyuRGTEzlSR6rYyuQk7aR9nhMnKRJlOblEHhumRMajdjuSSQNTpLzNlKTIec6UOkdZ3uI0bVJOLUqxwVneDvI5Y8NRO2dq+EmHsJlQO8u44eRM1Gwit9eImqMJtVptHnEptdpthrGUsJWROO31VkZju1KC9RZj0qDVjTbt2p3wynqL9qT76eq1c7xv/whdurZG+5P38oVLpwgO3Uvwy/P8h+MH6Kc/PU9w+ADDyZPhORnO+3V1qBNHF+befaf/qeKsAd5cdfDhQTtCJo7OP4wALwLgyHAmbFVK3omow38ov5z+nYm+rjaR1dpFJ+qdtIROUXf/dn6S6NigPiZMAuVJwdtZmkSD0+5MCp36OFn0atNxnqXJpjChbm901lWcNo23mJQ221j0Vx+DoFSoL01CJTzq+G+6Pz3truEV7keBV7/xem9dmhQ7k+Sm+1PIxf6YQVwzinvRmZLRO1j9LE4WfZ2MXEJhdTIM4uyA/CwvLl0+azjecY7BUYvT1mlTHzJxwl5WZube8kGfxN7q02L/3vlrrK9OUSNR1Sd2qh1+jtZ2Yfb0fYoWZD85+Fk1yHtb5FrKHcrMJG31W4LKez0lfdqPTiWUJDqHeSesGOo3E5KpOif2TlimNf2mEZyvfsOQz0He16sedd7yjSA6ahkqoZeVSL/hSCSln4yYUpGXiDxPCDBMtrmcQ5+YEOp1xu0soeYIUTtDBkcE7YRgVCJ7mWTaDO2U0KUErs3gMsJWSoAJY5IRJm1aWUt4d9Kka2mLfi9J+crKBt2ZjtFFibhHdhFcvEoaZY//muA97yEfWb/kMRny6Bn5Th5ZmAbgL5d/ZGSAU5jBowN/ZDy2+CdI9IVOZBsjRu/8isioiHy3Vt+JoMovp+Dgwrvl3x5dNiiWK8J1/HrNBE7eMgkk/FtTiXyLSDgsfGigpepDRFjMBTESlffAhXekE0F39ITZQ2Is1SPy5Tkl6onxdIw85dl1IdKOjkUND+siXm8x3mJccdkkjFsDJvU24VGp2qNAhYWW+uRX/cYRJ6Vof7i/NXs6TtPfF33fKpFxLcJX3yWhXFzOKGbbrvdFAlm9vwJDcR/jfRcvI99y/TKVk9A3Lv90vHYJBx9Ru+ANw2pF+OrunZn3p15OnbV/sP1yhX+cY2QrhosPF+fml028Xq33ztHXx2UWdfohYvZ2yGMW6oN8R79G2OqEfT8aWTNIJOsjVA6PKekZmSUylf6L/mLE7GeOUJ8H+wVR72T1rF8KNJL3zlPOib9Wp6zLNWHZJnXiDHW8GiE3QqQcrtNU2ucdeWmvc03KWU7sna30I+1zTjGhDHNOxRnnOSOKEw7LI5mcE9IlEmxyO8t9pAwZN9GxRM5Nl5Asm8i1RsxjKbV0eUSWSdqM4ynJWa83Wowhcga3m9dwg8ed49X1jHbvSfja6hrvkWWR1RHae4dfFrnDpfybxhodSBp8/p0mT0yN8Nl3xEmPMfz8NMMHxxh+cohg7t3ljzld/ti6o5antteOkJzg0XPfmHl9yMnAxAwBQ8AQMAS2gMDAtWTPWuSXb2hHyBYMs6aGgCFgCBgCHoGBjlqEwo4QcdZ/WgZu2B8ZDWxDwBAwBAyBG0dgKEcd1XfbETIs7fzGTbSWhoAhYAjsbASuy1HrmnUK35cgu4CN+TLk+MCgHxh3Nsw2ekPAEDAEbhyBoR21OekbB9laGgKGgCGwFQSGctS6VQ9hodIR8//mCT4yKHnTVoyztoaAIWAIGAJD/Jh48MjC0w7hS3UnvZLgA/3IL1OfWngA0lKrDOC3ch31ZsWHrve1XCtmZZCpOeXmaQogamK5V9Rf76bONivo8ZwN0LupWgqGOXzDYnwyntq4/PhySCHR81DHbTIufz8235aB9zc8fpthLQFUBkLp0KEj2VerrGehG0sWX0871sPJPmAApUMX8sgi1UDHxV0TCrUKBjnZ/xsO1dtud+pKchjlCv2eZi36dT+wnAGgJfuIlQod9WclG2WfcOxbPpTlEi8nZA45NgKdWj4EenVFPshtrAt9O1Ea96gw9mC9av9GwjAGgButkh2hL6Frw5qnc8djXSjb0vc6A+wCgBUApXGL2tAuketr3v4VXxdlAK4Aar3IpyzpO/clDZZ8zUr7vnKN7wCA37gGSyL9iwCwP2nwBWmQjDDAeSio4FJ2YYThIAD86gIDTAHAGVDSihyyLzoeZZq4lAlVXA7ZvKwMRLlQ2nhsUSYuFGoGfegbUXelkwMvnT0+O91Lsc+o1/iv8r+XDzJia/U9mImV3eR1hqH02L+dchCK21HDtl7elWEY+tBTj3tTK+/N8AvtC85HVV9kRnaqu9lb3lvvP5fbdcOjBEAHrxINvsqo7Dbe7jjHff5Djddb6h+RglbuU24MPd76/SmRk4Lijv5Y4G+/MunkSakzEwPzMDATA2OxGzPRUwaFeO5p5YGBqNQXz0uSYQQKeWD6KaPRMx19nZAHPYXdk2HC5xoz0TMmI8NQ+hRmYmQGCrcm0NbVpGCLWCB2KD3e08w9eabDTBR6j8gUtPAezETVr6QaTWei5JWuzEQh3QiPMLIElYHoWY9lZmLu6eYdhmMk1SgOwkxU1pkwDxlyR7kjUjIMCXNSyj0JRujiIceJMApDOREqazHjtkuomRG1EbnpiFrCTMS25PsoMRM9hRxcoJMXzMQGwdoGY42ZCOkYaS6QnszEm0Ah1z8TyGEBER4pO1Ee4KQ1R3WO3wX5E4JtOq4/10ePXBIl2nc910ekk2/O9dElR0g5Z0fIbVHkvpC3PeSa8E6nT64P1dMj10fB6BuQayRQ5Arm5s3K9RHcZCdHRzXXSpHbpORci/H+1nJ9xFQq1Zwq/vnolfulbHclt0mPXB/Kj1ZatjIHUdyRDqiU6yMw+LYj14f073OReLtirg8/i6hzCrk/Krk+CqZhj1wfkX5+y3N96KQxINdHyB0yMNcHCpOxk+sjy4kaW8j1sbbe4vEhc31MHbqXztzsXB+Vf3ypeum+KU+nphf+gAnESd9TavZD8N8Vy5kXurrwEvn7OupLkWYl8ood1rPHeXmlE5dp4iX6cSXCipaUEjP5onJWuFJkF20ogtda/5v0BMFaVrgyzT7aU8FHA63qzSmbVWWmSkqGChm803BIe4oGXSJTP+QO/b2CX2FmOZqXYK02/VdSsdRkS3BvYtz2uC8+DUA5f2J3nCvjKgBWWaViS3gXc2iIrw/JXzz9W5ygjzp9VO2/gknjQD+XhEMaIUfauOTZkJhXadxKjmfJhBd0SO6Mjj7NoaFxdL0+ZNjTHB7hs4TOwJ5+rZFjzNkR2opizdWh0TNX62NWv0jfZsm65xNSebq7fvX0OUAC/V0TImmWPdb8G6h2+OuCQh5yeMicVmQDDDR0oYVL5CsRc8y4p0tCIVeHxvRKV/f1nj6OnMVoWOniEn2H6FhydIT+1a5QL3k7JAGVLAtpwqUQQcdsfT6XR8iw5xxrDg9Z2gnZ/DQRU8yqp2fHuJ7Rikt4t0TUbo2xMUJXJKueS1mz6jXGfSQtGfUkm15zj6eQyxKJZNETCjmc1OfkhinksrODU1jQv+XqOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",borderProps={...props,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:400,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},borderComponentProps=transformToComponentProps(borderProps),borderEvents=["click"],_sfc_main$8=vue.defineComponent({name:"EcanBorder",props:{...borderComponentProps},setup(c){const u=usePickComponentStyle(c,["background"]),f=vue.computed(()=>{const{isTransparent:_,gradientShow:J,gradientColor:En,gradientOffset:gn,gradientAngle:w,backgroundColor:hn}=c;if(J){let vn=En;return _&&(vn="transparent"),vn?{background:`linear-gradient(${w}, ${hn}, ${vn} ${gn*100}%)`}:{}}else return{}}),h=vue.computed(()=>{const{events:_}=c;let J={};return _!=null&&_.length&&_.find(gn=>gn.emit==="showModal")&&(J={cursor:"pointer"}),J}),{theme:d}=vue.inject(GLOBAL_CONFIG,{theme:"light"}),v=vue.computed(()=>{let _="";switch(c.titleMode){case"type-2":_="2";break}return _}),p=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":__vite_glob_0_0,"../../assets/border-title-decoration-left2.png":__vite_glob_0_1})[`../../assets/border-title-decoration-left${v.value}.png`],self.location).href),m=vue.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":__vite_glob_1_0,"../../assets/border-title-decoration-right2.png":__vite_glob_1_1})[`../../assets/border-title-decoration-right${v.value}.png`],self.location).href),g=vue.computed(()=>({width:"100%",height:"100%"})),y=vue.computed(()=>{const{borderRadius:_}=c,J=[],En={};if(_){const gn=_.split(",");for(const w of gn)(+w||+w==0)&&J.push(+w+"px")}return J!=null&&J.length&&(En.borderRadius=J.join(" ")),En}),pn=useEmitEvent(c)("click",()=>{}),b=vue.ref([]);vue.watch(()=>c.data,_=>{b.value=_},{immediate:!0,deep:!0}),useOnEvent(c,{click:pn});const{setGlobalModel:re}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(_,J)=>{}});return re(c.id,{type:c.type,value:b}),{style:u,gradientStyle:f,click:pn,borderStyle:g,theme:d,borderRadiusStyle:y,titleLeftIcon:p,titleRightIcon:m,cursorStyle:h}}}),Border_vue_vue_type_style_index_0_scoped_8dd53b8f_lang="",_withScopeId$1=c=>(vue.pushScopeId("data-v-8dd53b8f"),c=c(),vue.popScopeId(),c),_hoisted_1$6=["id"],_hoisted_2$3=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_3$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_4$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_6$1={class:"title-item"},_hoisted_7$1=["src"],_hoisted_8$1={class:"title"},_hoisted_9$1=["src"],_hoisted_10$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-left border-item"},null,-1)),_hoisted_11$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"top-right border-item"},null,-1)),_hoisted_12$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),_hoisted_13$1=_withScopeId$1(()=>vue.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),_hoisted_14$1={key:2,class:"left-title"},_hoisted_15$1={class:"title"};function _sfc_render$a(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-border",style:vue.normalizeStyle({...c.style,...c.gradientStyle,...c.borderRadiusStyle,...c.cursorStyle}),onClick:u[0]||(u[0]=(...p)=>c.click&&c.click(...p)),id:"container_"+c.id},[c.mode==="no-title"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"no-title",style:vue.normalizeStyle(c.borderStyle)},[c.useBorderModify?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_hoisted_2$3,_hoisted_3$1,_hoisted_4$1,_hoisted_5$1],64)):vue.createCommentVNode("",!0)],4)):vue.createCommentVNode("",!0),c.mode==="top-title"?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"top-title",style:vue.normalizeStyle(c.borderStyle)},[vue.createElementVNode("div",{class:vue.normalizeClass(["title-item-wrapper",c.titleMode])},[vue.createElementVNode("div",_hoisted_6$1,[vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleLeftIcon},null,10,_hoisted_7$1),vue.createElementVNode("div",_hoisted_8$1,vue.toDisplayString(c.title),1),vue.createElementVNode("img",{class:vue.normalizeClass(["title-decoration",c.titleMode]),src:c.titleRightIcon},null,10,_hoisted_9$1)])],2),_hoisted_10$1,_hoisted_11$1,_hoisted_12$1,_hoisted_13$1],4)):vue.createCommentVNode("",!0),c.mode==="left-title"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14$1,[vue.createElementVNode("div",_hoisted_15$1,[vue.createElementVNode("span",null,vue.toDisplayString(c.title),1)])])):vue.createCommentVNode("",!0)],12,_hoisted_1$6)}const Border=_export_sfc$1(_sfc_main$8,[["render",_sfc_render$a],["__scopeId","data-v-8dd53b8f"]]),EcanBorder=withInstall$1(Border),tabsProps$1={...props,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px",isAutoScroll:!1,scrollSpeed:10,componentList:[],hideTabs:!1,gridTopPx:"0",gridBottomPx:"0",gridLeftPx:"0",gridRightPx:"0"},tabsComponentProps=transformToComponentProps(tabsProps$1),tabsEvents=["tabChange"],_sfc_main$7=vue.defineComponent({name:"EcanTabs",props:{...tabsComponentProps},components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption,MarqueeScroll},setup(c){const u=usePickComponentStyle(c),f=vue.ref(0);vue.watch(()=>c.activeKey,Vn=>{f.value=Vn},{immediate:!0});const{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.inject("getContainerMap",()=>{}),v=vue.inject("componentList",[]),p=["ecanBorder","ecanTabs","ecanCirculate"],m=vue.computed(()=>d()||{}),g=Vn=>{const Yn=vue.unref(m)[Vn],Gn=[];if(Yn)for(const Un in Yn)for(const Kn of Yn[Un]){const Hn=vue.unref(v).find(Qn=>Qn.id===Kn);Gn.push(Kn),p.includes(Hn==null?void 0:Hn.type)&&Gn.push(...g(Kn))}return Gn},y=vue.computed(()=>g(c.id));let x=null;const pn=()=>{const Vn=Array.isArray(vue.unref(re))?vue.unref(re).length-1:0;vue.unref(h)!=="design"&&!c.isAutoScroll&&c.autoSwitch&&Vn>0&&(x=setInterval(()=>{const Yn=vue.unref(f)+1;Yn<=Vn?f.value=Yn:f.value=0,_.value=vue.unref(re)[vue.unref(f)],w()},c.autoSwitchInterval*1e3))},b=()=>{clearInterval(x)};vue.onMounted(()=>{vue.unref(h)!=="design"&&pn()}),vue.onBeforeUnmount(()=>{b()});const re=vue.ref([]),_=vue.ref({});vue.watch(()=>c.data,Vn=>{re.value=Vn,_.value=Array.isArray(Vn)&&Vn.length>0?Vn[0]:{}},{immediate:!0,deep:!0});const J=Vn=>f.value===Vn,En=useEmitEvent(c),{setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{setGlobalModel:(Vn,Yn)=>{}});gn(c.id,{RECORD:vue.unref(_),value:vue.unref(_),activeKey:f});const{emitRefreshPage:w}=vue.inject(REFRESH_PAGE,{emitRefreshPage:()=>{}}),hn=Vn=>{let{tab:Yn,index:Gn}=Vn||{};if(Vn.label){const Un=vue.unref(re).findIndex(Kn=>Kn.title===Vn.label);Un!==-1&&(Gn=Un,Yn=vue.unref(re)[Un])}En("tabChange",()=>{!isNaN(+Gn)&&Gn!==vue.unref(f)&&(_.value=Yn,f.value=Gn,gn(c.id,{RECORD:Yn,value:Yn,activeKey:Gn}),w())})()},vn=vue.computed(()=>{const Vn=c.componentList.map(Yn=>parseFloat(Yn.left)+parseFloat(Yn.width)).sort((Yn,Gn)=>Gn-Yn)[0];return{width:Vn?Vn+"px":"100%"}}),Pn=()=>{vue.unref(h)!=="design"&&b()},Fn=Vn=>{var Yn,Gn;return Vn?(Gn=(Yn=Vn==null?void 0:Vn.parentNode)==null?void 0:Yn.className)!=null&&Gn.includes("ecan-")?Vn.parentNode.getAttribute("cpntid"):Fn(Vn.parentNode):""},zn=Vn=>{var Yn;if(vue.unref(h)!=="design"){const Gn=(Vn==null?void 0:Vn.toElement)||{};if((Yn=Gn==null?void 0:Gn.className)!=null&&Yn.includes("ecan-"))vue.unref(y).includes(Gn.getAttribute("cpntid"))||pn();else if((Gn==null?void 0:Gn.className)==="page-config")pn();else{const Un=Fn(Gn);vue.unref(y).includes(Un)||pn()}}};return useOnEvent(c,{tabChange:hn}),{style:u,activeKey:f,isActive:J,tabChange:hn,myData:re,useImagePath,pageMode:h,scrollWrapStyle:vn,onMouseEnter:Pn,onMouseLeave:zn}}}),Tabs_vue_vue_type_style_index_0_scoped_c936183e_lang="",_hoisted_1$5=["id"],_hoisted_2$2=["onClick"];function _sfc_render$9(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select"),g=vue.resolveComponent("marquee-scroll");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-tabs",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onMouseenter:u[0]||(u[0]=(...y)=>c.onMouseEnter&&c.onMouseEnter(...y)),onMouseleave:u[1]||(u[1]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y))},[c.pageMode==="design"||!c.isAutoScroll?vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:0,class:"tabs-header",style:vue.normalizeStyle({fontSize:c.tabFontSize,alignItems:c.tabAlignItems,justifyContent:c.tabJustifyContent,flexDirection:c.tabFlexDirection,margin:`${c.gridTopPx||0} ${c.gridRightPx||0} ${c.gridBottomPx||0} ${c.gridLeftPx||0}`})},[c.tabType==="tabs"?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createElementBlock("div",{class:"tab",style:vue.normalizeStyle({padding:`5px ${c.tabHorizontalPadding}`,color:c.isActive(x)?c.activeTabColor:c.tabColor,backgroundImage:c.isActive(x)?c.useImagePath(c.activeTabBackgroundImage,!0):c.useImagePath(c.tabBackgroundImage,!0),marginRight:c.tabFlexDirection==="row"?c.tabBarGutter:null,marginBottom:c.tabFlexDirection==="column"?c.tabBarGutter:null,fontWeight:c.tabFontWeight}),key:x,onClick:vue.withModifiers(pn=>c.tabChange({tab:y,index:x}),["prevent","stop"])},[vue.createElementVNode("div",{class:"tab-inner",style:vue.normalizeStyle({borderBottom:!c.activeTabBackgroundImage&&!c.tabBackgroundImage?`1px solid ${c.isActive(x)?c.activeTabColor:"transparent"}`:""})},vue.toDisplayString(y.title),5)],12,_hoisted_2$2))),128)):c.tabType==="select"?(vue.openBlock(),vue.createBlock(m,{key:1,value:c.activeKey,style:vue.normalizeStyle({width:c.tabWidth})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myData,(y,x)=>(vue.openBlock(),vue.createBlock(p,{key:x,value:x,onClick:pn=>c.tabChange({tab:y,index:x})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(y.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):vue.createCommentVNode("",!0)],4)),[[vue.vShow,c.pageMode==="design"||!c.hideTabs]]):vue.createCommentVNode("",!0),c.pageMode!=="design"&&c.isAutoScroll?(vue.openBlock(),vue.createBlock(g,{key:1,visible:c.isAutoScroll,step:c.scrollSpeed,vertical:!1,style:vue.normalizeStyle({height:c.height})},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.componentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","style"])):vue.createCommentVNode("",!0)],44,_hoisted_1$5)}const Tabs$1=_export_sfc$1(_sfc_main$7,[["render",_sfc_render$9],["__scopeId","data-v-c936183e"]]),EcanTabs=withInstall$1(Tabs$1),circulateProps={...props,name:"循环列表",type:"ecanCirculate",keyName:"循环列表",width:"300px",height:"300px",zIndex:0,borderColor:"#eee",borderStyle:"solid",borderWidth:"2px",graphicConfig:{},isAutoScroll:!1,scrollSpeed:10,componentList:[],data:[],dataType:"indicator",keyFieldMap:[],unitInterval:15,backgroundColor:"#ffffff",colNum:null,scrollDirection:"horizontal"},circulateComponentProps=transformToComponentProps(circulateProps),circulateEvents=["click","refreshData","resetRecord"];let nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,f)=>(f&=63,f<36?u+=f.toString(36):f<62?u+=(f-26).toString(36).toUpperCase():f>62?u+="-":u+="_",u),"");const _sfc_main$6=vue.defineComponent({name:"EcanCirculate",props:{...circulateComponentProps,sourceLeft:String,sourceTop:String,sourceWidth:Number},components:{MarqueeScroll,Skeleton},setup(c,{expose:u}){const f=vue.ref(!1),h=usePickComponentStyle(c,["background"]),d=vue.inject("usedComponentList",[]),v=vue.inject("isMobile",!1),{getGlobalModel:p,setGlobalModel:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Vn=>{},setGlobalModel:(Vn,Yn)=>{}}),g=vue.ref([]),y=vue.ref({}),{pageMode:x}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),pn=vue.computed(()=>{if(vue.unref(v)){const Vn=document.body.clientWidth,Yn=c.sourceWidth||parseFloat(c.width);return Vn/Yn||1}else return 1});function b(Vn,Yn){const Gn=Yn.find(Un=>Un.id===c.id);if(Gn)for(const Un of Vn)Un.left=parseFloat(Un.left)-parseFloat(Gn.sourceLeft||Gn.left)+"px",Un.top=parseFloat(Un.top)-parseFloat(Gn.sourceTop||Gn.top)+"px"}const re=Vn=>{const Yn=Vn.sort((Hn,Qn)=>parseFloat(Hn.top)-parseFloat(Qn.top))[0],Gn=Vn.sort((Hn,Qn)=>parseFloat(Hn.left)-parseFloat(Qn.left))[0],Un=Vn.map(Hn=>parseFloat(Hn.left)+parseFloat(Hn.width)).sort((Hn,Qn)=>Qn-Hn)[0],Kn=Vn.map(Hn=>parseFloat(Hn.top)+parseFloat(Hn.height)).sort((Hn,Qn)=>Qn-Hn)[0];if(Gn&&Un&&Yn&&Kn){const Hn=parseFloat(Gn.left),Qn=parseFloat(Yn.top);return{width:Un-Hn,height:Kn-Qn,left:Hn}}else return{width:0,height:0,left:0}},_=vue.ref({}),J=Vn=>{var Dn,er;const Yn=[],{graphicConfig:Gn,id:Un,componentList:Kn,keyFieldMap:Hn,unitInterval:Qn,colNum:Zn}=c;let Rn=lodashEs.cloneDeep(Kn),qn=[];if((Dn=vue.unref(d))!=null&&Dn.length)for(const Bn of vue.unref(d))qn.push(Bn),(er=Bn==null?void 0:Bn.componentList)!=null&&er.length&&qn.push(...Bn.componentList);if(Gn.pageMode==="design"&&Gn.preview){const{containerMap:Bn}=Gn.pageConfig||{};qn=Gn.componentList||[],qn.push(c),Rn=moveToComponentList(Bn,lodashEs.cloneDeep(qn),Un)}b(Rn,qn);const In=re(Rn);if(Vn!=null&&Vn.length){const{width:Bn,left:Jn,height:Xn}=In;let Wn=0,nr=0;Vn.forEach((ir,ar)=>{ir.index=ar+1;const or=nanoid(),tr=lodashEs.cloneDeep(Rn);for(const sr of tr){const cr=Hn.find(dr=>dr.keyName===sr.keyName),vr=nanoid();if(sr.left=(parseFloat(sr.left)+Wn)*vue.unref(pn)+"px",sr.top=(parseFloat(sr.top)+nr)*vue.unref(pn)+"px",sr.scale=vue.unref(pn),sr.id=vr,sr.keyName=sr.name+"_"+vr,sr.unitId=or,cr!=null&&cr.fieldName){const dr=sr.text.match(/\{(.+?)\}/g);switch(sr.type){case"ecanText":{sr.data={value:String(ir[cr.fieldName])},dr!=null&&dr.length||(sr.text="{value}");break}case"ecanProportion":{sr.data={percent:String(ir[cr.fieldName])},dr!=null&&dr.length||(sr.text="{percent}");break}}}}Zn&&ir.index%Zn===0?(Wn=0,nr+=Qn+Xn):Wn+=Qn+Bn,Yn.push(...tr),_.value[or]=ir}),y.value={width:((Zn||Vn.length)*(Bn+Qn)+Jn)*vue.unref(pn)+"px",height:(Zn?Math.ceil(Vn.length/Zn)*(Qn+Xn):Qn+Xn)*vue.unref(pn)+"px"}}g.value=Yn},En=Vn=>{var Gn;const{rows:Yn=[]}=((Gn=Vn==null?void 0:Vn.data)==null?void 0:Gn.data)??{};J(Yn)},gn=useIndicatorData(c,En),w=async()=>{try{f.value=!0;const Vn=await gn();En(Vn)}catch(Vn){console.error(Vn)}finally{f.value=!1}},hn=()=>{switch(c.dataType){case"indicator":w();break}};useOnEvent(c,{refreshData:hn,resetRecord:()=>{const Vn=c.id,Yn=p(Vn);m(Vn,{...Yn,RECORD:""})}}),u({refreshData:hn}),m(c.id,{type:c.type,RECORD:""});const{setRequest:Pn}=vue.inject(REQUEST_MODEL,{setRequest:Vn=>{}});typeof Pn=="function"&&Pn({id:c.id,requestFn:hn,sortNum:c.requestSort});const Fn=useEmitEvent(c);return{loading:f,style:h,myComponentList:g,scrollWrapStyle:y,pageMode:x,click:Vn=>{let Yn=Vn.target;if(Yn){let Gn=Yn.getAttribute("unitId");for(;!Gn&&!Yn.className.includes("ecan-");)Yn=Yn.parentElement,Gn=Yn.getAttribute("unitId");Gn&&Fn("click",()=>{const Un=p(c.id);m(c.id,{...Un,type:c.type,RECORD:vue.unref(_)[Gn]})})()}}}}}),Circulate_vue_vue_type_style_index_0_scoped_85608bec_lang="",_hoisted_1$4=["id"];function _sfc_render$8(c,u,f,h,d,v){const p=vue.resolveComponent("marquee-scroll"),m=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-circulate",style:vue.normalizeStyle(c.style),id:"container_"+c.id,onClick:u[0]||(u[0]=(...g)=>c.click&&c.click(...g))},[vue.createVNode(m,{loading:c.loading},{default:vue.withCtx(()=>{var g;return[(g=c.myComponentList)!=null&&g.length?(vue.openBlock(),vue.createBlock(p,{key:0,visible:c.pageMode!=="design"&&c.isAutoScroll,step:c.scrollSpeed,vertical:c.scrollDirection==="vertical",marqueeStyle:{height:"100%"},wrapStyle:{height:"100%",overflow:"auto"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.myComponentList,y=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.normalizeProps(vue.mergeProps({key:y.id},y)),null,16))),128))],4)]),_:1},8,["visible","step","vertical"])):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,_hoisted_1$4)}const Circulate=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$8],["__scopeId","data-v-85608bec"]]),EcanCirculate=withInstall$1(Circulate),templateProps={...props,name:"模板",type:"ecanTemplate",keyName:"模板",width:"300px",height:"300px",borderColor:"#eee",borderRadius:"5",borderWidth:"2px",borderStyle:"solid",pageId:""},templateComponentProps=transformToComponentProps(templateProps),templateEvents=["refreshData"],_sfc_main$5=vue.defineComponent({name:"EcanTemplate",props:{...templateComponentProps},components:{},setup(c){const u=usePickComponentStyle(c,["background"]),{templateEmit:f}=vue.inject("templateOperate",{templateEmit:(d,v)=>{}})||{};return useOnEvent(c,{refreshData:()=>{f("refreshTemplate",c.pageId)}}),{style:u}}});function _sfc_render$7(c,u,f,h,d,v){return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-template",style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default")],4)}const Template=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$7]]),EcanTemplate=withInstall$1(Template),imageProps={...props,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1,borderRadius:"",isAnimation:!1,animationSource:{name:"",directory:""},actionType:"link",isDrillShow:!1,targetTemplate:"",transParams:[]},imageComponentProps=transformToComponentProps(imageProps),imageEvents=["click"];var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(c,u){module.exports=u()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(u){_useWebWorker=!!u},getWebWorker=function(){return _useWebWorker},setLocationHref=function(u){locationHref=u},getLocationHref=function(){return locationHref};function createTag(c){return document.createElement(c)}function extendPrototype(c,u){var f,h=c.length,d;for(f=0;f<h;f+=1){d=c[f].prototype;for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(u.prototype[v]=d[v])}}function getDescriptor(c,u){return Object.getOwnPropertyDescriptor(c,u)}function createProxyFunction(c){function u(){}return u.prototype=c,u}var audioControllerFactory=function(){function c(u){this.audios=[],this.audioFactory=u,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(f){this.audios.push(f)},pause:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].pause()},resume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].resume()},setRate:function(f){var h,d=this.audios.length;for(h=0;h<d;h+=1)this.audios[h].setRate(f)},createAudio:function(f){return this.audioFactory?this.audioFactory(f):window.Howl?new window.Howl({src:[f]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(f){this.audioFactory=f},setVolume:function(f){this._volume=f,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var f,h=this.audios.length;for(f=0;f<h;f+=1)this.audios[f].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),createTypedArray=function(){function c(f,h){var d=0,v=[],p;switch(f){case"int16":case"uint8c":p=1;break;default:p=1.1;break}for(d=0;d<h;d+=1)v.push(p);return v}function u(f,h){return f==="float32"?new Float32Array(h):f==="int16"?new Int16Array(h):f==="uint8c"?new Uint8ClampedArray(h):c(f,h)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?u:c}();function createSizedArray(c){return Array.apply(null,{length:c})}function _typeof$6(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(f){return typeof f}:_typeof$6=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$6(c)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var c=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],u,f=c.length;for(u=0;u<f;u+=1)BMMath[c[u]]=Math[c[u]]})(),BMMath.random=Math.random,BMMath.abs=function(c){var u=_typeof$6(c);if(u==="object"&&c.length){var f=createSizedArray(c.length),h,d=c.length;for(h=0;h<d;h+=1)f[h]=Math.abs(c[h]);return f}return Math.abs(c)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(c){c.style.position="absolute",c.style.top=0,c.style.left=0,c.style.display="block",c.style.transformOrigin="0 0",c.style.webkitTransformOrigin="0 0",c.style.backfaceVisibility="visible",c.style.webkitBackfaceVisibility="visible",c.style.transformStyle="preserve-3d",c.style.webkitTransformStyle="preserve-3d",c.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(c,u,f,h){this.type=c,this.currentTime=u,this.totalTime=f,this.direction=h<0?-1:1}function BMCompleteEvent(c,u){this.type=c,this.direction=u<0?-1:1}function BMCompleteLoopEvent(c,u,f,h){this.type=c,this.currentLoop=f,this.totalLoops=u,this.direction=h<0?-1:1}function BMSegmentStartEvent(c,u,f){this.type=c,this.firstFrame=u,this.totalFrames=f}function BMDestroyEvent(c,u){this.type=c,this.target=u}function BMRenderFrameErrorEvent(c,u){this.type="renderFrameError",this.nativeError=c,this.currentTime=u}function BMConfigErrorEvent(c){this.type="configError",this.nativeError=c}var createElementID=function(){var c=0;return function(){return c+=1,idPrefix$1+"__lottie_element_"+c}}();function HSVtoRGB(c,u,f){var h,d,v,p,m,g,y,x;switch(p=Math.floor(c*6),m=c*6-p,g=f*(1-u),y=f*(1-m*u),x=f*(1-(1-m)*u),p%6){case 0:h=f,d=x,v=g;break;case 1:h=y,d=f,v=g;break;case 2:h=g,d=f,v=x;break;case 3:h=g,d=y,v=f;break;case 4:h=x,d=g,v=f;break;case 5:h=f,d=g,v=y;break}return[h,d,v]}function RGBtoHSV(c,u,f){var h=Math.max(c,u,f),d=Math.min(c,u,f),v=h-d,p,m=h===0?0:v/h,g=h/255;switch(h){case d:p=0;break;case c:p=u-f+v*(u<f?6:0),p/=6*v;break;case u:p=f-c+v*2,p/=6*v;break;case f:p=c-u+v*4,p/=6*v;break}return[p,m,g]}function addSaturationToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[1]+=u,f[1]>1?f[1]=1:f[1]<=0&&(f[1]=0),HSVtoRGB(f[0],f[1],f[2])}function addBrightnessToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[2]+=u,f[2]>1?f[2]=1:f[2]<0&&(f[2]=0),HSVtoRGB(f[0],f[1],f[2])}function addHueToRGB(c,u){var f=RGBtoHSV(c[0]*255,c[1]*255,c[2]*255);return f[0]+=u/360,f[0]>1?f[0]-=1:f[0]<0&&(f[0]+=1),HSVtoRGB(f[0],f[1],f[2])}var rgbToHex=function(){var c=[],u,f;for(u=0;u<256;u+=1)f=u.toString(16),c[u]=f.length===1?"0"+f:f;return function(h,d,v){return h<0&&(h=0),d<0&&(d=0),v<0&&(v=0),"#"+c[h]+c[d]+c[v]}}(),setSubframeEnabled=function(u){subframeEnabled=!!u},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(u){expressionsPlugin=u},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(u){expressionsInterfaces=u},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(u){defaultCurveSegments=u},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(u){idPrefix$1=u};function createNS(c){return document.createElementNS(svgNS,c)}function _typeof$5(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(f){return typeof f}:_typeof$5=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$5(c)}var dataManager=function(){var c=1,u=[],f,h,d={onmessage:function(){},postMessage:function(re){f({data:re})}},v={postMessage:function(re){d.onmessage({data:re})}};function p(b){if(window.Worker&&window.Blob&&getWebWorker()){var re=new Blob(["var _workerSelf = self; self.onmessage = ",b.toString()],{type:"text/javascript"}),_=URL.createObjectURL(re);return new Worker(_)}return f=b,d}function m(){h||(h=p(function(re){function _(){function En(Zn,Rn){var qn,In,Dn=Zn.length,er,Bn,Jn,Xn;for(In=0;In<Dn;In+=1)if(qn=Zn[In],"ks"in qn&&!qn.completed){if(qn.completed=!0,qn.hasMask){var Wn=qn.masksProperties;for(Bn=Wn.length,er=0;er<Bn;er+=1)if(Wn[er].pt.k.i)Pn(Wn[er].pt.k);else for(Xn=Wn[er].pt.k.length,Jn=0;Jn<Xn;Jn+=1)Wn[er].pt.k[Jn].s&&Pn(Wn[er].pt.k[Jn].s[0]),Wn[er].pt.k[Jn].e&&Pn(Wn[er].pt.k[Jn].e[0])}qn.ty===0?(qn.layers=hn(qn.refId,Rn),En(qn.layers,Rn)):qn.ty===4?vn(qn.shapes):qn.ty===5&&Hn(qn)}}function gn(Zn,Rn){if(Zn){var qn=0,In=Zn.length;for(qn=0;qn<In;qn+=1)Zn[qn].t===1&&(Zn[qn].data.layers=hn(Zn[qn].data.refId,Rn),En(Zn[qn].data.layers,Rn))}}function w(Zn,Rn){for(var qn=0,In=Rn.length;qn<In;){if(Rn[qn].id===Zn)return Rn[qn];qn+=1}return null}function hn(Zn,Rn){var qn=w(Zn,Rn);return qn?qn.layers.__used?JSON.parse(JSON.stringify(qn.layers)):(qn.layers.__used=!0,qn.layers):null}function vn(Zn){var Rn,qn=Zn.length,In,Dn;for(Rn=qn-1;Rn>=0;Rn-=1)if(Zn[Rn].ty==="sh")if(Zn[Rn].ks.k.i)Pn(Zn[Rn].ks.k);else for(Dn=Zn[Rn].ks.k.length,In=0;In<Dn;In+=1)Zn[Rn].ks.k[In].s&&Pn(Zn[Rn].ks.k[In].s[0]),Zn[Rn].ks.k[In].e&&Pn(Zn[Rn].ks.k[In].e[0]);else Zn[Rn].ty==="gr"&&vn(Zn[Rn].it)}function Pn(Zn){var Rn,qn=Zn.i.length;for(Rn=0;Rn<qn;Rn+=1)Zn.i[Rn][0]+=Zn.v[Rn][0],Zn.i[Rn][1]+=Zn.v[Rn][1],Zn.o[Rn][0]+=Zn.v[Rn][0],Zn.o[Rn][1]+=Zn.v[Rn][1]}function Fn(Zn,Rn){var qn=Rn?Rn.split("."):[100,100,100];return Zn[0]>qn[0]?!0:qn[0]>Zn[0]?!1:Zn[1]>qn[1]?!0:qn[1]>Zn[1]?!1:Zn[2]>qn[2]?!0:qn[2]>Zn[2]?!1:null}var zn=function(){var Zn=[4,4,14];function Rn(In){var Dn=In.t.d;In.t.d={k:[{s:Dn,t:0}]}}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===5&&Rn(In[Dn])}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Vn=function(){var Zn=[4,7,99];return function(Rn){if(Rn.chars&&!Fn(Zn,Rn.v)){var qn,In=Rn.chars.length;for(qn=0;qn<In;qn+=1){var Dn=Rn.chars[qn];Dn.data&&Dn.data.shapes&&(vn(Dn.data.shapes),Dn.data.ip=0,Dn.data.op=99999,Dn.data.st=0,Dn.data.sr=1,Dn.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Rn.chars[qn].t||(Dn.data.shapes.push({ty:"no"}),Dn.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Yn=function(){var Zn=[5,7,15];function Rn(In){var Dn=In.t.p;typeof Dn.a=="number"&&(Dn.a={a:0,k:Dn.a}),typeof Dn.p=="number"&&(Dn.p={a:0,k:Dn.p}),typeof Dn.r=="number"&&(Dn.r={a:0,k:Dn.r})}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===5&&Rn(In[Dn])}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Gn=function(){var Zn=[4,1,9];function Rn(In){var Dn,er=In.length,Bn,Jn;for(Dn=0;Dn<er;Dn+=1)if(In[Dn].ty==="gr")Rn(In[Dn].it);else if(In[Dn].ty==="fl"||In[Dn].ty==="st")if(In[Dn].c.k&&In[Dn].c.k[0].i)for(Jn=In[Dn].c.k.length,Bn=0;Bn<Jn;Bn+=1)In[Dn].c.k[Bn].s&&(In[Dn].c.k[Bn].s[0]/=255,In[Dn].c.k[Bn].s[1]/=255,In[Dn].c.k[Bn].s[2]/=255,In[Dn].c.k[Bn].s[3]/=255),In[Dn].c.k[Bn].e&&(In[Dn].c.k[Bn].e[0]/=255,In[Dn].c.k[Bn].e[1]/=255,In[Dn].c.k[Bn].e[2]/=255,In[Dn].c.k[Bn].e[3]/=255);else In[Dn].c.k[0]/=255,In[Dn].c.k[1]/=255,In[Dn].c.k[2]/=255,In[Dn].c.k[3]/=255}function qn(In){var Dn,er=In.length;for(Dn=0;Dn<er;Dn+=1)In[Dn].ty===4&&Rn(In[Dn].shapes)}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}(),Un=function(){var Zn=[4,4,18];function Rn(In){var Dn,er=In.length,Bn,Jn;for(Dn=er-1;Dn>=0;Dn-=1)if(In[Dn].ty==="sh")if(In[Dn].ks.k.i)In[Dn].ks.k.c=In[Dn].closed;else for(Jn=In[Dn].ks.k.length,Bn=0;Bn<Jn;Bn+=1)In[Dn].ks.k[Bn].s&&(In[Dn].ks.k[Bn].s[0].c=In[Dn].closed),In[Dn].ks.k[Bn].e&&(In[Dn].ks.k[Bn].e[0].c=In[Dn].closed);else In[Dn].ty==="gr"&&Rn(In[Dn].it)}function qn(In){var Dn,er,Bn=In.length,Jn,Xn,Wn,nr;for(er=0;er<Bn;er+=1){if(Dn=In[er],Dn.hasMask){var ir=Dn.masksProperties;for(Xn=ir.length,Jn=0;Jn<Xn;Jn+=1)if(ir[Jn].pt.k.i)ir[Jn].pt.k.c=ir[Jn].cl;else for(nr=ir[Jn].pt.k.length,Wn=0;Wn<nr;Wn+=1)ir[Jn].pt.k[Wn].s&&(ir[Jn].pt.k[Wn].s[0].c=ir[Jn].cl),ir[Jn].pt.k[Wn].e&&(ir[Jn].pt.k[Wn].e[0].c=ir[Jn].cl)}Dn.ty===4&&Rn(Dn.shapes)}}return function(In){if(Fn(Zn,In.v)&&(qn(In.layers),In.assets)){var Dn,er=In.assets.length;for(Dn=0;Dn<er;Dn+=1)In.assets[Dn].layers&&qn(In.assets[Dn].layers)}}}();function Kn(Zn){Zn.__complete||(Gn(Zn),zn(Zn),Vn(Zn),Yn(Zn),Un(Zn),En(Zn.layers,Zn.assets),gn(Zn.chars,Zn.assets),Zn.__complete=!0)}function Hn(Zn){Zn.t.a.length===0&&"m"in Zn.t.p}var Qn={};return Qn.completeData=Kn,Qn.checkColors=Gn,Qn.checkChars=Vn,Qn.checkPathProperties=Yn,Qn.checkShapes=Un,Qn.completeLayers=En,Qn}if(v.dataManager||(v.dataManager=_()),v.assetLoader||(v.assetLoader=function(){function En(w){var hn=w.getResponseHeader("content-type");return hn&&w.responseType==="json"&&hn.indexOf("json")!==-1||w.response&&_typeof$5(w.response)==="object"?w.response:w.response&&typeof w.response=="string"?JSON.parse(w.response):w.responseText?JSON.parse(w.responseText):null}function gn(w,hn,vn,Pn){var Fn,zn=new XMLHttpRequest;try{zn.responseType="json"}catch{}zn.onreadystatechange=function(){if(zn.readyState===4)if(zn.status===200)Fn=En(zn),vn(Fn);else try{Fn=En(zn),vn(Fn)}catch(Vn){Pn&&Pn(Vn)}};try{zn.open(["G","E","T"].join(""),w,!0)}catch{zn.open(["G","E","T"].join(""),hn+"/"+w,!0)}zn.send()}return{load:gn}}()),re.data.type==="loadAnimation")v.assetLoader.load(re.data.path,re.data.fullPath,function(En){v.dataManager.completeData(En),v.postMessage({id:re.data.id,payload:En,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})});else if(re.data.type==="complete"){var J=re.data.animation;v.dataManager.completeData(J),v.postMessage({id:re.data.id,payload:J,status:"success"})}else re.data.type==="loadData"&&v.assetLoader.load(re.data.path,re.data.fullPath,function(En){v.postMessage({id:re.data.id,payload:En,status:"success"})},function(){v.postMessage({id:re.data.id,status:"error"})})}),h.onmessage=function(b){var re=b.data,_=re.id,J=u[_];u[_]=null,re.status==="success"?J.onComplete(re.payload):J.onError&&J.onError()})}function g(b,re){c+=1;var _="processId_"+c;return u[_]={onComplete:b,onError:re},_}function y(b,re,_){m();var J=g(re,_);h.postMessage({type:"loadAnimation",path:b,fullPath:window.location.origin+window.location.pathname,id:J})}function x(b,re,_){m();var J=g(re,_);h.postMessage({type:"loadData",path:b,fullPath:window.location.origin+window.location.pathname,id:J})}function pn(b,re,_){m();var J=g(re,_);h.postMessage({type:"complete",animation:b,id:J})}return{loadAnimation:y,loadData:x,completeAnimation:pn}}(),ImagePreloader=function(){var c=function(){var gn=createTag("canvas");gn.width=1,gn.height=1;var w=gn.getContext("2d");return w.fillStyle="rgba(0,0,0,0)",w.fillRect(0,0,1,1),gn}();function u(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function f(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function h(gn,w,hn){var vn="";if(gn.e)vn=gn.p;else if(w){var Pn=gn.p;Pn.indexOf("images/")!==-1&&(Pn=Pn.split("/")[1]),vn=w+Pn}else vn=hn,vn+=gn.u?gn.u:"",vn+=gn.p;return vn}function d(gn){var w=0,hn=setInterval((function(){var vn=gn.getBBox();(vn.width||w>500)&&(this._imageLoaded(),clearInterval(hn)),w+=1}).bind(this),50)}function v(gn){var w=h(gn,this.assetsPath,this.path),hn=createNS("image");isSafari?this.testImageLoaded(hn):hn.addEventListener("load",this._imageLoaded,!1),hn.addEventListener("error",(function(){vn.img=c,this._imageLoaded()}).bind(this),!1),hn.setAttributeNS("http://www.w3.org/1999/xlink","href",w),this._elementHelper.append?this._elementHelper.append(hn):this._elementHelper.appendChild(hn);var vn={img:hn,assetData:gn};return vn}function p(gn){var w=h(gn,this.assetsPath,this.path),hn=createTag("img");hn.crossOrigin="anonymous",hn.addEventListener("load",this._imageLoaded,!1),hn.addEventListener("error",(function(){vn.img=c,this._imageLoaded()}).bind(this),!1),hn.src=w;var vn={img:hn,assetData:gn};return vn}function m(gn){var w={assetData:gn},hn=h(gn,this.assetsPath,this.path);return dataManager.loadData(hn,(function(vn){w.img=vn,this._footageLoaded()}).bind(this),(function(){w.img={},this._footageLoaded()}).bind(this)),w}function g(gn,w){this.imagesLoadedCb=w;var hn,vn=gn.length;for(hn=0;hn<vn;hn+=1)gn[hn].layers||(!gn[hn].t||gn[hn].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(gn[hn]))):gn[hn].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(gn[hn]))))}function y(gn){this.path=gn||""}function x(gn){this.assetsPath=gn||""}function pn(gn){for(var w=0,hn=this.images.length;w<hn;){if(this.images[w].assetData===gn)return this.images[w].img;w+=1}return null}function b(){this.imagesLoadedCb=null,this.images.length=0}function re(){return this.totalImages===this.loadedAssets}function _(){return this.totalFootages===this.loadedFootagesCount}function J(gn,w){gn==="svg"?(this._elementHelper=w,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function En(){this._imageLoaded=u.bind(this),this._footageLoaded=f.bind(this),this.testImageLoaded=d.bind(this),this.createFootageData=m.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return En.prototype={loadAssets:g,setAssetsPath:x,setPath:y,loadedImages:re,loadedFootages:_,destroy:b,getAsset:pn,createImgData:p,createImageData:v,imageLoaded:u,footageLoaded:f,setCacheType:J},En}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(u,f){if(this._cbs[u])for(var h=this._cbs[u],d=0;d<h.length;d+=1)h[d](f)},addEventListener:function(u,f){return this._cbs[u]||(this._cbs[u]=[]),this._cbs[u].push(f),(function(){this.removeEventListener(u,f)}).bind(this)},removeEventListener:function(u,f){if(!f)this._cbs[u]=null;else if(this._cbs[u]){for(var h=0,d=this._cbs[u].length;h<d;)this._cbs[u][h]===f&&(this._cbs[u].splice(h,1),h-=1,d-=1),h+=1;this._cbs[u].length||(this._cbs[u]=null)}}};var markerParser=function(){function c(u){for(var f=u.split(`\r
|
|
123
123
|
`),h={},d,v=0,p=0;p<f.length;p+=1)d=f[p].split(":"),d.length===2&&(h[d[0]]=d[1].trim(),v+=1);if(v===0)throw new Error;return h}return function(u){for(var f=[],h=0;h<u.length;h+=1){var d=u[h],v={time:d.tm,duration:d.dr};try{v.payload=JSON.parse(u[h].cm)}catch{try{v.payload=c(u[h].cm)}catch{v.payload={name:u[h].cm}}}f.push(v)}return f}}(),ProjectInterface=function(){function c(u){this.compositions.push(u)}return function(){function u(f){for(var h=0,d=this.compositions.length;h<d;){if(this.compositions[h].data&&this.compositions[h].data.nm===f)return this.compositions[h].prepareFrame&&this.compositions[h].data.xt&&this.compositions[h].prepareFrame(this.currentFrame),this.compositions[h].compInterface;h+=1}return null}return u.compositions=[],u.currentFrame=0,u.registerComposition=c,u}}(),renderers={},registerRenderer=function(u,f){renderers[u]=f};function getRenderer(c){return renderers[c]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var c in renderers)if(renderers[c])return c;return""}function _typeof$4(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(f){return typeof f}:_typeof$4=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$4(c)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var u="svg";c.animType?u=c.animType:c.renderer&&(u=c.renderer);var f=getRenderer(u);this.renderer=new f(this,c.rendererSettings),this.imagePreloader.setCacheType(u,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=u,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(c.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(c){dataManager.completeAnimation(c,this.configAnimation)},AnimationItem.prototype.setData=function(c,u){u&&_typeof$4(u)!=="object"&&(u=JSON.parse(u));var f={wrapper:c,animationData:u},h=c.attributes;f.path=h.getNamedItem("data-animation-path")?h.getNamedItem("data-animation-path").value:h.getNamedItem("data-bm-path")?h.getNamedItem("data-bm-path").value:h.getNamedItem("bm-path")?h.getNamedItem("bm-path").value:"",f.animType=h.getNamedItem("data-anim-type")?h.getNamedItem("data-anim-type").value:h.getNamedItem("data-bm-type")?h.getNamedItem("data-bm-type").value:h.getNamedItem("bm-type")?h.getNamedItem("bm-type").value:h.getNamedItem("data-bm-renderer")?h.getNamedItem("data-bm-renderer").value:h.getNamedItem("bm-renderer")?h.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var d=h.getNamedItem("data-anim-loop")?h.getNamedItem("data-anim-loop").value:h.getNamedItem("data-bm-loop")?h.getNamedItem("data-bm-loop").value:h.getNamedItem("bm-loop")?h.getNamedItem("bm-loop").value:"";d==="false"?f.loop=!1:d==="true"?f.loop=!0:d!==""&&(f.loop=parseInt(d,10));var v=h.getNamedItem("data-anim-autoplay")?h.getNamedItem("data-anim-autoplay").value:h.getNamedItem("data-bm-autoplay")?h.getNamedItem("data-bm-autoplay").value:h.getNamedItem("bm-autoplay")?h.getNamedItem("bm-autoplay").value:!0;f.autoplay=v!=="false",f.name=h.getNamedItem("data-name")?h.getNamedItem("data-name").value:h.getNamedItem("data-bm-name")?h.getNamedItem("data-bm-name").value:h.getNamedItem("bm-name")?h.getNamedItem("bm-name").value:"";var p=h.getNamedItem("data-anim-prerender")?h.getNamedItem("data-anim-prerender").value:h.getNamedItem("data-bm-prerender")?h.getNamedItem("data-bm-prerender").value:h.getNamedItem("bm-prerender")?h.getNamedItem("bm-prerender").value:"";p==="false"&&(f.prerender=!1),f.path?this.setParams(f):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var u=this.animationData.layers,f,h=u.length,d=c.layers,v,p=d.length;for(v=0;v<p;v+=1)for(f=0;f<h;){if(u[f].id===d[v].id){u[f]=d[v];break}f+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(h=c.assets.length,f=0;f<h;f+=1)this.animationData.assets.push(c.assets[f]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(c){this.animationData=c;var u=getExpressionsPlugin();u&&u.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var u=c.shift();this.timeCompleted=u.time*this.frameRate;var f=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(f,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=markerParser(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(u){this.triggerConfigError(u)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=getExpressionsPlugin();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(c,u){var f=typeof c=="number"?c:void 0,h=typeof u=="number"?u:void 0;this.renderer.updateContainerSize(f,h)},AnimationItem.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},AnimationItem.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(c){for(var u,f=0;f<this.markers.length;f+=1)if(u=this.markers[f],u.payload&&u.payload.name===c)return u;return null},AnimationItem.prototype.goToAndStop=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&this.goToAndStop(d.time,!0)}else u?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(c,u,f){if(!(f&&this.name!==f)){var h=Number(c);if(isNaN(h)){var d=this.getMarkerData(c);d&&(d.duration?this.playSegments([d.time,d.time+d.duration],!0):this.goToAndStop(d.time,!0))}else this.goToAndStop(h,u,f);this.play()}},AnimationItem.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var u=this.currentRawFrame+c*this.frameModifier,f=!1;u>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(u>this.totalFrames?u%this.totalFrames:0)||(f=!0,u=this.totalFrames-1):u>=this.totalFrames?(this.playCount+=1,this.checkSegments(u%this.totalFrames)||(this.setCurrentRawFrameValue(u%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(u):u<0?this.checkSegments(u%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+u%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(f=!0,u=0)):this.setCurrentRawFrameValue(u),f&&(this.setCurrentRawFrameValue(u),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(c,u){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-u)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+u)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(c,u){var f=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?f=c:this.currentRawFrame+this.firstFrame>u&&(f=u-c)),this.firstFrame=c,this.totalFrames=u-c,this.timeCompleted=this.totalFrames,f!==-1&&this.goToAndStop(f,!0)},AnimationItem.prototype.playSegments=function(c,u){if(u&&(this.segments.length=0),_typeof$4(c[0])==="object"){var f,h=c.length;for(f=0;f<h;f+=1)this.segments.push(c[f])}else this.segments.push(c);this.segments.length&&u&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},AnimationItem.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(c){this.loop=c},AnimationItem.prototype.setVolume=function(c,u){u&&this.name!==u||this.audioController.setVolume(c)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},AnimationItem.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(c){var u="";if(c.e)u=c.p;else if(this.assetsPath){var f=c.p;f.indexOf("images/")!==-1&&(f=f.split("/")[1]),u=this.assetsPath+f}else u=this.path,u+=c.u?c.u:"",u+=c.p;return u},AnimationItem.prototype.getAssetData=function(c){for(var u=0,f=this.assets.length;u<f;){if(c===this.assets[u].id)return this.assets[u];u+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(c,u,f){try{var h=this.renderer.getElementByPath(c);h.updateDocumentData(u,f)}catch{}},AnimationItem.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new BMCompleteEvent(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new BMDestroyEvent(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(c,this))},AnimationItem.prototype.triggerRenderFrameError=function(c){var u=new BMRenderFrameErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)},AnimationItem.prototype.triggerConfigError=function(c){var u=new BMConfigErrorEvent(c,this.currentFrame);this.triggerEvent("error",u),this.onError&&this.onError.call(this,u)};var animationManager=function(){var c={},u=[],f=0,h=0,d=0,v=!0,p=!1;function m(Rn){for(var qn=0,In=Rn.target;qn<h;)u[qn].animation===In&&(u.splice(qn,1),qn-=1,h-=1,In.isPaused||pn()),qn+=1}function g(Rn,qn){if(!Rn)return null;for(var In=0;In<h;){if(u[In].elem===Rn&&u[In].elem!==null)return u[In].animation;In+=1}var Dn=new AnimationItem;return b(Dn,Rn),Dn.setData(Rn,qn),Dn}function y(){var Rn,qn=u.length,In=[];for(Rn=0;Rn<qn;Rn+=1)In.push(u[Rn].animation);return In}function x(){d+=1,Gn()}function pn(){d-=1}function b(Rn,qn){Rn.addEventListener("destroy",m),Rn.addEventListener("_active",x),Rn.addEventListener("_idle",pn),u.push({elem:qn,animation:Rn}),h+=1}function re(Rn){var qn=new AnimationItem;return b(qn,null),qn.setParams(Rn),qn}function _(Rn,qn){var In;for(In=0;In<h;In+=1)u[In].animation.setSpeed(Rn,qn)}function J(Rn,qn){var In;for(In=0;In<h;In+=1)u[In].animation.setDirection(Rn,qn)}function En(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.play(Rn)}function gn(Rn){var qn=Rn-f,In;for(In=0;In<h;In+=1)u[In].animation.advanceTime(qn);f=Rn,d&&!p?window.requestAnimationFrame(gn):v=!0}function w(Rn){f=Rn,window.requestAnimationFrame(gn)}function hn(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.pause(Rn)}function vn(Rn,qn,In){var Dn;for(Dn=0;Dn<h;Dn+=1)u[Dn].animation.goToAndStop(Rn,qn,In)}function Pn(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.stop(Rn)}function Fn(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.togglePause(Rn)}function zn(Rn){var qn;for(qn=h-1;qn>=0;qn-=1)u[qn].animation.destroy(Rn)}function Vn(Rn,qn,In){var Dn=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),er,Bn=Dn.length;for(er=0;er<Bn;er+=1)In&&Dn[er].setAttribute("data-bm-type",In),g(Dn[er],Rn);if(qn&&Bn===0){In||(In="svg");var Jn=document.getElementsByTagName("body")[0];Jn.innerText="";var Xn=createTag("div");Xn.style.width="100%",Xn.style.height="100%",Xn.setAttribute("data-bm-type",In),Jn.appendChild(Xn),g(Xn,Rn)}}function Yn(){var Rn;for(Rn=0;Rn<h;Rn+=1)u[Rn].animation.resize()}function Gn(){!p&&d&&v&&(window.requestAnimationFrame(w),v=!1)}function Un(){p=!0}function Kn(){p=!1,Gn()}function Hn(Rn,qn){var In;for(In=0;In<h;In+=1)u[In].animation.setVolume(Rn,qn)}function Qn(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.mute(Rn)}function Zn(Rn){var qn;for(qn=0;qn<h;qn+=1)u[qn].animation.unmute(Rn)}return c.registerAnimation=g,c.loadAnimation=re,c.setSpeed=_,c.setDirection=J,c.play=En,c.pause=hn,c.stop=Pn,c.togglePause=Fn,c.searchAnimations=Vn,c.resize=Yn,c.goToAndStop=vn,c.destroy=zn,c.freeze=Un,c.unfreeze=Kn,c.setVolume=Hn,c.mute=Qn,c.unmute=Zn,c.getRegisteredAnimations=y,c}(),BezierFactory=function(){var c={};c.getBezierEasing=f;var u={};function f(w,hn,vn,Pn,Fn){var zn=Fn||("bez_"+w+"_"+hn+"_"+vn+"_"+Pn).replace(/\./g,"p");if(u[zn])return u[zn];var Vn=new gn([w,hn,vn,Pn]);return u[zn]=Vn,Vn}var h=4,d=.001,v=1e-7,p=10,m=11,g=1/(m-1),y=typeof Float32Array=="function";function x(w,hn){return 1-3*hn+3*w}function pn(w,hn){return 3*hn-6*w}function b(w){return 3*w}function re(w,hn,vn){return((x(hn,vn)*w+pn(hn,vn))*w+b(hn))*w}function _(w,hn,vn){return 3*x(hn,vn)*w*w+2*pn(hn,vn)*w+b(hn)}function J(w,hn,vn,Pn,Fn){var zn,Vn,Yn=0;do Vn=hn+(vn-hn)/2,zn=re(Vn,Pn,Fn)-w,zn>0?vn=Vn:hn=Vn;while(Math.abs(zn)>v&&++Yn<p);return Vn}function En(w,hn,vn,Pn){for(var Fn=0;Fn<h;++Fn){var zn=_(hn,vn,Pn);if(zn===0)return hn;var Vn=re(hn,vn,Pn)-w;hn-=Vn/zn}return hn}function gn(w){this._p=w,this._mSampleValues=y?new Float32Array(m):new Array(m),this._precomputed=!1,this.get=this.get.bind(this)}return gn.prototype={get:function(hn){var vn=this._p[0],Pn=this._p[1],Fn=this._p[2],zn=this._p[3];return this._precomputed||this._precompute(),vn===Pn&&Fn===zn?hn:hn===0?0:hn===1?1:re(this._getTForX(hn),Pn,zn)},_precompute:function(){var hn=this._p[0],vn=this._p[1],Pn=this._p[2],Fn=this._p[3];this._precomputed=!0,(hn!==vn||Pn!==Fn)&&this._calcSampleValues()},_calcSampleValues:function(){for(var hn=this._p[0],vn=this._p[2],Pn=0;Pn<m;++Pn)this._mSampleValues[Pn]=re(Pn*g,hn,vn)},_getTForX:function(hn){for(var vn=this._p[0],Pn=this._p[2],Fn=this._mSampleValues,zn=0,Vn=1,Yn=m-1;Vn!==Yn&&Fn[Vn]<=hn;++Vn)zn+=g;--Vn;var Gn=(hn-Fn[Vn])/(Fn[Vn+1]-Fn[Vn]),Un=zn+Gn*g,Kn=_(Un,vn,Pn);return Kn>=d?En(hn,Un,vn,Pn):Kn===0?Un:J(hn,zn,zn+g,vn,Pn)}},c}(),pooling=function(){function c(u){return u.concat(createSizedArray(u.length))}return{double:c}}(),poolFactory=function(){return function(c,u,f){var h=0,d=c,v=createSizedArray(d),p={newElement:m,release:g};function m(){var y;return h?(h-=1,y=v[h]):y=u(),y}function g(y){h===d&&(v=pooling.double(v),d*=2),f&&f(y),v[h]=y,h+=1}return p}}(),bezierLengthPool=function(){function c(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,c)}(),segmentsLengthPool=function(){function c(){return{lengths:[],totalLength:0}}function u(f){var h,d=f.lengths.length;for(h=0;h<d;h+=1)bezierLengthPool.release(f.lengths[h]);f.lengths.length=0}return poolFactory(8,c,u)}();function bezFunction(){var c=Math;function u(b,re,_,J,En,gn){var w=b*J+re*En+_*gn-En*J-gn*b-_*re;return w>-.001&&w<.001}function f(b,re,_,J,En,gn,w,hn,vn){if(_===0&&gn===0&&vn===0)return u(b,re,J,En,w,hn);var Pn=c.sqrt(c.pow(J-b,2)+c.pow(En-re,2)+c.pow(gn-_,2)),Fn=c.sqrt(c.pow(w-b,2)+c.pow(hn-re,2)+c.pow(vn-_,2)),zn=c.sqrt(c.pow(w-J,2)+c.pow(hn-En,2)+c.pow(vn-gn,2)),Vn;return Pn>Fn?Pn>zn?Vn=Pn-Fn-zn:Vn=zn-Fn-Pn:zn>Fn?Vn=zn-Fn-Pn:Vn=Fn-Pn-zn,Vn>-1e-4&&Vn<1e-4}var h=function(){return function(b,re,_,J){var En=getDefaultCurveSegments(),gn,w,hn,vn,Pn,Fn=0,zn,Vn=[],Yn=[],Gn=bezierLengthPool.newElement();for(hn=_.length,gn=0;gn<En;gn+=1){for(Pn=gn/(En-1),zn=0,w=0;w<hn;w+=1)vn=bmPow(1-Pn,3)*b[w]+3*bmPow(1-Pn,2)*Pn*_[w]+3*(1-Pn)*bmPow(Pn,2)*J[w]+bmPow(Pn,3)*re[w],Vn[w]=vn,Yn[w]!==null&&(zn+=bmPow(Vn[w]-Yn[w],2)),Yn[w]=Vn[w];zn&&(zn=bmSqrt(zn),Fn+=zn),Gn.percents[gn]=Pn,Gn.lengths[gn]=Fn}return Gn.addedLength=Fn,Gn}}();function d(b){var re=segmentsLengthPool.newElement(),_=b.c,J=b.v,En=b.o,gn=b.i,w,hn=b._length,vn=re.lengths,Pn=0;for(w=0;w<hn-1;w+=1)vn[w]=h(J[w],J[w+1],En[w],gn[w+1]),Pn+=vn[w].addedLength;return _&&hn&&(vn[w]=h(J[w],J[0],En[w],gn[0]),Pn+=vn[w].addedLength),re.totalLength=Pn,re}function v(b){this.segmentLength=0,this.points=new Array(b)}function p(b,re){this.partialLength=b,this.point=re}var m=function(){var b={};return function(re,_,J,En){var gn=(re[0]+"_"+re[1]+"_"+_[0]+"_"+_[1]+"_"+J[0]+"_"+J[1]+"_"+En[0]+"_"+En[1]).replace(/\./g,"p");if(!b[gn]){var w=getDefaultCurveSegments(),hn,vn,Pn,Fn,zn,Vn=0,Yn,Gn,Un=null;re.length===2&&(re[0]!==_[0]||re[1]!==_[1])&&u(re[0],re[1],_[0],_[1],re[0]+J[0],re[1]+J[1])&&u(re[0],re[1],_[0],_[1],_[0]+En[0],_[1]+En[1])&&(w=2);var Kn=new v(w);for(Pn=J.length,hn=0;hn<w;hn+=1){for(Gn=createSizedArray(Pn),zn=hn/(w-1),Yn=0,vn=0;vn<Pn;vn+=1)Fn=bmPow(1-zn,3)*re[vn]+3*bmPow(1-zn,2)*zn*(re[vn]+J[vn])+3*(1-zn)*bmPow(zn,2)*(_[vn]+En[vn])+bmPow(zn,3)*_[vn],Gn[vn]=Fn,Un!==null&&(Yn+=bmPow(Gn[vn]-Un[vn],2));Yn=bmSqrt(Yn),Vn+=Yn,Kn.points[hn]=new p(Yn,Gn),Un=Gn}Kn.segmentLength=Vn,b[gn]=Kn}return b[gn]}}();function g(b,re){var _=re.percents,J=re.lengths,En=_.length,gn=bmFloor((En-1)*b),w=b*re.addedLength,hn=0;if(gn===En-1||gn===0||w===J[gn])return _[gn];for(var vn=J[gn]>w?-1:1,Pn=!0;Pn;)if(J[gn]<=w&&J[gn+1]>w?(hn=(w-J[gn])/(J[gn+1]-J[gn]),Pn=!1):gn+=vn,gn<0||gn>=En-1){if(gn===En-1)return _[gn];Pn=!1}return _[gn]+(_[gn+1]-_[gn])*hn}function y(b,re,_,J,En,gn){var w=g(En,gn),hn=1-w,vn=c.round((hn*hn*hn*b[0]+(w*hn*hn+hn*w*hn+hn*hn*w)*_[0]+(w*w*hn+hn*w*w+w*hn*w)*J[0]+w*w*w*re[0])*1e3)/1e3,Pn=c.round((hn*hn*hn*b[1]+(w*hn*hn+hn*w*hn+hn*hn*w)*_[1]+(w*w*hn+hn*w*w+w*hn*w)*J[1]+w*w*w*re[1])*1e3)/1e3;return[vn,Pn]}var x=createTypedArray("float32",8);function pn(b,re,_,J,En,gn,w){En<0?En=0:En>1&&(En=1);var hn=g(En,w);gn=gn>1?1:gn;var vn=g(gn,w),Pn,Fn=b.length,zn=1-hn,Vn=1-vn,Yn=zn*zn*zn,Gn=hn*zn*zn*3,Un=hn*hn*zn*3,Kn=hn*hn*hn,Hn=zn*zn*Vn,Qn=hn*zn*Vn+zn*hn*Vn+zn*zn*vn,Zn=hn*hn*Vn+zn*hn*vn+hn*zn*vn,Rn=hn*hn*vn,qn=zn*Vn*Vn,In=hn*Vn*Vn+zn*vn*Vn+zn*Vn*vn,Dn=hn*vn*Vn+zn*vn*vn+hn*Vn*vn,er=hn*vn*vn,Bn=Vn*Vn*Vn,Jn=vn*Vn*Vn+Vn*vn*Vn+Vn*Vn*vn,Xn=vn*vn*Vn+Vn*vn*vn+vn*Vn*vn,Wn=vn*vn*vn;for(Pn=0;Pn<Fn;Pn+=1)x[Pn*4]=c.round((Yn*b[Pn]+Gn*_[Pn]+Un*J[Pn]+Kn*re[Pn])*1e3)/1e3,x[Pn*4+1]=c.round((Hn*b[Pn]+Qn*_[Pn]+Zn*J[Pn]+Rn*re[Pn])*1e3)/1e3,x[Pn*4+2]=c.round((qn*b[Pn]+In*_[Pn]+Dn*J[Pn]+er*re[Pn])*1e3)/1e3,x[Pn*4+3]=c.round((Bn*b[Pn]+Jn*_[Pn]+Xn*J[Pn]+Wn*re[Pn])*1e3)/1e3;return x}return{getSegmentsLength:d,getNewSegment:pn,getPointInSegment:y,buildBezierData:m,pointOnLine2D:u,pointOnLine3D:f}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(c,u){var f=this.offsetTime,h;this.propType==="multidimensional"&&(h=createTypedArray("float32",this.pv.length));for(var d=u.lastIndex,v=d,p=this.keyframes.length-1,m=!0,g,y,x;m;){if(g=this.keyframes[v],y=this.keyframes[v+1],v===p-1&&c>=y.t-f){g.h&&(g=y),d=0;break}if(y.t-f>c){d=v;break}v<p-1?v+=1:(d=0,m=!1)}x=this.keyframesMetadata[v]||{};var pn,b,re,_,J,En,gn=y.t-f,w=g.t-f,hn;if(g.to){x.bezierData||(x.bezierData=bez.buildBezierData(g.s,y.s||g.e,g.to,g.ti));var vn=x.bezierData;if(c>=gn||c<w){var Pn=c>=gn?vn.points.length-1:0;for(b=vn.points[Pn].point.length,pn=0;pn<b;pn+=1)h[pn]=vn.points[Pn].point[pn]}else{x.__fnct?En=x.__fnct:(En=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,x.__fnct=En),re=En((c-w)/(gn-w));var Fn=vn.segmentLength*re,zn,Vn=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastAddedLength:0;for(J=u.lastFrame<c&&u._lastKeyframeIndex===v?u._lastPoint:0,m=!0,_=vn.points.length;m;){if(Vn+=vn.points[J].partialLength,Fn===0||re===0||J===vn.points.length-1){for(b=vn.points[J].point.length,pn=0;pn<b;pn+=1)h[pn]=vn.points[J].point[pn];break}else if(Fn>=Vn&&Fn<Vn+vn.points[J+1].partialLength){for(zn=(Fn-Vn)/vn.points[J+1].partialLength,b=vn.points[J].point.length,pn=0;pn<b;pn+=1)h[pn]=vn.points[J].point[pn]+(vn.points[J+1].point[pn]-vn.points[J].point[pn])*zn;break}J<_-1?J+=1:m=!1}u._lastPoint=J,u._lastAddedLength=Vn-vn.points[J].partialLength,u._lastKeyframeIndex=v}}else{var Yn,Gn,Un,Kn,Hn;if(p=g.s.length,hn=y.s||g.e,this.sh&&g.h!==1)if(c>=gn)h[0]=hn[0],h[1]=hn[1],h[2]=hn[2];else if(c<=w)h[0]=g.s[0],h[1]=g.s[1],h[2]=g.s[2];else{var Qn=createQuaternion(g.s),Zn=createQuaternion(hn),Rn=(c-w)/(gn-w);quaternionToEuler(h,slerp(Qn,Zn,Rn))}else for(v=0;v<p;v+=1)g.h!==1&&(c>=gn?re=1:c<w?re=0:(g.o.x.constructor===Array?(x.__fnct||(x.__fnct=[]),x.__fnct[v]?En=x.__fnct[v]:(Yn=g.o.x[v]===void 0?g.o.x[0]:g.o.x[v],Gn=g.o.y[v]===void 0?g.o.y[0]:g.o.y[v],Un=g.i.x[v]===void 0?g.i.x[0]:g.i.x[v],Kn=g.i.y[v]===void 0?g.i.y[0]:g.i.y[v],En=BezierFactory.getBezierEasing(Yn,Gn,Un,Kn).get,x.__fnct[v]=En)):x.__fnct?En=x.__fnct:(Yn=g.o.x,Gn=g.o.y,Un=g.i.x,Kn=g.i.y,En=BezierFactory.getBezierEasing(Yn,Gn,Un,Kn).get,g.keyframeMetadata=En),re=En((c-w)/(gn-w)))),hn=y.s||g.e,Hn=g.h===1?g.s[v]:g.s[v]+(hn[v]-g.s[v])*re,this.propType==="multidimensional"?h[v]=Hn:h=Hn}return u.lastIndex=d,h}function slerp(c,u,f){var h=[],d=c[0],v=c[1],p=c[2],m=c[3],g=u[0],y=u[1],x=u[2],pn=u[3],b,re,_,J,En;return re=d*g+v*y+p*x+m*pn,re<0&&(re=-re,g=-g,y=-y,x=-x,pn=-pn),1-re>1e-6?(b=Math.acos(re),_=Math.sin(b),J=Math.sin((1-f)*b)/_,En=Math.sin(f*b)/_):(J=1-f,En=f),h[0]=J*d+En*g,h[1]=J*v+En*y,h[2]=J*p+En*x,h[3]=J*m+En*pn,h}function quaternionToEuler(c,u){var f=u[0],h=u[1],d=u[2],v=u[3],p=Math.atan2(2*h*v-2*f*d,1-2*h*h-2*d*d),m=Math.asin(2*f*h+2*d*v),g=Math.atan2(2*f*v-2*h*d,1-2*f*f-2*d*d);c[0]=p/degToRads,c[1]=m/degToRads,c[2]=g/degToRads}function createQuaternion(c){var u=c[0]*degToRads,f=c[1]*degToRads,h=c[2]*degToRads,d=Math.cos(u/2),v=Math.cos(f/2),p=Math.cos(h/2),m=Math.sin(u/2),g=Math.sin(f/2),y=Math.sin(h/2),x=d*v*p-m*g*y,pn=m*g*p+d*v*y,b=m*v*p+d*g*y,re=d*g*p-m*v*y;return[pn,b,re,x]}function getValueAtCurrentTime(){var c=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,f=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(c===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=f&&c>=f||this._caching.lastFrame<u&&c<u))){this._caching.lastFrame>=c&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var h=this.interpolateValue(c,this._caching);this.pv=h}return this._caching.lastFrame=c,this.pv}function setVValue(c){var u;if(this.propType==="unidimensional")u=c*this.mult,mathAbs(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var f=0,h=this.v.length;f<h;)u=c[f]*this.mult,mathAbs(this.v[f]-u)>1e-5&&(this.v[f]=u,this._mdf=!0),f+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var c,u=this.effectsSequence.length,f=this.kf?this.pv:this.data.k;for(c=0;c<u;c+=1)f=this.effectsSequence[c](f);this.setVValue(f),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(c){this.effectsSequence.push(c),this.container.addDynamicProperty(this)}function ValueProperty(c,u,f,h){this.propType="unidimensional",this.mult=f||1,this.data=u,this.v=f?u.k*f:u.k,this.pv=u.k,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(c,u,f,h){this.propType="multidimensional",this.mult=f||1,this.data=u,this._mdf=!1,this.elem=c,this.container=h,this.comp=c.comp,this.k=!1,this.kf=!1,this.frameId=-1;var d,v=u.k.length;for(this.v=createTypedArray("float32",v),this.pv=createTypedArray("float32",v),this.vel=createTypedArray("float32",v),d=0;d<v;d+=1)this.v[d]=u.k[d]*this.mult,this.pv[d]=u.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(c,u,f,h){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(c,u,f,h){this.propType="multidimensional";var d,v=u.k.length,p,m,g,y;for(d=0;d<v-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(p=u.k[d].s,m=u.k[d+1].s,g=u.k[d].to,y=u.k[d].ti,(p.length===2&&!(p[0]===m[0]&&p[1]===m[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],p[0]+g[0],p[1]+g[1])&&bez.pointOnLine2D(p[0],p[1],m[0],m[1],m[0]+y[0],m[1]+y[1])||p.length===3&&!(p[0]===m[0]&&p[1]===m[1]&&p[2]===m[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],p[0]+g[0],p[1]+g[1],p[2]+g[2])&&bez.pointOnLine3D(p[0],p[1],p[2],m[0],m[1],m[2],m[0]+y[0],m[1]+y[1],m[2]+y[2]))&&(u.k[d].to=null,u.k[d].ti=null),p[0]===m[0]&&p[1]===m[1]&&g[0]===0&&g[1]===0&&y[0]===0&&y[1]===0&&(p.length===2||p[2]===m[2]&&g[2]===0&&y[2]===0)&&(u.k[d].to=null,u.k[d].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=c.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=f||1,this.elem=c,this.container=h,this.comp=c.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var x=u.k[0].s.length;for(this.v=createTypedArray("float32",x),this.pv=createTypedArray("float32",x),d=0;d<x;d+=1)this.v[d]=initFrame,this.pv[d]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",x)},this.addEffect=addEffect}var PropertyFactory=function(){function c(f,h,d,v,p){h.sid&&(h=f.globalData.slotManager.getProp(h));var m;if(!h.k.length)m=new ValueProperty(f,h,v,p);else if(typeof h.k[0]=="number")m=new MultiDimensionalProperty(f,h,v,p);else switch(d){case 0:m=new KeyframedValueProperty(f,h,v,p);break;case 1:m=new KeyframedMultidimensionalProperty(f,h,v,p);break}return m.effectsSequence.length&&p.addDynamicProperty(m),m}var u={getProp:c};return u}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&(this.dynamicProperties.push(u),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var u,f=this.dynamicProperties.length;for(u=0;u<f;u+=1)this.dynamicProperties[u].getValue(),this.dynamicProperties[u]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(u){this.container=u,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function c(){return createTypedArray("float32",2)}return poolFactory(8,c)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(c,u){this.c=c,this.setLength(u);for(var f=0;f<u;)this.v[f]=pointPool.newElement(),this.o[f]=pointPool.newElement(),this.i[f]=pointPool.newElement(),f+=1},ShapePath.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(c,u,f,h,d){var v;switch(this._length=Math.max(this._length,h+1),this._length>=this._maxLength&&this.doubleArrayLength(),f){case"v":v=this.v;break;case"i":v=this.i;break;case"o":v=this.o;break;default:v=[];break}(!v[h]||v[h]&&!d)&&(v[h]=pointPool.newElement()),v[h][0]=c,v[h][1]=u},ShapePath.prototype.setTripleAt=function(c,u,f,h,d,v,p,m){this.setXYAt(c,u,"v",p,m),this.setXYAt(f,h,"o",p,m),this.setXYAt(d,v,"i",p,m)},ShapePath.prototype.reverse=function(){var c=new ShapePath;c.setPathData(this.c,this._length);var u=this.v,f=this.o,h=this.i,d=0;this.c&&(c.setTripleAt(u[0][0],u[0][1],h[0][0],h[0][1],f[0][0],f[0][1],0,!1),d=1);var v=this._length-1,p=this._length,m;for(m=d;m<p;m+=1)c.setTripleAt(u[v][0],u[v][1],h[v][0],h[v][1],f[v][0],f[v][1],m,!1),v-=1;return c},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function c(){return new ShapePath}function u(d){var v=d._length,p;for(p=0;p<v;p+=1)pointPool.release(d.v[p]),pointPool.release(d.i[p]),pointPool.release(d.o[p]),d.v[p]=null,d.i[p]=null,d.o[p]=null;d._length=0,d.c=!1}function f(d){var v=h.newElement(),p,m=d._length===void 0?d.v.length:d._length;for(v.setLength(m),v.c=d.c,p=0;p<m;p+=1)v.setTripleAt(d.v[p][0],d.v[p][1],d.o[p][0],d.o[p][1],d.i[p][0],d.i[p][1],p);return v}var h=poolFactory(4,c,u);return h.clone=f,h}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)shapePool.release(this.shapes[c]);this._length=0};var shapeCollectionPool=function(){var c={newShapeCollection:d,release:v},u=0,f=4,h=createSizedArray(f);function d(){var p;return u?(u-=1,p=h[u]):p=new ShapeCollection,p}function v(p){var m,g=p._length;for(m=0;m<g;m+=1)shapePool.release(p.shapes[m]);p._length=0,u===f&&(h=pooling.double(h),f*=2),h[u]=p,u+=1}return c}(),ShapePropertyFactory=function(){var c=-999999;function u(gn,w,hn){var vn=hn.lastIndex,Pn,Fn,zn,Vn,Yn,Gn,Un,Kn,Hn,Qn=this.keyframes;if(gn<Qn[0].t-this.offsetTime)Pn=Qn[0].s[0],zn=!0,vn=0;else if(gn>=Qn[Qn.length-1].t-this.offsetTime)Pn=Qn[Qn.length-1].s?Qn[Qn.length-1].s[0]:Qn[Qn.length-2].e[0],zn=!0;else{for(var Zn=vn,Rn=Qn.length-1,qn=!0,In,Dn,er;qn&&(In=Qn[Zn],Dn=Qn[Zn+1],!(Dn.t-this.offsetTime>gn));)Zn<Rn-1?Zn+=1:qn=!1;if(er=this.keyframesMetadata[Zn]||{},zn=In.h===1,vn=Zn,!zn){if(gn>=Dn.t-this.offsetTime)Kn=1;else if(gn<In.t-this.offsetTime)Kn=0;else{var Bn;er.__fnct?Bn=er.__fnct:(Bn=BezierFactory.getBezierEasing(In.o.x,In.o.y,In.i.x,In.i.y).get,er.__fnct=Bn),Kn=Bn((gn-(In.t-this.offsetTime))/(Dn.t-this.offsetTime-(In.t-this.offsetTime)))}Fn=Dn.s?Dn.s[0]:In.e[0]}Pn=In.s[0]}for(Gn=w._length,Un=Pn.i[0].length,hn.lastIndex=vn,Vn=0;Vn<Gn;Vn+=1)for(Yn=0;Yn<Un;Yn+=1)Hn=zn?Pn.i[Vn][Yn]:Pn.i[Vn][Yn]+(Fn.i[Vn][Yn]-Pn.i[Vn][Yn])*Kn,w.i[Vn][Yn]=Hn,Hn=zn?Pn.o[Vn][Yn]:Pn.o[Vn][Yn]+(Fn.o[Vn][Yn]-Pn.o[Vn][Yn])*Kn,w.o[Vn][Yn]=Hn,Hn=zn?Pn.v[Vn][Yn]:Pn.v[Vn][Yn]+(Fn.v[Vn][Yn]-Pn.v[Vn][Yn])*Kn,w.v[Vn][Yn]=Hn}function f(){var gn=this.comp.renderedFrame-this.offsetTime,w=this.keyframes[0].t-this.offsetTime,hn=this.keyframes[this.keyframes.length-1].t-this.offsetTime,vn=this._caching.lastFrame;return vn!==c&&(vn<w&&gn<w||vn>hn&&gn>hn)||(this._caching.lastIndex=vn<gn?this._caching.lastIndex:0,this.interpolateShape(gn,this.pv,this._caching)),this._caching.lastFrame=gn,this.pv}function h(){this.paths=this.localShapeCollection}function d(gn,w){if(gn._length!==w._length||gn.c!==w.c)return!1;var hn,vn=gn._length;for(hn=0;hn<vn;hn+=1)if(gn.v[hn][0]!==w.v[hn][0]||gn.v[hn][1]!==w.v[hn][1]||gn.o[hn][0]!==w.o[hn][0]||gn.o[hn][1]!==w.o[hn][1]||gn.i[hn][0]!==w.i[hn][0]||gn.i[hn][1]!==w.i[hn][1])return!1;return!0}function v(gn){d(this.v,gn)||(this.v=shapePool.clone(gn),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function p(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var gn;this.kf?gn=this.pv:this.data.ks?gn=this.data.ks.k:gn=this.data.pt.k;var w,hn=this.effectsSequence.length;for(w=0;w<hn;w+=1)gn=this.effectsSequence[w](gn);this.setVValue(gn),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function m(gn,w,hn){this.propType="shape",this.comp=gn.comp,this.container=gn,this.elem=gn,this.data=w,this.k=!1,this.kf=!1,this._mdf=!1;var vn=hn===3?w.pt.k:w.ks.k;this.v=shapePool.clone(vn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=h,this.effectsSequence=[]}function g(gn){this.effectsSequence.push(gn),this.container.addDynamicProperty(this)}m.prototype.interpolateShape=u,m.prototype.getValue=p,m.prototype.setVValue=v,m.prototype.addEffect=g;function y(gn,w,hn){this.propType="shape",this.comp=gn.comp,this.elem=gn,this.container=gn,this.offsetTime=gn.data.st,this.keyframes=hn===3?w.pt.k:w.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var vn=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,vn),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=h,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[f.bind(this)]}y.prototype.getValue=p,y.prototype.interpolateShape=u,y.prototype.setVValue=v,y.prototype.addEffect=g;var x=function(){var gn=roundCorner;function w(hn,vn){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=vn.d,this.elem=hn,this.comp=hn.comp,this.frameId=-1,this.initDynamicPropertyContainer(hn),this.p=PropertyFactory.getProp(hn,vn.p,1,0,this),this.s=PropertyFactory.getProp(hn,vn.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return w.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var vn=this.p.v[0],Pn=this.p.v[1],Fn=this.s.v[0]/2,zn=this.s.v[1]/2,Vn=this.d!==3,Yn=this.v;Yn.v[0][0]=vn,Yn.v[0][1]=Pn-zn,Yn.v[1][0]=Vn?vn+Fn:vn-Fn,Yn.v[1][1]=Pn,Yn.v[2][0]=vn,Yn.v[2][1]=Pn+zn,Yn.v[3][0]=Vn?vn-Fn:vn+Fn,Yn.v[3][1]=Pn,Yn.i[0][0]=Vn?vn-Fn*gn:vn+Fn*gn,Yn.i[0][1]=Pn-zn,Yn.i[1][0]=Vn?vn+Fn:vn-Fn,Yn.i[1][1]=Pn-zn*gn,Yn.i[2][0]=Vn?vn+Fn*gn:vn-Fn*gn,Yn.i[2][1]=Pn+zn,Yn.i[3][0]=Vn?vn-Fn:vn+Fn,Yn.i[3][1]=Pn+zn*gn,Yn.o[0][0]=Vn?vn+Fn*gn:vn-Fn*gn,Yn.o[0][1]=Pn-zn,Yn.o[1][0]=Vn?vn+Fn:vn-Fn,Yn.o[1][1]=Pn+zn*gn,Yn.o[2][0]=Vn?vn-Fn*gn:vn+Fn*gn,Yn.o[2][1]=Pn+zn,Yn.o[3][0]=Vn?vn-Fn:vn+Fn,Yn.o[3][1]=Pn-zn*gn}},extendPrototype([DynamicPropertyContainer],w),w}(),pn=function(){function gn(w,hn){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=w,this.comp=w.comp,this.data=hn,this.frameId=-1,this.d=hn.d,this.initDynamicPropertyContainer(w),hn.sy===1?(this.ir=PropertyFactory.getProp(w,hn.ir,0,0,this),this.is=PropertyFactory.getProp(w,hn.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(w,hn.pt,0,0,this),this.p=PropertyFactory.getProp(w,hn.p,1,0,this),this.r=PropertyFactory.getProp(w,hn.r,0,degToRads,this),this.or=PropertyFactory.getProp(w,hn.or,0,0,this),this.os=PropertyFactory.getProp(w,hn.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return gn.prototype={reset:h,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var hn=Math.floor(this.pt.v)*2,vn=Math.PI*2/hn,Pn=!0,Fn=this.or.v,zn=this.ir.v,Vn=this.os.v,Yn=this.is.v,Gn=2*Math.PI*Fn/(hn*2),Un=2*Math.PI*zn/(hn*2),Kn,Hn,Qn,Zn,Rn=-Math.PI/2;Rn+=this.r.v;var qn=this.data.d===3?-1:1;for(this.v._length=0,Kn=0;Kn<hn;Kn+=1){Hn=Pn?Fn:zn,Qn=Pn?Vn:Yn,Zn=Pn?Gn:Un;var In=Hn*Math.cos(Rn),Dn=Hn*Math.sin(Rn),er=In===0&&Dn===0?0:Dn/Math.sqrt(In*In+Dn*Dn),Bn=In===0&&Dn===0?0:-In/Math.sqrt(In*In+Dn*Dn);In+=+this.p.v[0],Dn+=+this.p.v[1],this.v.setTripleAt(In,Dn,In-er*Zn*Qn*qn,Dn-Bn*Zn*Qn*qn,In+er*Zn*Qn*qn,Dn+Bn*Zn*Qn*qn,Kn,!0),Pn=!Pn,Rn+=vn*qn}},convertPolygonToPath:function(){var hn=Math.floor(this.pt.v),vn=Math.PI*2/hn,Pn=this.or.v,Fn=this.os.v,zn=2*Math.PI*Pn/(hn*4),Vn,Yn=-Math.PI*.5,Gn=this.data.d===3?-1:1;for(Yn+=this.r.v,this.v._length=0,Vn=0;Vn<hn;Vn+=1){var Un=Pn*Math.cos(Yn),Kn=Pn*Math.sin(Yn),Hn=Un===0&&Kn===0?0:Kn/Math.sqrt(Un*Un+Kn*Kn),Qn=Un===0&&Kn===0?0:-Un/Math.sqrt(Un*Un+Kn*Kn);Un+=+this.p.v[0],Kn+=+this.p.v[1],this.v.setTripleAt(Un,Kn,Un-Hn*zn*Fn*Gn,Kn-Qn*zn*Fn*Gn,Un+Hn*zn*Fn*Gn,Kn+Qn*zn*Fn*Gn,Vn,!0),Yn+=vn*Gn}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],gn),gn}(),b=function(){function gn(w,hn){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=w,this.comp=w.comp,this.frameId=-1,this.d=hn.d,this.initDynamicPropertyContainer(w),this.p=PropertyFactory.getProp(w,hn.p,1,0,this),this.s=PropertyFactory.getProp(w,hn.s,1,0,this),this.r=PropertyFactory.getProp(w,hn.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return gn.prototype={convertRectToPath:function(){var hn=this.p.v[0],vn=this.p.v[1],Pn=this.s.v[0]/2,Fn=this.s.v[1]/2,zn=bmMin(Pn,Fn,this.r.v),Vn=zn*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(hn+Pn,vn-Fn+zn,hn+Pn,vn-Fn+zn,hn+Pn,vn-Fn+Vn,0,!0),this.v.setTripleAt(hn+Pn,vn+Fn-zn,hn+Pn,vn+Fn-Vn,hn+Pn,vn+Fn-zn,1,!0),zn!==0?(this.v.setTripleAt(hn+Pn-zn,vn+Fn,hn+Pn-zn,vn+Fn,hn+Pn-Vn,vn+Fn,2,!0),this.v.setTripleAt(hn-Pn+zn,vn+Fn,hn-Pn+Vn,vn+Fn,hn-Pn+zn,vn+Fn,3,!0),this.v.setTripleAt(hn-Pn,vn+Fn-zn,hn-Pn,vn+Fn-zn,hn-Pn,vn+Fn-Vn,4,!0),this.v.setTripleAt(hn-Pn,vn-Fn+zn,hn-Pn,vn-Fn+Vn,hn-Pn,vn-Fn+zn,5,!0),this.v.setTripleAt(hn-Pn+zn,vn-Fn,hn-Pn+zn,vn-Fn,hn-Pn+Vn,vn-Fn,6,!0),this.v.setTripleAt(hn+Pn-zn,vn-Fn,hn+Pn-Vn,vn-Fn,hn+Pn-zn,vn-Fn,7,!0)):(this.v.setTripleAt(hn-Pn,vn+Fn,hn-Pn+Vn,vn+Fn,hn-Pn,vn+Fn,2),this.v.setTripleAt(hn-Pn,vn-Fn,hn-Pn,vn-Fn+Vn,hn-Pn,vn-Fn,3))):(this.v.setTripleAt(hn+Pn,vn-Fn+zn,hn+Pn,vn-Fn+Vn,hn+Pn,vn-Fn+zn,0,!0),zn!==0?(this.v.setTripleAt(hn+Pn-zn,vn-Fn,hn+Pn-zn,vn-Fn,hn+Pn-Vn,vn-Fn,1,!0),this.v.setTripleAt(hn-Pn+zn,vn-Fn,hn-Pn+Vn,vn-Fn,hn-Pn+zn,vn-Fn,2,!0),this.v.setTripleAt(hn-Pn,vn-Fn+zn,hn-Pn,vn-Fn+zn,hn-Pn,vn-Fn+Vn,3,!0),this.v.setTripleAt(hn-Pn,vn+Fn-zn,hn-Pn,vn+Fn-Vn,hn-Pn,vn+Fn-zn,4,!0),this.v.setTripleAt(hn-Pn+zn,vn+Fn,hn-Pn+zn,vn+Fn,hn-Pn+Vn,vn+Fn,5,!0),this.v.setTripleAt(hn+Pn-zn,vn+Fn,hn+Pn-Vn,vn+Fn,hn+Pn-zn,vn+Fn,6,!0),this.v.setTripleAt(hn+Pn,vn+Fn-zn,hn+Pn,vn+Fn-zn,hn+Pn,vn+Fn-Vn,7,!0)):(this.v.setTripleAt(hn-Pn,vn-Fn,hn-Pn+Vn,vn-Fn,hn-Pn,vn-Fn,1,!0),this.v.setTripleAt(hn-Pn,vn+Fn,hn-Pn,vn+Fn-Vn,hn-Pn,vn+Fn,2,!0),this.v.setTripleAt(hn+Pn,vn+Fn,hn+Pn-Vn,vn+Fn,hn+Pn,vn+Fn,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:h},extendPrototype([DynamicPropertyContainer],gn),gn}();function re(gn,w,hn){var vn;if(hn===3||hn===4){var Pn=hn===3?w.pt:w.ks,Fn=Pn.k;Fn.length?vn=new y(gn,w,hn):vn=new m(gn,w,hn)}else hn===5?vn=new b(gn,w):hn===6?vn=new x(gn,w):hn===7&&(vn=new pn(gn,w));return vn.k&&gn.addDynamicProperty(vn),vn}function _(){return m}function J(){return y}var En={};return En.getShapeProp=re,En.getConstructorFunction=_,En.getKeyframedConstructorFunction=J,En}();/*!
|
|
124
124
|
Transformation Matrix v2.0
|
|
125
125
|
(c) Epistemex 2014-2015
|
|
@@ -128,7 +128,7 @@ version: 2.9.0
|
|
|
128
128
|
Contributions by leeoniya.
|
|
129
129
|
License: MIT, header required.
|
|
130
130
|
*/var Matrix=function(){var c=Math.cos,u=Math.sin,f=Math.tan,h=Math.round;function d(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function v(In){if(In===0)return this;var Dn=c(In),er=u(In);return this._t(Dn,-er,0,0,er,Dn,0,0,0,0,1,0,0,0,0,1)}function p(In){if(In===0)return this;var Dn=c(In),er=u(In);return this._t(1,0,0,0,0,Dn,-er,0,0,er,Dn,0,0,0,0,1)}function m(In){if(In===0)return this;var Dn=c(In),er=u(In);return this._t(Dn,0,er,0,0,1,0,0,-er,0,Dn,0,0,0,0,1)}function g(In){if(In===0)return this;var Dn=c(In),er=u(In);return this._t(Dn,-er,0,0,er,Dn,0,0,0,0,1,0,0,0,0,1)}function y(In,Dn){return this._t(1,Dn,In,1,0,0)}function x(In,Dn){return this.shear(f(In),f(Dn))}function pn(In,Dn){var er=c(Dn),Bn=u(Dn);return this._t(er,Bn,0,0,-Bn,er,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,f(In),1,0,0,0,0,1,0,0,0,0,1)._t(er,-Bn,0,0,Bn,er,0,0,0,0,1,0,0,0,0,1)}function b(In,Dn,er){return!er&&er!==0&&(er=1),In===1&&Dn===1&&er===1?this:this._t(In,0,0,0,0,Dn,0,0,0,0,er,0,0,0,0,1)}function re(In,Dn,er,Bn,Jn,Xn,Wn,nr,ir,ar,or,tr,sr,cr,vr,dr){return this.props[0]=In,this.props[1]=Dn,this.props[2]=er,this.props[3]=Bn,this.props[4]=Jn,this.props[5]=Xn,this.props[6]=Wn,this.props[7]=nr,this.props[8]=ir,this.props[9]=ar,this.props[10]=or,this.props[11]=tr,this.props[12]=sr,this.props[13]=cr,this.props[14]=vr,this.props[15]=dr,this}function _(In,Dn,er){return er=er||0,In!==0||Dn!==0||er!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,In,Dn,er,1):this}function J(In,Dn,er,Bn,Jn,Xn,Wn,nr,ir,ar,or,tr,sr,cr,vr,dr){var lr=this.props;if(In===1&&Dn===0&&er===0&&Bn===0&&Jn===0&&Xn===1&&Wn===0&&nr===0&&ir===0&&ar===0&&or===1&&tr===0)return lr[12]=lr[12]*In+lr[15]*sr,lr[13]=lr[13]*Xn+lr[15]*cr,lr[14]=lr[14]*or+lr[15]*vr,lr[15]*=dr,this._identityCalculated=!1,this;var ur=lr[0],fr=lr[1],mr=lr[2],yr=lr[3],br=lr[4],Sr=lr[5],Er=lr[6],wr=lr[7],kr=lr[8],Mr=lr[9],Ir=lr[10],Tr=lr[11],Fr=lr[12],Lr=lr[13],Or=lr[14],Nr=lr[15];return lr[0]=ur*In+fr*Jn+mr*ir+yr*sr,lr[1]=ur*Dn+fr*Xn+mr*ar+yr*cr,lr[2]=ur*er+fr*Wn+mr*or+yr*vr,lr[3]=ur*Bn+fr*nr+mr*tr+yr*dr,lr[4]=br*In+Sr*Jn+Er*ir+wr*sr,lr[5]=br*Dn+Sr*Xn+Er*ar+wr*cr,lr[6]=br*er+Sr*Wn+Er*or+wr*vr,lr[7]=br*Bn+Sr*nr+Er*tr+wr*dr,lr[8]=kr*In+Mr*Jn+Ir*ir+Tr*sr,lr[9]=kr*Dn+Mr*Xn+Ir*ar+Tr*cr,lr[10]=kr*er+Mr*Wn+Ir*or+Tr*vr,lr[11]=kr*Bn+Mr*nr+Ir*tr+Tr*dr,lr[12]=Fr*In+Lr*Jn+Or*ir+Nr*sr,lr[13]=Fr*Dn+Lr*Xn+Or*ar+Nr*cr,lr[14]=Fr*er+Lr*Wn+Or*or+Nr*vr,lr[15]=Fr*Bn+Lr*nr+Or*tr+Nr*dr,this._identityCalculated=!1,this}function En(In){var Dn=In.props;return this.transform(Dn[0],Dn[1],Dn[2],Dn[3],Dn[4],Dn[5],Dn[6],Dn[7],Dn[8],Dn[9],Dn[10],Dn[11],Dn[12],Dn[13],Dn[14],Dn[15])}function gn(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function w(In){for(var Dn=0;Dn<16;){if(In.props[Dn]!==this.props[Dn])return!1;Dn+=1}return!0}function hn(In){var Dn;for(Dn=0;Dn<16;Dn+=1)In.props[Dn]=this.props[Dn];return In}function vn(In){var Dn;for(Dn=0;Dn<16;Dn+=1)this.props[Dn]=In[Dn]}function Pn(In,Dn,er){return{x:In*this.props[0]+Dn*this.props[4]+er*this.props[8]+this.props[12],y:In*this.props[1]+Dn*this.props[5]+er*this.props[9]+this.props[13],z:In*this.props[2]+Dn*this.props[6]+er*this.props[10]+this.props[14]}}function Fn(In,Dn,er){return In*this.props[0]+Dn*this.props[4]+er*this.props[8]+this.props[12]}function zn(In,Dn,er){return In*this.props[1]+Dn*this.props[5]+er*this.props[9]+this.props[13]}function Vn(In,Dn,er){return In*this.props[2]+Dn*this.props[6]+er*this.props[10]+this.props[14]}function Yn(){var In=this.props[0]*this.props[5]-this.props[1]*this.props[4],Dn=this.props[5]/In,er=-this.props[1]/In,Bn=-this.props[4]/In,Jn=this.props[0]/In,Xn=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/In,Wn=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/In,nr=new Matrix;return nr.props[0]=Dn,nr.props[1]=er,nr.props[4]=Bn,nr.props[5]=Jn,nr.props[12]=Xn,nr.props[13]=Wn,nr}function Gn(In){var Dn=this.getInverseMatrix();return Dn.applyToPointArray(In[0],In[1],In[2]||0)}function Un(In){var Dn,er=In.length,Bn=[];for(Dn=0;Dn<er;Dn+=1)Bn[Dn]=Gn(In[Dn]);return Bn}function Kn(In,Dn,er){var Bn=createTypedArray("float32",6);if(this.isIdentity())Bn[0]=In[0],Bn[1]=In[1],Bn[2]=Dn[0],Bn[3]=Dn[1],Bn[4]=er[0],Bn[5]=er[1];else{var Jn=this.props[0],Xn=this.props[1],Wn=this.props[4],nr=this.props[5],ir=this.props[12],ar=this.props[13];Bn[0]=In[0]*Jn+In[1]*Wn+ir,Bn[1]=In[0]*Xn+In[1]*nr+ar,Bn[2]=Dn[0]*Jn+Dn[1]*Wn+ir,Bn[3]=Dn[0]*Xn+Dn[1]*nr+ar,Bn[4]=er[0]*Jn+er[1]*Wn+ir,Bn[5]=er[0]*Xn+er[1]*nr+ar}return Bn}function Hn(In,Dn,er){var Bn;return this.isIdentity()?Bn=[In,Dn,er]:Bn=[In*this.props[0]+Dn*this.props[4]+er*this.props[8]+this.props[12],In*this.props[1]+Dn*this.props[5]+er*this.props[9]+this.props[13],In*this.props[2]+Dn*this.props[6]+er*this.props[10]+this.props[14]],Bn}function Qn(In,Dn){if(this.isIdentity())return In+","+Dn;var er=this.props;return Math.round((In*er[0]+Dn*er[4]+er[12])*100)/100+","+Math.round((In*er[1]+Dn*er[5]+er[13])*100)/100}function Zn(){for(var In=0,Dn=this.props,er="matrix3d(",Bn=1e4;In<16;)er+=h(Dn[In]*Bn)/Bn,er+=In===15?")":",",In+=1;return er}function Rn(In){var Dn=1e4;return In<1e-6&&In>0||In>-1e-6&&In<0?h(In*Dn)/Dn:In}function qn(){var In=this.props,Dn=Rn(In[0]),er=Rn(In[1]),Bn=Rn(In[4]),Jn=Rn(In[5]),Xn=Rn(In[12]),Wn=Rn(In[13]);return"matrix("+Dn+","+er+","+Bn+","+Jn+","+Xn+","+Wn+")"}return function(){this.reset=d,this.rotate=v,this.rotateX=p,this.rotateY=m,this.rotateZ=g,this.skew=x,this.skewFromAxis=pn,this.shear=y,this.scale=b,this.setTransform=re,this.translate=_,this.transform=J,this.multiply=En,this.applyToPoint=Pn,this.applyToX=Fn,this.applyToY=zn,this.applyToZ=Vn,this.applyToPointArray=Hn,this.applyToTriplePoints=Kn,this.applyToPointStringified=Qn,this.toCSS=Zn,this.to2dCSS=qn,this.clone=hn,this.cloneFromProps=vn,this.equals=w,this.inversePoints=Un,this.inversePoint=Gn,this.getInverseMatrix=Yn,this._t=this.transform,this.isIdentity=gn,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(f){return typeof f}:_typeof$3=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$3(c)}var lottie={};function setLocation(c){setLocationHref(c)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(c){setSubframeEnabled(c)}function setPrefix(c){setIdPrefix(c)}function loadAnimation(c){return animationManager.loadAnimation(c)}function setQuality(c){if(typeof c=="string")switch(c){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(c)&&c>1&&setDefaultCurveSegments(c)}function inBrowser(){return typeof navigator<"u"}function installPlugin(c,u){c==="expressions"&&setExpressionsPlugin(u)}function getFactory(c){switch(c){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(c){for(var u=queryString.split("&"),f=0;f<u.length;f+=1){var h=u[f].split("=");if(decodeURIComponent(h[0])==c)return decodeURIComponent(h[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(c){}var ShapeModifiers=function(){var c={},u={};c.registerModifier=f,c.getModifier=h;function f(d,v){u[d]||(u[d]=v)}function h(d,v,p){return new u[d](v,p)}return c}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var u={shape:c.sh,data:c,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(u),this.addShapeToModifier(u),this._isAnimated&&c.setAsAnimated()}},ShapeModifier.prototype.init=function(c,u){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(c,u){this.s=PropertyFactory.getProp(c,u.s,0,.01,this),this.e=PropertyFactory.getProp(c,u.e,0,.01,this),this.o=PropertyFactory.getProp(c,u.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=u.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(c){c.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(c,u,f,h,d){var v=[];u<=1?v.push({s:c,e:u}):c>=1?v.push({s:c-1,e:u-1}):(v.push({s:c,e:1}),v.push({s:0,e:u-1}));var p=[],m,g=v.length,y;for(m=0;m<g;m+=1)if(y=v[m],!(y.e*d<h||y.s*d>h+f)){var x,pn;y.s*d<=h?x=0:x=(y.s*d-h)/f,y.e*d>=h+f?pn=1:pn=(y.e*d-h)/f,p.push([x,pn])}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(c){var u,f=c.length;for(u=0;u<f;u+=1)segmentsLengthPool.release(c[u]);return c.length=0,c},TrimModifier.prototype.processShapes=function(c){var u,f;if(this._mdf||c){var h=this.o.v%360/360;if(h<0&&(h+=1),this.s.v>1?u=1+h:this.s.v<0?u=0+h:u=this.s.v+h,this.e.v>1?f=1+h:this.e.v<0?f=0+h:f=this.e.v+h,u>f){var d=u;u=f,f=d}u=Math.round(u*1e4)*1e-4,f=Math.round(f*1e4)*1e-4,this.sValue=u,this.eValue=f}else u=this.sValue,f=this.eValue;var v,p,m=this.shapes.length,g,y,x,pn,b,re=0;if(f===u)for(p=0;p<m;p+=1)this.shapes[p].localShapeCollection.releaseShapes(),this.shapes[p].shape._mdf=!0,this.shapes[p].shape.paths=this.shapes[p].localShapeCollection,this._mdf&&(this.shapes[p].pathsData.length=0);else if(f===1&&u===0||f===0&&u===1){if(this._mdf)for(p=0;p<m;p+=1)this.shapes[p].pathsData.length=0,this.shapes[p].shape._mdf=!0}else{var _=[],J,En;for(p=0;p<m;p+=1)if(J=this.shapes[p],!J.shape._mdf&&!this._mdf&&!c&&this.m!==2)J.shape.paths=J.localShapeCollection;else{if(v=J.shape.paths,y=v._length,b=0,!J.shape._mdf&&J.pathsData.length)b=J.totalShapeLength;else{for(x=this.releasePathsData(J.pathsData),g=0;g<y;g+=1)pn=bez.getSegmentsLength(v.shapes[g]),x.push(pn),b+=pn.totalLength;J.totalShapeLength=b,J.pathsData=x}re+=b,J.shape._mdf=!0}var gn=u,w=f,hn=0,vn;for(p=m-1;p>=0;p-=1)if(J=this.shapes[p],J.shape._mdf){for(En=J.localShapeCollection,En.releaseShapes(),this.m===2&&m>1?(vn=this.calculateShapeEdges(u,f,J.totalShapeLength,hn,re),hn+=J.totalShapeLength):vn=[[gn,w]],y=vn.length,g=0;g<y;g+=1){gn=vn[g][0],w=vn[g][1],_.length=0,w<=1?_.push({s:J.totalShapeLength*gn,e:J.totalShapeLength*w}):gn>=1?_.push({s:J.totalShapeLength*(gn-1),e:J.totalShapeLength*(w-1)}):(_.push({s:J.totalShapeLength*gn,e:J.totalShapeLength}),_.push({s:0,e:J.totalShapeLength*(w-1)}));var Pn=this.addShapes(J,_[0]);if(_[0].s!==_[0].e){if(_.length>1){var Fn=J.shape.paths.shapes[J.shape.paths._length-1];if(Fn.c){var zn=Pn.pop();this.addPaths(Pn,En),Pn=this.addShapes(J,_[1],zn)}else this.addPaths(Pn,En),Pn=this.addShapes(J,_[1])}this.addPaths(Pn,En)}}J.shape.paths=En}}},TrimModifier.prototype.addPaths=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u.addShape(c[f])},TrimModifier.prototype.addSegment=function(c,u,f,h,d,v,p){d.setXYAt(u[0],u[1],"o",v),d.setXYAt(f[0],f[1],"i",v+1),p&&d.setXYAt(c[0],c[1],"v",v),d.setXYAt(h[0],h[1],"v",v+1)},TrimModifier.prototype.addSegmentFromArray=function(c,u,f,h){u.setXYAt(c[1],c[5],"o",f),u.setXYAt(c[2],c[6],"i",f+1),h&&u.setXYAt(c[0],c[4],"v",f),u.setXYAt(c[3],c[7],"v",f+1)},TrimModifier.prototype.addShapes=function(c,u,f){var h=c.pathsData,d=c.shape.paths.shapes,v,p=c.shape.paths._length,m,g,y=0,x,pn,b,re,_=[],J,En=!0;for(f?(pn=f._length,J=f._length):(f=shapePool.newElement(),pn=0,J=0),_.push(f),v=0;v<p;v+=1){for(b=h[v].lengths,f.c=d[v].c,g=d[v].c?b.length:b.length+1,m=1;m<g;m+=1)if(x=b[m-1],y+x.addedLength<u.s)y+=x.addedLength,f.c=!1;else if(y>u.e){f.c=!1;break}else u.s<=y&&u.e>=y+x.addedLength?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[m],d[v].v[m],f,pn,En),En=!1):(re=bez.getNewSegment(d[v].v[m-1],d[v].v[m],d[v].o[m-1],d[v].i[m],(u.s-y)/x.addedLength,(u.e-y)/x.addedLength,b[m-1]),this.addSegmentFromArray(re,f,pn,En),En=!1,f.c=!1),y+=x.addedLength,pn+=1;if(d[v].c&&b.length){if(x=b[m-1],y<=u.e){var gn=b[m-1].addedLength;u.s<=y&&u.e>=y+gn?(this.addSegment(d[v].v[m-1],d[v].o[m-1],d[v].i[0],d[v].v[0],f,pn,En),En=!1):(re=bez.getNewSegment(d[v].v[m-1],d[v].v[0],d[v].o[m-1],d[v].i[0],(u.s-y)/gn,(u.e-y)/gn,b[m-1]),this.addSegmentFromArray(re,f,pn,En),En=!1,f.c=!1)}else f.c=!1;y+=x.addedLength,pn+=1}if(f._length&&(f.setXYAt(f.v[J][0],f.v[J][1],"i",J),f.setXYAt(f.v[f._length-1][0],f.v[f._length-1][1],"o",f._length-1)),y>u.e)break;v<p-1&&(f=shapePool.newElement(),En=!0,_.push(f),pn=0)}return _};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(c,u){var f=u/100,h=[0,0],d=c._length,v=0;for(v=0;v<d;v+=1)h[0]+=c.v[v][0],h[1]+=c.v[v][1];h[0]/=d,h[1]/=d;var p=shapePool.newElement();p.c=c.c;var m,g,y,x,pn,b;for(v=0;v<d;v+=1)m=c.v[v][0]+(h[0]-c.v[v][0])*f,g=c.v[v][1]+(h[1]-c.v[v][1])*f,y=c.o[v][0]+(h[0]-c.o[v][0])*-f,x=c.o[v][1]+(h[1]-c.o[v][1])*-f,pn=c.i[v][0]+(h[0]-c.i[v][0])*-f,b=c.i[v][1]+(h[1]-c.i[v][1])*-f,p.setTripleAt(m,g,y,x,pn,b,v);return p},PuckerAndBloatModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var c=[0,0];function u(g){var y=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||y,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function f(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var y;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var x,pn;if(y=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(x=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/y,0),pn=this.p.getValueAtTime(this.p.keyframes[0].t/y,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(x=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/y,0),pn=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/y,0)):(x=this.p.pv,pn=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/y,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){x=[],pn=[];var b=this.px,re=this.py;b._caching.lastFrame+b.offsetTime<=b.keyframes[0].t?(x[0]=b.getValueAtTime((b.keyframes[0].t+.01)/y,0),x[1]=re.getValueAtTime((re.keyframes[0].t+.01)/y,0),pn[0]=b.getValueAtTime(b.keyframes[0].t/y,0),pn[1]=re.getValueAtTime(re.keyframes[0].t/y,0)):b._caching.lastFrame+b.offsetTime>=b.keyframes[b.keyframes.length-1].t?(x[0]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/y,0),x[1]=re.getValueAtTime(re.keyframes[re.keyframes.length-1].t/y,0),pn[0]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/y,0),pn[1]=re.getValueAtTime((re.keyframes[re.keyframes.length-1].t-.01)/y,0)):(x=[b.pv,re.pv],pn[0]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/y,b.offsetTime),pn[1]=re.getValueAtTime((re._caching.lastFrame+re.offsetTime-.01)/y,re.offsetTime))}else pn=c,x=pn;this.v.rotate(-Math.atan2(x[1]-pn[1],x[0]-pn[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function h(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function d(){}function v(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function p(g,y,x){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=y,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(x||g),y.p&&y.p.s?(this.px=PropertyFactory.getProp(g,y.p.x,0,0,this),this.py=PropertyFactory.getProp(g,y.p.y,0,0,this),y.p.z&&(this.pz=PropertyFactory.getProp(g,y.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,y.p||{k:[0,0,0]},1,0,this),y.rx){if(this.rx=PropertyFactory.getProp(g,y.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,y.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,y.rz,0,degToRads,this),y.or.k[0].ti){var pn,b=y.or.k.length;for(pn=0;pn<b;pn+=1)y.or.k[pn].to=null,y.or.k[pn].ti=null}this.or=PropertyFactory.getProp(g,y.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,y.r||{k:0},0,degToRads,this);y.sk&&(this.sk=PropertyFactory.getProp(g,y.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,y.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,y.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,y.s||{k:[100,100,100]},1,.01,this),y.o?this.o=PropertyFactory.getProp(g,y.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}p.prototype={applyToMatrix:u,getValue:f,precalculateMatrix:h,autoOrient:d},extendPrototype([DynamicPropertyContainer],p),p.prototype.addDynamicProperty=v,p.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function m(g,y,x){return new p(g,y,x)}return{getTransformProperty:m}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(c,u.c,0,null,this),this.o=PropertyFactory.getProp(c,u.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(c,u.tr,this),this.so=PropertyFactory.getProp(c,u.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(c,u.tr.eo,0,.01,this),this.data=u,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(c,u,f,h,d,v){var p=v?-1:1,m=h.s.v[0]+(1-h.s.v[0])*(1-d),g=h.s.v[1]+(1-h.s.v[1])*(1-d);c.translate(h.p.v[0]*p*d,h.p.v[1]*p*d,h.p.v[2]),u.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),u.rotate(-h.r.v*p*d),u.translate(h.a.v[0],h.a.v[1],h.a.v[2]),f.translate(-h.a.v[0],-h.a.v[1],h.a.v[2]),f.scale(v?1/m:m,v?1/g:g),f.translate(h.a.v[0],h.a.v[1],h.a.v[2])},RepeaterModifier.prototype.init=function(c,u,f,h){for(this.elem=c,this.arr=u,this.pos=f,this.elemsData=h,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,u[f]);f>0;)f-=1,this._elements.unshift(u[f]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u]._processed=!1,c[u].ty==="gr"&&this.resetElements(c[u].it)},RepeaterModifier.prototype.cloneElements=function(c){var u=JSON.parse(JSON.stringify(c));return this.resetElements(u),u},RepeaterModifier.prototype.changeGroupRender=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]._render=u,c[f].ty==="gr"&&this.changeGroupRender(c[f].it,u)},RepeaterModifier.prototype.processShapes=function(c){var u,f,h,d,v,p=!1;if(this._mdf||c){var m=Math.ceil(this.c.v);if(this._groups.length<m){for(;this._groups.length<m;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),p=!0}v=0;var y;for(h=0;h<=this._groups.length-1;h+=1){if(y=v<m,this._groups[h]._render=y,this.changeGroupRender(this._groups[h].it,y),!y){var x=this.elemsData[h].it,pn=x[x.length-1];pn.transform.op.v!==0?(pn.transform.op._mdf=!0,pn.transform.op.v=0):pn.transform.op._mdf=!1}v+=1}this._currentCopies=m;var b=this.o.v,re=b%1,_=b>0?Math.floor(b):Math.ceil(b),J=this.pMatrix.props,En=this.rMatrix.props,gn=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var w=0;if(b>0){for(;w<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,re,!1),w+=re)}else if(b<0){for(;w>_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;re&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-re,!0),w-=re)}h=this.data.m===1?0:this._currentCopies-1,d=this.data.m===1?1:-1,v=this._currentCopies;for(var hn,vn;v;){if(u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,vn=f.length,u[u.length-1].transform.mProps._mdf=!0,u[u.length-1].transform.op._mdf=!0,u[u.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(h/(this._currentCopies-1)),w!==0){for((h!==0&&d===1||h!==this._currentCopies-1&&d===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(En[0],En[1],En[2],En[3],En[4],En[5],En[6],En[7],En[8],En[9],En[10],En[11],En[12],En[13],En[14],En[15]),this.matrix.transform(gn[0],gn[1],gn[2],gn[3],gn[4],gn[5],gn[6],gn[7],gn[8],gn[9],gn[10],gn[11],gn[12],gn[13],gn[14],gn[15]),this.matrix.transform(J[0],J[1],J[2],J[3],J[4],J[5],J[6],J[7],J[8],J[9],J[10],J[11],J[12],J[13],J[14],J[15]),hn=0;hn<vn;hn+=1)f[hn]=this.matrix.props[hn];this.matrix.reset()}else for(this.matrix.reset(),hn=0;hn<vn;hn+=1)f[hn]=this.matrix.props[hn];w+=1,v-=1,h+=d}}else for(v=this._currentCopies,h=0,d=1;v;)u=this.elemsData[h].it,f=u[u.length-1].transform.mProps.v.props,u[u.length-1].transform.mProps._mdf=!1,u[u.length-1].transform.op._mdf=!1,v-=1,h+=d;return p},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(c,u.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(c,u){var f=shapePool.newElement();f.c=c.c;var h,d=c._length,v,p,m,g,y,x,pn=0,b,re,_,J,En,gn;for(h=0;h<d;h+=1)v=c.v[h],m=c.o[h],p=c.i[h],v[0]===m[0]&&v[1]===m[1]&&v[0]===p[0]&&v[1]===p[1]?(h===0||h===d-1)&&!c.c?(f.setTripleAt(v[0],v[1],m[0],m[1],p[0],p[1],pn),pn+=1):(h===0?g=c.v[d-1]:g=c.v[h-1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,En=v[0]+(g[0]-v[0])*x,b=En,gn=v[1]-(v[1]-g[1])*x,re=gn,_=b-(b-v[0])*roundCorner,J=re-(re-v[1])*roundCorner,f.setTripleAt(b,re,_,J,En,gn,pn),pn+=1,h===d-1?g=c.v[0]:g=c.v[h+1],y=Math.sqrt(Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)),x=y?Math.min(y/2,u)/y:0,_=v[0]+(g[0]-v[0])*x,b=_,J=v[1]+(g[1]-v[1])*x,re=J,En=b-(b-v[0])*roundCorner,gn=re-(re-v[1])*roundCorner,f.setTripleAt(b,re,_,J,En,gn,pn),pn+=1):(f.setTripleAt(c.v[h][0],c.v[h][1],c.o[h][0],c.o[h][1],c.i[h][0],c.i[h][1],pn),pn+=1);return f},RoundCornersModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.rd.v;if(p!==0){var m,g;for(f=0;f<h;f+=1){if(m=this.shapes[f],g=m.localShapeCollection,!(!m.shape._mdf&&!this._mdf&&!c))for(g.releaseShapes(),m.shape._mdf=!0,u=m.shape.paths.shapes,v=m.shape.paths._length,d=0;d<v;d+=1)g.addShape(this.processPath(u[d],p));m.shape.paths=m.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(c,u){return Math.abs(c-u)*1e5<=Math.min(Math.abs(c),Math.abs(u))}function floatZero(c){return Math.abs(c)<=1e-5}function lerp(c,u,f){return c*(1-f)+u*f}function lerpPoint(c,u,f){return[lerp(c[0],u[0],f),lerp(c[1],u[1],f)]}function quadRoots(c,u,f){if(c===0)return[];var h=u*u-4*c*f;if(h<0)return[];var d=-u/(2*c);if(h===0)return[d];var v=Math.sqrt(h)/(2*c);return[d-v,d+v]}function polynomialCoefficients(c,u,f,h){return[-c+3*u-3*f+h,3*c-6*u+3*f,-3*c+3*u,c]}function singlePoint(c){return new PolynomialBezier(c,c,c,c,!1)}function PolynomialBezier(c,u,f,h,d){d&&pointEqual(c,u)&&(u=lerpPoint(c,h,1/3)),d&&pointEqual(f,h)&&(f=lerpPoint(c,h,2/3));var v=polynomialCoefficients(c[0],u[0],f[0],h[0]),p=polynomialCoefficients(c[1],u[1],f[1],h[1]);this.a=[v[0],p[0]],this.b=[v[1],p[1]],this.c=[v[2],p[2]],this.d=[v[3],p[3]],this.points=[c,u,f,h]}PolynomialBezier.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},PolynomialBezier.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(c){var u=this.derivative(c);return Math.atan2(u[1],u[0])},PolynomialBezier.prototype.normalAngle=function(c){var u=this.derivative(c);return Math.atan2(u[0],u[1])},PolynomialBezier.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(c))return[];var u=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,f=u*u-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(f<0)return[];var h=Math.sqrt(f);return floatZero(h)?h>0&&h<1?[u]:[]:[u-h,u+h].filter(function(d){return d>0&&d<1})},PolynomialBezier.prototype.split=function(c){if(c<=0)return[singlePoint(this.points[0]),this];if(c>=1)return[this,singlePoint(this.points[this.points.length-1])];var u=lerpPoint(this.points[0],this.points[1],c),f=lerpPoint(this.points[1],this.points[2],c),h=lerpPoint(this.points[2],this.points[3],c),d=lerpPoint(u,f,c),v=lerpPoint(f,h,c),p=lerpPoint(d,v,c);return[new PolynomialBezier(this.points[0],u,d,p,!0),new PolynomialBezier(p,v,h,this.points[3],!0)]};function extrema(c,u){var f=c.points[0][u],h=c.points[c.points.length-1][u];if(f>h){var d=h;h=f,f=d}for(var v=quadRoots(3*c.a[u],2*c.b[u],c.c[u]),p=0;p<v.length;p+=1)if(v[p]>0&&v[p]<1){var m=c.point(v[p])[u];m<f?f=m:m>h&&(h=m)}return{min:f,max:h}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function intersectData(c,u,f){var h=c.boundingBox();return{cx:h.cx,cy:h.cy,width:h.width,height:h.height,bez:c,t:(u+f)/2,t1:u,t2:f}}function splitData(c){var u=c.bez.split(.5);return[intersectData(u[0],c.t1,c.t),intersectData(u[1],c.t,c.t2)]}function boxIntersect(c,u){return Math.abs(c.cx-u.cx)*2<c.width+u.width&&Math.abs(c.cy-u.cy)*2<c.height+u.height}function intersectsImpl(c,u,f,h,d,v){if(boxIntersect(c,u)){if(f>=v||c.width<=h&&c.height<=h&&u.width<=h&&u.height<=h){d.push([c.t,u.t]);return}var p=splitData(c),m=splitData(u);intersectsImpl(p[0],m[0],f+1,h,d,v),intersectsImpl(p[0],m[1],f+1,h,d,v),intersectsImpl(p[1],m[0],f+1,h,d,v),intersectsImpl(p[1],m[1],f+1,h,d,v)}}PolynomialBezier.prototype.intersections=function(c,u,f){u===void 0&&(u=2),f===void 0&&(f=7);var h=[];return intersectsImpl(intersectData(this,0,1),intersectData(c,0,1),0,u,h,f),h},PolynomialBezier.shapeSegment=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[u],c.o[u],c.i[f],c.v[f],!0)},PolynomialBezier.shapeSegmentInverted=function(c,u){var f=(u+1)%c.length();return new PolynomialBezier(c.v[f],c.i[f],c.o[u],c.v[u],!0)};function crossProduct(c,u){return[c[1]*u[2]-c[2]*u[1],c[2]*u[0]-c[0]*u[2],c[0]*u[1]-c[1]*u[0]]}function lineIntersection(c,u,f,h){var d=[c[0],c[1],1],v=[u[0],u[1],1],p=[f[0],f[1],1],m=[h[0],h[1],1],g=crossProduct(crossProduct(d,v),crossProduct(p,m));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(c,u,f){return[c[0]+Math.cos(u)*f,c[1]-Math.sin(u)*f]}function pointDistance(c,u){return Math.hypot(c[0]-u[0],c[1]-u[1])}function pointEqual(c,u){return floatEqual(c[0],u[0])&&floatEqual(c[1],u[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(c,u.s,0,null,this),this.frequency=PropertyFactory.getProp(c,u.r,0,null,this),this.pointsType=PropertyFactory.getProp(c,u.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(c,u,f,h,d,v,p){var m=f-Math.PI/2,g=f+Math.PI/2,y=u[0]+Math.cos(f)*h*d,x=u[1]-Math.sin(f)*h*d;c.setTripleAt(y,x,y+Math.cos(m)*v,x-Math.sin(m)*v,y+Math.cos(g)*p,x-Math.sin(g)*p,c.length())}function getPerpendicularVector(c,u){var f=[u[0]-c[0],u[1]-c[1]],h=-Math.PI*.5,d=[Math.cos(h)*f[0]-Math.sin(h)*f[1],Math.sin(h)*f[0]+Math.cos(h)*f[1]];return d}function getProjectingAngle(c,u){var f=u===0?c.length()-1:u-1,h=(u+1)%c.length(),d=c.v[f],v=c.v[h],p=getPerpendicularVector(d,v);return Math.atan2(0,1)-Math.atan2(p[1],p[0])}function zigZagCorner(c,u,f,h,d,v,p){var m=getProjectingAngle(u,f),g=u.v[f%u._length],y=u.v[f===0?u._length-1:f-1],x=u.v[(f+1)%u._length],pn=v===2?Math.sqrt(Math.pow(g[0]-y[0],2)+Math.pow(g[1]-y[1],2)):0,b=v===2?Math.sqrt(Math.pow(g[0]-x[0],2)+Math.pow(g[1]-x[1],2)):0;setPoint(c,u.v[f%u._length],m,p,h,b/((d+1)*2),pn/((d+1)*2))}function zigZagSegment(c,u,f,h,d,v){for(var p=0;p<h;p+=1){var m=(p+1)/(h+1),g=d===2?Math.sqrt(Math.pow(u.points[3][0]-u.points[0][0],2)+Math.pow(u.points[3][1]-u.points[0][1],2)):0,y=u.normalAngle(m),x=u.point(m);setPoint(c,x,y,v,f,g/((h+1)*2),g/((h+1)*2)),v=-v}return v}ZigZagModifier.prototype.processPath=function(c,u,f,h){var d=c._length,v=shapePool.newElement();if(v.c=c.c,c.c||(d-=1),d===0)return v;var p=-1,m=PolynomialBezier.shapeSegment(c,0);zigZagCorner(v,c,0,u,f,h,p);for(var g=0;g<d;g+=1)p=zigZagSegment(v,m,u,f,h,-p),g===d-1&&!c.c?m=null:m=PolynomialBezier.shapeSegment(c,(g+1)%d),zigZagCorner(v,c,g+1,u,f,h,p);return v},ZigZagModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amplitude.v,m=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,m,g));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(c,u,f){var h=Math.atan2(u[0]-c[0],u[1]-c[1]);return[polarOffset(c,h,f),polarOffset(u,h,f)]}function offsetSegment(c,u){var f,h,d,v,p,m,g;g=linearOffset(c.points[0],c.points[1],u),f=g[0],h=g[1],g=linearOffset(c.points[1],c.points[2],u),d=g[0],v=g[1],g=linearOffset(c.points[2],c.points[3],u),p=g[0],m=g[1];var y=lineIntersection(f,h,d,v);y===null&&(y=h);var x=lineIntersection(p,m,d,v);return x===null&&(x=p),new PolynomialBezier(f,y,x,m)}function joinLines(c,u,f,h,d){var v=u.points[3],p=f.points[0];if(h===3||pointEqual(v,p))return v;if(h===2){var m=-u.tangentAngle(1),g=-f.tangentAngle(0)+Math.PI,y=lineIntersection(v,polarOffset(v,m+Math.PI/2,100),p,polarOffset(p,m+Math.PI/2,100)),x=y?pointDistance(y,v):pointDistance(v,p)/2,pn=polarOffset(v,m,2*x*roundCorner);return c.setXYAt(pn[0],pn[1],"o",c.length()-1),pn=polarOffset(p,g,2*x*roundCorner),c.setTripleAt(p[0],p[1],p[0],p[1],pn[0],pn[1],c.length()),p}var b=pointEqual(v,u.points[2])?u.points[0]:u.points[2],re=pointEqual(p,f.points[1])?f.points[3]:f.points[1],_=lineIntersection(b,v,p,re);return _&&pointDistance(_,v)<d?(c.setTripleAt(_[0],_[1],_[0],_[1],_[0],_[1],c.length()),_):v}function getIntersection(c,u){var f=c.intersections(u);return f.length&&floatEqual(f[0][0],1)&&f.shift(),f.length?f[0]:null}function pruneSegmentIntersection(c,u){var f=c.slice(),h=u.slice(),d=getIntersection(c[c.length-1],u[0]);return d&&(f[c.length-1]=c[c.length-1].split(d[0])[0],h[0]=u[0].split(d[1])[1]),c.length>1&&u.length>1&&(d=getIntersection(c[0],u[u.length-1]),d)?[[c[0].split(d[0])[0]],[u[u.length-1].split(d[1])[1]]]:[f,h]}function pruneIntersections(c){for(var u,f=1;f<c.length;f+=1)u=pruneSegmentIntersection(c[f-1],c[f]),c[f-1]=u[0],c[f]=u[1];return c.length>1&&(u=pruneSegmentIntersection(c[c.length-1],c[0]),c[c.length-1]=u[0],c[0]=u[1]),c}function offsetSegmentSplit(c,u){var f=c.inflectionPoints(),h,d,v,p;if(f.length===0)return[offsetSegment(c,u)];if(f.length===1||floatEqual(f[1],1))return v=c.split(f[0]),h=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(d,u)];v=c.split(f[0]),h=v[0];var m=(f[1]-f[0])/(1-f[0]);return v=v[1].split(m),p=v[0],d=v[1],[offsetSegment(h,u),offsetSegment(p,u),offsetSegment(d,u)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(c,u){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(c,u.a,0,null,this),this.miterLimit=PropertyFactory.getProp(c,u.ml,0,null,this),this.lineJoin=u.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(c,u,f,h){var d=shapePool.newElement();d.c=c.c;var v=c.length();c.c||(v-=1);var p,m,g,y=[];for(p=0;p<v;p+=1)g=PolynomialBezier.shapeSegment(c,p),y.push(offsetSegmentSplit(g,u));if(!c.c)for(p=v-1;p>=0;p-=1)g=PolynomialBezier.shapeSegmentInverted(c,p),y.push(offsetSegmentSplit(g,u));y=pruneIntersections(y);var x=null,pn=null;for(p=0;p<y.length;p+=1){var b=y[p];for(pn&&(x=joinLines(d,pn,b[0],f,h)),pn=b[b.length-1],m=0;m<b.length;m+=1)g=b[m],x&&pointEqual(g.points[0],x)?d.setXYAt(g.points[1][0],g.points[1][1],"o",d.length()-1):d.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],d.length()),d.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],d.length()),x=g.points[3]}return y.length&&joinLines(d,pn,y[0][0],f,h),d},OffsetPathModifier.prototype.processShapes=function(c){var u,f,h=this.shapes.length,d,v,p=this.amount.v,m=this.miterLimit.v,g=this.lineJoin;if(p!==0){var y,x;for(f=0;f<h;f+=1){if(y=this.shapes[f],x=y.localShapeCollection,!(!y.shape._mdf&&!this._mdf&&!c))for(x.releaseShapes(),y.shape._mdf=!0,u=y.shape.paths.shapes,v=y.shape.paths._length,d=0;d<v;d+=1)x.addShape(this.processPath(u[d],p,g,m));y.shape.paths=y.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(c){for(var u=c.fStyle?c.fStyle.split(" "):[],f="normal",h="normal",d=u.length,v,p=0;p<d;p+=1)switch(v=u[p].toLowerCase(),v){case"italic":h="italic";break;case"bold":f="700";break;case"black":f="900";break;case"medium":f="500";break;case"regular":case"normal":f="400";break;case"light":case"thin":f="200";break}return{style:h,weight:c.fWeight||f}}var FontManager=function(){var c=5e3,u={w:0,size:0,shapes:[],data:{shapes:[]}},f=[];f=f.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var h=127988,d=917631,v=917601,p=917626,m=65039,g=8205,y=127462,x=127487,pn=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function b(Rn){var qn=Rn.split(","),In,Dn=qn.length,er=[];for(In=0;In<Dn;In+=1)qn[In]!=="sans-serif"&&qn[In]!=="monospace"&&er.push(qn[In]);return er.join(",")}function re(Rn,qn){var In=createTag("span");In.setAttribute("aria-hidden",!0),In.style.fontFamily=qn;var Dn=createTag("span");Dn.innerText="giItT1WQy@!-/#",In.style.position="absolute",In.style.left="-10000px",In.style.top="-10000px",In.style.fontSize="300px",In.style.fontVariant="normal",In.style.fontStyle="normal",In.style.fontWeight="normal",In.style.letterSpacing="0",In.appendChild(Dn),document.body.appendChild(In);var er=Dn.offsetWidth;return Dn.style.fontFamily=b(Rn)+", "+qn,{node:Dn,w:er,parent:In}}function _(){var Rn,qn=this.fonts.length,In,Dn,er=qn;for(Rn=0;Rn<qn;Rn+=1)this.fonts[Rn].loaded?er-=1:this.fonts[Rn].fOrigin==="n"||this.fonts[Rn].origin===0?this.fonts[Rn].loaded=!0:(In=this.fonts[Rn].monoCase.node,Dn=this.fonts[Rn].monoCase.w,In.offsetWidth!==Dn?(er-=1,this.fonts[Rn].loaded=!0):(In=this.fonts[Rn].sansCase.node,Dn=this.fonts[Rn].sansCase.w,In.offsetWidth!==Dn&&(er-=1,this.fonts[Rn].loaded=!0)),this.fonts[Rn].loaded&&(this.fonts[Rn].sansCase.parent.parentNode.removeChild(this.fonts[Rn].sansCase.parent),this.fonts[Rn].monoCase.parent.parentNode.removeChild(this.fonts[Rn].monoCase.parent)));er!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(Rn,qn){var In=document.body&&qn?"svg":"canvas",Dn,er=getFontProperties(Rn);if(In==="svg"){var Bn=createNS("text");Bn.style.fontSize="100px",Bn.setAttribute("font-family",Rn.fFamily),Bn.setAttribute("font-style",er.style),Bn.setAttribute("font-weight",er.weight),Bn.textContent="1",Rn.fClass?(Bn.style.fontFamily="inherit",Bn.setAttribute("class",Rn.fClass)):Bn.style.fontFamily=Rn.fFamily,qn.appendChild(Bn),Dn=Bn}else{var Jn=new OffscreenCanvas(500,500).getContext("2d");Jn.font=er.style+" "+er.weight+" 100px "+Rn.fFamily,Dn=Jn}function Xn(Wn){return In==="svg"?(Dn.textContent=Wn,Dn.getComputedTextLength()):Dn.measureText(Wn).width}return{measureText:Xn}}function En(Rn,qn){if(!Rn){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=Rn.list;return}if(!document.body){this.isLoaded=!0,Rn.list.forEach(function(or){or.helper=J(or),or.cache={}}),this.fonts=Rn.list;return}var In=Rn.list,Dn,er=In.length,Bn=er;for(Dn=0;Dn<er;Dn+=1){var Jn=!0,Xn,Wn;if(In[Dn].loaded=!1,In[Dn].monoCase=re(In[Dn].fFamily,"monospace"),In[Dn].sansCase=re(In[Dn].fFamily,"sans-serif"),!In[Dn].fPath)In[Dn].loaded=!0,Bn-=1;else if(In[Dn].fOrigin==="p"||In[Dn].origin===3){if(Xn=document.querySelectorAll('style[f-forigin="p"][f-family="'+In[Dn].fFamily+'"], style[f-origin="3"][f-family="'+In[Dn].fFamily+'"]'),Xn.length>0&&(Jn=!1),Jn){var nr=createTag("style");nr.setAttribute("f-forigin",In[Dn].fOrigin),nr.setAttribute("f-origin",In[Dn].origin),nr.setAttribute("f-family",In[Dn].fFamily),nr.type="text/css",nr.innerText="@font-face {font-family: "+In[Dn].fFamily+"; font-style: normal; src: url('"+In[Dn].fPath+"');}",qn.appendChild(nr)}}else if(In[Dn].fOrigin==="g"||In[Dn].origin===1){for(Xn=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Wn=0;Wn<Xn.length;Wn+=1)Xn[Wn].href.indexOf(In[Dn].fPath)!==-1&&(Jn=!1);if(Jn){var ir=createTag("link");ir.setAttribute("f-forigin",In[Dn].fOrigin),ir.setAttribute("f-origin",In[Dn].origin),ir.type="text/css",ir.rel="stylesheet",ir.href=In[Dn].fPath,document.body.appendChild(ir)}}else if(In[Dn].fOrigin==="t"||In[Dn].origin===2){for(Xn=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Wn=0;Wn<Xn.length;Wn+=1)In[Dn].fPath===Xn[Wn].src&&(Jn=!1);if(Jn){var ar=createTag("link");ar.setAttribute("f-forigin",In[Dn].fOrigin),ar.setAttribute("f-origin",In[Dn].origin),ar.setAttribute("rel","stylesheet"),ar.setAttribute("href",In[Dn].fPath),qn.appendChild(ar)}}In[Dn].helper=J(In[Dn],qn),In[Dn].cache={},this.fonts.push(In[Dn])}Bn===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function gn(Rn){if(Rn){this.chars||(this.chars=[]);var qn,In=Rn.length,Dn,er=this.chars.length,Bn;for(qn=0;qn<In;qn+=1){for(Dn=0,Bn=!1;Dn<er;)this.chars[Dn].style===Rn[qn].style&&this.chars[Dn].fFamily===Rn[qn].fFamily&&this.chars[Dn].ch===Rn[qn].ch&&(Bn=!0),Dn+=1;Bn||(this.chars.push(Rn[qn]),er+=1)}}}function w(Rn,qn,In){for(var Dn=0,er=this.chars.length;Dn<er;){if(this.chars[Dn].ch===Rn&&this.chars[Dn].style===qn&&this.chars[Dn].fFamily===In)return this.chars[Dn];Dn+=1}return(typeof Rn=="string"&&Rn.charCodeAt(0)!==13||!Rn)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Rn,qn,In)),u}function hn(Rn,qn,In){var Dn=this.getFontByName(qn),er=Rn;if(!Dn.cache[er]){var Bn=Dn.helper;if(Rn===" "){var Jn=Bn.measureText("|"+Rn+"|"),Xn=Bn.measureText("||");Dn.cache[er]=(Jn-Xn)/100}else Dn.cache[er]=Bn.measureText(Rn)/100}return Dn.cache[er]*In}function vn(Rn){for(var qn=0,In=this.fonts.length;qn<In;){if(this.fonts[qn].fName===Rn)return this.fonts[qn];qn+=1}return this.fonts[0]}function Pn(Rn){var qn=0,In=Rn.charCodeAt(0);if(In>=55296&&In<=56319){var Dn=Rn.charCodeAt(1);Dn>=56320&&Dn<=57343&&(qn=(In-55296)*1024+Dn-56320+65536)}return qn}function Fn(Rn,qn){var In=Rn.toString(16)+qn.toString(16);return pn.indexOf(In)!==-1}function zn(Rn){return Rn===g}function Vn(Rn){return Rn===m}function Yn(Rn){var qn=Pn(Rn);return qn>=y&&qn<=x}function Gn(Rn){return Yn(Rn.substr(0,2))&&Yn(Rn.substr(2,2))}function Un(Rn){return f.indexOf(Rn)!==-1}function Kn(Rn,qn){var In=Pn(Rn.substr(qn,2));if(In!==h)return!1;var Dn=0;for(qn+=2;Dn<5;){if(In=Pn(Rn.substr(qn,2)),In<v||In>p)return!1;Dn+=1,qn+=2}return Pn(Rn.substr(qn,2))===d}function Hn(){this.isLoaded=!0}var Qn=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Qn.isModifier=Fn,Qn.isZeroWidthJoiner=zn,Qn.isFlagEmoji=Gn,Qn.isRegionalCode=Yn,Qn.isCombinedCharacter=Un,Qn.isRegionalFlag=Kn,Qn.isVariationSelector=Vn,Qn.BLACK_FLAG_CODE_POINT=h;var Zn={addChars:gn,addFonts:En,getCharData:w,getFontByName:vn,measureText:hn,checkLoadedFonts:_,setIsLoaded:Hn};return Qn.prototype=Zn,Qn}();function SlotManager(c){this.animationData=c}SlotManager.prototype.getProp=function(c){return this.animationData.slots&&this.animationData.slots[c.sid]?Object.assign(c,this.animationData.slots[c.sid].p):c};function slotFactory(c){return new SlotManager(c)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(u){this.renderableComponents.indexOf(u)===-1&&this.renderableComponents.push(u)},removeRenderableComponent:function(u){this.renderableComponents.indexOf(u)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(u),1)},prepareRenderableFrame:function(u){this.checkLayerLimits(u)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(u){this.data.ip-this.data.st<=u&&this.data.op-this.data.st>u?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var u,f=this.renderableComponents.length;for(u=0;u<f;u+=1)this.renderableComponents[u].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(u){return c[u]||""}}();function SliderEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function AngleEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function ColorEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function PointEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,1,0,f)}function LayerIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function MaskIndexEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function CheckboxEffect(c,u,f){this.p=PropertyFactory.getProp(u,c.v,0,0,f)}function NoValueEffect(){this.p={}}function EffectsManager(c,u){var f=c.ef||[];this.effectElements=[];var h,d=f.length,v;for(h=0;h<d;h+=1)v=new GroupEffect(f[h],u),this.effectElements.push(v)}function GroupEffect(c,u){this.init(c,u)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(c,u){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(u);var f,h=this.data.ef.length,d,v=this.data.ef;for(f=0;f<h;f+=1){switch(d=null,v[f].ty){case 0:d=new SliderEffect(v[f],u,this);break;case 1:d=new AngleEffect(v[f],u,this);break;case 2:d=new ColorEffect(v[f],u,this);break;case 3:d=new PointEffect(v[f],u,this);break;case 4:case 7:d=new CheckboxEffect(v[f],u,this);break;case 10:d=new LayerIndexEffect(v[f],u,this);break;case 11:d=new MaskIndexEffect(v[f],u,this);break;case 5:d=new EffectsManager(v[f],u);break;default:d=new NoValueEffect(v[f]);break}d&&this.effectElements.push(d)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var u=0,f=this.data.masksProperties.length;u<f;){if(this.data.masksProperties[u].mode!=="n"&&this.data.masksProperties[u].cl!==!1)return!0;u+=1}return!1},initExpressions:function(){var u=getExpressionInterfaces();if(u){var f=u("layer"),h=u("effects"),d=u("shape"),v=u("text"),p=u("comp");this.layerInterface=f(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var m=h.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(m),this.data.ty===0||this.data.xt?this.compInterface=p(this):this.data.ty===4?(this.layerInterface.shapeInterface=d(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=v(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var u=getBlendMode(this.data.bm),f=this.baseElement||this.layerElement;f.style["mix-blend-mode"]=u},initBaseData:function(u,f,h){this.globalData=f,this.comp=h,this.data=u,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(u,f){var h,d=this.dynamicProperties.length;for(h=0;h<d;h+=1)(f||this._isParent&&this.dynamicProperties[h].propType==="transform")&&(this.dynamicProperties[h].getValue(),this.dynamicProperties[h]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(u){this.dynamicProperties.indexOf(u)===-1&&this.dynamicProperties.push(u)}};function FootageElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.footageData=u.imageLoader.getAsset(this.assetData),this.initBaseData(c,u,f)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var c=getExpressionInterfaces();if(c){var u=c("footage");this.layerInterface=u(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(c,u,f){this.initFrame(),this.initRenderable(),this.assetData=u.getAssetData(c.refId),this.initBaseData(c,u,f),this._isPlaying=!1,this._canPlay=!1;var h=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(h),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var u=this.tm.v;this._currentTime=u}this._volume=this.lv.v[0];var f=this._volume*this._volumeMultiplier;this._previousVolume!==f&&(this._previousVolume=f,this.audio.volume(f))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(c){this.audio.rate(c)},AudioElement.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(c){var u,f=this.layers.length,h;for(this.completeLayers=!0,u=f-1;u>=0;u-=1)this.elements[u]||(h=this.layers[u],h.ip-h.st<=c-this.layers[u].st&&h.op-h.st>c-this.layers[u].st&&this.buildItem(u)),this.completeLayers=this.elements[u]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(c){return new AudioElement(c,this.globalData,this)},BaseRenderer.prototype.createFootage=function(c){return new FootageElement(c,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.buildItem(c);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(c){this.completeLayers=!1;var u,f=c.length,h,d=this.layers.length;for(u=0;u<f;u+=1)for(h=0;h<d;){if(this.layers[h].id===c[u].id){this.layers[h]=c[u];break}h+=1}},BaseRenderer.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(c,u,f){for(var h=this.elements,d=this.layers,v=0,p=d.length;v<p;)d[v].ind==u&&(!h[v]||h[v]===!0?(this.buildItem(v),this.addPendingElement(c)):(f.push(h[v]),h[v].setAsParent(),d[v].parent!==void 0?this.buildElementParenting(c,d[v].parent,f):c.setHierarchy(f))),v+=1},BaseRenderer.prototype.addPendingElement=function(c){this.pendingElements.push(c)},BaseRenderer.prototype.searchExtraCompositions=function(c){var u,f=c.length;for(u=0;u<f;u+=1)if(c[u].xt){var h=this.createComp(c[u]);h.initExpressions(),this.globalData.projectInterface.registerComposition(h)}},BaseRenderer.prototype.getElementById=function(c){var u,f=this.elements.length;for(u=0;u<f;u+=1)if(this.elements[u].data.ind===c)return this.elements[u];return null},BaseRenderer.prototype.getElementByPath=function(c){var u=c.shift(),f;if(typeof u=="number")f=this.elements[u];else{var h,d=this.elements.length;for(h=0;h<d;h+=1)if(this.elements[h].data.nm===u){f=this.elements[h];break}}return c.length===0?f:f.getElementByPath(c)},BaseRenderer.prototype.setupGlobalData=function(c,u){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(c),this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,u),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var u=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:u,localMat:u,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var u,f=this.finalTransform.mat,h=0,d=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;h<d;){if(this.hierarchy[h].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}h+=1}if(this.finalTransform._matMdf)for(u=this.finalTransform.mProp.v.props,f.cloneFromProps(u),h=0;h<d;h+=1)f.multiply(this.hierarchy[h].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var u=0,f=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;u<f;)this.localTransforms[u]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[u]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),u+=1;if(this.finalTransform._localMatMdf){var h=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(h),u=1;u<f;u+=1){var d=this.localTransforms[u].matrix;h.multiply(d)}h.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var v=this.finalTransform.localOpacity;for(u=0;u<f;u+=1)v*=this.localTransforms[u].opacity*.01;this.finalTransform.localOpacity=v}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var u=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(u.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var f=0,h=u.length;for(f=0;f<h;f+=1)this.localTransforms.push(u[f])}}},globalToLocal:function(u){var f=[];f.push(this.finalTransform);for(var h=!0,d=this.comp;h;)d.finalTransform?(d.data.hasMask&&f.splice(0,0,d.finalTransform),d=d.comp):h=!1;var v,p=f.length,m;for(v=0;v<p;v+=1)m=f[v].mat.applyToPointArray(0,0,0),u=[u[0]-m[0],u[1]-m[1],0];return u},mHelper:new Matrix};function MaskElement(c,u,f){this.data=c,this.element=u,this.globalData=f,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var h=this.globalData.defs,d,v=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(v),this.solidPath="";var p,m=this.masksProperties,g=0,y=[],x,pn,b=createElementID(),re,_,J,En,gn="clipPath",w="clip-path";for(d=0;d<v;d+=1)if((m[d].mode!=="a"&&m[d].mode!=="n"||m[d].inv||m[d].o.k!==100||m[d].o.x)&&(gn="mask",w="mask"),(m[d].mode==="s"||m[d].mode==="i")&&g===0?(re=createNS("rect"),re.setAttribute("fill","#ffffff"),re.setAttribute("width",this.element.comp.data.w||0),re.setAttribute("height",this.element.comp.data.h||0),y.push(re)):re=null,p=createNS("path"),m[d].mode==="n")this.viewData[d]={op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),elem:p,lastPath:""},h.appendChild(p);else{g+=1,p.setAttribute("fill",m[d].mode==="s"?"#000000":"#ffffff"),p.setAttribute("clip-rule","nonzero");var hn;if(m[d].x.k!==0?(gn="mask",w="mask",En=PropertyFactory.getProp(this.element,m[d].x,0,null,this.element),hn=createElementID(),_=createNS("filter"),_.setAttribute("id",hn),J=createNS("feMorphology"),J.setAttribute("operator","erode"),J.setAttribute("in","SourceGraphic"),J.setAttribute("radius","0"),_.appendChild(J),h.appendChild(_),p.setAttribute("stroke",m[d].mode==="s"?"#000000":"#ffffff")):(J=null,En=null),this.storedData[d]={elem:p,x:En,expan:J,lastPath:"",lastOperator:"",filterId:hn,lastRadius:0},m[d].mode==="i"){pn=y.length;var vn=createNS("g");for(x=0;x<pn;x+=1)vn.appendChild(y[x]);var Pn=createNS("mask");Pn.setAttribute("mask-type","alpha"),Pn.setAttribute("id",b+"_"+g),Pn.appendChild(p),h.appendChild(Pn),vn.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+g+")"),y.length=0,y.push(vn)}else y.push(p);m[d].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[d]={elem:p,lastPath:"",op:PropertyFactory.getProp(this.element,m[d].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,m[d],3),invRect:re},this.viewData[d].prop.k||this.drawPath(m[d],this.viewData[d].prop.v,this.viewData[d])}for(this.maskElement=createNS(gn),v=y.length,d=0;d<v;d+=1)this.maskElement.appendChild(y[d]);g>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(w,"url("+getLocationHref()+"#"+b+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(c){return this.viewData[c].prop},MaskElement.prototype.renderFrame=function(c){var u=this.element.finalTransform.mat,f,h=this.masksProperties.length;for(f=0;f<h;f+=1)if((this.viewData[f].prop._mdf||c)&&this.drawPath(this.masksProperties[f],this.viewData[f].prop.v,this.viewData[f]),(this.viewData[f].op._mdf||c)&&this.viewData[f].elem.setAttribute("fill-opacity",this.viewData[f].op.v),this.masksProperties[f].mode!=="n"&&(this.viewData[f].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[f].invRect.setAttribute("transform",u.getInverseMatrix().to2dCSS()),this.storedData[f].x&&(this.storedData[f].x._mdf||c))){var d=this.storedData[f].expan;this.storedData[f].x.v<0?(this.storedData[f].lastOperator!=="erode"&&(this.storedData[f].lastOperator="erode",this.storedData[f].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[f].filterId+")")),d.setAttribute("radius",-this.storedData[f].x.v)):(this.storedData[f].lastOperator!=="dilate"&&(this.storedData[f].lastOperator="dilate",this.storedData[f].elem.setAttribute("filter",null)),this.storedData[f].elem.setAttribute("stroke-width",this.storedData[f].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},MaskElement.prototype.drawPath=function(c,u,f){var h=" M"+u.v[0][0]+","+u.v[0][1],d,v;for(v=u._length,d=1;d<v;d+=1)h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[d][0]+","+u.i[d][1]+" "+u.v[d][0]+","+u.v[d][1];if(u.c&&v>1&&(h+=" C"+u.o[d-1][0]+","+u.o[d-1][1]+" "+u.i[0][0]+","+u.i[0][1]+" "+u.v[0][0]+","+u.v[0][1]),f.lastPath!==h){var p="";f.elem&&(u.c&&(p=c.inv?this.solidPath+h:h),f.elem.setAttribute("d",p)),f.lastPath=h}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var c={};c.createFilter=u,c.createAlphaToLuminanceFilter=f;function u(h,d){var v=createNS("filter");return v.setAttribute("id",h),d!==!0&&(v.setAttribute("filterUnits","objectBoundingBox"),v.setAttribute("x","0%"),v.setAttribute("y","0%"),v.setAttribute("width","100%"),v.setAttribute("height","100%")),v}function f(){var h=createNS("feColorMatrix");return h.setAttribute("type","matrix"),h.setAttribute("color-interpolation-filters","sRGB"),h.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),h}return c}(),featureSupport=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(c){var u,f="SourceGraphic",h=c.data.ef?c.data.ef.length:0,d=createElementID(),v=filtersFactory.createFilter(d,!0),p=0;this.filters=[];var m;for(u=0;u<h;u+=1){m=null;var g=c.data.ef[u].ty;if(registeredEffects$1[g]){var y=registeredEffects$1[g].effect;m=new y(v,c.effectsManager.effectElements[u],c,idPrefix+p,f),f=idPrefix+p,registeredEffects$1[g].countsAsEffect&&(p+=1)}m&&this.filters.push(m)}p&&(c.globalData.defs.appendChild(v),c.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+d+")")),this.filters.length&&c.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},SVGEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect$1(c,u,f){registeredEffects$1[c]={effect:u,countsAsEffect:f}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var u=null;if(this.data.td){this.matteMasks={};var f=createNS("g");f.setAttribute("id",this.layerId),f.appendChild(this.layerElement),u=f,this.globalData.defs.appendChild(f)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),u=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var h=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var v=createElementID();if(h.setAttribute("id",v),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var p=createNS("g");p.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")"),p.appendChild(this.layerElement),this.transformedElement=p,u?u.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+v+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(u){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[u]){var f=this.layerId+"_"+u,h,d,v,p;if(u===1||u===3){var m=createNS("mask");m.setAttribute("id",f),m.setAttribute("mask-type",u===3?"luminance":"alpha"),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),m.appendChild(v),this.globalData.defs.appendChild(m),!featureSupport.maskType&&u===1&&(m.setAttribute("mask-type","luminance"),h=createElementID(),d=filtersFactory.createFilter(h),this.globalData.defs.appendChild(d),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),p.appendChild(v),m.appendChild(p),p.setAttribute("filter","url("+getLocationHref()+"#"+h+")"))}else if(u===2){var g=createNS("mask");g.setAttribute("id",f),g.setAttribute("mask-type","alpha");var y=createNS("g");g.appendChild(y),h=createElementID(),d=filtersFactory.createFilter(h);var x=createNS("feComponentTransfer");x.setAttribute("in","SourceGraphic"),d.appendChild(x);var pn=createNS("feFuncA");pn.setAttribute("type","table"),pn.setAttribute("tableValues","1.0 0.0"),x.appendChild(pn),this.globalData.defs.appendChild(d);var b=createNS("rect");b.setAttribute("width",this.comp.data.w),b.setAttribute("height",this.comp.data.h),b.setAttribute("x","0"),b.setAttribute("y","0"),b.setAttribute("fill","#ffffff"),b.setAttribute("opacity","0"),y.setAttribute("filter","url("+getLocationHref()+"#"+h+")"),y.appendChild(b),v=createNS("use"),v.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),y.appendChild(v),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),d.appendChild(filtersFactory.createAlphaToLuminanceFilter()),p=createNS("g"),y.appendChild(b),p.appendChild(this.layerElement),y.appendChild(p)),this.globalData.defs.appendChild(g)}this.matteMasks[u]=f}return this.matteMasks[u]},setMatte:function(u){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+u+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(u){this.hierarchy=u},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var c={initElement:function(f,h,d){this.initFrame(),this.initBaseData(f,h,d),this.initTransform(f,h,d),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var f=this.baseElement||this.layerElement;f.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var f=this.baseElement||this.layerElement;f.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(f){this._mdf=!1,this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(c)],RenderableDOMElement)})();function IImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.assetData&&this.assetData.sid&&(this.assetData=u.slotManager.getProp(this.assetData)),this.initElement(c,u,f),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(c,u){this.elem=c,this.pos=u}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(u){var f,h=this.shapeModifiers.length;for(f=0;f<h;f+=1)this.shapeModifiers[f].addShape(u)},isShapeInAnimatedModifiers:function(u){for(var f=0,h=this.shapeModifiers.length;f<h;)if(this.shapeModifiers[f].isAnimatedWithShape(u))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var u,f=this.shapes.length;for(u=0;u<f;u+=1)this.shapes[u].sh.reset();f=this.shapeModifiers.length;var h;for(u=f-1;u>=0&&(h=this.shapeModifiers[u].processShapes(this._isFirstFrame),!h);u-=1);}},searchProcessedElement:function(u){for(var f=this.processedElements,h=0,d=f.length;h<d;){if(f[h].elem===u)return f[h].pos;h+=1}return 0},addProcessedElement:function(u,f){for(var h=this.processedElements,d=h.length;d;)if(d-=1,h[d].elem===u){h[d].pos=f;return}h.push(new ProcessedElement(u,f))},prepareFrame:function(u){this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(c,u,f){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=f,this.lvl=u,this._isAnimated=!!f.k;for(var h=0,d=c.length;h<d;){if(c[h].mProps.dynamicProperties.length){this._isAnimated=!0;break}h+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(c,u){this.data=c,this.type=c.ty,this.d="",this.lvl=u,this._mdf=!1,this.closed=c.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(c,u,f,h){this.elem=c,this.frameId=-1,this.dataProps=createSizedArray(u.length),this.renderer=f,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",u.length?u.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(h);var d,v=u.length||0,p;for(d=0;d<v;d+=1)p=PropertyFactory.getProp(c,u[d].v,0,0,this),this.k=p.k||this.k,this.dataProps[d]={n:u[d].n,p};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var u=0,f=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),u=0;u<f;u+=1)this.dataProps[u].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[u].p.v:this.dashArray[u]=this.dataProps[u].p.v:this.dashoffset[0]=this.dataProps[u].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.c=PropertyFactory.getProp(c,u.c,1,255,this),this.style=f}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=f}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(c,u,f){this.data=u,this.c=createTypedArray("uint8c",u.p*4);var h=u.k.k[0].s?u.k.k[0].s.length-u.p*4:u.k.k.length-u.p*4;this.o=createTypedArray("float32",h),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=h,this.initDynamicPropertyContainer(f),this.prop=PropertyFactory.getProp(c,u.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(c,u){for(var f=0,h=this.o.length/2,d;f<h;){if(d=Math.abs(c[f*4]-c[u*4+f*2]),d>.01)return!1;f+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,u=this.data.k.k.length;c<u;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var u,f=this.data.p*4,h,d;for(u=0;u<f;u+=1)h=u%4===0?100:255,d=Math.round(this.prop.v[u]*h),this.c[u]!==d&&(this.c[u]=d,this._cmdf=!c);if(this.o.length)for(f=this.prop.v.length,u=this.data.p*4;u<f;u+=1)h=u%2===0?100:1,d=u%2===0?Math.round(this.prop.v[u]*100):this.prop.v[u],this.o[u-this.data.p*4]!==d&&(this.o[u-this.data.p*4]=d,this._omdf=!c);this._mdf=!c}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,u,f)}SVGGradientFillStyleData.prototype.initGradientData=function(c,u,f){this.o=PropertyFactory.getProp(c,u.o,0,.01,this),this.s=PropertyFactory.getProp(c,u.s,1,null,this),this.e=PropertyFactory.getProp(c,u.e,1,null,this),this.h=PropertyFactory.getProp(c,u.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(c,u.a||{k:0},0,degToRads,this),this.g=new GradientProperty(c,u.g,this),this.style=f,this.stops=[],this.setGradientData(f.pElem,u),this.setGradientOpacity(u,f),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(c,u){var f=createElementID(),h=createNS(u.t===1?"linearGradient":"radialGradient");h.setAttribute("id",f),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse");var d=[],v,p,m;for(m=u.g.p*4,p=0;p<m;p+=4)v=createNS("stop"),h.appendChild(v),d.push(v);c.setAttribute(u.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),this.gf=h,this.cst=d},SVGGradientFillStyleData.prototype.setGradientOpacity=function(c,u){if(this.g._hasOpacity&&!this.g._collapsable){var f,h,d,v=createNS("mask"),p=createNS("path");v.appendChild(p);var m=createElementID(),g=createElementID();v.setAttribute("id",g);var y=createNS(c.t===1?"linearGradient":"radialGradient");y.setAttribute("id",m),y.setAttribute("spreadMethod","pad"),y.setAttribute("gradientUnits","userSpaceOnUse"),d=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var x=this.stops;for(h=c.g.p*4;h<d;h+=2)f=createNS("stop"),f.setAttribute("stop-color","rgb(255,255,255)"),y.appendChild(f),x.push(f);p.setAttribute(c.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+m+")"),c.ty==="gs"&&(p.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),p.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),c.lj===1&&p.setAttribute("stroke-miterlimit",c.ml)),this.of=y,this.ms=v,this.ost=x,this.maskId=g,u.msElem=p}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(c,u,f){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(c,u.w,0,null,this),this.d=new DashProperty(c,u.d||{},"svg",this),this.initGradientData(c,u,f),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(c,u,f){this.transform={mProps:c,op:u,container:f},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(u,f,h,d){if(f===0)return"";var v=u.o,p=u.i,m=u.v,g,y=" M"+d.applyToPointStringified(m[0][0],m[0][1]);for(g=1;g<f;g+=1)y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[g][0],p[g][1])+" "+d.applyToPointStringified(m[g][0],m[g][1]);return h&&f&&(y+=" C"+d.applyToPointStringified(v[g-1][0],v[g-1][1])+" "+d.applyToPointStringified(p[0][0],p[0][1])+" "+d.applyToPointStringified(m[0][0],m[0][1]),y+="z"),y},SVGElementsRenderer=function(){var c=new Matrix,u=new Matrix,f={createRenderFunction:h};function h(pn){switch(pn.ty){case"fl":return m;case"gf":return y;case"gs":return g;case"st":return x;case"sh":case"el":case"rc":case"sr":return p;case"tr":return d;case"no":return v;default:return null}}function d(pn,b,re){(re||b.transform.op._mdf)&&b.transform.container.setAttribute("opacity",b.transform.op.v),(re||b.transform.mProps._mdf)&&b.transform.container.setAttribute("transform",b.transform.mProps.v.to2dCSS())}function v(){}function p(pn,b,re){var _,J,En,gn,w,hn,vn=b.styles.length,Pn=b.lvl,Fn,zn,Vn,Yn;for(hn=0;hn<vn;hn+=1){if(gn=b.sh._mdf||re,b.styles[hn].lvl<Pn){for(zn=u.reset(),Vn=Pn-b.styles[hn].lvl,Yn=b.transformers.length-1;!gn&&Vn>0;)gn=b.transformers[Yn].mProps._mdf||gn,Vn-=1,Yn-=1;if(gn)for(Vn=Pn-b.styles[hn].lvl,Yn=b.transformers.length-1;Vn>0;)zn.multiply(b.transformers[Yn].mProps.v),Vn-=1,Yn-=1}else zn=c;if(Fn=b.sh.paths,J=Fn._length,gn){for(En="",_=0;_<J;_+=1)w=Fn.shapes[_],w&&w._length&&(En+=buildShapeString(w,w._length,w.c,zn));b.caches[hn]=En}else En=b.caches[hn];b.styles[hn].d+=pn.hd===!0?"":En,b.styles[hn]._mdf=gn||b.styles[hn]._mdf}}function m(pn,b,re){var _=b.style;(b.c._mdf||re)&&_.pElem.setAttribute("fill","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||re)&&_.pElem.setAttribute("fill-opacity",b.o.v)}function g(pn,b,re){y(pn,b,re),x(pn,b,re)}function y(pn,b,re){var _=b.gf,J=b.g._hasOpacity,En=b.s.v,gn=b.e.v;if(b.o._mdf||re){var w=pn.ty==="gf"?"fill-opacity":"stroke-opacity";b.style.pElem.setAttribute(w,b.o.v)}if(b.s._mdf||re){var hn=pn.t===1?"x1":"cx",vn=hn==="x1"?"y1":"cy";_.setAttribute(hn,En[0]),_.setAttribute(vn,En[1]),J&&!b.g._collapsable&&(b.of.setAttribute(hn,En[0]),b.of.setAttribute(vn,En[1]))}var Pn,Fn,zn,Vn;if(b.g._cmdf||re){Pn=b.cst;var Yn=b.g.c;for(zn=Pn.length,Fn=0;Fn<zn;Fn+=1)Vn=Pn[Fn],Vn.setAttribute("offset",Yn[Fn*4]+"%"),Vn.setAttribute("stop-color","rgb("+Yn[Fn*4+1]+","+Yn[Fn*4+2]+","+Yn[Fn*4+3]+")")}if(J&&(b.g._omdf||re)){var Gn=b.g.o;for(b.g._collapsable?Pn=b.cst:Pn=b.ost,zn=Pn.length,Fn=0;Fn<zn;Fn+=1)Vn=Pn[Fn],b.g._collapsable||Vn.setAttribute("offset",Gn[Fn*2]+"%"),Vn.setAttribute("stop-opacity",Gn[Fn*2+1])}if(pn.t===1)(b.e._mdf||re)&&(_.setAttribute("x2",gn[0]),_.setAttribute("y2",gn[1]),J&&!b.g._collapsable&&(b.of.setAttribute("x2",gn[0]),b.of.setAttribute("y2",gn[1])));else{var Un;if((b.s._mdf||b.e._mdf||re)&&(Un=Math.sqrt(Math.pow(En[0]-gn[0],2)+Math.pow(En[1]-gn[1],2)),_.setAttribute("r",Un),J&&!b.g._collapsable&&b.of.setAttribute("r",Un)),b.e._mdf||b.h._mdf||b.a._mdf||re){Un||(Un=Math.sqrt(Math.pow(En[0]-gn[0],2)+Math.pow(En[1]-gn[1],2)));var Kn=Math.atan2(gn[1]-En[1],gn[0]-En[0]),Hn=b.h.v;Hn>=1?Hn=.99:Hn<=-1&&(Hn=-.99);var Qn=Un*Hn,Zn=Math.cos(Kn+b.a.v)*Qn+En[0],Rn=Math.sin(Kn+b.a.v)*Qn+En[1];_.setAttribute("fx",Zn),_.setAttribute("fy",Rn),J&&!b.g._collapsable&&(b.of.setAttribute("fx",Zn),b.of.setAttribute("fy",Rn))}}}function x(pn,b,re){var _=b.style,J=b.d;J&&(J._mdf||re)&&J.dashStr&&(_.pElem.setAttribute("stroke-dasharray",J.dashStr),_.pElem.setAttribute("stroke-dashoffset",J.dashoffset[0])),b.c&&(b.c._mdf||re)&&_.pElem.setAttribute("stroke","rgb("+bmFloor(b.c.v[0])+","+bmFloor(b.c.v[1])+","+bmFloor(b.c.v[2])+")"),(b.o._mdf||re)&&_.pElem.setAttribute("stroke-opacity",b.o.v),(b.w._mdf||re)&&(_.pElem.setAttribute("stroke-width",b.w.v),_.msElem&&_.msElem.setAttribute("stroke-width",b.w.v))}return f}();function SVGShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,u,f),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var c,u=this.shapes.length,f,h,d=this.stylesList.length,v,p=[],m=!1;for(h=0;h<d;h+=1){for(v=this.stylesList[h],m=!1,p.length=0,c=0;c<u;c+=1)f=this.shapes[c],f.styles.indexOf(v)!==-1&&(p.push(f),m=f._isAnimated||m);p.length>1&&m&&this.setShapesAsAnimated(p)}},SVGShapeElement.prototype.setShapesAsAnimated=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(c,u){var f,h=new SVGStyleData(c,u),d=h.pElem;if(c.ty==="st")f=new SVGStrokeStyleData(this,c,h);else if(c.ty==="fl")f=new SVGFillStyleData(this,c,h);else if(c.ty==="gf"||c.ty==="gs"){var v=c.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;f=new v(this,c,h),this.globalData.defs.appendChild(f.gf),f.maskId&&(this.globalData.defs.appendChild(f.ms),this.globalData.defs.appendChild(f.of),d.setAttribute("mask","url("+getLocationHref()+"#"+f.maskId+")"))}else c.ty==="no"&&(f=new SVGNoStyleData(this,c,h));return(c.ty==="st"||c.ty==="gs")&&(d.setAttribute("stroke-linecap",lineCapEnum[c.lc||2]),d.setAttribute("stroke-linejoin",lineJoinEnum[c.lj||2]),d.setAttribute("fill-opacity","0"),c.lj===1&&d.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&d.setAttribute("fill-rule","evenodd"),c.ln&&d.setAttribute("id",c.ln),c.cl&&d.setAttribute("class",c.cl),c.bm&&(d.style["mix-blend-mode"]=getBlendMode(c.bm)),this.stylesList.push(h),this.addToAnimatedContents(c,f),f},SVGShapeElement.prototype.createGroupElement=function(c){var u=new ShapeGroupData;return c.ln&&u.gr.setAttribute("id",c.ln),c.cl&&u.gr.setAttribute("class",c.cl),c.bm&&(u.gr.style["mix-blend-mode"]=getBlendMode(c.bm)),u},SVGShapeElement.prototype.createTransformElement=function(c,u){var f=TransformPropertyFactory.getTransformProperty(this,c,this),h=new SVGTransformData(f,f.o,u);return this.addToAnimatedContents(c,h),h},SVGShapeElement.prototype.createShapeElement=function(c,u,f){var h=4;c.ty==="rc"?h=5:c.ty==="el"?h=6:c.ty==="sr"&&(h=7);var d=ShapePropertyFactory.getShapeProp(this,c,h,this),v=new SVGShapeData(u,f,d);return this.shapes.push(v),this.addShapeToModifiers(v),this.addToAnimatedContents(c,v),v},SVGShapeElement.prototype.addToAnimatedContents=function(c,u){for(var f=0,h=this.animatedContents.length;f<h;){if(this.animatedContents[f].element===u)return;f+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(c),element:u,data:c})},SVGShapeElement.prototype.setElementStyles=function(c){var u=c.styles,f,h=this.stylesList.length;for(f=0;f<h;f+=1)this.stylesList[f].closed||u.push(this.stylesList[f])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(c,u,f,h,d,v,p){var m=[].concat(v),g,y=c.length-1,x,pn,b=[],re=[],_,J,En;for(g=y;g>=0;g-=1){if(En=this.searchProcessedElement(c[g]),En?u[g]=f[En-1]:c[g]._render=p,c[g].ty==="fl"||c[g].ty==="st"||c[g].ty==="gf"||c[g].ty==="gs"||c[g].ty==="no")En?u[g].style.closed=!1:u[g]=this.createStyleElement(c[g],d),c[g]._render&&u[g].style.pElem.parentNode!==h&&h.appendChild(u[g].style.pElem),b.push(u[g].style);else if(c[g].ty==="gr"){if(!En)u[g]=this.createGroupElement(c[g]);else for(pn=u[g].it.length,x=0;x<pn;x+=1)u[g].prevViewData[x]=u[g].it[x];this.searchShapes(c[g].it,u[g].it,u[g].prevViewData,u[g].gr,d+1,m,p),c[g]._render&&u[g].gr.parentNode!==h&&h.appendChild(u[g].gr)}else c[g].ty==="tr"?(En||(u[g]=this.createTransformElement(c[g],h)),_=u[g].transform,m.push(_)):c[g].ty==="sh"||c[g].ty==="rc"||c[g].ty==="el"||c[g].ty==="sr"?(En||(u[g]=this.createShapeElement(c[g],m,d)),this.setElementStyles(u[g])):c[g].ty==="tm"||c[g].ty==="rd"||c[g].ty==="ms"||c[g].ty==="pb"||c[g].ty==="zz"||c[g].ty==="op"?(En?(J=u[g],J.closed=!1):(J=ShapeModifiers.getModifier(c[g].ty),J.init(this,c[g]),u[g]=J,this.shapeModifiers.push(J)),re.push(J)):c[g].ty==="rp"&&(En?(J=u[g],J.closed=!0):(J=ShapeModifiers.getModifier(c[g].ty),u[g]=J,J.init(this,c,g,u),this.shapeModifiers.push(J),p=!1),re.push(J));this.addProcessedElement(c[g],g+1)}for(y=b.length,g=0;g<y;g+=1)b[g].closed=!0;for(y=re.length,g=0;g<y;g+=1)re[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<u;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var c,u=this.animatedContents.length,f;for(c=0;c<u;c+=1)f=this.animatedContents[c],(this._isFirstFrame||f.element._isAnimated)&&f.data!==!0&&f.fn(f.data,f.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(c,u,f,h,d,v){this.o=c,this.sw=u,this.sc=f,this.fc=h,this.m=d,this.p=v,this._mdf={o:!0,sw:!!u,sc:!!f,fc:!!h,m:!0,p:!0}}LetterProps.prototype.update=function(c,u,f,h,d,v){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var p=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,p=!0),this.sw!==u&&(this.sw=u,this._mdf.sw=!0,p=!0),this.sc!==f&&(this.sc=f,this._mdf.sc=!0,p=!0),this.fc!==h&&(this.fc=h,this._mdf.fc=!0,p=!0),this.m!==d&&(this.m=d,this._mdf.m=!0,p=!0),v.length&&(this.p[0]!==v[0]||this.p[1]!==v[1]||this.p[4]!==v[4]||this.p[5]!==v[5]||this.p[12]!==v[12]||this.p[13]!==v[13])&&(this.p=v,this._mdf.p=!0,p=!0),p};function TextProperty(c,u){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,u.d&&u.d.sid&&(u.d=c.globalData.slotManager.getProp(u.d)),this.data=u,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(c,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(c[f]=u[f]);return c},TextProperty.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var u=this.currentData,f=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var h,d=this.effectsSequence.length,v=c||this.data.d.k[this.keysIndex].s;for(h=0;h<d;h+=1)f!==this.keysIndex?v=this.effectsSequence[h](v,v.t):v=this.effectsSequence[h](this.currentData,v.t);u!==v&&this.setCurrentData(v),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,u=this.elem.comp.renderedFrame,f=0,h=c.length;f<=h-1&&!(f===h-1||c[f+1].t>u);)f+=1;return this.keysIndex!==f&&(this.keysIndex=f),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(c){for(var u=[],f=0,h=c.length,d,v,p=!1,m=!1,g="";f<h;)p=m,m=!1,d=c.charCodeAt(f),g=c.charAt(f),FontManager.isCombinedCharacter(d)?p=!0:d>=55296&&d<=56319?FontManager.isRegionalFlag(c,f)?g=c.substr(f,14):(v=c.charCodeAt(f+1),v>=56320&&v<=57343&&(FontManager.isModifier(d,v)?(g=c.substr(f,2),p=!0):FontManager.isFlagEmoji(c.substr(f,4))?g=c.substr(f,4):g=c.substr(f,2))):d>56319?(v=c.charCodeAt(f+1),FontManager.isVariationSelector(d)&&(p=!0)):FontManager.isZeroWidthJoiner(d)&&(p=!0,m=!0),p?(u[u.length-1]+=g,p=!1):u.push(g),f+=g.length;return u},TextProperty.prototype.completeTextData=function(c){c.__complete=!0;var u=this.elem.globalData.fontManager,f=this.data,h=[],d,v,p,m=0,g,y=f.m.g,x=0,pn=0,b=0,re=[],_=0,J=0,En,gn,w=u.getFontByName(c.f),hn,vn=0,Pn=getFontProperties(w);c.fWeight=Pn.weight,c.fStyle=Pn.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),v=c.finalText.length,c.finalLineHeight=c.lh;var Fn=c.tr/1e3*c.finalSize,zn;if(c.sz)for(var Vn=!0,Yn=c.sz[0],Gn=c.sz[1],Un,Kn;Vn;){Kn=this.buildFinalText(c.t),Un=0,_=0,v=Kn.length,Fn=c.tr/1e3*c.finalSize;var Hn=-1;for(d=0;d<v;d+=1)zn=Kn[d].charCodeAt(0),p=!1,Kn[d]===" "?Hn=d:(zn===13||zn===3)&&(_=0,p=!0,Un+=c.finalLineHeight||c.finalSize*1.2),u.chars?(hn=u.getCharData(Kn[d],w.fStyle,w.fFamily),vn=p?0:hn.w*c.finalSize/100):vn=u.measureText(Kn[d],c.f,c.finalSize),_+vn>Yn&&Kn[d]!==" "?(Hn===-1?v+=1:d=Hn,Un+=c.finalLineHeight||c.finalSize*1.2,Kn.splice(d,Hn===d?1:0,"\r"),Hn=-1,_=0):(_+=vn,_+=Fn);Un+=w.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&Gn<Un?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Kn,v=c.finalText.length,Vn=!1)}_=-Fn,vn=0;var Qn=0,Zn;for(d=0;d<v;d+=1)if(p=!1,Zn=c.finalText[d],zn=Zn.charCodeAt(0),zn===13||zn===3?(Qn=0,re.push(_),J=_>J?_:J,_=-2*Fn,g="",p=!0,b+=1):g=Zn,u.chars?(hn=u.getCharData(Zn,w.fStyle,u.getFontByName(c.f).fFamily),vn=p?0:hn.w*c.finalSize/100):vn=u.measureText(g,c.f,c.finalSize),Zn===" "?Qn+=vn+Fn:(_+=vn+Fn+Qn,Qn=0),h.push({l:vn,an:vn,add:x,n:p,anIndexes:[],val:g,line:b,animatorJustifyOffset:0}),y==2){if(x+=vn,g===""||g===" "||d===v-1){for((g===""||g===" ")&&(x-=vn);pn<=d;)h[pn].an=x,h[pn].ind=m,h[pn].extra=vn,pn+=1;m+=1,x=0}}else if(y==3){if(x+=vn,g===""||d===v-1){for(g===""&&(x-=vn);pn<=d;)h[pn].an=x,h[pn].ind=m,h[pn].extra=vn,pn+=1;x=0,m+=1}}else h[m].ind=m,h[m].extra=0,m+=1;if(c.l=h,J=_>J?_:J,re.push(_),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=J,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=re;var Rn=f.a,qn,In;gn=Rn.length;var Dn,er,Bn=[];for(En=0;En<gn;En+=1){for(qn=Rn[En],qn.a.sc&&(c.strokeColorAnim=!0),qn.a.sw&&(c.strokeWidthAnim=!0),(qn.a.fc||qn.a.fh||qn.a.fs||qn.a.fb)&&(c.fillColorAnim=!0),er=0,Dn=qn.s.b,d=0;d<v;d+=1)In=h[d],In.anIndexes[En]=er,(Dn==1&&In.val!==""||Dn==2&&In.val!==""&&In.val!==" "||Dn==3&&(In.n||In.val==" "||d==v-1)||Dn==4&&(In.n||d==v-1))&&(qn.s.rn===1&&Bn.push(er),er+=1);f.a[En].s.totalChars=er;var Jn=-1,Xn;if(qn.s.rn===1)for(d=0;d<v;d+=1)In=h[d],Jn!=In.anIndexes[En]&&(Jn=In.anIndexes[En],Xn=Bn.splice(Math.floor(Math.random()*Bn.length),1)[0]),In.anIndexes[En]=Xn}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=w.ascent*c.finalSize/100},TextProperty.prototype.updateDocumentData=function(c,u){u=u===void 0?this.keysIndex:u;var f=this.copyData({},this.data.d.k[u].s);f=this.copyData(f,c),this.data.d.k[u].s=f,this.recalculate(u),this.setCurrentData(f),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(c){var u=this.data.d.k[c].s;u.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(u)},TextProperty.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var c=Math.max,u=Math.min,f=Math.floor;function h(v,p){this._currentTextLength=-1,this.k=!1,this.data=p,this.elem=v,this.comp=v.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(v),this.s=PropertyFactory.getProp(v,p.s||{k:0},0,0,this),"e"in p?this.e=PropertyFactory.getProp(v,p.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(v,p.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(v,p.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(v,p.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(v,p.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(v,p.a,0,.01,this),this.dynamicProperties.length||this.getValue()}h.prototype={getMult:function(p){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var m=0,g=0,y=1,x=1;this.ne.v>0?m=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?y=1-this.xe.v/100:x=1+this.xe.v/100;var pn=BezierFactory.getBezierEasing(m,g,y,x).get,b=0,re=this.finalS,_=this.finalE,J=this.data.sh;if(J===2)_===re?b=p>=_?1:0:b=c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b=pn(b);else if(J===3)_===re?b=p>=_?0:1:b=1-c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b=pn(b);else if(J===4)_===re?b=0:(b=c(0,u(.5/(_-re)+(p-re)/(_-re),1)),b<.5?b*=2:b=1-2*(b-.5)),b=pn(b);else if(J===5){if(_===re)b=0;else{var En=_-re;p=u(c(0,p+.5-re),_-re);var gn=-En/2+p,w=En/2;b=Math.sqrt(1-gn*gn/(w*w))}b=pn(b)}else J===6?(_===re?b=0:(p=u(c(0,p+.5-re),_-re),b=(1+Math.cos(Math.PI+Math.PI*2*p/(_-re)))/2),b=pn(b)):(p>=f(re)&&(p-re<0?b=c(0,u(u(_,1)-(re-p),1)):b=c(0,u(_-p,1))),b=pn(b));if(this.sm.v!==100){var hn=this.sm.v*.01;hn===0&&(hn=1e-8);var vn=.5-hn*.5;b<vn?b=0:(b=(b-vn)/hn,b>1&&(b=1))}return b*this.a.v},getValue:function(p){this.iterateDynamicProperties(),this._mdf=p||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,p&&this.data.r===2&&(this.e.v=this._currentTextLength);var m=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/m,y=this.s.v/m+g,x=this.e.v/m+g;if(y>x){var pn=y;y=x,x=pn}this.finalS=y,this.finalE=x}},extendPrototype([DynamicPropertyContainer],h);function d(v,p,m){return new h(v,p)}return{getTextSelectorProp:d}}();function TextAnimatorDataProperty(c,u,f){var h={propType:!1},d=PropertyFactory.getProp,v=u.a;this.a={r:v.r?d(c,v.r,0,degToRads,f):h,rx:v.rx?d(c,v.rx,0,degToRads,f):h,ry:v.ry?d(c,v.ry,0,degToRads,f):h,sk:v.sk?d(c,v.sk,0,degToRads,f):h,sa:v.sa?d(c,v.sa,0,degToRads,f):h,s:v.s?d(c,v.s,1,.01,f):h,a:v.a?d(c,v.a,1,0,f):h,o:v.o?d(c,v.o,0,.01,f):h,p:v.p?d(c,v.p,1,0,f):h,sw:v.sw?d(c,v.sw,0,0,f):h,sc:v.sc?d(c,v.sc,1,0,f):h,fc:v.fc?d(c,v.fc,1,0,f):h,fh:v.fh?d(c,v.fh,0,0,f):h,fs:v.fs?d(c,v.fs,0,.01,f):h,fb:v.fb?d(c,v.fb,0,.01,f):h,t:v.t?d(c,v.t,0,0,f):h},this.s=TextSelectorProp.getTextSelectorProp(c,u.s,f),this.s.t=u.s.t}function TextAnimatorProperty(c,u,f){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=u,this._elem=f,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(f)}TextAnimatorProperty.prototype.searchProperties=function(){var c,u=this._textData.a.length,f,h=PropertyFactory.getProp;for(c=0;c<u;c+=1)f=this._textData.a[c],this._animatorsData[c]=new TextAnimatorDataProperty(this._elem,f,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:h(this._elem,this._textData.p.a,0,0,this),f:h(this._elem,this._textData.p.f,0,0,this),l:h(this._elem,this._textData.p.l,0,0,this),r:h(this._elem,this._textData.p.r,0,0,this),p:h(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=h(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(c,u){if(this.lettersChangedFlag=u,!(!this._mdf&&!this._isFirstFrame&&!u&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var f=this._moreOptions.alignment.v,h=this._animatorsData,d=this._textData,v=this.mHelper,p=this._renderType,m=this.renderedLetters.length,g,y,x,pn,b=c.l,re,_,J,En,gn,w,hn,vn,Pn,Fn,zn,Vn,Yn,Gn,Un;if(this._hasMaskedPath){if(Un=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Kn=Un.v;this._pathData.r.v&&(Kn=Kn.reverse()),re={tLength:0,segments:[]},pn=Kn._length-1;var Hn;for(Vn=0,x=0;x<pn;x+=1)Hn=bez.buildBezierData(Kn.v[x],Kn.v[x+1],[Kn.o[x][0]-Kn.v[x][0],Kn.o[x][1]-Kn.v[x][1]],[Kn.i[x+1][0]-Kn.v[x+1][0],Kn.i[x+1][1]-Kn.v[x+1][1]]),re.tLength+=Hn.segmentLength,re.segments.push(Hn),Vn+=Hn.segmentLength;x=pn,Un.v.c&&(Hn=bez.buildBezierData(Kn.v[x],Kn.v[0],[Kn.o[x][0]-Kn.v[x][0],Kn.o[x][1]-Kn.v[x][1]],[Kn.i[0][0]-Kn.v[0][0],Kn.i[0][1]-Kn.v[0][1]]),re.tLength+=Hn.segmentLength,re.segments.push(Hn),Vn+=Hn.segmentLength),this._pathData.pi=re}if(re=this._pathData.pi,_=this._pathData.f.v,hn=0,w=1,En=0,gn=!0,Fn=re.segments,_<0&&Un.v.c)for(re.tLength<Math.abs(_)&&(_=-Math.abs(_)%re.tLength),hn=Fn.length-1,Pn=Fn[hn].points,w=Pn.length-1;_<0;)_+=Pn[w].partialLength,w-=1,w<0&&(hn-=1,Pn=Fn[hn].points,w=Pn.length-1);Pn=Fn[hn].points,vn=Pn[w-1],J=Pn[w],zn=J.partialLength}pn=b.length,g=0,y=0;var Qn=c.finalSize*1.2*.714,Zn=!0,Rn,qn,In,Dn,er;Dn=h.length;var Bn,Jn=-1,Xn,Wn,nr,ir=_,ar=hn,or=w,tr=-1,sr,cr,vr,dr,lr,ur,fr,mr,yr="",br=this.defaultPropsArray,Sr;if(c.j===2||c.j===1){var Er=0,wr=0,kr=c.j===2?-.5:-1,Mr=0,Ir=!0;for(x=0;x<pn;x+=1)if(b[x].n){for(Er&&(Er+=wr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1;Er=0,Ir=!0}else{for(In=0;In<Dn;In+=1)Rn=h[In].a,Rn.t.propType&&(Ir&&c.j===2&&(wr+=Rn.t.v*kr),qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Bn.length?Er+=Rn.t.v*Bn[0]*kr:Er+=Rn.t.v*Bn*kr);Ir=!1}for(Er&&(Er+=wr);Mr<x;)b[Mr].animatorJustifyOffset=Er,Mr+=1}for(x=0;x<pn;x+=1){if(v.reset(),sr=1,b[x].n)g=0,y+=c.yOffset,y+=Zn?1:0,_=ir,Zn=!1,this._hasMaskedPath&&(hn=ar,w=or,Pn=Fn[hn].points,vn=Pn[w-1],J=Pn[w],zn=J.partialLength,En=0),yr="",mr="",ur="",Sr="",br=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tr!==b[x].line){switch(c.j){case 1:_+=Vn-c.lineWidths[b[x].line];break;case 2:_+=(Vn-c.lineWidths[b[x].line])/2;break}tr=b[x].line}Jn!==b[x].ind&&(b[Jn]&&(_+=b[Jn].extra),_+=b[x].an/2,Jn=b[x].ind),_+=f[0]*b[x].an*.005;var Tr=0;for(In=0;In<Dn;In+=1)Rn=h[In].a,Rn.p.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Bn.length?Tr+=Rn.p.v[0]*Bn[0]:Tr+=Rn.p.v[0]*Bn),Rn.a.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Bn.length?Tr+=Rn.a.v[0]*Bn[0]:Tr+=Rn.a.v[0]*Bn);for(gn=!0,this._pathData.a.v&&(_=b[0].an*.5+(Vn-this._pathData.f.v-b[0].an*.5-b[b.length-1].an*.5)*Jn/(pn-1),_+=this._pathData.f.v);gn;)En+zn>=_+Tr||!Pn?(Yn=(_+Tr-En)/J.partialLength,Wn=vn.point[0]+(J.point[0]-vn.point[0])*Yn,nr=vn.point[1]+(J.point[1]-vn.point[1])*Yn,v.translate(-f[0]*b[x].an*.005,-(f[1]*Qn)*.01),gn=!1):Pn&&(En+=J.partialLength,w+=1,w>=Pn.length&&(w=0,hn+=1,Fn[hn]?Pn=Fn[hn].points:Un.v.c?(w=0,hn=0,Pn=Fn[hn].points):(En-=J.partialLength,Pn=null)),Pn&&(vn=J,J=Pn[w],zn=J.partialLength));Xn=b[x].an/2-b[x].add,v.translate(-Xn,0,0)}else Xn=b[x].an/2-b[x].add,v.translate(-Xn,0,0),v.translate(-f[0]*b[x].an*.005,-f[1]*Qn*.01,0);for(In=0;In<Dn;In+=1)Rn=h[In].a,Rn.t.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),(g!==0||c.j!==0)&&(this._hasMaskedPath?Bn.length?_+=Rn.t.v*Bn[0]:_+=Rn.t.v*Bn:Bn.length?g+=Rn.t.v*Bn[0]:g+=Rn.t.v*Bn));for(c.strokeWidthAnim&&(vr=c.sw||0),c.strokeColorAnim&&(c.sc?cr=[c.sc[0],c.sc[1],c.sc[2]]:cr=[0,0,0]),c.fillColorAnim&&c.fc&&(dr=[c.fc[0],c.fc[1],c.fc[2]]),In=0;In<Dn;In+=1)Rn=h[In].a,Rn.a.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Bn.length?v.translate(-Rn.a.v[0]*Bn[0],-Rn.a.v[1]*Bn[1],Rn.a.v[2]*Bn[2]):v.translate(-Rn.a.v[0]*Bn,-Rn.a.v[1]*Bn,Rn.a.v[2]*Bn));for(In=0;In<Dn;In+=1)Rn=h[In].a,Rn.s.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Bn.length?v.scale(1+(Rn.s.v[0]-1)*Bn[0],1+(Rn.s.v[1]-1)*Bn[1],1):v.scale(1+(Rn.s.v[0]-1)*Bn,1+(Rn.s.v[1]-1)*Bn,1));for(In=0;In<Dn;In+=1){if(Rn=h[In].a,qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),Rn.sk.propType&&(Bn.length?v.skewFromAxis(-Rn.sk.v*Bn[0],Rn.sa.v*Bn[1]):v.skewFromAxis(-Rn.sk.v*Bn,Rn.sa.v*Bn)),Rn.r.propType&&(Bn.length?v.rotateZ(-Rn.r.v*Bn[2]):v.rotateZ(-Rn.r.v*Bn)),Rn.ry.propType&&(Bn.length?v.rotateY(Rn.ry.v*Bn[1]):v.rotateY(Rn.ry.v*Bn)),Rn.rx.propType&&(Bn.length?v.rotateX(Rn.rx.v*Bn[0]):v.rotateX(Rn.rx.v*Bn)),Rn.o.propType&&(Bn.length?sr+=(Rn.o.v*Bn[0]-sr)*Bn[0]:sr+=(Rn.o.v*Bn-sr)*Bn),c.strokeWidthAnim&&Rn.sw.propType&&(Bn.length?vr+=Rn.sw.v*Bn[0]:vr+=Rn.sw.v*Bn),c.strokeColorAnim&&Rn.sc.propType)for(lr=0;lr<3;lr+=1)Bn.length?cr[lr]+=(Rn.sc.v[lr]-cr[lr])*Bn[0]:cr[lr]+=(Rn.sc.v[lr]-cr[lr])*Bn;if(c.fillColorAnim&&c.fc){if(Rn.fc.propType)for(lr=0;lr<3;lr+=1)Bn.length?dr[lr]+=(Rn.fc.v[lr]-dr[lr])*Bn[0]:dr[lr]+=(Rn.fc.v[lr]-dr[lr])*Bn;Rn.fh.propType&&(Bn.length?dr=addHueToRGB(dr,Rn.fh.v*Bn[0]):dr=addHueToRGB(dr,Rn.fh.v*Bn)),Rn.fs.propType&&(Bn.length?dr=addSaturationToRGB(dr,Rn.fs.v*Bn[0]):dr=addSaturationToRGB(dr,Rn.fs.v*Bn)),Rn.fb.propType&&(Bn.length?dr=addBrightnessToRGB(dr,Rn.fb.v*Bn[0]):dr=addBrightnessToRGB(dr,Rn.fb.v*Bn))}}for(In=0;In<Dn;In+=1)Rn=h[In].a,Rn.p.propType&&(qn=h[In].s,Bn=qn.getMult(b[x].anIndexes[In],d.a[In].s.totalChars),this._hasMaskedPath?Bn.length?v.translate(0,Rn.p.v[1]*Bn[0],-Rn.p.v[2]*Bn[1]):v.translate(0,Rn.p.v[1]*Bn,-Rn.p.v[2]*Bn):Bn.length?v.translate(Rn.p.v[0]*Bn[0],Rn.p.v[1]*Bn[1],-Rn.p.v[2]*Bn[2]):v.translate(Rn.p.v[0]*Bn,Rn.p.v[1]*Bn,-Rn.p.v[2]*Bn));if(c.strokeWidthAnim&&(ur=vr<0?0:vr),c.strokeColorAnim&&(fr="rgb("+Math.round(cr[0]*255)+","+Math.round(cr[1]*255)+","+Math.round(cr[2]*255)+")"),c.fillColorAnim&&c.fc&&(mr="rgb("+Math.round(dr[0]*255)+","+Math.round(dr[1]*255)+","+Math.round(dr[2]*255)+")"),this._hasMaskedPath){if(v.translate(0,-c.ls),v.translate(0,f[1]*Qn*.01+y,0),this._pathData.p.v){Gn=(J.point[1]-vn.point[1])/(J.point[0]-vn.point[0]);var Fr=Math.atan(Gn)*180/Math.PI;J.point[0]<vn.point[0]&&(Fr+=180),v.rotate(-Fr*Math.PI/180)}v.translate(Wn,nr,0),_-=f[0]*b[x].an*.005,b[x+1]&&Jn!==b[x+1].ind&&(_+=b[x].an/2,_+=c.tr*.001*c.finalSize)}else{switch(v.translate(g,y,0),c.ps&&v.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line]),0,0);break;case 2:v.translate(b[x].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[b[x].line])/2,0,0);break}v.translate(0,-c.ls),v.translate(Xn,0,0),v.translate(f[0]*b[x].an*.005,f[1]*Qn*.01,0),g+=b[x].l+c.tr*.001*c.finalSize}p==="html"?yr=v.toCSS():p==="svg"?yr=v.to2dCSS():br=[v.props[0],v.props[1],v.props[2],v.props[3],v.props[4],v.props[5],v.props[6],v.props[7],v.props[8],v.props[9],v.props[10],v.props[11],v.props[12],v.props[13],v.props[14],v.props[15]],Sr=sr}m<=x?(er=new LetterProps(Sr,ur,fr,mr,yr,br),this.renderedLetters.push(er),m+=1,this.lettersChangedFlag=!0):(er=this.renderedLetters[x],this.lettersChangedFlag=er.update(Sr,ur,fr,mr,yr,br)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(c,u,f){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,u,f),this.textProperty=new TextProperty(this,c.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(c.t,this.renderType,this),this.initTransform(c,u,f),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange)},ITextElement.prototype.createPathShape=function(c,u){var f,h=u.length,d,v="";for(f=0;f<h;f+=1)u[f].ty==="sh"&&(d=u[f].ks.k,v+=buildShapeString(d,d.i.length,!0,c));return v},ITextElement.prototype.updateDocumentData=function(c,u){this.textProperty.updateDocumentData(c,u)},ITextElement.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},ITextElement.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},ITextElement.prototype.applyTextPropertiesToMatrix=function(c,u,f,h,d){switch(c.ps&&u.translate(c.ps[0],c.ps[1]+c.ascent,0),u.translate(0,-c.ls,0),c.j){case 1:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f]),0,0);break;case 2:u.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[f])/2,0,0);break}u.translate(h,d,0)},ITextElement.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(c,u,f){this.textSpans=[],this.renderType="svg",this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(c){for(var u=0,f=c.length,h=[],d="";u<f;)c[u]===String.fromCharCode(13)||c[u]===String.fromCharCode(3)?(h.push(d),d=""):d+=c[u],u+=1;return h.push(d),h},SVGTextLottieElement.prototype.buildShapeData=function(c,u){if(c.shapes&&c.shapes.length){var f=c.shapes[0];if(f.it){var h=f.it[f.it.length-1];h.s&&(h.s.k[0]=u,h.s.k[1]=u)}}return c},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,u,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f?f.l.length:0),f.fc?this.layerElement.setAttribute("fill",this.buildColor(f.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),f.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(f.sc)),this.layerElement.setAttribute("stroke-width",f.sw)),this.layerElement.setAttribute("font-size",f.finalSize);var h=this.globalData.fontManager.getFontByName(f.f);if(h.fClass)this.layerElement.setAttribute("class",h.fClass);else{this.layerElement.setAttribute("font-family",h.fFamily);var d=f.fWeight,v=f.fStyle;this.layerElement.setAttribute("font-style",v),this.layerElement.setAttribute("font-weight",d)}this.layerElement.setAttribute("aria-label",f.t);var p=f.l||[],m=!!this.globalData.fontManager.chars;u=p.length;var g,y=this.mHelper,x="",pn=this.data.singleShape,b=0,re=0,_=!0,J=f.tr*.001*f.finalSize;if(pn&&!m&&!f.sz){var En=this.textContainer,gn="start";switch(f.j){case 1:gn="end";break;case 2:gn="middle";break;default:gn="start";break}En.setAttribute("text-anchor",gn),En.setAttribute("letter-spacing",J);var w=this.buildTextContents(f.finalText);for(u=w.length,re=f.ps?f.ps[1]+f.ascent:0,c=0;c<u;c+=1)g=this.textSpans[c].span||createNS("tspan"),g.textContent=w[c],g.setAttribute("x",0),g.setAttribute("y",re),g.style.display="inherit",En.appendChild(g),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=g,re+=f.finalLineHeight;this.layerElement.appendChild(En)}else{var hn=this.textSpans.length,vn;for(c=0;c<u;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!m||!pn||c===0){if(g=hn>c?this.textSpans[c].span:createNS(m?"g":"text"),hn<=c){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=g,m){var Pn=createNS("g");g.appendChild(Pn),this.textSpans[c].childSpan=Pn}this.textSpans[c].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(y.reset(),pn&&(p[c].n&&(b=-J,re+=f.yOffset,re+=_?1:0,_=!1),this.applyTextPropertiesToMatrix(f,y,p[c].line,b,re),b+=p[c].l||0,b+=J),m){vn=this.globalData.fontManager.getCharData(f.finalText[c],h.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily);var Fn;if(vn.t===1)Fn=new SVGCompElement(vn.data,this.globalData,this);else{var zn=emptyShapeData;vn.data&&vn.data.shapes&&(zn=this.buildShapeData(vn.data,f.finalSize)),Fn=new SVGShapeElement(zn,this.globalData,this)}if(this.textSpans[c].glyph){var Vn=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(Vn.layerElement),Vn.destroy()}this.textSpans[c].glyph=Fn,Fn._debug=!0,Fn.prepareFrame(0),Fn.renderFrame(),this.textSpans[c].childSpan.appendChild(Fn.layerElement),vn.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+f.finalSize/100+","+f.finalSize/100+")")}else pn&&g.setAttribute("transform","translate("+y.props[12]+","+y.props[13]+")"),g.textContent=p[c].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}pn&&g&&g.setAttribute("d",x)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var c,u=this.textSpans.length,f;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<u;c+=1)f=this.textSpans[c].glyph,f&&(f.prepareFrame(this.comp.renderedFrame-this.data.st),f._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,u,f=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;u=h.length;var d,v,p;for(c=0;c<u;c+=1)h[c].n||(d=f[c],v=this.textSpans[c].span,p=this.textSpans[c].glyph,p&&p.renderFrame(),d._mdf.m&&v.setAttribute("transform",d.m),d._mdf.o&&v.setAttribute("opacity",d.o),d._mdf.sw&&v.setAttribute("stroke-width",d.sw),d._mdf.sc&&v.setAttribute("stroke",d.sc),d._mdf.fc&&v.setAttribute("fill",d.fc))}};function ISolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var c=createNS("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function NullElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initFrame(),this.initTransform(c,u,f),this.initHierarchy()}NullElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(c){return new NullElement(c,this.globalData,this)},SVGRendererBase.prototype.createShape=function(c){return new SVGShapeElement(c,this.globalData,this)},SVGRendererBase.prototype.createText=function(c){return new SVGTextLottieElement(c,this.globalData,this)},SVGRendererBase.prototype.createImage=function(c){return new IImageElement(c,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(c){return new ISolidElement(c,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var u=this.globalData.defs;this.setupGlobalData(c,u),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var f=createNS("clipPath"),h=createNS("rect");h.setAttribute("width",c.w),h.setAttribute("height",c.h),h.setAttribute("x",0),h.setAttribute("y",0);var d=createElementID();f.setAttribute("id",d),f.appendChild(h),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+d+")"),u.appendChild(f),this.layers=c.layers,this.elements=createSizedArray(c.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(c){var u=0,f=this.layers.length;for(u=0;u<f;u+=1)if(this.layers[u].ind===c)return u;return-1},SVGRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){u[c]=!0;var f=this.createItem(this.layers[c]);if(u[c]=f,getExpressionsPlugin()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(f),f.initExpressions()),this.appendElementInPos(f,c),this.layers[c].tt){var h="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(h===-1)return;if(!this.elements[h]||this.elements[h]===!0)this.buildItem(h),this.addPendingElement(f);else{var d=u[h],v=d.getMatte(this.layers[c].tt);f.setMatte(v)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var u=0,f=this.elements.length;u<f;){if(this.elements[u]===c){var h="tp"in c.data?this.findIndexByInd(c.data.tp):u-1,d=this.elements[h],v=d.getMatte(this.layers[u].tt);c.setMatte(v);break}u+=1}}},SVGRendererBase.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var u,f=this.layers.length;for(this.completeLayers||this.checkLayers(c),u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].prepareFrame(c-this.layers[u].st);if(this.globalData._mdf)for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){for(var h=0,d;h<u;)this.elements[h]&&this.elements[h]!==!0&&this.elements[h].getBaseElement()&&(d=this.elements[h].getBaseElement()),h+=1;d?this.layerElement.insertBefore(f,d):this.layerElement.appendChild(f)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initTransform(c,u,f),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!u.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var u=this.tm.v;u===this.data.op&&(u=this.data.op-1),this.renderedFrame=u}var f,h=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&(this.elements[f].prepareFrame(this.renderedFrame-this.layers[f].st),this.elements[f]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},ICompElement.prototype.setElements=function(c){this.elements=c},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var c,u=this.layers.length;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(c,u,f){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function SVGRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var f="";if(u&&u.title){var h=createNS("title"),d=createElementID();h.setAttribute("id",d),h.textContent=u.title,this.svgElement.appendChild(h),f+=d}if(u&&u.description){var v=createNS("desc"),p=createElementID();v.setAttribute("id",p),v.textContent=u.description,this.svgElement.appendChild(v),f+=" "+p}f&&this.svgElement.setAttribute("aria-labelledby",f);var m=createNS("defs");this.svgElement.appendChild(m);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",progressiveLoad:u&&u.progressiveLoad||!1,hideOnTransparent:!(u&&u.hideOnTransparent===!1),viewBoxOnly:u&&u.viewBoxOnly||!1,viewBoxSize:u&&u.viewBoxSize||!1,className:u&&u.className||"",id:u&&u.id||"",focusable:u&&u.focusable,filterSize:{width:u&&u.filterSize&&u.filterSize.width||"100%",height:u&&u.filterSize&&u.filterSize.height||"100%",x:u&&u.filterSize&&u.filterSize.x||"0%",y:u&&u.filterSize&&u.filterSize.y||"0%"},width:u&&u.width,height:u&&u.height,runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:m,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(c){return new SVGCompElement(c,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(u){var f,h=u.length,d="_";for(f=0;f<h;f+=1)d+=u[f].transform.key+"_";var v=this.sequences[d];return v||(v={transforms:[].concat(u),finalTransform:new Matrix,_mdf:!1},this.sequences[d]=v,this.sequenceList.push(v)),v},processSequence:function(u,f){for(var h=0,d=u.transforms.length,v=f;h<d&&!f;){if(u.transforms[h].transform.mProps._mdf){v=!0;break}h+=1}if(v)for(u.finalTransform.reset(),h=d-1;h>=0;h-=1)u.finalTransform.multiply(u.transforms[h].transform.mProps.v);u._mdf=v},processSequences:function(u){var f,h=this.sequenceList.length;for(f=0;f<h;f+=1)this.processSequence(this.sequenceList[f],u)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var u="__lottie_element_luma_buffer",f=null,h=null,d=null;function v(){var g=createNS("svg"),y=createNS("filter"),x=createNS("feColorMatrix");return y.setAttribute("id",u),x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),y.appendChild(x),g.appendChild(y),g.setAttribute("id",u+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function p(){f||(d=v(),document.body.appendChild(d),f=createTag("canvas"),h=f.getContext("2d"),h.filter="url(#"+u+")",h.fillStyle="rgba(0,0,0,0)",h.fillRect(0,0,1,1))}function m(g){return f||p(),f.width=g.width,f.height=g.height,h.filter="url(#"+u+")",f}return{load:p,get:m}};function createCanvas(c,u){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(c,u);var f=createTag("canvas");return f.width=c,f.height=u,f}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(c){var u,f=c.data.ef?c.data.ef.length:0;this.filters=[];var h;for(u=0;u<f;u+=1){h=null;var d=c.data.ef[u].ty;if(registeredEffects[d]){var v=registeredEffects[d].effect;h=new v(c.effectsManager.effectElements[u],c)}h&&this.filters.push(h)}this.filters.length&&c.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(c){var u,f=this.filters.length;for(u=0;u<f;u+=1)this.filters[u].renderFrame(c)},CVEffects.prototype.getEffects=function(c){var u,f=this.filters.length,h=[];for(u=0;u<f;u+=1)this.filters[u].type===c&&h.push(this.filters[u]);return h};function registerEffect(c,u){registeredEffects[c]={effect:u}}function CVMaskElement(c,u){this.data=c,this.element=u,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var f,h=this.masksProperties.length,d=!1;for(f=0;f<h;f+=1)this.masksProperties[f].mode!=="n"&&(d=!0),this.viewData[f]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[f],3);this.hasMasks=d,d&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var c=this.element.finalTransform.mat,u=this.element.canvasContext,f,h=this.masksProperties.length,d,v,p;for(u.beginPath(),f=0;f<h;f+=1)if(this.masksProperties[f].mode!=="n"){this.masksProperties[f].inv&&(u.moveTo(0,0),u.lineTo(this.element.globalData.compSize.w,0),u.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),u.lineTo(0,this.element.globalData.compSize.h),u.lineTo(0,0)),p=this.viewData[f].v,d=c.applyToPointArray(p.v[0][0],p.v[0][1],0),u.moveTo(d[0],d[1]);var m,g=p._length;for(m=1;m<g;m+=1)v=c.applyToTriplePoints(p.o[m-1],p.i[m],p.v[m]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5]);v=c.applyToTriplePoints(p.o[m-1],p.i[0],p.v[0]),u.bezierCurveTo(v[0],v[1],v[2],v[3],v[4],v[5])}this.element.globalData.renderer.save(!0),u.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var u=this.globalData.canvasContext,f=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(f);var h=assetLoader.createCanvas(u.canvas.width,u.canvas.height);this.buffers.push(h),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var u=this.globalData;if(u.blendMode!==this.data.bm){u.blendMode=this.data.bm;var f=getBlendMode(this.data.bm);u.canvasContext.globalCompositeOperation=f}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(u){u.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var u=this.buffers[0],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var u=this.buffers[1],f=u.getContext("2d");this.clearCanvas(f),f.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var h=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(h.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var d=assetLoader.getLumaCanvas(this.canvasContext.canvas),v=d.getContext("2d");v.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(d,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(u,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(u){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!u)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var f=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(f),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(f),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(c,u,f,h){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var d=4;u.ty==="rc"?d=5:u.ty==="el"?d=6:u.ty==="sr"&&(d=7),this.sh=ShapePropertyFactory.getShapeProp(c,u,d,c);var v,p=f.length,m;for(v=0;v<p;v+=1)f[v].closed||(m={transforms:h.addTransformSequence(f[v].transforms),trNodes:[]},this.styledShapes.push(m),f[v].elements.push(m))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(c,u){var f={data:c,type:c.ty,preTransforms:this.transformsManager.addTransformSequence(u),transforms:[],elements:[],closed:c.hd===!0},h={};if(c.ty==="fl"||c.ty==="st"?(h.c=PropertyFactory.getProp(this,c.c,1,255,this),h.c.k||(f.co="rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")")):(c.ty==="gf"||c.ty==="gs")&&(h.s=PropertyFactory.getProp(this,c.s,1,null,this),h.e=PropertyFactory.getProp(this,c.e,1,null,this),h.h=PropertyFactory.getProp(this,c.h||{k:0},0,.01,this),h.a=PropertyFactory.getProp(this,c.a||{k:0},0,degToRads,this),h.g=new GradientProperty(this,c.g,this)),h.o=PropertyFactory.getProp(this,c.o,0,.01,this),c.ty==="st"||c.ty==="gs"){if(f.lc=lineCapEnum[c.lc||2],f.lj=lineJoinEnum[c.lj||2],c.lj==1&&(f.ml=c.ml),h.w=PropertyFactory.getProp(this,c.w,0,null,this),h.w.k||(f.wi=h.w.v),c.d){var d=new DashProperty(this,c.d,"canvas",this);h.d=d,h.d.k||(f.da=h.d.dashArray,f.do=h.d.dashoffset[0])}}else f.r=c.r===2?"evenodd":"nonzero";return this.stylesList.push(f),h.style=f,h},CVShapeElement.prototype.createGroupElement=function(){var c={it:[],prevViewData:[]};return c},CVShapeElement.prototype.createTransformElement=function(c){var u={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,c.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,c,this)}};return u},CVShapeElement.prototype.createShapeElement=function(c){var u=new CVShapeData(this,c,this.stylesList,this.transformsManager);return this.shapes.push(u),this.addShapeToModifiers(u),u},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,u=this.itemsData.length;for(c=0;c<u;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),u=this.dynamicProperties.length,c=0;c<u;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(c){var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].closed||this.stylesList[u].transforms.push(c)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var c,u=this.stylesList.length;for(c=0;c<u;c+=1)this.stylesList[c].closed||this.stylesList[c].transforms.pop()},CVShapeElement.prototype.closeStyles=function(c){var u,f=c.length;for(u=0;u<f;u+=1)c[u].closed=!0},CVShapeElement.prototype.searchShapes=function(c,u,f,h,d){var v,p=c.length-1,m,g,y=[],x=[],pn,b,re,_=[].concat(d);for(v=p;v>=0;v-=1){if(pn=this.searchProcessedElement(c[v]),pn?u[v]=f[pn-1]:c[v]._shouldRender=h,c[v].ty==="fl"||c[v].ty==="st"||c[v].ty==="gf"||c[v].ty==="gs")pn?u[v].style.closed=!1:u[v]=this.createStyleElement(c[v],_),y.push(u[v].style);else if(c[v].ty==="gr"){if(!pn)u[v]=this.createGroupElement(c[v]);else for(g=u[v].it.length,m=0;m<g;m+=1)u[v].prevViewData[m]=u[v].it[m];this.searchShapes(c[v].it,u[v].it,u[v].prevViewData,h,_)}else c[v].ty==="tr"?(pn||(re=this.createTransformElement(c[v]),u[v]=re),_.push(u[v]),this.addTransformToStyleList(u[v])):c[v].ty==="sh"||c[v].ty==="rc"||c[v].ty==="el"||c[v].ty==="sr"?pn||(u[v]=this.createShapeElement(c[v])):c[v].ty==="tm"||c[v].ty==="rd"||c[v].ty==="pb"||c[v].ty==="zz"||c[v].ty==="op"?(pn?(b=u[v],b.closed=!1):(b=ShapeModifiers.getModifier(c[v].ty),b.init(this,c[v]),u[v]=b,this.shapeModifiers.push(b)),x.push(b)):c[v].ty==="rp"&&(pn?(b=u[v],b.closed=!0):(b=ShapeModifiers.getModifier(c[v].ty),u[v]=b,b.init(this,c,v,u),this.shapeModifiers.push(b),h=!1),x.push(b));this.addProcessedElement(c[v],v+1)}for(this.removeTransformFromStyleList(),this.closeStyles(y),p=x.length,v=0;v<p;v+=1)x[v].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(c,u){(c._opMdf||u.op._mdf||this._isFirstFrame)&&(u.opacity=c.opacity,u.opacity*=u.op.v,u._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var c,u=this.stylesList.length,f,h,d,v,p,m,g=this.globalData.renderer,y=this.globalData.canvasContext,x,pn;for(c=0;c<u;c+=1)if(pn=this.stylesList[c],x=pn.type,!((x==="st"||x==="gs")&&pn.wi===0||!pn.data._shouldRender||pn.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),p=pn.elements,x==="st"||x==="gs"?(g.ctxStrokeStyle(x==="st"?pn.co:pn.grd),g.ctxLineWidth(pn.wi),g.ctxLineCap(pn.lc),g.ctxLineJoin(pn.lj),g.ctxMiterLimit(pn.ml||0)):g.ctxFillStyle(x==="fl"?pn.co:pn.grd),g.ctxOpacity(pn.coOp),x!=="st"&&x!=="gs"&&y.beginPath(),g.ctxTransform(pn.preTransforms.finalTransform.props),h=p.length,f=0;f<h;f+=1){for((x==="st"||x==="gs")&&(y.beginPath(),pn.da&&(y.setLineDash(pn.da),y.lineDashOffset=pn.do)),m=p[f].trNodes,v=m.length,d=0;d<v;d+=1)m[d].t==="m"?y.moveTo(m[d].p[0],m[d].p[1]):m[d].t==="c"?y.bezierCurveTo(m[d].pts[0],m[d].pts[1],m[d].pts[2],m[d].pts[3],m[d].pts[4],m[d].pts[5]):y.closePath();(x==="st"||x==="gs")&&(g.ctxStroke(),pn.da&&y.setLineDash(this.dashResetter))}x!=="st"&&x!=="gs"&&this.globalData.renderer.ctxFill(pn.r),g.restore()}},CVShapeElement.prototype.renderShape=function(c,u,f,h){var d,v=u.length-1,p;for(p=c,d=v;d>=0;d-=1)u[d].ty==="tr"?(p=f[d].transform,this.renderShapeTransform(c,p)):u[d].ty==="sh"||u[d].ty==="el"||u[d].ty==="rc"||u[d].ty==="sr"?this.renderPath(u[d],f[d]):u[d].ty==="fl"?this.renderFill(u[d],f[d],p):u[d].ty==="st"?this.renderStroke(u[d],f[d],p):u[d].ty==="gf"||u[d].ty==="gs"?this.renderGradientFill(u[d],f[d],p):u[d].ty==="gr"?this.renderShape(p,u[d].it,f[d].it):u[d].ty;h&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(c,u){if(this._isFirstFrame||u._mdf||c.transforms._mdf){var f=c.trNodes,h=u.paths,d,v,p,m=h._length;f.length=0;var g=c.transforms.finalTransform;for(p=0;p<m;p+=1){var y=h.shapes[p];if(y&&y.v){for(v=y._length,d=1;d<v;d+=1)d===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[d],y.v[d])});v===1&&f.push({t:"m",p:g.applyToPointArray(y.v[0][0],y.v[0][1],0)}),y.c&&v&&(f.push({t:"c",pts:g.applyToTriplePoints(y.o[d-1],y.i[0],y.v[0])}),f.push({t:"z"}))}}c.trNodes=f}},CVShapeElement.prototype.renderPath=function(c,u){if(c.hd!==!0&&c._shouldRender){var f,h=u.styledShapes.length;for(f=0;f<h;f+=1)this.renderStyledShape(u.styledShapes[f],u.sh)}},CVShapeElement.prototype.renderFill=function(c,u,f){var h=u.style;(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity)},CVShapeElement.prototype.renderGradientFill=function(c,u,f){var h=u.style,d;if(!h.grd||u.g._mdf||u.s._mdf||u.e._mdf||c.t!==1&&(u.h._mdf||u.a._mdf)){var v=this.globalData.canvasContext,p=u.s.v,m=u.e.v;if(c.t===1)d=v.createLinearGradient(p[0],p[1],m[0],m[1]);else{var g=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),y=Math.atan2(m[1]-p[1],m[0]-p[0]),x=u.h.v;x>=1?x=.99:x<=-1&&(x=-.99);var pn=g*x,b=Math.cos(y+u.a.v)*pn+p[0],re=Math.sin(y+u.a.v)*pn+p[1];d=v.createRadialGradient(b,re,0,p[0],p[1],g)}var _,J=c.g.p,En=u.g.c,gn=1;for(_=0;_<J;_+=1)u.g._hasOpacity&&u.g._collapsable&&(gn=u.g.o[_*2+1]),d.addColorStop(En[_*4]/100,"rgba("+En[_*4+1]+","+En[_*4+2]+","+En[_*4+3]+","+gn+")");h.grd=d}h.coOp=u.o.v*f.opacity},CVShapeElement.prototype.renderStroke=function(c,u,f){var h=u.style,d=u.d;d&&(d._mdf||this._isFirstFrame)&&(h.da=d.dashArray,h.do=d.dashoffset[0]),(u.c._mdf||this._isFirstFrame)&&(h.co="rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||f._opMdf||this._isFirstFrame)&&(h.coOp=u.o.v*f.opacity),(u.w._mdf||this._isFirstFrame)&&(h.wi=u.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(c,u,f){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=!1;c.fc?(u=!0,this.values.fill=this.buildColor(c.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=u;var f=!1;c.sc&&(f=!0,this.values.stroke=this.buildColor(c.sc),this.values.sWidth=c.sw);var h=this.globalData.fontManager.getFontByName(c.f),d,v,p=c.l,m=this.mHelper;this.stroke=f,this.values.fValue=c.finalSize+"px "+this.globalData.fontManager.getFontByName(c.f).fFamily,v=c.finalText.length;var g,y,x,pn,b,re,_,J,En,gn,w=this.data.singleShape,hn=c.tr*.001*c.finalSize,vn=0,Pn=0,Fn=!0,zn=0;for(d=0;d<v;d+=1){g=this.globalData.fontManager.getCharData(c.finalText[d],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),y=g&&g.data||{},m.reset(),w&&p[d].n&&(vn=-hn,Pn+=c.yOffset,Pn+=Fn?1:0,Fn=!1),b=y.shapes?y.shapes[0].it:[],_=b.length,m.scale(c.finalSize/100,c.finalSize/100),w&&this.applyTextPropertiesToMatrix(c,m,p[d].line,vn,Pn),En=createSizedArray(_-1);var Vn=0;for(re=0;re<_;re+=1)if(b[re].ty==="sh"){for(pn=b[re].ks.k.i.length,J=b[re].ks.k,gn=[],x=1;x<pn;x+=1)x===1&&gn.push(m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),gn.push(m.applyToX(J.o[x-1][0],J.o[x-1][1],0),m.applyToY(J.o[x-1][0],J.o[x-1][1],0),m.applyToX(J.i[x][0],J.i[x][1],0),m.applyToY(J.i[x][0],J.i[x][1],0),m.applyToX(J.v[x][0],J.v[x][1],0),m.applyToY(J.v[x][0],J.v[x][1],0));gn.push(m.applyToX(J.o[x-1][0],J.o[x-1][1],0),m.applyToY(J.o[x-1][0],J.o[x-1][1],0),m.applyToX(J.i[0][0],J.i[0][1],0),m.applyToY(J.i[0][0],J.i[0][1],0),m.applyToX(J.v[0][0],J.v[0][1],0),m.applyToY(J.v[0][0],J.v[0][1],0)),En[Vn]=gn,Vn+=1}w&&(vn+=p[d].l,vn+=hn),this.textSpans[zn]?this.textSpans[zn].elem=En:this.textSpans[zn]={elem:En},zn+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var c=this.canvasContext;c.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f,h,d,v,p,m=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;f=g.length;var y,x=null,pn=null,b=null,re,_,J=this.globalData.renderer;for(u=0;u<f;u+=1)if(!g[u].n){if(y=m[u],y&&(J.save(),J.ctxTransform(y.p),J.ctxOpacity(y.o)),this.fill){for(y&&y.fc?x!==y.fc&&(J.ctxFillStyle(y.fc),x=y.fc):x!==this.values.fill&&(x=this.values.fill,J.ctxFillStyle(this.values.fill)),re=this.textSpans[u].elem,d=re.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=re[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),J.ctxFill()}if(this.stroke){for(y&&y.sw?b!==y.sw&&(b=y.sw,J.ctxLineWidth(y.sw)):b!==this.values.sWidth&&(b=this.values.sWidth,J.ctxLineWidth(this.values.sWidth)),y&&y.sc?pn!==y.sc&&(pn=y.sc,J.ctxStrokeStyle(y.sc)):pn!==this.values.stroke&&(pn=this.values.stroke,J.ctxStrokeStyle(this.values.stroke)),re=this.textSpans[u].elem,d=re.length,this.globalData.canvasContext.beginPath(),h=0;h<d;h+=1)for(_=re[h],p=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),v=2;v<p;v+=6)this.globalData.canvasContext.bezierCurveTo(_[v],_[v+1],_[v+2],_[v+3],_[v+4],_[v+5]);this.globalData.canvasContext.closePath(),J.ctxStroke()}y&&this.globalData.renderer.restore()}};function CVImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.img=u.imageLoader.getAsset(this.assetData),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var c=createTag("canvas");c.width=this.assetData.w,c.height=this.assetData.h;var u=c.getContext("2d"),f=this.img.width,h=this.img.height,d=f/h,v=this.assetData.w/this.assetData.h,p,m,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;d>v&&g==="xMidYMid slice"||d<v&&g!=="xMidYMid slice"?(m=h,p=m*v):(p=f,m=p/v),u.drawImage(this.img,(f-p)/2,(h-m)/2,p,m,0,0,this.assetData.w,this.assetData.h),this.img=c}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(c){return new CVShapeElement(c,this.globalData,this)},CanvasRendererBase.prototype.createText=function(c){return new CVTextElement(c,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(c){return new CVImageElement(c,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(c){return new CVSolidElement(c,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(c){c[0]===1&&c[1]===0&&c[4]===0&&c[5]===1&&c[12]===0&&c[13]===0||this.canvasContext.transform(c[0],c[1],c[4],c[5],c[12],c[13])},CanvasRendererBase.prototype.ctxOpacity=function(c){this.canvasContext.globalAlpha*=c<0?0:c},CanvasRendererBase.prototype.ctxFillStyle=function(c){this.canvasContext.fillStyle=c},CanvasRendererBase.prototype.ctxStrokeStyle=function(c){this.canvasContext.strokeStyle=c},CanvasRendererBase.prototype.ctxLineWidth=function(c){this.canvasContext.lineWidth=c},CanvasRendererBase.prototype.ctxLineCap=function(c){this.canvasContext.lineCap=c},CanvasRendererBase.prototype.ctxLineJoin=function(c){this.canvasContext.lineJoin=c},CanvasRendererBase.prototype.ctxMiterLimit=function(c){this.canvasContext.miterLimit=c},CanvasRendererBase.prototype.ctxFill=function(c){this.canvasContext.fill(c)},CanvasRendererBase.prototype.ctxFillRect=function(c,u,f,h){this.canvasContext.fillRect(c,u,f,h)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(c){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}c&&(this.globalData.blendMode="source-over"),this.contextData.restore(c)},CanvasRendererBase.prototype.configAnimation=function(c){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var u=this.animationItem.container.style;u.width="100%",u.height="100%";var f="0px 0px 0px";u.transformOrigin=f,u.mozTransformOrigin=f,u.webkitTransformOrigin=f,u["-webkit-transform"]=f,u.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=c,this.layers=c.layers,this.transformCanvas={w:c.w,h:c.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(c,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(c.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(c,u){this.reset();var f,h;c?(f=c,h=u,this.canvasContext.canvas.width=f,this.canvasContext.canvas.height=h):(this.animationItem.wrapper&&this.animationItem.container?(f=this.animationItem.wrapper.offsetWidth,h=this.animationItem.wrapper.offsetHeight):(f=this.canvasContext.canvas.width,h=this.canvasContext.canvas.height),this.canvasContext.canvas.width=f*this.renderConfig.dpr,this.canvasContext.canvas.height=h*this.renderConfig.dpr);var d,v;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var p=this.renderConfig.preserveAspectRatio.split(" "),m=p[1]||"meet",g=p[0]||"xMidYMid",y=g.substr(0,4),x=g.substr(4);d=f/h,v=this.transformCanvas.w/this.transformCanvas.h,v>d&&m==="meet"||v<d&&m==="slice"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=f/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr)),y==="xMid"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))/2*this.renderConfig.dpr:y==="xMax"&&(v<d&&m==="meet"||v>d&&m==="slice")?this.transformCanvas.tx=(f-this.transformCanvas.w*(h/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,x==="YMid"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))/2*this.renderConfig.dpr:x==="YMax"&&(v>d&&m==="meet"||v<d&&m==="slice")?this.transformCanvas.ty=(h-this.transformCanvas.h*(f/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=f/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=h/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var c,u=this.layers?this.layers.length:0;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(c,u){if(!(this.renderedFrame===c&&this.renderConfig.clearCanvas===!0&&!u||this.destroyed||c===-1)){this.renderedFrame=c,this.globalData.frameNum=c-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||u,this.globalData.projectInterface.currentFrame=c;var f,h=this.layers.length;for(this.completeLayers||this.checkLayers(c),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(c-this.layers[f].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),f=h-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(c){var u=this.elements;if(!(u[c]||this.layers[c].ty===99)){var f=this.createItem(this.layers[c],this,this.globalData);u[c]=f,f.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var c,u=15;for(c=0;c<u;c+=1){var f=new CanvasContext;this.stack[c]=f}this._length=u,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var c=this._length*2,u=0;for(u=this._length;u<c;u+=1)this.stack[u]=new CanvasContext;this._length=c},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(c){this.cArrPos-=1;var u=this.stack[this.cArrPos],f=u.transform,h,d=this.cTr.props;for(h=0;h<16;h+=1)d[h]=f[h];if(c){this.nativeContext.restore();var v=this.stack[this.cArrPos+1];this.appliedFillStyle=v.fillStyle,this.appliedStrokeStyle=v.strokeStyle,this.appliedLineWidth=v.lineWidth,this.appliedLineCap=v.lineCap,this.appliedLineJoin=v.lineJoin,this.appliedMiterLimit=v.miterLimit}this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13]),(c||u.opacity!==-1&&this.currentOpacity!==u.opacity)&&(this.nativeContext.globalAlpha=u.opacity,this.currentOpacity=u.opacity),this.currentFillStyle=u.fillStyle,this.currentStrokeStyle=u.strokeStyle,this.currentLineWidth=u.lineWidth,this.currentLineCap=u.lineCap,this.currentLineJoin=u.lineJoin,this.currentMiterLimit=u.miterLimit},CVContextData.prototype.save=function(c){c&&this.nativeContext.save();var u=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var f=this.stack[this.cArrPos],h;for(h=0;h<16;h+=1)f.transform[h]=u[h];this.cArrPos+=1;var d=this.stack[this.cArrPos];d.opacity=f.opacity,d.fillStyle=f.fillStyle,d.strokeStyle=f.strokeStyle,d.lineWidth=f.lineWidth,d.lineCap=f.lineCap,d.lineJoin=f.lineJoin,d.miterLimit=f.miterLimit},CVContextData.prototype.setOpacity=function(c){this.stack[this.cArrPos].opacity=c},CVContextData.prototype.setContext=function(c){this.nativeContext=c},CVContextData.prototype.fillStyle=function(c){this.stack[this.cArrPos].fillStyle!==c&&(this.currentFillStyle=c,this.stack[this.cArrPos].fillStyle=c)},CVContextData.prototype.strokeStyle=function(c){this.stack[this.cArrPos].strokeStyle!==c&&(this.currentStrokeStyle=c,this.stack[this.cArrPos].strokeStyle=c)},CVContextData.prototype.lineWidth=function(c){this.stack[this.cArrPos].lineWidth!==c&&(this.currentLineWidth=c,this.stack[this.cArrPos].lineWidth=c)},CVContextData.prototype.lineCap=function(c){this.stack[this.cArrPos].lineCap!==c&&(this.currentLineCap=c,this.stack[this.cArrPos].lineCap=c)},CVContextData.prototype.lineJoin=function(c){this.stack[this.cArrPos].lineJoin!==c&&(this.currentLineJoin=c,this.stack[this.cArrPos].lineJoin=c)},CVContextData.prototype.miterLimit=function(c){this.stack[this.cArrPos].miterLimit!==c&&(this.currentMiterLimit=c,this.stack[this.cArrPos].miterLimit=c)},CVContextData.prototype.transform=function(c){this.transformMat.cloneFromProps(c);var u=this.cTr;this.transformMat.multiply(u),u.cloneFromProps(this.transformMat.props);var f=u.props;this.nativeContext.setTransform(f[0],f[1],f[4],f[5],f[12],f[13])},CVContextData.prototype.opacity=function(c){var u=this.stack[this.cArrPos].opacity;u*=c<0?0:c,this.stack[this.cArrPos].opacity!==u&&(this.currentOpacity!==c&&(this.nativeContext.globalAlpha=c,this.currentOpacity=c),this.stack[this.cArrPos].opacity=u)},CVContextData.prototype.fill=function(c){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(c)},CVContextData.prototype.fillRect=function(c,u,f,h){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(c,u,f,h)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(c,u,f){this.completeLayers=!1,this.layers=c.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var c=this.canvasContext;c.beginPath(),c.moveTo(0,0),c.lineTo(this.data.w,0),c.lineTo(this.data.w,this.data.h),c.lineTo(0,this.data.h),c.lineTo(0,0),c.clip();var u,f=this.layers.length;for(u=f-1;u>=0;u-=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},CVCompElement.prototype.destroy=function(){var c,u=this.layers.length;for(c=u-1;c>=0;c-=1)this.elements[c]&&this.elements[c].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function CanvasRenderer(c,u){this.animationItem=c,this.renderConfig={clearCanvas:u&&u.clearCanvas!==void 0?u.clearCanvas:!0,context:u&&u.context||null,progressiveLoad:u&&u.progressiveLoad||!1,preserveAspectRatio:u&&u.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:u&&u.contentVisibility||"visible",className:u&&u.className||"",id:u&&u.id||"",runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.renderConfig.dpr=u&&u.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=u&&u.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(c){return new CVCompElement(c,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var u=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var f=this.finalTransform.mat.toCSS();u.transform=f,u.webkitTransform=f}this.finalTransform._opMdf&&(u.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(c,u,f){this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var c;this.data.hasMask?(c=createNS("rect"),c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(c=createTag("div"),c.style.width=this.data.sw+"px",c.style.height=this.data.sh+"px",c.style.backgroundColor=this.data.sc),this.layerElement.appendChild(c)};function HShapeElement(c,u,f){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(c,u,f),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var c;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),c=this.svgElement;else{c=createNS("svg");var u=this.comp.data?this.comp.data:this.globalData.compSize;c.setAttribute("width",u.w),c.setAttribute("height",u.h),c.appendChild(this.shapesContainer),this.layerElement.appendChild(c)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=c},HShapeElement.prototype.getTransformedPoint=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)u=c[f].mProps.v.applyToPointArray(u[0],u[1],0);return u},HShapeElement.prototype.calculateShapeBoundingBox=function(c,u){var f=c.sh.v,h=c.transformers,d,v=f._length,p,m,g,y;if(!(v<=1)){for(d=0;d<v-1;d+=1)p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[d+1]),y=this.getTransformedPoint(h,f.v[d+1]),this.checkBounds(p,m,g,y,u);f.c&&(p=this.getTransformedPoint(h,f.v[d]),m=this.getTransformedPoint(h,f.o[d]),g=this.getTransformedPoint(h,f.i[0]),y=this.getTransformedPoint(h,f.v[0]),this.checkBounds(p,m,g,y,u))}},HShapeElement.prototype.checkBounds=function(c,u,f,h,d){this.getBoundsOfCurve(c,u,f,h);var v=this.shapeBoundingBox;d.x=bmMin(v.left,d.x),d.xMax=bmMax(v.right,d.xMax),d.y=bmMin(v.top,d.y),d.yMax=bmMax(v.bottom,d.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(c,u,f,h){for(var d=[[c[0],h[0]],[c[1],h[1]]],v,p,m,g,y,x,pn,b=0;b<2;++b)p=6*c[b]-12*u[b]+6*f[b],v=-3*c[b]+9*u[b]-9*f[b]+3*h[b],m=3*u[b]-3*c[b],p|=0,v|=0,m|=0,v===0&&p===0||(v===0?(g=-m/p,g>0&&g<1&&d[b].push(this.calculateF(g,c,u,f,h,b))):(y=p*p-4*m*v,y>=0&&(x=(-p+bmSqrt(y))/(2*v),x>0&&x<1&&d[b].push(this.calculateF(x,c,u,f,h,b)),pn=(-p-bmSqrt(y))/(2*v),pn>0&&pn<1&&d[b].push(this.calculateF(pn,c,u,f,h,b)))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(c,u,f,h,d,v){return bmPow(1-c,3)*u[v]+3*bmPow(1-c,2)*c*f[v]+3*(1-c)*bmPow(c,2)*h[v]+bmPow(c,3)*d[v]},HShapeElement.prototype.calculateBoundingBox=function(c,u){var f,h=c.length;for(f=0;f<h;f+=1)c[f]&&c[f].sh?this.calculateShapeBoundingBox(c[f],u):c[f]&&c[f].it?this.calculateBoundingBox(c[f].it,u):c[f]&&c[f].style&&c[f].w&&this.expandStrokeBoundingBox(c[f].w,u)},HShapeElement.prototype.expandStrokeBoundingBox=function(c,u){var f=0;if(c.keyframes){for(var h=0;h<c.keyframes.length;h+=1){var d=c.keyframes[h].s;d>f&&(f=d)}f*=c.mult}else f=c.v*c.mult;u.x-=f,u.xMax+=f,u.y-=f,u.yMax+=f},HShapeElement.prototype.currentBoxContains=function(c){return this.currentBBox.x<=c.x&&this.currentBBox.y<=c.y&&this.currentBBox.width+this.currentBBox.x>=c.x+c.width&&this.currentBBox.height+this.currentBBox.y>=c.y+c.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.tempBoundingBox,u=999999;if(c.x=u,c.xMax=-u,c.y=u,c.yMax=-u,this.calculateBoundingBox(this.itemsData,c),c.width=c.xMax<c.x?0:c.xMax-c.x,c.height=c.yMax<c.y?0:c.yMax-c.y,this.currentBoxContains(c))return;var f=!1;if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.shapeCont.setAttribute("width",c.width),f=!0),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.shapeCont.setAttribute("height",c.height),f=!0),f||this.currentBBox.x!==c.x||this.currentBBox.y!==c.y){this.currentBBox.w=c.width,this.currentBBox.h=c.height,this.currentBBox.x=c.x,this.currentBBox.y=c.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var h=this.shapeCont.style,d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";h.transform=d,h.webkitTransform=d}}};function HTextElement(c,u,f){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var c=createNS("g");this.maskedElement.appendChild(c),this.innerElem=c}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var c=this.textProperty.currentData;this.renderedLetters=createSizedArray(c.l?c.l.length:0);var u=this.innerElem.style,f=c.fc?this.buildColor(c.fc):"rgba(0,0,0,0)";u.fill=f,u.color=f,c.sc&&(u.stroke=this.buildColor(c.sc),u.strokeWidth=c.sw+"px");var h=this.globalData.fontManager.getFontByName(c.f);if(!this.globalData.fontManager.chars)if(u.fontSize=c.finalSize+"px",u.lineHeight=c.finalSize+"px",h.fClass)this.innerElem.className=h.fClass;else{u.fontFamily=h.fFamily;var d=c.fWeight,v=c.fStyle;u.fontStyle=v,u.fontWeight=d}var p,m,g=c.l;m=g.length;var y,x,pn,b=this.mHelper,re,_="",J=0;for(p=0;p<m;p+=1){if(this.globalData.fontManager.chars?(this.textPaths[J]?y=this.textPaths[J]:(y=createNS("path"),y.setAttribute("stroke-linecap",lineCapEnum[1]),y.setAttribute("stroke-linejoin",lineJoinEnum[2]),y.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[J]?(x=this.textSpans[J],pn=x.children[0]):(x=createTag("div"),x.style.lineHeight=0,pn=createNS("svg"),pn.appendChild(y),styleDiv(x)))):this.isMasked?y=this.textPaths[J]?this.textPaths[J]:createNS("text"):this.textSpans[J]?(x=this.textSpans[J],y=this.textPaths[J]):(x=createTag("span"),styleDiv(x),y=createTag("span"),styleDiv(y),x.appendChild(y)),this.globalData.fontManager.chars){var En=this.globalData.fontManager.getCharData(c.finalText[p],h.fStyle,this.globalData.fontManager.getFontByName(c.f).fFamily),gn;if(En?gn=En.data:gn=null,b.reset(),gn&&gn.shapes&&gn.shapes.length&&(re=gn.shapes[0].it,b.scale(c.finalSize/100,c.finalSize/100),_=this.createPathShape(b,re),y.setAttribute("d",_)),this.isMasked)this.innerElem.appendChild(y);else{if(this.innerElem.appendChild(x),gn&&gn.shapes){document.body.appendChild(pn);var w=pn.getBBox();pn.setAttribute("width",w.width+2),pn.setAttribute("height",w.height+2),pn.setAttribute("viewBox",w.x-1+" "+(w.y-1)+" "+(w.width+2)+" "+(w.height+2));var hn=pn.style,vn="translate("+(w.x-1)+"px,"+(w.y-1)+"px)";hn.transform=vn,hn.webkitTransform=vn,g[p].yOffset=w.y-1}else pn.setAttribute("width",1),pn.setAttribute("height",1);x.appendChild(pn)}}else if(y.textContent=g[p].val,y.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(y);else{this.innerElem.appendChild(x);var Pn=y.style,Fn="translate3d(0,"+-c.finalSize/1.2+"px,0)";Pn.transform=Fn,Pn.webkitTransform=Fn}this.isMasked?this.textSpans[J]=y:this.textSpans[J]=x,this.textSpans[J].style.display="block",this.textPaths[J]=y,J+=1}for(;J<this.textSpans.length;)this.textSpans[J].style.display="none",J+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var c;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),c=this.svgElement.style;var u="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";c.transform=u,c.webkitTransform=u}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var f,h,d=0,v=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;h=p.length;var m,g,y;for(f=0;f<h;f+=1)p[f].n?d+=1:(g=this.textSpans[f],y=this.textPaths[f],m=v[d],d+=1,m._mdf.m&&(this.isMasked?g.setAttribute("transform",m.m):(g.style.webkitTransform=m.m,g.style.transform=m.m)),g.style.opacity=m.o,m.sw&&m._mdf.sw&&y.setAttribute("stroke-width",m.sw),m.sc&&m._mdf.sc&&y.setAttribute("stroke",m.sc),m.fc&&m._mdf.fc&&(y.setAttribute("fill",m.fc),y.style.color=m.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var x=this.innerElem.getBBox();this.currentBBox.w!==x.width&&(this.currentBBox.w=x.width,this.svgElement.setAttribute("width",x.width)),this.currentBBox.h!==x.height&&(this.currentBBox.h=x.height,this.svgElement.setAttribute("height",x.height));var pn=1;if(this.currentBBox.w!==x.width+pn*2||this.currentBBox.h!==x.height+pn*2||this.currentBBox.x!==x.x-pn||this.currentBBox.y!==x.y-pn){this.currentBBox.w=x.width+pn*2,this.currentBBox.h=x.height+pn*2,this.currentBBox.x=x.x-pn,this.currentBBox.y=x.y-pn,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),c=this.svgElement.style;var b="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";c.transform=b,c.webkitTransform=b}}}};function HCameraElement(c,u,f){this.initFrame(),this.initBaseData(c,u,f),this.initHierarchy();var h=PropertyFactory.getProp;if(this.pe=h(this,c.pe,0,0,this),c.ks.p.s?(this.px=h(this,c.ks.p.x,1,0,this),this.py=h(this,c.ks.p.y,1,0,this),this.pz=h(this,c.ks.p.z,1,0,this)):this.p=h(this,c.ks.p,1,0,this),c.ks.a&&(this.a=h(this,c.ks.a,1,0,this)),c.ks.or.k.length&&c.ks.or.k[0].to){var d,v=c.ks.or.k.length;for(d=0;d<v;d+=1)c.ks.or.k[d].to=null,c.ks.or.k[d].ti=null}this.or=h(this,c.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=h(this,c.ks.rx,0,degToRads,this),this.ry=h(this,c.ks.ry,0,degToRads,this),this.rz=h(this,c.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var c,u=this.comp.threeDElements.length,f,h,d;for(c=0;c<u;c+=1)if(f=this.comp.threeDElements[c],f.type==="3d"){h=f.perspectiveElem.style,d=f.container.style;var v=this.pe.v+"px",p="0px 0px 0px",m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";h.perspective=v,h.webkitPerspective=v,d.transformOrigin=p,d.mozTransformOrigin=p,d.webkitTransformOrigin=p,h.transform=m,h.webkitTransform=m}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var c=this._isFirstFrame,u,f;if(this.hierarchy)for(f=this.hierarchy.length,u=0;u<f;u+=1)c=this.hierarchy[u].finalTransform.mProp._mdf||c;if(c||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(f=this.hierarchy.length-1,u=f;u>=0;u-=1){var h=this.hierarchy[u].finalTransform.mProp;this.mat.translate(-h.p.v[0],-h.p.v[1],h.p.v[2]),this.mat.rotateX(-h.or.v[0]).rotateY(-h.or.v[1]).rotateZ(h.or.v[2]),this.mat.rotateX(-h.rx.v).rotateY(-h.ry.v).rotateZ(h.rz.v),this.mat.scale(1/h.s.v[0],1/h.s.v[1],1/h.s.v[2]),this.mat.translate(h.a.v[0],h.a.v[1],h.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var d;this.p?d=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:d=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var v=Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2)+Math.pow(d[2],2)),p=[d[0]/v,d[1]/v,d[2]/v],m=Math.sqrt(p[2]*p[2]+p[0]*p[0]),g=Math.atan2(p[1],m),y=Math.atan2(p[0],-p[2]);this.mat.rotateY(y).rotateX(-g)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var x=!this._prevMat.equals(this.mat);if((x||this.pe._mdf)&&this.comp.threeDElements){f=this.comp.threeDElements.length;var pn,b,re;for(u=0;u<f;u+=1)if(pn=this.comp.threeDElements[u],pn.type==="3d"){if(x){var _=this.mat.toCSS();re=pn.container.style,re.transform=_,re.webkitTransform=_}this.pe._mdf&&(b=pn.perspectiveElem.style,b.perspective=this.pe.v+"px",b.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(c,u,f){this.assetData=u.getAssetData(c.refId),this.initElement(c,u,f)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData),u=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(u),u.crossOrigin="anonymous",u.src=c,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();c.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(c,u){var f=c.getBaseElement();if(f){var h=this.layers[u];if(!h.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(f,u);else{for(var d=0,v,p,m;d<u;)this.elements[d]&&this.elements[d]!==!0&&this.elements[d].getBaseElement&&(p=this.elements[d],m=this.layers[d].ddd?this.getThreeDContainerByPos(d):p.getBaseElement(),v=m||v),d+=1;v?(!h.ddd||!this.supports3d)&&this.layerElement.insertBefore(f,v):(!h.ddd||!this.supports3d)&&this.layerElement.appendChild(f)}else this.addTo3dContainer(f,u)}},HybridRendererBase.prototype.createShape=function(c){return this.supports3d?new HShapeElement(c,this.globalData,this):new SVGShapeElement(c,this.globalData,this)},HybridRendererBase.prototype.createText=function(c){return this.supports3d?new HTextElement(c,this.globalData,this):new SVGTextLottieElement(c,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(c){return this.camera=new HCameraElement(c,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(c){return this.supports3d?new HImageElement(c,this.globalData,this):new IImageElement(c,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(c){return this.supports3d?new HSolidElement(c,this.globalData,this):new ISolidElement(c,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(c){for(var u=0,f=this.threeDElements.length;u<f;){if(this.threeDElements[u].startPos<=c&&this.threeDElements[u].endPos>=c)return this.threeDElements[u].perspectiveElem;u+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(c,u){var f=createTag("div"),h,d;styleDiv(f);var v=createTag("div");if(styleDiv(v),u==="3d"){h=f.style,h.width=this.globalData.compSize.w+"px",h.height=this.globalData.compSize.h+"px";var p="50% 50%";h.webkitTransformOrigin=p,h.mozTransformOrigin=p,h.transformOrigin=p,d=v.style;var m="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";d.transform=m,d.webkitTransform=m}f.appendChild(v);var g={container:v,perspectiveElem:f,startPos:c,endPos:c,type:u};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var c,u=this.layers.length,f,h="";for(c=0;c<u;c+=1)this.layers[c].ddd&&this.layers[c].ty!==3?(h!=="3d"&&(h="3d",f=this.createThreeDContainer(c,"3d")),f.endPos=Math.max(f.endPos,c)):(h!=="2d"&&(h="2d",f=this.createThreeDContainer(c,"2d")),f.endPos=Math.max(f.endPos,c));for(u=this.threeDElements.length,c=u-1;c>=0;c-=1)this.resizerElem.appendChild(this.threeDElements[c].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(c,u){for(var f=0,h=this.threeDElements.length;f<h;){if(u<=this.threeDElements[f].endPos){for(var d=this.threeDElements[f].startPos,v;d<u;)this.elements[d]&&this.elements[d].getBaseElement&&(v=this.elements[d].getBaseElement()),d+=1;v?this.threeDElements[f].container.insertBefore(c,v):this.threeDElements[f].container.appendChild(c);break}f+=1}},HybridRendererBase.prototype.configAnimation=function(c){var u=createTag("div"),f=this.animationItem.wrapper,h=u.style;h.width=c.w+"px",h.height=c.h+"px",this.resizerElem=u,styleDiv(u),h.transformStyle="flat",h.mozTransformStyle="flat",h.webkitTransformStyle="flat",this.renderConfig.className&&u.setAttribute("class",this.renderConfig.className),f.appendChild(u),h.overflow="hidden";var d=createNS("svg");d.setAttribute("width","1"),d.setAttribute("height","1"),styleDiv(d),this.resizerElem.appendChild(d);var v=createNS("defs");d.appendChild(v),this.data=c,this.setupGlobalData(c,d),this.globalData.defs=v,this.layers=c.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var c,u=this.layers?this.layers.length:0;for(c=0;c<u;c+=1)this.elements[c]&&this.elements[c].destroy&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var c=this.animationItem.wrapper.offsetWidth,u=this.animationItem.wrapper.offsetHeight,f=c/u,h=this.globalData.compSize.w/this.globalData.compSize.h,d,v,p,m;h>f?(d=c/this.globalData.compSize.w,v=c/this.globalData.compSize.w,p=0,m=(u-this.globalData.compSize.h*(c/this.globalData.compSize.w))/2):(d=u/this.globalData.compSize.h,v=u/this.globalData.compSize.h,p=(c-this.globalData.compSize.w*(u/this.globalData.compSize.h))/2,m=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+d+",0,0,0,0,"+v+",0,0,0,0,1,0,"+p+","+m+",0,1)",g.transform=g.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var c=this.globalData.compSize.w,u=this.globalData.compSize.h,f,h=this.threeDElements.length;for(f=0;f<h;f+=1){var d=this.threeDElements[f].perspectiveElem.style;d.webkitPerspective=Math.sqrt(Math.pow(c,2)+Math.pow(u,2))+"px",d.perspective=d.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(c){var u,f=c.length,h=createTag("div");for(u=0;u<f;u+=1)if(c[u].xt){var d=this.createComp(c[u],h,this.globalData.comp,null);d.initExpressions(),this.globalData.projectInterface.registerComposition(d)}};function HCompElement(c,u,f){this.layers=c.layers,this.supports3d=!c.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(c,u,f),this.tm=c.tm?PropertyFactory.getProp(this,c.tm,0,u.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(c,u){for(var f=0,h;f<u;)this.elements[f]&&this.elements[f].getBaseElement&&(h=this.elements[f].getBaseElement()),f+=1;h?this.layerElement.insertBefore(c,h):this.layerElement.appendChild(c)},HCompElement.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};function HybridRenderer(c,u){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:u&&u.className||"",imagePreserveAspectRatio:u&&u.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(u&&u.hideOnTransparent===!1),filterSize:{width:u&&u.filterSize&&u.filterSize.width||"400%",height:u&&u.filterSize&&u.filterSize.height||"400%",x:u&&u.filterSize&&u.filterSize.x||"-100%",y:u&&u.filterSize&&u.filterSize.y||"-100%"},runExpressions:!u||u.runExpressions===void 0||u.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(c){return this.supports3d?new HCompElement(c,this.globalData,this):new SVGCompElement(c,this.globalData,this)};var CompExpressionInterface=function(){return function(c){function u(f){for(var h=0,d=c.layers.length;h<d;){if(c.layers[h].nm===f||c.layers[h].ind===f)return c.elements[h].layerInterface;h+=1}return null}return Object.defineProperty(u,"_name",{value:c.data.nm}),u.layer=u,u.pixelAspect=1,u.height=c.data.h||c.globalData.compSize.h,u.width=c.data.w||c.globalData.compSize.w,u.pixelAspect=1,u.frameDuration=1/c.globalData.frameRate,u.displayStartTime=0,u.numLayers=c.layers.length,u}}();function _typeof$2(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(f){return typeof f}:_typeof$2=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$2(c)}function seedRandom(c,u){var f=this,h=256,d=6,v=52,p="random",m=u.pow(h,d),g=u.pow(2,v),y=g*2,x=h-1,pn;function b(hn,vn,Pn){var Fn=[];vn=vn===!0?{entropy:!0}:vn||{};var zn=En(J(vn.entropy?[hn,w(c)]:hn===null?gn():hn,3),Fn),Vn=new re(Fn),Yn=function(){for(var Un=Vn.g(d),Kn=m,Hn=0;Un<g;)Un=(Un+Hn)*h,Kn*=h,Hn=Vn.g(1);for(;Un>=y;)Un/=2,Kn/=2,Hn>>>=1;return(Un+Hn)/Kn};return Yn.int32=function(){return Vn.g(4)|0},Yn.quick=function(){return Vn.g(4)/4294967296},Yn.double=Yn,En(w(Vn.S),c),(vn.pass||Pn||function(Gn,Un,Kn,Hn){return Hn&&(Hn.S&&_(Hn,Vn),Gn.state=function(){return _(Vn,{})}),Kn?(u[p]=Gn,Un):Gn})(Yn,zn,"global"in vn?vn.global:this==u,vn.state)}u["seed"+p]=b;function re(hn){var vn,Pn=hn.length,Fn=this,zn=0,Vn=Fn.i=Fn.j=0,Yn=Fn.S=[];for(Pn||(hn=[Pn++]);zn<h;)Yn[zn]=zn++;for(zn=0;zn<h;zn++)Yn[zn]=Yn[Vn=x&Vn+hn[zn%Pn]+(vn=Yn[zn])],Yn[Vn]=vn;Fn.g=function(Gn){for(var Un,Kn=0,Hn=Fn.i,Qn=Fn.j,Zn=Fn.S;Gn--;)Un=Zn[Hn=x&Hn+1],Kn=Kn*h+Zn[x&(Zn[Hn]=Zn[Qn=x&Qn+Un])+(Zn[Qn]=Un)];return Fn.i=Hn,Fn.j=Qn,Kn}}function _(hn,vn){return vn.i=hn.i,vn.j=hn.j,vn.S=hn.S.slice(),vn}function J(hn,vn){var Pn=[],Fn=_typeof$2(hn),zn;if(vn&&Fn=="object")for(zn in hn)try{Pn.push(J(hn[zn],vn-1))}catch{}return Pn.length?Pn:Fn=="string"?hn:hn+"\0"}function En(hn,vn){for(var Pn=hn+"",Fn,zn=0;zn<Pn.length;)vn[x&zn]=x&(Fn^=vn[x&zn]*19)+Pn.charCodeAt(zn++);return w(vn)}function gn(){try{var hn=new Uint8Array(h);return(f.crypto||f.msCrypto).getRandomValues(hn),w(hn)}catch{var vn=f.navigator,Pn=vn&&vn.plugins;return[+new Date,f,Pn,f.screen,w(c)]}}function w(hn){return String.fromCharCode.apply(0,hn)}En(u.random(),c)}function initialize$2(c){seedRandom([],c)}var propTypes={SHAPE:"shape"};function _typeof$1(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(f){return typeof f}:_typeof$1=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof$1(c)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(c){return c.constructor===Array||c.constructor===Float32Array}function isNumerable(c,u){return c==="number"||u instanceof Number||c==="boolean"||c==="string"}function $bm_neg(c){var u=_typeof$1(c);if(u==="number"||c instanceof Number||u==="boolean")return-c;if($bm_isInstanceOfArray(c)){var f,h=c.length,d=[];for(f=0;f<h;f+=1)d[f]=-c[f];return d}return c.propType?c.v:-c}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u)||f==="string"||h==="string")return c+u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]+=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c+u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]+u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}var add=sum;function sub(c,u){var f=_typeof$1(c),h=_typeof$1(u);if(isNumerable(f,c)&&isNumerable(h,u))return f==="string"&&(c=parseInt(c,10)),h==="string"&&(u=parseInt(u,10)),c-u;if($bm_isInstanceOfArray(c)&&isNumerable(h,u))return c=c.slice(0),c[0]-=u,c;if(isNumerable(f,c)&&$bm_isInstanceOfArray(u))return u=u.slice(0),u[0]=c-u[0],u;if($bm_isInstanceOfArray(c)&&$bm_isInstanceOfArray(u)){for(var d=0,v=c.length,p=u.length,m=[];d<v||d<p;)(typeof c[d]=="number"||c[d]instanceof Number)&&(typeof u[d]=="number"||u[d]instanceof Number)?m[d]=c[d]-u[d]:m[d]=u[d]===void 0?c[d]:c[d]||u[d],d+=1;return m}return 0}function mul(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c*u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]*u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c*u[v];return d}return 0}function div(c,u){var f=_typeof$1(c),h=_typeof$1(u),d;if(isNumerable(f,c)&&isNumerable(h,u))return c/u;var v,p;if($bm_isInstanceOfArray(c)&&isNumerable(h,u)){for(p=c.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c[v]/u;return d}if(isNumerable(f,c)&&$bm_isInstanceOfArray(u)){for(p=u.length,d=createTypedArray("float32",p),v=0;v<p;v+=1)d[v]=c/u[v];return d}return 0}function mod(c,u){return typeof c=="string"&&(c=parseInt(c,10)),typeof u=="string"&&(u=parseInt(u,10)),c%u}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(c,u,f){if(u>f){var h=f;f=u,u=h}return Math.min(Math.max(c,u),f)}function radiansToDegrees(c){return c/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(c){return c*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(c,u){if(typeof c=="number"||c instanceof Number)return u=u||0,Math.abs(c-u);u||(u=helperLengthArray);var f,h=Math.min(c.length,u.length),d=0;for(f=0;f<h;f+=1)d+=Math.pow(u[f]-c[f],2);return Math.sqrt(d)}function normalize(c){return div(c,length(c))}function rgbToHsl(c){var u=c[0],f=c[1],h=c[2],d=Math.max(u,f,h),v=Math.min(u,f,h),p,m,g=(d+v)/2;if(d===v)p=0,m=0;else{var y=d-v;switch(m=g>.5?y/(2-d-v):y/(d+v),d){case u:p=(f-h)/y+(f<h?6:0);break;case f:p=(h-u)/y+2;break;case h:p=(u-f)/y+4;break}p/=6}return[p,m,g,c[3]]}function hue2rgb(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}function hslToRgb(c){var u=c[0],f=c[1],h=c[2],d,v,p;if(f===0)d=h,p=h,v=h;else{var m=h<.5?h*(1+f):h+f-h*f,g=2*h-m;d=hue2rgb(g,m,u+1/3),v=hue2rgb(g,m,u),p=hue2rgb(g,m,u-1/3)}return[d,v,p,c[3]]}function linear(c,u,f,h,d){if((h===void 0||d===void 0)&&(h=u,d=f,u=0,f=1),f<u){var v=f;f=u,u=v}if(c<=u)return h;if(c>=f)return d;var p=f===u?0:(c-u)/(f-u);if(!h.length)return h+(d-h)*p;var m,g=h.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=h[m]+(d[m]-h[m])*p;return y}function random(c,u){if(u===void 0&&(c===void 0?(c=0,u=1):(u=c,c=void 0)),u.length){var f,h=u.length;c||(c=createTypedArray("float32",h));var d=createTypedArray("float32",h),v=BMMath.random();for(f=0;f<h;f+=1)d[f]=c[f]+v*(u[f]-c[f]);return d}c===void 0&&(c=0);var p=BMMath.random();return c+p*(u-c)}function createPath(c,u,f,h){var d,v=c.length,p=shapePool.newElement();p.setPathData(!!h,v);var m=[0,0],g,y;for(d=0;d<v;d+=1)g=u&&u[d]?u[d]:m,y=f&&f[d]?f[d]:m,p.setTripleAt(c[d][0],c[d][1],y[0]+c[d][0],y[1]+c[d][1],g[0]+c[d][0],g[1]+c[d][1],d,!0);return p}function initiateExpression(elem,data,property){function noOp(c){return c}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function c(u,f){var h,d,v=this.pv.length?this.pv.length:1,p=createTypedArray("float32",v);u=5;var m=Math.floor(time*u);for(h=0,d=0;h<m;){for(d=0;d<v;d+=1)p[d]+=-f+f*2*BMMath.random();h+=1}var g=time*u,y=g-Math.floor(g),x=createTypedArray("float32",v);if(v>1){for(d=0;d<v;d+=1)x[d]=this.pv[d]+p[d]+(-f+f*2*BMMath.random())*y;return x}return this.pv+p[0]+(-f+f*2*BMMath.random())*y}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(c,u){return loopIn(c,u,!0)}function loopOutDuration(c,u){return loopOut(c,u,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(c,u){var f=[u[0]-c[0],u[1]-c[1],u[2]-c[2]],h=Math.atan2(f[0],Math.sqrt(f[1]*f[1]+f[2]*f[2]))/degToRads,d=-Math.atan2(f[1],f[2])/degToRads;return[d,h,0]}function easeOut(c,u,f,h,d){return applyEase(easeOutBez,c,u,f,h,d)}function easeIn(c,u,f,h,d){return applyEase(easeInBez,c,u,f,h,d)}function ease(c,u,f,h,d){return applyEase(easeInOutBez,c,u,f,h,d)}function applyEase(c,u,f,h,d,v){d===void 0?(d=f,v=h):u=(u-f)/(h-f),u>1?u=1:u<0&&(u=0);var p=c(u);if($bm_isInstanceOfArray(d)){var m,g=d.length,y=createTypedArray("float32",g);for(m=0;m<g;m+=1)y[m]=(v[m]-d[m])*p+d[m];return y}return(v-d)*p+d}function nearestKey(c){var u,f=data.k.length,h,d;if(!data.k.length||typeof data.k[0]=="number")h=0,d=0;else if(h=-1,c*=elem.comp.globalData.frameRate,c<data.k[0].t)h=1,d=data.k[0].t;else{for(u=0;u<f-1;u+=1)if(c===data.k[u].t){h=u+1,d=data.k[u].t;break}else if(c>data.k[u].t&&c<data.k[u+1].t){c-data.k[u].t>data.k[u+1].t-c?(h=u+2,d=data.k[u+1].t):(h=u+1,d=data.k[u].t);break}h===-1&&(h=u+1,d=data.k[u].t)}var v={};return v.index=h,v.time=d/elem.comp.globalData.frameRate,v}function key(c){var u,f,h;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+c);c-=1,u={time:data.k[c].t/elem.comp.globalData.frameRate,value:[]};var d=Object.prototype.hasOwnProperty.call(data.k[c],"s")?data.k[c].s:data.k[c-1].e;for(h=d.length,f=0;f<h;f+=1)u[f]=d[f],u.value[f]=d[f];return u}function framesToTime(c,u){return u||(u=elem.comp.globalData.frameRate),c/u}function timeToFrames(c,u){return!c&&c!==0&&(c=time),u||(u=elem.comp.globalData.frameRate),c*u}function seedRandom(c){BMMath.seedrandom(randSeed+c)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(c,u){return typeof value=="string"?u===void 0?value.substring(c):value.substring(c,u):""}function substr(c,u){return typeof value=="string"?u===void 0?value.substr(c):value.substr(c,u):""}function posterizeTime(c){time=c===0?0:Math.floor(time*c)/c,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(c){return value=c,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var c={};c.initExpressions=u,c.resetFrame=ExpressionManager.resetFrame;function u(f){var h=0,d=[];function v(){h+=1}function p(){h-=1,h===0&&g()}function m(y){d.indexOf(y)===-1&&d.push(y)}function g(){var y,x=d.length;for(y=0;y<x;y+=1)d[y].release();d.length=0}f.renderer.compInterface=CompExpressionInterface(f.renderer),f.renderer.globalData.projectInterface.registerComposition(f.renderer),f.renderer.globalData.pushExpression=v,f.renderer.globalData.popExpression=p,f.renderer.globalData.registerExpressionProperty=m}return c}(),MaskManagerInterface=function(){function c(f,h){this._mask=f,this._data=h}Object.defineProperty(c.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(c.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var u=function(h){var d=createSizedArray(h.viewData.length),v,p=h.viewData.length;for(v=0;v<p;v+=1)d[v]=new c(h.viewData[v],h.masksProperties[v]);var m=function(y){for(v=0;v<p;){if(h.masksProperties[v].nm===y)return d[v];v+=1}return null};return m};return u}(),ExpressionPropertyInterface=function(){var c={pv:0,v:0,mult:1},u={pv:[0,0,0],v:[0,0,0],mult:1};function f(p,m,g){Object.defineProperty(p,"velocity",{get:function(){return m.getVelocityAtTime(m.comp.currentFrame)}}),p.numKeys=m.keyframes?m.keyframes.length:0,p.key=function(y){if(!p.numKeys)return 0;var x="";"s"in m.keyframes[y-1]?x=m.keyframes[y-1].s:"e"in m.keyframes[y-2]?x=m.keyframes[y-2].e:x=m.keyframes[y-2].s;var pn=g==="unidimensional"?new Number(x):Object.assign({},x);return pn.time=m.keyframes[y-1].t/m.elem.comp.globalData.frameRate,pn.value=g==="unidimensional"?x[0]:x,pn},p.valueAtTime=m.getValueAtTime,p.speedAtTime=m.getSpeedAtTime,p.velocityAtTime=m.getVelocityAtTime,p.propertyGroup=m.propertyGroup}function h(p){(!p||!("pv"in p))&&(p=c);var m=1/p.mult,g=p.pv*m,y=new Number(g);return y.value=g,f(y,p,"unidimensional"),function(){return p.k&&p.getValue(),g=p.v*m,y.value!==g&&(y=new Number(g),y.value=g,f(y,p,"unidimensional")),y}}function d(p){(!p||!("pv"in p))&&(p=u);var m=1/p.mult,g=p.data&&p.data.l||p.pv.length,y=createTypedArray("float32",g),x=createTypedArray("float32",g);return y.value=x,f(y,p,"multidimensional"),function(){p.k&&p.getValue();for(var pn=0;pn<g;pn+=1)x[pn]=p.v[pn]*m,y[pn]=x[pn];return y}}function v(){return c}return function(p){return p?p.propType==="unidimensional"?h(p):d(p):v}}(),TransformExpressionInterface=function(){return function(c){function u(p){switch(p){case"scale":case"Scale":case"ADBE Scale":case 6:return u.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return u.rotation;case"ADBE Rotate X":return u.xRotation;case"ADBE Rotate Y":return u.yRotation;case"position":case"Position":case"ADBE Position":case 2:return u.position;case"ADBE Position_0":return u.xPosition;case"ADBE Position_1":return u.yPosition;case"ADBE Position_2":return u.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return u.anchorPoint;case"opacity":case"Opacity":case 11:return u.opacity;default:return null}}Object.defineProperty(u,"rotation",{get:ExpressionPropertyInterface(c.r||c.rz)}),Object.defineProperty(u,"zRotation",{get:ExpressionPropertyInterface(c.rz||c.r)}),Object.defineProperty(u,"xRotation",{get:ExpressionPropertyInterface(c.rx)}),Object.defineProperty(u,"yRotation",{get:ExpressionPropertyInterface(c.ry)}),Object.defineProperty(u,"scale",{get:ExpressionPropertyInterface(c.s)});var f,h,d,v;return c.p?v=ExpressionPropertyInterface(c.p):(f=ExpressionPropertyInterface(c.px),h=ExpressionPropertyInterface(c.py),c.pz&&(d=ExpressionPropertyInterface(c.pz))),Object.defineProperty(u,"position",{get:function(){return c.p?v():[f(),h(),d?d():0]}}),Object.defineProperty(u,"xPosition",{get:ExpressionPropertyInterface(c.px)}),Object.defineProperty(u,"yPosition",{get:ExpressionPropertyInterface(c.py)}),Object.defineProperty(u,"zPosition",{get:ExpressionPropertyInterface(c.pz)}),Object.defineProperty(u,"anchorPoint",{get:ExpressionPropertyInterface(c.a)}),Object.defineProperty(u,"opacity",{get:ExpressionPropertyInterface(c.o)}),Object.defineProperty(u,"skew",{get:ExpressionPropertyInterface(c.sk)}),Object.defineProperty(u,"skewAxis",{get:ExpressionPropertyInterface(c.sa)}),Object.defineProperty(u,"orientation",{get:ExpressionPropertyInterface(c.or)}),u}}(),LayerExpressionInterface=function(){function c(y){var x=new Matrix;if(y!==void 0){var pn=this._elem.finalTransform.mProp.getValueAtTime(y);pn.clone(x)}else{var b=this._elem.finalTransform.mProp;b.applyToMatrix(x)}return x}function u(y,x){var pn=this.getMatrix(x);return pn.props[12]=0,pn.props[13]=0,pn.props[14]=0,this.applyPoint(pn,y)}function f(y,x){var pn=this.getMatrix(x);return this.applyPoint(pn,y)}function h(y,x){var pn=this.getMatrix(x);return pn.props[12]=0,pn.props[13]=0,pn.props[14]=0,this.invertPoint(pn,y)}function d(y,x){var pn=this.getMatrix(x);return this.invertPoint(pn,y)}function v(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var pn,b=this._elem.hierarchy.length;for(pn=0;pn<b;pn+=1)this._elem.hierarchy[pn].finalTransform.mProp.applyToMatrix(y)}return y.applyToPointArray(x[0],x[1],x[2]||0)}function p(y,x){if(this._elem.hierarchy&&this._elem.hierarchy.length){var pn,b=this._elem.hierarchy.length;for(pn=0;pn<b;pn+=1)this._elem.hierarchy[pn].finalTransform.mProp.applyToMatrix(y)}return y.inversePoint(x)}function m(y){var x=new Matrix;if(x.reset(),this._elem.finalTransform.mProp.applyToMatrix(x),this._elem.hierarchy&&this._elem.hierarchy.length){var pn,b=this._elem.hierarchy.length;for(pn=0;pn<b;pn+=1)this._elem.hierarchy[pn].finalTransform.mProp.applyToMatrix(x);return x.inversePoint(y)}return x.inversePoint(y)}function g(){return[1,1,1,1]}return function(y){var x;function pn(J){re.mask=new MaskManagerInterface(J,y)}function b(J){re.effect=J}function re(J){switch(J){case"ADBE Root Vectors Group":case"Contents":case 2:return re.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return x;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return re.effect;case"ADBE Text Properties":return re.textInterface;default:return null}}re.getMatrix=c,re.invertPoint=p,re.applyPoint=v,re.toWorld=f,re.toWorldVec=u,re.fromWorld=d,re.fromWorldVec=h,re.toComp=f,re.fromComp=m,re.sampleImage=g,re.sourceRectAtTime=y.sourceRectAtTime.bind(y),re._elem=y,x=TransformExpressionInterface(y.finalTransform.mProp);var _=getDescriptor(x,"anchorPoint");return Object.defineProperties(re,{hasParent:{get:function(){return y.hierarchy.length}},parent:{get:function(){return y.hierarchy[0].layerInterface}},rotation:getDescriptor(x,"rotation"),scale:getDescriptor(x,"scale"),position:getDescriptor(x,"position"),opacity:getDescriptor(x,"opacity"),anchorPoint:_,anchor_point:_,transform:{get:function(){return x}},active:{get:function(){return y.isInRange}}}),re.startTime=y.data.st,re.index=y.data.ind,re.source=y.data.refId,re.height=y.data.ty===0?y.data.h:100,re.width=y.data.ty===0?y.data.w:100,re.inPoint=y.data.ip/y.comp.globalData.frameRate,re.outPoint=y.data.op/y.comp.globalData.frameRate,re._name=y.data.nm,re.registerMaskInterface=pn,re.registerEffectsInterface=b,re}}(),propertyGroupFactory=function(){return function(c,u){return function(f){return f=f===void 0?1:f,f<=0?c:u(f-1)}}}(),PropertyInterface=function(){return function(c,u){var f={_name:c};function h(d){return d=d===void 0?1:d,d<=0?f:u(d-1)}return h}}(),EffectsExpressionInterface=function(){var c={createEffectsInterface:u};function u(d,v){if(d.effectsManager){var p=[],m=d.data.ef,g,y=d.effectsManager.effectElements.length;for(g=0;g<y;g+=1)p.push(f(m[g],d.effectsManager.effectElements[g],v,d));var x=d.data.ef||[],pn=function(re){for(g=0,y=x.length;g<y;){if(re===x[g].nm||re===x[g].mn||re===x[g].ix)return p[g];g+=1}return null};return Object.defineProperty(pn,"numProperties",{get:function(){return x.length}}),pn}return null}function f(d,v,p,m){function g(re){for(var _=d.ef,J=0,En=_.length;J<En;){if(re===_[J].nm||re===_[J].mn||re===_[J].ix)return _[J].ty===5?x[J]:x[J]();J+=1}throw new Error}var y=propertyGroupFactory(g,p),x=[],pn,b=d.ef.length;for(pn=0;pn<b;pn+=1)d.ef[pn].ty===5?x.push(f(d.ef[pn],v.effectElements[pn],v.effectElements[pn].propertyGroup,m)):x.push(h(v.effectElements[pn],d.ef[pn].ty,m,y));return d.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return x[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return d.np}},_name:{value:d.nm},propertyGroup:{value:y}}),g.enabled=d.en!==0,g.active=g.enabled,g}function h(d,v,p,m){var g=ExpressionPropertyInterface(d.p);function y(){return v===10?p.comp.compInterface(d.p.v):g()}return d.p.setGroupProperty&&d.p.setGroupProperty(PropertyInterface("",m)),y}return c}(),ShapePathInterface=function(){return function(u,f,h){var d=f.sh;function v(m){return m==="Shape"||m==="shape"||m==="Path"||m==="path"||m==="ADBE Vector Shape"||m===2?v.path:null}var p=propertyGroupFactory(v,h);return d.setGroupProperty(PropertyInterface("Path",p)),Object.defineProperties(v,{path:{get:function(){return d.k&&d.getValue(),d}},shape:{get:function(){return d.k&&d.getValue(),d}},_name:{value:u.nm},ix:{value:u.ix},propertyIndex:{value:u.ix},mn:{value:u.mn},propertyGroup:{value:h}}),v}}(),ShapeExpressionInterface=function(){function c(_,J,En){var gn=[],w,hn=_?_.length:0;for(w=0;w<hn;w+=1)_[w].ty==="gr"?gn.push(f(_[w],J[w],En)):_[w].ty==="fl"?gn.push(h(_[w],J[w],En)):_[w].ty==="st"?gn.push(p(_[w],J[w],En)):_[w].ty==="tm"?gn.push(m(_[w],J[w],En)):_[w].ty==="tr"||(_[w].ty==="el"?gn.push(y(_[w],J[w],En)):_[w].ty==="sr"?gn.push(x(_[w],J[w],En)):_[w].ty==="sh"?gn.push(ShapePathInterface(_[w],J[w],En)):_[w].ty==="rc"?gn.push(pn(_[w],J[w],En)):_[w].ty==="rd"?gn.push(b(_[w],J[w],En)):_[w].ty==="rp"?gn.push(re(_[w],J[w],En)):_[w].ty==="gf"?gn.push(d(_[w],J[w],En)):gn.push(v(_[w],J[w])));return gn}function u(_,J,En){var gn,w=function(Pn){for(var Fn=0,zn=gn.length;Fn<zn;){if(gn[Fn]._name===Pn||gn[Fn].mn===Pn||gn[Fn].propertyIndex===Pn||gn[Fn].ix===Pn||gn[Fn].ind===Pn)return gn[Fn];Fn+=1}return typeof Pn=="number"?gn[Pn-1]:null};w.propertyGroup=propertyGroupFactory(w,En),gn=c(_.it,J.it,w.propertyGroup),w.numProperties=gn.length;var hn=g(_.it[_.it.length-1],J.it[J.it.length-1],w.propertyGroup);return w.transform=hn,w.propertyIndex=_.cix,w._name=_.nm,w}function f(_,J,En){var gn=function(Pn){switch(Pn){case"ADBE Vectors Group":case"Contents":case 2:return gn.content;default:return gn.transform}};gn.propertyGroup=propertyGroupFactory(gn,En);var w=u(_,J,gn.propertyGroup),hn=g(_.it[_.it.length-1],J.it[J.it.length-1],gn.propertyGroup);return gn.content=w,gn.transform=hn,Object.defineProperty(gn,"_name",{get:function(){return _.nm}}),gn.numProperties=_.np,gn.propertyIndex=_.ix,gn.nm=_.nm,gn.mn=_.mn,gn}function h(_,J,En){function gn(w){return w==="Color"||w==="color"?gn.color:w==="Opacity"||w==="opacity"?gn.opacity:null}return Object.defineProperties(gn,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},_name:{value:_.nm},mn:{value:_.mn}}),J.c.setGroupProperty(PropertyInterface("Color",En)),J.o.setGroupProperty(PropertyInterface("Opacity",En)),gn}function d(_,J,En){function gn(w){return w==="Start Point"||w==="start point"?gn.startPoint:w==="End Point"||w==="end point"?gn.endPoint:w==="Opacity"||w==="opacity"?gn.opacity:null}return Object.defineProperties(gn,{startPoint:{get:ExpressionPropertyInterface(J.s)},endPoint:{get:ExpressionPropertyInterface(J.e)},opacity:{get:ExpressionPropertyInterface(J.o)},type:{get:function(){return"a"}},_name:{value:_.nm},mn:{value:_.mn}}),J.s.setGroupProperty(PropertyInterface("Start Point",En)),J.e.setGroupProperty(PropertyInterface("End Point",En)),J.o.setGroupProperty(PropertyInterface("Opacity",En)),gn}function v(){function _(){return null}return _}function p(_,J,En){var gn=propertyGroupFactory(zn,En),w=propertyGroupFactory(Fn,gn);function hn(Vn){Object.defineProperty(Fn,_.d[Vn].nm,{get:ExpressionPropertyInterface(J.d.dataProps[Vn].p)})}var vn,Pn=_.d?_.d.length:0,Fn={};for(vn=0;vn<Pn;vn+=1)hn(vn),J.d.dataProps[vn].p.setGroupProperty(w);function zn(Vn){return Vn==="Color"||Vn==="color"?zn.color:Vn==="Opacity"||Vn==="opacity"?zn.opacity:Vn==="Stroke Width"||Vn==="stroke width"?zn.strokeWidth:null}return Object.defineProperties(zn,{color:{get:ExpressionPropertyInterface(J.c)},opacity:{get:ExpressionPropertyInterface(J.o)},strokeWidth:{get:ExpressionPropertyInterface(J.w)},dash:{get:function(){return Fn}},_name:{value:_.nm},mn:{value:_.mn}}),J.c.setGroupProperty(PropertyInterface("Color",gn)),J.o.setGroupProperty(PropertyInterface("Opacity",gn)),J.w.setGroupProperty(PropertyInterface("Stroke Width",gn)),zn}function m(_,J,En){function gn(hn){return hn===_.e.ix||hn==="End"||hn==="end"?gn.end:hn===_.s.ix?gn.start:hn===_.o.ix?gn.offset:null}var w=propertyGroupFactory(gn,En);return gn.propertyIndex=_.ix,J.s.setGroupProperty(PropertyInterface("Start",w)),J.e.setGroupProperty(PropertyInterface("End",w)),J.o.setGroupProperty(PropertyInterface("Offset",w)),gn.propertyIndex=_.ix,gn.propertyGroup=En,Object.defineProperties(gn,{start:{get:ExpressionPropertyInterface(J.s)},end:{get:ExpressionPropertyInterface(J.e)},offset:{get:ExpressionPropertyInterface(J.o)},_name:{value:_.nm}}),gn.mn=_.mn,gn}function g(_,J,En){function gn(hn){return _.a.ix===hn||hn==="Anchor Point"?gn.anchorPoint:_.o.ix===hn||hn==="Opacity"?gn.opacity:_.p.ix===hn||hn==="Position"?gn.position:_.r.ix===hn||hn==="Rotation"||hn==="ADBE Vector Rotation"?gn.rotation:_.s.ix===hn||hn==="Scale"?gn.scale:_.sk&&_.sk.ix===hn||hn==="Skew"?gn.skew:_.sa&&_.sa.ix===hn||hn==="Skew Axis"?gn.skewAxis:null}var w=propertyGroupFactory(gn,En);return J.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",w)),J.transform.mProps.p.setGroupProperty(PropertyInterface("Position",w)),J.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",w)),J.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",w)),J.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",w)),J.transform.mProps.sk&&(J.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",w)),J.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",w))),J.transform.op.setGroupProperty(PropertyInterface("Opacity",w)),Object.defineProperties(gn,{opacity:{get:ExpressionPropertyInterface(J.transform.mProps.o)},position:{get:ExpressionPropertyInterface(J.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(J.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(J.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(J.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(J.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(J.transform.mProps.sa)},_name:{value:_.nm}}),gn.ty="tr",gn.mn=_.mn,gn.propertyGroup=En,gn}function y(_,J,En){function gn(vn){return _.p.ix===vn?gn.position:_.s.ix===vn?gn.size:null}var w=propertyGroupFactory(gn,En);gn.propertyIndex=_.ix;var hn=J.sh.ty==="tm"?J.sh.prop:J.sh;return hn.s.setGroupProperty(PropertyInterface("Size",w)),hn.p.setGroupProperty(PropertyInterface("Position",w)),Object.defineProperties(gn,{size:{get:ExpressionPropertyInterface(hn.s)},position:{get:ExpressionPropertyInterface(hn.p)},_name:{value:_.nm}}),gn.mn=_.mn,gn}function x(_,J,En){function gn(vn){return _.p.ix===vn?gn.position:_.r.ix===vn?gn.rotation:_.pt.ix===vn?gn.points:_.or.ix===vn||vn==="ADBE Vector Star Outer Radius"?gn.outerRadius:_.os.ix===vn?gn.outerRoundness:_.ir&&(_.ir.ix===vn||vn==="ADBE Vector Star Inner Radius")?gn.innerRadius:_.is&&_.is.ix===vn?gn.innerRoundness:null}var w=propertyGroupFactory(gn,En),hn=J.sh.ty==="tm"?J.sh.prop:J.sh;return gn.propertyIndex=_.ix,hn.or.setGroupProperty(PropertyInterface("Outer Radius",w)),hn.os.setGroupProperty(PropertyInterface("Outer Roundness",w)),hn.pt.setGroupProperty(PropertyInterface("Points",w)),hn.p.setGroupProperty(PropertyInterface("Position",w)),hn.r.setGroupProperty(PropertyInterface("Rotation",w)),_.ir&&(hn.ir.setGroupProperty(PropertyInterface("Inner Radius",w)),hn.is.setGroupProperty(PropertyInterface("Inner Roundness",w))),Object.defineProperties(gn,{position:{get:ExpressionPropertyInterface(hn.p)},rotation:{get:ExpressionPropertyInterface(hn.r)},points:{get:ExpressionPropertyInterface(hn.pt)},outerRadius:{get:ExpressionPropertyInterface(hn.or)},outerRoundness:{get:ExpressionPropertyInterface(hn.os)},innerRadius:{get:ExpressionPropertyInterface(hn.ir)},innerRoundness:{get:ExpressionPropertyInterface(hn.is)},_name:{value:_.nm}}),gn.mn=_.mn,gn}function pn(_,J,En){function gn(vn){return _.p.ix===vn?gn.position:_.r.ix===vn?gn.roundness:_.s.ix===vn||vn==="Size"||vn==="ADBE Vector Rect Size"?gn.size:null}var w=propertyGroupFactory(gn,En),hn=J.sh.ty==="tm"?J.sh.prop:J.sh;return gn.propertyIndex=_.ix,hn.p.setGroupProperty(PropertyInterface("Position",w)),hn.s.setGroupProperty(PropertyInterface("Size",w)),hn.r.setGroupProperty(PropertyInterface("Rotation",w)),Object.defineProperties(gn,{position:{get:ExpressionPropertyInterface(hn.p)},roundness:{get:ExpressionPropertyInterface(hn.r)},size:{get:ExpressionPropertyInterface(hn.s)},_name:{value:_.nm}}),gn.mn=_.mn,gn}function b(_,J,En){function gn(vn){return _.r.ix===vn||vn==="Round Corners 1"?gn.radius:null}var w=propertyGroupFactory(gn,En),hn=J;return gn.propertyIndex=_.ix,hn.rd.setGroupProperty(PropertyInterface("Radius",w)),Object.defineProperties(gn,{radius:{get:ExpressionPropertyInterface(hn.rd)},_name:{value:_.nm}}),gn.mn=_.mn,gn}function re(_,J,En){function gn(vn){return _.c.ix===vn||vn==="Copies"?gn.copies:_.o.ix===vn||vn==="Offset"?gn.offset:null}var w=propertyGroupFactory(gn,En),hn=J;return gn.propertyIndex=_.ix,hn.c.setGroupProperty(PropertyInterface("Copies",w)),hn.o.setGroupProperty(PropertyInterface("Offset",w)),Object.defineProperties(gn,{copies:{get:ExpressionPropertyInterface(hn.c)},offset:{get:ExpressionPropertyInterface(hn.o)},_name:{value:_.nm}}),gn.mn=_.mn,gn}return function(_,J,En){var gn;function w(vn){if(typeof vn=="number")return vn=vn===void 0?1:vn,vn===0?En:gn[vn-1];for(var Pn=0,Fn=gn.length;Pn<Fn;){if(gn[Pn]._name===vn)return gn[Pn];Pn+=1}return null}function hn(){return En}return w.propertyGroup=propertyGroupFactory(w,hn),gn=c(_,J,w.propertyGroup),w.numProperties=gn.length,w._name="Contents",w}}(),TextExpressionInterface=function(){return function(c){var u;function f(h){switch(h){case"ADBE Text Document":return f.sourceText;default:return null}}return Object.defineProperty(f,"sourceText",{get:function(){c.textProperty.getValue();var d=c.textProperty.currentData.t;return(!u||d!==u.value)&&(u=new String(d),u.value=d||new String(d),Object.defineProperty(u,"style",{get:function(){return{fillColor:c.textProperty.currentData.fc}}})),u}}),f}}();function _typeof(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(f){return typeof f}:_typeof=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},_typeof(c)}var FootageInterface=function(){var c=function(h){var d="",v=h.getFootageData();function p(){return d="",v=h.getFootageData(),m}function m(g){if(v[g])return d=g,v=v[g],_typeof(v)==="object"?m:v;var y=g.indexOf(d);if(y!==-1){var x=parseInt(g.substr(y+d.length),10);return v=v[x],_typeof(v)==="object"?m:v}return""}return p},u=function(h){function d(v){return v==="Outline"?d.outlineInterface():null}return d._name="Outline",d.outlineInterface=c(h),d};return function(f){function h(d){return d==="Data"?h.dataInterface:null}return h._name="Data",h.dataInterface=u(f),h}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(c){return interfaces[c]||null}var expressionHelpers=function(){function c(p,m,g){m.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(p,m,g).bind(g)))}function u(p){return p*=this.elem.globalData.frameRate,p-=this.offsetTime,p!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<p?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(p,this._cachingAtTime),this._cachingAtTime.lastFrame=p),this._cachingAtTime.value}function f(p){var m=-.01,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x=0;if(g.length){var pn;for(pn=0;pn<g.length;pn+=1)x+=Math.pow(y[pn]-g[pn],2);x=Math.sqrt(x)*100}else x=0;return x}function h(p){if(this.vel!==void 0)return this.vel;var m=-.001,g=this.getValueAtTime(p),y=this.getValueAtTime(p+m),x;if(g.length){x=createTypedArray("float32",g.length);var pn;for(pn=0;pn<g.length;pn+=1)x[pn]=(y[pn]-g[pn])/m}else x=(y-g)/m;return x}function d(){return this.pv}function v(p){this.propertyGroup=p}return{searchExpressions:c,getSpeedAtTime:f,getVelocityAtTime:h,getValueAtTime:u,getStaticValueAtTime:d,setGroupProperty:v}}();function addPropertyDecorator(){function c(b,re,_){if(!this.k||!this.keyframes)return this.pv;b=b?b.toLowerCase():"";var J=this.comp.renderedFrame,En=this.keyframes,gn=En[En.length-1].t;if(J<=gn)return this.pv;var w,hn;_?(re?w=Math.abs(gn-this.elem.comp.globalData.frameRate*re):w=Math.max(0,gn-this.elem.data.ip),hn=gn-w):((!re||re>En.length-1)&&(re=En.length-1),hn=En[En.length-1-re].t,w=gn-hn);var vn,Pn,Fn;if(b==="pingpong"){var zn=Math.floor((J-hn)/w);if(zn%2!==0)return this.getValueAtTime((w-(J-hn)%w+hn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Vn=this.getValueAtTime(hn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Gn=this.getValueAtTime(((J-hn)%w+hn)/this.comp.globalData.frameRate,0),Un=Math.floor((J-hn)/w);if(this.pv.length){for(Fn=new Array(Vn.length),Pn=Fn.length,vn=0;vn<Pn;vn+=1)Fn[vn]=(Yn[vn]-Vn[vn])*Un+Gn[vn];return Fn}return(Yn-Vn)*Un+Gn}else if(b==="continue"){var Kn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Hn=this.getValueAtTime((gn-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fn=new Array(Kn.length),Pn=Fn.length,vn=0;vn<Pn;vn+=1)Fn[vn]=Kn[vn]+(Kn[vn]-Hn[vn])*((J-gn)/this.comp.globalData.frameRate)/5e-4;return Fn}return Kn+(Kn-Hn)*((J-gn)/.001)}return this.getValueAtTime(((J-hn)%w+hn)/this.comp.globalData.frameRate,0)}function u(b,re,_){if(!this.k)return this.pv;b=b?b.toLowerCase():"";var J=this.comp.renderedFrame,En=this.keyframes,gn=En[0].t;if(J>=gn)return this.pv;var w,hn;_?(re?w=Math.abs(this.elem.comp.globalData.frameRate*re):w=Math.max(0,this.elem.data.op-gn),hn=gn+w):((!re||re>En.length-1)&&(re=En.length-1),hn=En[re].t,w=hn-gn);var vn,Pn,Fn;if(b==="pingpong"){var zn=Math.floor((gn-J)/w);if(zn%2===0)return this.getValueAtTime(((gn-J)%w+gn)/this.comp.globalData.frameRate,0)}else if(b==="offset"){var Vn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Yn=this.getValueAtTime(hn/this.comp.globalData.frameRate,0),Gn=this.getValueAtTime((w-(gn-J)%w+gn)/this.comp.globalData.frameRate,0),Un=Math.floor((gn-J)/w)+1;if(this.pv.length){for(Fn=new Array(Vn.length),Pn=Fn.length,vn=0;vn<Pn;vn+=1)Fn[vn]=Gn[vn]-(Yn[vn]-Vn[vn])*Un;return Fn}return Gn-(Yn-Vn)*Un}else if(b==="continue"){var Kn=this.getValueAtTime(gn/this.comp.globalData.frameRate,0),Hn=this.getValueAtTime((gn+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(Fn=new Array(Kn.length),Pn=Fn.length,vn=0;vn<Pn;vn+=1)Fn[vn]=Kn[vn]+(Kn[vn]-Hn[vn])*(gn-J)/.001;return Fn}return Kn+(Kn-Hn)*(gn-J)/.001}return this.getValueAtTime((w-((gn-J)%w+gn))/this.comp.globalData.frameRate,0)}function f(b,re){if(!this.k)return this.pv;if(b=(b||.4)*.5,re=Math.floor(re||5),re<=1)return this.pv;var _=this.comp.renderedFrame/this.comp.globalData.frameRate,J=_-b,En=_+b,gn=re>1?(En-J)/(re-1):1,w=0,hn=0,vn;this.pv.length?vn=createTypedArray("float32",this.pv.length):vn=0;for(var Pn;w<re;){if(Pn=this.getValueAtTime(J+w*gn),this.pv.length)for(hn=0;hn<this.pv.length;hn+=1)vn[hn]+=Pn[hn];else vn+=Pn;w+=1}if(this.pv.length)for(hn=0;hn<this.pv.length;hn+=1)vn[hn]/=re;else vn/=re;return vn}function h(b){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var re=this._transformCachingAtTime.v;if(re.cloneFromProps(this.pre.props),this.appliedTransformations<1){var _=this.a.getValueAtTime(b);re.translate(-_[0]*this.a.mult,-_[1]*this.a.mult,_[2]*this.a.mult)}if(this.appliedTransformations<2){var J=this.s.getValueAtTime(b);re.scale(J[0]*this.s.mult,J[1]*this.s.mult,J[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var En=this.sk.getValueAtTime(b),gn=this.sa.getValueAtTime(b);re.skewFromAxis(-En*this.sk.mult,gn*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var w=this.r.getValueAtTime(b);re.rotate(-w*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var hn=this.rz.getValueAtTime(b),vn=this.ry.getValueAtTime(b),Pn=this.rx.getValueAtTime(b),Fn=this.or.getValueAtTime(b);re.rotateZ(-hn*this.rz.mult).rotateY(vn*this.ry.mult).rotateX(Pn*this.rx.mult).rotateZ(-Fn[2]*this.or.mult).rotateY(Fn[1]*this.or.mult).rotateX(Fn[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var zn=this.px.getValueAtTime(b),Vn=this.py.getValueAtTime(b);if(this.data.p.z){var Yn=this.pz.getValueAtTime(b);re.translate(zn*this.px.mult,Vn*this.py.mult,-Yn*this.pz.mult)}else re.translate(zn*this.px.mult,Vn*this.py.mult,0)}else{var Gn=this.p.getValueAtTime(b);re.translate(Gn[0]*this.p.mult,Gn[1]*this.p.mult,-Gn[2]*this.p.mult)}return re}function d(){return this.v.clone(new Matrix)}var v=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(b,re,_){var J=v(b,re,_);return J.dynamicProperties.length?J.getValueAtTime=h.bind(J):J.getValueAtTime=d.bind(J),J.setGroupProperty=expressionHelpers.setGroupProperty,J};var p=PropertyFactory.getProp;PropertyFactory.getProp=function(b,re,_,J,En){var gn=p(b,re,_,J,En);gn.kf?gn.getValueAtTime=expressionHelpers.getValueAtTime.bind(gn):gn.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(gn),gn.setGroupProperty=expressionHelpers.setGroupProperty,gn.loopOut=c,gn.loopIn=u,gn.smooth=f,gn.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(gn),gn.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(gn),gn.numKeys=re.a===1?re.k.length:0,gn.propertyIndex=re.ix;var w=0;return _!==0&&(w=createTypedArray("float32",re.a===1?re.k[0].s.length:re.k.length)),gn._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:w},expressionHelpers.searchExpressions(b,re,gn),gn.k&&En.addDynamicProperty(gn),gn};function m(b){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),b*=this.elem.globalData.frameRate,b-=this.offsetTime,b!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<b?this._caching.lastIndex:0,this._cachingAtTime.lastTime=b,this.interpolateShape(b,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),y=ShapePropertyFactory.getKeyframedConstructorFunction();function x(){}x.prototype={vertices:function(re,_){this.k&&this.getValue();var J=this.v;_!==void 0&&(J=this.getValueAtTime(_,0));var En,gn=J._length,w=J[re],hn=J.v,vn=createSizedArray(gn);for(En=0;En<gn;En+=1)re==="i"||re==="o"?vn[En]=[w[En][0]-hn[En][0],w[En][1]-hn[En][1]]:vn[En]=[w[En][0],w[En][1]];return vn},points:function(re){return this.vertices("v",re)},inTangents:function(re){return this.vertices("i",re)},outTangents:function(re){return this.vertices("o",re)},isClosed:function(){return this.v.c},pointOnPath:function(re,_){var J=this.v;_!==void 0&&(J=this.getValueAtTime(_,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(J));for(var En=this._segmentsLength,gn=En.lengths,w=En.totalLength*re,hn=0,vn=gn.length,Pn=0,Fn;hn<vn;){if(Pn+gn[hn].addedLength>w){var zn=hn,Vn=J.c&&hn===vn-1?0:hn+1,Yn=(w-Pn)/gn[hn].addedLength;Fn=bez.getPointInSegment(J.v[zn],J.v[Vn],J.o[zn],J.i[Vn],Yn,gn[hn]);break}else Pn+=gn[hn].addedLength;hn+=1}return Fn||(Fn=J.c?[J.v[0][0],J.v[0][1]]:[J.v[J._length-1][0],J.v[J._length-1][1]]),Fn},vectorOnPath:function(re,_,J){re==1?re=this.v.c:re==0&&(re=.999);var En=this.pointOnPath(re,_),gn=this.pointOnPath(re+.001,_),w=gn[0]-En[0],hn=gn[1]-En[1],vn=Math.sqrt(Math.pow(w,2)+Math.pow(hn,2));if(vn===0)return[0,0];var Pn=J==="tangent"?[w/vn,hn/vn]:[-hn/vn,w/vn];return Pn},tangentOnPath:function(re,_){return this.vectorOnPath(re,_,"tangent")},normalOnPath:function(re,_){return this.vectorOnPath(re,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([x],g),extendPrototype([x],y),y.prototype.getValueAtTime=m,y.prototype.initiateExpression=ExpressionManager.initiateExpression;var pn=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(b,re,_,J,En){var gn=pn(b,re,_,J,En);return gn.propertyIndex=re.ix,gn.lock=!1,_===3?expressionHelpers.searchExpressions(b,re.pt,gn):_===4&&expressionHelpers.searchExpressions(b,re.ks,gn),gn.k&&b.addDynamicProperty(gn),gn}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function c(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(u,f){var h=this.calculateExpression(f);if(u.t!==h){var d={};return this.copyData(d,u),d.t=h.toString(),d.__complete=!1,d}return u},TextProperty.prototype.searchProperty=function(){var u=this.searchKeyframes(),f=this.searchExpressions();return this.kf=u||f,this.kf},TextProperty.prototype.searchExpressions=c}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function c(u,f){var h=createNS("feMerge");h.setAttribute("result",u);var d,v;for(v=0;v<f.length;v+=1)d=createNS("feMergeNode"),d.setAttribute("in",f[v]),h.appendChild(d),h.appendChild(d);return h}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(c,u,f,h,d){this.filterManager=u;var v=createNS("feColorMatrix");v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","linearRGB"),v.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=v,v.setAttribute("result",h+"_tint_1"),c.appendChild(v),v=createNS("feColorMatrix"),v.setAttribute("type","matrix"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),v.setAttribute("result",h+"_tint_2"),c.appendChild(v),this.matrixFilter=v;var p=this.createMergeNode(h,[d,h+"_tint_1",h+"_tint_2"]);c.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+h+" 0"),this.matrixFilter.setAttribute("values",f[0]-u[0]+" 0 0 0 "+u[0]+" "+(f[1]-u[1])+" 0 0 0 "+u[1]+" "+(f[2]-u[2])+" 0 0 0 "+u[2]+" 0 0 0 1 0")}};function SVGFillFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),d.setAttribute("result",h),c.appendChild(d),this.matrixFilter=d}SVGFillFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[2].p.v,f=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+u[0]+" 0 0 0 0 "+u[1]+" 0 0 0 0 "+u[2]+" 0 0 0 "+f+" 0")}};function SVGStrokeEffect(c,u,f){this.initialized=!1,this.filterManager=u,this.elem=f,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var c=this.elem.layerElement.children||this.elem.layerElement.childNodes,u,f,h,d;for(this.filterManager.effectElements[1].p.v===1?(d=this.elem.maskManager.masksProperties.length,h=0):(h=this.filterManager.effectElements[0].p.v-1,d=h+1),f=createNS("g"),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),f.setAttribute("stroke-dashoffset",1),h;h<d;h+=1)u=createNS("path"),f.appendChild(u),this.paths.push({p:u,m:h});if(this.filterManager.effectElements[10].p.v===3){var v=createNS("mask"),p=createElementID();v.setAttribute("id",p),v.setAttribute("mask-type","alpha"),v.appendChild(f),this.elem.globalData.defs.appendChild(v);var m=createNS("g");for(m.setAttribute("mask","url("+getLocationHref()+"#"+p+")");c[0];)m.appendChild(c[0]);this.elem.layerElement.appendChild(m),this.masker=v,f.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(c=this.elem.layerElement.children||this.elem.layerElement.childNodes;c.length;)this.elem.layerElement.removeChild(c[0]);this.elem.layerElement.appendChild(f),this.elem.layerElement.removeAttribute("mask"),f.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=f},SVGStrokeEffect.prototype.renderFrame=function(c){this.initialized||this.initialize();var u,f=this.paths.length,h,d;for(u=0;u<f;u+=1)if(this.paths[u].m!==-1&&(h=this.elem.maskManager.viewData[this.paths[u].m],d=this.paths[u].p,(c||this.filterManager._mdf||h.prop._mdf)&&d.setAttribute("d",h.lastPath),c||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||h.prop._mdf)){var v;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var p=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,m=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=d.getTotalLength();v="0 0 0 "+g*p+" ";var y=g*(m-p),x=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,pn=Math.floor(y/x),b;for(b=0;b<pn;b+=1)v+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";v+="0 "+g*10+" 0 0"}else v="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;d.setAttribute("stroke-dasharray",v)}if((c||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(c||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(c||this.filterManager.effectElements[3].p._mdf)){var re=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(re[0]*255)+","+bmFloor(re[1]*255)+","+bmFloor(re[2]*255)+")")}};function SVGTritoneFilter(c,u,f,h){this.filterManager=u;var d=createNS("feColorMatrix");d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","linearRGB"),d.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),c.appendChild(d);var v=createNS("feComponentTransfer");v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),this.matrixFilter=v;var p=createNS("feFuncR");p.setAttribute("type","table"),v.appendChild(p),this.feFuncR=p;var m=createNS("feFuncG");m.setAttribute("type","table"),v.appendChild(m),this.feFuncG=m;var g=createNS("feFuncB");g.setAttribute("type","table"),v.appendChild(g),this.feFuncB=g,c.appendChild(v)}SVGTritoneFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=this.filterManager.effectElements[0].p.v,f=this.filterManager.effectElements[1].p.v,h=this.filterManager.effectElements[2].p.v,d=h[0]+" "+f[0]+" "+u[0],v=h[1]+" "+f[1]+" "+u[1],p=h[2]+" "+f[2]+" "+u[2];this.feFuncR.setAttribute("tableValues",d),this.feFuncG.setAttribute("tableValues",v),this.feFuncB.setAttribute("tableValues",p)}};function SVGProLevelsFilter(c,u,f,h){this.filterManager=u;var d=this.filterManager.effectElements,v=createNS("feComponentTransfer");(d[10].p.k||d[10].p.v!==0||d[11].p.k||d[11].p.v!==1||d[12].p.k||d[12].p.v!==1||d[13].p.k||d[13].p.v!==0||d[14].p.k||d[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",v)),(d[17].p.k||d[17].p.v!==0||d[18].p.k||d[18].p.v!==1||d[19].p.k||d[19].p.v!==1||d[20].p.k||d[20].p.v!==0||d[21].p.k||d[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",v)),(d[24].p.k||d[24].p.v!==0||d[25].p.k||d[25].p.v!==1||d[26].p.k||d[26].p.v!==1||d[27].p.k||d[27].p.v!==0||d[28].p.k||d[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",v)),(d[31].p.k||d[31].p.v!==0||d[32].p.k||d[32].p.v!==1||d[33].p.k||d[33].p.v!==1||d[34].p.k||d[34].p.v!==0||d[35].p.k||d[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",v)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(v.setAttribute("color-interpolation-filters","sRGB"),c.appendChild(v)),(d[3].p.k||d[3].p.v!==0||d[4].p.k||d[4].p.v!==1||d[5].p.k||d[5].p.v!==1||d[6].p.k||d[6].p.v!==0||d[7].p.k||d[7].p.v!==1)&&(v=createNS("feComponentTransfer"),v.setAttribute("color-interpolation-filters","sRGB"),v.setAttribute("result",h),c.appendChild(v),this.feFuncRComposed=this.createFeFunc("feFuncR",v),this.feFuncGComposed=this.createFeFunc("feFuncG",v),this.feFuncBComposed=this.createFeFunc("feFuncB",v))}SVGProLevelsFilter.prototype.createFeFunc=function(c,u){var f=createNS(c);return f.setAttribute("type","table"),u.appendChild(f),f},SVGProLevelsFilter.prototype.getTableValue=function(c,u,f,h,d){for(var v=0,p=256,m,g=Math.min(c,u),y=Math.max(c,u),x=Array.call(null,{length:p}),pn,b=0,re=d-h,_=u-c;v<=256;)m=v/256,m<=g?pn=_<0?d:h:m>=y?pn=_<0?h:d:pn=h+re*Math.pow((m-c)/_,1/f),x[b]=pn,b+=1,v+=256/(p-1);return x.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u,f=this.filterManager.effectElements;this.feFuncRComposed&&(c||f[3].p._mdf||f[4].p._mdf||f[5].p._mdf||f[6].p._mdf||f[7].p._mdf)&&(u=this.getTableValue(f[3].p.v,f[4].p.v,f[5].p.v,f[6].p.v,f[7].p.v),this.feFuncRComposed.setAttribute("tableValues",u),this.feFuncGComposed.setAttribute("tableValues",u),this.feFuncBComposed.setAttribute("tableValues",u)),this.feFuncR&&(c||f[10].p._mdf||f[11].p._mdf||f[12].p._mdf||f[13].p._mdf||f[14].p._mdf)&&(u=this.getTableValue(f[10].p.v,f[11].p.v,f[12].p.v,f[13].p.v,f[14].p.v),this.feFuncR.setAttribute("tableValues",u)),this.feFuncG&&(c||f[17].p._mdf||f[18].p._mdf||f[19].p._mdf||f[20].p._mdf||f[21].p._mdf)&&(u=this.getTableValue(f[17].p.v,f[18].p.v,f[19].p.v,f[20].p.v,f[21].p.v),this.feFuncG.setAttribute("tableValues",u)),this.feFuncB&&(c||f[24].p._mdf||f[25].p._mdf||f[26].p._mdf||f[27].p._mdf||f[28].p._mdf)&&(u=this.getTableValue(f[24].p.v,f[25].p.v,f[26].p.v,f[27].p.v,f[28].p.v),this.feFuncB.setAttribute("tableValues",u)),this.feFuncA&&(c||f[31].p._mdf||f[32].p._mdf||f[33].p._mdf||f[34].p._mdf||f[35].p._mdf)&&(u=this.getTableValue(f[31].p.v,f[32].p.v,f[33].p.v,f[34].p.v,f[35].p.v),this.feFuncA.setAttribute("tableValues",u))}};function SVGDropShadowEffect(c,u,f,h,d){var v=u.container.globalData.renderConfig.filterSize,p=u.data.fs||v;c.setAttribute("x",p.x||v.x),c.setAttribute("y",p.y||v.y),c.setAttribute("width",p.width||v.width),c.setAttribute("height",p.height||v.height),this.filterManager=u;var m=createNS("feGaussianBlur");m.setAttribute("in","SourceAlpha"),m.setAttribute("result",h+"_drop_shadow_1"),m.setAttribute("stdDeviation","0"),this.feGaussianBlur=m,c.appendChild(m);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",h+"_drop_shadow_1"),g.setAttribute("result",h+"_drop_shadow_2"),this.feOffset=g,c.appendChild(g);var y=createNS("feFlood");y.setAttribute("flood-color","#00ff00"),y.setAttribute("flood-opacity","1"),y.setAttribute("result",h+"_drop_shadow_3"),this.feFlood=y,c.appendChild(y);var x=createNS("feComposite");x.setAttribute("in",h+"_drop_shadow_3"),x.setAttribute("in2",h+"_drop_shadow_2"),x.setAttribute("operator","in"),x.setAttribute("result",h+"_drop_shadow_4"),c.appendChild(x);var pn=this.createMergeNode(h,[h+"_drop_shadow_4",d]);c.appendChild(pn)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){if((c||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),c||this.filterManager.effectElements[0].p._mdf){var u=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(u[0]*255),Math.round(u[1]*255),Math.round(u[2]*255)))}if((c||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),c||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var f=this.filterManager.effectElements[3].p.v,h=(this.filterManager.effectElements[2].p.v-90)*degToRads,d=f*Math.cos(h),v=f*Math.sin(h);this.feOffset.setAttribute("dx",d),this.feOffset.setAttribute("dy",v)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(c,u,f){this.initialized=!1,this.filterManager=u,this.filterElem=c,this.elem=f,f.matteElement=createNS("g"),f.matteElement.appendChild(f.layerElement),f.matteElement.appendChild(f.transformedElement),f.baseElement=f.matteElement}SVGMatte3Effect.prototype.findSymbol=function(c){for(var u=0,f=_svgMatteSymbols.length;u<f;){if(_svgMatteSymbols[u]===c)return _svgMatteSymbols[u];u+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(c,u){var f=c.layerElement.parentNode;if(f){for(var h=f.children,d=0,v=h.length;d<v&&h[d]!==c.layerElement;)d+=1;var p;d<=v-2&&(p=h[d+1]);var m=createNS("use");m.setAttribute("href","#"+u),p?f.insertBefore(m,p):f.appendChild(m)}},SVGMatte3Effect.prototype.setElementAsMask=function(c,u){if(!this.findSymbol(u)){var f=createElementID(),h=createNS("mask");h.setAttribute("id",u.layerId),h.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(u);var d=c.globalData.defs;d.appendChild(h);var v=createNS("symbol");v.setAttribute("id",f),this.replaceInParent(u,f),v.appendChild(u.layerElement),d.appendChild(v);var p=createNS("use");p.setAttribute("href","#"+f),h.appendChild(p),u.data.hd=!1,u.show()}c.setMatte(u.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var c=this.filterManager.effectElements[0].p.v,u=this.elem.comp.elements,f=0,h=u.length;f<h;)u[f]&&u[f].data.ind===c&&this.setElementAsMask(this.elem,u[f]),f+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(c,u,f,h){c.setAttribute("x","-100%"),c.setAttribute("y","-100%"),c.setAttribute("width","300%"),c.setAttribute("height","300%"),this.filterManager=u;var d=createNS("feGaussianBlur");d.setAttribute("result",h),c.appendChild(d),this.feGaussianBlur=d}SVGGaussianBlurEffect.prototype.renderFrame=function(c){if(c||this.filterManager._mdf){var u=.3,f=this.filterManager.effectElements[0].p.v*u,h=this.filterManager.effectElements[1].p.v,d=h==3?0:f,v=h==2?0:f;this.feGaussianBlur.setAttribute("stdDeviation",d+" "+v);var p=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",p)}};function TransformEffect(){}TransformEffect.prototype.init=function(c){this.effectsManager=c,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(c){if(this._opMdf=!1,this._mdf=!1,c||this.effectsManager._mdf){var u=this.effectsManager.effectElements,f=u[0].p.v,h=u[1].p.v,d=u[2].p.v===1,v=u[3].p.v,p=d?v:u[4].p.v,m=u[5].p.v,g=u[6].p.v,y=u[7].p.v;this.matrix.reset(),this.matrix.translate(-f[0],-f[1],f[2]),this.matrix.scale(p*.01,v*.01,1),this.matrix.rotate(-y*degToRads),this.matrix.skewFromAxis(-m*degToRads,(g+90)*degToRads),this.matrix.translate(h[0],h[1],0),this._mdf=!0,this.opacity!==u[8].p.v&&(this.opacity=u[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(c,u){this.init(u)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(c){this.init(c)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports),__default__$1=vue.defineComponent({name:"EcanImage",props:{...imageComponentProps},setup(c){const u=usePickComponentStyle(c),f=vue.computed(()=>useImagePath(c.imgUrl)),{pageMode:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),d=vue.computed(()=>{const _={},{actionType:J,linkPage:En,href:gn}=c,{requestParams:w={}}=window.config;return vue.unref(h)!=="design"&&J==="close"&&c.isDrillShow&&!w.drillFlag&&(_.display="none"),(J==="link"&&(En||gn)||!J&&(En||gn)||J==="close")&&(_.cursor="pointer"),{...vue.unref(u),..._}}),{getGlobalModel:v,setGlobalModel:p,getRecordValueByKeyName:m}=vue.inject(GLOBAL_MODEL,{getGlobalModel:_=>{},setGlobalModel:(_,J)=>{},getRecordValueByKeyName:_=>{}}),{setTemplateData:g}=vue.inject("templateOperate",{setTemplateData:_=>{}}),x=useEmitEvent(c)("click",()=>{const _=v(c.id);if(p(c.id,{..._,type:c.type,RECORD:c.data||{}}),setTimeout(()=>{p(c.id,{..._,type:c.type,RECORD:{}})},0),[void 0,"link"].includes(c.actionType)){if(!c.linkPage&&!c.href)return;handleJumpLink(c,{pageMode:vue.unref(h),targetTemplate:c.targetTemplate,getRecordValueByKeyName:m,setTemplateData:g})}else c.actionType==="close"&&window.close()}),pn=vue.ref(),b=vue.ref(),re=()=>{const{directory:_}=c.animationSource;c.isAnimation&&pn.value&&_&&(b.value=lottie.loadAnimation({name:`${c.keyName}-lotTie`,container:pn.value,renderer:"svg",loop:!0,autoplay:!0,path:useImagePath(_)+"data.json"}),vue.unref(b).setSpeed(1))};return vue.watch(()=>[c.isAnimation,c.animationSource],([_])=>{_&&vue.nextTick(()=>{re()})},{immediate:!0,deep:!0}),useOnEvent(c,{click:x}),{customStyle:d,myImgUrl:f,animation:pn,pageMode:h,onClick:x}}}),__injectCSSVars__$1=()=>{vue.useCssVars(c=>({"8d74eefa":c.isHoverStyle?"pointer":"auto","7ff7bf46":c.isHoverStyle?"0.6":"1"}))},__setup__$1=__default__$1.setup;__default__$1.setup=__setup__$1?(c,u)=>(__injectCSSVars__$1(),__setup__$1(c,u)):__injectCSSVars__$1;const Image_vue_vue_type_style_index_0_scoped_8b128e89_lang="",_hoisted_1$3=["src"];function _sfc_render$6(c,u,f,h,d,v){var p;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[c.isAnimation?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.animationSource.directory?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),ref:"animation",style:vue.normalizeStyle(c.customStyle),onClick:u[0]||(u[0]=(...m)=>c.onClick&&c.onClick(...m))},null,6)):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[c.myImgUrl!==""?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:vue.normalizeClass(["ecan-image",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle),src:c.myImgUrl,onClick:u[1]||(u[1]=(...m)=>c.onClick&&c.onClick(...m))},null,14,_hoisted_1$3)):vue.createCommentVNode("",!0)],64)),(c.isAnimation?!((p=c.animationSource)!=null&&p.directory):!c.myImgUrl)?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["image-placeholder",c.pageMode==="design"?"component":""]),style:vue.normalizeStyle(c.customStyle)}," 请上传图片 ",6)):vue.createCommentVNode("",!0)],64)}const Image$1=_export_sfc$1(__default__$1,[["render",_sfc_render$6],["__scopeId","data-v-8b128e89"]]),EcanImage=withInstall$1(Image$1),iframeProps={...props,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web",transParams:[]},iframeComponentProps=transformToComponentProps(iframeProps),_sfc_main$4=vue.defineComponent({name:"EcanIframe",props:{...iframeComponentProps},setup(c){const u=usePickComponentStyle(c),{contextRequestUrl:f}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:""}),{getRecordValueByKeyName:h}=vue.inject(GLOBAL_MODEL,{getRecordValueByKeyName:v=>{}}),d=vue.computed(()=>{var p;let v=useVariablesInText(c.link);if(c.linkType==="erd"&&v!=null){let m=vue.unref(f);m[m.length-1]==="/"?m+="erdReport":m+="/erdReport",v=`${ERD_URL||m}?_t=0&uid=${v}`}if((p=c.transParams)!=null&&p.length){v.includes("?")?v+="&":v+="?";const m=[];for(const g of c.transParams){const y=h(String(g.fieldName));m.push(`${g.keyName}=${y}`)}v+=m.join("&")}return v});return{style:u,myLink:d}}}),Iframe_vue_vue_type_style_index_0_scoped_06253280_lang="",_hoisted_1$2=["src"];function _sfc_render$5(c,u,f,h,d,v){return c.myLink?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:c.myLink,style:vue.normalizeStyle(c.style)},null,12,_hoisted_1$2)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"iframe-placeholder",style:vue.normalizeStyle(c.style)}," 请填写网页链接 ",4))}const Iframe=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$5],["__scopeId","data-v-06253280"]]),EcanIframe=withInstall$1(Iframe),tableProps={...props,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!1,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1,transParams:[],linkPage:"",target:"self",href:"",isAutoScroll:!1,scrollSpeed:10,clickTarget:"row",clickTargetColumns:[],linkTextColor:""},tableComponentProps=transformToComponentProps(tableProps),tableEvents=["click","refreshData","resetRecord","exportTableData"],seqIcon1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDKKajapdm/JL6e5e7IfkMH2N6Ip2YxSVXM8y3fI6MhYnJhM4gWUX5tngc87dqXTmBJWXOkUbwqJT0hP+Boe6qCXT0aNtmjFp4Bw0Cgncqe1I68TUAGJduu/q70+UkQNBX9lAwLpV8IzaoKooB1FENbYkCQW9UwhINqoZUV1+jHFii5UoZC5k1PBOAKHfnwjX0k9syEaYmAPamQbQeaK0hOniw+CxSzXGPE8y3OMMP/HKYyIPvRhuV73gQmvvOTQdYqdwJZwtPaNGV6Kzu5dpv1MuiuJnrxZUVtgyTRqIy5AOZ5OBI4mfT4kWm+4FGvmkWdVdNoKO9xRdjsXGMyJwJfUw1F0J6r0qEJCL6cbZsED2rER20EK1oxGwxIhRV/zQxInjs6oVsszQBAFmNbt5OTRrRVi8y3gP5cDai9UBrDdGR3rYXFKVGJDtBunCqnEHqXhYJdXe5Yk7qDljUJRGyqyGisxqTaGrnVkuPjOnqOtymc06vOuRZkoV9Td2N81F3FQaaiNFP5QCnWv+kIPpRihilIWqjaKNLqSay0k8aoo5G1E45WQ1vo5VyHoeoZPC8qYwSROuB4kuhb7SmED2lqXvFou5eVxRVwB9my68THSiPLoa6SxGjZaduTQY6eLB4TCF0D5JaNy3QZzy+Vd33XkPltUcRtWvdtPSSVvfa07THVUa2GFF6yVWnl2n1PK12rasroyoxqgcKAPY3uuIRHevd+pKCfkiCmY1TZbTQQO2inop5u5BPo649dZsjj6L7kTyKmdTOo56QSN1mf3ZRX0XdVRPo8OF2XHwe5fyNR2vd+RD9S68VXddrR6o/IWVXQ3ZdS9cXWutWIaqrpayTSJmjEd0WCLMyuDvHceGgCtF6oAsQo5WF6KEdryB1hTAVT9o0rQ2iteq+k/myEa0si/dARrhjFhT+LMUL2A+EY5aF7PUhKuYXkUdnrRkVrJy5KwiRss1+1GCJ2n1lM+Ekm9HD9UCrJ94rH9Herai645Dk0bMVP6t8f1iLYxN6NTELyR7HiVwF92P2e+Jpoo0D8YZxfyVexVft75KHdFZtRsb120Kpm7Pmnt0NHOm5LeC08qnybLxHA/Jr+o1MJvxC2U1nhkbJx4ZXS6Bjh4uHVNQVyUweHeYebrhe4zE6ql3VZ6LuyGQdqaSTYosrzYbx+w0lXBBvd2UH9Q01ijiORveGhTihm4wM0JmJUevKhEZkaG8mArhmkJISt/mb803fkQ+gBRnETp9ONpbrgdYaoncPbMZyyfWzXQS9iMI9yp4WzNBvSLpNyvevSLZwr2qxGkk4A2UtWvt83kLutxvC58guMIn+KWvz+FbFw62/dktkso7E6k8ADCXDS6QnA/4j+cq+d0nZbb/eth8DU3fVGYZVE6jZ8T4C5qOfyHXi3kV5soybv6pJgG71d1yy7eQb4I5eFk12SK6JuJC5n2xuVU21TjSEyJzDfmjOJgUMsMKKACas30PU/Cj6nnxhkEERahUFOokCcP48Hq+z0bMIZkyV1OInqwdaI4imwZwc4OgxJ1Xu5SfbkMJSPEl9eMR2K3tYsC3kuyEczH83w4TO9tx0uxf/1+kntdEmJ54wBAx+oHFEwK4ou5QT/eQr/jzwQNN0vgWKWWHNdaAq9vfUeKBpKJNvtKuAaQbR3dCIx+aYlChUqk1ziWJzP3LwDBLeZ73/gifuKZ/PWB9dZ8xBkcnxivE1XbwbT7WSRYvHPda81xZ86LEeaK0imsaRqZ5WUwXNZHJ4hhecyFRVjFmpVMKNmM7sKo3V/Hs/VjXLRdO0Z1w0dVd1oHbwUp/UnoLNmDJUmxnjZgbWUhhBMWKnrcOM80rJ0m9YFkRXQqD/A/mshzl9oUoNAAAAAElFTkSuQmCC",seqIcon2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABQFJREFUaEPtWt1v21QUv9eJ80FbWmV0adel7ZqyLenSgVYJaQghHhBIICEhoWkvSGgCiQ+JdWMCISEVxAPSoEWT+AN4QTzxzl/Ah8SAQtJ23dKvreuydl3TrIsd23e6xz63LovqeE2BePaLT06ur33O7+dzj8+5lPyHh5I7f4TfPpT6IIuPQSll9XwkWs/J3M7lGQOV7JdpYTxjX206gr4IMiM/CwQDdBhQTZ8VOreOs4//VxD0DWwkBO/kxjqRIkFDHwWZktdQZ2h6AOXlpUUQY3s7BKuCsoxB5ltUalLgYy43pYevu6Vr3SnqKQNZ9ptm9KjK7n5iye/bAkqYyzeuLQjV3OVJIavlMshyKCR03f2HQe5I9AgdpbRkBiP6BSpD6xTYQY+fubsdqjtC0DeQscZBkLERCamgZFveNmMH+9xGjzYu3165KVSzUzmQS8U1t7GBNLU8Kq7pS0HCQ1pjj9nmofPmD/aRoO3A2e/huWzZUM0U9ayB5exoP3iFGT/a3NfH5Y3SulDNTJrp5OpywTVatV6wJy5WIHLgkJkcRR5p2rzcWk8NSTuBSkcEfQMtVzUEgowxQFTLnj+OEBtEeteST6Lu2swVEGcvmUEEXnVW168cR9ZSyYx5vQdTYmxXbxKf5eWqFPWkgSw7GkNrVWa8A2gQkkCdrigQm4Ph8Kuom7j4K4grhSVHT+/2gFh7XNwifeyp+xH0vIEYJU3TjXP8VFiYLaJbSsViK5eTA4Nvoi732y8g3rp5Y7cBcpzfEUHfQC8iOD3+u0goJUlq5zzpP3L0Lc9Q1PMGTv55USSUciCwt9EQlCh5Riz01YKMb+D/fJlwhWA4JHdxuPtSmTcaJcj4BtrfwWg00m1m7enXPYmgb6Bjtri7A6rlolveQeWvMfHFyKh+mj+OpyjqfQPHRzNIIiYZ79WCYH7ib7hkcS6/u/yrYfZ9PVDggwPrp1sp6ht4/zLhKQRZRYUO0qEnhk4hFQLBYAuX7UVeLBvai8E1MMzVEHuRFwu/9mIwLzLAhAZ5WiTbigNFPWng/KWJVfTAfP4y1GfC4bBo4iUHBp/lulh7XHiKt/m4bmlhTqAyb/UCK6rqCik+2N4zTCQPwvWdiV4xD5WkCv9BGbmASlkLQDOIPjl8e1sEPWXglpYz02ELB2MEKmn8KK2uQBv2ymTW5DchZH1tDbzX0toGLTN+9KcyL/Bzc1ubWHYqqgqVckTynwhjNRyr1Pz/fd0HYD5EjctBGcjB+3VTeD9JZ/B1Iw+e+wl11c7UN7DREbTDyqYvQMtZVRVzBxK8xPR5fjYYC6Ju+fpV2BQwO5UTrduyoupcF+/aL8r+3Y8ffonrIpGo0NmXkYK1OaHToiUfG45GLTYSUVVmViAJKaWvxXMNjWxsR00x7qEysJpHsHdRYYZovhiMDfGxuq6JntnV/DSE5sWZvLnlA9ZbA87JVOYY6uL7e4ER/JAkam5DoUQwgRH2HVdphvwpjmvOnH7gHoFjh9c30HJzwyJYjbbl8TH4RqGSJvagMUJBp2zcgTWSH4VFMxh1JHogd+VHKBQxowhMQCGoMV37DFWRox+Kta7avd3qHCn6UBqIRmPLG4KC1dc3qPTK5v9mRkQJEa0ASukP+L+cPvOHCWR9tzHbQXkgBH0DLQ9gTtuwCFZ7PzEb4v9Vyhok3vJyEagIdHxuRHMbKHYyfkcUbQQD7wHq9EAq9LeVYwAAAABJRU5ErkJggg==",seqIcon3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABMJJREFUaEPtWl1sFFUUPndmlm1LdW1XoGxly7qFYqmIBkxEJDTRRI3RxNhgpDzpkwixJCaEJx588MHQCPrgGwT8SSD4Zkx84DfGEEjU2KpAS6ktZVsKpF0K3Z+55p4798ysGdju0A3Mdu5De/bcn7nnfN/ce+ecy+ABli1fHGsTjz+4fWMPTYMxPptTYrM5WKljBQaW6jGX9mVF8N19p2PimYxBnXq2ZpqfK5kDvCpl/qvSMdC7hPzN9vWkux87AwNn6r3O7pOLRVtT5+/bfVinJS9TOjNvakoeG0mhGF20gLoYIUMtMgcI9TzsEvKhrg0jM52PzYhSe9ylfWCg5RhfINjx9c8RMd/QnapN9v7FP7Dk1aTjPCTk1LDNrIHzfVSduTONcmgeNsPStCyJ/xvijfbQjKXFD87ZZ0qZy+t7hHx4x7rb9yKhp0Wmogx8be+PYeGhCNS+TC89AC7lAPCCw3s1Qr557TqpLv19AeX0xOS9nOxaN/+RWtInW1tQjkRptxE/BxFVYDtVw++2rf8eZcdpqCiCgYG2/32AIOeI6OYvT62jeXO2RVKBv+PgUlTIU+lbpOr/6zzKN8bGS6bjTDtEGxZS08SKZpSra9CvVpEnIt3UaPErpGglGtix55d6ZX/IyH4oX1JYonSZ25kGIc+rCr+pdEP9l1Ec+Oei7Ts+q185RUFlmjwQJVokkqI0JuL43wR4Q+lYYKDfEez86hhhbJraJwLaoT7cYrCkJyaRoitWtxFFe8/9jnXjqbGiVCp3g/qFj9MjVq6Rh6gCis5JA3vP/kFe0TQmEXx2FSHYc/Y3rL8+eq3cABUd3xOCgYF+R7DnjE1R3ahAigYGPuQU5SZ7iU4ybtuE3xEMDHQiGAqHnhBwL1/V+rqC/WHfB0tCMDCw6FmjvA3cTjIFCG7qPvGUmoJuwMdCdlI0XF2FH1nNbS1WHgHAVxSteAM37zvxtEKQA3xUcQgGBvr9HfSCYH+vDBEOD9hf/uVdK+8+emwpxcdARcALVtE5aeClP+1w4GR64jHhv9bnnqFQnBEyMNrqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",__default__=vue.defineComponent({name:"EcanTable",components:{Skeleton,AButton:antDesignVue.Button,AInput:antDesignVue.Input,ACheckboxGroup:antDesignVue.CheckboxGroup,ATable:antDesignVue.Table,ATableSummary:antDesignVue.TableSummary,ATableSummaryRow:antDesignVue.TableSummaryRow,ATableSummaryCell:antDesignVue.TableSummaryCell,DownOutlined:DownOutlined$1,RightOutlined:RightOutlined$1,MarqueeScroll},props:{...tableComponentProps},setup(c,{expose:u}){const{pageMode:f,height:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",height:null}),d=vue.ref(!1),v=vue.computed(()=>vue.unref(f)!=="design"&&c.isAutoScroll),p=vue.ref({}),m=vue.ref(!1),g=vue.computed(()=>{const hr=lodashEs.cloneDeep(c.columns);return c.isUseSeq&&hr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&hr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),hr}),y=vue.ref(),x=vue.ref(!1),pn=usePickComponentStyle(c),b=vue.ref([]),re=vue.computed(()=>{const{height:hr}=c;return typeof hr=="string"?hr:hr.suffix==="px"?hr.value+"px":hr.suffix==="%"?parseFloat(vue.unref(h))*(hr.value/100)+"px":"0"}),_=vue.computed(()=>c.scrollX),J=vue.ref(parseFloat(re.value)),En=()=>{let hr=0;switch(c.size){case"small":hr=50;break;case"middle":hr=53;break;default:hr=65;break}return hr},gn=vue.ref(0),w=vue.ref(""),hn=vue.ref(0);vue.watchEffect(()=>{var hr;(hr=b.value)!=null&&hr.length&&re.value&&setTimeout(()=>{let pr=parseFloat(re.value),gr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Cr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Ar=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`);let _r=0;if(Cr&&(pr-=(Cr==null?void 0:Cr.clientHeight)||0),Ar&&c.isSummaryFixed&&(_r=(Ar==null?void 0:Ar.clientHeight)||0,pr-=_r),c.paginationShow&&!c.isAutoScroll){let xr=0;xr=En(),xr&&(pr-=xr)}(gr==null?void 0:gr.clientHeight)>pr?J.value=pr:J.value=0,vue.nextTick(()=>{if(_r){const xr=document.querySelector(`#ecanTable-${c.id} .ant-table-summary`),Pr=(xr==null?void 0:xr.clientHeight)||0;_r!==Pr&&vue.unref(J)&&(J.value=pr+_r-Pr)}c.isAutoScroll&&d.value&&setTimeout(()=>{var Br;const xr=document.querySelector(`#ecanTable-${c.id} .ant-table-body`);gr=document.querySelector(`#ecanTable-${c.id} .ant-table-tbody`),Cr=document.querySelector(`#ecanTable-${c.id} thead.ant-table-thead`);const Pr=xr||gr;gn.value=(Pr==null?void 0:Pr.clientHeight)||0,hn.value=(Cr==null?void 0:Cr.clientHeight)||0,p.value={height:((gr==null?void 0:gr.clientHeight)||0)+"px"};const Dr=document.querySelector(`#ecanTable-${c.id} .ant-table-body > table`);if(w.value=(Br=document.querySelector(`#ecanTable-${c.id} .ant-table`))==null?void 0:Br.className,Dr){const Vr=Dr.cloneNode(!0);Dr.style.visibility="hidden",setTimeout(()=>{Pr==null||Pr.setAttribute("id","hiddenTableBody")},0);const $r=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap`);if($r!=null&&$r.length){for(const Gr of $r)Gr.append(Vr.cloneNode(!0));const jr=document.querySelectorAll(`#ecanTable-${c.id} .scroll-wrap .ant-table-cell`);if(jr!=null&&jr.length)for(const Gr of jr)vn(Gr);const Hr=document.querySelector(`#ecanTable-${c.id} .vue3-marquee`);Hr&&Hr.addEventListener("scroll",Gr=>{var Ur;document.querySelector(`#ecanTable-${c.id} .ant-table-header`).scrollLeft=((Ur=Gr==null?void 0:Gr.target)==null?void 0:Ur.scrollLeft)||0})}}},0)})},0)});function vn(hr){hr.addEventListener("click",pr=>{const Cr=Pn(pr.target).getAttribute("dix");if(Cr){const Ar=document.querySelector(`#ecanTable-${c.id} #hiddenTableBody td[dix="${Cr}"]`);Ar&&Ar.click()}})}function Pn(hr){return hr.className.includes("ant-table-cell")?hr:Pn(hr.parentElement)}const Fn=vue.ref([]),zn=vue.ref([]),Vn=vue.ref([]),Yn=vue.ref([]),Gn=vue.ref(0),Un=vue.ref(1),Kn=vue.ref(c.paginationPageSize||10),Hn=vue.reactive([]),Qn=(hr,pr)=>{let gr="";return hr.forEach((Cr,Ar)=>{const{value:_r,rule:xr}=Cr;Cr.conditions?gr+=`(${Qn(Cr.conditions,Cr.join)})`:_r&&xr&&(gr+=`value ${xr} '${_r}'`),gr+=`${Ar===hr.length-1?"":pr?" "+pr+" ":""}`}),gr},Zn=(hr=[])=>{var pr,gr;if(Array.isArray(hr)&&hr.length>0){let Cr=hr.length;const Ar=c.columnsFixedNum;if(c.dataType==="indicator"&&((pr=vue.unref(g))!=null&&pr.length)&&!vue.unref(g).find(_r=>{var xr;return(xr=_r.children)==null?void 0:xr.length})){const{graphicConfig:{indicators:_r=[]}}=c;hr.forEach((xr,Pr)=>{if(vue.unref(g)[Pr])for(const Vr in vue.unref(g)[Pr])["dataIndex","title"].includes(Vr)||(xr[Vr]=vue.unref(g)[Pr][Vr]);const Dr=_r.find(Vr=>Vr.label===xr.title),{showLabel:Br=""}=Dr||{};Br&&(xr.title=Br)})}for(let _r=Cr-1;_r>=0;_r--)(gr=hr[_r])!=null&&gr.isHidden&&hr.splice(_r,1);Cr=hr.length;for(let _r=0;_r<Cr;_r++){const xr=hr[_r];if(_r<Ar?xr.fixed="left":xr.fixed=!1,c.isSortByFront&&xr.sorter){const Wr=xr.dataIndex;xr.sorter=(Yr,Xr)=>Yr[Wr]-Xr[Wr]}const{cellAlign:Pr="center",cellColor:Dr,dataIndex:Br,title:Vr,tableFilter:$r,headerCellAlign:jr,headerCellColor:Hr,overflow:Gr,conditions:Ur}=xr;$r&&(Hn.push(Br),xr.filterOptionsInputValue="",xr.filterCheckboxGroupValue=[],xr.customFilterDropdown=!0,xr.onFilter=(Wr,Yr)=>Yr[Br].toString().toLowerCase().includes(Wr.toLowerCase())),Ur&&(xr.conditionCode=Qn(Ur)),xr.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:c.headerFontSize,fontWeight:c.headerFontWeight,textAlign:jr||"center",color:Hr||c.headerFontColor,borderBottomColor:c.borderColor,backgroundColor:c.headerBackgroundColor}}),xr.customCell=(Wr,Yr,Xr)=>({style:{textAlign:Pr,color:Rn(Xr)?c.linkTextColor:Dr||c.cellFontColor,backgroundColor:c.cellBackgroundColor,borderBottomColor:c.borderColor},class:{highlight:vue.unref(wr)===Yr&&c.clickHighlight,linkText:Rn(Xr)},dix:Xr.dataIndex+"_"+Yr,onClick:lr("click",()=>{const mi=c.id,yi=ur(mi);Wr={dataIndex:Br,title:Vr,...Wr},fr(mi,{...yi,type:c.type,RECORD:Wr}),wr.value=Yr,setTimeout(()=>{if(!c.linkPage&&!c.href)return;let gi=!1;(Rn(Xr)||c.clickTarget!=="cell")&&(gi=!0),gi&&handleJumpLink(c,{pageMode:vue.unref(f),getRecordValueByKeyName:mr})},0)})}),Gr==="ellipsis"?xr.ellipsis=!0:xr.ellipsis=!1,Array.isArray(xr.children)&&Zn(xr.children)}}};function Rn(hr){let pr=!1;return c.clickTarget==="cell"&&c.clickTargetColumns.includes(hr.dataIndex)&&(pr=!0),pr}const qn=(hr=[])=>{var gr;let pr=lodashEs.cloneDeep(hr);return(gr=vue.unref(Yn))!=null&&gr.length&&(pr=lodashEs.cloneDeep(vue.unref(Yn))),c.isUseSeq&&pr.unshift({title:c.seqName,dataIndex:"SEQ",align:"center",width:c.seqWidth}),c.isUseAction&&pr.push({title:"操作",dataIndex:"ACTION",width:c.actionColumnWidth}),Zn(pr),pr};vue.watch(Kn,()=>{Un.value=1,Ir(!1)}),vue.watch(y,hr=>{x.value=!!hr}),vue.watch(()=>[c.columns,c.isUseSeq,c.seqWidth,c.seqName,c.seqIcon,c.isUseAction,c.columnsFixedNum,c.actionColumnWidth,c.cellBackgroundColor,c.headerBackgroundColor,c.borderColor,c.stripedColor],()=>{Fn.value=qn(lodashEs.cloneDeep(c.columns))},{immediate:!0,deep:!0}),vue.watch(()=>[c.data,c.dataType],([hr,pr])=>{pr==="static"&&(zn.value=hr)},{immediate:!0});const In=vue.ref({}),Dn=hr=>{if(Array.isArray(hr)){const pr=hr.length,gr=Hn,Cr=gr.length,Ar={};for(let xr=0;xr<pr;xr++){const Pr=hr[xr];for(let Dr=0;Dr<Cr;Dr++){const Br=gr[Dr];if(Ar[Br])Ar[Br].add(Pr[Br]);else{const Vr=new Set;Vr.add(Pr[Br]),Ar[Br]=Vr}}}const _r={};for(const xr in Ar)if(Object.prototype.hasOwnProperty.call(Ar,xr)){const Pr=Ar[xr],Dr=Array.from(Pr);_r[xr]=Dr.map(Br=>({label:Br,value:Br}))}In.value=_r}};vue.watch(()=>[c.isReverse,Fn.value,zn.value],()=>{const hr=vue.unref(Fn),pr=vue.unref(zn);if(Dn(pr),c.isReverse){const{columns:gr,dataSource:Cr}=er(lodashEs.cloneDeep(hr),lodashEs.cloneDeep(pr));Vn.value=gr,b.value=Cr.map(Ar=>({key:nanoid(6),...Ar}))}else Vn.value=hr,b.value=pr.map(gr=>({key:nanoid(6),...gr}))},{immediate:!0});const er=(hr,pr)=>{const gr=hr[0],Cr=[{title:gr.title,dataIndex:"col0",key:"col0",align:"center"}];for(let _r=0;_r<pr.length;_r++){const xr=pr[_r],Pr="col"+(_r+1);Cr.push({title:xr[gr.dataIndex],dataIndex:Pr,key:Pr,align:"center"})}const Ar=[];for(let _r=1;_r<hr.length;_r++){const xr=hr[_r],Pr={col0:xr.title};for(let Dr=0;Dr<pr.length;Dr++){const Br=pr[Dr];Pr[`col${Dr+1}`]=Br[xr.dataIndex]}Ar.push(Pr)}return{columns:Cr,dataSource:Ar}},Bn=vue.ref(""),Jn=hr=>{var Cr;const{rows:pr=[],total:gr=0}=((Cr=hr==null?void 0:hr.data)==null?void 0:Cr.data)||{};if(Gn.value=gr,Array.isArray(pr)&&(zn.value=pr),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:Ar=[]}=c,_r=Ar.find(xr=>xr.key==="dataSqlId");if((_r==null?void 0:_r.value)==="xt_jxzebg"){const xr=pr.filter(Pr=>!Pr.绩效总额).map(Pr=>Pr.ORG_NAME);xr!=null&&xr.length&&vue.nextTick(()=>{antDesignVue.notification.warning({message:"提示",description:`当前时段${xr.join("、")}绩效数据为空`,duration:3})})}}d.value=!0},Xn=useRequestData(c),Wn=async(hr=!0,pr={})=>{try{hr&&(m.value=!0),vue.unref(Bn)&&(pr.orderCondition=vue.unref(Bn)),c.paginationShow&&(pr={pageNum:vue.unref(Un),pageSize:vue.unref(Kn)||"10",layer:"1",...pr});const gr=await Xn(pr);Jn(gr)}catch(gr){console.error(gr)}finally{m.value=!1}},nr=({current:hr},pr,gr)=>{if(Un.value=hr,gr&&Object.keys(gr).length>0){const{field:Cr,order:Ar}=gr,xr={ascend:"asc",descend:"desc"}[Ar];Cr!=null&&xr!=null&&xr?Bn.value=Cr+" "+xr:xr||(Bn.value="")}c.isSortByFront||Ir(!1)},ir=vue.computed(()=>{const hr=c.simple,pr=[c.paginationPosition],gr={};return c.isShowTotal&&(gr.showTotal=Cr=>`共 ${Cr} 条数据`),c.paginationShow&&{simple:hr,position:pr,total:vue.unref(Gn),current:vue.unref(Un),pageSize:vue.unref(Kn)||"10",showSizeChanger:!1,size:"large",...gr}}),ar=hr=>+hr==1?"是":+hr==0?"否":hr,or=(hr,pr)=>{const{format:gr,retentiondigit:Cr,customFormatter:Ar,defaultVal:_r}=pr;let xr="";if(gr==null||gr==="")xr=hr;else{const Pr={money:formatMoney,percentage:formatPercentage,contrast:formatPercentage,boolean:ar,decimals:formatDecimals,custom:formatCustom};Pr[gr]||(xr=""),gr==="decimals"?xr=Pr[gr](hr,Cr)||"":gr==="custom"?xr=Pr[gr](hr,Ar)||"":xr=Pr[gr](hr)||""}return xr||(xr=_r),xr},tr=hr=>hr==="contrast"?"upDown":"",sr=hr=>{const{text:pr,format:gr,declineColor:Cr="#39cf93",increaseColor:Ar="#ff512e"}=hr;if(gr==="contrast"){const _r={fontSize:c.fontSize},xr=parseFloat(pr+"");return xr>=0?_r.color=Ar:xr<0&&(_r.color=Cr),_r}else return{}},cr=vue.computed(()=>{const{fontSize:hr}=c;return{width:hr,height:hr,textIndent:`-${parseFloat(hr)*2}px`,overflow:"hidden"}}),vr=hr=>{const{text:pr,declineColor:gr="#39cf93",increaseColor:Cr="#ff512e"}=hr,{fontSize:Ar}=c,_r=parseFloat(pr+""),xr={width:Ar,verticalAlign:"unset"};return _r>=0?xr.filter=`drop-shadow(${Cr||"#ff512e"} ${Ar} -1px)`:_r<0&&(xr.filter=`drop-shadow(${gr||"#39cf93"} ${Ar} -1px)`),xr},dr=hr=>{const pr=parseFloat(hr+"");if(pr>=0)return goUp;if(pr<0)return goDown},lr=useEmitEvent(c),{getGlobalModel:ur,setGlobalModel:fr,getRecordValueByKeyName:mr}=vue.inject(GLOBAL_MODEL,{getGlobalModel:hr=>{},setGlobalModel:(hr,pr)=>{},getRecordValueByKeyName:hr=>{}});fr(c.id,{type:c.type,RECORD:""});const yr=(hr=[],pr=[])=>{let gr=hr.map(Cr=>({title:Cr,dataIndex:Cr,key:Cr}));vue.unref(g).find(Cr=>{var Ar;return(Ar=Cr.children)==null?void 0:Ar.length})&&(gr=lodashEs.cloneDeep(vue.unref(g))),Yn.value=lodashEs.cloneDeep(gr),Fn.value=qn(gr),zn.value=pr,d.value=!0},br=hr=>{var pr,gr,Cr,Ar;yr((gr=(pr=hr==null?void 0:hr.data)==null?void 0:pr.data)==null?void 0:gr.columns,(Ar=(Cr=hr==null?void 0:hr.data)==null?void 0:Cr.data)==null?void 0:Ar.rows)},Sr=useIndicatorData(c,br),Er=async(hr=!0)=>{try{hr&&(m.value=!0);const pr=vue.unref(Bn).split(" "),gr={};c.isSortByFront||(gr.sort={order:pr[1],field:pr[0]});const Cr=await Sr(gr);br(Cr)}catch(pr){console.error(pr)}finally{m.value=!1}},wr=vue.ref(-1),{loadedData:kr}=vue.inject(LOADED_DATA,{loadedData:{}}),Mr=vue.ref(!1);vue.watch(kr,hr=>{if(c.dataType==="indicator"){const pr=getFixedValueDatas(c.graphicConfig);pr!=null&&pr.length&&(!vue.unref(Mr)&&canRequestIndicator(c.graphicConfig,hr)?(Mr.value=!0,Ir()):canRequestIndicator(c.graphicConfig,hr)||(Mr.value=!1))}},{deep:!0});const Ir=(hr=!0)=>{switch(c.dataType){case"request":Wn(hr);break;case"indicator":canRequestIndicator(c.graphicConfig,vue.unref(kr))&&Er(hr);break}},Tr=()=>{const hr=c.id,pr=ur(hr);fr(hr,{...pr,type:c.type,RECORD:""})},Fr=vue.computed(()=>{const hr=vue.unref(Vn);let pr=0;const{subTotalColumn:gr,subTotalName:Cr}=c;gr&&(pr=hr.findIndex(Dr=>Dr.dataIndex===gr),pr<0&&(pr=0));const Ar=[];let _r=0;for(let Dr=0;Dr<hr.length;Dr++){const Br=hr[Dr],{isCalcTotal:Vr}=Br;Dr===pr?Ar.push({...Br,total:Cr}):Vr?(Ar.push({...Br,index:Dr,total:0}),_r++):Ar.push({...Br})}if(_r===0)return[];const xr=vue.unref(b),Pr=Lr(Ar);for(let Dr=0;Dr<Pr.length;Dr++){const Br=Pr[Dr];let Vr=0;const{isCalcTotal:$r,dataIndex:jr}=Br;if($r===!0){for(let Hr=0;Hr<xr.length;Hr++){const Ur=+xr[Hr][jr];isNaN(Ur)||(Vr=new big_js.Big(Vr).add(Ur).toNumber())}Br.total=Vr}}return Pr});function Lr(hr){var gr;const pr=[];for(const Cr of hr)(gr=Cr.children)!=null&&gr.length?pr.push(...Lr(Cr.children)):pr.push(Cr);return pr}const{setRequest:Or}=vue.inject(REQUEST_MODEL,{setRequest:hr=>{}});typeof Or=="function"&&Or({id:c.id,requestFn:Ir,sortNum:c.requestSort}),u({refreshData:Ir});const Nr=(hr="",pr)=>useVariablesInText(hr,pr),zr=hr=>{if(hr!=="event")return{self:"_self",blank:"_blank"}[hr]},qr=(hr,pr="")=>{hr==="event"&&window.parent.postMessage({type:"openPage",url:pr},"*")},Zr=(hr,pr)=>{hr(pr.filterCheckboxGroupValue)},Kr=(hr,pr)=>{hr({confirm:!0}),pr.filterOptionsInputValue="",pr.filterCheckboxGroupValue=[]},Qr=()=>{},ai=hr=>{const pr=hr.dataIndex;if(typeof pr=="string"){let gr=vue.unref(In)[pr];const Cr=vue.unref(hr.filterOptionsInputValue).trim();return Array.isArray(gr)?(gr=gr.filter(Ar=>typeof Ar.label=="string"?Ar.label.toLowerCase().includes(Cr.toLowerCase()):!0),gr):[]}return[]},ei=async()=>{var Br,Vr;const hr="EXPORT_KEY";antDesignVue.message.loading({key:hr,content:"正在导出...",duration:0});let pr=[];if(c.dataType==="static")pr=c.data;else if(c.dataType==="request"){const $r={layer:"1"};vue.unref(Bn)&&($r.orderCondition=vue.unref(Bn));const jr=await Xn($r);pr=((Vr=(Br=jr==null?void 0:jr.data)==null?void 0:Br.data)==null?void 0:Vr.rows)||{}}const gr=vue.unref(Vn),Cr=[],Ar=[];gr==null||gr.forEach($r=>{Cr.push($r.dataIndex),Ar.push($r.title)});const _r=pr.map($r=>lodashEs.pick($r,Cr)),xr=xlsx.utils.book_new(),Pr=xlsx.utils.aoa_to_sheet([Ar]),Dr=xlsx.utils.sheet_add_json(Pr,_r,{skipHeader:!0,origin:"A2"});xlsx.utils.book_append_sheet(xr,Dr,"sheet"),xlsx.writeFile(xr,"表格数据.xlsx"),antDesignVue.message.success({key:hr,content:"导出成功"})},ti=(hr,pr=2)=>{const gr=+hr*100;return isNaN(gr)||gr<=0?0:gr>=100?100:gr.toFixed(pr)};useOnEvent(c,{resetRecord:Tr,refreshData:Ir,exportTableData:ei});const oi=(hr,pr)=>{let gr=null;return c.stripedShow&&(gr=pr%2===1?"table-striped":null),gr},ni=vue.computed(()=>{let hr=0;const{isPageBottom:pr}=c;return pr&&re.value&&(hr=parseFloat(vue.unref(re))-En()),hr?hr+"px":"100%"}),si=vue.computed(()=>{let hr="#071655";return c.headerBackgroundColor&&(hr="transparent"),hr}),ri=vue.computed(()=>{let hr="#071655";return(c.cellBackgroundColor||c.stripedShow&&c.stripedColor)&&(hr="transparent"),hr}),li=vue.computed(()=>parseFloat(c.fontSize)+16),ci=vue.computed(()=>{let hr="";const{paginationColor:pr,paginationBgColor:gr,activePaginationColor:Cr,activePaginationBgColor:Ar,hoverBackgroundColor:_r}=c;return pr&&(hr+="p-color "),gr&&(hr+="p-bg-color "),Cr&&(hr+="active-p-color "),Ar&&(hr+="active-p-bg-color "),_r&&(hr+="hover-bg-color "),hr}),ii=(hr,pr)=>{const{conditionCode:gr}=hr;return runCode(gr,{value:pr})};return{x:_,y:J,style:pn,pagination:ir,formatFn:or,contrastClass:tr,tableChange:nr,summaryList:Fr,loading:m,onTouchHrefEvent:qr,handleHref:Nr,handleHrefTarget:zr,useRowIndex:wr,tableColumns:Vn,tableDataSource:b,useFilterOptions:ai,useSetSelectedKeys:Zr,onResetFilter:Kr,onSearchFilterOptions:Qr,exportTableData:ei,handleProgressText:ti,pageSizeVisible:x,pageSize:Kn,tableRef:y,rowClassName:oi,tableHeight:ni,tableHeaderBgColor:si,tableBodyBgColor:ri,getChgStyle:sr,chgBoxStyle:cr,getChgBoxImgStyle:vr,getChgBoxImgSrc:dr,seqIcon1,seqIcon2,seqIcon3,iconSize:li,containerClass:ci,getCellStyle:(hr,pr)=>{const{overflow:gr,conditionCode:Cr,attribute:Ar}=hr,_r={};return gr==="ellipsis"&&(_r.overflow="hidden",_r.textOverflow="ellipsis"),Cr&&(Ar!=null&&Ar.color)&&ii(hr,pr)&&(_r.color=Ar.color),Ar!=null&&Ar.icon&&(hr==null?void 0:hr.cellAlign)==="right"&&(_r.display="flex",_r.alignItems="center",_r.justifyContent="flex-end"),_r},isMatchCondition:ii,getAttrImgSrc:hr=>{const{attribute:pr}=hr;let gr="";return pr!=null&&pr.icon&&(gr=useImagePath(pr.icon)),gr},getAttrImgStyle:hr=>{let pr={};return(hr==null?void 0:hr.cellAlign)==="right"?pr={marginRight:"5px"}:pr={position:"absolute",marginLeft:"5px"},{width:"auto",height:parseFloat(c.fontSize)+6+"px",...pr}},getCellText:(hr,pr)=>hr||hr===0?hr:pr==null?void 0:pr.defaultVal,autoScrollHeight:gn,autoScrollClass:w,autoScrollTop:hn,isScroll:v,scrollWrapStyle:p,isLinkStyle:Rn}}}),__injectCSSVars__=()=>{vue.useCssVars(c=>({"4a46f6a0":c.stripedColor,"3b3e6557":c.tableHeaderBgColor,"6bb0c622":c.tableBodyBgColor,ef8c8220:c.paginationBgColor,"5d2ee4b5":c.paginationColor,"1ffc238a":c.activePaginationBgColor,"18d4b062":c.activePaginationColor,ebaa8ea6:c.hoverBackgroundColor}))},__setup__=__default__.setup;__default__.setup=__setup__?(c,u)=>(__injectCSSVars__(),__setup__(c,u)):__injectCSSVars__;const Table_vue_vue_type_style_index_0_scoped_60425935_lang="",Table_vue_vue_type_style_index_1_lang="",_withScopeId=c=>(vue.pushScopeId("data-v-60425935"),c=c(),vue.popScopeId(),c),_hoisted_1$1=["id"],_hoisted_2$1={key:0,class:"table-tool"},_hoisted_3=vue.createTextVNode("导出数据"),_hoisted_4={key:0,style:{float:"left","margin-right":"5px"}},_hoisted_5={key:1,style:{float:"left","margin-right":"5px",visibility:"hidden"}},_hoisted_6=vue.createTextVNode(" 搜索 "),_hoisted_7=vue.createTextVNode(" 重置 "),_hoisted_8=["src","width","height"],_hoisted_9=["src","width","height"],_hoisted_10=["src","width","height"],_hoisted_11={key:1},_hoisted_12={key:1,class:"action-list"},_hoisted_13=["href","target","onClick"],_hoisted_14={key:2,class:"progress-cell"},_hoisted_15=["src"],_hoisted_16=["title"],_hoisted_17=["title"],_hoisted_18=["src"],_hoisted_19=["title"],_hoisted_20=["src"],_hoisted_21=["src"],_hoisted_22={class:"ant-pagination-options-quick-jumper"},_hoisted_23=_withScopeId(()=>vue.createElementVNode("span",null,"条 / 页",-1));function _sfc_render$4(c,u,f,h,d,v){const p=vue.resolveComponent("a-button"),m=vue.resolveComponent("down-outlined"),g=vue.resolveComponent("right-outlined"),y=vue.resolveComponent("a-input"),x=vue.resolveComponent("a-checkbox-group"),pn=vue.resolveComponent("a-table-summary-cell"),b=vue.resolveComponent("a-table-summary-row"),re=vue.resolveComponent("a-table-summary"),_=vue.resolveComponent("a-table"),J=vue.resolveComponent("marquee-scroll"),En=vue.resolveComponent("skeleton");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["ecan-table",c.containerClass]),id:"ecanTable-"+c.id,style:vue.normalizeStyle(c.style)},[vue.createVNode(En,{loading:c.loading},{default:vue.withCtx(()=>{var gn;return[c.isUseExport?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1,[vue.createVNode(p,{class:"export-button",onClick:c.exportTableData},{default:vue.withCtx(()=>[_hoisted_3]),_:1},8,["onClick"])])):vue.createCommentVNode("",!0),vue.createVNode(_,{ref:"tableRef",class:"table",style:vue.normalizeStyle({height:c.tableHeight}),columns:c.tableColumns,"data-source":c.tableDataSource,bordered:c.bordered,size:c.size,scroll:c.y?{x:c.x,y:c.y}:{x:c.x},pagination:c.isAutoScroll?!1:c.pagination,"row-class-name":c.rowClassName,"show-header":!c.hideTableHeader,indentSize:30,onChange:c.tableChange},{expandIcon:vue.withCtx(w=>{var hn;return[(hn=w.record.children)!=null&&hn.length?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4,[w.expanded?(vue.openBlock(),vue.createBlock(m,{key:0,onClick:vn=>w.onExpand(w.record,vn)},null,8,["onClick"])):(vue.openBlock(),vue.createBlock(g,{key:1,onClick:vn=>w.onExpand(w.record,vn)},null,8,["onClick"]))])):(vue.openBlock(),vue.createElementBlock("span",_hoisted_5,[vue.createVNode(m)]))]}),customFilterDropdown:vue.withCtx(({column:w,selectedKeys:hn,setSelectedKeys:vn,confirm:Pn,clearFilters:Fn})=>[vue.createElementVNode("div",{class:"ecan-table-filter",style:vue.normalizeStyle({height:c.filterDropdownHeight})},[vue.createVNode(y,{value:w.filterOptionsInputValue,"onUpdate:value":zn=>w.filterOptionsInputValue=zn,placeholder:"请输入关键字",class:"filter-input",onChange:c.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),vue.createVNode(x,{value:w.filterCheckboxGroupValue,"onUpdate:value":zn=>w.filterCheckboxGroupValue=zn,class:"filter-checkbox",options:c.useFilterOptions(w),onChange:zn=>c.useSetSelectedKeys(vn,w)},null,8,["value","onUpdate:value","options","onChange"]),vue.createElementVNode("div",null,[vue.createVNode(p,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>Pn()},{default:vue.withCtx(()=>[_hoisted_6]),_:2},1032,["onClick"]),vue.createVNode(p,{size:"small",style:{width:"90px"},onClick:vue.withModifiers(zn=>c.onResetFilter(Fn,w),["stop"])},{default:vue.withCtx(()=>[_hoisted_7]),_:2},1032,["onClick"])])],4)]),bodyCell:vue.withCtx(({column:w,index:hn,text:vn,record:Pn})=>{var Fn,zn,Vn,Yn,Gn,Un;return[w.dataIndex==="SEQ"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.seqIcon?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[hn===0?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"seq-icon",src:c.seqIcon1,width:c.iconSize,height:c.iconSize},null,8,_hoisted_8)):hn===1?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:"seq-icon",src:c.seqIcon2,width:c.iconSize,height:c.iconSize},null,8,_hoisted_9)):hn>=2?(vue.openBlock(),vue.createElementBlock("img",{key:2,class:"seq-icon",src:c.seqIcon3,width:c.iconSize,height:c.iconSize},null,8,_hoisted_10)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:"seq-icon seq-text",style:vue.normalizeStyle({fontSize:c.fontSize})},vue.toDisplayString(hn+1),5)],64)):(vue.openBlock(),vue.createElementBlock("span",_hoisted_11,vue.toDisplayString(hn+1),1))],64)):w.dataIndex==="ACTION"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.actionList,(Kn,Hn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"action",key:Hn},[vue.createElementVNode("a",{href:c.handleHref(Kn.href,Pn),target:c.handleHrefTarget(Kn.target),style:vue.normalizeStyle({color:Kn.color,fontSize:c.fontSize,fontWeight:c.fontWeight}),onClick:Qn=>c.onTouchHrefEvent(Kn.target,c.handleHref(Kn.href,Pn))},vue.toDisplayString(Kn.title),13,_hoisted_13)]))),128))])):w.format==="progress"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_14,[vue.createElementVNode("div",{class:"progress",style:vue.normalizeStyle({background:w.progressColor||"#1890ff",height:w.progressWidth||"18px",width:`${c.handleProgressText(vn,w.progressTextDecimalPlaces)}%`})},null,4),vue.createElementVNode("div",{class:"progress-text",style:vue.normalizeStyle({color:+c.handleProgressText(vn)<100?w.progressTextColor||"#333":w.progressFinishedTextColor||"#fff"})},vue.toDisplayString(c.handleProgressText(vn,w.progressTextDecimalPlaces))+"% ",5)])):(vue.openBlock(),vue.createElementBlock("div",{key:3,style:vue.normalizeStyle({fontSize:c.fontSize,fontWeight:c.isLinkStyle(w)?"bold":c.fontWeight,...c.getCellStyle(w,vn)})},[c.isMatchCondition(w,vn)&&(w==null?void 0:w.cellAlign)==="right"&&((Fn=w==null?void 0:w.attribute)!=null&&Fn.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:0,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_15)):vue.createCommentVNode("",!0),w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:1,title:((zn=w==null?void 0:w.customFormatter)==null?void 0:zn.split("{value}")[0])||""},vue.toDisplayString(((Vn=w==null?void 0:w.customFormatter)==null?void 0:Vn.split("{value}")[0])||""),9,_hoisted_16)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle(c.getChgStyle({...w,text:vn})),title:w.format!=null?c.formatFn(vn,w):vn},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:vn})),src:c.getChgBoxImgSrc(vn)},null,12,_hoisted_18)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(w.format!=null?c.formatFn(vn,w):c.getCellText(vn,w)),1)],14,_hoisted_17),w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("span",{key:2,title:((Yn=w==null?void 0:w.customFormatter)==null?void 0:Yn.split("{value}")[1])||""},vue.toDisplayString(((Gn=w==null?void 0:w.customFormatter)==null?void 0:Gn.split("{value}")[1])||""),9,_hoisted_19)):vue.createCommentVNode("",!0),c.isMatchCondition(w,vn)&&(w==null?void 0:w.cellAlign)!=="right"&&((Un=w==null?void 0:w.attribute)!=null&&Un.icon)?(vue.openBlock(),vue.createElementBlock("img",{key:3,style:vue.normalizeStyle(c.getAttrImgStyle(w)),src:c.getAttrImgSrc(w)},null,12,_hoisted_20)):vue.createCommentVNode("",!0)],4))]}),summary:vue.withCtx(()=>[c.summaryList.length>0?(vue.openBlock(),vue.createBlock(re,{key:0,fixed:c.isSummaryFixed},{default:vue.withCtx(()=>[vue.createVNode(b,null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.summaryList,(w,hn)=>(vue.openBlock(),vue.createBlock(pn,{key:hn,index:hn,style:vue.normalizeStyle({backgroundColor:c.cellBackgroundColor,textAlign:w.cellAlign||"center",color:c.cellFontColor,borderBottomColor:c.borderColor})},{default:vue.withCtx(()=>[vue.createElementVNode("span",{class:vue.normalizeClass([c.contrastClass(w.format)]),style:vue.normalizeStyle({...c.getChgStyle({...w,text:w.total}),fontSize:c.fontSize,fontWeight:c.fontWeight})},[w.format==="contrast"?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle(c.chgBoxStyle)},[vue.createElementVNode("img",{style:vue.normalizeStyle(c.getChgBoxImgStyle({...w,text:w.total})),src:c.getChgBoxImgSrc(w.total)},null,12,_hoisted_21)],4)):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString((w.format!=null||w.format!=="")&&c.formatFn(w.total,w)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):vue.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","scroll","pagination","row-class-name","show-header","onChange"]),c.paginationShow?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[(gn=c.tableDataSource)!=null&&gn.length&&!c.simple&&c.pageSizeShow&&c.pageSizeVisible?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#ecanTable-"+c.id+" .ant-pagination"},[vue.createElementVNode("div",_hoisted_22,[vue.withDirectives(vue.createElementVNode("input",{type:"text","onUpdate:modelValue":u[0]||(u[0]=w=>c.pageSize=w)},null,512),[[vue.vModelText,c.pageSize]]),_hoisted_23])],8,["to"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),c.isAutoScroll?(vue.openBlock(),vue.createElementBlock("div",{key:2,class:vue.normalizeClass(["auto-scroll-content ant-table-wrapper table",c.autoScrollClass]),style:vue.normalizeStyle({width:"100%",position:"absolute",left:"0",height:c.autoScrollHeight+"px",top:c.autoScrollTop+"px",overflow:"auto"})},[vue.createVNode(J,{visible:c.isScroll,step:c.scrollSpeed,wrapStyle:{display:"flex",flexDirection:"column",flexWrap:"wrap"}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"scroll-wrap",style:vue.normalizeStyle(c.scrollWrapStyle)},null,4)]),_:1},8,["visible","step"])],6)):vue.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,_hoisted_1$1)}const Table=_export_sfc$1(__default__,[["render",_sfc_render$4],["__scopeId","data-v-60425935"]]),EcanTable=withInstall$1(Table),mapProps={...props,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff",areaStyleKeyName:"",mapAreaStyleConfig:[],legendShow:!1,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"bottom",legendLeft:"right",mapLegendType:"circle",legendTextShow:!0,legendTitle:"",legendTitleColor:"#333",legendTitleFontSize:"16px",legendFrontText:"",legendAfterText:"",legendBoxShadow:""},mapComponentProps=transformToComponentProps(mapProps),mapEvents=["refreshData","click"];core$1.use([renderers.CanvasRenderer,charts.MapChart,charts.ScatterChart,components$1.VisualMapComponent,components$1.TooltipComponent,components$1.GraphicComponent]);const _sfc_main$3=vue.defineComponent({name:"EcanMap",components:{Echarts},props:{...mapComponentProps},setup(c){const u=useRequestData({...c.tooltipRequestData,requestHeaders:{}}),f=vue.ref(),h=vue.ref(""),d=vue.ref(""),v=usePickComponentStyle(c,["backgroundImage"]),p=vue.ref(),m=vue.computed(()=>useImagePath(c.geoBackgroundImage)),g=vue.computed(()=>useImagePath(c.backgroundImage)),y=vue.ref([]),x=vue.computed(()=>c.geoBackgroundImage?{image:vue.unref(p),repeat:c.geoBackgroundImageRepeat}:c.geoItemStyleAreaColor),pn=vue.computed(()=>{const Wn=c.symbolImage;return c.symbolImage?"image://"+useImagePath(Wn):"circle"}),b=Wn=>{let nr=c.tooltipFormatter;const ir=nr.match(/\{(.+?)\}/g);if(ir==null||ir.length===0)return nr;for(let ar=0;ar<ir.length;ar++){const or=ir[ar];let tr=or.slice(1,-1).trim();const sr=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,cr=tr.match(sr);for(let vr=0;vr<cr.length;vr++){const dr=cr[vr],lr=Wn[dr];lr!=null&&(tr=tr.replace(dr,lr))}nr=nr.replace(or,tr)}return nr.split(`
|
|
131
|
-
`)},re=vue.ref(!1),_=vue.ref("");let J=new AbortController;const En=(Wn,nr)=>{const ir=J.signal;re.value=!0,h.value=Wn,u({name:Wn,signal:ir}).then(ar=>{var or,tr;if(ar){const sr=((tr=(or=ar==null?void 0:ar.data)==null?void 0:or.data)==null?void 0:tr.rows)||[];let cr="";for(const vr of sr){const dr=b(vr)||[];if(dr!=null&&dr.length)for(const lr of dr)cr+=`<div style="word-break: break-all;white-space: normal;">${lr}</div>`}cr=`<div style="max-width:200px;">${cr}</div>`,d.value=cr,nr(vue.unref(_),cr)}else ir.aborted?d.value="Loading":d.value=Wn,nr(vue.unref(_),d.value);re.value=!1})},gn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?gn.value:c.data),hn=vue.computed(()=>{const Wn=[],{mapAreaStyleConfig:nr}=c;if(nr!=null&&nr.length)for(const ir of nr)Wn.push({...ir,key:nanoid(6)});return Wn}),vn=vue.computed(()=>{const Wn=[];for(const nr of vue.unref(hn)){let ir="";nr.value1&&(ir+=`value ${nr.rule1} ${nr.value1}`),nr.value2&&(ir+=`${nr.value1?"&&":""} value ${nr.rule2} ${nr.value2}`),ir&&Wn.push({rule:ir,color:nr.color,key:nr.key})}return Wn.reverse()}),Pn=vue.computed(()=>{var ir;const Wn=[],{areaStyleKeyName:nr}=c;if((ir=vue.unref(w))!=null&&ir.length)for(const ar of vue.unref(w)){const or=ar[nr];if(or||or===0){const tr=vue.unref(vn).find(sr=>runCode(sr.rule,{value:or}));tr&&Wn.push({name:ar.name,itemStyle:{areaColor:vue.unref(y).includes(tr.key)?c.geoItemStyleAreaColor:tr.color}})}}return Wn}),Fn=vue.computed(()=>{const Wn=c.geoCenter;let nr;return typeof Wn=="string"&&Wn!==""&&(nr=Wn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:nr,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(ir,ar,or)=>{_.value=ar;const{name:tr=""}=ir,{requestUrl:sr}=c.tooltipRequestData;if(!sr){let cr="",vr=c.tooltipFormatter;vr===""&&(vr="{name}:{value}");const dr=vue.unref(w).find(lr=>lr.name===tr);return dr?(cr+=useVariablesInText(vr,{textData:{name:tr,...dr}},{useNewline:!0,useSpace:!0}),cr):tr}if(vue.unref(re))vue.unref(h)!==tr&&(J.abort(),J=new AbortController);else{if(vue.unref(h)===tr)return vue.unref(d);En(tr,or)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Pn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(pn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),zn=vue.ref(!1),Vn=async()=>{var ir;zn.value=!1;const Wn=c.mapJson,nr=`map-${c.id}`;if(Wn!=null&&Wn.path){const ar=await request(((ir=window==null?void 0:window.config)==null?void 0:ir.uploadPath)+Wn.path);core$1.registerMap(nr,(ar==null?void 0:ar.data)||{})}else core$1.registerMap(nr,{});zn.value=!0};vue.watch(()=>c.mapJson,()=>{Vn()},{immediate:!0,deep:!0});const Yn=async Wn=>{var ar,or,tr,sr;const nr=(or=(ar=Wn==null?void 0:Wn.data)==null?void 0:ar.data)==null?void 0:or.rows,ir=`map-${c.id}`;if(nr!=null&&nr.path){const cr=await request(nr.path);core$1.registerMap(ir,(cr==null?void 0:cr.data)||{})}else if(Array.isArray(nr))if(gn.value=nr,(tr=nr[0])!=null&&tr.mapUrl){const cr=await request((sr=nr[0])==null?void 0:sr.mapUrl);core$1.registerMap(ir,(cr==null?void 0:cr.data)||{})}else core$1.registerMap(ir,{});else core$1.registerMap(ir,{});vue.nextTick(()=>{zn.value=!0})},Gn=useRequestData(c),Un=async()=>{if(c.dataType==="request"){zn.value=!1;try{const Wn=await Gn();Yn(Wn)}catch(Wn){console.error(Wn),zn.value=!0}}},Kn=()=>{const Wn=Hn(c.id);switch(Qn(c.id,{...Wn,RECORD:{}}),c.dataType){case"static":Vn();break;case"request":Un();break}},{getGlobalModel:Hn,setGlobalModel:Qn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,nr)=>{}}),Rn=useEmitEvent(c)("click",()=>{var nr,ir;const Wn=Hn(c.id);((nr=Wn==null?void 0:Wn.RECORD)==null?void 0:nr.name)===((ir=vue.unref(f))==null?void 0:ir.name)?Qn(c.id,{...Wn,RECORD:{}}):Qn(c.id,{...Wn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Kn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Wn=>{}});typeof qn=="function"&&qn({id:c.id,requestFn:Kn,sortNum:c.requestSort});const In=()=>{vue.unref(f)&&Rn()},Dn=(Wn={})=>{Wn.componentType==="geo"&&Wn.region?f.value=Wn.region:f.value=null},er=vue.computed(()=>{const Wn={},{legendTop:nr,legendLeft:ir,legendBoxShadow:ar}=c;return ar&&(Wn.boxShadow=ar),nr==="bottom"?Wn.bottom=0:nr==="top"&&(Wn.top=0),ir==="left"?Wn.left=0:ir==="right"&&(Wn.right=0),Wn}),Bn=vue.computed(()=>{const Wn={};return c.legendOrient==="vertical"&&(Wn.flexDirection="column"),Wn}),Jn=vue.computed(()=>{var Wn;if((Wn=vue.unref(hn))!=null&&Wn.length){const nr=[];for(const ir of vue.unref(hn)){const{value1:ar,value2:or,rule1:tr,rule2:sr,color:cr}=ir;ar&&or?+ar<+or?tr.includes(">")&&sr.includes("<")&&nr.push({text:`${ar} - ${or}`,color:cr,key:ir.key}):+ar>+or?tr.includes("<")&&sr.includes(">")&&nr.push({text:`${or} - ${ar}`,color:cr,key:ir.key}):+ar==+or&&nr.push({text:`${ar} - ${or}`,color:cr,key:ir.key}):ar?nr.push({text:`${tr} ${ar}`,color:cr,key:ir.key}):or&&nr.push({text:`${sr} ${or}`,color:cr,key:ir.key})}return nr}else return[]});return{option:Fn,style:v,isLoadedData:zn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:er,legendContainerStyle:Bn,mapLegendList:Jn,hiddenLegendKey:y,customClick:In,onMouseOver:Dn,handleToggleVisible:Wn=>{const nr=vue.unref(y).findIndex(ir=>ir===Wn);nr>=0?y.value.splice(nr,1):y.value.push(Wn)}}}}),Map_vue_vue_type_style_index_0_scoped_5469af5b_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-5469af5b"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,d=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var Qn;const{mode:Hn}=c;return(Qn=vue.unref(d))!=null&&Qn.length?v.value:Hn==="multiple"||Hn==="tags"||Hn==="combobox"?[]:""},set:Hn=>{v.value=Hn}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Qn)=>{},getRecordValueByKeyName:Hn=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,d.value],()=>{const{mode:Hn,selectFirstOption:Qn,value:Zn}=c,Rn=y(Zn),qn=x.value;if(Hn==="multiple"||Hn==="tags"||Hn==="combobox"){if(Rn)v.value=Rn.split(",");else if(Qn){const In=vue.unref(d)[0];v.value=In?[In[qn]]:[]}}else if(Rn)v.value=Rn;else if(Qn){const In=vue.unref(d)[0];v.value=In?In[qn]:""}},{immediate:!0});const pn=(Hn,Qn)=>{const Zn=x.label,Rn=x.value;let qn;const In=Qn[Zn],Dn=Qn[Rn];return In!=null?qn=In:Dn!=null&&(qn=Dn),(qn==null?void 0:qn.toLowerCase().indexOf(Hn==null?void 0:Hn.toLowerCase()))>=0},b=Hn=>{const{label:Qn,value:Zn,options:Rn}=c.dataFieldNames;if(Rn&&Array.isArray(Hn))if(Hn.some(qn=>Rn in qn)){const qn={},In=[];Hn.forEach(Dn=>{qn[Dn[Rn]]||(qn[Dn[Rn]]=[]),qn[Dn[Rn]].push({[Qn]:Dn[Qn],[Zn]:Dn[Zn]})});for(const Dn in qn)In.push({[Qn]:Dn,[Rn]:qn[Dn]});return In}else return Hn;else if(!Rn)return Hn},re=vue.ref(!1),_=Hn=>{var Qn,Zn;if(d.value=b(((Zn=(Qn=Hn==null?void 0:Hn.data)==null?void 0:Qn.data)==null?void 0:Zn.rows)||[]),c.selectFirstOption){let Rn=vue.unref(d)[0];if(x.options){const qn=Rn[x.options];qn&&qn.length&&(Rn=qn[0])}v.value=Rn[x.value]}},J=useRequestData(c),En=async()=>{if(c.dataType==="request"){re.value=!0;try{const Hn=await J();_(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}}},gn=vue.computed(()=>{let Hn=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(d)){const Qn=x.label,Zn=x.value;if(c.mode==="multiple")Hn=vue.unref(d).filter(Rn=>vue.unref(v).includes(Rn[Zn])).map(Rn=>Rn[Qn]);else{const Rn=vue.unref(d).find(qn=>vue.unref(v)===qn[Zn]);Rn&&(Hn=Rn[Qn])}}return Hn}),w=vue.ref([]),hn=vue.computed(()=>{const Hn={};if(c.mode!=="multiple"){const Qn=vue.unref(w).find(Zn=>Zn.value===vue.unref(v));Qn&&(Hn.itemCodes=Qn.item_codes)}return Hn}),vn=vue.computed(()=>{const{value:Hn,label:Qn}=x,Zn=vue.unref(d).find(Rn=>Rn[Hn]===vue.unref(p));return Zn?{label:Zn[Qn],value:Zn[Hn]}:{}});g(c.id,{type:c.type,value:gn,...vue.unref(hn),recordData:vue.unref(vn)});const Fn=useEmitEvent(c)("selectChange",()=>{const Hn=c.id,Qn=m(Hn);g(Hn,{...Qn,...vue.unref(hn),RECORD:gn,recordData:vue.unref(vn)})}),zn=(Hn=[])=>{if(d.value=b(Hn),c.selectFirstOption){let Qn=vue.unref(d)[0];if(x.options){const Zn=Qn[x.options];Zn&&Zn.length&&(Qn=Zn[0])}v.value=Qn[x.value]}g(c.id,{type:c.type,value:gn,...vue.unref(hn),recordData:vue.unref(vn)})},Vn=Hn=>{var qn;const{data:Qn}=(Hn==null?void 0:Hn.data)||{},Zn=x.label,Rn=x.value;if(Qn){const{rows:In=[]}=((qn=Hn==null?void 0:Hn.data)==null?void 0:qn.data)||{};w.value=In;const Dn=In.map(Jn=>({[Zn]:Jn.label,[Rn]:Jn.value})),{id:er}=c,Bn=m(er);g(er,{...Bn,...vue.unref(hn)}),zn(Dn)}else zn([])},Yn=useIndicatorData(c,Vn),Gn=async()=>{try{re.value=!0;const Hn=await Yn();Vn(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}},Un=()=>{switch(c.dataType){case"indicator":{Gn();break}case"request":En();break}};useOnEvent(c,{selectChange:Fn,refreshData:Un});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:Qn,requestFn:Zn})=>{}});return typeof Kn=="function"&&Kn({id:c.id,requestFn:Un,sortNum:c.requestSort}),u({refreshData:Un}),{style:f,getPopupContainer:h,myValue:v,selectChange:Fn,options:d,filterOption:pn,loading:re,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_585d4f8a_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-585d4f8a"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(c,{expose:u}){var w,hn;const f=(w=window==null?void 0:window.config)==null?void 0:w.pageId,h=(hn=window==null?void 0:window.config)==null?void 0:hn.indicatorToken,d=usePickComponentStyle(c),v=vue.ref(),{pageMode:p,theme:m,width:g,height:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),pn=vue.computed(()=>{const{width:vn,height:Pn}=c;let Fn=0,zn=0;return typeof vn=="string"?Fn=parseFloat(vn):vn.suffix==="px"?Fn=+vn.value:vn.suffix==="%"&&(Fn=parseFloat(vue.unref(g))*(vn.value/100)),typeof Pn=="string"?zn=parseFloat(Pn):Pn.suffix==="px"?zn=+Pn.value:Pn.suffix==="%"&&(zn=parseFloat(vue.unref(y))*(Pn.value/100)),{...c,width:Fn+"px",height:zn+"px",pageId:f,indicatorToken:h,context:CONTEXT,globalModel:x()}}),b=vue.computed(()=>INDICATOR_URL),re=()=>{switch(c.dataType){case"indicator":vue.unref(v).refreshData();break}},{setRequest:_}=vue.inject(REQUEST_MODEL,{setRequest:({id:vn,sortNum:Pn,requestFn:Fn})=>{}});typeof _=="function"&&_({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re});const En=useEmitEvent(c)("click",()=>{vue.unref(v).click()});return useOnEvent(c,{refreshData:re,click:En}),vue.onMounted(()=>{}),{props:c,style:d,pageMode:p,pivotTableRef:v,theme:m,customProps:pn,indicatorUrl:b,click:En,onTableChange:({type:vn,data:Pn})=>{console.log("data",Pn)}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_3e7ca38d_lang="";function _sfc_render$1(c,u,f,h,d,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.configMode==="fullMode",indicatorUrl:c.indicatorUrl,enlargeContainer:".page-config",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-3e7ca38d"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let pn;const b=vue.computed(()=>{const Dn=c.xAxisLabelFormatter,er=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Bn;v.value=!0,(Bn=g.value)==null||Bn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Bn=>{var nr;const Jn=Bn.length;let Xn="",Wn=c.tooltipFormatter;pn=(nr=Bn[0])==null?void 0:nr.data,Wn===""&&(Wn="{marker} {a} {c}");for(let ir=0;ir<Jn;ir++){const{marker:ar,seriesName:or,name:tr,value:sr,data:cr}=Bn[ir]||{};if(ir===0){let vr=tr;typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(vr=(+tr).toString()),Xn+=`${useValueFormatter(Dn,vr)}<br/>`}Xn+=useVariablesInText(Wn,{textData:{marker:ar,a:or,b:sr[0],c:sr[1]||0,...cr==null?void 0:cr.record}},{useNewline:!0,useSpace:!0}),Xn+="<br/>"}return Xn},position:c.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:c.isBoundaryGap,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Bn){return typeof Bn=="string"&&Bn[0]==="0"&&!isNaN(+Bn)&&(Bn=(+Bn).toString()),useValueFormatter(Dn,Bn)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Bn){return useValueFormatter(er,Bn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Bn=>getLegendFormat(c.legendFormatter,{name:Bn})},series:vue.unref(m)}}),re=()=>{v.value=!1},{getGlobalModel:_,setGlobalModel:J,getRecordValueByKeyName:En}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Dn=>{},setGlobalModel:(Dn,er)=>{},getRecordValueByKeyName:Dn=>{}}),gn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(Dn,er,Bn,Jn,Xn,Wn,nr,ir)=>{const ar=(-(Xn*ir-Wn*nr)/(nr-Xn)+(Dn*Jn-er*Bn)/(Bn-Dn))/((Jn-er)/(Bn-Dn)-(ir-Wn)/(nr-Xn)),or=(Jn-er)/(Bn-Dn)*(-(Xn*ir-Wn*nr)/(nr-Xn)+(Dn*Jn-er*Bn)/(Bn-Dn))/((Jn-er)/(Bn-Dn)-(ir-Wn)/(nr-Xn))-(Dn*Jn-er*Bn)/(Bn-Dn);return[ar,or]},hn=()=>{var Bn;const Dn={symbol:"circle",tooltip:{trigger:"item",formatter:Jn=>{let Xn="",Wn=c.markPointFormatter;Wn===""&&(Wn="{x}, {y}");const{data:{coord:nr=[]}}=Jn||{};return Xn+=useVariablesInText(Wn,{textData:{x:nr[0]||0,y:nr[1]||0}},{useNewline:!0,useSpace:!0}),Xn+="<br/>",Xn}},data:[]},{axisMarkPoint:er=[]}=c;for(const Jn of er){const{coord:Xn=""}=Jn,Wn=[];let nr=[];if(Xn.includes("getIntersectPoint")){const ir=(Bn=Xn.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Bn.split(",");if((ir==null?void 0:ir.length)===8){const ar=[];for(const or of ir){const tr=or.replaceAll(" ","");(tr==null?void 0:tr.slice(0,1))==="{"&&(tr==null?void 0:tr.slice(-1))==="}"?ar.push(+En(tr)||0):ar.push(+tr)}nr=w(...ar)}}else nr=Xn.split(",");(nr==null?void 0:nr.length)===2&&(Wn[0]=+nr[0],Wn[1]=+nr[1]),Wn!=null&&Wn.length&&Dn.data.push({coord:Wn,symbolSize:Jn.symbolSize,itemStyle:{color:Jn.pointColor||"transparent",borderWidth:Jn.borderWidth||"transparent",borderColor:Jn.borderColor||"transparent"},label:{formatter:Jn.label,position:Jn.labelPosition,color:Jn.labelColor||"transparent"}})}return Dn},vn=Dn=>{var ar,or,tr;const er=lodashEs.cloneDeep(Dn),{graphicConfig:Bn,customPoint:Jn=""}=c,Xn={},Wn={},{formFields:nr={}}=Bn;let ir=[];if(Jn){ir=JSON.parse(Jn);for(const sr of ir)for(const cr in sr)typeof sr[cr]=="string"&&((ar=sr[cr])==null?void 0:ar.slice(0,1))==="{"&&((or=sr[cr])==null?void 0:or.slice(-1))==="}"&&(sr[cr]=En(sr[cr])||0)}ir!=null&&ir.length&&er.push(...ir),c.dataType==="static"?(Wn.name="name",Wn.values=["value","value2"]):(Wn.name=(nr==null?void 0:nr.labelField)||"name",Wn.values=(nr==null?void 0:nr.valueField)||["value","value2"]);for(const sr of er){const{values:cr,name:vr}=Wn;for(const dr of cr){const lr={value:[sr[vr],sr[dr]],record:sr};hasOwn(Xn,dr)?Xn[dr].push(lr):Xn[dr]=[lr]}}if((tr=Object.keys(Xn))!=null&&tr.length){const sr=[];for(const cr in Xn)sr.push({name:cr,data:Xn[cr]});return sr}else return[]},Pn=(Dn=[])=>{const er=vn(Dn),Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={},nr={};Xn===0&&(nr.markPoint=hn()),c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX),Bn.push({type:"line",...nr,...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(gn)})}m.value=Bn},Fn=(Dn=[])=>{const er=vn(Dn),Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={};c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX);const nr={};Xn===0&&(nr.markPoint=hn()),Bn.push({type:"line",...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(gn),...nr})}m.value=Bn};vue.watch(()=>[c.data,c.dataType,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Dn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Pn(Dn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Vn=useRequestData(c),Yn=async()=>{var Dn,er;if(c.dataType==="request")try{zn.value=!0;const Bn=await Vn();Pn((er=(Dn=Bn==null?void 0:Bn.data)==null?void 0:Dn.data)==null?void 0:er.rows)}catch(Bn){console.error(Bn)}finally{zn.value=!1}},Gn=useEmitEvent(c);J(c.id,{type:c.type,RECORD:""});const Un=Gn("click",Dn=>{const er=_(c.id);J(c.id,{...er,type:c.type,RECORD:c.tooltipShow?pn:Dn.data})}),Kn=Dn=>{d.value.chart.containPixel("grid",[Dn.offsetX,Dn.offsetY])&&Un()};c.tooltipShow?x.value["zr:click"]=Kn:x.value.click=Un;const Hn=Dn=>{var Bn;const{rows:er=[]}=((Bn=Dn==null?void 0:Dn.data)==null?void 0:Bn.data)??{};Fn(er)},Qn=useIndicatorData(c,Dn=>{c.isViewRedrawing&&d.value.clear(),Hn(Dn)}),Zn=async()=>{try{zn.value=!0;const Dn=await Qn();Hn(Dn)}catch(Dn){console.error(Dn)}finally{zn.value=!1}},Rn=()=>{switch(c.dataType){case"indicator":Zn();break;case"request":Yn();break}};useOnEvent(c,{refreshData:Rn,resetRecord:()=>{const Dn=c.id,er=_(Dn);J(Dn,{...er,RECORD:""})},click:Un});const{setRequest:In}=vue.inject(REQUEST_MODEL,{setRequest:Dn=>{}});return typeof In=="function"&&In({id:c.id,requestFn:Rn,sortNum:c.requestSort}),u({refreshData:Rn}),{option:b,style:p,click:Un,loading:zn,onClose:re,ecanModal:g,eventObj:x,echartRef:d}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let h=c;return f.forEach(d=>{var v;h=isObject$1(h)&&(v=h[d])!=null?v:""}),h}function pick(c,u,f){return u.reduce((h,d)=>((!f||c[d]!==void 0)&&(h[d]=c[d]),h),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,h=u.innerHeight;return makeDOMRect(f,h)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:h,unlink:d,internalChildren:v}=u;h(f),vue.onUnmounted(()=>d(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=h=>{Array.isArray(h)&&h.forEach(d=>{var v;vue.isVNode(d)&&(u.push(d),(v=d.component)!=null&&v.subTree&&(u.push(d.component.subTree),f(d.component.subTree.children)),d.children&&f(d.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(h=>u.key!==void 0&&u.key!==null&&h.type===u.type&&h.key===u.key):f};function sortChildren(c,u,f){const h=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(h,v.vnode)-findVNodeIndex(h,p.vnode));const d=f.map(v=>v.proxy);u.sort((v,p)=>{const m=d.indexOf(v),g=d.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),h=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(h,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:h=window,passive:d=!1,capture:v=!1}=f;let p=!1,m;const g=pn=>{if(p)return;const b=vue.unref(pn);b&&!m&&(b.addEventListener(c,u,{capture:v,passive:d}),m=!0)},y=pn=>{if(p)return;const b=vue.unref(pn);b&&m&&(b.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(h)),vue.onDeactivated(()=>y(h)),onMountedOrActivated(()=>g(h));let x;return vue.isRef(h)&&(x=vue.watch(h,(pn,b)=>{y(b),g(pn)})),()=>{x==null||x(),y(h),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:h}=window.getComputedStyle(f);if(overflowScrollReg.test(h))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}isIOS();const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),h=f.display==="none",d=u.offsetParent===null&&f.position!=="fixed";return h||d}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f),{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const h=u[f];isDef(h)&&(!hasOwnProperty.call(c,f)||!isObject$1(h)?c[f]=h:c[f]=deepAssign(Object(c[f]),h))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...h)=>{const d=stdin_default$g.messages(),v=get(d,u+f)||get(d,f);return isFunction(v)?v(...h):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,h)=>f+genBem(c,h),""):Object.keys(u).reduce((f,h)=>f+(u[h]?genBem(c,h):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:h,error:d}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():h&&h()}).catch(d||noop):v?f():h&&h()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:h}){c&&h?h[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},h=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},d=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[pn,b]=x.split("-");u.default?(typeof y=="number"?m[pn]=addUnit(pn==="top"?y:-y):m[pn]=pn==="top"?addUnit(y):d(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):d(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[h()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const h=insertDash(kebabCase(f));u[`--van-${h}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const h=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},d=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&d(p),h()},{immediate:!0}),vue.onActivated(h),vue.onDeactivated(d),vue.onBeforeUnmount(d),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var h;return[(h=u.default)==null?void 0:h.call(u)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),h=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$d());return()=>{const{tag:d,dot:v,name:p,size:m,badge:g,color:y}=c,x=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:d,class:[h.value,x?"":`${h.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var pn;return[(pn=u.default)==null?void 0:pn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),h=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():v])},d=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$c([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[h(),d()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),h=vue.ref(0),d=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",x=()=>{f.value=0,h.value=0,d.value=0,v.value=0,p.value="",m.value=!0};return{move:re=>{const _=re.touches[0];f.value=(_.clientX<0?0:_.clientX)-c.value,h.value=_.clientY-u.value,d.value=Math.abs(f.value),v.value=Math.abs(h.value);const J=10;(!p.value||d.value<J&&v.value<J)&&(p.value=getDirection(d.value,v.value)),m.value&&(d.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:re=>{x(),c.value=re.touches[0].clientX,u.value=re.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:h,offsetX:d,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),h="01",d="10",v=x=>{f.move(x);const pn=f.deltaY.value>0?d:h,b=getScrollParent(x.target,c.value),{scrollHeight:re,offsetHeight:_,scrollTop:J}=b;let En="11";J===0?En=_>=re?"00":"01":J+_>=re&&(En="10"),En!=="11"&&f.isVertical()&&!(parseInt(En,2)&parseInt(pn,2))&&preventDefault(x,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),h=useLazyRender(()=>c.show||!c.lazyRender),d=p=>{c.lockScroll&&preventDefault(p,!0)},v=h(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$b(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",d,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:h}){let d,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Fn={zIndex:p.value};if(isDef(c.duration)){const zn=c.position==="center"?"animationDuration":"transitionDuration";Fn[zn]=`${c.duration}s`}return Fn}),x=()=>{d||(d=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},pn=()=>{d&&callInterceptor(c.beforeClose,{done(){d=!1,u("close"),u("update:show",!1)}})},b=Fn=>{u("clickOverlay",Fn),c.closeOnClickOverlay&&pn()},re=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:h["overlay-content"]})},_=Fn=>{u("clickCloseIcon",Fn),pn()},J=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:_},null)};let En;const gn=()=>{En&&clearTimeout(En),En=setTimeout(()=>{u("opened")})},w=()=>u("closed"),hn=Fn=>u("keydown",Fn),vn=g(()=>{var Fn;const{round:zn,position:Vn,safeAreaInsetTop:Yn,safeAreaInsetBottom:Gn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:zn,[Vn]:Vn}),{"van-safe-area-top":Yn,"van-safe-area-bottom":Gn}],onKeydown:hn},f,useScopeId()),[(Fn=h.default)==null?void 0:Fn.call(h),J()]),[[vue.vShow,c.show]])}),Pn=()=>{const{position:Fn,transition:zn,transitionAppear:Vn}=c,Yn=Fn==="center"?"van-fade":`van-popup-slide-${Fn}`;return vue.createVNode(vue.Transition,{name:zn||Yn,appear:Vn,onAfterEnter:gn,onAfterLeave:w},{default:vn})};return vue.watch(()=>c.show,Fn=>{Fn&&!d&&(x(),f.tabindex===0&&vue.nextTick(()=>{var zn;(zn=m.value)==null||zn.focus()})),!Fn&&d&&(d=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(pn(),v=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(pn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[re(),Pn()]}):vue.createVNode(vue.Fragment,null,[re(),Pn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(h=>h[f.value]===u);function findOptionByValue(c,u,f){const h=c.findIndex(v=>v[f.value]===u),d=findIndexOfEnabledOption(c,h);return c[d]}function formatCascadeColumns(c,u,f){const h=[];let d={[u.children]:c},v=0;for(;d&&d[u.children];){const p=d[u.children],m=f.value[v];if(d=isDef(m)?findOptionByValue(p,m,u):void 0,!d&&p.length){const g=getFirstEnabledOption(p)[u.value];d=findOptionByValue(p,g,u)}v++,h.push(p)}return h}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),pn=vue.ref(0),b=useTouch(),re=()=>c.options.length,_=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,J=Gn=>{let Un=findIndexOfEnabledOption(c.options,Gn);const Kn=-Un*c.optionHeight,Hn=()=>{Un>re()-1&&(Un=findIndexOfEnabledOption(c.options,Gn));const Qn=c.options[Un][c.fields.value];Qn!==c.value&&u("change",Qn)};h&&Kn!==x.value?m=Hn:Hn(),x.value=Kn},En=()=>c.readonly||!c.options.length,gn=Gn=>{h||En()||(m=null,pn.value=DEFAULT_DURATION,J(Gn),u("clickOption",c.options[Gn]))},w=Gn=>clamp(Math.round(-Gn/c.optionHeight),0,re()-1),hn=vue.computed(()=>w(x.value)),vn=(Gn,Un)=>{const Kn=Math.abs(Gn/Un);Gn=x.value+Kn/.003*(Gn<0?-1:1);const Hn=w(Gn);pn.value=+c.swipeDuration,J(Hn)},Pn=()=>{h=!1,pn.value=0,m&&(m(),m=null)},Fn=Gn=>{if(!En()){if(b.start(Gn),h){const Un=getElementTranslateY(y.value);x.value=Math.min(0,Un-_())}pn.value=0,d=x.value,v=Date.now(),p=d,m=null}},zn=Gn=>{if(En())return;b.move(Gn),b.isVertical()&&(h=!0,preventDefault(Gn,!0));const Un=clamp(d+b.deltaY.value,-(re()*c.optionHeight),c.optionHeight),Kn=w(Un);Kn!==hn.value&&u("scrollInto",c.options[Kn]),x.value=Un;const Hn=Date.now();Hn-v>MOMENTUM_TIME&&(v=Hn,p=Un)},Vn=()=>{if(En())return;const Gn=x.value-p,Un=Date.now()-v;if(Un<MOMENTUM_TIME&&Math.abs(Gn)>MOMENTUM_DISTANCE){vn(Gn,Un);return}const Hn=w(x.value);pn.value=DEFAULT_DURATION,J(Hn),setTimeout(()=>{h=!1},0)},Yn=()=>{const Gn={height:`${c.optionHeight}px`};return c.options.map((Un,Kn)=>{const Hn=Un[c.fields.text],{disabled:Qn}=Un,Zn=Un[c.fields.value],Rn={role:"button",style:Gn,tabindex:Qn?-1:0,class:[bem$8("item",{disabled:Qn,selected:Zn===c.value}),Un.className],onClick:()=>gn(Kn)},qn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:Hn};return vue.createVNode("li",Rn,[f.option?f.option(Un,Kn):vue.createVNode("div",qn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Pn}),vue.watchEffect(()=>{const Gn=h?Math.floor(-x.value/c.optionHeight):c.options.findIndex(Hn=>Hn[c.fields.value]===c.value),Un=findIndexOfEnabledOption(c.options,Gn),Kn=-Un*c.optionHeight;h&&Un<Gn&&Pn(),x.value=Kn}),useEventListener("touchmove",zn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:Fn,onTouchend:Vn,onTouchcancel:Vn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+_()}px, 0)`,transitionDuration:`${pn.value}ms`,transitionProperty:pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:Pn},[Yn()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const h=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[c.title])},d=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:d},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[p(),h(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,h=>{h!==f.value&&(f.value=h)}),vue.watch(f,h=>{h!==c()&&u(h)}),f};/**
|
|
131
|
+
`)},re=vue.ref(!1),_=vue.ref("");let J=new AbortController;const En=(Wn,nr)=>{const ir=J.signal;re.value=!0,h.value=Wn,u({name:Wn,signal:ir}).then(ar=>{var or,tr;if(ar){const sr=((tr=(or=ar==null?void 0:ar.data)==null?void 0:or.data)==null?void 0:tr.rows)||[];let cr="";for(const vr of sr){const dr=b(vr)||[];if(dr!=null&&dr.length)for(const lr of dr)cr+=`<div style="word-break: break-all;white-space: normal;">${lr}</div>`}cr=`<div style="max-width:200px;">${cr}</div>`,d.value=cr,nr(vue.unref(_),cr)}else ir.aborted?d.value="Loading":d.value=Wn,nr(vue.unref(_),d.value);re.value=!1})},gn=vue.ref(),w=vue.computed(()=>c.dataType==="request"?gn.value:c.data),hn=vue.computed(()=>{const Wn=[],{mapAreaStyleConfig:nr}=c;if(nr!=null&&nr.length)for(const ir of nr)Wn.push({...ir,key:nanoid(6)});return Wn}),vn=vue.computed(()=>{const Wn=[];for(const nr of vue.unref(hn)){let ir="";nr.value1&&(ir+=`value ${nr.rule1} ${nr.value1}`),nr.value2&&(ir+=`${nr.value1?"&&":""} value ${nr.rule2} ${nr.value2}`),ir&&Wn.push({rule:ir,color:nr.color,key:nr.key})}return Wn.reverse()}),Pn=vue.computed(()=>{var ir;const Wn=[],{areaStyleKeyName:nr}=c;if((ir=vue.unref(w))!=null&&ir.length)for(const ar of vue.unref(w)){const or=ar[nr];if(or||or===0){const tr=vue.unref(vn).find(sr=>runCode(sr.rule,{value:or}));tr&&Wn.push({name:ar.name,itemStyle:{areaColor:vue.unref(y).includes(tr.key)?c.geoItemStyleAreaColor:tr.color}})}}return Wn}),Fn=vue.computed(()=>{const Wn=c.geoCenter;let nr;return typeof Wn=="string"&&Wn!==""&&(nr=Wn.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(c.width),height:parseFloat(c.height),image:vue.unref(g)},top:"center"}],geo:{zoom:c.geoZoom,roam:c.geoRoam,center:nr,map:`map-${c.id}`,selectedMode:"single",tooltip:{show:c.tooltipShow,trigger:"item",backgroundColor:c.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:c.tooltipTextStyleColor},formatter:(ir,ar,or)=>{_.value=ar;const{name:tr=""}=ir,{requestUrl:sr}=c.tooltipRequestData;if(!sr){let cr="",vr=c.tooltipFormatter;vr===""&&(vr="{name}:{value}");const dr=vue.unref(w).find(lr=>lr.name===tr);return dr?(cr+=useVariablesInText(vr,{textData:{name:tr,...dr}},{useNewline:!0,useSpace:!0}),cr):tr}if(vue.unref(re))vue.unref(h)!==tr&&(J.abort(),J=new AbortController);else{if(vue.unref(h)===tr)return vue.unref(d);En(tr,or)}return"Loading"}},label:{show:c.geoLabelShow,color:c.geoLabelColor,fontSize:c.geoLabelFontSize},itemStyle:{areaColor:vue.unref(x),borderColor:c.geoItemStyleBorderColor,borderWidth:c.geoItemStyleBorderWidth,shadowColor:c.geoItemStyleShadowColor,shadowBlur:c.geoItemStyleShadowBlur,shadowOffsetX:c.geoItemStyleShadowOffsetX,shadowOffsetY:c.geoItemStyleShadowOffsetY},emphasis:{disabled:c.geoEmphasisDisabled,label:{color:c.geoEmphasisLabelColor},itemStyle:{areaColor:c.geoEmphasisItemStyleAreaColor,borderColor:c.geoEmphasisItemStyleBorderColor}},regions:Pn.value},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:c.itemStyleColor},symbol:vue.unref(pn),symbolSize:[c.symbolWidth,c.symbolHeight],label:{show:c.labelShow,fontSize:c.labelFontSize,formatter:c.labelFormatter,color:c.labelColor},tooltip:{show:c.tooltipShow,textStyle:{color:c.tooltipTextStyleColor}},data:w.value}]}}),zn=vue.ref(!1),Vn=async()=>{var ir;zn.value=!1;const Wn=c.mapJson,nr=`map-${c.id}`;if(Wn!=null&&Wn.path){const ar=await request(((ir=window==null?void 0:window.config)==null?void 0:ir.uploadPath)+Wn.path);core$1.registerMap(nr,(ar==null?void 0:ar.data)||{})}else core$1.registerMap(nr,{});zn.value=!0};vue.watch(()=>c.mapJson,()=>{Vn()},{immediate:!0,deep:!0});const Yn=async Wn=>{var ar,or,tr,sr;const nr=(or=(ar=Wn==null?void 0:Wn.data)==null?void 0:ar.data)==null?void 0:or.rows,ir=`map-${c.id}`;if(nr!=null&&nr.path){const cr=await request(nr.path);core$1.registerMap(ir,(cr==null?void 0:cr.data)||{})}else if(Array.isArray(nr))if(gn.value=nr,(tr=nr[0])!=null&&tr.mapUrl){const cr=await request((sr=nr[0])==null?void 0:sr.mapUrl);core$1.registerMap(ir,(cr==null?void 0:cr.data)||{})}else core$1.registerMap(ir,{});else core$1.registerMap(ir,{});vue.nextTick(()=>{zn.value=!0})},Gn=useRequestData(c),Un=async()=>{if(c.dataType==="request"){zn.value=!1;try{const Wn=await Gn();Yn(Wn)}catch(Wn){console.error(Wn),zn.value=!0}}},Kn=()=>{const Wn=Hn(c.id);switch(Qn(c.id,{...Wn,RECORD:{}}),c.dataType){case"static":Vn();break;case"request":Un();break}},{getGlobalModel:Hn,setGlobalModel:Qn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Wn=>{},setGlobalModel:(Wn,nr)=>{}}),Rn=useEmitEvent(c)("click",()=>{var nr,ir;const Wn=Hn(c.id);((nr=Wn==null?void 0:Wn.RECORD)==null?void 0:nr.name)===((ir=vue.unref(f))==null?void 0:ir.name)?Qn(c.id,{...Wn,RECORD:{}}):Qn(c.id,{...Wn,RECORD:vue.unref(f)})});useOnEvent(c,{refreshData:Kn});const{setRequest:qn}=vue.inject(REQUEST_MODEL,{setRequest:Wn=>{}});typeof qn=="function"&&qn({id:c.id,requestFn:Kn,sortNum:c.requestSort});const In=()=>{vue.unref(f)&&Rn()},Dn=(Wn={})=>{Wn.componentType==="geo"&&Wn.region?f.value=Wn.region:f.value=null},er=vue.computed(()=>{const Wn={},{legendTop:nr,legendLeft:ir,legendBoxShadow:ar}=c;return ar&&(Wn.boxShadow=ar),nr==="bottom"?Wn.bottom=0:nr==="top"&&(Wn.top=0),ir==="left"?Wn.left=0:ir==="right"&&(Wn.right=0),Wn}),Bn=vue.computed(()=>{const Wn={};return c.legendOrient==="vertical"&&(Wn.flexDirection="column"),Wn}),Jn=vue.computed(()=>{var Wn;if((Wn=vue.unref(hn))!=null&&Wn.length){const nr=[];for(const ir of vue.unref(hn)){const{value1:ar,value2:or,rule1:tr,rule2:sr,color:cr}=ir;ar&&or?+ar<+or?tr.includes(">")&&sr.includes("<")&&nr.push({text:`${ar} - ${or}`,color:cr,key:ir.key}):+ar>+or?tr.includes("<")&&sr.includes(">")&&nr.push({text:`${or} - ${ar}`,color:cr,key:ir.key}):+ar==+or&&nr.push({text:`${ar} - ${or}`,color:cr,key:ir.key}):ar?nr.push({text:`${tr} ${ar}`,color:cr,key:ir.key}):or&&nr.push({text:`${sr} ${or}`,color:cr,key:ir.key})}return nr}else return[]});return{option:Fn,style:v,isLoadedData:zn,geoBackgroundImageRef:p,myGeoBackgroundImage:m,mapLegendStyle:er,legendContainerStyle:Bn,mapLegendList:Jn,hiddenLegendKey:y,customClick:In,onMouseOver:Dn,handleToggleVisible:Wn=>{const nr=vue.unref(y).findIndex(ir=>ir===Wn);nr>=0?y.value.splice(nr,1):y.value.push(Wn)}}}}),Map_vue_vue_type_style_index_0_scoped_5469af5b_lang="",_hoisted_1=["src"],_hoisted_2=["title","onClick"];function _sfc_render$3(c,u,f,h,d,v){const p=vue.resolveComponent("echarts");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-map",style:vue.normalizeStyle(c.style)},[c.isLoadedData?(vue.openBlock(),vue.createBlock(p,{key:0,option:c.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":c.customClick,onMouseover:c.onMouseOver},null,8,["option","onZr:click","onMouseover"])):vue.createCommentVNode("",!0),vue.withDirectives(vue.createElementVNode("img",{ref:"geoBackgroundImageRef",src:c.myGeoBackgroundImage},null,8,_hoisted_1),[[vue.vShow,!1]]),c.legendShow?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"map-legend",style:vue.normalizeStyle(c.mapLegendStyle)},[vue.createElementVNode("div",{class:"legend-title",style:vue.normalizeStyle({color:c.legendTitleColor,fontSize:c.legendTitleFontSize})},vue.toDisplayString(c.legendTitle),5),vue.createElementVNode("div",{class:"legend-container",style:vue.normalizeStyle(c.legendContainerStyle)},[vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginRight:c.legendOrient==="horizontal"?"5px":"",marginBottom:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendFrontText),5),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.mapLegendList,(m,g)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["legend-item",{hidden:c.hiddenLegendKey.includes(m.key)}]),style:vue.normalizeStyle({marginRight:c.legendOrient==="horizontal"?"10px":"",marginLeft:c.legendOrient==="horizontal"?"10px":"",marginBottom:c.legendOrient==="vertical"?"10px":"",marginTop:c.legendOrient==="vertical"?"10px":""}),key:g,title:c.legendTextShow?"":m.text,onClick:y=>c.handleToggleVisible(m.key)},[vue.createElementVNode("div",{class:"color-block",style:vue.normalizeStyle({backgroundColor:m.color,width:"20px",height:c.mapLegendType==="rect"?"16px":"20px",borderRadius:c.mapLegendType==="circle"?"50%":"4px"})},null,4),c.legendTextShow?(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"legend-item-text",style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:"10px"})},vue.toDisplayString(m.text),5)):vue.createCommentVNode("",!0)],14,_hoisted_2))),128)),vue.createElementVNode("div",{style:vue.normalizeStyle({color:c.legendTextStyleColor,marginLeft:c.legendOrient==="horizontal"?"5px":"",marginTop:c.legendOrient==="vertical"?"5px":""})},vue.toDisplayString(c.legendAfterText),5)],4)],4)):vue.createCommentVNode("",!0)],4)}const Map$1=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-5469af5b"]]),EcanMap=withInstall$1(Map$1),dataSelectProps={...props,name:"下拉框选择器-数据",keyName:"下拉框选择器-数据",width:"120px",height:"33px",type:"ecanDataSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},dataSelectComponentProps=transformToComponentProps(dataSelectProps),dataSelectEvents=["selectChange","refreshData"],_sfc_main$2=vue.defineComponent({name:"EcanDataSelect",components:{ASelect:antDesignVue.Select,ASelectOption:antDesignVue.SelectOption},props:{...dataSelectComponentProps},setup(c,{expose:u}){const f=usePickComponentStyle(c),h=()=>document.getElementById("ProviderConfig")||document.body,d=vue.ref(c.data||[]),v=vue.ref(),p=vue.computed({get:()=>{var Qn;const{mode:Hn}=c;return(Qn=vue.unref(d))!=null&&Qn.length?v.value:Hn==="multiple"||Hn==="tags"||Hn==="combobox"?[]:""},set:Hn=>{v.value=Hn}}),{getGlobalModel:m,setGlobalModel:g,getRecordValueByKeyName:y}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Hn=>{},setGlobalModel:(Hn,Qn)=>{},getRecordValueByKeyName:Hn=>{}}),x=c.dataFieldNames;vue.watch(()=>[c.value,c.mode,c.selectFirstOption,c.valueType,d.value],()=>{const{mode:Hn,selectFirstOption:Qn,value:Zn}=c,Rn=y(Zn),qn=x.value;if(Hn==="multiple"||Hn==="tags"||Hn==="combobox"){if(Rn)v.value=Rn.split(",");else if(Qn){const In=vue.unref(d)[0];v.value=In?[In[qn]]:[]}}else if(Rn)v.value=Rn;else if(Qn){const In=vue.unref(d)[0];v.value=In?In[qn]:""}},{immediate:!0});const pn=(Hn,Qn)=>{const Zn=x.label,Rn=x.value;let qn;const In=Qn[Zn],Dn=Qn[Rn];return In!=null?qn=In:Dn!=null&&(qn=Dn),(qn==null?void 0:qn.toLowerCase().indexOf(Hn==null?void 0:Hn.toLowerCase()))>=0},b=Hn=>{const{label:Qn,value:Zn,options:Rn}=c.dataFieldNames;if(Rn&&Array.isArray(Hn))if(Hn.some(qn=>Rn in qn)){const qn={},In=[];Hn.forEach(Dn=>{qn[Dn[Rn]]||(qn[Dn[Rn]]=[]),qn[Dn[Rn]].push({[Qn]:Dn[Qn],[Zn]:Dn[Zn]})});for(const Dn in qn)In.push({[Qn]:Dn,[Rn]:qn[Dn]});return In}else return Hn;else if(!Rn)return Hn},re=vue.ref(!1),_=Hn=>{var Qn,Zn;if(d.value=b(((Zn=(Qn=Hn==null?void 0:Hn.data)==null?void 0:Qn.data)==null?void 0:Zn.rows)||[]),c.selectFirstOption){let Rn=vue.unref(d)[0];if(x.options){const qn=Rn[x.options];qn&&qn.length&&(Rn=qn[0])}v.value=Rn[x.value]}},J=useRequestData(c),En=async()=>{if(c.dataType==="request"){re.value=!0;try{const Hn=await J();_(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}}},gn=vue.computed(()=>{let Hn=v.value;if(c.valueType==="label"&&vue.unref(v)&&vue.unref(d)){const Qn=x.label,Zn=x.value;if(c.mode==="multiple")Hn=vue.unref(d).filter(Rn=>vue.unref(v).includes(Rn[Zn])).map(Rn=>Rn[Qn]);else{const Rn=vue.unref(d).find(qn=>vue.unref(v)===qn[Zn]);Rn&&(Hn=Rn[Qn])}}return Hn}),w=vue.ref([]),hn=vue.computed(()=>{const Hn={};if(c.mode!=="multiple"){const Qn=vue.unref(w).find(Zn=>Zn.value===vue.unref(v));Qn&&(Hn.itemCodes=Qn.item_codes)}return Hn}),vn=vue.computed(()=>{const{value:Hn,label:Qn}=x,Zn=vue.unref(d).find(Rn=>Rn[Hn]===vue.unref(p));return Zn?{label:Zn[Qn],value:Zn[Hn]}:{}});g(c.id,{type:c.type,value:gn,...vue.unref(hn),recordData:vue.unref(vn)});const Fn=useEmitEvent(c)("selectChange",()=>{const Hn=c.id,Qn=m(Hn);g(Hn,{...Qn,...vue.unref(hn),RECORD:gn,recordData:vue.unref(vn)})}),zn=(Hn=[])=>{if(d.value=b(Hn),c.selectFirstOption){let Qn=vue.unref(d)[0];if(x.options){const Zn=Qn[x.options];Zn&&Zn.length&&(Qn=Zn[0])}v.value=Qn[x.value]}g(c.id,{type:c.type,value:gn,...vue.unref(hn),recordData:vue.unref(vn)})},Vn=Hn=>{var qn;const{data:Qn}=(Hn==null?void 0:Hn.data)||{},Zn=x.label,Rn=x.value;if(Qn){const{rows:In=[]}=((qn=Hn==null?void 0:Hn.data)==null?void 0:qn.data)||{};w.value=In;const Dn=In.map(Jn=>({[Zn]:Jn.label,[Rn]:Jn.value})),{id:er}=c,Bn=m(er);g(er,{...Bn,...vue.unref(hn)}),zn(Dn)}else zn([])},Yn=useIndicatorData(c,Vn),Gn=async()=>{try{re.value=!0;const Hn=await Yn();Vn(Hn)}catch(Hn){console.error(Hn)}finally{re.value=!1}},Un=()=>{switch(c.dataType){case"indicator":{Gn();break}case"request":En();break}};useOnEvent(c,{selectChange:Fn,refreshData:Un});const{setRequest:Kn}=vue.inject(REQUEST_MODEL,{setRequest:({id:Hn,sortNum:Qn,requestFn:Zn})=>{}});return typeof Kn=="function"&&Kn({id:c.id,requestFn:Un,sortNum:c.requestSort}),u({refreshData:Un}),{style:f,getPopupContainer:h,myValue:v,selectChange:Fn,options:d,filterOption:pn,loading:re,resultValue:p}}}),DataSelect_vue_vue_type_style_index_0_scoped_b8cd6f56_lang="",DataSelect_vue_vue_type_style_index_1_lang="";function _sfc_render$2(c,u,f,h,d,v){const p=vue.resolveComponent("a-select-option"),m=vue.resolveComponent("a-select");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-select",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{class:"select",value:c.resultValue,"onUpdate:value":u[0]||(u[0]=g=>c.resultValue=g),placeholder:c.placeholder,showSearch:"",allowClear:c.isAllowClear,mode:c.mode,getPopupContainer:c.getPopupContainer,fieldNames:c.dataFieldNames,maxTagCount:c.maxTagCount,filterOption:c.filterOption,loading:c.loading,autoClearSearchValue:c.autoClearSearchValue,onChange:c.selectChange,style:vue.normalizeStyle({fontSize:c.optionFontSize})},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.options,(g,y)=>(vue.openBlock(),vue.createBlock(p,{key:y,value:g.value,label:g.label,style:vue.normalizeStyle({fontSize:c.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const DataSelect=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-b8cd6f56"]]),EcanDataSelect=withInstall$1(DataSelect),pivotTableProps={...props,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"],_sfc_main$1=vue.defineComponent({name:"EcanPivotTable",components:{},props:{...pivotTableComponentProps},setup(c,{expose:u}){var w,hn;const f=(w=window==null?void 0:window.config)==null?void 0:w.pageId,h=(hn=window==null?void 0:window.config)==null?void 0:hn.indicatorToken,d=usePickComponentStyle(c),v=vue.ref(),{pageMode:p,theme:m,width:g,height:y}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",theme:"light",width:"",height:""}),{getAllGlobalModel:x}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),pn=vue.computed(()=>{const{width:vn,height:Pn}=c;let Fn=0,zn=0;return typeof vn=="string"?Fn=parseFloat(vn):vn.suffix==="px"?Fn=+vn.value:vn.suffix==="%"&&(Fn=parseFloat(vue.unref(g))*(vn.value/100)),typeof Pn=="string"?zn=parseFloat(Pn):Pn.suffix==="px"?zn=+Pn.value:Pn.suffix==="%"&&(zn=parseFloat(vue.unref(y))*(Pn.value/100)),{...c,width:Fn+"px",height:zn+"px",pageId:f,indicatorToken:h,context:CONTEXT,globalModel:x()}}),b=vue.computed(()=>INDICATOR_URL),re=()=>{switch(c.dataType){case"indicator":vue.unref(v).refreshData();break}},{setRequest:_}=vue.inject(REQUEST_MODEL,{setRequest:({id:vn,sortNum:Pn,requestFn:Fn})=>{}});typeof _=="function"&&_({id:c.id,requestFn:re,sortNum:c.requestSort}),u({refreshData:re});const En=useEmitEvent(c)("click",()=>{vue.unref(v).click()});return useOnEvent(c,{refreshData:re,click:En}),vue.onMounted(()=>{}),{props:c,style:d,pageMode:p,pivotTableRef:v,theme:m,customProps:pn,indicatorUrl:b,click:En,onTableChange:({type:vn,data:Pn})=>{console.log("data",Pn)}}}}),PivotTableContainer_vue_vue_type_style_index_0_scoped_3e7ca38d_lang="";function _sfc_render$1(c,u,f,h,d,v){const p=vue.resolveComponent("pivot-table");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-pivot-table",style:vue.normalizeStyle(c.style)},[vue.createVNode(p,vue.mergeProps({ref:"pivotTableRef"},c.customProps,{pageMode:c.pageMode,theme:c.theme,fullMode:c.configMode==="fullMode",indicatorUrl:c.indicatorUrl,enlargeContainer:".page-config",onTableChange:c.onTableChange}),null,16,["pageMode","theme","fullMode","indicatorUrl","onTableChange"])],4)}const PivotTableContainer=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-3e7ca38d"]]),EcanPivotTable=withInstall$1(PivotTableContainer),valueLineProps={...props,id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"},valueLineComponentProps=transformToComponentProps(valueLineProps),valueLineEvents=["click","refreshData","resetRecord"];core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent,components$1.MarkPointComponent]);const _sfc_main=vue.defineComponent({name:"EcanValueLine",props:{...valueLineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),d=vue.ref(),v=vue.ref(!1),p=usePickComponentStyle(c),m=vue.ref([]),g=vue.ref(),y=vue.computed(()=>v.value?ZOOM_FONT_SIZE:12),x=vue.ref({});let pn;const b=vue.computed(()=>{const Dn=c.xAxisLabelFormatter,er=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:v.value?!1:c.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var Bn;v.value=!0,(Bn=g.value)==null||Bn.showModal()}},myInfo:{show:c.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(){antDesignVue.Modal.info({title:"说明信息",content:c.toolboxInfoText})}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:y.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:Bn=>{var nr;const Jn=Bn.length;let Xn="",Wn=c.tooltipFormatter;pn=(nr=Bn[0])==null?void 0:nr.data,Wn===""&&(Wn="{marker} {a} {c}");for(let ir=0;ir<Jn;ir++){const{marker:ar,seriesName:or,name:tr,value:sr,data:cr}=Bn[ir]||{};if(ir===0){let vr=tr;typeof tr=="string"&&tr[0]==="0"&&!isNaN(+tr)&&(vr=(+tr).toString()),Xn+=`${useValueFormatter(Dn,vr)}<br/>`}Xn+=useVariablesInText(Wn,{textData:{marker:ar,a:or,b:sr[0],c:sr[1]||0,...cr==null?void 0:cr.record}},{useNewline:!0,useSpace:!0}),Xn+="<br/>"}return Xn},position:c.tooltipPosition||void 0},xAxis:{type:"value",boundaryGap:c.isBoundaryGap,minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(Bn){return typeof Bn=="string"&&Bn[0]==="0"&&!isNaN(+Bn)&&(Bn=(+Bn).toString()),useValueFormatter(Dn,Bn)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(Bn){return useValueFormatter(er,Bn)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(v.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:v.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,formatter:Bn=>getLegendFormat(c.legendFormatter,{name:Bn})},series:vue.unref(m)}}),re=()=>{v.value=!1},{getGlobalModel:_,setGlobalModel:J,getRecordValueByKeyName:En}=vue.inject(GLOBAL_MODEL,{getGlobalModel:Dn=>{},setGlobalModel:(Dn,er)=>{},getRecordValueByKeyName:Dn=>{}}),gn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),w=(Dn,er,Bn,Jn,Xn,Wn,nr,ir)=>{const ar=(-(Xn*ir-Wn*nr)/(nr-Xn)+(Dn*Jn-er*Bn)/(Bn-Dn))/((Jn-er)/(Bn-Dn)-(ir-Wn)/(nr-Xn)),or=(Jn-er)/(Bn-Dn)*(-(Xn*ir-Wn*nr)/(nr-Xn)+(Dn*Jn-er*Bn)/(Bn-Dn))/((Jn-er)/(Bn-Dn)-(ir-Wn)/(nr-Xn))-(Dn*Jn-er*Bn)/(Bn-Dn);return[ar,or]},hn=()=>{var Bn;const Dn={symbol:"circle",tooltip:{trigger:"item",formatter:Jn=>{let Xn="",Wn=c.markPointFormatter;Wn===""&&(Wn="{x}, {y}");const{data:{coord:nr=[]}}=Jn||{};return Xn+=useVariablesInText(Wn,{textData:{x:nr[0]||0,y:nr[1]||0}},{useNewline:!0,useSpace:!0}),Xn+="<br/>",Xn}},data:[]},{axisMarkPoint:er=[]}=c;for(const Jn of er){const{coord:Xn=""}=Jn,Wn=[];let nr=[];if(Xn.includes("getIntersectPoint")){const ir=(Bn=Xn.match(/getIntersectPoint\((.*?)\)/)[1])==null?void 0:Bn.split(",");if((ir==null?void 0:ir.length)===8){const ar=[];for(const or of ir){const tr=or.replaceAll(" ","");(tr==null?void 0:tr.slice(0,1))==="{"&&(tr==null?void 0:tr.slice(-1))==="}"?ar.push(+En(tr)||0):ar.push(+tr)}nr=w(...ar)}}else nr=Xn.split(",");(nr==null?void 0:nr.length)===2&&(Wn[0]=+nr[0],Wn[1]=+nr[1]),Wn!=null&&Wn.length&&Dn.data.push({coord:Wn,symbolSize:Jn.symbolSize,itemStyle:{color:Jn.pointColor||"transparent",borderWidth:Jn.borderWidth||"transparent",borderColor:Jn.borderColor||"transparent"},label:{formatter:Jn.label,position:Jn.labelPosition,color:Jn.labelColor||"transparent"}})}return Dn},vn=Dn=>{var ar,or,tr;const er=lodashEs.cloneDeep(Dn),{graphicConfig:Bn,customPoint:Jn=""}=c,Xn={},Wn={},{formFields:nr={}}=Bn;let ir=[];if(Jn){ir=JSON.parse(Jn);for(const sr of ir)for(const cr in sr)typeof sr[cr]=="string"&&((ar=sr[cr])==null?void 0:ar.slice(0,1))==="{"&&((or=sr[cr])==null?void 0:or.slice(-1))==="}"&&(sr[cr]=En(sr[cr])||0)}ir!=null&&ir.length&&er.push(...ir),c.dataType==="static"?(Wn.name="name",Wn.values=["value","value2"]):(Wn.name=(nr==null?void 0:nr.labelField)||"name",Wn.values=(nr==null?void 0:nr.valueField)||["value","value2"]);for(const sr of er){const{values:cr,name:vr}=Wn;for(const dr of cr){const lr={value:[sr[vr],sr[dr]],record:sr};hasOwn(Xn,dr)?Xn[dr].push(lr):Xn[dr]=[lr]}}if((tr=Object.keys(Xn))!=null&&tr.length){const sr=[];for(const cr in Xn)sr.push({name:cr,data:Xn[cr]});return sr}else return[]},Pn=(Dn=[])=>{const er=vn(Dn),Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={},nr={};Xn===0&&(nr.markPoint=hn()),c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX),Bn.push({type:"line",...nr,...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(gn)})}m.value=Bn},Fn=(Dn=[])=>{const er=vn(Dn),Bn=[],Jn=er.length;for(let Xn=0;Xn<Jn;Xn++){const Wn={};c.shadowColor&&(Wn.shadowColor=c.shadowColor,Wn.shadowBlur=c.shadowBlur,Wn.shadowOffsetY=c.shadowOffsetY,Wn.shadowOffsetX=c.shadowOffsetX);const nr={};Xn===0&&(nr.markPoint=hn()),Bn.push({type:"line",...er[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:c.colors[Xn]},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:c.colors[Xn],opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...Wn},...vue.unref(gn),...nr})}m.value=Bn};vue.watch(()=>[c.data,c.dataType,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([Dn])=>{(c.dataType==="static"||vue.unref(f)==="design")&&Pn(Dn)},{immediate:!0,deep:!0});const zn=vue.ref(!1),Vn=useRequestData(c),Yn=async()=>{var Dn,er;if(c.dataType==="request")try{zn.value=!0;const Bn=await Vn();Pn((er=(Dn=Bn==null?void 0:Bn.data)==null?void 0:Dn.data)==null?void 0:er.rows)}catch(Bn){console.error(Bn)}finally{zn.value=!1}},Gn=useEmitEvent(c);J(c.id,{type:c.type,RECORD:""});const Un=Gn("click",Dn=>{const er=_(c.id);J(c.id,{...er,type:c.type,RECORD:c.tooltipShow?pn:Dn.data})}),Kn=Dn=>{d.value.chart.containPixel("grid",[Dn.offsetX,Dn.offsetY])&&Un()};c.tooltipShow?x.value["zr:click"]=Kn:x.value.click=Un;const Hn=Dn=>{var Bn;const{rows:er=[]}=((Bn=Dn==null?void 0:Dn.data)==null?void 0:Bn.data)??{};Fn(er)},Qn=useIndicatorData(c,Dn=>{c.isViewRedrawing&&d.value.clear(),Hn(Dn)}),Zn=async()=>{try{zn.value=!0;const Dn=await Qn();Hn(Dn)}catch(Dn){console.error(Dn)}finally{zn.value=!1}},Rn=()=>{switch(c.dataType){case"indicator":Zn();break;case"request":Yn();break}};useOnEvent(c,{refreshData:Rn,resetRecord:()=>{const Dn=c.id,er=_(Dn);J(Dn,{...er,RECORD:""})},click:Un});const{setRequest:In}=vue.inject(REQUEST_MODEL,{setRequest:Dn=>{}});return typeof In=="function"&&In({id:c.id,requestFn:Rn,sortNum:c.requestSort}),u({refreshData:Rn}),{option:b,style:p,click:Un,loading:zn,onClose:re,ecanModal:g,eventObj:x,echartRef:d}}}),ValueLine_vue_vue_type_style_index_0_lang="";function _sfc_render(c,u,f,h,d,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{class:"ecan-value-line",style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,vue.mergeProps({ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ValueLine=_export_sfc$1(_sfc_main,[["render",_sfc_render]]),EcanValueLine=withInstall$1(ValueLine),components=Object.freeze(Object.defineProperty({__proto__:null,EcanBar,EcanBorder,EcanButton,EcanCheckbox,EcanCirculate,EcanComboGraph,EcanCounter,EcanCustomGraph,EcanDataSelect,EcanDatePicker,EcanIframe,EcanImage,EcanInput,EcanLine,EcanList,EcanMap,EcanModal,EcanPageConfig,EcanPie,EcanPivotTable,EcanProportion,EcanProviderConfig,EcanRadar,EcanRadio,EcanRangePicker,EcanScatter,EcanScrollText,EcanSelect,EcanTable,EcanTabs,EcanTemplate,EcanText,EcanTimeDisplay,EcanTreeSelect,EcanValueLine,barComponentProps,barEvents,barProps,borderComponentProps,borderEvents,borderProps,buttonComponentProps,buttonEvents,buttonProps,checkboxComponentProps,checkboxEvents,checkboxProps,circulateComponentProps,circulateEvents,circulateProps,comboGraphComponentProps,comboGraphEvents,comboGraphProps,counterComponentProps,counterEvents,counterProps,customGraphComponentProps,customGraphProps,dataSelectComponentProps,dataSelectEvents,dataSelectProps,datePickerComponentProps,datePickerEvents,datePickerProps:datePickerProps$1,iframeComponentProps,iframeProps,imageComponentProps,imageEvents,imageProps,inputComponentProps,inputEvents,inputProps,lineComponentProps,lineEvents,lineProps,listComponentProps,listEvents,listProps,mapComponentProps,mapEvents,mapProps,modalComponentProps,modalEvents,modalProps,pageConfig,pageConfigComponentProps,pieComponentProps,pieEvents,pieProps,pivotTableComponentProps,pivotTableEvents,pivotTableProps,proportionComponentProps,proportionEvents,proportionProps,providerConfig,providerConfigComponentProps,radarComponentProps,radarEvents,radarProps,radioComponentProps,radioEvents,radioProps,rangePickerComponentProps,rangePickerEvents,rangePickerProps,scatterComponentProps,scatterEvents,scatterProps,selectComponentProps,selectEvents,selectProps,tableComponentProps,tableEvents,tableProps,tabsComponentProps,tabsEvents,tabsProps:tabsProps$1,templateComponentProps,templateEvents,templateProps,textComponentProps,textEvents,textProps,timeDisplayComponentProps,timeDisplayEvents,timeDisplayProps,treeSelectComponentProps,treeSelectEvents,treeSelectProps,valueLineComponentProps,valueLineEvents,valueLineProps},Symbol.toStringTag,{value:"Module"}));function noop(){}const extend=Object.assign,inBrowser$1=typeof window<"u",isObject$1=c=>c!==null&&typeof c=="object",isDef=c=>c!=null,isFunction=c=>typeof c=="function",isPromise=c=>isObject$1(c)&&isFunction(c.then)&&isFunction(c.catch),isDate=c=>Object.prototype.toString.call(c)==="[object Date]"&&!Number.isNaN(c.getTime()),isNumeric=c=>typeof c=="number"||/^\d+(\.\d+)?$/.test(c),isIOS=()=>inBrowser$1?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function get(c,u){const f=u.split(".");let h=c;return f.forEach(d=>{var v;h=isObject$1(h)&&(v=h[d])!=null?v:""}),h}function pick(c,u,f){return u.reduce((h,d)=>((!f||c[d]!==void 0)&&(h[d]=c[d]),h),{})}const isSameValue=(c,u)=>JSON.stringify(c)===JSON.stringify(u),flat=c=>c.reduce((u,f)=>u.concat(f),[]),unknownProp=null,numericProp=[Number,String],truthProp={type:Boolean,default:!0},makeRequiredProp=c=>({type:c,required:!0}),makeArrayProp=()=>({type:Array,default:()=>[]}),makeNumericProp=c=>({type:numericProp,default:c}),makeStringProp=c=>({type:String,default:c});var inBrowser=typeof window<"u";function raf(c){return inBrowser?requestAnimationFrame(c):-1}function cancelRaf(c){inBrowser&&cancelAnimationFrame(c)}function doubleRaf(c){raf(()=>raf(c))}var isWindow=c=>c===window,makeDOMRect=(c,u)=>({top:0,left:0,right:c,bottom:u,width:c,height:u}),useRect=c=>{const u=vue.unref(c);if(isWindow(u)){const f=u.innerWidth,h=u.innerHeight;return makeDOMRect(f,h)}return u!=null&&u.getBoundingClientRect?u.getBoundingClientRect():makeDOMRect(0,0)};function useParent(c){const u=vue.inject(c,null);if(u){const f=vue.getCurrentInstance(),{link:h,unlink:d,internalChildren:v}=u;h(f),vue.onUnmounted(()=>d(f));const p=vue.computed(()=>v.indexOf(f));return{parent:u,index:p}}return{parent:null,index:vue.ref(-1)}}function flattenVNodes(c){const u=[],f=h=>{Array.isArray(h)&&h.forEach(d=>{var v;vue.isVNode(d)&&(u.push(d),(v=d.component)!=null&&v.subTree&&(u.push(d.component.subTree),f(d.component.subTree.children)),d.children&&f(d.children))})};return f(c),u}var findVNodeIndex=(c,u)=>{const f=c.indexOf(u);return f===-1?c.findIndex(h=>u.key!==void 0&&u.key!==null&&h.type===u.type&&h.key===u.key):f};function sortChildren(c,u,f){const h=flattenVNodes(c.subTree.children);f.sort((v,p)=>findVNodeIndex(h,v.vnode)-findVNodeIndex(h,p.vnode));const d=f.map(v=>v.proxy);u.sort((v,p)=>{const m=d.indexOf(v),g=d.indexOf(p);return m-g})}function useChildren(c){const u=vue.reactive([]),f=vue.reactive([]),h=vue.getCurrentInstance();return{children:u,linkChildren:v=>{const p=g=>{g.proxy&&(f.push(g),u.push(g.proxy),sortChildren(h,u,f))},m=g=>{const y=f.indexOf(g);u.splice(y,1),f.splice(y,1)};vue.provide(c,Object.assign({link:p,unlink:m,children:u,internalChildren:f},v))}}}function onMountedOrActivated(c){let u;vue.onMounted(()=>{c(),vue.nextTick(()=>{u=!0})}),vue.onActivated(()=>{u&&c()})}function useEventListener(c,u,f={}){if(!inBrowser)return;const{target:h=window,passive:d=!1,capture:v=!1}=f;let p=!1,m;const g=pn=>{if(p)return;const b=vue.unref(pn);b&&!m&&(b.addEventListener(c,u,{capture:v,passive:d}),m=!0)},y=pn=>{if(p)return;const b=vue.unref(pn);b&&m&&(b.removeEventListener(c,u,v),m=!1)};vue.onUnmounted(()=>y(h)),vue.onDeactivated(()=>y(h)),onMountedOrActivated(()=>g(h));let x;return vue.isRef(h)&&(x=vue.watch(h,(pn,b)=>{y(b),g(pn)})),()=>{x==null||x(),y(h),p=!0}}var width,height;function useWindowSize(){if(!width&&(width=vue.ref(0),height=vue.ref(0),inBrowser)){const c=()=>{width.value=window.innerWidth,height.value=window.innerHeight};c(),window.addEventListener("resize",c,{passive:!0}),window.addEventListener("orientationchange",c,{passive:!0})}return{width,height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser?window:void 0;function isElement(c){return c.tagName!=="HTML"&&c.tagName!=="BODY"&&c.nodeType===1}function getScrollParent(c,u=defaultRoot){let f=c;for(;f&&f!==u&&isElement(f);){const{overflowY:h}=window.getComputedStyle(f);if(overflowScrollReg.test(h))return f;f=f.parentNode}return u}function useScrollParent(c,u=defaultRoot){const f=vue.ref();return vue.onMounted(()=>{c.value&&(f.value=getScrollParent(c.value,u))}),f}var visibility;function usePageVisibility(){if(!visibility&&(visibility=vue.ref("visible"),inBrowser)){const c=()=>{visibility.value=document.hidden?"hidden":"visible"};c(),window.addEventListener("visibilitychange",c)}return visibility}function getScrollTop(c){const u="scrollTop"in c?c.scrollTop:c.pageYOffset;return Math.max(u,0)}function setScrollTop(c,u){"scrollTop"in c?c.scrollTop=u:c.scrollTo(c.scrollX,u)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(c){setScrollTop(window,c),setScrollTop(document.body,c)}function getElementTop(c,u){if(c===window)return 0;const f=u?getScrollTop(u):getRootScrollTop();return useRect(c).top+f}isIOS();const stopPropagation=c=>c.stopPropagation();function preventDefault(c,u){(typeof c.cancelable!="boolean"||c.cancelable)&&c.preventDefault(),u&&stopPropagation(c)}function isHidden(c){const u=vue.unref(c);if(!u)return!1;const f=window.getComputedStyle(u),h=f.display==="none",d=u.offsetParent===null&&f.position!=="fixed";return h||d}const{width:windowWidth,height:windowHeight}=useWindowSize();function addUnit(c){if(isDef(c))return isNumeric(c)?`${c}px`:String(c)}function getSizeStyle(c){if(isDef(c)){if(Array.isArray(c))return{width:addUnit(c[0]),height:addUnit(c[1])};const u=addUnit(c);return{width:u,height:u}}}function getZIndexStyle(c){const u={};return c!==void 0&&(u.zIndex=+c),u}let rootFontSize;function getRootFontSize(){if(!rootFontSize){const c=document.documentElement,u=c.style.fontSize||window.getComputedStyle(c).fontSize;rootFontSize=parseFloat(u)}return rootFontSize}function convertRem(c){return c=c.replace(/rem/g,""),+c*getRootFontSize()}function convertVw(c){return c=c.replace(/vw/g,""),+c*windowWidth.value/100}function convertVh(c){return c=c.replace(/vh/g,""),+c*windowHeight.value/100}function unitToPx(c){if(typeof c=="number")return c;if(inBrowser$1){if(c.includes("rem"))return convertRem(c);if(c.includes("vw"))return convertVw(c);if(c.includes("vh"))return convertVh(c)}return parseFloat(c)}const camelizeRE=/-(\w)/g,camelize=c=>c.replace(camelizeRE,(u,f)=>f.toUpperCase()),kebabCase=c=>c.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"");function padZero(c,u=2){let f=c+"";for(;f.length<u;)f="0"+f;return f}const clamp=(c,u,f)=>Math.min(Math.max(c,u),f),{hasOwnProperty}=Object.prototype;function assignKey(c,u,f){const h=u[f];isDef(h)&&(!hasOwnProperty.call(c,f)||!isObject$1(h)?c[f]=h:c[f]=deepAssign(Object(c[f]),h))}function deepAssign(c,u){return Object.keys(u).forEach(f=>{assignKey(c,u,f)}),c}var stdin_default$h={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(c,u)=>`${c}年${u}月`,rangePrompt:c=>`最多选择 ${c} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:c=>`${c}折`,condition:c=>`满${c}元可用`},vanCouponCell:{title:"优惠券",count:c=>`${c}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const lang=vue.ref("zh-CN"),messages=vue.reactive({"zh-CN":stdin_default$h}),Locale={messages(){return messages[lang.value]},use(c,u){lang.value=c,this.add({[c]:u})},add(c={}){deepAssign(messages,c)}};var stdin_default$g=Locale;function createTranslate(c){const u=camelize(c)+".";return(f,...h)=>{const d=stdin_default$g.messages(),v=get(d,u+f)||get(d,f);return isFunction(v)?v(...h):v}}function genBem(c,u){return u?typeof u=="string"?` ${c}--${u}`:Array.isArray(u)?u.reduce((f,h)=>f+genBem(c,h),""):Object.keys(u).reduce((f,h)=>f+(u[h]?genBem(c,h):""),""):""}function createBEM(c){return(u,f)=>(u&&typeof u!="string"&&(f=u,u=""),u=u?`${c}__${u}`:c,`${u}${genBem(u,f)}`)}function createNamespace(c){const u=`van-${c}`;return[u,createBEM(u),createTranslate(u)]}const BORDER="van-hairline",BORDER_TOP_BOTTOM=`${BORDER}--top-bottom`,BORDER_UNSET_TOP_BOTTOM=`${BORDER}-unset--top-bottom`,HAPTICS_FEEDBACK="van-haptics-feedback",TAP_OFFSET=5;function callInterceptor(c,{args:u=[],done:f,canceled:h,error:d}){if(c){const v=c.apply(null,u);isPromise(v)?v.then(p=>{p?f():h&&h()}).catch(d||noop):v?f():h&&h()}else f()}function withInstall(c){return c.install=u=>{const{name:f}=c;f&&(u.component(f,c),u.component(camelize(`-${f}`),c))},c}const POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(c){const u=vue.inject(POPUP_TOGGLE_KEY,null);u&&vue.watch(u,f=>{f&&c()})}function useExpose(c){const u=vue.getCurrentInstance();u&&extend(u.proxy,c)}const routeProps={to:[String,Object],url:String,replace:Boolean};function route({to:c,url:u,replace:f,$router:h}){c&&h?h[f?"replace":"push"](c):u&&(f?location.replace(u):location.href=u)}const[name$h,bem$f]=createNamespace("badge"),badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")};var stdin_default$f=vue.defineComponent({name:name$h,props:badgeProps,setup(c,{slots:u}){const f=()=>{if(u.content)return!0;const{content:m,showZero:g}=c;return isDef(m)&&m!==""&&(g||m!==0&&m!=="0")},h=()=>{const{dot:m,max:g,content:y}=c;if(!m&&f())return u.content?u.content():isDef(g)&&isNumeric(y)&&+y>+g?`${g}+`:y},d=m=>m.startsWith("-")?m.replace("-",""):`-${m}`,v=vue.computed(()=>{const m={background:c.color};if(c.offset){const[g,y]=c.offset,{position:x}=c,[pn,b]=x.split("-");u.default?(typeof y=="number"?m[pn]=addUnit(pn==="top"?y:-y):m[pn]=pn==="top"?addUnit(y):d(y),typeof g=="number"?m[b]=addUnit(b==="left"?g:-g):m[b]=b==="left"?addUnit(g):d(g)):(m.marginTop=addUnit(y),m.marginLeft=addUnit(g))}return m}),p=()=>{if(f()||c.dot)return vue.createVNode("div",{class:bem$f([c.position,{dot:c.dot,fixed:!!u.default}]),style:v.value},[h()])};return()=>{if(u.default){const{tag:m}=c;return vue.createVNode(m,{class:bem$f("wrapper")},{default:()=>[u.default(),p()]})}return p()}}});const Badge=withInstall(stdin_default$f);let globalZIndex=2e3;const useGlobalZIndex=()=>++globalZIndex,setGlobalZIndex=c=>{globalZIndex=c},[name$g,bem$e]=createNamespace("config-provider"),CONFIG_PROVIDER_KEY=Symbol(name$g),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:makeStringProp("local"),iconPrefix:String};function insertDash(c){return c.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function mapThemeVarsToCSSVars(c){const u={};return Object.keys(c).forEach(f=>{const h=insertDash(kebabCase(f));u[`--van-${h}`]=c[f]}),u}function syncThemeVarsOnRoot(c={},u={}){Object.keys(c).forEach(f=>{c[f]!==u[f]&&document.documentElement.style.setProperty(f,c[f])}),Object.keys(u).forEach(f=>{c[f]||document.documentElement.style.removeProperty(f)})}vue.defineComponent({name:name$g,props:configProviderProps,setup(c,{slots:u}){const f=vue.computed(()=>mapThemeVarsToCSSVars(extend({},c.themeVars,c.theme==="dark"?c.themeVarsDark:c.themeVarsLight)));if(inBrowser$1){const h=()=>{document.documentElement.classList.add(`van-theme-${c.theme}`)},d=(v=c.theme)=>{document.documentElement.classList.remove(`van-theme-${v}`)};vue.watch(()=>c.theme,(v,p)=>{p&&d(p),h()},{immediate:!0}),vue.onActivated(h),vue.onDeactivated(d),vue.onBeforeUnmount(d),vue.watch(f,(v,p)=>{c.themeVarsScope==="global"&&syncThemeVarsOnRoot(v,p)}),vue.watch(()=>c.themeVarsScope,(v,p)=>{p==="global"&&syncThemeVarsOnRoot({},f.value),v==="global"&&syncThemeVarsOnRoot(f.value,{})}),c.themeVarsScope==="global"&&syncThemeVarsOnRoot(f.value,{})}return vue.provide(CONFIG_PROVIDER_KEY,c),vue.watchEffect(()=>{c.zIndex!==void 0&&setGlobalZIndex(c.zIndex)}),()=>vue.createVNode(c.tag,{class:bem$e(),style:c.themeVarsScope==="local"?f.value:void 0},{default:()=>{var h;return[(h=u.default)==null?void 0:h.call(u)]}})}});const[name$f,bem$d]=createNamespace("icon"),isImage=c=>c==null?void 0:c.includes("/"),iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String};var stdin_default$e=vue.defineComponent({name:name$f,props:iconProps,setup(c,{slots:u}){const f=vue.inject(CONFIG_PROVIDER_KEY,null),h=vue.computed(()=>c.classPrefix||(f==null?void 0:f.iconPrefix)||bem$d());return()=>{const{tag:d,dot:v,name:p,size:m,badge:g,color:y}=c,x=isImage(p);return vue.createVNode(Badge,vue.mergeProps({dot:v,tag:d,class:[h.value,x?"":`${h.value}-${p}`],style:{color:y,fontSize:addUnit(m)},content:g},c.badgeProps),{default:()=>{var pn;return[(pn=u.default)==null?void 0:pn.call(u),x&&vue.createVNode("img",{class:bem$d("image"),src:p},null)]}})}}});const Icon=withInstall(stdin_default$e),[name$e,bem$c]=createNamespace("loading"),SpinIcon=Array(12).fill(null).map((c,u)=>vue.createVNode("i",{class:bem$c("line",String(u+1))},null)),CircularIcon=vue.createVNode("svg",{class:bem$c("circular"),viewBox:"25 25 50 50"},[vue.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String};var stdin_default$d=vue.defineComponent({name:name$e,props:loadingProps,setup(c,{slots:u}){const f=vue.computed(()=>extend({color:c.color},getSizeStyle(c.size))),h=()=>{const v=c.type==="spinner"?SpinIcon:CircularIcon;return vue.createVNode("span",{class:bem$c("spinner",c.type),style:f.value},[u.icon?u.icon():v])},d=()=>{var v;if(u.default)return vue.createVNode("span",{class:bem$c("text"),style:{fontSize:addUnit(c.textSize),color:(v=c.textColor)!=null?v:c.color}},[u.default()])};return()=>{const{type:v,vertical:p}=c;return vue.createVNode("div",{class:bem$c([v,{vertical:p}]),"aria-live":"polite","aria-busy":!0},[h(),d()])}}});const Loading=withInstall(stdin_default$d),popupSharedProps={show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp};function getDirection(c,u){return c>u?"horizontal":u>c?"vertical":""}function useTouch(){const c=vue.ref(0),u=vue.ref(0),f=vue.ref(0),h=vue.ref(0),d=vue.ref(0),v=vue.ref(0),p=vue.ref(""),m=vue.ref(!0),g=()=>p.value==="vertical",y=()=>p.value==="horizontal",x=()=>{f.value=0,h.value=0,d.value=0,v.value=0,p.value="",m.value=!0};return{move:re=>{const _=re.touches[0];f.value=(_.clientX<0?0:_.clientX)-c.value,h.value=_.clientY-u.value,d.value=Math.abs(f.value),v.value=Math.abs(h.value);const J=10;(!p.value||d.value<J&&v.value<J)&&(p.value=getDirection(d.value,v.value)),m.value&&(d.value>TAP_OFFSET||v.value>TAP_OFFSET)&&(m.value=!1)},start:re=>{x(),c.value=re.touches[0].clientX,u.value=re.touches[0].clientY},reset:x,startX:c,startY:u,deltaX:f,deltaY:h,offsetX:d,offsetY:v,direction:p,isVertical:g,isHorizontal:y,isTap:m}}let totalLockCount=0;const BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(c,u){const f=useTouch(),h="01",d="10",v=x=>{f.move(x);const pn=f.deltaY.value>0?d:h,b=getScrollParent(x.target,c.value),{scrollHeight:re,offsetHeight:_,scrollTop:J}=b;let En="11";J===0?En=_>=re?"00":"01":J+_>=re&&(En="10"),En!=="11"&&f.isVertical()&&!(parseInt(En,2)&parseInt(pn,2))&&preventDefault(x,!0)},p=()=>{document.addEventListener("touchstart",f.start),document.addEventListener("touchmove",v,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},m=()=>{totalLockCount&&(document.removeEventListener("touchstart",f.start),document.removeEventListener("touchmove",v),totalLockCount--,totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},g=()=>u()&&p(),y=()=>u()&&m();onMountedOrActivated(g),vue.onDeactivated(y),vue.onBeforeUnmount(y),vue.watch(u,x=>{x?p():m()})}function useLazyRender(c){const u=vue.ref(!1);return vue.watch(c,f=>{f&&(u.value=f)},{immediate:!0}),f=>()=>u.value?f():null}const useScopeId=()=>{var c;const{scopeId:u}=((c=vue.getCurrentInstance())==null?void 0:c.vnode)||{};return u?{[u]:""}:null},[name$d,bem$b]=createNamespace("overlay"),overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object,teleport:[String,Object]};var stdin_default$c=vue.defineComponent({name:name$d,props:overlayProps,setup(c,{slots:u}){const f=vue.ref(),h=useLazyRender(()=>c.show||!c.lazyRender),d=p=>{c.lockScroll&&preventDefault(p,!0)},v=h(()=>{var p;const m=extend(getZIndexStyle(c.zIndex),c.customStyle);return isDef(c.duration)&&(m.animationDuration=`${c.duration}s`),vue.withDirectives(vue.createVNode("div",{ref:f,style:m,class:[bem$b(),c.className]},[(p=u.default)==null?void 0:p.call(u)]),[[vue.vShow,c.show]])});return useEventListener("touchmove",d,{target:f}),()=>{const p=vue.createVNode(vue.Transition,{name:"van-fade",appear:!0},{default:v});return c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[p]}):p}}});const Overlay=withInstall(stdin_default$c),popupProps=extend({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[name$c,bem$a]=createNamespace("popup");var stdin_default$b=vue.defineComponent({name:name$c,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(c,{emit:u,attrs:f,slots:h}){let d,v;const p=vue.ref(),m=vue.ref(),g=useLazyRender(()=>c.show||!c.lazyRender),y=vue.computed(()=>{const Fn={zIndex:p.value};if(isDef(c.duration)){const zn=c.position==="center"?"animationDuration":"transitionDuration";Fn[zn]=`${c.duration}s`}return Fn}),x=()=>{d||(d=!0,p.value=c.zIndex!==void 0?+c.zIndex:useGlobalZIndex(),u("open"))},pn=()=>{d&&callInterceptor(c.beforeClose,{done(){d=!1,u("close"),u("update:show",!1)}})},b=Fn=>{u("clickOverlay",Fn),c.closeOnClickOverlay&&pn()},re=()=>{if(c.overlay)return vue.createVNode(Overlay,vue.mergeProps({show:c.show,class:c.overlayClass,zIndex:p.value,duration:c.duration,customStyle:c.overlayStyle,role:c.closeOnClickOverlay?"button":void 0,tabindex:c.closeOnClickOverlay?0:void 0},useScopeId(),{onClick:b}),{default:h["overlay-content"]})},_=Fn=>{u("clickCloseIcon",Fn),pn()},J=()=>{if(c.closeable)return vue.createVNode(Icon,{role:"button",tabindex:0,name:c.closeIcon,class:[bem$a("close-icon",c.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:c.iconPrefix,onClick:_},null)};let En;const gn=()=>{En&&clearTimeout(En),En=setTimeout(()=>{u("opened")})},w=()=>u("closed"),hn=Fn=>u("keydown",Fn),vn=g(()=>{var Fn;const{round:zn,position:Vn,safeAreaInsetTop:Yn,safeAreaInsetBottom:Gn}=c;return vue.withDirectives(vue.createVNode("div",vue.mergeProps({ref:m,style:y.value,role:"dialog",tabindex:0,class:[bem$a({round:zn,[Vn]:Vn}),{"van-safe-area-top":Yn,"van-safe-area-bottom":Gn}],onKeydown:hn},f,useScopeId()),[(Fn=h.default)==null?void 0:Fn.call(h),J()]),[[vue.vShow,c.show]])}),Pn=()=>{const{position:Fn,transition:zn,transitionAppear:Vn}=c,Yn=Fn==="center"?"van-fade":`van-popup-slide-${Fn}`;return vue.createVNode(vue.Transition,{name:zn||Yn,appear:Vn,onAfterEnter:gn,onAfterLeave:w},{default:vn})};return vue.watch(()=>c.show,Fn=>{Fn&&!d&&(x(),f.tabindex===0&&vue.nextTick(()=>{var zn;(zn=m.value)==null||zn.focus()})),!Fn&&d&&(d=!1,u("close"))}),useExpose({popupRef:m}),useLockScroll(m,()=>c.show&&c.lockScroll),useEventListener("popstate",()=>{c.closeOnPopstate&&(pn(),v=!1)}),vue.onMounted(()=>{c.show&&x()}),vue.onActivated(()=>{v&&(u("update:show",!0),v=!1)}),vue.onDeactivated(()=>{c.show&&c.teleport&&(pn(),v=!0)}),vue.provide(POPUP_TOGGLE_KEY,()=>c.show),()=>c.teleport?vue.createVNode(vue.Teleport,{to:c.teleport},{default:()=>[re(),Pn()]}):vue.createVNode(vue.Fragment,null,[re(),Pn()])}});const Popup=withInstall(stdin_default$b),[name$b,bem$9,t]=createNamespace("picker"),getFirstEnabledOption=c=>c.find(u=>!u.disabled)||c[0];function getColumnsType(c,u){const f=c[0];if(f){if(Array.isArray(f))return"multiple";if(u.children in f)return"cascade"}return"default"}function findIndexOfEnabledOption(c,u){u=clamp(u,0,c.length);for(let f=u;f<c.length;f++)if(!c[f].disabled)return f;for(let f=u-1;f>=0;f--)if(!c[f].disabled)return f;return 0}const isOptionExist=(c,u,f)=>u!==void 0&&!!c.find(h=>h[f.value]===u);function findOptionByValue(c,u,f){const h=c.findIndex(v=>v[f.value]===u),d=findIndexOfEnabledOption(c,h);return c[d]}function formatCascadeColumns(c,u,f){const h=[];let d={[u.children]:c},v=0;for(;d&&d[u.children];){const p=d[u.children],m=f.value[v];if(d=isDef(m)?findOptionByValue(p,m,u):void 0,!d&&p.length){const g=getFirstEnabledOption(p)[u.value];d=findOptionByValue(p,g,u)}v++,h.push(p)}return h}function getElementTranslateY(c){const{transform:u}=window.getComputedStyle(c),f=u.slice(7,u.length-1).split(", ")[5];return Number(f)}function assignDefaultFields(c){return extend({text:"text",value:"value",children:"children"},c)}const DEFAULT_DURATION=200,MOMENTUM_TIME=300,MOMENTUM_DISTANCE=15,[name$a,bem$8]=createNamespace("picker-column"),PICKER_KEY=Symbol(name$a);var stdin_default$a=vue.defineComponent({name:name$a,props:{value:numericProp,fields:makeRequiredProp(Object),options:makeArrayProp(),readonly:Boolean,allowHtml:Boolean,optionHeight:makeRequiredProp(Number),swipeDuration:makeRequiredProp(numericProp),visibleOptionNum:makeRequiredProp(numericProp)},emits:["change","clickOption","scrollInto"],setup(c,{emit:u,slots:f}){let h,d,v,p,m;const g=vue.ref(),y=vue.ref(),x=vue.ref(0),pn=vue.ref(0),b=useTouch(),re=()=>c.options.length,_=()=>c.optionHeight*(+c.visibleOptionNum-1)/2,J=Gn=>{let Un=findIndexOfEnabledOption(c.options,Gn);const Kn=-Un*c.optionHeight,Hn=()=>{Un>re()-1&&(Un=findIndexOfEnabledOption(c.options,Gn));const Qn=c.options[Un][c.fields.value];Qn!==c.value&&u("change",Qn)};h&&Kn!==x.value?m=Hn:Hn(),x.value=Kn},En=()=>c.readonly||!c.options.length,gn=Gn=>{h||En()||(m=null,pn.value=DEFAULT_DURATION,J(Gn),u("clickOption",c.options[Gn]))},w=Gn=>clamp(Math.round(-Gn/c.optionHeight),0,re()-1),hn=vue.computed(()=>w(x.value)),vn=(Gn,Un)=>{const Kn=Math.abs(Gn/Un);Gn=x.value+Kn/.003*(Gn<0?-1:1);const Hn=w(Gn);pn.value=+c.swipeDuration,J(Hn)},Pn=()=>{h=!1,pn.value=0,m&&(m(),m=null)},Fn=Gn=>{if(!En()){if(b.start(Gn),h){const Un=getElementTranslateY(y.value);x.value=Math.min(0,Un-_())}pn.value=0,d=x.value,v=Date.now(),p=d,m=null}},zn=Gn=>{if(En())return;b.move(Gn),b.isVertical()&&(h=!0,preventDefault(Gn,!0));const Un=clamp(d+b.deltaY.value,-(re()*c.optionHeight),c.optionHeight),Kn=w(Un);Kn!==hn.value&&u("scrollInto",c.options[Kn]),x.value=Un;const Hn=Date.now();Hn-v>MOMENTUM_TIME&&(v=Hn,p=Un)},Vn=()=>{if(En())return;const Gn=x.value-p,Un=Date.now()-v;if(Un<MOMENTUM_TIME&&Math.abs(Gn)>MOMENTUM_DISTANCE){vn(Gn,Un);return}const Hn=w(x.value);pn.value=DEFAULT_DURATION,J(Hn),setTimeout(()=>{h=!1},0)},Yn=()=>{const Gn={height:`${c.optionHeight}px`};return c.options.map((Un,Kn)=>{const Hn=Un[c.fields.text],{disabled:Qn}=Un,Zn=Un[c.fields.value],Rn={role:"button",style:Gn,tabindex:Qn?-1:0,class:[bem$8("item",{disabled:Qn,selected:Zn===c.value}),Un.className],onClick:()=>gn(Kn)},qn={class:"van-ellipsis",[c.allowHtml?"innerHTML":"textContent"]:Hn};return vue.createVNode("li",Rn,[f.option?f.option(Un,Kn):vue.createVNode("div",qn,null)])})};return useParent(PICKER_KEY),useExpose({stopMomentum:Pn}),vue.watchEffect(()=>{const Gn=h?Math.floor(-x.value/c.optionHeight):c.options.findIndex(Hn=>Hn[c.fields.value]===c.value),Un=findIndexOfEnabledOption(c.options,Gn),Kn=-Un*c.optionHeight;h&&Un<Gn&&Pn(),x.value=Kn}),useEventListener("touchmove",zn,{target:g}),()=>vue.createVNode("div",{ref:g,class:bem$8(),onTouchstartPassive:Fn,onTouchend:Vn,onTouchcancel:Vn},[vue.createVNode("ul",{ref:y,style:{transform:`translate3d(0, ${x.value+_()}px, 0)`,transitionDuration:`${pn.value}ms`,transitionProperty:pn.value?"all":"none"},class:bem$8("wrapper"),onTransitionend:Pn},[Yn()])])}});const[name$9]=createNamespace("picker-toolbar"),pickerToolbarProps={title:String,cancelButtonText:String,confirmButtonText:String},pickerToolbarSlots=["cancel","confirm","title","toolbar"],pickerToolbarPropKeys=Object.keys(pickerToolbarProps);var stdin_default$9=vue.defineComponent({name:name$9,props:pickerToolbarProps,emits:["confirm","cancel"],setup(c,{emit:u,slots:f}){const h=()=>{if(f.title)return f.title();if(c.title)return vue.createVNode("div",{class:[bem$9("title"),"van-ellipsis"]},[c.title])},d=()=>u("cancel"),v=()=>u("confirm"),p=()=>{var g;const y=(g=c.cancelButtonText)!=null?g:t("cancel");if(!(!f.cancel&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("cancel"),HAPTICS_FEEDBACK],onClick:d},[f.cancel?f.cancel():y])},m=()=>{var g;const y=(g=c.confirmButtonText)!=null?g:t("confirm");if(!(!f.confirm&&!y))return vue.createVNode("button",{type:"button",class:[bem$9("confirm"),HAPTICS_FEEDBACK],onClick:v},[f.confirm?f.confirm():y])};return()=>vue.createVNode("div",{class:bem$9("toolbar")},[f.toolbar?f.toolbar():[p(),h(),m()]])}});const useSyncPropRef=(c,u)=>{const f=vue.ref(c());return vue.watch(c,h=>{h!==f.value&&(f.value=h)}),vue.watch(f,h=>{h!==c()&&u(h)}),f};/**
|
|
132
132
|
* @vue/shared v3.5.4
|
|
133
133
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
134
134
|
* @license MIT
|